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 config #624

Merged
merged 3 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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/testnet/api/.env_validator.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ VALIDATOR_GLIF_FILECOIN_CALIBRATION_API_KEY=
VALIDATOR_ALCHEMY_POLYGON_AMOY_API_KEY=
VALIDATOR_ALCHEMY_ARBITRUM_SEPOLIA_API_KEY=
VALIDATOR_ALCHEMY_OPTIMISM_SEPOLIA_API_KEY=
VALIDATOR_ALCHEMY_BASE_SEPOLIA_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": 1800
},
{
"Name": "Base Sepolia",
"ChainID": 84532,
"Registry": {
"EthEndpoint": "wss://base-sepolia.g.alchemy.com/v2/{VALIDATOR_ALCHEMY_BASE_SEPOLIA_API_KEY}",
"ContractAddress": "TODO"
},
"EventFeed": {
"ChainAPIBackoff": "15s",
"NewBlockPollFreq": "5s",
"MinBlockDepth": 0,
"PersistEvents": true
},
"EventProcessor": {
"BlockFailedExecutionBackoff": "10s",
"DedupExecutedTxns": true
},
"HashCalculationStep": 1800
},
{
"Name": "Filecoin Calibration",
"ChainID": 314159,
Expand Down
9 changes: 9 additions & 0 deletions pkg/client/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var ChainIDs = struct {
EthereumSepolia ChainID
OptimismSepolia ChainID
ArbitrumSepolia ChainID
BaseSepolia ChainID
FilecoinCalibration ChainID
PolygonAmoy ChainID
Local ChainID
Expand All @@ -37,6 +38,7 @@ var ChainIDs = struct {
EthereumSepolia: 11155111,
OptimismSepolia: 11155420,
ArbitrumSepolia: 421614,
BaseSepolia: 84532,
FilecoinCalibration: 314159,
PolygonAmoy: 80002,
Local: 31337,
Expand Down Expand Up @@ -106,6 +108,12 @@ var Chains = map[ChainID]Chain{
Name: "Arbitrum Sepolia",
ContractAddr: common.HexToAddress("0x223A74B8323914afDC3ff1e5005564dC17231d6e"),
},
ChainIDs.BaseSepolia: {
Endpoint: testnetURL,
ID: ChainIDs.BaseSepolia,
Name: "Base Sepolia",
ContractAddr: common.HexToAddress("TODO"),
},
ChainIDs.FilecoinCalibration: {
Endpoint: testnetURL,
ID: ChainIDs.FilecoinCalibration,
Expand Down Expand Up @@ -142,6 +150,7 @@ var AlchemyURLs = map[ChainID]string{
ChainIDs.Optimism: "https://opt-mainnet.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.BaseSepolia: "https://base-sepolia.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