The starter code for the next NEO-ONE SmartContract Workshop. This repo contains a simple Token SmartContract under one/contracts/Token.ts
and tests of that Token running on a private, local NEO blockchain under src/__tests__/Token.test.ts
. The goal of this workshop will be to flesh out this Token by adding your own features to it.
- Install NodeJs >= 8.9.0. Note I have used version 10.13 for this project.
- For Linux & Mac we recommend Node Version Manager.
- For Windows we recommend using Chocolatey.
- The npm package manager comes with NodeJs and can be used to run commands. I will be using yarn. Feel free to use whatever you prefer.
If you'd like to build the Token yourself, we encourage you to head to neo-one.io and complete the first online course or the tutorial which walk through the construction of this basic Token SmartContract. If not, this repo and the below instructions are all you need to participate in the upcoming workshop!.
- Fork and clone this repository.
- cd into the newly created
token-workshop
directory. yarn install
ornpm install
to load all dependencies.yarn neo-one build
ornpm neo-one build
will start a neo-one local blockchain, deploy the Token contract contained inone/contracts/Token.ts
to the blockchain, and setup some helper utilities for working with the Token. You should see a series of green checks if the command succeeds.yarn test
ornpm test
will test your Token on a local blockchain by running the tests insrc/__tests__/Token.test.ts
. You should see four green checks if the tests pass.- That's it! If you've made it this far you have a working token smart contract and are ready to add more. If you have problems with any of the above steps, please feel free to look through our tutorials and documentation at neo-one.io or reach our to us with questions on our NEO-ONE Discord.