Skip to content

Commit

Permalink
feat: add zksync mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorvin committed May 11, 2024
1 parent cc12877 commit d0a0cdf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@
"startBlock": 2017800
}
},
"zksync-era": {
"BookManager": {
"address": "0x5961268BFd6b057c3ffA4709eDb920bD97011B13",
"startBlock": 33610880
},
"BookViewer": {
"address": "0x7D206e3A8B785Dce75Bc755772Bd9eacdC77F5A9",
"startBlock": 33611270
},
"Controller": {
"address": "0x46D949cb444feF1a1BF63767F513f5091de6b5f5",
"startBlock": 33611260
}
},
"zksync-era-sepolia": {
"BookManager": {
"address": "0x419DD5a4e74f96e57C1F8B8B46ae6855395A9de7",
Expand Down
2 changes: 2 additions & 0 deletions src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export function getChainId(): BigInt {
export function getControllerAddress(): string {
// for zksync sepolia test, just return directly
// return '0x6d29603bFd8989B7A8F4E8751d34afC4fDa4e001'
// for zksync, just return directly
// return '0x46D949cb444feF1a1BF63767F513f5091de6b5f5'
const chainId = getChainId()
if (chainId == ARBITRUM_SEPOLIA) {
return '0x3e15fee68C06A0Cd3aF5430A665a9dd502C8544e'
Expand Down

0 comments on commit d0a0cdf

Please sign in to comment.