📌 Deprecation Notice
This repository, ERC-20 based MossCoin, is deprecated and no more work will be done on this by Mossland because MossCoin was swapped to Luniverse Main Token(LMT).
- Token Swap Guide
- LMT Contract
- [DEPRECATED]ERC-20 Contract
MossCoin is a token which is based on Zepplin StandardToken ERC-20 contract.
If you want to know more detailed information about this project, visit our website
-
Install python3 and solc. follow install instruction on link.
-
Initialize development environment. Execute the command below.
git clone --recursive git@github.com:MossCoin/MossCoin.git
cd MossCoin
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip3 install -r requirements.txt
- Test solc and populus are correctly installed:
$ solc --version
solc, the solidity compiler commandline interface
Version: 0.4.19+commit.c4cbbb05.linux.g++
populus
Usage: populus [OPTIONS] COMMAND [ARGS]...
Populus
Options:
...
- Then, initialize private block chain for test:
bash scripts/init_local_chain.sh
You can compile solidity code by using populus compile command. Compile results are saved in build/contracts.json.
If you want to test basic functionalities only, run py.test tests/testnet.
To test deploying token and more complexed functionalities, you need local private chain.
First, run local private chain by using the command below:
/chains/local/./run_chain.sh
Then, open another terminal and run test by using the command below:
py.test tests/localnet
