Compare commits

..
Author SHA1 Message Date
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
b4df56f40f Version Packages (#2786)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-17 14:20:16 -07:00
Jonas DanielsandGitHub 4a6eed5d99 chore: update release-artifacts timeout (#2804) 2024-04-17 14:15:25 -07:00
Jonas DanielsandGitHub a54c745977 feat: Added new extensions for English Auctions (#2803) 2024-04-17 14:13:55 -07:00
Jonas DanielsandGitHub 0c95e80665 feat(marketplace): add more english auction extensions (#2794)
Signed-off-by: Jonas Daniels <[email protected]>
2024-04-17 13:28:45 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
31b6a4ffe1 chore(chains): update chains (#2791)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-17 12:17:45 -07:00
Jonas DanielsandGitHub 4f2a3fb1f1 docs: Update terminology in useSendTransaction.tsx (#2800) 2024-04-17 12:16:39 -07:00
Jonas DanielsandGitHub 37bd0e42a5 fix(cli): fix spawn issue on windows (#2799) 2024-04-17 11:52:17 -07:00
Joaquim VergesandGitHub f5abbe8b54 feat: Add deployPublishedContract deploy extension (#2788) 2024-04-17 18:12:27 +00:00
Jonas DanielsandGitHub b1d9e4aa97 chore: Remove unused code from LocalWallet (#2798) 2024-04-17 17:35:32 +00:00
EimanandGitHub 5398d6813e fixed mintAdditionalSupplyTo example (#2796) 2024-04-17 09:39:53 -07:00
FirekeeperandGitHub bf0509e746 Unity 4.12 - Engine Relayer Support (#2792) 2024-04-17 15:53:00 +00:00
Joaquim VergesandGitHub 7c178923f9 fix: claim with price and no allowlists (#2795) 2024-04-17 22:03:16 +12:00
300e4c8a51 feat: Integrate Buy Modal with useSendTransaction hook (#2767)
Signed-off-by: Manan Tank <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-16 15:14:44 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
8cb8a74002 chore(chains): update chains (#2789)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-16 13:50:01 -07:00
Manan TankandGitHub dc7ea82f8a show email selection by default for in-app wallet in Connect UI (#2790) 2024-04-16 13:02:08 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
8541709359 chore(chains): update chains (#2787)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-15 22:40:56 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
76f93a4346 chore(chains): update chains (#2777)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-15 18:46:12 -07:00
Jonas DanielsandGitHub 4c7153c95d chore: update dependencies (#2785) 2024-04-15 18:45:47 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2fd9c92c49 build(deps): bump eslint-config-next from 13.4.12 to 14.2.1 (#2780)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-16 01:39:01 +00:00
Jonas DanielsandGitHub 2de2b69934 chore(tests): add test for gas cost for native token (#2783) 2024-04-15 15:27:37 -07:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
9cb51536b4 Version Packages (#2762)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-15 15:05:59 -07:00
Joaquim VergesandGitHub 9b0a3df709 fix: deploy WETH9 infra contract for marketplace deploys (#2775) 2024-04-14 23:44:17 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Jonas Daniels
0c9376ff17 chore(chains): update chains (#2772)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-13 16:22:48 +00:00
Jonas DanielsandGitHub df338f5f75 feat(extensions/erc20): add claimTo and claim condition extensions (#2771) 2024-04-13 09:16:18 -07:00
Jonas DanielsandGitHub ea0dedcb6e test: Update chain definition in isEIP155Enforced test (#2773) 2024-04-12 22:58:47 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
50bbc7c053 chore(chains): update chains (#2763)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-12 16:42:36 -07:00
Jonas DanielsandGitHub ff354a6ae1 Jd/cleanups (#2770) 2024-04-12 13:33:15 -07:00
8197b3ced2 [SDK] Adds serializeTransaction function (#2760)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-12 13:29:54 -07:00
65e4ddc8e0 feat: add erc721 claim conditions + override list support (#2766)
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-12 18:55:38 +00:00
Jonas DanielsandGitHub 955a20737a chore: temporarily move the bridge to legacy_packages until it is switched to v5 SDK (#2769) 2024-04-12 16:17:49 +00:00
FirekeeperandGitHub f0fe1fdb1b Unity 4.11.0, EmbeddedWallet -> InAppWallet + fix 4.10 regression (#2765) 2024-04-12 00:10:11 +00:00
Jonas DanielsandGitHub b22a572d8a fix: Update package dependencies versions (#2764) 2024-04-11 17:08:52 -07:00
Jonas DanielsandGitHub 9d46fce50f extensions(permissions): add support for initial permissions (#2757) 2024-04-11 16:47:30 -07:00
Manan TankandGitHub a18fc8e1b7 Connect UI context cleanup (#2761) 2024-04-11 23:34:14 +00:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
6574e4da99 chore(chains): update chains (#2755)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-11 15:39:02 -07:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
5781dac184 Version Packages (#2751)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-11 13:50:17 -07:00
db05717803 feat: 1155 extensions (#2744)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-11 13:15:02 -07:00
Joaquim VergesandGitHub cb2a7e964a [v4] Alias embeddedWallet to inAppWallet (#2745) 2024-04-11 18:51:13 +00:00
07f98a5b92 feat: Update Swap UI in ConnectButton (#2759)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-11 17:33:00 +00:00
Manan TankandGitHub 007770cd63 feat: add alias for inApp wallet, show ENS in Connect (#2748) 2024-04-11 16:47:39 +00:00
Manan TankandGitHub a92311a53d [v4] Fix window popup blocked for social login in iOS Safari when using useEmbeddedWallet hook (#2758) 2024-04-11 16:25:28 +00:00
Jonas DanielsandGitHub e6b5d9cc5d fix: ens avatar resolution (#2756) 2024-04-11 15:28:34 +00:00
Jonas DanielsandGitHub c4d51e0b80 refactor: Update optional properties input in schema (#2754) 2024-04-10 22:26:23 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
259ff7c07c chore(chains): update chains (#2753)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-10 21:42:22 -07:00
Jonas DanielsandGitHub 39c6fbc552 feat(extensions): add generated is<Ext>Supported and encode<Ext> calls, add concatHex util fn (#2752) 2024-04-10 17:14:16 -07:00
9453f74bbf Custom gas settings for any evm deployments (#2678)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-10 17:13:21 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
bf6a8e0cab chore(chains): update chains (#2746)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-10 17:12:37 -07:00
Jonas DanielsandGitHub eb919ed49d implement extensions for royalty, platformfee and primarysale (#2749) 2024-04-10 22:04:15 +00:00
Jonas DanielsandGitHub 4d7ecc24b7 add the ability to define async value overrides in contract call (#2747) 2024-04-10 19:44:24 +00:00
701 changed files with 30326 additions and 7492 deletions
+11 -4
View File
@@ -30,7 +30,7 @@ env:
jobs:
build:
runs-on: ubuntu-latest-16
runs-on: ubuntu-latest
name: Build Packages
steps:
- name: Check out the code
@@ -63,7 +63,7 @@ jobs:
test:
timeout-minutes: 15
name: Unit Tests
runs-on: ubuntu-latest-16
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
@@ -73,6 +73,8 @@ jobs:
- name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1
with:
cache: false
- run: pnpm test
@@ -101,7 +103,7 @@ jobs:
if: github.event_name != 'merge_group'
timeout-minutes: 15
name: "Benchmarks"
runs-on: ubuntu-latest-16
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
@@ -109,6 +111,11 @@ jobs:
- name: Setup & Install
uses: ./.github/composite-actions/install
- name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1
with:
cache: false
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
@@ -120,7 +127,7 @@ jobs:
if: github.event_name == 'pull_request'
timeout-minutes: 15
name: "Size"
runs-on: ubuntu-latest-16
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
+1 -1
View File
@@ -20,7 +20,7 @@ env:
jobs:
release-artifacts:
timeout-minutes: 15
timeout-minutes: 60
runs-on: ubuntu-latest-16
steps:
- name: Checkout branch
+4 -1
View File
@@ -5,5 +5,8 @@
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"typescript.preferences.importModuleSpecifier": "relative"
"typescript.preferences.importModuleSpecifier": "relative",
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
+16 -1
View File
@@ -21,5 +21,20 @@
"packages/thirdweb/src/utils/bytecode/cbor-decode.ts",
"packages/thirdweb/src/**/__generated__/**"
]
}
},
"overrides": [
{
"include": ["packages/thirdweb/src/**"],
"linter": {
"rules": {
"style": {
"noRestrictedGlobals": {
"options": { "deniedGlobals": ["Buffer"] },
"level": "error"
}
}
}
}
}
]
}
+21
View File
@@ -1,5 +1,26 @@
# @thirdweb-dev/auth
## 4.1.62
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/wallets@2.5.4
## 4.1.61
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/wallets@2.5.3
## 4.1.60
### Patch Changes
- Updated dependencies [[`cb2a7e9`](https://github.com/thirdweb-dev/js/commit/cb2a7e964a78b9fc8670392f1b033936dae696dc)]:
- @thirdweb-dev/wallets@2.5.2
## 4.1.59
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/auth",
"version": "4.1.59",
"version": "4.1.62",
"main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js",
"browser": {
+18
View File
@@ -1,5 +1,23 @@
# @thirdweb-dev/chains
## 0.1.95
### Patch Changes
- [#2777](https://github.com/thirdweb-dev/js/pull/2777) [`76f93a4`](https://github.com/thirdweb-dev/js/commit/76f93a4346bc7627a6b0e4e49d212e245ad91be0) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
## 0.1.94
### Patch Changes
- [#2755](https://github.com/thirdweb-dev/js/pull/2755) [`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
## 0.1.93
### Patch Changes
- [#2746](https://github.com/thirdweb-dev/js/pull/2746) [`bf6a8e0`](https://github.com/thirdweb-dev/js/commit/bf6a8e0cab2a02a34d2ca8fbdf9d034ac176b61e) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
## 0.1.92
### Patch Changes
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 11881,
"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": "QaUser2353 Testnet",
"nativeCurrency": {
"name": "QaUser2353 Testnet Token",
"symbol": "ODB",
"decimals": 18
},
"networkId": 11881,
"redFlags": [],
"rpc": [
"https://11881.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QaUser2353 Testnet",
"slug": "qauser2353-testnet",
"testnet": true
} as const satisfies Chain;
+20
View File
@@ -0,0 +1,20 @@
import type { Chain } from "../src/types";
export default {
"chain": "PLAY",
"chainId": 161212,
"explorers": [],
"faucets": [],
"infoURL": "https://www.playfi.ai/",
"name": "PlayFi Mainnet",
"nativeCurrency": {
"name": "Play",
"symbol": "PLAY",
"decimals": 18
},
"networkId": 161212,
"rpc": [],
"shortName": "playfi",
"slug": "playfi",
"status": "incubating",
"testnet": false
} as const satisfies Chain;
+38
View File
@@ -0,0 +1,38 @@
import type { Chain } from "../src/types";
export default {
"chain": "ETH",
"chainId": 1612127,
"explorers": [
{
"name": "PlayFi Block Explorer",
"url": "https://albireo-explorer.playfi.ai",
"standard": "EIP3091"
}
],
"faucets": [],
"infoURL": "https://www.playfi.ai/",
"name": "PlayFi Albireo Testnet",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"networkId": 1612127,
"parent": {
"type": "L2",
"chain": "eip155-1",
"bridges": [
{
"url": "https://portal.playfi.ai/bridge"
}
]
},
"rpc": [
"https://1612127.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://albireo-rpc.playfi.ai"
],
"shortName": "alberio",
"slip44": 1,
"slug": "playfi-albireo-testnet",
"testnet": true
} as const satisfies Chain;
+5
View File
@@ -7,6 +7,11 @@ export default {
"name": "blockscout",
"url": "https://blockscoutapi.hekla.taiko.xyz",
"standard": "EIP3091"
},
{
"name": "routescan",
"url": "https://hekla.taikoscan.network",
"standard": "EIP3091"
}
],
"faucets": [],
+5 -2
View File
@@ -5,7 +5,7 @@ export default {
"explorers": [
{
"name": "Titan Explorer",
"url": "https://titan-explorer-light.titanlab.io/Titan",
"url": "https://tkxscan.io/Titan",
"standard": "none",
"icon": {
"url": "ipfs://bafkreicyvc7t55zsejv6vwaxbmhvea5vdfkkbgqkmn65rhyyifpg3mq3ua",
@@ -32,7 +32,10 @@ export default {
"networkId": 18888,
"rpc": [
"https://18888.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://titan-json-rpc.titanlab.io"
"https://titan-json-rpc.titanlab.io",
"https://titan-json-rpc-tokyo.titanlab.io",
"https://titan-json-rpc-seoul.titanlab.io",
"https://titan-json-rpc-hongkong.titanlab.io"
],
"shortName": "titan_tkx",
"slip44": 1,
+1 -1
View File
@@ -26,6 +26,6 @@ export default {
],
"shortName": "okb",
"slug": "x-layer",
"status": "incubating",
"status": "active",
"testnet": false
} as const satisfies Chain;
+35
View File
@@ -0,0 +1,35 @@
import type { Chain } from "../src/types";
export default {
"chain": "VANAR",
"chainId": 2040,
"explorers": [],
"faucets": [],
"features": [
{
"name": "EIP155"
}
],
"icon": {
"url": "ipfs://Qmbx25iq4Vn4zLooPit9bbguXJzdiogwtVQWtSseyQPuSC",
"width": 1000,
"height": 1628,
"format": "png"
},
"infoURL": "https://vanarchain.com",
"name": "Vanar Mainnet",
"nativeCurrency": {
"name": "VANRY",
"symbol": "VANRY",
"decimals": 18
},
"networkId": 2040,
"rpc": [
"https://2040.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.vanarchain.com",
"wss://ws.vanarchain.com"
],
"shortName": "Vanar",
"slug": "vanar",
"testnet": false,
"title": "Vanarchain"
} as const satisfies Chain;
+17 -3
View File
@@ -2,9 +2,22 @@ import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 2121,
"explorers": [],
"explorers": [
{
"name": "catenascan",
"url": "https://catenascan.com",
"standard": "EIP3091"
}
],
"faucets": [],
"features": [],
"features": [
{
"name": "EIP155"
},
{
"name": "EIP1559"
}
],
"icon": {
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
"width": 256,
@@ -22,7 +35,8 @@ export default {
"redFlags": [],
"rpc": [
"https://2121.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avacloud-dev.io/cb82eb40-2d0d-4188-905b-d50c4b09b40b"
"https://subnets.avacloud-dev.io/cb82eb40-2d0d-4188-905b-d50c4b09b40b",
"https://rpc1.catenarpc.com"
],
"shortName": "M TEST 1103-2",
"slug": "m-test-1103-2",
+40
View File
@@ -0,0 +1,40 @@
import type { Chain } from "../src/types";
export default {
"chain": "B2",
"chainId": 213,
"explorers": [
{
"name": "B2 Hub Mainnet Explorer",
"url": "https://hub-explorer.bsquared.network",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmPV6ASrQDEkEW3g3ni7p2rJMPeciRLpEpvrAc1QfzVkx9",
"width": 640,
"height": 640,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmPV6ASrQDEkEW3g3ni7p2rJMPeciRLpEpvrAc1QfzVkx9",
"width": 640,
"height": 640,
"format": "png"
},
"infoURL": "https://www.bsquared.network",
"name": "B2 Hub Mainnet",
"nativeCurrency": {
"name": "BSquared Token",
"symbol": "B2",
"decimals": 18
},
"networkId": 213,
"rpc": [
"https://213.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://hub-rpc.bsquared.network"
],
"shortName": "B2Hub-mainnet",
"slug": "b2-hub",
"testnet": false
} as const satisfies Chain;
+29
View File
@@ -0,0 +1,29 @@
import type { Chain } from "../src/types";
export default {
"chain": "BIGSB Testnet",
"chainId": 2136,
"explorers": [
{
"name": "Polkadot.js",
"url": "https://polkadot.js.org/apps/?rpc=wss://test-market.bigsb.network#/explorer",
"standard": "none"
}
],
"faucets": [],
"infoURL": "https://bigshortbets.com/",
"name": "BigShortBets Testnet",
"nativeCurrency": {
"name": "Dolarz",
"symbol": "Dolarz",
"decimals": 18
},
"networkId": 2136,
"rpc": [
"https://2136.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://test-market.bigsb.io",
"wss://test-market.bigsb.io"
],
"shortName": "bigsb_testnet",
"slug": "bigshortbets-testnet",
"testnet": true
} as const satisfies Chain;
+51
View File
@@ -0,0 +1,51 @@
import type { Chain } from "../src/types";
export default {
"chain": "B2",
"chainId": 223,
"explorers": [
{
"name": "blockscout",
"url": "https://explorer.bsquared.network",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmPV6ASrQDEkEW3g3ni7p2rJMPeciRLpEpvrAc1QfzVkx9",
"width": 640,
"height": 640,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmPV6ASrQDEkEW3g3ni7p2rJMPeciRLpEpvrAc1QfzVkx9",
"width": 640,
"height": 640,
"format": "png"
},
"infoURL": "https://www.bsquared.network",
"name": "B2 Mainnet",
"nativeCurrency": {
"name": "Bitcoin",
"symbol": "BTC",
"decimals": 18
},
"networkId": 223,
"parent": {
"type": "L2",
"chain": "eip155-213",
"bridges": [
{
"url": "https://www.bsquared.network/bridge"
}
]
},
"rpc": [
"https://223.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.bsquared.network",
"https://b2-mainnet.alt.technology"
],
"shortName": "B2-mainnet",
"slug": "b2",
"testnet": false,
"title": "B2 Mainnet"
} as const satisfies Chain;
+2 -3
View File
@@ -5,7 +5,7 @@ export default {
"explorers": [
{
"name": "Atleta Testnet Explorer",
"url": "http://185.234.69.18/?rpc=wss%3A%2F%2Fatleta-testnet-rpc.quark.blue%3A9944#/explorer",
"url": "https://polkadot-explorer.atleta.network/#/explorer",
"standard": "none",
"icon": {
"url": "ipfs://QmV2JVr4FCcb6aRiUoA3wS5erLoxtLBLonQ1Nvz8fNuEcR",
@@ -33,8 +33,7 @@ export default {
},
"networkId": 2340,
"rpc": [
"https://2340.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://atleta-testnet-rpc.quark.blue:9944"
"wss://testnet-rpc.atleta.network:9944"
],
"shortName": "atla",
"slip44": 1,
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 24010,
"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": "Stealthnet Testing ",
"nativeCurrency": {
"name": "Stealthnet Testing Token",
"symbol": "AVCLDDEV",
"decimals": 18
},
"networkId": 24010,
"redFlags": [],
"rpc": [
"https://24010.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/stealthnet/testnet/rpc"
],
"shortName": "Stealthnet Testing ",
"slug": "stealthnet-testing",
"testnet": true
} as const satisfies Chain;
+42
View File
@@ -0,0 +1,42 @@
import type { Chain } from "../src/types";
export default {
"chain": "KLAOS Nova",
"chainId": 27181,
"explorers": [
{
"name": "blockscout",
"url": "https://blockscout.klaosnova.laosfoundation.io",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmW26eoxJeyUfikZ4DUT1Gfk78sBkvydEo8QzHa1BXjUUL",
"width": 580,
"height": 580,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmW26eoxJeyUfikZ4DUT1Gfk78sBkvydEo8QzHa1BXjUUL",
"width": 580,
"height": 580,
"format": "png"
},
"infoURL": "https://www.laosfoundation.io/",
"name": "KLAOS Nova",
"nativeCurrency": {
"name": "KLAOS",
"symbol": "KLAOS",
"decimals": 18
},
"networkId": 27181,
"rpc": [
"https://27181.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.klaosnova.laosfoundation.io",
"wss://rpc.klaosnova.laosfoundation.io"
],
"shortName": "klaosnova",
"slug": "klaos-nova",
"testnet": true,
"title": "KLAOS Nova Test Chain"
} as const satisfies Chain;
+16 -6
View File
@@ -4,19 +4,26 @@ export default {
"chainId": 2730,
"explorers": [
{
"name": "blockscout",
"url": "https://xr-sepolia-testnet.explorer.caldera.xyz/",
"name": "XR Sepolia Explorer",
"url": "https://xr-sepolia-testnet.explorer.caldera.xyz",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmRdBsZF2sgWitedT5qAtBZwrYwY1xecHN9u5fgddqA1eL/xr-sepolia.png",
"width": 300,
"height": 300,
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 551,
"height": 540,
"format": "png"
}
}
],
"faucets": [],
"features": [],
"features": [
{
"name": "EIP155"
},
{
"name": "EIP1559"
}
],
"icon": {
"url": "ipfs://QmRdBsZF2sgWitedT5qAtBZwrYwY1xecHN9u5fgddqA1eL/xr-sepolia.png",
"width": 300,
@@ -39,9 +46,12 @@ export default {
"redFlags": [],
"rpc": [
"https://2730.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://xr-sepolia-testnet.rpc.caldera.xyz/infra-partner-http",
"https://xr-sepolia-testnet.rpc.caldera.xyz/http"
],
"shortName": "xr-sepolia",
"slip44": 60,
"slug": "xr-sepolia",
"status": "active",
"testnet": true
} as const satisfies Chain;
+50
View File
@@ -0,0 +1,50 @@
import type { Chain } from "../src/types";
export default {
"chain": "Vizing Mainnet",
"chainId": 28518,
"explorers": [
{
"name": "blockscout",
"url": "https://explorer.vizing.com",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmPgpWfGsAZ5UHekWFR8rioadVe3Wox8idFyeVxuv9N4Vo",
"width": 200,
"height": 200,
"format": "svg"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmPgpWfGsAZ5UHekWFR8rioadVe3Wox8idFyeVxuv9N4Vo",
"width": 200,
"height": 200,
"format": "svg"
},
"infoURL": "https://vizing.com",
"name": "Vizing Mainnet",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"networkId": 28518,
"parent": {
"type": "L2",
"chain": "eip155-1",
"bridges": [
{
"url": "https://bridge.vizing.com"
}
]
},
"rpc": [
"https://28518.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.vizing.com"
],
"shortName": "Vizing",
"slug": "vizing",
"testnet": false,
"title": "Vizing Mainnet"
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 313310,
"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": "LT10",
"nativeCurrency": {
"name": "LT10 Token",
"symbol": "LT",
"decimals": 18
},
"networkId": 313310,
"redFlags": [],
"rpc": [
"https://313310.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/lt10/testnet/rpc"
],
"shortName": "LT10",
"slug": "lt10",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 31338,
"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": "LT8 Testnet",
"nativeCurrency": {
"name": "LT8 Testnet Token",
"symbol": "LT",
"decimals": 18
},
"networkId": 31338,
"redFlags": [],
"rpc": [
"https://31338.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/lt8/testnet/rpc"
],
"shortName": "LT8 Testnet",
"slug": "lt8-testnet",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 31339,
"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": "LT9",
"nativeCurrency": {
"name": "LT9 Token",
"symbol": "LT",
"decimals": 18
},
"networkId": 31339,
"redFlags": [],
"rpc": [
"https://31339.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/lt9/testnet/rpc"
],
"shortName": "LT9",
"slug": "lt9",
"testnet": true
} as const satisfies Chain;
+47
View File
@@ -0,0 +1,47 @@
import type { Chain } from "../src/types";
export default {
"chain": "UPchain",
"chainId": 336655,
"explorers": [
{
"name": "UPchain Testnet Explorer",
"url": "https://explorer-testnet.uniport.network",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmNMqcPyQnaaFfUDsmsnu2T6agZfoWij3zFYebCNUPkfAH",
"width": 320,
"height": 320,
"format": "jpg"
}
}
],
"faucets": [
"https://faucet-testnet.uniport.network"
],
"features": [
{
"name": "EIP155"
}
],
"icon": {
"url": "ipfs://QmNMqcPyQnaaFfUDsmsnu2T6agZfoWij3zFYebCNUPkfAH",
"width": 320,
"height": 320,
"format": "jpg"
},
"infoURL": "https://uniport.network",
"name": "UPchain Testnet",
"nativeCurrency": {
"name": "UBTC",
"symbol": "UBTC",
"decimals": 18
},
"networkId": 336655,
"rpc": [
"https://336655.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc-testnet.uniport.network"
],
"shortName": "UPchain-testnet",
"slug": "upchain-testnet",
"testnet": true
} as const satisfies Chain;
+45
View File
@@ -0,0 +1,45 @@
import type { Chain } from "../src/types";
export default {
"chain": "UPchain",
"chainId": 336666,
"explorers": [
{
"name": "UPchain Mainnet Explorer",
"url": "https://explorer.uniport.network",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmNMqcPyQnaaFfUDsmsnu2T6agZfoWij3zFYebCNUPkfAH",
"width": 320,
"height": 320,
"format": "jpg"
}
}
],
"faucets": [],
"features": [
{
"name": "EIP155"
}
],
"icon": {
"url": "ipfs://QmNMqcPyQnaaFfUDsmsnu2T6agZfoWij3zFYebCNUPkfAH",
"width": 320,
"height": 320,
"format": "jpg"
},
"infoURL": "https://uniport.network",
"name": "UPchain Mainnet",
"nativeCurrency": {
"name": "UBTC",
"symbol": "UBTC",
"decimals": 18
},
"networkId": 336666,
"rpc": [
"https://336666.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.uniport.network"
],
"shortName": "UPchain-mainnet",
"slug": "upchain",
"testnet": false
} as const satisfies Chain;
+34
View File
@@ -0,0 +1,34 @@
import type { Chain } from "../src/types";
export default {
"chain": "EVO",
"chainId": 3424,
"explorers": [
{
"name": "Evolve Mainnet Explorer",
"url": "https://evoexplorer.com",
"standard": "EIP3091"
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmVxtpYYzc5214CB7BgsMC4mRNRHCD8fpbNMzZguBWyRwa",
"width": 600,
"height": 600,
"format": "png"
},
"infoURL": "https://evolveblockchain.io",
"name": "EVOLVE Mainnet",
"nativeCurrency": {
"name": "Evolve",
"symbol": "EVO",
"decimals": 18
},
"networkId": 3424,
"rpc": [
"https://3424.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.evolveblockchain.io"
],
"shortName": "EVOm",
"slug": "evolve",
"testnet": false
} as const satisfies Chain;
+40
View File
@@ -0,0 +1,40 @@
import type { Chain } from "../src/types";
export default {
"chain": "AIE",
"chainId": 413413,
"explorers": [
{
"name": "aiescan-testnet",
"url": "https://testnet.aiescan.io",
"standard": "none",
"icon": {
"url": "ipfs://bafkreihok46mhn5yf7b5jgmq7tiyw2fw76wklvj4frpc3gbswgfxzerhhm",
"width": 3481,
"height": 3500,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://bafkreihok46mhn5yf7b5jgmq7tiyw2fw76wklvj4frpc3gbswgfxzerhhm",
"width": 3481,
"height": 3500,
"format": "png"
},
"infoURL": "https://testnet.aiescan.io",
"name": "AIE Testnet",
"nativeCurrency": {
"name": "AIE",
"symbol": "tAIE",
"decimals": 18
},
"networkId": 413413,
"rpc": [
"https://413413.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc1-testnet.aiechain.io"
],
"shortName": "aiet",
"slug": "aie-testnet",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 48795,
"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": "Space",
"nativeCurrency": {
"name": "Space Token",
"symbol": "FUEL",
"decimals": 18
},
"networkId": 48795,
"redFlags": [],
"rpc": [
"https://48795.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/space/testnet/rpc"
],
"shortName": "Space",
"slug": "space",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 504441,
"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": "Playdapp Network",
"nativeCurrency": {
"name": "Playdapp Network Token",
"symbol": "PDA",
"decimals": 18
},
"networkId": 504441,
"redFlags": [],
"rpc": [
"https://504441.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/playdappne/mainnet/rpc"
],
"shortName": "Playdapp Network",
"slug": "playdapp-network",
"testnet": false
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 51435,
"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": "QR0410s1d Testnet",
"nativeCurrency": {
"name": "QR0410s1d Testnet Token",
"symbol": "CWV",
"decimals": 18
},
"networkId": 51435,
"redFlags": [],
"rpc": [
"https://51435.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/qr0410s1d/testnet/rpc"
],
"shortName": "QR0410s1d Testnet",
"slug": "qr0410s1d-testnet",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 53687,
"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": "QI0409s1 Testnet",
"nativeCurrency": {
"name": "QI0409s1 Testnet Token",
"symbol": "QCE",
"decimals": 18
},
"networkId": 53687,
"redFlags": [],
"rpc": [
"https://53687.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QI0409s1 Testnet",
"slug": "qi0409s1-testnet",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Photon",
"chainId": 54555,
"explorers": [
{
"name": "photon_testnet_explorer",
"url": "https://testnet.photonchain.io",
"standard": "none"
}
],
"faucets": [
"https://photonchain.io/airdrop"
],
"infoURL": "https://photonchain.io",
"name": "Photon Testnet",
"nativeCurrency": {
"name": "Photon",
"symbol": "PTON",
"decimals": 18
},
"networkId": 54555,
"rpc": [
"https://54555.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc-test.photonchain.io"
],
"shortName": "pton",
"slug": "photon-testnet",
"testnet": true
} as const satisfies Chain;
+12 -2
View File
@@ -2,9 +2,19 @@ import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 555666,
"explorers": [],
"explorers": [
{
"name": "ECLIPSE Explorer",
"url": "https://subnets-test.avax.network/eclipsecha",
"standard": "EIP3091"
}
],
"faucets": [],
"features": [],
"features": [
{
"name": "EIP1559"
}
],
"icon": {
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
"width": 256,
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 59932,
"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": "Insomnia Testnet",
"nativeCurrency": {
"name": "Insomnia Testnet Token",
"symbol": "TECH",
"decimals": 18
},
"networkId": 59932,
"redFlags": [],
"rpc": [
"https://59932.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/instest/testnet/rpc"
],
"shortName": "Insomnia Testnet",
"slug": "insomnia-testnet",
"testnet": true
} as const satisfies Chain;
+35
View File
@@ -0,0 +1,35 @@
import type { Chain } from "../src/types";
export default {
"chain": "ETH",
"chainId": 62050,
"explorers": [],
"faucets": [],
"features": [
{
"name": "EIP1559"
}
],
"icon": {
"url": "ipfs://bafkreid3xv3zkuo2cygwt7vwm5c2aqjbyhy5qxn7xkc66ajhu2mjh2ybki",
"width": 1000,
"height": 1000,
"format": "png"
},
"infoURL": "https://optopia.ai",
"name": "Optopia Mainnet",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"networkId": 62050,
"parent": {
"type": "L2",
"chain": "eip155-1"
},
"rpc": [],
"shortName": "Optopia",
"slug": "optopia",
"status": "incubating",
"testnet": false
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 64092,
"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": "QaUser3186 Testnet",
"nativeCurrency": {
"name": "QaUser3186 Testnet Token",
"symbol": "KII",
"decimals": 18
},
"networkId": 64092,
"redFlags": [],
"rpc": [
"https://64092.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QaUser3186 Testnet",
"slug": "qauser3186-testnet",
"testnet": true
} as const satisfies Chain;
+40
View File
@@ -0,0 +1,40 @@
import type { Chain } from "../src/types";
export default {
"chain": "Safe(AnWang)",
"chainId": 6666665,
"explorers": [
{
"name": "Safe(AnWang) Explorer",
"url": "http://safe4.anwang.com",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmahJhdaLfGwBStQ9q9K4Mc73vLNqFV1otWCsT2ZKsMavv",
"width": 768,
"height": 768,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmahJhdaLfGwBStQ9q9K4Mc73vLNqFV1otWCsT2ZKsMavv",
"width": 768,
"height": 768,
"format": "png"
},
"infoURL": "https://www.anwang.com",
"name": "Safe(AnWang) Mainnet",
"nativeCurrency": {
"name": "SAFE(AnWang)",
"symbol": "SAFE",
"decimals": 18
},
"networkId": 6666665,
"rpc": [
"https://6666665.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.anwang.com"
],
"shortName": "SafeMainnet",
"slug": "safe-anwang",
"testnet": false
} as const satisfies Chain;
+40
View File
@@ -0,0 +1,40 @@
import type { Chain } from "../src/types";
export default {
"chain": "Safe(AnWang)",
"chainId": 6666666,
"explorers": [
{
"name": "Safe(AnWang) Testnet Explorer",
"url": "http://safe4-testnet.anwang.com",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmahJhdaLfGwBStQ9q9K4Mc73vLNqFV1otWCsT2ZKsMavv",
"width": 768,
"height": 768,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmahJhdaLfGwBStQ9q9K4Mc73vLNqFV1otWCsT2ZKsMavv",
"width": 768,
"height": 768,
"format": "png"
},
"infoURL": "https://www.anwang.com",
"name": "Safe(AnWang) Testnet",
"nativeCurrency": {
"name": "SAFE(AnWang)",
"symbol": "SAFE",
"decimals": 18
},
"networkId": 6666666,
"rpc": [
"https://6666666.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc-testnet.anwang.com"
],
"shortName": "SafeTestnet",
"slug": "safe-anwang-testnet",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 68688,
"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": "Haku Chain Testnet",
"nativeCurrency": {
"name": "Haku Chain Testnet Token",
"symbol": "HAKU",
"decimals": 18
},
"networkId": 68688,
"redFlags": [],
"rpc": [
"https://68688.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/hakuchain/testnet/rpc"
],
"shortName": "Haku Chain Testnet",
"slug": "haku-chain-testnet",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 73277,
"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": "QaUser9250 Testnet",
"nativeCurrency": {
"name": "QaUser9250 Testnet Token",
"symbol": "UDU",
"decimals": 18
},
"networkId": 73277,
"redFlags": [],
"rpc": [
"https://73277.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QaUser9250 Testnet",
"slug": "qauser9250-testnet",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 77572,
"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": "QaUser0993 Testnet",
"nativeCurrency": {
"name": "QaUser0993 Testnet Token",
"symbol": "JOE",
"decimals": 18
},
"networkId": 77572,
"redFlags": [],
"rpc": [
"https://77572.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QaUser0993 Testnet",
"slug": "qauser0993-testnet",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 77576,
"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": "QaUser6624 Testnet",
"nativeCurrency": {
"name": "QaUser6624 Testnet Token",
"symbol": "WVN",
"decimals": 18
},
"networkId": 77576,
"redFlags": [],
"rpc": [
"https://77576.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QaUser6624 Testnet",
"slug": "qauser6624-testnet",
"testnet": true
} as const satisfies Chain;
+1 -1
View File
@@ -33,7 +33,7 @@ export default {
"name": "Vanguard",
"nativeCurrency": {
"name": "Vanguard Vanry",
"symbol": "VG",
"symbol": "VANRY",
"decimals": 18
},
"networkId": 78600,
+34
View File
@@ -0,0 +1,34 @@
import type { Chain } from "../src/types";
export default {
"chain": "DTBX",
"chainId": 7923,
"explorers": [
{
"name": "blockscout",
"url": "https://explorer.dotblox.io",
"standard": "none"
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmZy2TMY881ghRxXJA7VyRA8Zhj2LJJ86DpHRZs3VQZqoJ",
"width": 53,
"height": 53,
"format": "png"
},
"infoURL": "https://explorer.dotblox.io",
"name": "Dot Blox",
"nativeCurrency": {
"name": "Dot Blox",
"symbol": "DTBX",
"decimals": 18
},
"networkId": 7923,
"rpc": [
"https://7923.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.dotblox.io"
],
"shortName": "DTBX",
"slug": "dot-blox",
"testnet": false
} as const satisfies Chain;
-1
View File
@@ -31,7 +31,6 @@ export default {
"rpc": [
"https://80002.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc-amoy.polygon.technology",
"https://https://rpc-amoy.polygon.technology",
"https://polygon-amoy-bor-rpc.publicnode.com",
"wss://polygon-amoy-bor-rpc.publicnode.com"
],
+2 -1
View File
@@ -34,5 +34,6 @@ export default {
],
"shortName": "karak-sepolia",
"slug": "karak-sepolia",
"testnet": false
"testnet": true,
"title": "Karak Testnet Sepolia"
} as const satisfies Chain;
+51
View File
@@ -0,0 +1,51 @@
import type { Chain } from "../src/types";
export default {
"chain": "ETH",
"chainId": 810181,
"explorers": [
{
"name": "zkLink Nova Block Explorer",
"url": "https://sepolia.explorer.zklink.io",
"standard": "EIP3091",
"icon": {
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
"width": 512,
"height": 512,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://bafkreiaj7b6pdekv3rjuta5wsdvmfdcsat2jftjgozape7wvmyj6d3vjcm",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://zklink.io",
"name": "zkLink Nova Sepolia Testnet",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"networkId": 810181,
"parent": {
"type": "L2",
"chain": "eip155-59141",
"bridges": [
{
"url": "https://sepolia.portal.zklink.io"
}
]
},
"rpc": [
"https://810181.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://sepolia.rpc.zklink.io",
"wss://sepolia.rpc.zklink.io"
],
"shortName": "zklink-nova-sepolia",
"slip44": 1,
"slug": "zklink-nova-sepolia-testnet",
"testnet": true
} as const satisfies Chain;
+44
View File
@@ -0,0 +1,44 @@
import type { Chain } from "../src/types";
export default {
"chain": "ETH",
"chainId": 90354,
"ens": {
"registry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
},
"explorers": [
{
"name": "Block Explorer",
"url": "https://explorerl2new-camp-network-4xje7wy105.t.conduit.xyz",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 83,
"height": 82,
"format": "svg"
}
}
],
"faucets": [],
"features": [],
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 551,
"height": 540,
"format": "png"
},
"name": "Camp Network",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"networkId": 90354,
"redFlags": [],
"rpc": [
"https://90354.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc-camp-network-4xje7wy105.t.conduit.xyz/"
],
"shortName": "campaign-l2",
"slug": "camp-network",
"testnet": false
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 90663,
"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": "QI0416s1 Testnet",
"nativeCurrency": {
"name": "QI0416s1 Testnet Token",
"symbol": "ZKE",
"decimals": 18
},
"networkId": 90663,
"redFlags": [],
"rpc": [
"https://90663.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QI0416s1 Testnet",
"slug": "qi0416s1-testnet",
"testnet": true
} as const satisfies Chain;
+32
View File
@@ -0,0 +1,32 @@
import type { Chain } from "../src/types";
export default {
"chain": "ETH",
"chainId": 9789,
"explorers": [
{
"name": "Tabi Testnet Explorer",
"url": "https://testnet.tabiscan.com/",
"standard": "EIP3091"
}
],
"faucets": [],
"features": [],
"icon": {
"url": "ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",
"width": 512,
"height": 512,
"format": "png"
},
"name": "Tabichain",
"nativeCurrency": {
"name": "TABI",
"symbol": "TABI",
"decimals": 18
},
"networkId": 9789,
"redFlags": [],
"rpc": [],
"shortName": "tabichain",
"slug": "tabichain",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 98857,
"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": "Thetan Testnet",
"nativeCurrency": {
"name": "Thetan Testnet Token",
"symbol": "THG",
"decimals": 18
},
"networkId": 98857,
"redFlags": [],
"rpc": [
"https://98857.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/thetantest/testnet/rpc"
],
"shortName": "Thetan Testnet",
"slug": "thetan-testnet",
"testnet": true
} as const satisfies Chain;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/chains",
"version": "0.1.92",
"version": "0.1.95",
"main": "dist/thirdweb-dev-chains.cjs.js",
"module": "dist/thirdweb-dev-chains.esm.js",
"exports": {
File diff suppressed because one or more lines are too long
+32
View File
@@ -1,5 +1,37 @@
# thirdweb
## 0.13.70
### Patch Changes
- [#2785](https://github.com/thirdweb-dev/js/pull/2785) [`4c7153c`](https://github.com/thirdweb-dev/js/commit/4c7153c95df1962d1e530a3d8227960cd87f6a61) Thanks [@jnsdls](https://github.com/jnsdls)! - update dependencies
- Updated dependencies [[`4c7153c`](https://github.com/thirdweb-dev/js/commit/4c7153c95df1962d1e530a3d8227960cd87f6a61), [`76f93a4`](https://github.com/thirdweb-dev/js/commit/76f93a4346bc7627a6b0e4e49d212e245ad91be0)]:
- @thirdweb-dev/sdk@4.0.64
- @thirdweb-dev/chains@0.1.95
- @thirdweb-dev/wallets@2.5.4
- @thirdweb-dev/auth@4.1.62
## 0.13.69
### Patch Changes
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
- @thirdweb-dev/wallets@2.5.3
- @thirdweb-dev/auth@4.1.61
## 0.13.68
### Patch Changes
- Updated dependencies [[`cb2a7e9`](https://github.com/thirdweb-dev/js/commit/cb2a7e964a78b9fc8670392f1b033936dae696dc), [`9453f74`](https://github.com/thirdweb-dev/js/commit/9453f74bbfd53372fcfd942bcce6c6bfc8c00a2c), [`c4d51e0`](https://github.com/thirdweb-dev/js/commit/c4d51e0b80e2d66fb85b8032dcc286f9cd164cd1), [`bf6a8e0`](https://github.com/thirdweb-dev/js/commit/bf6a8e0cab2a02a34d2ca8fbdf9d034ac176b61e)]:
- @thirdweb-dev/wallets@2.5.2
- @thirdweb-dev/sdk@4.0.62
- @thirdweb-dev/chains@0.1.93
- @thirdweb-dev/auth@4.1.60
## 0.13.67
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/cli",
"main": "dist/cli/index.js",
"version": "0.13.67",
"version": "0.13.70",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/cli",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -16,7 +16,7 @@
"@types/cross-spawn": "^6.0.6",
"@types/inquirer": "^8.2.10",
"@types/js-yaml": "^4.0.9",
"@types/node": "20.12.5",
"@types/node": "20.12.7",
"@types/prompts": "^2.4.9",
"@types/tar": "^6.1.12",
"@types/update-notifier": "^6.0.8",
@@ -6,7 +6,7 @@
"dependencies": {
"@typescript-eslint/eslint-plugin": "7.5.0",
"@typescript-eslint/parser": "7.5.0",
"eslint-config-next": "13.4.12",
"eslint-config-next": "14.2.1",
"eslint-config-prettier": "9.1.0",
"eslint-config-turbo": "1.13.2",
"eslint-plugin-react": "7.34.1"
@@ -1,3 +1,5 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
// ADAPTED FROM https://github.com/merkletreejs/merkletreejs
import { Buffer } from "buffer";
@@ -1,3 +1,5 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
// ADAPTED FROM https://github.com/merkletreejs/merkletreejs
import { Buffer } from "buffer";
+30
View File
@@ -1,5 +1,35 @@
# @thirdweb-dev/react-core
## 4.6.3
### Patch Changes
- Updated dependencies [[`4c7153c`](https://github.com/thirdweb-dev/js/commit/4c7153c95df1962d1e530a3d8227960cd87f6a61), [`76f93a4`](https://github.com/thirdweb-dev/js/commit/76f93a4346bc7627a6b0e4e49d212e245ad91be0)]:
- @thirdweb-dev/sdk@4.0.64
- @thirdweb-dev/chains@0.1.95
- @thirdweb-dev/wallets@2.5.4
- @thirdweb-dev/auth@4.1.62
## 4.6.2
### Patch Changes
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
- @thirdweb-dev/wallets@2.5.3
- @thirdweb-dev/auth@4.1.61
## 4.6.1
### Patch Changes
- Updated dependencies [[`cb2a7e9`](https://github.com/thirdweb-dev/js/commit/cb2a7e964a78b9fc8670392f1b033936dae696dc), [`9453f74`](https://github.com/thirdweb-dev/js/commit/9453f74bbfd53372fcfd942bcce6c6bfc8c00a2c), [`c4d51e0`](https://github.com/thirdweb-dev/js/commit/c4d51e0b80e2d66fb85b8032dcc286f9cd164cd1), [`bf6a8e0`](https://github.com/thirdweb-dev/js/commit/bf6a8e0cab2a02a34d2ca8fbdf9d034ac176b61e)]:
- @thirdweb-dev/wallets@2.5.2
- @thirdweb-dev/sdk@4.0.62
- @thirdweb-dev/chains@0.1.93
- @thirdweb-dev/auth@4.1.60
## 4.6.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-core",
"version": "4.6.0",
"version": "4.6.3",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-core",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-native-compat
## 0.7.35
### Patch Changes
- [#2785](https://github.com/thirdweb-dev/js/pull/2785) [`4c7153c`](https://github.com/thirdweb-dev/js/commit/4c7153c95df1962d1e530a3d8227960cd87f6a61) Thanks [@jnsdls](https://github.com/jnsdls)! - update dependencies
## 0.7.34
## 0.7.33
## 0.7.32
## 0.7.31
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/react-native-compat",
"description": "Shims for Thirdweb in React Native Projects",
"version": "0.7.32",
"version": "0.7.35",
"author": "thirdweb eng <[email protected]>",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native-compat",
"license": "Apache-2.0",
@@ -35,7 +35,7 @@
},
"devDependencies": {
"@thirdweb-dev/tsconfig": "workspace:*",
"@types/node": "20.12.5",
"@types/node": "20.12.7",
"babel-plugin-module-resolver": "^5.0.0",
"eslint-config-thirdweb": "workspace:*",
"ethers": "^5.7.2",
+32
View File
@@ -1,5 +1,37 @@
# @thirdweb-dev/react-native
## 0.7.35
### Patch Changes
- Updated dependencies [[`4c7153c`](https://github.com/thirdweb-dev/js/commit/4c7153c95df1962d1e530a3d8227960cd87f6a61), [`76f93a4`](https://github.com/thirdweb-dev/js/commit/76f93a4346bc7627a6b0e4e49d212e245ad91be0)]:
- @thirdweb-dev/sdk@4.0.64
- @thirdweb-dev/chains@0.1.95
- @thirdweb-dev/react-core@4.6.3
- @thirdweb-dev/wallets@2.5.4
## 0.7.34
### Patch Changes
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
- @thirdweb-dev/react-core@4.6.2
- @thirdweb-dev/wallets@2.5.3
## 0.7.33
### Patch Changes
- [#2745](https://github.com/thirdweb-dev/js/pull/2745) [`cb2a7e9`](https://github.com/thirdweb-dev/js/commit/cb2a7e964a78b9fc8670392f1b033936dae696dc) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Alias embedded wallet to in-app wallet
- Updated dependencies [[`cb2a7e9`](https://github.com/thirdweb-dev/js/commit/cb2a7e964a78b9fc8670392f1b033936dae696dc), [`9453f74`](https://github.com/thirdweb-dev/js/commit/9453f74bbfd53372fcfd942bcce6c6bfc8c00a2c), [`c4d51e0`](https://github.com/thirdweb-dev/js/commit/c4d51e0b80e2d66fb85b8032dcc286f9cd164cd1), [`bf6a8e0`](https://github.com/thirdweb-dev/js/commit/bf6a8e0cab2a02a34d2ca8fbdf9d034ac176b61e)]:
- @thirdweb-dev/wallets@2.5.2
- @thirdweb-dev/sdk@4.0.62
- @thirdweb-dev/chains@0.1.93
- @thirdweb-dev/react-core@4.6.1
## 0.7.32
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-native",
"version": "0.7.32",
"version": "0.7.35",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -16,7 +16,9 @@ export { smartWallet } from "./wallets/wallets/smart-wallet";
export { localWallet } from "./wallets/wallets/local-wallet";
export { LocalWallet } from "./wallets/wallets/LocalWallet";
export { EmbeddedWallet } from "./wallets/wallets/embedded/EmbeddedWallet";
export { EmbeddedWallet as InAppWallet } from "./wallets/wallets/embedded/EmbeddedWallet";
export { embeddedWallet } from "./wallets/wallets/embedded/embedded-wallet";
export { embeddedWallet as inAppWallet } from "./wallets/wallets/embedded/embedded-wallet";
export * from "./wallets/wallets/wallet-connect/WalletConnectBase";
export { WalletConnect } from "./wallets/wallets/wallet-connect/WalletConnect";
export { walletConnect } from "./wallets/wallets/wallet-connect/wallet-connect";
@@ -27,6 +29,7 @@ export { useMetaMaskWallet } from "./wallets/hooks/useMetaMaskWallet";
export { useRainbowWallet } from "./wallets/hooks/useRainbowWallet";
export { useTrustWallet } from "./wallets/hooks/useTrustWallet";
export { useEmbeddedWallet } from "./wallets/hooks/useEmbeddedWallet";
export { useEmbeddedWallet as useInAppWallet } from "./wallets/hooks/useEmbeddedWallet";
export { useSmartWallet } from "./wallets/hooks/useSmartWallet";
export { useEmbeddedWalletSendVerificationEmail } from "./wallets/hooks/useEmbeddedWalletSendVerificationEmail";
+38
View File
@@ -1,5 +1,43 @@
# @thirdweb-dev/react
## 4.6.3
### Patch Changes
- [#2790](https://github.com/thirdweb-dev/js/pull/2790) [`dc7ea82`](https://github.com/thirdweb-dev/js/commit/dc7ea82f8ab3d19dc66675e3df3de4cf0901229b) Thanks [@MananTank](https://github.com/MananTank)! - Show email by default and not phone number selection UI for in-app wallet in Connect UI
- Updated dependencies [[`4c7153c`](https://github.com/thirdweb-dev/js/commit/4c7153c95df1962d1e530a3d8227960cd87f6a61), [`76f93a4`](https://github.com/thirdweb-dev/js/commit/76f93a4346bc7627a6b0e4e49d212e245ad91be0)]:
- @thirdweb-dev/sdk@4.0.64
- @thirdweb-dev/chains@0.1.95
- @thirdweb-dev/react-core@4.6.3
- @thirdweb-dev/wallets@2.5.4
## 4.6.2
### Patch Changes
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
- @thirdweb-dev/react-core@4.6.2
- @thirdweb-dev/wallets@2.5.3
## 4.6.1
### Patch Changes
- [#2758](https://github.com/thirdweb-dev/js/pull/2758) [`a92311a`](https://github.com/thirdweb-dev/js/commit/a92311a53d587a838b7a19ca86e8c088fcc45aa3) Thanks [@MananTank](https://github.com/MananTank)! - Fix window popup blocked for social login in iOS Safari when using `useEmbeddedWallet` hook
- [#2745](https://github.com/thirdweb-dev/js/pull/2745) [`cb2a7e9`](https://github.com/thirdweb-dev/js/commit/cb2a7e964a78b9fc8670392f1b033936dae696dc) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Alias embedded wallet to in-app wallet
- [#2748](https://github.com/thirdweb-dev/js/pull/2748) [`007770c`](https://github.com/thirdweb-dev/js/commit/007770cd635fba5d38eca5efccc55592c85a106f) Thanks [@MananTank](https://github.com/MananTank)! - Increase max-height for Connect Modal
- Updated dependencies [[`cb2a7e9`](https://github.com/thirdweb-dev/js/commit/cb2a7e964a78b9fc8670392f1b033936dae696dc), [`9453f74`](https://github.com/thirdweb-dev/js/commit/9453f74bbfd53372fcfd942bcce6c6bfc8c00a2c), [`c4d51e0`](https://github.com/thirdweb-dev/js/commit/c4d51e0b80e2d66fb85b8032dcc286f9cd164cd1), [`bf6a8e0`](https://github.com/thirdweb-dev/js/commit/bf6a8e0cab2a02a34d2ca8fbdf9d034ac176b61e)]:
- @thirdweb-dev/wallets@2.5.2
- @thirdweb-dev/sdk@4.0.62
- @thirdweb-dev/chains@0.1.93
- @thirdweb-dev/react-core@4.6.1
## 4.6.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react",
"version": "4.6.0",
"version": "4.6.3",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -15,6 +15,7 @@ import {
} from "@thirdweb-dev/wallets";
import { useCallback } from "react";
import { embeddedWallet } from "../../../wallet/wallets/embeddedWallet/embeddedWallet";
import { openOauthSignInWindow } from "../../../wallet/utils/openOauthSignInWindow";
/**
* Hook to connect `EmbeddedWallet` which allows users to login via Email or social logins
@@ -130,6 +131,18 @@ export function useEmbeddedWallet() {
}
const wallet = create(embeddedWallet());
try {
// open window immediately to fix issue in iOS Safari
// if not opened immediately, it adds a bit of delay between user click and opening the window which causes the popup to be blocked
if (
authParams.strategy === "apple" ||
authParams.strategy === "facebook" ||
authParams.strategy === "google"
) {
const win = openOauthSignInWindow(authParams.strategy);
if (win) {
authParams.openedWindow = win;
}
}
const authResult = await wallet.authenticate(authParams);
await wallet.connect({ authResult });
setWallet(wallet);
+6
View File
@@ -61,6 +61,12 @@ export {
useEmbeddedWalletUserEmail,
} from "./hooks/wallets/useEmbeddedWallet";
export { useEmbeddedWalletSendVerificationEmail } from "./hooks/useEmbeddedWalletSendVerificationEmail";
export {
useEmbeddedWallet as useInAppWallet,
useEmbeddedWalletUserEmail as useInAppWalletUserEmail,
} from "./hooks/wallets/useEmbeddedWallet";
export { useEmbeddedWalletSendVerificationEmail as useInAppWalletSendVerificationEmail } from "./hooks/useEmbeddedWalletSendVerificationEmail";
export {
usePaperWalletUserEmail,
+2
View File
@@ -16,7 +16,9 @@ export {
type CoinbaseWalletConfigOptions,
} from "./wallet/wallets/coinbase/coinbaseWallet";
export { embeddedWallet } from "./wallet/wallets/embeddedWallet/embeddedWallet";
export { embeddedWallet as inAppWallet } from "./wallet/wallets/embeddedWallet/embeddedWallet";
export type { EmbeddedWalletConfigOptions } from "./wallet/wallets/embeddedWallet/types";
export type { EmbeddedWalletConfigOptions as InAppWalletConfigOptions } from "./wallet/wallets/embeddedWallet/types";
export {
frameWallet,
@@ -11,7 +11,7 @@ export const modalMaxWidthWide = wideModalWidth + "px";
export const wideModalScreenThreshold = wideModalWidth + 40;
export const wideModalMaxHeight = "570px";
export const compactModalMaxHeight = "600px";
export const compactModalMaxHeight = "650px";
export const defaultTheme = "dark";
@@ -23,7 +23,7 @@ function getWidthAndHeight(authOption: EmbeddedWalletOauthStrategy) {
export function openOauthSignInWindow(
authOption: EmbeddedWalletOauthStrategy,
themeObj: Theme,
themeObj?: Theme,
) {
// open the popup in the center of the screen
const { height, width } = getWidthAndHeight(authOption);
@@ -39,8 +39,8 @@ export function openOauthSignInWindow(
const title = getBodyTitle(authOption);
win.document.title = title;
win.document.body.innerHTML = spinnerWindowHtml;
win.document.body.style.background = themeObj.colors.modalBg;
win.document.body.style.color = themeObj.colors.accentText;
win.document.body.style.background = themeObj?.colors.modalBg || "black";
win.document.body.style.color = themeObj?.colors.accentText || "white";
}
// close it when current window is closed or refreshed
@@ -23,8 +23,8 @@ import {
} from "./types";
const DEFAULT_AUTH_OPTIONS: AuthOption[] = [
"phone",
"email",
"phone",
"google",
"apple",
"facebook",
Binary file not shown.
+30
View File
@@ -1,5 +1,35 @@
# @thirdweb-dev/sdk
## 4.0.64
### Patch Changes
- [#2785](https://github.com/thirdweb-dev/js/pull/2785) [`4c7153c`](https://github.com/thirdweb-dev/js/commit/4c7153c95df1962d1e530a3d8227960cd87f6a61) Thanks [@jnsdls](https://github.com/jnsdls)! - update dependencies
- Updated dependencies [[`7c17892`](https://github.com/thirdweb-dev/js/commit/7c178923f9072d8f43b0d23f3888fdedae540005), [`a54c745`](https://github.com/thirdweb-dev/js/commit/a54c745977e7806c0339633486eef55f92b02832), [`300e4c8`](https://github.com/thirdweb-dev/js/commit/300e4c8a51581156acdfac431655510f0cdbca21), [`f5abbe8`](https://github.com/thirdweb-dev/js/commit/f5abbe8b54fbd68188c40268ae5707c72f39441f), [`4c7153c`](https://github.com/thirdweb-dev/js/commit/4c7153c95df1962d1e530a3d8227960cd87f6a61), [`37bd0e4`](https://github.com/thirdweb-dev/js/commit/37bd0e42a58cdbe5b04a9871b5fd413ec293d96c), [`76f93a4`](https://github.com/thirdweb-dev/js/commit/76f93a4346bc7627a6b0e4e49d212e245ad91be0)]:
- thirdweb@5.7.0
- @thirdweb-dev/chains@0.1.95
## 4.0.63
### Patch Changes
- Updated dependencies [[`8197b3c`](https://github.com/thirdweb-dev/js/commit/8197b3ced288597979f27ab88abecadad5dac2cb), [`a18fc8e`](https://github.com/thirdweb-dev/js/commit/a18fc8e1b7d7f351e43367f6a6fd77674998e701), [`65e4ddc`](https://github.com/thirdweb-dev/js/commit/65e4ddc8e02467c170658d29d71dca53737548b7), [`df338f5`](https://github.com/thirdweb-dev/js/commit/df338f5f75545dcf717c39e045e2c7e9f64e5f9d), [`9d46fce`](https://github.com/thirdweb-dev/js/commit/9d46fce50fe7ef5750ddf9fefe8131cf190450db), [`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- thirdweb@5.6.0
- @thirdweb-dev/chains@0.1.94
## 4.0.62
### Patch Changes
- [#2678](https://github.com/thirdweb-dev/js/pull/2678) [`9453f74`](https://github.com/thirdweb-dev/js/commit/9453f74bbfd53372fcfd942bcce6c6bfc8c00a2c) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Custom gas settings for any evm deployments
- [#2754](https://github.com/thirdweb-dev/js/pull/2754) [`c4d51e0`](https://github.com/thirdweb-dev/js/commit/c4d51e0b80e2d66fb85b8032dcc286f9cd164cd1) Thanks [@jnsdls](https://github.com/jnsdls)! - handle `[[{}]]` values for `properties` / `attributes` fields of NFTs
- Updated dependencies [[`007770c`](https://github.com/thirdweb-dev/js/commit/007770cd635fba5d38eca5efccc55592c85a106f), [`07f98a5`](https://github.com/thirdweb-dev/js/commit/07f98a5b923166f2e16c9f1759970af2032dbb54), [`e6b5d9c`](https://github.com/thirdweb-dev/js/commit/e6b5d9cc5d1907cbce3aaa895239e0f45b7e880c), [`9453f74`](https://github.com/thirdweb-dev/js/commit/9453f74bbfd53372fcfd942bcce6c6bfc8c00a2c), [`39c6fbc`](https://github.com/thirdweb-dev/js/commit/39c6fbc5521a816c7d9a23933cb41ad76a925d14), [`db05717`](https://github.com/thirdweb-dev/js/commit/db0571780304a7b631646b046522fa15352b5467), [`eb919ed`](https://github.com/thirdweb-dev/js/commit/eb919ed49d57589614ac959cb6cbd7c9c19cac07), [`bf6a8e0`](https://github.com/thirdweb-dev/js/commit/bf6a8e0cab2a02a34d2ca8fbdf9d034ac176b61e)]:
- thirdweb@5.5.0
- @thirdweb-dev/chains@0.1.93
## 4.0.61
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/sdk",
"version": "4.0.61",
"version": "4.0.64",
"description": "The main thirdweb SDK.",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/sdk",
"license": "Apache-2.0",
@@ -89,7 +89,7 @@
"@types/chai": "^4.3.14",
"@types/deep-equal-in-any-order": "^1.0.3",
"@types/mocha": "^10.0.6",
"@types/node": "20.12.5",
"@types/node": "20.12.7",
"@types/uuid": "^9.0.8",
"chai": "^4.4.1",
"deep-equal-in-any-order": "^1.1.20",
@@ -9,6 +9,6 @@ const PropertiesInput = /* @__PURE__ */ (() =>
*/
export const OptionalPropertiesInput = /* @__PURE__ */ (() =>
z
.union([z.array(PropertiesInput), PropertiesInput])
.union([z.array(z.array(PropertiesInput)).transform(i => i.flat()), z.array(PropertiesInput), PropertiesInput])
.optional()
.nullable())();
@@ -19,6 +19,26 @@ export const ERROR_SUBSTRINGS_COMPOSITE = [
["wrong", "chainid"],
];
export const CUSTOM_GAS_BINS = [
1,
1 * 10 ** 9,
100 * 10 ** 9,
500 * 10 ** 9,
1000 * 10 ** 9,
2500 * 10 ** 9,
5000 * 10 ** 9,
7500 * 10 ** 9,
10_000 * 10 ** 9,
25_000 * 10 ** 9,
50_000 * 10 ** 9,
75_000 * 10 ** 9,
100_000 * 10 ** 9,
250_000 * 10 ** 9,
500_000 * 10 ** 9,
750_000 * 10 ** 9,
1_000_000 * 10 ** 9,
];
/* eslint-disable no-useless-computed-key */
export const CUSTOM_GAS_FOR_CHAIN: Record<number, CustomChain> = {
[5001]: {
@@ -1,11 +1,7 @@
import { BigNumber, Signer } from "ethers";
import { Signer } from "ethers";
import invariant from "tiny-invariant";
import type { DeployOptions } from "../../types/deploy/deploy-options";
import { CUSTOM_GAS_FOR_CHAIN } from "../any-evm-constants";
import { COMMON_FACTORY } from "./constants";
import { isContractDeployed } from "./isContractDeployed";
import { isEIP155Enforced } from "./isEIP155Enforced";
import { getCreate2FactoryDeploymentInfo } from "./getCreate2FactoryDeploymentInfo";
import { computeCreate2FactoryTransaction } from "./getCreate2FactoryAddress";
/**
* Deploy Nick's Create2 factory on a given network.
@@ -21,52 +17,19 @@ export async function deployCreate2Factory(
options?: DeployOptions,
): Promise<string> {
invariant(signer.provider, "No provider");
const commonFactoryExists = await isContractDeployed(
COMMON_FACTORY,
signer.provider,
);
if (commonFactoryExists) {
return COMMON_FACTORY;
}
const enforceEip155 = await isEIP155Enforced(signer.provider);
const networkId = (await signer.provider.getNetwork()).chainId;
const chainId = enforceEip155 ? networkId : 0;
console.debug(`ChainId ${networkId} enforces EIP155: ${enforceEip155}`);
const deploymentInfo = CUSTOM_GAS_FOR_CHAIN[networkId]
? getCreate2FactoryDeploymentInfo(chainId, {
gasPrice: CUSTOM_GAS_FOR_CHAIN[networkId].gasPrice,
gasLimit: CUSTOM_GAS_FOR_CHAIN[networkId].gasLimit,
})
: getCreate2FactoryDeploymentInfo(chainId, {});
const factoryExists = await isContractDeployed(
deploymentInfo.deployment,
const deploymentInfo = await computeCreate2FactoryTransaction(
signer.provider,
);
// deploy community factory if not already deployed
if (!factoryExists) {
const gasPrice = CUSTOM_GAS_FOR_CHAIN[networkId]?.gasPrice
? CUSTOM_GAS_FOR_CHAIN[networkId].gasPrice
: 100 * 10 ** 9;
const gasLimit = CUSTOM_GAS_FOR_CHAIN[networkId]?.gasLimit
? CUSTOM_GAS_FOR_CHAIN[networkId].gasLimit
: 100000;
invariant(gasLimit, "gasLimit undefined for create2 factory deploy");
invariant(gasPrice, "gasPrice undefined for create2 factory deploy");
if (deploymentInfo.transaction.length > 0) {
// send balance to the keyless signer
const valueToSend = BigNumber.from(gasPrice).mul(gasLimit);
if (
(await signer.provider.getBalance(deploymentInfo.signer)).lt(valueToSend)
(await signer.provider.getBalance(deploymentInfo.signer)).lt(deploymentInfo.valueToSend)
) {
await (
await signer.sendTransaction({
to: deploymentInfo.signer,
value: valueToSend,
value: deploymentInfo.valueToSend,
})
).wait();
}
@@ -1,9 +1,10 @@
import { providers } from "ethers";
import { CUSTOM_GAS_FOR_CHAIN } from "../any-evm-constants";
import { BigNumber, providers } from "ethers";
import { CUSTOM_GAS_BINS, CUSTOM_GAS_FOR_CHAIN } from "../any-evm-constants";
import { COMMON_FACTORY } from "./constants";
import { isContractDeployed } from "./isContractDeployed";
import { isEIP155Enforced } from "./isEIP155Enforced";
import { getCreate2FactoryDeploymentInfo } from "./getCreate2FactoryDeploymentInfo";
import { KeylessDeploymentInfo } from "../../types/any-evm/deploy-data";
/**
* Get the CREATE2 Factory address for a network
@@ -16,23 +17,78 @@ import { getCreate2FactoryDeploymentInfo } from "./getCreate2FactoryDeploymentIn
export async function getCreate2FactoryAddress(
provider: providers.Provider,
): Promise<string> {
const commonFactoryExists = await isContractDeployed(
COMMON_FACTORY,
provider,
);
if (commonFactoryExists) {
return COMMON_FACTORY;
}
const enforceEip155 = await isEIP155Enforced(provider);
const networkId = (await provider.getNetwork()).chainId;
const chainId = enforceEip155 ? networkId : 0;
const deploymentInfo = CUSTOM_GAS_FOR_CHAIN[networkId]
? getCreate2FactoryDeploymentInfo(chainId, {
gasPrice: CUSTOM_GAS_FOR_CHAIN[networkId].gasPrice,
gasLimit: CUSTOM_GAS_FOR_CHAIN[networkId].gasLimit,
})
: getCreate2FactoryDeploymentInfo(chainId, {});
const deploymentInfo = await computeCreate2FactoryTransaction(provider);
return deploymentInfo.deployment;
}
/**
* @internal
*/
export async function computeCreate2FactoryTransaction(
provider: providers.Provider,
): Promise<KeylessDeploymentInfo> {
const networkId = (await provider.getNetwork()).chainId;
// special handling for chains with hardcoded gasPrice and gasLimit
if (CUSTOM_GAS_FOR_CHAIN[networkId]) {
const enforceEip155 = await isEIP155Enforced(provider);
const chainId = enforceEip155 ? networkId : 0;
const gasPrice = CUSTOM_GAS_FOR_CHAIN[networkId]?.gasPrice;
const gasLimit = CUSTOM_GAS_FOR_CHAIN[networkId]?.gasLimit;
const deploymentInfo = getCreate2FactoryDeploymentInfo(chainId, {
gasPrice: gasPrice ? BigNumber.from(gasPrice) : undefined,
gasLimit: gasLimit ? BigNumber.from(gasLimit) : undefined,
});
if (await isContractDeployed(deploymentInfo.deployment, provider)) {
deploymentInfo.transaction = "";
}
return deploymentInfo;
}
// default flow
const allBinsInfo = [
...CUSTOM_GAS_BINS.map((b) =>
// to generate EIP-155 transaction
getCreate2FactoryDeploymentInfo(networkId, { gasPrice: BigNumber.from(b) }),
),
// to generate pre-EIP-155 transaction, hence chainId 0
...CUSTOM_GAS_BINS.map((b) =>
getCreate2FactoryDeploymentInfo(0, { gasPrice: BigNumber.from(b) }),
),
];
const allFactories = await Promise.all(
allBinsInfo.map((b) => isContractDeployed(b.deployment, provider)),
);
const indexOfCommonFactory = allBinsInfo.findIndex(
(b) => b.deployment === COMMON_FACTORY,
);
if (indexOfCommonFactory && allFactories[indexOfCommonFactory]) {
return { ...allBinsInfo[indexOfCommonFactory], transaction: "" };
}
const indexOfExistingDeployment = allFactories.findIndex((b) => b);
if (indexOfExistingDeployment && allBinsInfo[indexOfExistingDeployment]) {
return { ...allBinsInfo[indexOfExistingDeployment], transaction: "" };
}
const [enforceEip155, gasPriceFetched] = await Promise.all([
isEIP155Enforced(provider),
provider.getGasPrice(),
]);
const chainId = enforceEip155 ? networkId : 0;
const bin = _getNearestGasPriceBin(gasPriceFetched);
return getCreate2FactoryDeploymentInfo(chainId, {
gasPrice: bin,
});
}
function _getNearestGasPriceBin(gasPrice: BigNumber): BigNumber {
const bin = CUSTOM_GAS_BINS.find((e) => BigNumber.from(e).gte(gasPrice));
return bin ? BigNumber.from(bin) : gasPrice;
}
@@ -1,4 +1,4 @@
import { utils } from "ethers";
import { BigNumber, utils } from "ethers";
import { KeylessDeploymentInfo } from "../../types/any-evm/deploy-data";
import { SIGNATURE, CREATE2_FACTORY_BYTECODE } from "./constants";
import { getKeylessTxn } from "./getKeylessTxn";
@@ -11,13 +11,19 @@ import { getKeylessTxn } from "./getKeylessTxn";
*/
export function getCreate2FactoryDeploymentInfo(
chainId: number,
gasOptions: { gasPrice?: number; gasLimit?: number },
gasOptions: { gasPrice?: BigNumber; gasLimit?: BigNumber },
): KeylessDeploymentInfo {
const signature = utils.joinSignature(SIGNATURE);
// 100000 is default deployment gas limit and 100 gwei is default gas price for create2 factory deployment
// (See: https://github.com/Arachnid/deterministic-deployment-proxy?tab=readme-ov-file#deployment-gas-limit)
const gasPrice = gasOptions.gasPrice ? gasOptions.gasPrice : 100 * 10 ** 9;
const gasLimit = gasOptions.gasLimit ? gasOptions.gasLimit : 100000;
const deploymentTransaction = getKeylessTxn(
{
gasPrice: gasOptions.gasPrice ? gasOptions.gasPrice : 100 * 10 ** 9,
gasLimit: gasOptions.gasLimit ? gasOptions.gasLimit : 100000,
gasPrice,
gasLimit,
nonce: 0,
data: CREATE2_FACTORY_BYTECODE,
chainId: chainId,
@@ -32,5 +38,6 @@ export function getCreate2FactoryDeploymentInfo(
return {
...deploymentTransaction,
deployment: create2FactoryAddress,
valueToSend: BigNumber.from(gasPrice).mul(gasLimit),
};
}
@@ -1,4 +1,4 @@
import { BytesLike } from "ethers";
import { BigNumber, BytesLike } from "ethers";
import { PreDeployMetadataFetched } from "../../schema/contracts/custom";
import { AddressOrEns } from "../../schema/shared/AddressOrEnsSchema";
@@ -24,6 +24,7 @@ export type KeylessDeploymentInfo = {
signer: string;
transaction: string;
deployment: string;
valueToSend: BigNumber;
};
export type DeployedContractType =
@@ -26,9 +26,30 @@ import {
englishAuctionsBytecode,
englishAuctionsCompilerMetadata,
} from "./mock/englishAuctionsMetadata";
import { getCreate2FactoryAddress } from "../../src/evm/common/any-evm-utils/getCreate2FactoryAddress";
const itIf = (condition: boolean) => (condition ? it : it.skip);
describe("Create2 factory addresses", async () => {
it("should compute correct addresses for create2 factory", async () => {
// pre eip155
sdk.updateSignerOrProvider(1);
expect(await getCreate2FactoryAddress(sdk.getProvider())).to.equal("0x4e59b44847b379578588920cA78FbF26c0B4956C");
// eip155
sdk.updateSignerOrProvider(923018);
expect(await getCreate2FactoryAddress(sdk.getProvider())).to.equal("0x52329130FCBD4e15B0aC7C4505fBFB530b960AE8");
// eip155 with hardcoded custom gas
sdk.updateSignerOrProvider(47);
expect(await getCreate2FactoryAddress(sdk.getProvider())).to.equal("0x4F656d8f2e13D4980149940f4C962EC4f8aF31c5");
// eip155 with custom gas bin
sdk.updateSignerOrProvider(2710);
expect(await getCreate2FactoryAddress(sdk.getProvider())).to.equal("0x5Ffe7DeB88759a70B42bc12ABe16f72ce81F0459");
})
})
describe("Any EVM Keyless Deploy", async () => {
let contract: SmartContract;
let adminWallet: SignerWithAddress;
Binary file not shown.
@@ -1,5 +1,39 @@
# @thirdweb-dev/unity-js-bridge
## 0.6.13
### Patch Changes
- [#2792](https://github.com/thirdweb-dev/js/pull/2792) [`bf0509e`](https://github.com/thirdweb-dev/js/commit/bf0509e7466ab41bdcfe3acffee3ed3af38cb71e) Thanks [@0xFirekeeper](https://github.com/0xFirekeeper)! - Unity 4.12 - Engine Relayer Support
- Updated dependencies [[`4c7153c`](https://github.com/thirdweb-dev/js/commit/4c7153c95df1962d1e530a3d8227960cd87f6a61), [`76f93a4`](https://github.com/thirdweb-dev/js/commit/76f93a4346bc7627a6b0e4e49d212e245ad91be0)]:
- @thirdweb-dev/sdk@4.0.64
- @thirdweb-dev/chains@0.1.95
- @thirdweb-dev/wallets@2.5.4
- @thirdweb-dev/auth@4.1.62
## 0.6.12
### Patch Changes
- [#2765](https://github.com/thirdweb-dev/js/pull/2765) [`f0fe1fd`](https://github.com/thirdweb-dev/js/commit/f0fe1fdb1bd55fd7d16fc6380be000011d3682a0) Thanks [@0xFirekeeper](https://github.com/0xFirekeeper)! - Unity 4.11.0, EmbeddedWallet -> InAppWallet + fix 4.10 regression
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
- @thirdweb-dev/wallets@2.5.3
- @thirdweb-dev/auth@4.1.61
## 0.6.11
### Patch Changes
- Updated dependencies [[`cb2a7e9`](https://github.com/thirdweb-dev/js/commit/cb2a7e964a78b9fc8670392f1b033936dae696dc), [`9453f74`](https://github.com/thirdweb-dev/js/commit/9453f74bbfd53372fcfd942bcce6c6bfc8c00a2c), [`c4d51e0`](https://github.com/thirdweb-dev/js/commit/c4d51e0b80e2d66fb85b8032dcc286f9cd164cd1), [`bf6a8e0`](https://github.com/thirdweb-dev/js/commit/bf6a8e0cab2a02a34d2ca8fbdf9d034ac176b61e)]:
- @thirdweb-dev/wallets@2.5.2
- @thirdweb-dev/sdk@4.0.62
- @thirdweb-dev/chains@0.1.93
- @thirdweb-dev/auth@4.1.60
## 0.6.10
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/unity-js-bridge",
"version": "0.6.10",
"version": "0.6.13",
"main": "dist/thirdweb-unity-bridge.js",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
"license": "Apache-2.0",
@@ -17,13 +17,12 @@ import {
import { ThirdwebStorage } from "@thirdweb-dev/storage";
import {
type DAppMetaData,
type EmbeddedWalletOauthStrategy,
InAppWallet,
type InAppWalletOauthStrategy,
type SmartWalletConfig,
walletIds,
} from "@thirdweb-dev/wallets";
import type { AbstractClientWallet } from "@thirdweb-dev/wallets/evm/wallets/base";
import { CoinbaseWallet } from "@thirdweb-dev/wallets/evm/wallets/coinbase-wallet";
import { EmbeddedWallet } from "@thirdweb-dev/wallets/evm/wallets/embedded-wallet";
import { EthersWallet } from "@thirdweb-dev/wallets/evm/wallets/ethers";
import { InjectedWallet } from "@thirdweb-dev/wallets/evm/wallets/injected";
import { LocalWallet } from "@thirdweb-dev/wallets/evm/wallets/local-wallet";
@@ -66,18 +65,16 @@ const bigNumberReplacer = (_key: string, value: any) => {
return value;
};
const WALLETS = [
MetaMaskWallet,
InjectedWallet,
WalletConnect,
CoinbaseWallet,
LocalWallet,
SmartWallet,
EmbeddedWallet,
const SUPPORTED_WALLET_IDS = [
"injected",
"metamask",
"walletConnect",
"coinbase",
"localWallet",
"smartWallet",
"inAppWallet",
] as const;
type PossibleWallet = (typeof WALLETS)[number]["id"];
type FundWalletInput = FundWalletOptions & {
appId: string;
};
@@ -85,11 +82,11 @@ type FundWalletInput = FundWalletOptions & {
interface TWBridge {
initialize: (chain: ChainIdOrName, options: string) => void;
connect: (
wallet: PossibleWallet,
wallet: string,
chainId: string,
password?: string,
email?: string,
personalWallet?: PossibleWallet,
personalWallet?: string,
authOptions?: string,
smartWalletAccountOverride?: string,
) => Promise<string>;
@@ -174,10 +171,11 @@ class ThirdwebBridge implements TWBridge {
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
(globalThis as any).X_SDK_PLATFORM = "unity";
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
(globalThis as any).X_SDK_VERSION = "unity-4.10.1";
(globalThis as any).X_SDK_VERSION = "4.12.0";
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
(globalThis as any).X_SDK_OS = browser?.os ?? "unknown";
}
this.initializedChain = chain;
const sdkOptions = JSON.parse(options);
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
@@ -215,7 +213,7 @@ class ThirdwebBridge implements TWBridge {
clientId: sdkOptions.clientId,
});
this.activeSDK = new ThirdwebSDK(chain, sdkOptions, storage);
for (const possibleWallet of WALLETS) {
for (const walletId of SUPPORTED_WALLET_IDS) {
let walletInstance: AbstractClientWallet;
const dappMetadata: DAppMetaData = {
name: sdkOptions.wallet?.appName || "thirdweb powered game",
@@ -224,7 +222,7 @@ class ThirdwebBridge implements TWBridge {
logoUrl: sdkOptions.wallet?.appIcons?.[0] || "",
...sdkOptions.wallet?.extras,
};
switch (possibleWallet.id) {
switch (walletId) {
case "injected":
walletInstance = new InjectedWallet({
dappMetadata,
@@ -232,14 +230,14 @@ class ThirdwebBridge implements TWBridge {
clientId: sdkOptions.clientId,
});
break;
case walletIds.metamask:
case "metamask":
walletInstance = new MetaMaskWallet({
dappMetadata,
chains: supportedChains,
clientId: sdkOptions.clientId,
});
break;
case walletIds.walletConnect:
case "walletConnect":
walletInstance = new WalletConnect({
projectId: sdkOptions.wallet?.walletConnectProjectId,
dappMetadata,
@@ -261,21 +259,21 @@ class ThirdwebBridge implements TWBridge {
},
});
break;
case walletIds.coinbase:
case "coinbase":
walletInstance = new CoinbaseWallet({
dappMetadata,
chains: supportedChains,
clientId: sdkOptions.clientId,
});
break;
case walletIds.localWallet:
case "localWallet":
walletInstance = new LocalWallet({
dappMetadata,
chains: supportedChains,
clientId: sdkOptions.clientId,
});
break;
case walletIds.smartWallet: {
case "smartWallet": {
const config: SmartWalletConfig = {
chain: chain,
factoryAddress: sdkOptions.smartWalletConfig?.factoryAddress,
@@ -292,8 +290,8 @@ class ThirdwebBridge implements TWBridge {
walletInstance = new SmartWallet(config);
break;
}
case walletIds.embeddedWallet:
walletInstance = new EmbeddedWallet({
case "inAppWallet":
walletInstance = new InAppWallet({
clientId: sdkOptions.clientId,
chain: Ethereum,
dappMetadata,
@@ -301,7 +299,7 @@ class ThirdwebBridge implements TWBridge {
});
break;
default:
throw new Error(`Unknown wallet type: ${possibleWallet.id}`);
throw new Error(`Unknown wallet type: ${walletId}`);
}
if (walletInstance) {
walletInstance.on("connect", async () =>
@@ -312,19 +310,19 @@ class ThirdwebBridge implements TWBridge {
);
walletInstance.on("disconnect", () => this.updateSDKSigner());
this.walletMap.set(possibleWallet.id, walletInstance);
this.walletMap.set(walletId, walletInstance);
}
}
}
public async connect(
// biome-ignore lint/style/useDefaultParameterLast: would change the order of parameters to fix this
wallet: PossibleWallet = "injected",
wallet: string,
chainId: string,
password?: string,
email?: string,
phoneNumber?: string,
personalWallet: PossibleWallet = "localWallet",
personalWallet?: string,
authOptions?: string,
smartWalletAccountOverride?: string,
) {
@@ -335,13 +333,13 @@ class ThirdwebBridge implements TWBridge {
const chainIdNumber = Number(chainId);
if (walletInstance) {
// local wallet needs to be generated or loaded before connecting
if (walletInstance.walletId === walletIds.localWallet) {
if (wallet === "localWallet") {
await this.initializeLocalWallet(password as string);
walletInstance.connect({ chainId: chainIdNumber });
}
if (walletInstance.walletId === walletIds.embeddedWallet) {
const embeddedWallet = walletInstance as EmbeddedWallet;
if (wallet === "inAppWallet") {
const embeddedWallet = walletInstance as InAppWallet;
const authOptionsParsed = JSON.parse(authOptions || "{}");
if (authOptionsParsed.authProvider === 0) {
// EmailOTP
@@ -358,7 +356,7 @@ class ThirdwebBridge implements TWBridge {
});
} else if (authOptionsParsed.authProvider < 4) {
// OAuth
let authProvider: EmbeddedWalletOauthStrategy;
let authProvider: InAppWalletOauthStrategy;
switch (authOptionsParsed.authProvider) {
// Google
case 1:
@@ -437,17 +435,21 @@ class ThirdwebBridge implements TWBridge {
`Invalid auth provider: ${authOptionsParsed.authProvider}`,
);
}
} else if (walletInstance.walletId === walletIds.smartWallet) {
} else if (wallet === "smartWallet") {
if (!personalWallet) {
throw new Error("Personal wallet is required for smart wallet");
}
const smartWallet = walletInstance as SmartWallet;
const eoaWallet = this.walletMap.get(personalWallet);
// Connect flow for EOA first
await this.connect(
eoaWallet?.walletId,
personalWallet,
chainId,
password,
email,
personalWallet,
phoneNumber,
undefined,
authOptions,
undefined,
);
await this.switchNetwork(chainId); // workaround for polygon/mumbai
if (this.activeWallet) {
@@ -471,7 +473,7 @@ class ThirdwebBridge implements TWBridge {
this.updateSDKSigner(await walletInstance.getSigner());
return await this.activeSDK.wallet.getAddress();
}
throw new Error("Invalid Wallet");
throw new Error(`This wallet is not supported in WebGL: ${wallet}`);
}
public async disconnect() {
@@ -728,9 +730,7 @@ class ThirdwebBridge implements TWBridge {
}
public async exportWallet(password: string): Promise<string> {
const localWallet = this.walletMap.get(
walletIds.localWallet,
) as LocalWallet;
const localWallet = this.walletMap.get("localWallet") as LocalWallet;
return await localWallet.export({
strategy: "encryptedJson",
password: password,
@@ -754,9 +754,7 @@ class ThirdwebBridge implements TWBridge {
}
public async initializeLocalWallet(password: string): Promise<LocalWallet> {
const localWallet = this.walletMap.get(
walletIds.localWallet,
) as LocalWallet;
const localWallet = this.walletMap.get("localWallet") as LocalWallet;
try {
await localWallet.loadOrCreate({
strategy: "encryptedJson",
@@ -872,9 +870,7 @@ class ThirdwebBridge implements TWBridge {
if (!this.activeWallet) {
throw new Error("No wallet connected");
}
const embeddedWallet = this.walletMap.get(
walletIds.embeddedWallet,
) as EmbeddedWallet;
const embeddedWallet = this.walletMap.get("inAppWallet") as InAppWallet;
const email = await embeddedWallet.getEmail();
return JSON.stringify({ result: email });
}
+26
View File
@@ -1,5 +1,31 @@
# @thirdweb-dev/wallets
## 2.5.4
### Patch Changes
- Updated dependencies [[`4c7153c`](https://github.com/thirdweb-dev/js/commit/4c7153c95df1962d1e530a3d8227960cd87f6a61), [`76f93a4`](https://github.com/thirdweb-dev/js/commit/76f93a4346bc7627a6b0e4e49d212e245ad91be0)]:
- @thirdweb-dev/sdk@4.0.64
- @thirdweb-dev/chains@0.1.95
## 2.5.3
### Patch Changes
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
## 2.5.2
### Patch Changes
- [#2745](https://github.com/thirdweb-dev/js/pull/2745) [`cb2a7e9`](https://github.com/thirdweb-dev/js/commit/cb2a7e964a78b9fc8670392f1b033936dae696dc) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Alias embedded wallet to in-app wallet
- Updated dependencies [[`9453f74`](https://github.com/thirdweb-dev/js/commit/9453f74bbfd53372fcfd942bcce6c6bfc8c00a2c), [`c4d51e0`](https://github.com/thirdweb-dev/js/commit/c4d51e0b80e2d66fb85b8032dcc286f9cd164cd1), [`bf6a8e0`](https://github.com/thirdweb-dev/js/commit/bf6a8e0cab2a02a34d2ca8fbdf9d034ac176b61e)]:
- @thirdweb-dev/sdk@4.0.62
- @thirdweb-dev/chains@0.1.93
## 2.5.1
### Patch Changes

Some files were not shown because too many files have changed in this diff Show More