From 6608f5791b69d7fcf8e779bb8269c6d12e79c084 Mon Sep 17 00:00:00 2001 From: sanyu1225 Date: Mon, 29 Apr 2024 15:59:58 +0800 Subject: [PATCH 1/3] feat: migration testnet polygon_mumbai to polygon_amoy --- .gitignore | 5 ++++- src/services/evm.ts | 6 +++--- src/types/ChainTypes.ts | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 532eddc..2ac3efa 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,7 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -.env \ No newline at end of file +.env + +# IntelijIDEA +.idea \ No newline at end of file diff --git a/src/services/evm.ts b/src/services/evm.ts index e3fa3aa..39cfe4c 100644 --- a/src/services/evm.ts +++ b/src/services/evm.ts @@ -75,9 +75,9 @@ export const supportedChains = [ environment: "mainnet", }, { - name: "Polygon Testnet", - chainId: "0x13881", - rpcUrls: ["https://rpc-mumbai.maticvigil.com/"], + name: "Polygon Amoy Testnet", + chainId: "0x13882", + rpcUrls: ["https://rpc-amoy.polygon.technology/"], faucet: "https://faucet.polygon.technology/", environment: "testnet", }, diff --git a/src/types/ChainTypes.ts b/src/types/ChainTypes.ts index 8f2d1ce..6867071 100644 --- a/src/types/ChainTypes.ts +++ b/src/types/ChainTypes.ts @@ -18,7 +18,7 @@ export enum EvmChainId { Bsc = "0x38", BscTestnet = "0x61", Polygon = "0x89", - PolygonTestnet = "0x13881", + PolygonTestnet = "0x13882", Avalanche = "0xa86a", AvalancheTestnet = "0xa869", Arbitrum = "0xa4b1", From 684f540796618ded744987dc7544eb2235ee8fa5 Mon Sep 17 00:00:00 2001 From: sanyu1225 Date: Thu, 2 May 2024 18:14:43 +0800 Subject: [PATCH 2/3] feat: update polygon_test contract addr --- src/contracts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contracts/index.ts b/src/contracts/index.ts index fc9538e..6783171 100644 --- a/src/contracts/index.ts +++ b/src/contracts/index.ts @@ -27,7 +27,7 @@ export const ContractInfos: ContractInfosType = { }, [EvmChainId.PolygonTestnet]: { abi: valueDappAbi, - address: "0x009c403BdFaE357d82AAef2262a163287c30B739", + address: "0x5cd3253E1F0A3b3EEA0562EA51EFCD86C04231d3", }, [EvmChainId.Avalanche]: { abi: valueDappAbi, From a3801ffb5c36119d9730c389caecfe88e1c5151f Mon Sep 17 00:00:00 2001 From: sanyu1225 Date: Fri, 3 May 2024 16:55:04 +0800 Subject: [PATCH 3/3] feat: update sdk version --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d7e395b..29a270f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "dependencies": { "@blocto/dappauth": "^2.1.0", "@blocto/fcl": "^1.0.0-alpha.1", - "@blocto/sdk": "^0.10.0-beta.1", + "@blocto/sdk": "^0.10.2", "@chakra-ui/icons": "^1.1.1", "@chakra-ui/react": "^1.7.4", "@emotion/react": "^11", diff --git a/yarn.lock b/yarn.lock index 8befc61..950a516 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1407,10 +1407,10 @@ deepmerge "^4.2.2" sha3 "^2.1.4" -"@blocto/sdk@^0.10.0-beta.0": - version "0.10.0-beta.0" - resolved "https://registry.yarnpkg.com/@blocto/sdk/-/sdk-0.10.0-beta.0.tgz#794c300cafab5ab864dc1051ff5826c0f50d983d" - integrity sha512-McoZ+hGFqw7XqcCjhE3/IOLZiIGJw5Wxed0BkgK0obnTUo89ze2H0uVfRrKwGNTBtHp3z2/U/Wqr+mpAYg8ZuQ== +"@blocto/sdk@^0.10.2": + version "0.10.2" + resolved "https://registry.yarnpkg.com/@blocto/sdk/-/sdk-0.10.2.tgz#d29c652d25ac367a3c8d5fabdcb770b5cbb07c1c" + integrity sha512-9gCIUKA7/7/hMHaa5n94+OYU/3tHd6vmBgTgv4o2h3z9SFueQXAJMO4aBggH9+EldgHQDI6wHsnvytEt9AWb6g== dependencies: buffer "^6.0.3" eip1193-provider "^1.0.1"