Skip to content

Commit

Permalink
Update addressbook
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Sep 30, 2024
1 parent 6d6bfc7 commit 91f6bc5
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 40 deletions.
82 changes: 50 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"abstract-cache-redis": "^2.0.0",
"async-lock": "^1.4.0",
"axios": "^1.3.4",
"blockchain-addressbook": "^0.46.233",
"blockchain-addressbook": "^0.47.18",
"decimal.js": "^10.4.3",
"dotenv": "^16.0.3",
"ethereum-multicall": "^2.16.1",
Expand All @@ -77,7 +77,7 @@
"rxjs": "^7.8.0",
"simple-git": "^3.17.0",
"uuid": "^9.0.0",
"viem": "^2.20.0",
"viem": "^2.21.16",
"yargs": "^17.7.1"
}
}
6 changes: 0 additions & 6 deletions src/utils/addressbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ function getAddressBookTokensConfig(chain: Chain) {
return {
WNATIVE: { address: "0x4200000000000000000000000000000000000006", symbol: "WSYS" },
};
} else if (chain === "rootstock") {
return {
WNATIVE: { address: "0x542fda317318ebf1d3deaf76e0b632741a7e677d", symbol: "WRBTC" },
};
}

throw new Error(`Unknown chain ${chain}`);
Expand All @@ -42,8 +38,6 @@ export function getChainNetworkId(chain: Chain): number {
return 534352;
} else if (chain === "rollux") {
return 570;
} else if (chain === "rootstock") {
return 30;
}
throw new Error(`Unknown chain ${chain}`);
}
Expand Down

0 comments on commit 91f6bc5

Please sign in to comment.