📌 Deprecation Notice — this is the legacy 2018 ERC-20 (do not use)
This repository holds the original 2018 ERC-20 MossCoin (MOC) and is deprecated. The current, official MOC is the 2025 Ethereum mainnet ERC-20:
- Current MOC (2025 ERC-20):
0x8bbfe65e31b348cd823c62e02ad8c19a84dd0dab— source & docs: mossland/MossCoin-ERC20-2025 - Supported migration path: Luniverse MOC → 2025 ERC-20. This legacy 2018 ERC-20 is not part of the migration path, and the Wrapped MOC (WMOC) swap route is inactive.
⚠️ Anti-phishing: only use the current 2025 mainnet address above, confirmed via official Mossland channels. Do not deposit to, or swap from, the legacy contracts below.
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:mossland/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
