This is an reference implementation of the Multi-Token standard written in Python SCORE. You can find standard interface at IRC-31.
- Python 3.7 or later.
- Docker
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
In another terminal, run the following command to initiate the local testnet.
$ docker run -it -p 9000:9000 iconloop/tbears:mainnet
Make sure you are in the virtual environment, and run the following command.
(.venv) $ make test
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
This project is available under the Apache License, Version 2.0.