Skip to content

Commit

Permalink
Add config settings for Optimism
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustin Godnic committed Jul 25, 2023
1 parent af5724d commit 108236c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions contract-watcher/config/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,3 +320,19 @@ var ARBITRUM_MAINNET = WatcherBlockchainAddresses{
},
},
}

var OPTIMISM_MAINNET = WatcherBlockchainAddresses{
ChainID: vaa.ChainIDOptimism,
Name: "optimism",
SizeBlocks: 100,
WaitSeconds: 10,
InitialBlock: 89_900_107,
MethodsByAddress: map[string][]BlockchainMethod{
strings.ToLower("0x1293a54e160D1cd7075487898d65266081A15458"): {
{
ID: MethodIDReceiveTbtc,
Name: MethodReceiveTbtc,
},
},
},
}
16 changes: 16 additions & 0 deletions contract-watcher/config/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,3 +311,19 @@ var ARBITRUM_TESTNET = WatcherBlockchainAddresses{
},
},
}

var OPTIMISM_TESTNET = WatcherBlockchainAddresses{
ChainID: vaa.ChainIDArbitrum,
Name: "optimism_goerli",
SizeBlocks: 100,
WaitSeconds: 10,
InitialBlock: 7_973_025,
MethodsByAddress: map[string][]BlockchainMethod{
strings.ToLower("0xc3D46e0266d95215589DE639cC4E93b79f88fc6C"): {
{
ID: MethodIDReceiveTbtc,
Name: MethodReceiveTbtc,
},
},
},
}

0 comments on commit 108236c

Please sign in to comment.