From 4ed4f1d456ae933a55128013ce27eab755661c41 Mon Sep 17 00:00:00 2001 From: avichalp Date: Thu, 11 Apr 2024 16:02:35 +0800 Subject: [PATCH] drop polygon mumbai Signed-off-by: avichalp --- README.md | 2 -- .../testnet/api/.env_validator.example | 1 - docker/deployed/testnet/api/config.json | 19 ------------------- .../testnet/healthbot/.env_healthbot.example | 3 --- pkg/client/chains.go | 18 ++++-------------- pkg/client/v1/client.go | 2 +- 6 files changed, 5 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 6beca6a7..4d7d4c86 100644 --- a/README.md +++ b/README.md @@ -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`): @@ -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} ``` diff --git a/docker/deployed/testnet/api/.env_validator.example b/docker/deployed/testnet/api/.env_validator.example index e3919bda..a8b54cca 100644 --- a/docker/deployed/testnet/api/.env_validator.example +++ b/docker/deployed/testnet/api/.env_validator.example @@ -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= diff --git a/docker/deployed/testnet/api/config.json b/docker/deployed/testnet/api/config.json index 102c7512..2b23d75d 100644 --- a/docker/deployed/testnet/api/config.json +++ b/docker/deployed/testnet/api/config.json @@ -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, diff --git a/docker/deployed/testnet/healthbot/.env_healthbot.example b/docker/deployed/testnet/healthbot/.env_healthbot.example index d3b1fb6c..8dccf636 100644 --- a/docker/deployed/testnet/healthbot/.env_healthbot.example +++ b/docker/deployed/testnet/healthbot/.env_healthbot.example @@ -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= diff --git a/pkg/client/chains.go b/pkg/client/chains.go index 8b31db57..c74ee2ac 100644 --- a/pkg/client/chains.go +++ b/pkg/client/chains.go @@ -25,7 +25,6 @@ var ChainIDs = struct { OptimismSepolia ChainID ArbitrumSepolia ChainID FilecoinCalibration ChainID - PolygonMumbai ChainID Local ChainID }{ Ethereum: 1, @@ -38,7 +37,6 @@ var ChainIDs = struct { OptimismSepolia: 11155420, ArbitrumSepolia: 421614, FilecoinCalibration: 314159, - PolygonMumbai: 80001, Local: 31337, } @@ -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, @@ -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. @@ -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", } diff --git a/pkg/client/v1/client.go b/pkg/client/v1/client.go index 72be9293..203b00c6 100644 --- a/pkg/client/v1/client.go +++ b/pkg/client/v1/client.go @@ -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 {