Quick pass token official ICO Smart Contract
Based on Neo ICO Template by Thomas Saunders of the NEX team - a good reference article
Usage requires Python 3.6+
Before being able to use neo-local, you will need to install Docker and Docker Compose.
For MacOS and Windows users, both are bundled together:
For Linux users, you will have two seperate things to install:
deploy a privatenet first
MacOS or Linux users can make use of the Makefile:
make start
This will deploy a privatenet with a wallet with 100_000_000 NEO in a docker container
To access the wallet
open wallet ./neo-privnet.wallet
Enter password coz
To deploy the smart contract
build /smart-contracts/qpass.py test 07 05 True False deploy qps
Import the smart contract on your private net
import contract /smart-contracts/qpass.avm test 07 05 True False
Fill in the informations asked (name, email address...)
look for the contract hash
contract search qps
(if you have named it qps)
then deploy it
testinvoke 0x4765e8b5f7d4bc00cfad25139f6e5f5f10adff0b deploy []
(the hash value being the reference hash of your smart contract)
test the amount of funds in circulation
testinvoke 0x3fdc2dc4d26f98ab21b427270d284be9de70305b circulation []
make stop
View what is happening on your local blockchain: http://localhost:4000
The Docker Compose stack is made up of the following services:
- neo-privatenet (consensus nodes)
- neo-python (development CLI)
- neo-scan (block explorer)
- postgres (database for neo-scan)
- (coming sooon) neo-faucet
If you have an issue then please contact any of the contributors on the NEO Discord, or create an issue.
The Makefile is designed to simplify the setup process, however in doing so it can obscure debugging. Thus it is recommended to run the Docker commands manually if you encounter an error (as outlined in usage).
@slipo used Docker Compose to create a simpler local development environment (see repo). His work was built upon by the NeoAuth team, who simplified the idea further with the use of a wrapper and renamed the project.
It has now moved to be a part of CoZ and is actively maintained by the team - see contributors.
Note - this project sits on the shoulders of a number of great CoZ projects, and wouldn't be possible without their hard work (see services).