Giantjs is the Giant Contracts Development Kit, which means a development environment and testing framework for Giant Contracts. With Giantjs, you get:
- Built-in smart contract compilation, linking and deployment management.
- Automated contract testing with Mocha and Chai.
- Configurable build pipeline with support for custom build processes.
- Scriptable deployment & migrations framework.
- Network management for deploying to many public & private networks.
- Interactive console for direct contract communication.
- Instant rebuilding of assets during development.
- External script runner that executes scripts within a Giantjs environment.
$ git clone https://github.com/GiantPay/giantjs.git gcdk; cd gcdk
$ npm install
$ npm run build
Compile your contracts, deploy those contracts to the network.
node dist/giant create contract {ContractName}
node dist/giant deploy {ContractName}
Run their associated unit tests.
$ npm test
For autocompile mode open new terminal window.
$ npm run watch
Giantjs comes bundled with a local development blockchain server that launches automatically when you invoke the commands above.
The basic ideas on which the work of Giantjs is based are described in Giant Contracts White Paper
Please see the Official Giantjs Documentation for guides, tips, and examples.
We welcome pull requests. To get started, just fork this repo, clone it locally, and run:
# Install
npm install -g yarn
yarn
# Test
npm testMIT