Skip to content

Commit

Permalink
drop polygon mumbai
Browse files Browse the repository at this point in the history
Signed-off-by: avichalp <[email protected]>
  • Loading branch information
avichalp committed Apr 11, 2024
1 parent db0ac5f commit 4ed4f1d
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 40 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ This would result in having four tables—one per chain:
- `healthbot_11155111_{tableID}` (Ethereum Sepolia)
- `healthbot_11155420_{tableID}` (Optimism Sepolia)
- `healthbot_421614_{tableID}` (Arbitrum Sepolia)
- `healthbot_80001_{tableID}` (Polygon Mumbai)
- `healthbot_314159_{tableID}` (Filecoin Calibration)

You should create a file `.env_healthbot` in the `docker/deployed/testnet/healthbot` folder with the following content (an example is provided with `.env_healthbot.example`):
Expand All @@ -347,7 +346,6 @@ You should create a file `.env_healthbot` in the `docker/deployed/testnet/health
HEALTHBOT_ETHEREUM_SEPOLIA_TABLE=healthbot_11155111_{tableID}
HEALTHBOT_OPTIMISM_SEPOLIA_TABLE=healthbot_11155420_{tableID}
HEALTHBOT_ARBITRUM_SEPOLIA_TABLE=healthbot_421614_{tableID}
HEALTHBOT_POLYGON_MUMBAI_TABLE=healthbot_80001_{tableID}
HEALTHBOT_FILECOIN_CALIBRATION_TABLE=healthbot_314159_{tableID}
```

Expand Down
1 change: 0 additions & 1 deletion docker/deployed/testnet/api/.env_validator.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
VALIDATOR_ALCHEMY_ETHEREUM_SEPOLIA_API_KEY=
VALIDATOR_GLIF_FILECOIN_CALIBRATION_API_KEY=
VALIDATOR_ALCHEMY_POLYGON_MUMBAI_API_KEY=
VALIDATOR_ALCHEMY_ARBITRUM_SEPOLIA_API_KEY=
VALIDATOR_ALCHEMY_OPTIMISM_SEPOLIA_API_KEY=
METRICS_HUB_API_KEY=
19 changes: 0 additions & 19 deletions docker/deployed/testnet/api/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,6 @@
},
"HashCalculationStep": 150
},
{
"Name": "Polygon Mumbai",
"ChainID": 80001,
"Registry": {
"EthEndpoint": "wss://polygon-mumbai.g.alchemy.com/v2/${VALIDATOR_ALCHEMY_POLYGON_MUMBAI_API_KEY}",
"ContractAddress": "0x4b48841d4b32C4650E4ABc117A03FE8B51f38F68"
},
"EventFeed": {
"ChainAPIBackoff": "15s",
"NewBlockPollFreq": "5s",
"MinBlockDepth": 1,
"PersistEvents": true
},
"EventProcessor": {
"BlockFailedExecutionBackoff": "10s",
"DedupExecutedTxns": true
},
"HashCalculationStep": 360
},
{
"Name": "Arbitrum Sepolia",
"ChainID": 421614,
Expand Down
3 changes: 0 additions & 3 deletions docker/deployed/testnet/healthbot/.env_healthbot.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ HEALTHBOT_FILECOIN_HYPERSPACE_TABLE=
HEALTHBOT_ETHEREUM_GOERLI_PRIVATE_KEY=
HEALTHBOT_ALCHEMY_ETHEREUM_GOERLI_API_KEY=
HEALTHBOT_ETHEREUM_GOERLI_TABLE=
HEALTHBOT_POLYGON_MUMBAI_PRIVATE_KEY=
HEALTHBOT_ALCHEMY_POLYGON_MUMBAI_API_KEY=
HEALTHBOT_POLYGON_MUMBAI_TABLE=
HEALTHBOT_ARBITRUM_GOERLI_PRIVATE_KEY=
HEALTHBOT_ALCHEMY_ARBITRUM_GOERLI_API_KEY=
HEALTHBOT_ARBITRUM_GOERLI_TABLE=
Expand Down
18 changes: 4 additions & 14 deletions pkg/client/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ var ChainIDs = struct {
OptimismSepolia ChainID
ArbitrumSepolia ChainID
FilecoinCalibration ChainID
PolygonMumbai ChainID
Local ChainID
}{
Ethereum: 1,
Expand All @@ -38,7 +37,6 @@ var ChainIDs = struct {
OptimismSepolia: 11155420,
ArbitrumSepolia: 421614,
FilecoinCalibration: 314159,
PolygonMumbai: 80001,
Local: 31337,
}

Expand Down Expand Up @@ -112,12 +110,6 @@ var Chains = map[ChainID]Chain{
Name: "Filecoin Calibration",
ContractAddr: common.HexToAddress("0x030BCf3D50cad04c2e57391B12740982A9308621"),
},
ChainIDs.PolygonMumbai: {
Endpoint: testnetURL,
ID: ChainIDs.PolygonMumbai,
Name: "Polygon Mumbai",
ContractAddr: common.HexToAddress("0x4b48841d4b32C4650E4ABc117A03FE8B51f38F68"),
},
ChainIDs.Local: {
Endpoint: localURL,
ID: ChainIDs.Local,
Expand All @@ -128,11 +120,10 @@ var Chains = map[ChainID]Chain{

// InfuraURLs contains the URLs for supported chains for Infura.
var InfuraURLs = map[ChainID]string{
ChainIDs.Ethereum: "https://mainnet.infura.io/v3/%s",
ChainIDs.Optimism: "https://optimism-mainnet.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",
ChainIDs.Ethereum: "https://mainnet.infura.io/v3/%s",
ChainIDs.Optimism: "https://optimism-mainnet.infura.io/v3/%s",
ChainIDs.Arbitrum: "https://arbitrum-mainnet.infura.io/v3/%s",
ChainIDs.Polygon: "https://polygon-mainnet.infura.io/v3/%s",
}

// AlchemyURLs contains the URLs for supported chains for Alchemy.
Expand All @@ -143,7 +134,6 @@ 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.PolygonMumbai: "https://polygon-mumbai.g.alchemy.com/v2/%s",
ChainIDs.Polygon: "https://polygon-mainnet.g.alchemy.com/v2/%s",
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/client/v1/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/textileio/go-tableland/pkg/wallet"
)

var defaultChain = client.Chains[client.ChainIDs.PolygonMumbai]
var defaultChain = client.Chains[client.ChainIDs.EthereumSepolia]

// Client is the Tableland client.
type Client struct {
Expand Down

0 comments on commit 4ed4f1d

Please sign in to comment.