Skip to content

Commit

Permalink
Merge pull request #624 from tablelandnetwork/avichalp/base-sepolia
Browse files Browse the repository at this point in the history
Add base config
  • Loading branch information
avichalp authored May 31, 2024
2 parents 179520f + 1672686 commit b53fd46
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
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": "0xA85aAE9f0Aec5F5638E5F13840797303Ab29c9f9"
},
"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("0xA85aAE9f0Aec5F5638E5F13840797303Ab29c9f9"),
},
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

0 comments on commit b53fd46

Please sign in to comment.