Skip to content
This repository has been archived by the owner on Mar 13, 2020. It is now read-only.

happysalada/qpass

Repository files navigation

Qps ICO Smart Contract

Quick pass token official ICO Smart Contract


Based on Neo ICO Template by Thomas Saunders of the NEX team - a good reference article

Requirements

Usage requires Python 3.6+

Install

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:

  1. Docker (Community Edition)
  2. Docker Compose

Usage

deploy on your privatenet

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

Block Explorer

View what is happening on your local blockchain: http://localhost:4000

Services

The Docker Compose stack is made up of the following services:

Troubleshooting

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).

Credit

@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).

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published