Skip to content

Commit

Permalink
Merge pull request #626 from tablelandnetwork/avichal/base-mainnet
Browse files Browse the repository at this point in the history
Add base mainnet config
  • Loading branch information
avichalp authored Jul 3, 2024
2 parents b53fd46 + a5687fa commit 15ff8d6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/deployed/mainnet/api/.env_validator.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ VALIDATOR_ALCHEMY_ARBITRUM_MAINNET_API_KEY=
VALIDATOR_ALCHEMY_ETHEREUM_MAINNET_API_KEY=
VALIDATOR_ALCHEMY_POLYGON_MAINNET_API_KEY=
VALIDATOR_ALCHEMY_OPTIMISM_MAINNET_API_KEY=
VALIDATOR_ALCHEMY_BASE_MAINNET_API_KEY=
VALIDATOR_GLIF_FILECOIN_MAINNET_API_KEY=
VALIDATOR_QUICKNODE_ARBITRUM_NOVA_MAINNET_API_KEY=
METRICS_HUB_API_KEY=
19 changes: 19 additions & 0 deletions docker/deployed/mainnet/api/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,25 @@
"WebhookURL": "https://discord.com/api/webhooks/${VALIDATOR_DISCORD_WEBHOOK_ID}/${VALIDATOR_DISCORD_WEBHOOK_TOKEN}"
},
"HashCalculationStep": 60
},
{
"Name": "Base",
"ChainID": 8453,
"Registry": {
"EthEndpoint": "wss://base-mainnet.g.alchemy.com/v2/${VALIDATOR_ALCHEMY_BASE_MAINNET_API_KEY}",
"ContractAddress": "0x8268F7Aba0E152B3A853e8CB4Ab9795Ec66c2b6B"
},
"EventFeed": {
"ChainAPIBackoff": "15s",
"NewBlockPollFreq": "5s",
"MinBlockDepth": 0,
"PersistEvents": true
},
"EventProcessor": {
"BlockFailedExecutionBackoff": "10s",
"DedupExecutedTxns": true
},
"HashCalculationStep": 1800
}
]
}
9 changes: 9 additions & 0 deletions pkg/client/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var ChainIDs = struct {
Arbitrum ChainID
ArbitrumNova ChainID
Filecoin ChainID
Base ChainID
EthereumSepolia ChainID
OptimismSepolia ChainID
ArbitrumSepolia ChainID
Expand All @@ -39,6 +40,7 @@ var ChainIDs = struct {
OptimismSepolia: 11155420,
ArbitrumSepolia: 421614,
BaseSepolia: 84532,
Base: 8453,
FilecoinCalibration: 314159,
PolygonAmoy: 80002,
Local: 31337,
Expand Down Expand Up @@ -90,6 +92,12 @@ var Chains = map[ChainID]Chain{
Name: "Filecoin",
ContractAddr: common.HexToAddress("0x59EF8Bf2d6c102B4c42AEf9189e1a9F0ABfD652d"),
},
ChainIDs.Base: {
Endpoint: testnetURL,
ID: ChainIDs.Base,
Name: "Base",
ContractAddr: common.HexToAddress("0x8268F7Aba0E152B3A853e8CB4Ab9795Ec66c2b6B"),
},
ChainIDs.EthereumSepolia: {
Endpoint: testnetURL,
ID: ChainIDs.EthereumSepolia,
Expand Down Expand Up @@ -151,6 +159,7 @@ var AlchemyURLs = map[ChainID]string{
ChainIDs.ArbitrumSepolia: "https://arb-sepolia.g.alchemy.com/v2/%s",
ChainIDs.Arbitrum: "https://arb-mainnet.g.alchemy.com/v2/%s",
ChainIDs.BaseSepolia: "https://base-sepolia.g.alchemy.com/v2/%s",
ChainIDs.Base: "https://base-mainnet.g.alchemy.com/v2/%s",
ChainIDs.PolygonAmoy: "https://polygon-amoy.g.alchemy.com/v2/%s",
ChainIDs.Polygon: "https://polygon-mainnet.g.alchemy.com/v2/%s",
}
Expand Down

0 comments on commit 15ff8d6

Please sign in to comment.