@taiyangc/dmx-trade-contracts
v1.0.2
Published
DMX Trade Contracts
Downloads
7
Readme
DMX Contracts
Hardhat Commands
Update npm dependencies
$ make depsCompile contracts
// v2 local deploy
$ make deploy-hardhat-v2
// v3 testnet (ropsten) deploy, make sure to set $ETH_NODE_URL and $ETH_PRIVATE_KEY
$ make deploy-ropsten-v3Deploy contracts to Hardhat
$ make compileRun Hardhat node
$ make nodeRun link with Remix
$ make remixdTroubleshooting
No contract call is working
On each new Hardhat instantiation reset MetaMask nonce "Settings -> Advanced -> Reset Account".
Certain contract invocations are failing with "XXX: EXPIRED"
Make one more unrestricted contract call (such as a new deploy) to advance the current Hardhat block timestamp.
Contracts
Update compiler version
Modify solidity.version inside hardhat.config.js.
Update init hash on changes
Deploy UniswapV2Factory and execute pairCodeHash, then update the result into UniswapV2Library.sol. Finally update UI where INIT_CODE_HASH is referenced.
