Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.
/ NeoHackathon Public archive

Genki's ICO smart contract. Used to participate in NEO Tokyo Hackathon 2018.

Notifications You must be signed in to change notification settings

longngn/NeoHackathon

Repository files navigation

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 genki_smart_contract.avm

Import

In neo-python prompt:

import contract ../NeoHackathon/genki_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 []

About

Genki's ICO smart contract. Used to participate in NEO Tokyo Hackathon 2018.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages