Skip to content

lukewwww/crynux-contracts

 
 

Repository files navigation

The Smart Contracts for the Crynux Network

The solidity contracts to coordinate the nodes and tasks.

Current Contract Scope

For the current off-chain task dispatch architecture and the active Relay integration contract set, see ./docs/contract-roles-and-status.md.

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

About

The solidity contracts to coordinate the nodes and tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Solidity 51.6%
  • JavaScript 48.4%