Skip to content

Commit

Permalink
Merge pull request #607 from tablelandnetwork/avichalp/migrate-arbitrum
Browse files Browse the repository at this point in the history
Migrate Arbitrum Network from Goerli to Sepolia
  • Loading branch information
avichalp authored Nov 15, 2023
2 parents a931137 + 2d164f7 commit 6635b0d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker/deployed/testnet/api/.env_validator.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ VALIDATOR_GLIF_FILECOIN_CALIBRATION_API_KEY=
VALIDATOR_ALCHEMY_POLYGON_MUMBAI_API_KEY=
VALIDATOR_ALCHEMY_ETHEREUM_GOERLI_API_KEY=
VALIDATOR_ALCHEMY_ARBITRUM_GOERLI_API_KEY=
VALIDATOR_ALCHEMY_ARBITRUM_SEPOLIA_API_KEY=
VALIDATOR_ALCHEMY_OPTIMISM_GOERLI_API_KEY=
METRICS_HUB_API_KEY=
19 changes: 19 additions & 0 deletions docker/deployed/testnet/api/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,25 @@
},
"HashCalculationStep": 360
},
{
"Name": "Arbitrum Sepolia",
"ChainID": 421614,
"Registry": {
"EthEndpoint": "wss://arb-sepolia.g.alchemy.com/v2/${VALIDATOR_ALCHEMY_ARBITRUM_SEPOLIA_API_KEY}",
"ContractAddress": "0x223A74B8323914afDC3ff1e5005564dC17231d6e"
},
"EventFeed": {
"ChainAPIBackoff": "15s",
"NewBlockPollFreq": "5s",
"MinBlockDepth": 0,
"PersistEvents": true
},
"EventProcessor": {
"BlockFailedExecutionBackoff": "10s",
"DedupExecutedTxns": true
},
"HashCalculationStep": 360
},
{
"Name": "Optimism Goerli",
"ChainID": 420,
Expand Down
10 changes: 9 additions & 1 deletion pkg/client/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var ChainIDs = struct {
EthereumSepolia ChainID
OptimismGoerli ChainID
ArbitrumGoerli ChainID
ArbitrumSepolia ChainID
FilecoinCalibration ChainID
PolygonMumbai ChainID
Local ChainID
Expand All @@ -39,6 +40,7 @@ var ChainIDs = struct {
EthereumSepolia: 11155111,
OptimismGoerli: 420,
ArbitrumGoerli: 421613,
ArbitrumSepolia: 421614,
FilecoinCalibration: 314159,
PolygonMumbai: 80001,
Local: 31337,
Expand Down Expand Up @@ -114,6 +116,12 @@ var Chains = map[ChainID]Chain{
Name: "Arbitrum Goerli",
ContractAddr: common.HexToAddress("0x033f69e8d119205089Ab15D340F5b797732f646b"),
},
ChainIDs.ArbitrumSepolia: {
Endpoint: testnetURL,
ID: ChainIDs.ArbitrumSepolia,
Name: "Arbitrum Sepolia",
ContractAddr: common.HexToAddress("0x223A74B8323914afDC3ff1e5005564dC17231d6e"),
},
ChainIDs.FilecoinCalibration: {
Endpoint: testnetURL,
ID: ChainIDs.FilecoinCalibration,
Expand All @@ -140,7 +148,6 @@ var InfuraURLs = map[ChainID]string{
ChainIDs.Ethereum: "https://mainnet.infura.io/v3/%s",
ChainIDs.OptimismGoerli: "https://optimism-goerli.infura.io/v3/%s",
ChainIDs.Optimism: "https://optimism-mainnet.infura.io/v3/%s",
ChainIDs.ArbitrumGoerli: "https://arbitrum-goerli.infura.io/v3/%s",
ChainIDs.Arbitrum: "https://arbitrum-mainnet.infura.io/v3/%s",
ChainIDs.PolygonMumbai: "https://polygon-mumbai.infura.io/v3/%s",
ChainIDs.Polygon: "https://polygon-mainnet.infura.io/v3/%s",
Expand All @@ -154,6 +161,7 @@ var AlchemyURLs = map[ChainID]string{
ChainIDs.OptimismGoerli: "https://opt-goerli.g.alchemy.com/v2/%s",
ChainIDs.Optimism: "https://opt-mainnet.g.alchemy.com/v2/%s",
ChainIDs.ArbitrumGoerli: "https://arb-goerli.g.alchemy.com/v2/%s",
ChainIDs.ArbitrumSepolia: "https://arb-sepolia.g.alchemy.com/v2/%s",
ChainIDs.Arbitrum: "https://arb-mainnet.g.alchemy.com/v2/%s",
ChainIDs.PolygonMumbai: "https://polygon-mumbai.g.alchemy.com/v2/%s",
ChainIDs.Polygon: "https://polygon-mainnet.g.alchemy.com/v2/%s",
Expand Down

0 comments on commit 6635b0d

Please sign in to comment.