Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sink772/javaee-tokens
A Java SCORE Library for Standard Tokens
https://github.com/sink772/javaee-tokens
Last synced: about 1 month ago
JSON representation
A Java SCORE Library for Standard Tokens
- Host: GitHub
- URL: https://github.com/sink772/javaee-tokens
- Owner: sink772
- License: apache-2.0
- Created: 2020-10-30T04:57:48.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-28T14:12:39.000Z (over 1 year ago)
- Last Synced: 2024-08-01T18:24:26.872Z (4 months ago)
- Language: Java
- Size: 156 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-icon - javaee-tokens - A Java SCORE Library for ICON Standard Tokens (Templating)
README
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.sink772/javaee-tokens/badge.svg)](https://search.maven.org/search?q=g:com.github.sink772%20a:javaee-tokens)
# A Java SCORE Library for ICON Standard Tokens
This repository contains a Java SCORE library for ICON standard tokens like
[IRC2](https://github.com/icon-project/IIPs/blob/master/IIPS/iip-2.md),
[IRC3](https://github.com/icon-project/IIPs/blob/master/IIPS/iip-3.md), and
[IRC31](https://github.com/icon-project/IIPs/blob/master/IIPS/iip-31.md).
SCORE developers are no longer required to write the whole things from scratch.
This project provides reusable Java classes to build custom user contracts conveniently.## Usage
You can include this package from [Maven Central](https://search.maven.org/search?q=g:com.github.sink772%20a:javaee-tokens)
by adding the following dependency in your `build.gradle`.```groovy
implementation 'com.github.sink772:javaee-tokens:0.6.4'
```You need to create a entry Java class to inherit the attributes and methods from the basic token classes.
The example below would be the simplest IRC2 token SCORE with a fixed supply.```java
public class IRC2FixedSupply extends IRC2Basic {
public IRC2FixedSupply(String _name, String _symbol) {
super(_name, _symbol, 3);
_mint(Context.getCaller(), BigInteger.valueOf(1000000));
}
}
```For a more complete example, please visit [Java SCORE Examples](https://github.com/icon-project/java-score-examples).
## License
This project is available under the [Apache License, Version 2.0](LICENSE).