Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.55 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.55 KB

Maven Central

A Java SCORE Library for ICON Standard Tokens

This repository contains a Java SCORE library for ICON standard tokens like IRC2, IRC3, and IRC31. 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 by adding the following dependency in your build.gradle.

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.

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.

License

This project is available under the Apache License, Version 2.0.