Skip to content

Commit

Permalink
Merge pull request #104 from blocto/feat/polygon-testnet
Browse files Browse the repository at this point in the history
Feat/polygon testnet
  • Loading branch information
sanyu1225 authored May 3, 2024
2 parents 92c96fa + a3801ff commit 2e2ff20
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

.env
.env

# IntelijIDEA
.idea
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const ContractInfos: ContractInfosType = {
},
[EvmChainId.PolygonTestnet]: {
abi: valueDappAbi,
address: "0x009c403BdFaE357d82AAef2262a163287c30B739",
address: "0x5cd3253E1F0A3b3EEA0562EA51EFCD86C04231d3",
},
[EvmChainId.Avalanche]: {
abi: valueDappAbi,
Expand Down
6 changes: 3 additions & 3 deletions src/services/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
2 changes: 1 addition & 1 deletion src/types/ChainTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export enum EvmChainId {
Bsc = "0x38",
BscTestnet = "0x61",
Polygon = "0x89",
PolygonTestnet = "0x13881",
PolygonTestnet = "0x13882",
Avalanche = "0xa86a",
AvalancheTestnet = "0xa869",
Arbitrum = "0xa4b1",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2e2ff20

Please sign in to comment.