Giter Site home page Giter Site logo

tcr's Introduction

Arbitrable Permission Lists on Ethereum

JavaScript Style Guide Tested with Truffle Conventional Commits Commitizen Friendly Styled with Prettier

Contracts for creating arbitrable permission lists on Ethereum.

Development

  1. Clone this repo.
  2. Run yarn install to install dependencies and then yarn build to compile the contracts.

Release

To bump the version of the package, use yarn release.

Scripts

  • 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`.

Test

Testrpc default gas limit is lower than the mainnet which prevents deploying some contracts. Before running truffle tests use: testrpc -l 8000000.

Testing contracts

  • 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.

Testing contracts on specific network

  • 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.

Contributing

See contributing.

Learn how to develop arbitrable and arbitrator contracts here.

tcr's People

Contributors

eccentricexit avatar hbarcelos avatar dependabot[bot] avatar unknownunknown1 avatar params10 avatar clesaege avatar 0xferit avatar shalzz avatar greenlucid avatar merlinegalite avatar satello avatar fnanni-0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.