Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLEUTHING - Refactor migrator UI and use sleuth to query #76

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.playground
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MAINNET_RPC_URL=http://localhost:8545
VITE_BYPASS_MAINNET_RPC_URL=https://mainnet-eth.compound.finance/3bbee0d395d8908f9872fc496cdc45cc
VITE_BYPASS_MAINNET_RPC_URL=https://mainnet-ethereum.compound.finance
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Compiler files
cache/
out/
!/web/helpers/Sleuth/out/AaveV2Query.sol/AaveV2Query.json
!/web/helpers/Sleuth/out/CometQuery.sol/CometQuery.json
!/web/helpers/Sleuth/out/CompoundV2Query.sol/CompoundV2Query.json

# Ignores development broadcast logs
!/broadcast
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
"forge:lint": "solhint '{src,script,test}/**/*.sol'",
"playground:mainnet": "script/playground.sh mainnet",
"playground:v1": "script/playground.sh v1",
"playground:v2": "script/playground.sh v2"
"playground:v2": "script/playground.sh v2",
"sleuth": "forge build --via-ir --root web/helpers -c Sleuth -o Sleuth/out"
},
"dependencies": {
"@compound-finance/comet-extension": "^0.0.5",
"@compound-finance/sleuth": "^1.0.1-alpha6",
"@ethersproject/abi": "^5.6.2",
"@ethersproject/bignumber": "^5.4.2",
"@ethersproject/contracts": "^5.6.1",
Expand Down
2 changes: 1 addition & 1 deletion script/playground.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ case "$1" in
export redeploy=false
playground_script=script/PlaygroundV2.s.sol

if [ $(($fork_block < $v2_mainnet_deploy_block)) ]
if [ $(($fork_block+0)) -lt $(($v2_mainnet_deploy_block+0)) ]
then
echo "Fork block too early, overwriting with block number $v2_mainnet_deploy_block"
fork_block=$v2_mainnet_deploy_block
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function fixBigIntIssue() {
if (file) {
let fullFile = join(resolve(dir), 'assets', file);
let f = await readFile(fullFile, { encoding: 'utf8' });
await writeFile(fullFile, f.replaceAll(/[al]\.BigInt\(/g, 'A.BigInt('));
await writeFile(fullFile, f.replaceAll(/[Et]\.BigInt\(/g, 'S.BigInt('));
console.log("Updated App file");
} else {
console.error("App file not found");
Expand Down
Loading