Arbitrable Permission Lists on Ethereum
Contracts for creating arbitrable permission lists on Ethereum.
- Clone this repo.
- Run
yarn install
to install dependencies and thenyarn build
to compile the contracts.
To bump the version of the package, use yarn release
.
yarn prettify
- Apply prettier to the entire project.yarn lint:sol
- Lint the entire project's .sol files.yarn lint:js
- Lint the entire project's .js files.yarn lint:sol --fix
- Fix fixable linting errors in .sol files.yarn lint:js --fix
- Fix fixable linting errors in .js files.yarn lint
- Lint the entire project's .sol and .js files.yarn test
- Run the truffle tests.yarn cz
- Run commitizen.yarn build
- Compiles contracts and extracts the abi into the abi folder.yarn release
- Run standard-version`.
Testrpc default gas limit is lower than the mainnet which prevents deploying some contracts. Before running truffle tests use:
testrpc -l 8000000
.
- Run
npx hardhat compile
to compile the contracts. - Run
npx hardhat test
to run all test cases in test folder. - Run
npx hardhat test <location of test file>
to run the test cases for specific contract.
- Run
npx hardhat test --network <network name in hardhat.config.js>
to run all test cases in test folder. - Run
npx hardhat test <location of test file> --network <network name in hardhat.config.js>
to run the test cases for specific contract. - Add private keys for the roles needed to test the contracts according to hardhat.config.js.
See contributing.
Learn how to develop arbitrable and arbitrator contracts here.