feat: ethscan on sepolia

This commit is contained in:
Anthony Laibe 2023-09-26 09:28:31 +02:00
parent 2afe5a269d
commit 2697c07705
1 changed files with 7 additions and 6 deletions

View File

@ -9,12 +9,13 @@ import (
var errorNotAvailableOnChainID = errors.New("not available for chainID") var errorNotAvailableOnChainID = errors.New("not available for chainID")
var contractAddressByChainID = map[uint64]common.Address{ var contractAddressByChainID = map[uint64]common.Address{
1: common.HexToAddress("0x08A8fDBddc160A7d5b957256b903dCAb1aE512C5"), // mainnet 1: common.HexToAddress("0x08A8fDBddc160A7d5b957256b903dCAb1aE512C5"), // mainnet
5: common.HexToAddress("0x08A8fDBddc160A7d5b957256b903dCAb1aE512C5"), // goerli 5: common.HexToAddress("0x08A8fDBddc160A7d5b957256b903dCAb1aE512C5"), // goerli
10: common.HexToAddress("0x9e5076df494fc949abc4461f4e57592b81517d81"), // optimism 10: common.HexToAddress("0x9e5076df494fc949abc4461f4e57592b81517d81"), // optimism
420: common.HexToAddress("0xf532c75239fa61b66d31e73f44300c46da41aadd"), // goerli optimism 420: common.HexToAddress("0xf532c75239fa61b66d31e73f44300c46da41aadd"), // goerli optimism
42161: common.HexToAddress("0xbb85398092b83a016935a17fc857507b7851a071"), // arbitrum 42161: common.HexToAddress("0xbb85398092b83a016935a17fc857507b7851a071"), // arbitrum
421613: common.HexToAddress("0xec21ebe1918e8975fc0cd0c7747d318c00c0acd5"), // goerli arbitrum 421613: common.HexToAddress("0xec21ebe1918e8975fc0cd0c7747d318c00c0acd5"), // goerli arbitrum
11155111: common.HexToAddress("0xec21ebe1918e8975fc0cd0c7747d318c00c0acd5"), // sepolia
} }
func ContractAddress(chainID uint64) (common.Address, error) { func ContractAddress(chainID uint64) (common.Address, error) {