Thor Token Offical ICO Smart Contract.
Author: Leo Rong, Lead Software Developer @ Thor Token
Based of Neo ICO Template by Thomas Saunders of the NEX team - https://github.com/neonexchange/neo-ico-template
Usage requires Python 3.6+
Clone the repository and navigate into the project directory. Make a Python 3 virtual environment and activate it via
python3 -m venv venv
source venv/bin/activate
or to explicitly install Python 3.6 via
virtualenv -p /usr/local/bin/python3.6 venv
source venv/bin/activate
Then install the requirements via
pip install -r requirements.txt
The template may be compiled as follows
python3 compile.py
This will compile your template to ico_smart_contract.avm
In neo-python prompt:
import contract ../neo-ico-smartcontract/ico_smart_contract.avm 0702 05 True False
In neo-python prompt:
testinvoke {contract_hash} deploy []
In neo-python prompt:
testinvoke {contract_hash} circulation []
testinvoke {contract_hash} token_sold []
In neo-python prompt:
testinvoke {contract_hash} crowdsale_register ['AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y']
testinvoke {contract_hash} crowdsale_status ['AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y']
In neo-python prompt:
testinvoke {contract_hash} mintTokens [] --attach-neo=1
In neo-python prompt:
testinvoke {contract_hash} airdrop ['AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y', 1000]
https://neotracker.io/contract/67a5086bac196b67d5fd20745b0dc9db4d2930ed
Thor Token team has deployed the Tokensale Smart Contract onto NEO MainNet!!