Skip to content

bwhli/multi-token-standard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICON Multi-Token Standard (IRC-31) Implementation

This is an reference implementation of the Multi-Token standard written in Python SCORE. You can find standard interface at IRC-31.

Requirements

Usage

Installation

Clone this project first, and setup a virtual environment.

$ git clone https://github.com/sink772/multi-token-standard.git
$ cd multi-token-standard
$ virtualenv -p python3.7 .venv
$ source .venv/bin/activate
(.venv) $ pip install -r requirements.txt

Running T-Bears Docker Container for Local Testnet

In another terminal, run the following command to initiate the local testnet.

$ docker run -it -p 9000:9000 iconloop/tbears:mainnet

Running Tests

Make sure you are in the virtual environment, and run the following command.

(.venv) $ make test

Deployment

To deploy the contracts, use the helper script run.py

(.venv) $ ./run.py -h
usage: run.py [-h] [-e ENDPOINT] [-k KEYSTORE] {deploy} ...

optional arguments:
  -h, --help            show this help message and exit
  -e ENDPOINT, --endpoint ENDPOINT
                        target endpoint for connection
  -k KEYSTORE, --keystore KEYSTORE
                        keystore file for creating transactions

Available commands:
  {deploy}

Available endpoints:
  mainnet: https://ctz.solidwallet.io
  testnet: https://test-ctz.solidwallet.io
  bicon: https://bicon.net.solidwallet.io
  gangnam: https://gicon.net.solidwallet.io
  gochain: http://localhost:9082
  local: http://localhost:9000

(.venv) $ ./run.py -e bicon -k yeouido_wallet_1 deploy multi_token

License

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

About

ICON Multi-Token Standard (IRC-31)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.4%
  • Makefile 0.6%