EOS Token CI Example
Updated as of EOS v1.4.3
This repo takes the EOSIO.token example and wraps it in a testing environment that supports nodejs.
Note: much of this was inspired by the work of @MrToph with his Yeoman generator https://github.com/MrToph/generator-eos
Related Reading
New to EOS? Here's a guide I've put together to get started understanding the EOS ecosystem from a developer's perspective. It includes the various ways to get your local development environment setup
Developing tokens yourself? Here's a list of gotchas for would-be token developers, especially for those coming from Ethereum ERC20 standards.
Setup
- Clone this repo (either with
--recursive
flag or rungit submodule update --init --recursive
after cloning to get the contract code) - Install Docker
- Pull down the latest CI image (
docker pull justinjmoses/eosio-ci
)
Write your code and test
- Change the
eosio.token
files as needed - Run
npm run compile:docker
which puts theeosio.token
WASM and ABI into thebuild
folder. Alternatively if you haveeosio-cpp
installed (viaeosio.cdt
), you can runnpm run compile
which is a bit faster. - Run
npm run test:docker
Continuous Integration
- CI is supplied via CircleCI
Future work
... deployments!