-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
290 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@thirdweb-dev/wallets": patch | ||
"@thirdweb-dev/react": patch | ||
--- | ||
|
||
Update Supported Networks for Safe wallet | ||
|
||
- Remove Goerli, Base Goerli | ||
- Add Sepolia, Base Mainnet, Polygon zkEVM, ZkSync Mainnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import type { Chain } from "../src/types"; | ||
export default { | ||
"chain": "Polygon", | ||
"chainId": 2442, | ||
"explorers": [ | ||
{ | ||
"name": "polygonscan", | ||
"url": "https://cardona-zkevm.polygonscan.com", | ||
"standard": "EIP3091" | ||
} | ||
], | ||
"faucets": [], | ||
"icon": { | ||
"url": "ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv", | ||
"width": 122, | ||
"height": 135, | ||
"format": "png" | ||
}, | ||
"infoURL": "https://polygon.technology/polygon-zkevm", | ||
"name": "Polygon zkEVM Cardona Testnet", | ||
"nativeCurrency": { | ||
"name": "Ether", | ||
"symbol": "ETH", | ||
"decimals": 18 | ||
}, | ||
"networkId": 2442, | ||
"parent": { | ||
"type": "L2", | ||
"chain": "eip155-1", | ||
"bridges": [ | ||
{ | ||
"url": "https://bridge-ui.cardona.zkevm-rpc.com" | ||
} | ||
] | ||
}, | ||
"rpc": [ | ||
"https://polygon-zkevm-cardona-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://2442.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://rpc.cardona.zkevm-rpc.com" | ||
], | ||
"shortName": "zkevm-testnet-cardona", | ||
"slug": "polygon-zkevm-cardona-testnet", | ||
"testnet": true, | ||
"title": "Polygon zkEVM Cardona Testnet" | ||
} as const satisfies Chain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { Chain } from "../src/types"; | ||
export default { | ||
"chain": "Avalanche", | ||
"chainId": 54356, | ||
"explorers": [], | ||
"faucets": [], | ||
"features": [], | ||
"icon": { | ||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg", | ||
"width": 256, | ||
"height": 256, | ||
"format": "svg" | ||
}, | ||
"infoURL": "https://avacloud.io", | ||
"name": "Jambon's Testnet", | ||
"nativeCurrency": { | ||
"name": "Jambon's Testnet Token", | ||
"symbol": "ZEG", | ||
"decimals": 18 | ||
}, | ||
"networkId": 54356, | ||
"redFlags": [], | ||
"rpc": [ | ||
"https://jambon-s-testnet-jambon's testnet-54356.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://54356.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://subnets.avacloud-dev.io/e6f00b45-8486-445d-b3b8-815708aab379" | ||
], | ||
"shortName": "Jambon's Testnet", | ||
"slug": "jambon-s-testnet-jambon's testnet-54356", | ||
"testnet": true | ||
} as const satisfies Chain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import type { Chain } from "../src/types"; | ||
export default { | ||
"chain": "ETH", | ||
"chainId": 9393, | ||
"explorers": [ | ||
{ | ||
"name": "basescout", | ||
"url": "https://sepolia-delascan.deperp.com", | ||
"standard": "EIP3091", | ||
"icon": { | ||
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM", | ||
"width": 551, | ||
"height": 540, | ||
"format": "png" | ||
} | ||
} | ||
], | ||
"faucets": [], | ||
"icon": { | ||
"url": "ipfs://QmZQbfJfxYez8iQyVsB65y7ZTssKbgUpMXzPTEk5xGDwQB", | ||
"width": 600, | ||
"height": 600, | ||
"format": "png" | ||
}, | ||
"infoURL": "https://www.deperp.com/dela", | ||
"name": "Dela Sepolia Testnet", | ||
"nativeCurrency": { | ||
"name": "Sepolia Ether", | ||
"symbol": "ETH", | ||
"decimals": 18 | ||
}, | ||
"networkId": 9393, | ||
"rpc": [ | ||
"https://dela-sepolia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://9393.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://sepolia-dela.deperp.com" | ||
], | ||
"shortName": "delasep", | ||
"slip44": 1, | ||
"slug": "dela-sepolia-testnet", | ||
"testnet": true | ||
} as const satisfies Chain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { Chain } from "../src/types"; | ||
export default { | ||
"chain": "Avalanche", | ||
"chainId": 946751, | ||
"explorers": [], | ||
"faucets": [], | ||
"features": [], | ||
"icon": { | ||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg", | ||
"width": 256, | ||
"height": 256, | ||
"format": "svg" | ||
}, | ||
"infoURL": "https://avacloud.io", | ||
"name": "QR0214Y1P", | ||
"nativeCurrency": { | ||
"name": "QR0214Y1P Token", | ||
"symbol": "QAT", | ||
"decimals": 18 | ||
}, | ||
"networkId": 946751, | ||
"redFlags": [], | ||
"rpc": [ | ||
"https://qr0214y1p.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://946751.rpc.thirdweb.com/${THIRDWEB_API_KEY}", | ||
"https://subnets.avax.network/qr0214y1p/testnet/rpc" | ||
], | ||
"shortName": "QR0214Y1P", | ||
"slug": "qr0214y1p", | ||
"testnet": true | ||
} as const satisfies Chain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
export const safeSlugToChainId = { | ||
eth: 1, | ||
matic: 137, | ||
avax: 43114, | ||
bnb: 56, | ||
oeth: 10, | ||
gor: 5, | ||
"base-gor": 84531, | ||
} as const; | ||
import type { SafeSupportedChains } from "@thirdweb-dev/wallets/evm/connectors/safe"; | ||
|
||
export const safeChainIdToSlug = { | ||
// maps safe chain id to safe-chain slug | ||
export const safeChainIdToSlug: Record<SafeSupportedChains, string> = { | ||
1: "eth", | ||
137: "matic", | ||
43114: "avax", | ||
56: "bnb", | ||
10: "oeth", | ||
5: "gor", | ||
84531: "base-gor", | ||
} as const; | ||
8453: "base", | ||
11155111: "sep", | ||
100: "gno", | ||
1313161554: "aurora", | ||
42161: "arb1", | ||
42220: "celo", | ||
1101: "zkevm", | ||
324: "zksync", | ||
}; | ||
|
||
// maps safe chain slug to chain id | ||
export const safeSlugToChainId = /* @__PURE__ */ (() => { | ||
const result: Record<string, SafeSupportedChains> = {}; | ||
for (const [chainId, prefix] of Object.entries(safeChainIdToSlug)) { | ||
result[prefix] = Number(chainId) as SafeSupportedChains; | ||
} | ||
return result; | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.