https://github.com/nash-io/neo-ico-template
An ICO Template for NEO projects
https://github.com/nash-io/neo-ico-template
dapp ico neo nep5 template
Last synced: 9 months ago
JSON representation
An ICO Template for NEO projects
- Host: GitHub
- URL: https://github.com/nash-io/neo-ico-template
- Owner: nash-io
- License: gpl-3.0
- Created: 2017-12-12T00:14:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-06T17:33:35.000Z (about 4 years ago)
- Last Synced: 2025-07-08T00:41:30.247Z (11 months ago)
- Topics: dapp, ico, neo, nep5, template
- Language: Python
- Size: 142 KB
- Stars: 116
- Watchers: 25
- Forks: 55
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Neo ICO Template
A template for NEP5 Compliant Tokens on the NEO platform
#### Considerations
An article describing this template is available here:
https://medium.com/neon-exchange/nex-ico-template-4ca7ba19fc8b
#### 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
```shell
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
```shell
pip install -r requirements.txt
```
#### Compilation
The template may be compiled as follows
```python
from boa.compiler import Compiler
Compiler.load_and_save('ico_template.py')
```
This will compile your template to `ico_template.avm`
#### Running tests
1. Install `requirements_test.txt`
```
pip install -r requirements_test.txt
```
2. Run tests
```
python -m unittest discover tests
```
#### Testnet Deployed Details
For testing purposes, this template is deployed on testnet with the following contract script hash:
`0b6c1f919e95fe61c17a7612aebfaf4fda3a2214`
```json
{
"code": {
"parameters": "0710",
"hash": "0b6c1f919e95fe61c17a7612aebfaf4fda3a2214",
"returntype": 5,
"script": ".. omitted .."
},
"version": 0,
"code_version": ".2",
"name": "NEX Ico Template",
"author": "localhuman",
"description": "An ICO Template",
"properties": {
"dynamic_invoke": false,
"storage": true
},
"email": "tom@neonexchange.org"
}
```