/crynux-contracts

The solidity contracts to coordinate the nodes and tasks.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

The Smart Contracts for the Crynux Network

The solidity contracts to coordinate the nodes and tasks.

Task State Transitions

Task State Transitions

Compilation and Generating Contract ABIs

The contracts are developed using the Hardhat framework.

Install the dependencies before compilation:

$ npm install

Run hardhat compiling command using npm:

ABI is generated using @symblox/hardhat-abi-gen.

$ mkdir abi && npm run compile

Tests

All the test files are located under ./test. The tests could be executed using npm:

$ npm run test
$ npx hardhat test

Run coverage

$ npx hardhat coverage && open coverage/index.html