1.0.1 • Published 2 years ago

@dvietha/contracts v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Token bridge smart contract

Uses

  • Hardhat: compile and run the smart contracts on a local development network
  • TypeChain: generate TypeScript types for smart contracts
  • Ethers: renowned Ethereum library and wallet implementation
  • Waffle: tooling for writing comprehensive smart contract tests
  • Solhint: linter
  • Prettier Plugin Solidity: code formatter

Usage

Pre Requisites

Before running any command, make sure to install dependencies:

$ yarn install

Clean

$ yarn clean

Compile

Compile the smart contracts with Hardhat:

$ yarn compile

Test

Run the Mocha tests:

$ yarn test

Run test with gas report

$ REPORT_GAS=true yarn test

Run test with solidity coverage report

$ yarn coverage

Deploy token bridge contract to a network (requires Mnemonic, infura API and Etherscan API key)

$ yarn deploy --network rinkeby --verify --app 0x659E4A3726275EDFD125F52338ECE0D54D15BD99,0x1A642F0E3C3AF545E7ACBD38B07251B3990914F1,0x75E20828B343D1FE37FAE469AB698E19C17F20B5

Added plugins

Upgrade token bridge contract

Prepare

Run below task to prepare upgrade token bridge smart contract

yarn prepare-upgrade --network rinkeby --verify --address PROXY_ADDRESS

Upgrade

$ yarn upgrade-contract --network rinkeby --address PROXY_ADDRESS