Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add base mainnet config #626

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading