Skip to content

Commit

Permalink
chore: install live fork
Browse files Browse the repository at this point in the history
  • Loading branch information
134dd3v committed Aug 15, 2022
1 parent 4d5fc87 commit cbdf9fe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'hardhat-tracer';
import '@typechain/hardhat';
import 'hardhat-gas-reporter';
import 'hardhat-contract-sizer';
import 'hardhat-live-fork';
import 'hardhat-deploy';
import 'solidity-coverage';
import '@nomiclabs/hardhat-etherscan';
Expand Down Expand Up @@ -178,4 +179,10 @@ export default {
project: process.env.TENDERLY_PROJECT,
username: process.env.TENDERLY_USERNAME,
},
liveFork: {
txMatcher: (tx: any) => {
// only replay txs to chainlink eth usd aggregator
return tx.to === '0x3607e46698d218B3a5Cae44bF381475C0a5e2ca7';
},
},
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": "hardhat clean",
"compile": "hardhat compile",
"coverage": "hardhat coverage",
"hn": "TS_NODE_SKIP_IGNORE=true hardhat node",
"deploy": "TS_NODE_SKIP_IGNORE=true hardhat deploy",
"deploy:arbtest": "yarn deploy --network arbtest",
"deploy:goerli": "hardhat deploy --network goerli && yarn etherscan --network goerli",
Expand Down Expand Up @@ -62,6 +63,7 @@
"hardhat-contract-sizer": "^2.1.1",
"hardhat-deploy": "^0.10.5",
"hardhat-gas-reporter": "^1.0.4",
"hardhat-live-fork": "^0.1.2",
"hardhat-tracer": "^1.1.0-rc.5",
"patch-package": "^6.4.7",
"prettier": "^2.6.2",
Expand All @@ -70,5 +72,5 @@
"ts-node": "^10.7.0",
"typechain": "^8.0.0",
"typescript": "^4.6.3"
}
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5255,6 +5255,11 @@ hardhat-gas-reporter@^1.0.4:
eth-gas-reporter "^0.2.24"
sha1 "^1.1.1"

hardhat-live-fork@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/hardhat-live-fork/-/hardhat-live-fork-0.1.2.tgz#459f29de6e2691a44e59681cbb0ae0c6dbda298c"
integrity sha512-69DO7QHkyRhXMkdlHjtbJ4f33Wxlpg3P857+fldD0w8xmb/T8vtWQRmJNkWuRIl9SYnbbmJWjt9o/nTsVI16Jg==

hardhat-tracer@^1.1.0-rc.5:
version "1.1.0-rc.6"
resolved "https://registry.yarnpkg.com/hardhat-tracer/-/hardhat-tracer-1.1.0-rc.6.tgz#963f9058a2e1ca7f1dac19d8b00ab2c2e556a1f4"
Expand Down

0 comments on commit cbdf9fe

Please sign in to comment.