Skip to content

canfoundation/governance-design

Repository files navigation

governance-design

Version : 3.1.0

This repository is a provided following contracts:

Dependencies:

Documents:

Build

NOTE For production use, make sure that code has been commented out #define IS_TEST, line 1, file community.hpp. It will not generate init data test action of smart contract.

cd community

eosio-cpp -abigen -I include -contract community -o community.wasm src/community.cpp

How to run unit test

  1. Install eosio testing framework hydra and login into it:
npm i -g @klevoya/hydra

hydra login
  1. Install yarn packages:
yarn install
  1. Run test:

Run all unit test

yarn test

Run test file:

yarn test createCommunity.test.ts

WARING Because test need to send many request to hydra server, test timeout error may sometime happend. Make sure your network connection is stable to run this test.