adarshaJha / neo-ico-smartcontract

Thor Token's NEO Token Sale Smart Contract

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thor ICO Smart Contract

Thor Token Offical ICO Smart Contract.

Author: Leo Rong, Lead Software Developer @ Thor Token

leo@thortoken.com

Based of Neo ICO Template by Thomas Saunders of the NEX team - https://github.com/neonexchange/neo-ico-template


Requirements

Usage requires Python 3.6+

Installation

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

Compilation

The template may be compiled as follows

python3 compile.py

This will compile your template to ico_smart_contract.avm

Import

In neo-python prompt:

import contract ../neo-ico-smartcontract/ico_smart_contract.avm 0702 05 True False

Deploy (Owner Check)

In neo-python prompt:

testinvoke {contract_hash} deploy []

Check circulation and token_sold

In neo-python prompt:

testinvoke {contract_hash} circulation []
testinvoke {contract_hash} token_sold []

Register KYC (Owner Check)

In neo-python prompt:

testinvoke {contract_hash} crowdsale_register ['AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y']
testinvoke {contract_hash} crowdsale_status ['AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y']

Mint Token (KYC Check)

In neo-python prompt:

testinvoke {contract_hash} mintTokens [] --attach-neo=1

Airdrop - For privatesale (Owner Check and KYC Check)

In neo-python prompt:

testinvoke {contract_hash} airdrop ['AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y', 1000]

Current Status: Live on MainNet (Tokesale starts at Block 2011901)

Token Hash: 67a5086bac196b67d5fd20745b0dc9db4d2930ed

https://neotracker.io/contract/67a5086bac196b67d5fd20745b0dc9db4d2930ed

Thor Token team has deployed the Tokensale Smart Contract onto NEO MainNet!!

About

Thor Token's NEO Token Sale Smart Contract

License:GNU General Public License v3.0


Languages

Language:Python 100.0%