Skip to content

jwcastillo/SGT-NEO-Smart-Contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safeguard Token NEO Smart Contract

Authors: Gertjan Leemans, Maarten Zonneveld & Zehna van den Berg

Based on the official NEO Example ICO Template found at: https://github.com/neo-project/examples-csharp/tree/master/ICO_Template, in combination with the NEO ICO Smart Contract by Thor found at: https://github.com/thortoken/neo-ico-smartcontract


Smart Contract functions

Deploy (Checks for Owner)

In neo-python prompt:

testinvoke {contract_hash} deploy []

Check total supply and tokens sold in the crowdsale

In neo-python:

testinvoke {contract_hash} totalSupply []
testinvoke {contract_hash} crowdsaleTokensSold []

Register for whitelist (Checks for Owner)

In neo-python:

testinvoke {contract_hash} crowdsaleRegister ['AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y']
testinvoke {contract_hash} crowdsaleRegistrationStatus ['AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y']

Update personal caps (Checks for Owner)

In neo-python:

testinvoke {contract_hash} crowdsaleChangePersonalCap [1000]

Update sale dates & rates (Checks for Owner)

In neo-python:

testinvoke {contract_hash} crowdsaleChangePresaleStart [1525242198]
testinvoke {contract_hash} crowdsaleChangePresaleEnd [1525242199]
testinvoke {contract_hash} crowdsaleChangePresaleNEORate [1000]

testinvoke {contract_hash} crowdsaleChangeCrowdsaleStart [1525242198]
testinvoke {contract_hash} crowdsaleChangeCrowdsaleEnd [1525242199]
testinvoke {contract_hash} crowdsaleChangeCrowdsaleNEORate [1000]

Mint Tokens (Checks for Whitelist)

In neo-python:

testinvoke {contract_hash} mintTokens []

Airdrop tokens - For privatesale (Checks for Owner & Whitelist)

In neo-python:

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

About

Safeguard Token's NEO Token Sale Smart Contract

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages