Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 1.2 KB

File metadata and controls

63 lines (48 loc) · 1.2 KB

Deployment

ropsten

  • ValueswapV2Pair bytecode hash (Look for INIT_CODE_HASH):
  • f27fee3fc000c2148077e3c1de2bfc88ca0e8881a5c9fbb18615dc16f0cc1b75
    • old = ?
  • ValueswapV2Factory 0xfdaC360e32E9c90A654914073D6f42f238531B6f block 11759913=>11759912, old: ?
    • old = ?

Install Dependencies

yarn

Compile Contracts

yarn compile

Run Tests

yarn test

INIT_CODE_HASH

Replace in Line #24 for valueswap-v2-periphery/contracts/libraries/ValueswapV2Library.sol. Replace in INIT_CODE_HASH for valueswap-sdk/src/constants.ts.

yarn get-hash

Deployment

yarn deploy <network>
yarn verify <network> ValueswapV2Factory

Deployment for Ropsten

yarn deploy ropsten
yarn verify ropsten ValueswapV2Factory

Deployment for Mainnetwork

yarn deploy mainnet
yarn verify mainnet ValueswapV2Factory

FACTORY_ADDRESS

Replace in FACTORY_ADDRESS

  • for valueswap-sdk/src/constants.ts.
  • for valueswap-v2-periphery/migrations/2_deploy_router.js.
  • for valueswap-info/src/constants/index.js.
  • for valueswap-v2-subgraph/src/mappings/helpers.ts.
  • src/mappings/helpers.ts
  • subgraph.yaml и номер блока -1