Skip to content

Rapayment router contracts to distribute funds to members of provided token registry

License

Notifications You must be signed in to change notification settings

enabledao/enable-router-contracts

Repository files navigation

enable-router-contracts

Repayment router contracts to distribute funds to members of provided token registry

CircleCI

Deployed Contracts

Ropsten

Contract Deployment cost Address Logic
Router 1,193,372 0x1a3058D8E07b1127b855854550658aE803A4Bdec 0x2Bcb56a96191f73eAebbA09398Bc3a5c73d24a3e

Kovan

Contract Deployment cost Address Logic
Router 1,193,372 0xE09F9BC68DeA6435C86287515C36A8477570684B 0xA832825439ef14eF26B8939532c93794e385D209

Developer Instructions

CI Pipeline

https://app.circleci.com/jobs/github/enabledao/enable-router-contracts

zos workflow for local development

We use ZeppelinOS to develop, deploy and operate the Enable loan kit packages. The ZeppelinOS Documentation is a good start.

Setup

  1. Run npm install to install all zeppelinOS related dependencies
  2. Run ganache-cli (or ganache-cli --deterministic) to run a local blockchain
  3. Create your own .env file based on .env.sample. These are the process.env variables that will be used for deployment / application. As of Feb 2020 this is the Infura API key and mnemonic"

Deploy to ganache development network

For background: read Publishing an EVM package.

npm run deploy -- --network development

  • This publishes the project's app, package and provider, then updates the zos config file with "app.address" field that is needed for tests to run.
  • Deploys the contracts in the project
  • Creates Proxies for the contract in the network. See Quickstart for context.

npm run initialize -- --network development

  • Initializes all deployed proxies on the network

Deploy to ethereum and development networks mainnet, ropsten, kovan, ganche

  1. Run npm run deploy -- --network kovan; change the network to the desired network
  2. Run npm run initialize -- --network kovan; change the network to the desired network

Running tests

  1. npm run test.

About

Rapayment router contracts to distribute funds to members of provided token registry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published