Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b734f05525 | ||
|
|
30ea9c6bf7 | ||
|
|
6de3a19b86 | ||
|
|
06e59cf916 | ||
|
|
3f3a484a3a | ||
|
|
05e52114bf | ||
|
|
1a421d3b5d | ||
|
|
97fdbc8f64 | ||
|
|
ebf4025718 | ||
|
|
a81a5285b7 | ||
|
|
95c9d56ea4 | ||
|
|
18552f3a22 | ||
|
|
9187e0f2cf | ||
|
|
20d0f53b46 | ||
|
|
0dcb15b7e6 | ||
|
|
ba49a82463 | ||
|
|
8d1b8a47e6 | ||
|
|
b90d3af5b8 | ||
|
|
c34ac468fb | ||
|
|
fefeaeef18 | ||
|
|
91c2352b03 | ||
|
|
9f454d1e08 | ||
|
|
59e5541094 | ||
|
|
8e104b443e | ||
|
|
0eed017bb9 | ||
|
|
789700cf60 | ||
|
|
570d71e8d6 | ||
|
|
961ef644d1 | ||
|
|
6fcd09ddbd | ||
|
|
a9d32f3c90 | ||
|
|
8ec0d00c75 | ||
|
+3 |
0acc530f8b | ||
|
|
7a6f516b4f | ||
|
|
7461e2a914 | ||
|
|
178609a062 | ||
|
|
8ea8f6e954 | ||
|
|
b49efc24ac | ||
|
|
6853e87a49 | ||
|
|
4197d1bf3f | ||
|
|
3faa9f21ef | ||
|
|
a75e4cc80a |
@@ -1,5 +1,35 @@
|
||||
# @thirdweb-dev/auth
|
||||
|
||||
## 4.1.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#1927](https://github.com/thirdweb-dev/js/pull/1927) [`05e52114`](https://github.com/thirdweb-dev/js/commit/05e52114bf4f0ee352f393ed20115a904a18c310) Thanks [@alecananian](https://github.com/alecananian)! - Update Fastify login route response to match Express/Next
|
||||
|
||||
- Updated dependencies [[`3f3a484a`](https://github.com/thirdweb-dev/js/commit/3f3a484a3aa6e9f784e4d44458461bac0d3d4c6b), [`a81a5285`](https://github.com/thirdweb-dev/js/commit/a81a5285b7ef4ddf47fd2779ab80ebbef4bd9e0e), [`30ea9c6b`](https://github.com/thirdweb-dev/js/commit/30ea9c6bf74b483a98592a1d8d64589b7f1b22a3), [`97fdbc8f`](https://github.com/thirdweb-dev/js/commit/97fdbc8f6443dcd08a7610e4437bd4c9d6b0e8c8)]:
|
||||
- @thirdweb-dev/wallets@2.1.2
|
||||
|
||||
## 4.1.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`20d0f53b`](https://github.com/thirdweb-dev/js/commit/20d0f53b46a2975a0a14ddaa4a377f2f758804db)]:
|
||||
- @thirdweb-dev/wallets@2.1.1
|
||||
|
||||
## 4.1.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`0acc530f`](https://github.com/thirdweb-dev/js/commit/0acc530f8bbee59672d9705724edc278bd853d9a)]:
|
||||
- @thirdweb-dev/wallets@2.1.0
|
||||
|
||||
## 4.1.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`3faa9f21`](https://github.com/thirdweb-dev/js/commit/3faa9f21efb1ae29a57747d6f0b8fb1151930ab4)]:
|
||||
- @thirdweb-dev/wallets@2.0.10
|
||||
|
||||
## 4.1.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/auth",
|
||||
"version": "4.1.1",
|
||||
"version": "4.1.5",
|
||||
"main": "dist/thirdweb-dev-auth.cjs.js",
|
||||
"module": "dist/thirdweb-dev-auth.esm.js",
|
||||
"browser": {
|
||||
|
||||
@@ -22,7 +22,9 @@ export const loginHandler = (
|
||||
schema: {
|
||||
body: LoginPayloadBodySchema,
|
||||
response: {
|
||||
200: z.any(),
|
||||
200: z.object({
|
||||
token: z.string(),
|
||||
}),
|
||||
},
|
||||
},
|
||||
handler: async (req, res) => {
|
||||
@@ -104,7 +106,8 @@ export const loginHandler = (
|
||||
},
|
||||
);
|
||||
|
||||
return res.status(200).send({ success: true });
|
||||
// Send token in body and as cookie for frontend and backend use cases
|
||||
return res.status(200).send({ token });
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @thirdweb-dev/chains
|
||||
|
||||
## 0.1.58
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#1911](https://github.com/thirdweb-dev/js/pull/1911) [`0dcb15b7`](https://github.com/thirdweb-dev/js/commit/0dcb15b7e647acd038b0ec8b1a2b200808aae00e) Thanks [@iketw](https://github.com/iketw)! - Syncs Chains
|
||||
|
||||
## 0.1.57
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#1865](https://github.com/thirdweb-dev/js/pull/1865) [`a75e4cc8`](https://github.com/thirdweb-dev/js/commit/a75e4cc80a5a36bf6baeeb40e8ae3be485d35618) Thanks [@jnsdls](https://github.com/jnsdls)! - sync chains
|
||||
|
||||
## 0.1.56
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "CHI1",
|
||||
"chainId": 100100,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",
|
||||
"width": 1800,
|
||||
"height": 1800,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://docs.gnosischain.com",
|
||||
"name": "Deprecated CHI",
|
||||
"nativeCurrency": {
|
||||
"name": "Chiado xDAI",
|
||||
"symbol": "xDAI",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 100100,
|
||||
"rpc": [],
|
||||
"shortName": "chi1",
|
||||
"slug": "deprecated-chi",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,36 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ShimmerEVM",
|
||||
"chainId": 1071,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "explorer",
|
||||
"url": "https://explorer.evm.testnet.shimmer.network",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [
|
||||
"https://evm-toolkit.evm.testnet.shimmer.network",
|
||||
"https://evm-faucet.testnet.shimmer.network"
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreibky2sy6qhi6arktayvologkrgu5kudpgdxfkx4uosbvmstz7v4di",
|
||||
"width": 720,
|
||||
"height": 720,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://shimmer.network",
|
||||
"name": "ShimmerEVM Testnet Deprecated",
|
||||
"nativeCurrency": {
|
||||
"name": "SMR",
|
||||
"symbol": "SMR",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1071,
|
||||
"rpc": [],
|
||||
"shortName": "shimmerevm-testnet-deprecated",
|
||||
"slug": "shimmerevm-testnet-deprecated",
|
||||
"status": "deprecated",
|
||||
"testnet": true,
|
||||
"title": "ShimmerEVM Testnet Deprecated"
|
||||
} as const satisfies Chain;
|
||||
@@ -17,6 +17,13 @@ export default {
|
||||
"faucets": [
|
||||
"http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"
|
||||
],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://sepolia.otterscan.io",
|
||||
"name": "Sepolia",
|
||||
"nativeCurrency": {
|
||||
@@ -25,15 +32,16 @@ export default {
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 11155111,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://11155111.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://sepolia.infura.io/v3/${INFURA_API_KEY}",
|
||||
"wss://sepolia.infura.io/v3/${INFURA_API_KEY}",
|
||||
"https://rpc.sepolia.org",
|
||||
"https://rpc2.sepolia.org",
|
||||
"https://rpc-sepolia.rockx.com",
|
||||
"https://rpc.sepolia.ethpandaops.io",
|
||||
"https://sepolia.infura.io/v3/${INFURA_API_KEY}",
|
||||
"wss://sepolia.infura.io/v3/${INFURA_API_KEY}",
|
||||
"https://sepolia.gateway.tenderly.co",
|
||||
"wss://sepolia.gateway.tenderly.co",
|
||||
"https://ethereum-sepolia.publicnode.com",
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "DeBank",
|
||||
"chainId": 115,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://debank.com",
|
||||
"name": "DeBank Testnet(Deprecated)",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 115,
|
||||
"rpc": [],
|
||||
"shortName": "debank-testnet",
|
||||
"slug": "debank-testnet-deprecated",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,26 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "DeBank",
|
||||
"chainId": 116,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://debank.com",
|
||||
"name": "DeBank Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 116,
|
||||
"rpc": [],
|
||||
"shortName": "debank-mainnet",
|
||||
"slug": "debank",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -2,7 +2,19 @@ import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "FUSE",
|
||||
"chainId": 122,
|
||||
"explorers": [],
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://explorer.fuse.io",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
|
||||
"width": 551,
|
||||
"height": 540,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "MOON",
|
||||
"chainId": 1286,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"name": "Moonrock old",
|
||||
"nativeCurrency": {
|
||||
"name": "Rocs",
|
||||
"symbol": "ROC",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1286,
|
||||
"rpc": [],
|
||||
"shortName": "mrock-old",
|
||||
"slug": "moonrock-old",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -9,7 +9,10 @@ export default {
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"faucets": [
|
||||
"https://faucet.avax.network/?subnet=beam",
|
||||
"https://faucet.onbeam.com"
|
||||
],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP1559"
|
||||
@@ -24,15 +27,16 @@ export default {
|
||||
"infoURL": "https://www.onbeam.com",
|
||||
"name": "Beam Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Merit Circle",
|
||||
"symbol": "MC",
|
||||
"name": "Beam",
|
||||
"symbol": "BEAM",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 13337,
|
||||
"rpc": [
|
||||
"https://beam-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://13337.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/beam/testnet/rpc"
|
||||
"https://subnets.avax.network/beam/testnet/rpc",
|
||||
"wss://subnets.avax.network/beam/testnet/ws"
|
||||
],
|
||||
"shortName": "beam-testnet",
|
||||
"slug": "beam-testnet",
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Polygon",
|
||||
"chainId": 1402,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://explorer.public.zkevm-test.net",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"infoURL": "https://polygon.technology/solutions/polygon-zkevm/",
|
||||
"name": "Polygon zkEVM Testnet old",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1402,
|
||||
"rpc": [],
|
||||
"shortName": "zkevmtest",
|
||||
"slug": "polygon-zkevm-testnet-old",
|
||||
"status": "deprecated",
|
||||
"testnet": true,
|
||||
"title": "Polygon zkEVM Testnet"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Polygon",
|
||||
"chainId": 1422,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Polygon zkEVM explorer",
|
||||
"url": "https://explorer.public.zkevm-test.net",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"infoURL": "https://polygon.technology/solutions/polygon-zkevm/",
|
||||
"name": "Polygon zkEVM Testnet Pre Audit-Upgraded",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1422,
|
||||
"rpc": [],
|
||||
"shortName": "testnet-zkEVM-mango-pre-audit-upgraded",
|
||||
"slug": "polygon-zkevm-testnet-pre-audit-upgraded",
|
||||
"status": "deprecated",
|
||||
"testnet": true,
|
||||
"title": "Polygon zkEVM Testnet Pre Audit-Upgraded"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,35 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Yuma",
|
||||
"chainId": 1662,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP155"
|
||||
},
|
||||
{
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",
|
||||
"width": 1213,
|
||||
"height": 1213,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://horizen.io/",
|
||||
"name": "Horizen Yuma Testnet Deprecated",
|
||||
"nativeCurrency": {
|
||||
"name": "Testnet Zen",
|
||||
"symbol": "tZEN",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1662,
|
||||
"rpc": [],
|
||||
"shortName": "Yuma",
|
||||
"slip44": 121,
|
||||
"slug": "horizen-yuma-testnet-deprecated",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -26,5 +26,6 @@ export default {
|
||||
"shortName": "hmy-s2",
|
||||
"slip44": 1023,
|
||||
"slug": "harmony-shard-2",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -26,5 +26,6 @@ export default {
|
||||
"shortName": "hmy-s3",
|
||||
"slip44": 1023,
|
||||
"slug": "harmony-shard-3",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,36 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 167004,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://explorer.a2.taiko.xyz",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmcHdmVr5VRUJq13jnM6tgah5Ge7hn3Dm14eY6vwivJ5ui",
|
||||
"width": 288,
|
||||
"height": 258,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://taiko.xyz",
|
||||
"name": "Taiko (Alpha-2 Testnet)",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 167004,
|
||||
"rpc": [
|
||||
"https://taiko-alpha-2-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://167004.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.a2.taiko.xyz"
|
||||
],
|
||||
"shortName": "taiko-a2",
|
||||
"slug": "taiko-alpha-2-testnet",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,34 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Roll",
|
||||
"chainId": 1748,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Blockscout",
|
||||
"url": "https://roll.calderaexplorer.xyz/",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmSNKW3HsFekHrTdgt7aAukExwYeYzHZEbG49ZDLYRfkKV/roll_logo%20-%20Ellie%20Li.png",
|
||||
"width": 3600,
|
||||
"height": 3600,
|
||||
"format": ".png"
|
||||
},
|
||||
"infoURL": "https://tryroll.com/",
|
||||
"name": "Roll Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1748,
|
||||
"redFlags": [],
|
||||
"rpc": [],
|
||||
"shortName": "Roll",
|
||||
"slug": "roll-testnet",
|
||||
"testnet": true,
|
||||
"title": "Roll Testnet"
|
||||
} as const satisfies Chain;
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "okbchain",
|
||||
"chain": "xgon",
|
||||
"chainId": 195,
|
||||
"explorers": [
|
||||
{
|
||||
@@ -14,20 +14,20 @@ export default {
|
||||
],
|
||||
"features": [],
|
||||
"infoURL": "https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain",
|
||||
"name": "OKBChain Testnet",
|
||||
"name": "Xgon Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "OKBChain Global Utility Token in testnet",
|
||||
"name": "Xgon Global Utility Token in testnet",
|
||||
"symbol": "OKB",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 195,
|
||||
"rpc": [
|
||||
"https://okbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://xgon-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://195.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://okbtestrpc.okbchain.org"
|
||||
"https://testrpc.xgon.io"
|
||||
],
|
||||
"shortName": "tokb",
|
||||
"slug": "okbchain-testnet",
|
||||
"slug": "xgon-testnet",
|
||||
"status": "active",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -1,21 +1,21 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "okbchain",
|
||||
"chain": "xgon",
|
||||
"chainId": 196,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"infoURL": "https://www.okex.com/okc",
|
||||
"name": "OKBChain Mainnet",
|
||||
"infoURL": "https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain",
|
||||
"name": "Xgon Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "OKBChain Global Utility Token",
|
||||
"name": "Xgon Global Utility Token",
|
||||
"symbol": "OKB",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 196,
|
||||
"rpc": [],
|
||||
"shortName": "okb",
|
||||
"slug": "okbchain",
|
||||
"slug": "xgon",
|
||||
"status": "incubating",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,41 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "VinuChain Testnet",
|
||||
"chainId": 206,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "VinuScan Testnet",
|
||||
"url": "https://testnet.vinuscan.com",
|
||||
"standard": "none",
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreiayq7a5qncxzlilfnvpgzt4pwfxbof2qrqr2nyd2suztfummpty4i",
|
||||
"width": 2000,
|
||||
"height": 2000,
|
||||
"format": "jpg"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreidtie4srt52ry67wd3dpxhklmug2ozrawvf3jdlljveinp3frutra",
|
||||
"width": 2000,
|
||||
"height": 392,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://vitainu.org",
|
||||
"name": "VinuChain Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "VinuChain",
|
||||
"symbol": "VС",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 206,
|
||||
"rpc": [
|
||||
"https://vinuchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://206.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://vinufoundation-rpc.com"
|
||||
],
|
||||
"shortName": "VCTEST",
|
||||
"slug": "vinuchain-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -17,9 +17,9 @@ export default {
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreidtie4srt52ry67wd3dpxhklmug2ozrawvf3jdlljveinp3frutra",
|
||||
"width": 2000,
|
||||
"height": 392,
|
||||
"url": "ipfs://bafybeiderli6uaaxk7eboyf7g4abnybgrkbglmqbkmf25z57ode7zdzmvy",
|
||||
"width": 613,
|
||||
"height": 613,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://vitainu.org",
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "SOTER",
|
||||
"chainId": 218,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"infoURL": "https://www.soterone.com",
|
||||
"name": "SoterOne Mainnet old",
|
||||
"nativeCurrency": {
|
||||
"name": "SoterOne Mainnet Ether",
|
||||
"symbol": "SOTER",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 218,
|
||||
"rpc": [
|
||||
"https://soterone-old.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://218.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.soter.one"
|
||||
],
|
||||
"shortName": "SO1-old",
|
||||
"slug": "soterone-old",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,39 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "PlatON",
|
||||
"chainId": 2203181,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "PlatON explorer",
|
||||
"url": "https://devnetscan.platon.network",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [
|
||||
"https://devnet2faucet.platon.network/faucet"
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",
|
||||
"width": 180,
|
||||
"height": 180,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.platon.network",
|
||||
"name": "PlatON Dev Testnet Deprecated",
|
||||
"nativeCurrency": {
|
||||
"name": "LAT",
|
||||
"symbol": "lat",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1,
|
||||
"rpc": [
|
||||
"https://platon-dev-testnet-deprecated.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://2203181.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://devnetopenapi2.platon.network/rpc",
|
||||
"wss://devnetopenapi2.platon.network/ws"
|
||||
],
|
||||
"shortName": "platondev",
|
||||
"slug": "platon-dev-testnet-deprecated",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,25 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ASK",
|
||||
"chainId": 222,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"infoURL": "https://permission.io/",
|
||||
"name": "Permission",
|
||||
"nativeCurrency": {
|
||||
"name": "ASK",
|
||||
"symbol": "ASK",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 2221,
|
||||
"rpc": [
|
||||
"https://permission.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://222.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://blockchain-api-mainnet.permission.io/rpc"
|
||||
],
|
||||
"shortName": "ASK",
|
||||
"slip44": 2221,
|
||||
"slug": "permission",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -34,10 +34,8 @@ export default {
|
||||
"https://kava.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://2222.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://evm.kava.io",
|
||||
"https://evm2.kava.io",
|
||||
"https://kava-rpc.gateway.pokt.network",
|
||||
"wss://wevm.kava.io",
|
||||
"wss://wevm2.kava.io",
|
||||
"https://kava-evm.publicnode.com",
|
||||
"wss://kava-evm.publicnode.com"
|
||||
],
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 2357,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://blockscout.sepolia-deprecated.kroma.network",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmVpV2WET6ZrqnvvPfE9hCwoE2y5ygbPuniuugpaRoxrho",
|
||||
"width": 320,
|
||||
"height": 320,
|
||||
"format": "svg"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmVpV2WET6ZrqnvvPfE9hCwoE2y5ygbPuniuugpaRoxrho",
|
||||
"width": 320,
|
||||
"height": 320,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://kroma.network",
|
||||
"name": "(deprecated) Kroma Sepolia",
|
||||
"nativeCurrency": {
|
||||
"name": "Sepolia Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 2357,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-11155111",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://kroma.network/bridge"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rpc": [
|
||||
"https://deprecated-kroma-sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://2357.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://api.sepolia-deprecated.kroma.network"
|
||||
],
|
||||
"shortName": "deprecated-kroma-sepolia",
|
||||
"slug": "deprecated-kroma-sepolia",
|
||||
"status": "deprecated",
|
||||
"testnet": true,
|
||||
"title": "(deprecated) Kroma Testnet Sepolia"
|
||||
} as const satisfies Chain;
|
||||
@@ -10,11 +10,12 @@ export default {
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",
|
||||
"width": 3600,
|
||||
"height": 3600,
|
||||
"format": "png"
|
||||
"url": "ipfs://QmYcGHTPheBwLv9zoJfQAJ7NB6MCtXe2zV7XqPyiTJg3WP/Oasys_Large%20Logo%20Black.png",
|
||||
"width": 1250,
|
||||
"height": 1250,
|
||||
"format": ".png"
|
||||
},
|
||||
"infoURL": "https://oasys.games",
|
||||
"name": "Oasys Mainnet",
|
||||
@@ -24,6 +25,7 @@ export default {
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 248,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://248.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "DPU",
|
||||
"chainId": 2611555,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"name": "DPU Chain",
|
||||
"nativeCurrency": {
|
||||
"name": "DGS",
|
||||
"symbol": "DGS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 2611555,
|
||||
"rpc": [
|
||||
"https://dpu-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://2611555.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://sc-rpc.dpu.ac.th"
|
||||
],
|
||||
"shortName": "DPU",
|
||||
"slug": "dpu-chain",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,39 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "MCH Verse",
|
||||
"chainId": 29548,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "MCH Verse Explorer",
|
||||
"url": "https://explorer.oasys.mycryptoheroes.net",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmZZnwR1y6cU1sare2TQmwqkNDLXQxD4GdPrmHLmUoPtbU",
|
||||
"width": 4000,
|
||||
"height": 4000,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.mycryptoheroes.net/verse",
|
||||
"name": "MCH Verse Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "OAS",
|
||||
"symbol": "OAS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 29548,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-248"
|
||||
},
|
||||
"rpc": [
|
||||
"https://mch-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://29548.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.oasys.mycryptoheroes.net"
|
||||
],
|
||||
"shortName": "MCHV",
|
||||
"slug": "mch-verse",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,20 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "OGC",
|
||||
"chainId": 300,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"infoURL": "https://docs.gnosischain.com",
|
||||
"name": "(deprecated) Optimism on GC",
|
||||
"nativeCurrency": {
|
||||
"name": "xDAI",
|
||||
"symbol": "xDAI",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 300,
|
||||
"rpc": [],
|
||||
"shortName": "ogc",
|
||||
"slug": "deprecated-optimism-on-gc",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "FIL",
|
||||
"chainId": 3141,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",
|
||||
"width": 1000,
|
||||
"height": 1000,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://filecoin.io",
|
||||
"name": "Filecoin - Hyperspace testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "testnet filecoin",
|
||||
"symbol": "tFIL",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 3141,
|
||||
"rpc": [],
|
||||
"shortName": "filecoin-hyperspace",
|
||||
"slip44": 1,
|
||||
"slug": "filecoin-hyperspace-testnet",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "FIL",
|
||||
"chainId": 31415,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",
|
||||
"width": 1000,
|
||||
"height": 1000,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://filecoin.io",
|
||||
"name": "Filecoin - Wallaby testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "testnet filecoin",
|
||||
"symbol": "tFIL",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 31415,
|
||||
"rpc": [],
|
||||
"shortName": "filecoin-wallaby",
|
||||
"slip44": 1,
|
||||
"slug": "filecoin-wallaby-testnet",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,45 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "N3-Test",
|
||||
"chainId": 333333,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Nativ3 Test Explorer",
|
||||
"url": "https://scantest.nativ3.network",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmVzJDndPui6qBSeJWe5kMLA56C3KpVhqqqk9xvVKE1DGb",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://nativ3.network",
|
||||
"name": "Nativ3 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "USNT",
|
||||
"symbol": "USNT",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 333333,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-421613",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://bridgetest.nativ3.network"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rpc": [
|
||||
"https://nativ3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://333333.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpctest.nativ3.network",
|
||||
"wss://wstest.nativ3.network"
|
||||
],
|
||||
"shortName": "N3-Test",
|
||||
"slug": "nativ3-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -13,9 +13,9 @@ export default {
|
||||
"https://faucet.securechain.ai"
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://QmVNLDQ7edirox9gAehyen9gLHq64Z5532EXsLvSaVfjWh",
|
||||
"width": 65,
|
||||
"height": 65,
|
||||
"url": "ipfs://Qme2Z8VFYjhHGfLQPBnfseNpEdRfmTDy7VXqrdH4AHETJf",
|
||||
"width": 150,
|
||||
"height": 150,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://securechain.ai",
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "BTC",
|
||||
"chain": "BOTANIX",
|
||||
"chainId": 3636,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Botanix",
|
||||
"url": "https://testnet.btxtestchain.com",
|
||||
"name": "3xpl",
|
||||
"url": "https://3xpl.com/botanix",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [
|
||||
"https://faucet.btxtestchain.com"
|
||||
"https://faucet.botanixlabs.dev"
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://Qmf2iSjcrZwUDKhCVY9ZzfbSV2He2HSssbcG2yMz1mDerm",
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
"url": "ipfs://QmVE5s2pXiqdMnAcxhAmWkZYhpFB5CysypeLyPKzT4rGYe",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://btxtestchain.com",
|
||||
"infoURL": "https://botanixlabs.xyz",
|
||||
"name": "Botanix Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Botanix",
|
||||
@@ -29,9 +29,9 @@ export default {
|
||||
"rpc": [
|
||||
"https://botanix-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://3636.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://testnet-rpc.btxtestchain.com"
|
||||
"https://node.botanixlabs.dev"
|
||||
],
|
||||
"shortName": "BTCt",
|
||||
"shortName": "BTNX",
|
||||
"slug": "botanix-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -13,9 +13,9 @@ export default {
|
||||
"https://faucet.btxtestchain.com"
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://Qmf2iSjcrZwUDKhCVY9ZzfbSV2He2HSssbcG2yMz1mDerm",
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
"url": "ipfs://QmVE5s2pXiqdMnAcxhAmWkZYhpFB5CysypeLyPKzT4rGYe",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://btxtestchain.com",
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "XPLATest",
|
||||
"chainId": 3701,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "XPLA Explorer",
|
||||
"url": "https://explorer.xpla.io",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [
|
||||
"https://faucet.xpla.io"
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://Qmf4GoxfpeA5VGqu7KP5eyv1WKaCpNDbvMxq1MjQBwFWxq",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://xpla.io",
|
||||
"name": "Xpla Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "XPLA",
|
||||
"symbol": "XPLA",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 3701,
|
||||
"rpc": [
|
||||
"https://xpla-testnet-xplatest.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://3701.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://dimension-rpc.xpla.dev"
|
||||
],
|
||||
"shortName": "xplatest",
|
||||
"slug": "xpla-testnet-xplatest",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,45 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Nativ3",
|
||||
"chainId": 399,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "N3scan",
|
||||
"url": "https://scan.nativ3.network",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmVzJDndPui6qBSeJWe5kMLA56C3KpVhqqqk9xvVKE1DGb",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://nativ3.network",
|
||||
"name": "Nativ3 Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "USNT",
|
||||
"symbol": "USNT",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 399,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-42161",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://bridge.nativ3.network"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rpc": [
|
||||
"https://nativ3.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://399.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.nativ3.network",
|
||||
"wss://ws.nativ3.network"
|
||||
],
|
||||
"shortName": "N3",
|
||||
"slug": "nativ3",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -9,7 +9,9 @@ export default {
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"faucets": [
|
||||
"https://faucet.onbeam.com"
|
||||
],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP1559"
|
||||
@@ -24,15 +26,16 @@ export default {
|
||||
"infoURL": "https://www.onbeam.com",
|
||||
"name": "Beam",
|
||||
"nativeCurrency": {
|
||||
"name": "Merit Circle",
|
||||
"symbol": "MC",
|
||||
"name": "Beam",
|
||||
"symbol": "BEAM",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 4337,
|
||||
"rpc": [
|
||||
"https://beam.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://4337.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/beam/mainnet/rpc"
|
||||
"https://subnets.avax.network/beam/mainnet/rpc",
|
||||
"wss://subnets.avax.network/beam/mainnet/ws"
|
||||
],
|
||||
"shortName": "beam",
|
||||
"slug": "beam",
|
||||
|
||||
@@ -34,7 +34,7 @@ export default {
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://xinfin.org",
|
||||
"name": "XinFin XDC Network",
|
||||
"name": "XDC Network",
|
||||
"nativeCurrency": {
|
||||
"name": "XinFin",
|
||||
"symbol": "XDC",
|
||||
@@ -42,7 +42,7 @@ export default {
|
||||
},
|
||||
"networkId": 50,
|
||||
"rpc": [
|
||||
"https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://50.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://erpc.xinfin.network",
|
||||
"https://rpc.xinfin.network",
|
||||
@@ -50,6 +50,6 @@ export default {
|
||||
"https://rpc-xdc.icecreamswap.com"
|
||||
],
|
||||
"shortName": "xdc",
|
||||
"slug": "xinfin-xdc-network",
|
||||
"slug": "xdc-network",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,31 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 5003,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://explorer.sepolia.mantle.xyz",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [
|
||||
"https://faucet.sepolia.mantle.xyz"
|
||||
],
|
||||
"infoURL": "https://mantle.xyz",
|
||||
"name": "Mantle Sepolia Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Sepolia Mantle",
|
||||
"symbol": "MNT",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 5003,
|
||||
"rpc": [
|
||||
"https://mantle-sepolia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://5003.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.sepolia.mantle.xyz"
|
||||
],
|
||||
"shortName": "mnt-sep",
|
||||
"slug": "mantle-sepolia-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,49 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Electroneum",
|
||||
"chainId": 52014,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://blockexplorer.electroneum.com",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmVgFqXA3kkCrVYGcWFF7Mhx8JUSe9vSCauNamuKWSvCym",
|
||||
"width": 1000,
|
||||
"height": 1000,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP155"
|
||||
},
|
||||
{
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://QmVgFqXA3kkCrVYGcWFF7Mhx8JUSe9vSCauNamuKWSvCym",
|
||||
"width": 1000,
|
||||
"height": 1000,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://electroneum.com",
|
||||
"name": "Electroneum Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Electroneum",
|
||||
"symbol": "ETN",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 52014,
|
||||
"rpc": [
|
||||
"https://electroneum.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://52014.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://api.electroneum.com"
|
||||
],
|
||||
"shortName": "etn-mainnet",
|
||||
"slug": "electroneum",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,49 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Electroneum",
|
||||
"chainId": 5201420,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://blockexplorer.thesecurityteam.rocks",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmVgFqXA3kkCrVYGcWFF7Mhx8JUSe9vSCauNamuKWSvCym",
|
||||
"width": 1000,
|
||||
"height": 1000,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP155"
|
||||
},
|
||||
{
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://QmVgFqXA3kkCrVYGcWFF7Mhx8JUSe9vSCauNamuKWSvCym",
|
||||
"width": 1000,
|
||||
"height": 1000,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://electroneum.com",
|
||||
"name": "Electroneum Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Electroneum",
|
||||
"symbol": "ETN",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 5201420,
|
||||
"rpc": [
|
||||
"https://electroneum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://5201420.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://api.electroneum.com"
|
||||
],
|
||||
"shortName": "etn-testnet",
|
||||
"slug": "electroneum-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "FIRE",
|
||||
"chainId": 5290,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://thefirechain.com",
|
||||
"name": "Firechain Mainnet Old",
|
||||
"nativeCurrency": {
|
||||
"name": "Firechain",
|
||||
"symbol": "FIRE",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 5290,
|
||||
"rpc": [
|
||||
"https://firechain-old.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://5290.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://mainnet.rpc1.thefirechain.com"
|
||||
],
|
||||
"shortName": "_old_fire",
|
||||
"slug": "firechain-old",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -4,13 +4,13 @@ export default {
|
||||
"chainId": 534352,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Blockscout",
|
||||
"url": "https://blockscout.scroll.io",
|
||||
"name": "Scrollscan",
|
||||
"url": "https://scrollscan.com",
|
||||
"standard": "EIP3091"
|
||||
},
|
||||
{
|
||||
"name": "Scrollscan",
|
||||
"url": "https://scrollscan.com",
|
||||
"name": "Blockscout",
|
||||
"url": "https://blockscout.scroll.io",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 534353,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Scroll Alpha Testnet Block Explorer",
|
||||
"url": "https://alpha-blockscout.scroll.io",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"infoURL": "https://scroll.io",
|
||||
"name": "Scroll Alpha Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 534353,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-5",
|
||||
"bridges": []
|
||||
},
|
||||
"rpc": [
|
||||
"https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://534353.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://alpha-rpc.scroll.io/l2"
|
||||
],
|
||||
"shortName": "scr-alpha",
|
||||
"slug": "scroll-alpha-testnet",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,20 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 534354,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"infoURL": "https://scroll.io",
|
||||
"name": "Scroll Pre-Alpha Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "TSETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 534354,
|
||||
"rpc": [],
|
||||
"shortName": "scr-prealpha",
|
||||
"slug": "scroll-pre-alpha-testnet",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -25,8 +25,7 @@ export default {
|
||||
"https://570.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.rollux.com",
|
||||
"https://rollux.public-rpc.com",
|
||||
"wss://rpc.rollux.com/wss",
|
||||
"https://rpc.ankr.com/rollux/${ANKR_API_KEY}"
|
||||
"wss://rpc.rollux.com/wss"
|
||||
],
|
||||
"shortName": "sys-rollux",
|
||||
"slug": "rollux",
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 588,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://stardust-explorer.metis.io",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"infoURL": "https://www.metis.io",
|
||||
"name": "Metis Stardust Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "tMetis",
|
||||
"symbol": "METIS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 588,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-4",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://bridge.metis.io"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rpc": [
|
||||
"https://metis-stardust-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://588.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://stardust.metis.io/?owner=588"
|
||||
],
|
||||
"shortName": "metis-stardust",
|
||||
"slug": "metis-stardust-testnet",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,24 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "EOS",
|
||||
"chainId": 59,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"infoURL": "https://eosargentina.io",
|
||||
"name": "EOS EVM Legacy",
|
||||
"nativeCurrency": {
|
||||
"name": "EOS",
|
||||
"symbol": "EOS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 59,
|
||||
"rpc": [
|
||||
"https://eos-evm-legacy.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://59.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://api.eosargentina.io"
|
||||
],
|
||||
"shortName": "eos-legacy",
|
||||
"slug": "eos-evm-legacy",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,24 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETC",
|
||||
"chainId": 6,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"infoURL": "https://explorer.jade.builders/?network=kotti",
|
||||
"name": "Ethereum Classic Testnet Kotti",
|
||||
"nativeCurrency": {
|
||||
"name": "Kotti Ether",
|
||||
"symbol": "KOT",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 6,
|
||||
"rpc": [
|
||||
"https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://6.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://www.ethercluster.com/kotti"
|
||||
],
|
||||
"shortName": "kot",
|
||||
"slug": "ethereum-classic-testnet-kotti",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "SIN",
|
||||
"chainId": 67390,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "siriusnetscan",
|
||||
"url": "https://siriusnet.tryethernal.com",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"infoURL": "https://macaucasinolisboa.xyz",
|
||||
"name": "SiriusNet",
|
||||
"nativeCurrency": {
|
||||
"name": "MCD",
|
||||
"symbol": "MCD",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 67390,
|
||||
"rpc": [
|
||||
"https://siriusnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://67390.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://u0tnafcv6j:o2T045sxuCNXL878RDQLp5__Zj-es2cvdjtgkl4etn0@u0v7kwtvtg-u0wj114sve-rpc.us0-aws.kaleido.io/"
|
||||
],
|
||||
"shortName": "mcl",
|
||||
"slug": "siriusnet",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -13,6 +13,12 @@ export default {
|
||||
"https://faucet.triangleplatform.com/frame"
|
||||
],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmTS1P9sh49zg5xL5BUsRLWDz3vVoJCtCNf9yN1TTnsuQ3",
|
||||
"width": 321,
|
||||
"height": 320,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://frame.xyz",
|
||||
"name": "Frame Testnet",
|
||||
"nativeCurrency": {
|
||||
@@ -25,7 +31,7 @@ export default {
|
||||
"rpc": [
|
||||
"https://frame-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://68840142.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.testnet.frame.xyz"
|
||||
"https://rpc.testnet.frame.xyz/http"
|
||||
],
|
||||
"shortName": "frame-test",
|
||||
"slug": "frame-testnet",
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Canto Tesnet",
|
||||
"chainId": 740,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Canto Tesnet Explorer (Neobase)",
|
||||
"url": "https://testnet-explorer.canto.neobase.one",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"infoURL": "https://canto.io",
|
||||
"name": "Canto Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Canto",
|
||||
"symbol": "CANTO",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 740,
|
||||
"rpc": [
|
||||
"https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://740.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://eth.plexnode.wtf/"
|
||||
],
|
||||
"shortName": "tcanto",
|
||||
"slug": "canto-testnet",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,41 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "TQF",
|
||||
"chainId": 8194,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://testnet.torusscan.com",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
|
||||
"width": 551,
|
||||
"height": 540,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreidchntjaxmq52cuqqoalpajk5ssk4p77k7n4jgywqmkpldo5qgobm",
|
||||
"width": 1200,
|
||||
"height": 1200,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://docs.toruschain.com",
|
||||
"name": "Torus Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "tTQF",
|
||||
"symbol": "TTQF",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 8194,
|
||||
"rpc": [
|
||||
"https://torus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://8194.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.testnet.toruschain.com"
|
||||
],
|
||||
"shortName": "ttqf",
|
||||
"slug": "torus-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,20 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "CLO",
|
||||
"chainId": 821,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"infoURL": "https://callisto.network",
|
||||
"name": "Callisto Testnet Deprecated",
|
||||
"nativeCurrency": {
|
||||
"name": "Callisto Testnet Ether",
|
||||
"symbol": "TCLO",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 2,
|
||||
"rpc": [],
|
||||
"shortName": "tclo",
|
||||
"slug": "callisto-testnet-deprecated",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,32 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "GWT",
|
||||
"chainId": 868455272153094,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "GWScan Block Explorer",
|
||||
"url": "https://v1.aggron.gwscan.com",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [
|
||||
"https://homura.github.io/light-godwoken"
|
||||
],
|
||||
"infoURL": "https://www.nervos.org",
|
||||
"name": "Godwoken Testnet (V1)",
|
||||
"nativeCurrency": {
|
||||
"name": "CKB",
|
||||
"symbol": "CKB",
|
||||
"decimals": 8
|
||||
},
|
||||
"networkId": 868455272153094,
|
||||
"rpc": [
|
||||
"https://godwoken-testnet-v1-gw-testnet-v1-deprecated.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://868455272153094.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://godwoken-testnet-web3-v1-rpc.ckbapp.dev"
|
||||
],
|
||||
"shortName": "gw-testnet-v1-deprecated",
|
||||
"slug": "godwoken-testnet-v1-gw-testnet-v1-deprecated",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,36 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "TWT",
|
||||
"chainId": 894538,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "explorer",
|
||||
"url": "https://subnets-test.avax.network/thirdweb",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmXDGoJKuuwQKzY1Y7ZhgULg8hcmveu6PVaDaYQzEjKwkQ/Thirdweb-Icon-Black-BG.png",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"name": "thirdweb test subnet",
|
||||
"nativeCurrency": {
|
||||
"name": "TWT",
|
||||
"symbol": "TWT",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 894538,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://thirdweb-test-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://894538.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/thirdweb/testnet/rpc"
|
||||
],
|
||||
"shortName": "twt",
|
||||
"slug": "thirdweb-test-subnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,28 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "FIRE",
|
||||
"chainId": 9170,
|
||||
"explorers": [],
|
||||
"faucets": [
|
||||
"https://faucet.thefirechain.com"
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://thefirechain.com",
|
||||
"name": "Rinia Testnet Old",
|
||||
"nativeCurrency": {
|
||||
"name": "Firechain",
|
||||
"symbol": "FIRE",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 9170,
|
||||
"rpc": [],
|
||||
"shortName": "_old_tfire",
|
||||
"slug": "rinia-testnet-old",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,42 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "XCAP",
|
||||
"chainId": 9322252,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://xcap-mainnet.explorer.xcap.network",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
|
||||
"width": 551,
|
||||
"height": 540,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmeTj6tfaw9qf9wnEUQh7PnCpNWyvm56e7kY35kANRWNxj",
|
||||
"width": 1600,
|
||||
"height": 1600,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://xcap.network/",
|
||||
"name": "XCAP",
|
||||
"nativeCurrency": {
|
||||
"name": "Gas",
|
||||
"symbol": "GAS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 9322252,
|
||||
"rpc": [
|
||||
"https://xcap.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://9322252.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://xcap-mainnet.relay.xcap.network/znzvh2ueyvm2yts5fv5gnul395jbkfb2/rpc1"
|
||||
],
|
||||
"shortName": "xcap",
|
||||
"slug": "xcap",
|
||||
"testnet": false,
|
||||
"title": "XCAP Mainnet"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,42 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "XCAP",
|
||||
"chainId": 9322253,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://xcap-milvine.explorer.xcap.network",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
|
||||
"width": 551,
|
||||
"height": 540,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmeTj6tfaw9qf9wnEUQh7PnCpNWyvm56e7kY35kANRWNxj",
|
||||
"width": 1600,
|
||||
"height": 1600,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://xcap.network/",
|
||||
"name": "Milvine",
|
||||
"nativeCurrency": {
|
||||
"name": "Gas",
|
||||
"symbol": "GAS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 9322253,
|
||||
"rpc": [
|
||||
"https://milvine.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://9322253.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://xcap-milvine.relay.xcap.network/zj5l55ftsgi027kz4nf14vs8d89inego/rpc1"
|
||||
],
|
||||
"shortName": "milv",
|
||||
"slug": "milvine",
|
||||
"testnet": true,
|
||||
"title": "XCAP Testnet Milvine"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "tPLS",
|
||||
"chainId": 940,
|
||||
"explorers": [],
|
||||
"faucets": [
|
||||
"https://faucet.v2.testnet.pulsechain.com/"
|
||||
],
|
||||
"infoURL": "https://pulsechain.com/",
|
||||
"name": "PulseChain Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Test Pulse",
|
||||
"symbol": "tPLS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 940,
|
||||
"rpc": [
|
||||
"https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://940.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.v2.testnet.pulsechain.com/",
|
||||
"wss://rpc.v2.testnet.pulsechain.com/"
|
||||
],
|
||||
"shortName": "tpls",
|
||||
"slug": "pulsechain-testnet",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "t2bPLS",
|
||||
"chainId": 941,
|
||||
"explorers": [],
|
||||
"faucets": [
|
||||
"https://faucet.v2b.testnet.pulsechain.com/"
|
||||
],
|
||||
"infoURL": "https://pulsechain.com/",
|
||||
"name": "PulseChain Testnet v2b",
|
||||
"nativeCurrency": {
|
||||
"name": "Test Pulse",
|
||||
"symbol": "tPLS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 941,
|
||||
"rpc": [
|
||||
"https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://941.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.v2b.testnet.pulsechain.com/",
|
||||
"wss://rpc.v2b.testnet.pulsechain.com/"
|
||||
],
|
||||
"shortName": "t2bpls",
|
||||
"slug": "pulsechain-testnet-v2b",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "t3PLS",
|
||||
"chainId": 942,
|
||||
"explorers": [],
|
||||
"faucets": [
|
||||
"https://faucet.v3.testnet.pulsechain.com/"
|
||||
],
|
||||
"infoURL": "https://pulsechain.com/",
|
||||
"name": "PulseChain Testnet v3",
|
||||
"nativeCurrency": {
|
||||
"name": "Test Pulse",
|
||||
"symbol": "tPLS",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 942,
|
||||
"rpc": [
|
||||
"https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://942.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.v3.testnet.pulsechain.com/",
|
||||
"wss://rpc.v3.testnet.pulsechain.com/"
|
||||
],
|
||||
"shortName": "t3pls",
|
||||
"slug": "pulsechain-testnet-v3",
|
||||
"status": "deprecated",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,26 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Boba BNB Mainnet",
|
||||
"chainId": 97288,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Boba BNB block explorer",
|
||||
"url": "https://blockexplorer.bnb.boba.network",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"infoURL": "https://boba.network",
|
||||
"name": "Boba BNB Mainnet Old",
|
||||
"nativeCurrency": {
|
||||
"name": "Boba Token",
|
||||
"symbol": "BOBA",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 97288,
|
||||
"rpc": [],
|
||||
"shortName": "BobaBnbOld",
|
||||
"slug": "boba-bnb-old",
|
||||
"status": "deprecated",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,35 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Ecrox Chain",
|
||||
"chainId": 988207,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Ecrox Chain Explorer",
|
||||
"url": "https://ecroxscan.com",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreibnqdlwgotu4hwx6oeu4ye3huobr3eaiuvv55n5tolyxya2q7edmq",
|
||||
"width": 300,
|
||||
"height": 300,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://ecroxcoin.io/",
|
||||
"name": "Ecrox Chain Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "ECROX COIN",
|
||||
"symbol": "ECROX",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 988207,
|
||||
"rpc": [
|
||||
"https://ecrox-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://988207.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://mainnet-rpc.ecroxscan.com/"
|
||||
],
|
||||
"shortName": "ecrox",
|
||||
"slug": "ecrox-chain",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/chains",
|
||||
"version": "0.1.56",
|
||||
"version": "0.1.58",
|
||||
"main": "dist/thirdweb-dev-chains.cjs.js",
|
||||
"module": "dist/thirdweb-dev-chains.esm.js",
|
||||
"browser": {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,5 +1,46 @@
|
||||
# thirdweb
|
||||
|
||||
## 0.13.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#1918](https://github.com/thirdweb-dev/js/pull/1918) [`95c9d56e`](https://github.com/thirdweb-dev/js/commit/95c9d56ea47ef57113679196efe8f9114c6fbb21) Thanks [@saminacodes](https://github.com/saminacodes)! - Fix url redirect for pre-built deploy command
|
||||
|
||||
- Updated dependencies [[`3f3a484a`](https://github.com/thirdweb-dev/js/commit/3f3a484a3aa6e9f784e4d44458461bac0d3d4c6b), [`05e52114`](https://github.com/thirdweb-dev/js/commit/05e52114bf4f0ee352f393ed20115a904a18c310), [`a81a5285`](https://github.com/thirdweb-dev/js/commit/a81a5285b7ef4ddf47fd2779ab80ebbef4bd9e0e), [`30ea9c6b`](https://github.com/thirdweb-dev/js/commit/30ea9c6bf74b483a98592a1d8d64589b7f1b22a3), [`97fdbc8f`](https://github.com/thirdweb-dev/js/commit/97fdbc8f6443dcd08a7610e4437bd4c9d6b0e8c8), [`3f3a484a`](https://github.com/thirdweb-dev/js/commit/3f3a484a3aa6e9f784e4d44458461bac0d3d4c6b)]:
|
||||
- @thirdweb-dev/wallets@2.1.2
|
||||
- @thirdweb-dev/auth@4.1.5
|
||||
- @thirdweb-dev/storage@2.0.3
|
||||
- @thirdweb-dev/sdk@4.0.12
|
||||
|
||||
## 0.13.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`0dcb15b7`](https://github.com/thirdweb-dev/js/commit/0dcb15b7e647acd038b0ec8b1a2b200808aae00e), [`fefeaeef`](https://github.com/thirdweb-dev/js/commit/fefeaeef18f52a75462c43da8b85a77975d32e01), [`20d0f53b`](https://github.com/thirdweb-dev/js/commit/20d0f53b46a2975a0a14ddaa4a377f2f758804db), [`91c2352b`](https://github.com/thirdweb-dev/js/commit/91c2352b03d7cf1c3cbbbc98846f248b0f707ea7)]:
|
||||
- @thirdweb-dev/chains@0.1.58
|
||||
- @thirdweb-dev/sdk@4.0.11
|
||||
- @thirdweb-dev/wallets@2.1.1
|
||||
- @thirdweb-dev/auth@4.1.4
|
||||
|
||||
## 0.13.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`a9d32f3c`](https://github.com/thirdweb-dev/js/commit/a9d32f3c90251a459e17a19eca803bbfdeeaeb79), [`0acc530f`](https://github.com/thirdweb-dev/js/commit/0acc530f8bbee59672d9705724edc278bd853d9a)]:
|
||||
- @thirdweb-dev/sdk@4.0.10
|
||||
- @thirdweb-dev/wallets@2.1.0
|
||||
- @thirdweb-dev/auth@4.1.3
|
||||
|
||||
## 0.13.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`a75e4cc8`](https://github.com/thirdweb-dev/js/commit/a75e4cc80a5a36bf6baeeb40e8ae3be485d35618), [`3faa9f21`](https://github.com/thirdweb-dev/js/commit/3faa9f21efb1ae29a57747d6f0b8fb1151930ab4)]:
|
||||
- @thirdweb-dev/chains@0.1.57
|
||||
- @thirdweb-dev/wallets@2.0.10
|
||||
- @thirdweb-dev/sdk@4.0.9
|
||||
- @thirdweb-dev/auth@4.1.2
|
||||
|
||||
## 0.13.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "thirdweb",
|
||||
"main": "dist/cli/index.js",
|
||||
"version": "0.13.9",
|
||||
"version": "0.13.13",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -30,7 +30,7 @@ export default function generateDashboardUrl(
|
||||
const foundMapping = mapping[name as keyof typeof mapping];
|
||||
|
||||
return foundMapping
|
||||
? `https://thirdweb.com/dashboard/${foundMapping}`
|
||||
? `https://thirdweb.com/thirdweb.eth/${foundMapping}`
|
||||
: undefined;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ["thirdweb"],
|
||||
plugins: ["better-tree-shaking"],
|
||||
plugins: ["better-tree-shaking", "eslint-plugin-tsdoc"],
|
||||
rules: {
|
||||
"tsdoc/syntax": "warn",
|
||||
"better-tree-shaking/no-top-level-side-effects": "error",
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,5 +1,50 @@
|
||||
# @thirdweb-dev/react-core
|
||||
|
||||
## 4.1.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#1943](https://github.com/thirdweb-dev/js/pull/1943) [`30ea9c6b`](https://github.com/thirdweb-dev/js/commit/30ea9c6bf74b483a98592a1d8d64589b7f1b22a3) Thanks [@iketw](https://github.com/iketw)! - Adds tsdoc warnings to enforce a common comments format
|
||||
|
||||
- [#1929](https://github.com/thirdweb-dev/js/pull/1929) [`06e59cf9`](https://github.com/thirdweb-dev/js/commit/06e59cf91647e4080829d49f8cb91a4d8fdc87f7) Thanks [@iketw](https://github.com/iketw)! - Move addresses' utils to the core package
|
||||
|
||||
- Updated dependencies [[`3f3a484a`](https://github.com/thirdweb-dev/js/commit/3f3a484a3aa6e9f784e4d44458461bac0d3d4c6b), [`05e52114`](https://github.com/thirdweb-dev/js/commit/05e52114bf4f0ee352f393ed20115a904a18c310), [`a81a5285`](https://github.com/thirdweb-dev/js/commit/a81a5285b7ef4ddf47fd2779ab80ebbef4bd9e0e), [`30ea9c6b`](https://github.com/thirdweb-dev/js/commit/30ea9c6bf74b483a98592a1d8d64589b7f1b22a3), [`97fdbc8f`](https://github.com/thirdweb-dev/js/commit/97fdbc8f6443dcd08a7610e4437bd4c9d6b0e8c8), [`3f3a484a`](https://github.com/thirdweb-dev/js/commit/3f3a484a3aa6e9f784e4d44458461bac0d3d4c6b)]:
|
||||
- @thirdweb-dev/wallets@2.1.2
|
||||
- @thirdweb-dev/auth@4.1.5
|
||||
- @thirdweb-dev/storage@2.0.3
|
||||
- @thirdweb-dev/sdk@4.0.12
|
||||
|
||||
## 4.1.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`0dcb15b7`](https://github.com/thirdweb-dev/js/commit/0dcb15b7e647acd038b0ec8b1a2b200808aae00e), [`fefeaeef`](https://github.com/thirdweb-dev/js/commit/fefeaeef18f52a75462c43da8b85a77975d32e01), [`20d0f53b`](https://github.com/thirdweb-dev/js/commit/20d0f53b46a2975a0a14ddaa4a377f2f758804db), [`91c2352b`](https://github.com/thirdweb-dev/js/commit/91c2352b03d7cf1c3cbbbc98846f248b0f707ea7)]:
|
||||
- @thirdweb-dev/chains@0.1.58
|
||||
- @thirdweb-dev/sdk@4.0.11
|
||||
- @thirdweb-dev/wallets@2.1.1
|
||||
- @thirdweb-dev/auth@4.1.4
|
||||
|
||||
## 4.1.1
|
||||
|
||||
## 4.1.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`a9d32f3c`](https://github.com/thirdweb-dev/js/commit/a9d32f3c90251a459e17a19eca803bbfdeeaeb79), [`0acc530f`](https://github.com/thirdweb-dev/js/commit/0acc530f8bbee59672d9705724edc278bd853d9a)]:
|
||||
- @thirdweb-dev/sdk@4.0.10
|
||||
- @thirdweb-dev/wallets@2.1.0
|
||||
- @thirdweb-dev/auth@4.1.3
|
||||
|
||||
## 4.0.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`a75e4cc8`](https://github.com/thirdweb-dev/js/commit/a75e4cc80a5a36bf6baeeb40e8ae3be485d35618), [`3faa9f21`](https://github.com/thirdweb-dev/js/commit/3faa9f21efb1ae29a57747d6f0b8fb1151930ab4)]:
|
||||
- @thirdweb-dev/chains@0.1.57
|
||||
- @thirdweb-dev/wallets@2.0.10
|
||||
- @thirdweb-dev/sdk@4.0.9
|
||||
- @thirdweb-dev/auth@4.1.2
|
||||
|
||||
## 4.0.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-core",
|
||||
"version": "4.0.9",
|
||||
"version": "4.1.3",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-core",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -3,6 +3,7 @@ import invariant from "tiny-invariant";
|
||||
import type {
|
||||
BloctoWallet,
|
||||
CoinbaseWallet,
|
||||
CoreWallet,
|
||||
EmbeddedWallet,
|
||||
FrameWallet,
|
||||
LocalWallet,
|
||||
@@ -26,6 +27,7 @@ export type WalletId = (typeof walletIds)[keyof typeof walletIds];
|
||||
type WalletIdToWalletTypeMap = {
|
||||
metamask: MetaMaskWallet;
|
||||
coinbase: CoinbaseWallet;
|
||||
coreWallet: CoreWallet;
|
||||
rainbowWallet: RainbowWallet;
|
||||
blocto: BloctoWallet;
|
||||
frame: FrameWallet;
|
||||
|
||||
@@ -199,7 +199,7 @@ export function ThirdwebWalletProvider(
|
||||
|
||||
const walletInfo: LastConnectedWalletInfo = {
|
||||
walletId: walletConfig.id,
|
||||
connectParams,
|
||||
connectParams: connectParams || wallet.getConnectParams(),
|
||||
};
|
||||
|
||||
// if personal wallet exists, we need to replace the connectParams.personalWallet to a stringifiable version
|
||||
|
||||
@@ -43,13 +43,13 @@ export type WalletConfig<I extends WalletInstance = WalletInstance> = {
|
||||
|
||||
/**
|
||||
* If true, this wallet will be tagged as "recommended" in ConnectWallet Modal and will be shown at the top of the list
|
||||
* @default false
|
||||
* @defaultValue false
|
||||
*/
|
||||
recommended?: boolean;
|
||||
|
||||
/**
|
||||
* If the wallet can sign transactions without user interaction, set this to true.
|
||||
* @default false
|
||||
* @defaultValue false
|
||||
*/
|
||||
isHeadless?: boolean;
|
||||
};
|
||||
@@ -154,7 +154,7 @@ export type ConnectUIProps<I extends WalletInstance = WalletInstance> = {
|
||||
/**
|
||||
* Called when the wallet is connected but it's
|
||||
* part of another wallet's connection flow.
|
||||
* @param walleInstance the instance of the connected wallet
|
||||
* @param walleInstance - the instance of the connected wallet
|
||||
*/
|
||||
onLocallyConnected?: (walleInstance: WalletInstance) => void;
|
||||
};
|
||||
|
||||
@@ -28,7 +28,7 @@ import { constants, utils } from "ethers";
|
||||
import invariant from "tiny-invariant";
|
||||
|
||||
/**
|
||||
* The options to be passed as the second parameter to the {@link useClaimIneligibilityReasons}` hook.
|
||||
* The options to be passed as the second parameter to the {@link useClaimIneligibilityReasons} hook.
|
||||
*
|
||||
* @beta
|
||||
*/
|
||||
|
||||
@@ -718,7 +718,7 @@ export function useBurnNFT<TContract extends NFTContract>(
|
||||
/**
|
||||
* Set shared metadata
|
||||
* TODO add docs
|
||||
* @private
|
||||
* @internal
|
||||
*/
|
||||
export function useSetSharedMetadata<TContract extends NFTContract>(
|
||||
contract: RequiredParam<TContract>,
|
||||
|
||||
@@ -257,6 +257,13 @@ export type { ThirdwebSDKProviderProps } from "./providers/types";
|
||||
|
||||
// utils
|
||||
export { invalidateContractAndBalances } from "./utils/cache-keys";
|
||||
export {
|
||||
isEnsName,
|
||||
isPossibleEVMAddress,
|
||||
shortenAddress,
|
||||
shortenIfAddress,
|
||||
shortenString,
|
||||
} from "./utils/addresses";
|
||||
|
||||
// types
|
||||
export type {
|
||||
|
||||
@@ -1,12 +1,33 @@
|
||||
import { utils } from "ethers";
|
||||
|
||||
export function shortenString(str: string, extraShort?: true) {
|
||||
export function shortenString(str: string, extraShort: boolean = true) {
|
||||
return `${str.substring(0, extraShort ? 4 : 6)}...${str.substring(
|
||||
str.length - (extraShort ? 3 : 4),
|
||||
)}`;
|
||||
}
|
||||
|
||||
export function shortenAddress(address: string, extraShort?: true): string {
|
||||
/**
|
||||
* This function shortens an address if it is a valid EVM address.
|
||||
*
|
||||
* @param address - The address to shorten
|
||||
* @param extraShort - If true, show the first 4 and last 3 characters
|
||||
* @returns The shortened address
|
||||
*
|
||||
* @remarks
|
||||
* Note that this function will not check if the address is an ENS.
|
||||
*
|
||||
* @example Calling shortenAddress with extraShort set to true
|
||||
* ```ts
|
||||
* const address = shortenIfAddress("0x1234567890123456789012345678901234567890", true); // result will be "0x1234...890"
|
||||
* ```
|
||||
*/
|
||||
export function shortenAddress(
|
||||
address?: string,
|
||||
extraShort: boolean = true,
|
||||
): string {
|
||||
if (!address) {
|
||||
return "";
|
||||
}
|
||||
try {
|
||||
const formattedAddress = utils.getAddress(address);
|
||||
return shortenString(formattedAddress, extraShort);
|
||||
@@ -17,10 +38,24 @@ export function shortenAddress(address: string, extraShort?: true): string {
|
||||
|
||||
export function shortenIfAddress(
|
||||
address?: string | null | false,
|
||||
extraShort?: true,
|
||||
extraShort: boolean = true,
|
||||
): string {
|
||||
if (typeof address === "string" && address.length > 0) {
|
||||
if (address && utils.isAddress(address)) {
|
||||
return shortenAddress(address, extraShort);
|
||||
}
|
||||
return address || "";
|
||||
}
|
||||
|
||||
export function isEnsName(name: string): boolean {
|
||||
return name?.endsWith(".eth");
|
||||
}
|
||||
|
||||
export function isPossibleEVMAddress(address?: string, ignoreEns?: boolean) {
|
||||
if (!address) {
|
||||
return false;
|
||||
}
|
||||
if (isEnsName(address) && !ignoreEns) {
|
||||
return true;
|
||||
}
|
||||
return utils.isAddress(address);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @thirdweb-dev/react-native-compat
|
||||
|
||||
## 0.4.3
|
||||
|
||||
## 0.4.2
|
||||
|
||||
## 0.4.1
|
||||
|
||||
## 0.4.0
|
||||
|
||||
## 0.3.16
|
||||
|
||||
## 0.3.15
|
||||
|
||||
## 0.3.14
|
||||
|
||||
## 0.3.13
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native-compat",
|
||||
"description": "Shims for Thirdweb in React Native Projects",
|
||||
"version": "0.3.14",
|
||||
"version": "0.4.3",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native-compat",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ["thirdweb"],
|
||||
plugins: ["i18next"],
|
||||
plugins: ["i18next", "eslint-plugin-tsdoc"],
|
||||
rules: {
|
||||
"tsdoc/syntax": "warn",
|
||||
"i18next/no-literal-string": 2,
|
||||
},
|
||||
settings: {
|
||||
|
||||
@@ -1,5 +1,234 @@
|
||||
# @thirdweb-dev/react-native
|
||||
|
||||
## 0.4.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#1908](https://github.com/thirdweb-dev/js/pull/1908) [`18552f3a`](https://github.com/thirdweb-dev/js/commit/18552f3a225d1c46f0ff19c2b1c9cc44f84e33ac) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Add `hideSwitchToPersonalWallet` prop on `ConnectWallet` component to hide the "Switch to Personal wallet" option in the ConnectWallet modal which is shown when wallet is connected as a Smart Wallet
|
||||
|
||||
- [#1912](https://github.com/thirdweb-dev/js/pull/1912) [`1a421d3b`](https://github.com/thirdweb-dev/js/commit/1a421d3b5d837eade5b7344118a7148ddea35517) Thanks [@iketw](https://github.com/iketw)! - Adds Apple as a social sign in option for EmbeddedWallet
|
||||
|
||||
You can now do:
|
||||
|
||||
```typescript
|
||||
embeddedWallet({
|
||||
auth: {
|
||||
options: ['apple'],
|
||||
redirectUrl: 'your-apps-redirect-url://',
|
||||
},
|
||||
}),
|
||||
```
|
||||
|
||||
- [#1943](https://github.com/thirdweb-dev/js/pull/1943) [`30ea9c6b`](https://github.com/thirdweb-dev/js/commit/30ea9c6bf74b483a98592a1d8d64589b7f1b22a3) Thanks [@iketw](https://github.com/iketw)! - Adds tsdoc warnings to enforce a common comments format
|
||||
|
||||
- [#1929](https://github.com/thirdweb-dev/js/pull/1929) [`06e59cf9`](https://github.com/thirdweb-dev/js/commit/06e59cf91647e4080829d49f8cb91a4d8fdc87f7) Thanks [@iketw](https://github.com/iketw)! - Move addresses' utils to the core package
|
||||
|
||||
- [#1925](https://github.com/thirdweb-dev/js/pull/1925) [`97fdbc8f`](https://github.com/thirdweb-dev/js/commit/97fdbc8f6443dcd08a7610e4437bd4c9d6b0e8c8) Thanks [@iketw](https://github.com/iketw)! - [RN] Adds walletConnectReceiver prop to EmbeddedWallet and SmartWallet
|
||||
|
||||
You can pass your own WalletConnect projectId and metadata (highly recommended):
|
||||
|
||||
```typescript
|
||||
embeddedWallet({
|
||||
auth: {
|
||||
options: ['email', 'google'],
|
||||
redirectUrl: 'redirect-url',
|
||||
},
|
||||
walletConnectReceiver: {
|
||||
walletConnectWalletMetadata?: WCMetadata;
|
||||
walletConnectV2ProjectId?: string;
|
||||
walletConnectV2RelayUrl?: string;
|
||||
},
|
||||
}),
|
||||
|
||||
smartWallet(localWallet(), {
|
||||
factoryAddress: 'factory-address',
|
||||
gasless: true,
|
||||
walletConnectReceiver: {
|
||||
walletConnectWalletMetadata?: WCMetadata;
|
||||
walletConnectV2ProjectId?: string;
|
||||
walletConnectV2RelayUrl?: string;
|
||||
},
|
||||
}),
|
||||
```
|
||||
|
||||
You can just pass `true` to the prop and these props will default to our internal WalletConnect projectId and metadata.
|
||||
|
||||
```typescript
|
||||
embeddedWallet({
|
||||
auth: {
|
||||
options: ['email', 'google'],
|
||||
redirectUrl: 'redirect-url',
|
||||
},
|
||||
walletConnectReceiver: true
|
||||
}),
|
||||
|
||||
smartWallet(localWallet(), {
|
||||
factoryAddress: 'factory-address',
|
||||
gasless: true,
|
||||
walletConnectReceiver: true
|
||||
}),
|
||||
```
|
||||
|
||||
- [#1942](https://github.com/thirdweb-dev/js/pull/1942) [`6de3a19b`](https://github.com/thirdweb-dev/js/commit/6de3a19b86476cf5f7d67223a366379c4fdb9b74) Thanks [@iketw](https://github.com/iketw)! - Updated react-native-safe-area-context to 4.74
|
||||
|
||||
- Updated dependencies [[`3f3a484a`](https://github.com/thirdweb-dev/js/commit/3f3a484a3aa6e9f784e4d44458461bac0d3d4c6b), [`a81a5285`](https://github.com/thirdweb-dev/js/commit/a81a5285b7ef4ddf47fd2779ab80ebbef4bd9e0e), [`30ea9c6b`](https://github.com/thirdweb-dev/js/commit/30ea9c6bf74b483a98592a1d8d64589b7f1b22a3), [`06e59cf9`](https://github.com/thirdweb-dev/js/commit/06e59cf91647e4080829d49f8cb91a4d8fdc87f7), [`97fdbc8f`](https://github.com/thirdweb-dev/js/commit/97fdbc8f6443dcd08a7610e4437bd4c9d6b0e8c8), [`3f3a484a`](https://github.com/thirdweb-dev/js/commit/3f3a484a3aa6e9f784e4d44458461bac0d3d4c6b)]:
|
||||
- @thirdweb-dev/[email protected]
|
||||
- @thirdweb-dev/[email protected]
|
||||
- @thirdweb-dev/[email protected]
|
||||
- @thirdweb-dev/[email protected]
|
||||
|
||||
## 0.4.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#1893](https://github.com/thirdweb-dev/js/pull/1893) [`8e104b44`](https://github.com/thirdweb-dev/js/commit/8e104b443e4a11908be660656c525ad237115835) Thanks [@iketw](https://github.com/iketw)! - Updates Japanese translations
|
||||
|
||||
- [#1893](https://github.com/thirdweb-dev/js/pull/1893) [`8e104b44`](https://github.com/thirdweb-dev/js/commit/8e104b443e4a11908be660656c525ad237115835) Thanks [@iketw](https://github.com/iketw)! - Adds support for Japanese and Spanish
|
||||
|
||||
You can now pass 'ja' or 'es' to our ThirdwebProvider:
|
||||
|
||||
```
|
||||
import { ThirdwebProvider } from '@thirdweb-dev/react-native';
|
||||
|
||||
<ThirdwebProvider locale={'ja'}>
|
||||
<App />
|
||||
</ ThirdwebProvider>
|
||||
```
|
||||
|
||||
- [#1892](https://github.com/thirdweb-dev/js/pull/1892) [`59e55410`](https://github.com/thirdweb-dev/js/commit/59e55410942f3cb08570623f990487868aaed107) Thanks [@iketw](https://github.com/iketw)! - Deprecates magicLink in favor of embedded wallet
|
||||
|
||||
- [#1900](https://github.com/thirdweb-dev/js/pull/1900) [`9f454d1e`](https://github.com/thirdweb-dev/js/commit/9f454d1e08ebf5280a3266791d1843ddd7e24242) Thanks [@iketw](https://github.com/iketw)! - Export Locale types and improve modal title customization
|
||||
|
||||
- [#1909](https://github.com/thirdweb-dev/js/pull/1909) [`ba49a824`](https://github.com/thirdweb-dev/js/commit/ba49a82463487735dc19bf33ab2f7a3e9cce08ac) Thanks [@iketw](https://github.com/iketw)! - UI improvements
|
||||
|
||||
- Updated dependencies [[`0dcb15b7`](https://github.com/thirdweb-dev/js/commit/0dcb15b7e647acd038b0ec8b1a2b200808aae00e), [`fefeaeef`](https://github.com/thirdweb-dev/js/commit/fefeaeef18f52a75462c43da8b85a77975d32e01), [`20d0f53b`](https://github.com/thirdweb-dev/js/commit/20d0f53b46a2975a0a14ddaa4a377f2f758804db), [`91c2352b`](https://github.com/thirdweb-dev/js/commit/91c2352b03d7cf1c3cbbbc98846f248b0f707ea7)]:
|
||||
- @thirdweb-dev/[email protected]
|
||||
- @thirdweb-dev/[email protected]
|
||||
- @thirdweb-dev/[email protected]
|
||||
- @thirdweb-dev/[email protected]
|
||||
|
||||
## 0.4.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies []:
|
||||
- @thirdweb-dev/[email protected]
|
||||
|
||||
## 0.4.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#1846](https://github.com/thirdweb-dev/js/pull/1846) [`0acc530f`](https://github.com/thirdweb-dev/js/commit/0acc530f8bbee59672d9705724edc278bd853d9a) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - New API to configure authentication options on `embeddedWallet`
|
||||
|
||||
```ts
|
||||
// default - google sign in is enabled
|
||||
embeddedWallet();
|
||||
|
||||
// this is same as
|
||||
embeddedWallet({
|
||||
auth: {
|
||||
options: ["email"],
|
||||
},
|
||||
});
|
||||
|
||||
// add google sign in
|
||||
embeddedWallet({
|
||||
auth: {
|
||||
options: ["email", "google"],
|
||||
redirectUrl: "your_app://deeplink",
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#1885](https://github.com/thirdweb-dev/js/pull/1885) [`961ef644`](https://github.com/thirdweb-dev/js/commit/961ef644d1b1adaad08c071903cd53aacac50bb4) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Improved `useSmartWallet()` hook
|
||||
|
||||
Example with metamask:
|
||||
|
||||
```ts
|
||||
const { connect } = useSmartWallet(metamaskWallet(), {
|
||||
factoryAddress: factoryAddress,
|
||||
gasless: true,
|
||||
});
|
||||
|
||||
const onClick = async () => {
|
||||
// nothing to do here, all handled internally
|
||||
await connect();
|
||||
};
|
||||
```
|
||||
|
||||
```ts
|
||||
Example with localWallet:
|
||||
|
||||
const { connect } = useSmartWallet(localWallet(), {
|
||||
factoryAddress: factoryAddress,
|
||||
gasless: true,
|
||||
});
|
||||
|
||||
const onClick = async () => {
|
||||
// function to 'load' the local wallet before using it
|
||||
await connect({
|
||||
connectPersonalWallet: async (w) => {
|
||||
await w.generate();
|
||||
await w.connect();
|
||||
}
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
```ts
|
||||
Example with embeddedWallet:
|
||||
|
||||
const { connect } = useSmartWallet(embeddedWallet(), {
|
||||
factoryAddress: factoryAddress,
|
||||
gasless: true,
|
||||
});
|
||||
|
||||
const onClick = async () => {
|
||||
// function to 'auth' the embedded wallet before using it
|
||||
await connect({
|
||||
connectPersonalWallet: async (w) => {
|
||||
const authResult = await w.authenticate({ strategy: "google" });
|
||||
await w.connect({ authResult });
|
||||
}
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
- Updated dependencies [[`a9d32f3c`](https://github.com/thirdweb-dev/js/commit/a9d32f3c90251a459e17a19eca803bbfdeeaeb79), [`0acc530f`](https://github.com/thirdweb-dev/js/commit/0acc530f8bbee59672d9705724edc278bd853d9a)]:
|
||||
- @thirdweb-dev/[email protected]
|
||||
- @thirdweb-dev/[email protected]
|
||||
- @thirdweb-dev/[email protected]
|
||||
|
||||
## 0.3.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#1880](https://github.com/thirdweb-dev/js/pull/1880) [`7461e2a9`](https://github.com/thirdweb-dev/js/commit/7461e2a9145549b7e08bc34d87d44be9bcff2c07) Thanks [@iketw](https://github.com/iketw)! - Fixes wallet icons borders bug
|
||||
|
||||
- [#1878](https://github.com/thirdweb-dev/js/pull/1878) [`178609a0`](https://github.com/thirdweb-dev/js/commit/178609a0622b571560188a4266247eb342759ea1) Thanks [@iketw](https://github.com/iketw)! - Adds support for Japanese and Spanish
|
||||
|
||||
You can now pass 'ja' or 'es' to our ThirdwebProvider:
|
||||
|
||||
```
|
||||
import { ThirdwebProvider } from '@thirdweb-dev/react-native';
|
||||
|
||||
<ThirdwebProvider locale={'ja'}>
|
||||
<App />
|
||||
</ ThirdwebProvider>
|
||||
```
|
||||
|
||||
## 0.3.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`a75e4cc8`](https://github.com/thirdweb-dev/js/commit/a75e4cc80a5a36bf6baeeb40e8ae3be485d35618), [`3faa9f21`](https://github.com/thirdweb-dev/js/commit/3faa9f21efb1ae29a57747d6f0b8fb1151930ab4)]:
|
||||
- @thirdweb-dev/[email protected]
|
||||
- @thirdweb-dev/[email protected]
|
||||
- @thirdweb-dev/[email protected]
|
||||
- @thirdweb-dev/[email protected]
|
||||
|
||||
## 0.3.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</p>
|
||||
<p><strong>Powering react-native dapps.</strong></p>
|
||||
|
||||
The go to librarly for seamless Web3 integration in React Native apps.
|
||||
The go to library for seamless Web3 integration in React Native apps.
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native",
|
||||
"version": "0.3.14",
|
||||
"version": "0.4.3",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
@@ -31,7 +31,6 @@
|
||||
"@magic-sdk/provider": "17.2.0",
|
||||
"@magic-sdk/react-native-bare": "^18.5.0",
|
||||
"@paperxyz/embedded-wallet-service-sdk": "^1.2.4",
|
||||
"@react-native-community/checkbox": "^0.5.16",
|
||||
"@shopify/restyle": "^2.4.2",
|
||||
"@tanstack/react-query": "^4.33.0",
|
||||
"@thirdweb-dev/chains": "workspace:*",
|
||||
@@ -71,6 +70,7 @@
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-inclusive-language": "^2.2.0",
|
||||
"eslint-plugin-prettier": "^5.0.0",
|
||||
"eslint-plugin-tsdoc": "^0.2.16",
|
||||
"ethers": "^5.7.2",
|
||||
"expo": "^47.0.14",
|
||||
"jest": "^29.6.2",
|
||||
@@ -80,7 +80,7 @@
|
||||
"react-native-camera": "^4.2.1",
|
||||
"react-native-device-info": "10.6.0",
|
||||
"react-native-mmkv": "2.5.1",
|
||||
"react-native-safe-area-context": "4.5.3",
|
||||
"react-native-safe-area-context": "4.7.4",
|
||||
"react-native-webview": "12.1.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"typedoc": "^0.25.2",
|
||||
@@ -94,7 +94,7 @@
|
||||
"react-native-inappbrowser-reborn": "^3.7.0",
|
||||
"react-native-quick-base64": "^2.0.7",
|
||||
"react-native-quick-crypto": "^0.6.1",
|
||||
"react-native-safe-area-context": "4.5.3",
|
||||
"react-native-safe-area-context": "4.7.4",
|
||||
"react-native-webview": "12.1.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -73,7 +73,7 @@ export class noopStorage implements IAsyncStorage {
|
||||
/**
|
||||
* Returns a new instance of AsyncLocalStorage
|
||||
*
|
||||
* @param name Name to namespace the storage with
|
||||
* @param name - Name to namespace the storage with
|
||||
* @returns A new instance of AsyncLocalStorage
|
||||
*/
|
||||
export function createAsyncLocalStorage(name: string) {
|
||||
@@ -83,7 +83,7 @@ export function createAsyncLocalStorage(name: string) {
|
||||
/**
|
||||
* Returns a new instance of LocalStorage
|
||||
*
|
||||
* @param name Name to namespace the storage with
|
||||
* @param name - Name to namespace the storage with
|
||||
* @returns A new instance of LocalStorage
|
||||
*/
|
||||
export function createSyncStorage(name: string) {
|
||||
|
||||
@@ -31,7 +31,7 @@ export class SecureStorage implements ISecureStorage {
|
||||
/**
|
||||
* Returns a new instance of SecureStorage implemented by Expo SecureStore
|
||||
*
|
||||
* @param name Name to namespace the storage with
|
||||
* @param name - Name to namespace the storage with
|
||||
* @returns A new instance of SecureStorage
|
||||
*/
|
||||
export function createSecureStorage(name: string) {
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import Svg, { Path } from "react-native-svg";
|
||||
import { IconStyleProp } from "./types";
|
||||
|
||||
const CheckedIcon = ({ width, height, color }: IconStyleProp) => {
|
||||
return (
|
||||
<Svg width={width} height={height} viewBox="0 0 15 15" fill="none">
|
||||
<Path
|
||||
d="M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z"
|
||||
fill={color}
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
/>
|
||||
</Svg>
|
||||
);
|
||||
};
|
||||
|
||||
export default CheckedIcon;
|
||||
@@ -1,3 +1,14 @@
|
||||
export const APPLE_ICON = `<svg fill="#959CA0" height="40px" width="40px" version="1.1" id="Capa_1" viewBox="0 0 24 24" xml:space="preserve" stroke="#959CA0"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <g> <path d="M15.769,0c0.053,0,0.106,0,0.162,0c0.13,1.606-0.483,2.806-1.228,3.675c-0.731,0.863-1.732,1.7-3.351,1.573 c-0.108-1.583,0.506-2.694,1.25-3.561C13.292,0.879,14.557,0.16,15.769,0z"></path> <path d="M20.67,16.716c0,0.016,0,0.03,0,0.045c-0.455,1.378-1.104,2.559-1.896,3.655c-0.723,0.995-1.609,2.334-3.191,2.334 c-1.367,0-2.275-0.879-3.676-0.903c-1.482-0.024-2.297,0.735-3.652,0.926c-0.155,0-0.31,0-0.462,0 c-0.995-0.144-1.798-0.932-2.383-1.642c-1.725-2.098-3.058-4.808-3.306-8.276c0-0.34,0-0.679,0-1.019 c0.105-2.482,1.311-4.5,2.914-5.478c0.846-0.52,2.009-0.963,3.304-0.765c0.555,0.086,1.122,0.276,1.619,0.464 c0.471,0.181,1.06,0.502,1.618,0.485c0.378-0.011,0.754-0.208,1.135-0.347c1.116-0.403,2.21-0.865,3.652-0.648 c1.733,0.262,2.963,1.032,3.723,2.22c-1.466,0.933-2.625,2.339-2.427,4.74C17.818,14.688,19.086,15.964,20.67,16.716z"></path> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> </g> </g></svg>`;
|
||||
|
||||
export const FACEBOOK_ICON = `<svg xml:space="preserve" viewBox="0 0 40 40">
|
||||
<linearGradient id="a" x1="-277.375" x2="-277.375" y1="406.6018" y2="407.5726" gradientTransform="matrix(40 0 0 -39.7778 11115.001 16212.334)" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="#0062e0"/>
|
||||
<stop offset="1" stop-color="#19afff"/>
|
||||
</linearGradient>
|
||||
<path fill="url(#a)" d="M16.7 39.8C7.2 38.1 0 29.9 0 20 0 9 9 0 20 0s20 9 20 20c0 9.9-7.2 18.1-16.7 19.8l-1.1-.9h-4.4l-1.1.9z"/>
|
||||
<path fill="#fff" d="m27.8 25.6.9-5.6h-5.3v-3.9c0-1.6.6-2.8 3-2.8H29V8.2c-1.4-.2-3-.4-4.4-.4-4.6 0-7.8 2.8-7.8 7.8V20h-5v5.6h5v14.1c1.1.2 2.2.3 3.3.3 1.1 0 2.2-.1 3.3-.3V25.6h4.4z"/>
|
||||
</svg>`;
|
||||
|
||||
export const GOOGLE_ICON = `<svg height={height} viewBox="0 0 24 24" width={width}>
|
||||
<path
|
||||
d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
|
||||
|
||||
@@ -14,7 +14,11 @@ import { ConnectWalletButton } from "./ConnectWalletFlow/ConnectWalletButton";
|
||||
import { ConnectWalletButtonProps } from "./ConnectWalletFlow/ConnectWalletButton";
|
||||
import BaseButton from "./base/BaseButton";
|
||||
import Text from "./base/Text";
|
||||
import { useLocale, useUIContext } from "../providers/ui-context-provider";
|
||||
import {
|
||||
useGlobalTheme,
|
||||
useLocale,
|
||||
useUIContext,
|
||||
} from "../providers/ui-context-provider";
|
||||
import { ThemeProvider } from "../styles/ThemeProvider";
|
||||
import { SupportedTokens, defaultTokens } from "./SendFunds/defaultTokens";
|
||||
|
||||
@@ -32,7 +36,7 @@ export type ConnectWalletProps = {
|
||||
/**
|
||||
* Hide option to request testnet funds for testnets in dropdown
|
||||
*
|
||||
* @default false
|
||||
* @defaultValue false
|
||||
*/
|
||||
hideTestnetFaucet?: boolean;
|
||||
|
||||
@@ -43,7 +47,7 @@ export type ConnectWalletProps = {
|
||||
* Please, note that if you support multiple networks in your app this prop should
|
||||
* be set to `false` to allow users to switch between networks.
|
||||
*
|
||||
* @default false
|
||||
* @defaultValue false
|
||||
*/
|
||||
switchToActiveChain?: boolean;
|
||||
|
||||
@@ -65,6 +69,13 @@ export type ConnectWalletProps = {
|
||||
* ```
|
||||
*/
|
||||
displayBalanceToken?: Record<number, string>;
|
||||
|
||||
/**
|
||||
* Hide the "switch to Personal wallet" option in the wallet modal which is shown when wallet is connected to a Smart Wallet
|
||||
*
|
||||
* @defaultValue false
|
||||
*/
|
||||
hideSwitchToPersonalWallet?: boolean;
|
||||
} & ConnectWalletButtonProps;
|
||||
|
||||
export const ConnectWallet = ({
|
||||
@@ -80,7 +91,9 @@ export const ConnectWallet = ({
|
||||
termsOfServiceUrl,
|
||||
privacyPolicyUrl,
|
||||
supportedTokens,
|
||||
hideSwitchToPersonalWallet,
|
||||
}: ConnectWalletProps) => {
|
||||
const globalTheme = useGlobalTheme();
|
||||
const l = useLocale();
|
||||
const fadeAnim = useRef(new Animated.Value(0)).current;
|
||||
const address = useAddress();
|
||||
@@ -140,7 +153,10 @@ export const ConnectWallet = ({
|
||||
style={styles.connectWalletButton}
|
||||
>
|
||||
{switching ? (
|
||||
<ActivityIndicator size="small" color="buttonTextColor" />
|
||||
<ActivityIndicator
|
||||
size="small"
|
||||
color={globalTheme.colors.buttonTextColor}
|
||||
/>
|
||||
) : (
|
||||
<Text variant="bodyLarge" color="buttonTextColor">
|
||||
{l.common.switch_network}
|
||||
@@ -155,6 +171,7 @@ export const ConnectWallet = ({
|
||||
hideTestnetFaucet={hideTestnetFaucet}
|
||||
supportedTokens={supportedTokensMemo}
|
||||
displayBalanceToken={displayBalanceToken}
|
||||
hideSwitchToPersonalWallet={hideSwitchToPersonalWallet}
|
||||
/>
|
||||
)
|
||||
) : (
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { useWallet } from "@thirdweb-dev/react-core";
|
||||
import { IWalletConnectReceiver } from "@thirdweb-dev/wallets";
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import Box from "../base/Box";
|
||||
import BaseButton from "../base/BaseButton";
|
||||
@@ -14,8 +13,13 @@ import WalletConnectIcon from "../../assets/wallet-connect";
|
||||
import QrCodeIcon from "../../assets/qr-code";
|
||||
import { QRCodeScan } from "./QRCodeScan";
|
||||
import { useLocale } from "../../providers/ui-context-provider";
|
||||
import { useWalletConnectHandler } from "../../providers/context-provider";
|
||||
|
||||
const ConnectAppField = () => {
|
||||
const ConnectAppField = ({
|
||||
onConnectAppTriggered,
|
||||
}: {
|
||||
onConnectAppTriggered?: () => void;
|
||||
}) => {
|
||||
const theme = useTheme();
|
||||
const l = useLocale();
|
||||
const [showWCInput, setShowWCInput] = useState(false);
|
||||
@@ -24,22 +28,19 @@ const ConnectAppField = () => {
|
||||
const wallet = useWallet();
|
||||
const [showQRCodeScan, setShowQRCodeScan] = useState(false);
|
||||
const wcUriRef = useRef<string | undefined>();
|
||||
const walletConnectHandler = useWalletConnectHandler();
|
||||
|
||||
const getAppMeta = useCallback(() => {
|
||||
if (wallet && "isWCReceiverEnabled" in wallet) {
|
||||
const sessions = (
|
||||
wallet as unknown as IWalletConnectReceiver
|
||||
).getActiveSessions();
|
||||
if (Object.keys(sessions).length > 0) {
|
||||
setAppMeta({
|
||||
name: sessions[0].peer.metadata.name,
|
||||
iconUrl: sessions[0].peer.metadata.icons[0],
|
||||
});
|
||||
}
|
||||
const sessions = walletConnectHandler?.getActiveSessions();
|
||||
if (sessions && Object.keys(sessions).length > 0) {
|
||||
setAppMeta({
|
||||
name: sessions[0].peer.metadata.name,
|
||||
iconUrl: sessions[0].peer.metadata.icons[0],
|
||||
});
|
||||
}
|
||||
}, [wallet]);
|
||||
}, [walletConnectHandler]);
|
||||
|
||||
const onSmartWalletWCMessage = useCallback(
|
||||
const onWalletConnectMessage = useCallback(
|
||||
({ type }: { type: string }) => {
|
||||
if (type === "session_approved") {
|
||||
getAppMeta();
|
||||
@@ -52,22 +53,22 @@ const ConnectAppField = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (wallet) {
|
||||
wallet.addListener("message", onSmartWalletWCMessage);
|
||||
wallet.addListener("message", onWalletConnectMessage);
|
||||
|
||||
getAppMeta();
|
||||
}
|
||||
|
||||
return () => {
|
||||
if (wallet) {
|
||||
wallet.removeListener("message", onSmartWalletWCMessage);
|
||||
wallet.removeListener("message", onWalletConnectMessage);
|
||||
}
|
||||
};
|
||||
}, [getAppMeta, onSmartWalletWCMessage, wallet]);
|
||||
}, [getAppMeta, onWalletConnectMessage, wallet]);
|
||||
|
||||
const onConnectDappPress = () => {
|
||||
if (appMeta) {
|
||||
reset();
|
||||
(wallet as unknown as IWalletConnectReceiver).disconnectSession();
|
||||
walletConnectHandler?.disconnectSession();
|
||||
} else {
|
||||
setShowWCInput(true);
|
||||
}
|
||||
@@ -84,9 +85,9 @@ const ConnectAppField = () => {
|
||||
|
||||
const onQRCodeScan = (data: string) => {
|
||||
if (wcUriRef.current !== data && data.startsWith("wc:")) {
|
||||
wcUriRef.current = data;
|
||||
setWCUri(data);
|
||||
setShowQRCodeScan(false);
|
||||
wcUriRef.current = data;
|
||||
|
||||
onWCPress(data);
|
||||
}
|
||||
@@ -103,10 +104,14 @@ const ConnectAppField = () => {
|
||||
|
||||
const uriToUse = uri || wcUri;
|
||||
|
||||
if (uriToUse?.startsWith("wc:")) {
|
||||
(wallet as unknown as IWalletConnectReceiver).connectApp(uriToUse);
|
||||
if (!uriToUse?.startsWith("wc:")) {
|
||||
return;
|
||||
}
|
||||
|
||||
onConnectAppTriggered?.();
|
||||
|
||||
walletConnectHandler?.connectApp(uriToUse);
|
||||
|
||||
setWCUri(undefined);
|
||||
wcUriRef.current = undefined;
|
||||
};
|
||||
@@ -135,6 +140,7 @@ const ConnectAppField = () => {
|
||||
style: {
|
||||
color: theme.colors.textPrimary,
|
||||
fontFamily: theme.textVariants.defaults.fontFamily,
|
||||
flex: 1,
|
||||
},
|
||||
}}
|
||||
containerProps={{
|
||||
|
||||
+16
-4
@@ -30,6 +30,8 @@ import { SupportedTokens } from "../SendFunds/defaultTokens";
|
||||
import { ActiveDot } from "../base";
|
||||
import { EmbeddedWallet } from "../../wallets/wallets/embedded/EmbeddedWallet";
|
||||
import { useLocale } from "../../providers/ui-context-provider";
|
||||
import { isWalletConnectReceiverEnabled } from "../../wallets/utils";
|
||||
import ConnectAppField from "./ConnectAppField";
|
||||
|
||||
const MODAL_HEIGHT = Dimensions.get("window").height * 0.7;
|
||||
const DEVICE_WIDTH = Dimensions.get("window").width;
|
||||
@@ -42,6 +44,7 @@ export const ConnectWalletDetailsModal = ({
|
||||
hideTestnetFaucet,
|
||||
supportedTokens,
|
||||
displayBalanceToken,
|
||||
hideSwitchToPersonalWallet,
|
||||
}: {
|
||||
isVisible: boolean;
|
||||
onClosePress: () => void;
|
||||
@@ -50,6 +53,7 @@ export const ConnectWalletDetailsModal = ({
|
||||
hideTestnetFaucet?: boolean;
|
||||
supportedTokens: SupportedTokens;
|
||||
displayBalanceToken?: Record<number, string>;
|
||||
hideSwitchToPersonalWallet?: boolean;
|
||||
}) => {
|
||||
const l = useLocale();
|
||||
const [isExportModalVisible, setIsExportModalVisible] = useState(false);
|
||||
@@ -131,6 +135,7 @@ export const ConnectWalletDetailsModal = ({
|
||||
return (
|
||||
<SmartWalletAdditionalActions
|
||||
onExportPress={onExportLocalWalletPress}
|
||||
hideSwitchToPersonalWallet={hideSwitchToPersonalWallet}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -203,11 +208,15 @@ export const ConnectWalletDetailsModal = ({
|
||||
return null;
|
||||
}, [
|
||||
activeWallet?.walletId,
|
||||
isImportModalVisible,
|
||||
onExportLocalWalletPress,
|
||||
onWalletImported,
|
||||
smartWallet,
|
||||
l,
|
||||
onExportLocalWalletPress,
|
||||
l.connect_wallet_details.additional_actions,
|
||||
l.connect_wallet_details.backup_wallet,
|
||||
l.connect_wallet_details.import_wallet,
|
||||
l.local_wallet.this_is_a_temporary_wallet,
|
||||
isImportModalVisible,
|
||||
onWalletImported,
|
||||
hideSwitchToPersonalWallet,
|
||||
]);
|
||||
|
||||
return (
|
||||
@@ -296,6 +305,9 @@ export const ConnectWalletDetailsModal = ({
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{isWalletConnectReceiverEnabled(activeWallet) ? (
|
||||
<ConnectAppField onConnectAppTriggered={onClosePress} />
|
||||
) : null}
|
||||
{getAdditionalActions()}
|
||||
{extraRows ? extraRows({}) : null}
|
||||
{addressCopied === true ? (
|
||||
|
||||
+7
-4
@@ -10,12 +10,15 @@ import { useState } from "react";
|
||||
import BaseButton from "../base/BaseButton";
|
||||
import Box from "../base/Box";
|
||||
import { ModalHeaderTextClose } from "../base/modal/ModalHeaderTextClose";
|
||||
import { useAddress, useWallet } from "@thirdweb-dev/react-core";
|
||||
import {
|
||||
shortenAddress,
|
||||
useAddress,
|
||||
useWallet,
|
||||
} from "@thirdweb-dev/react-core";
|
||||
import { PasswordInput } from "../PasswordInput";
|
||||
import * as FileSystem from "expo-file-system";
|
||||
import { SmartWallet } from "@thirdweb-dev/wallets";
|
||||
import { usePersonalWalletAddress } from "../../wallets/hooks/usePersonalWalletAddress";
|
||||
import { shortenWalletAddress } from "../../utils/addresses";
|
||||
import { LocalWallet } from "../../wallets/wallets/LocalWallet";
|
||||
import { TWModal } from "../base/modal/TWModal";
|
||||
import { useLocale } from "../../providers/ui-context-provider";
|
||||
@@ -162,7 +165,7 @@ export const ExportLocalWalletModal = ({
|
||||
{l.local_wallet.wallet_address}
|
||||
</Text>
|
||||
<Text variant="bodySmallSecondary">
|
||||
{shortenWalletAddress(
|
||||
{shortenAddress(
|
||||
personalWalletAddress ? personalWalletAddress : address,
|
||||
)}
|
||||
</Text>
|
||||
@@ -180,7 +183,7 @@ export const ExportLocalWalletModal = ({
|
||||
onPress={onContinuePress}
|
||||
>
|
||||
{isExporting ? (
|
||||
<ActivityIndicator size="small" color="buttonTextColor" />
|
||||
<ActivityIndicator size="small" color="black" />
|
||||
) : (
|
||||
<Text variant="bodySmall" color="black">
|
||||
{l.connect_wallet_details.backup}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { RNCamera } from "react-native-camera";
|
||||
import { TWModal } from "../base/modal/TWModal";
|
||||
import { ModalHeaderTextClose } from "../base/modal/ModalHeaderTextClose";
|
||||
import { SafeAreaView } from "react-native";
|
||||
|
||||
export const QRCodeScan = ({
|
||||
isVisible,
|
||||
@@ -13,21 +14,26 @@ export const QRCodeScan = ({
|
||||
}) => {
|
||||
return (
|
||||
<TWModal isVisible={isVisible} backdropOpacity={1}>
|
||||
<ModalHeaderTextClose headerText={"Scan to Connect"} onClose={onClose} />
|
||||
<RNCamera
|
||||
style={{ flex: 1 }}
|
||||
type={RNCamera.Constants.Type.back}
|
||||
captureAudio={false}
|
||||
androidCameraPermissionOptions={{
|
||||
title: "Permission to use camera",
|
||||
message: "We need your permission to use your camera",
|
||||
buttonPositive: "Ok",
|
||||
buttonNegative: "Cancel",
|
||||
}}
|
||||
onBarCodeRead={({ data }) => {
|
||||
onQRCodeScan(data);
|
||||
}}
|
||||
/>
|
||||
<SafeAreaView style={{ flex: 1, backgroundColor: "transparent" }}>
|
||||
<ModalHeaderTextClose
|
||||
headerText={"Scan to Connect"}
|
||||
onClose={onClose}
|
||||
/>
|
||||
<RNCamera
|
||||
style={{ flex: 1 }}
|
||||
type={RNCamera.Constants.Type.back}
|
||||
captureAudio={false}
|
||||
androidCameraPermissionOptions={{
|
||||
title: "Permission to use camera",
|
||||
message: "We need your permission to use your camera",
|
||||
buttonPositive: "Ok",
|
||||
buttonNegative: "Cancel",
|
||||
}}
|
||||
onBarCodeRead={({ data }) => {
|
||||
onQRCodeScan(data);
|
||||
}}
|
||||
/>
|
||||
</SafeAreaView>
|
||||
</TWModal>
|
||||
);
|
||||
};
|
||||
|
||||
+4
-5
@@ -2,18 +2,19 @@ import { useWallet } from "@thirdweb-dev/react-core";
|
||||
import Box from "../base/Box";
|
||||
import BaseButton from "../base/BaseButton";
|
||||
import Text from "../base/Text";
|
||||
import { IWalletConnectReceiver } from "@thirdweb-dev/wallets";
|
||||
import {
|
||||
CLOSE_MODAL_STATE,
|
||||
WalletConnectSessionProposalModal,
|
||||
} from "../../utils/modalTypes";
|
||||
import { useLocale, useModalState } from "../../providers/ui-context-provider";
|
||||
import { useWalletConnectHandler } from "../../providers/context-provider";
|
||||
|
||||
export const SessionProposalModal = () => {
|
||||
const l = useLocale();
|
||||
const { modalState, setModalState } = useModalState();
|
||||
const { data: proposalData } =
|
||||
modalState as WalletConnectSessionProposalModal;
|
||||
const walletConnectHandler = useWalletConnectHandler();
|
||||
|
||||
const wallet = useWallet();
|
||||
|
||||
@@ -41,7 +42,7 @@ export const SessionProposalModal = () => {
|
||||
minWidth={100}
|
||||
borderColor="border"
|
||||
onPress={async () => {
|
||||
(wallet as unknown as IWalletConnectReceiver).rejectSession();
|
||||
walletConnectHandler?.rejectSession();
|
||||
onClose();
|
||||
}}
|
||||
>
|
||||
@@ -61,9 +62,7 @@ export const SessionProposalModal = () => {
|
||||
if (!wallet) {
|
||||
throw new Error("Wallet not connected.");
|
||||
}
|
||||
await (
|
||||
wallet as unknown as IWalletConnectReceiver
|
||||
).approveSession();
|
||||
await walletConnectHandler?.approveSession();
|
||||
onClose();
|
||||
}}
|
||||
>
|
||||
|
||||
+11
-15
@@ -1,19 +1,16 @@
|
||||
import { useChain, useWallet } from "@thirdweb-dev/react-core";
|
||||
import { shortenAddress, useChain, useWallet } from "@thirdweb-dev/react-core";
|
||||
import Box from "../base/Box";
|
||||
import BaseButton from "../base/BaseButton";
|
||||
import Text from "../base/Text";
|
||||
import {
|
||||
EIP155_SIGNING_METHODS,
|
||||
IWalletConnectReceiver,
|
||||
} from "@thirdweb-dev/wallets";
|
||||
import { EIP155_SIGNING_METHODS } from "@thirdweb-dev/wallets";
|
||||
import { useLocale, useModalState } from "../../providers/ui-context-provider";
|
||||
import {
|
||||
CLOSE_MODAL_STATE,
|
||||
WalletConnectSessionRequestModal,
|
||||
} from "../../utils/modalTypes";
|
||||
import { ActivityIndicator, Dimensions } from "react-native";
|
||||
import { shortenWalletAddress } from "../../utils/addresses";
|
||||
import { useCallback, useState } from "react";
|
||||
import { useWalletConnectHandler } from "../../providers/context-provider";
|
||||
|
||||
const getTitle = (method: string) => {
|
||||
switch (method) {
|
||||
@@ -34,6 +31,7 @@ export const SessionRequestModal = () => {
|
||||
const { modalState, setModalState } = useModalState();
|
||||
const { data: requestData } = modalState as WalletConnectSessionRequestModal;
|
||||
const [approvingRequest, setApprovingRequest] = useState(false);
|
||||
const walletConnectHandler = useWalletConnectHandler();
|
||||
|
||||
const wallet = useWallet();
|
||||
const chain = useChain();
|
||||
@@ -48,12 +46,10 @@ export const SessionRequestModal = () => {
|
||||
}
|
||||
|
||||
setApprovingRequest(true);
|
||||
(wallet as unknown as IWalletConnectReceiver)
|
||||
.approveRequest()
|
||||
.finally(() => {
|
||||
setApprovingRequest(false);
|
||||
onClose();
|
||||
});
|
||||
walletConnectHandler?.approveEIP155Request().finally(() => {
|
||||
setApprovingRequest(false);
|
||||
onClose();
|
||||
});
|
||||
};
|
||||
|
||||
const getContent = useCallback(() => {
|
||||
@@ -86,10 +82,10 @@ export const SessionRequestModal = () => {
|
||||
return (
|
||||
<Box>
|
||||
<Text variant="bodySmall" textAlign="left">
|
||||
{`${l.common.from}: ${shortenWalletAddress(from)}`}
|
||||
{`${l.common.from}: ${shortenAddress(from)}`}
|
||||
</Text>
|
||||
<Text variant="bodySmall" textAlign="left" mt="sm">
|
||||
{`${l.common.to}: ${shortenWalletAddress(to)}`}
|
||||
{`${l.common.to}: ${shortenAddress(to)}`}
|
||||
</Text>
|
||||
</Box>
|
||||
);
|
||||
@@ -126,7 +122,7 @@ export const SessionRequestModal = () => {
|
||||
minWidth={100}
|
||||
borderColor="border"
|
||||
onPress={async () => {
|
||||
(wallet as unknown as IWalletConnectReceiver).rejectRequest();
|
||||
walletConnectHandler?.rejectEIP155Request();
|
||||
onClose();
|
||||
}}
|
||||
>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user