Compare commits

..
Author SHA1 Message Date
Jonas Danielsandgithub-actions[bot] 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 Daniels 4a6eed5d99 chore: update release-artifacts timeout (#2804) 2024-04-17 14:15:25 -07:00
Jonas Daniels a54c745977 feat: Added new extensions for English Auctions (#2803) 2024-04-17 14:13:55 -07:00
Jonas Daniels 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] 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 Daniels 4f2a3fb1f1 docs: Update terminology in useSendTransaction.tsx (#2800) 2024-04-17 12:16:39 -07:00
Jonas Daniels 37bd0e42a5 fix(cli): fix spawn issue on windows (#2799) 2024-04-17 11:52:17 -07:00
Joaquim Verges f5abbe8b54 feat: Add deployPublishedContract deploy extension (#2788) 2024-04-17 18:12:27 +00:00
Jonas Daniels b1d9e4aa97 chore: Remove unused code from LocalWallet (#2798) 2024-04-17 17:35:32 +00:00
Eiman 5398d6813e fixed mintAdditionalSupplyTo example (#2796) 2024-04-17 09:39:53 -07:00
Firekeeper bf0509e746 Unity 4.12 - Engine Relayer Support (#2792) 2024-04-17 15:53:00 +00:00
Joaquim Verges 7c178923f9 fix: claim with price and no allowlists (#2795) 2024-04-17 22:03:16 +12:00
Manan TankandJonas Daniels 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] 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 Tank 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] 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] 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 Daniels 4c7153c95d chore: update dependencies (#2785) 2024-04-15 18:45:47 -07:00
dependabot[bot] 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 Daniels 2de2b69934 chore(tests): add test for gas cost for native token (#2783) 2024-04-15 15:27:37 -07:00
Jonas Danielsandgithub-actions[bot] 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 Verges 9b0a3df709 fix: deploy WETH9 infra contract for marketplace deploys (#2775) 2024-04-14 23:44:17 -07:00
github-actions[bot]andJonas 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 Daniels df338f5f75 feat(extensions/erc20): add claimTo and claim condition extensions (#2771) 2024-04-13 09:16:18 -07:00
Jonas Daniels ea0dedcb6e test: Update chain definition in isEIP155Enforced test (#2773) 2024-04-12 22:58:47 -07:00
github-actions[bot] 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 Daniels ff354a6ae1 Jd/cleanups (#2770) 2024-04-12 13:33:15 -07:00
gregandJonas Daniels 8197b3ced2 [SDK] Adds serializeTransaction function (#2760)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-12 13:29:54 -07:00
Joaquim VergesandJonas Daniels 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 Daniels 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
Firekeeper f0fe1fdb1b Unity 4.11.0, EmbeddedWallet -> InAppWallet + fix 4.10 regression (#2765) 2024-04-12 00:10:11 +00:00
Jonas Daniels b22a572d8a fix: Update package dependencies versions (#2764) 2024-04-11 17:08:52 -07:00
Jonas Daniels 9d46fce50f extensions(permissions): add support for initial permissions (#2757) 2024-04-11 16:47:30 -07:00
Manan Tank a18fc8e1b7 Connect UI context cleanup (#2761) 2024-04-11 23:34:14 +00:00
github-actions[bot] 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
568 changed files with 8421 additions and 3769 deletions
+11 -4
View File
@@ -30,7 +30,7 @@ env:
jobs: jobs:
build: build:
runs-on: ubuntu-latest-16 runs-on: ubuntu-latest
name: Build Packages name: Build Packages
steps: steps:
- name: Check out the code - name: Check out the code
@@ -63,7 +63,7 @@ jobs:
test: test:
timeout-minutes: 15 timeout-minutes: 15
name: Unit Tests name: Unit Tests
runs-on: ubuntu-latest-16 runs-on: ubuntu-latest
steps: steps:
- name: Check out the code - name: Check out the code
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -73,6 +73,8 @@ jobs:
- name: Set up foundry - name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1 uses: foundry-rs/foundry-toolchain@v1
with:
cache: false
- run: pnpm test - run: pnpm test
@@ -101,7 +103,7 @@ jobs:
if: github.event_name != 'merge_group' if: github.event_name != 'merge_group'
timeout-minutes: 15 timeout-minutes: 15
name: "Benchmarks" name: "Benchmarks"
runs-on: ubuntu-latest-16 runs-on: ubuntu-latest
steps: steps:
- name: Check out the code - name: Check out the code
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -109,6 +111,11 @@ jobs:
- name: Setup & Install - name: Setup & Install
uses: ./.github/composite-actions/install uses: ./.github/composite-actions/install
- name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1
with:
cache: false
- name: Run benchmarks - name: Run benchmarks
uses: CodSpeedHQ/action@v2 uses: CodSpeedHQ/action@v2
with: with:
@@ -120,7 +127,7 @@ jobs:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
timeout-minutes: 15 timeout-minutes: 15
name: "Size" name: "Size"
runs-on: ubuntu-latest-16 runs-on: ubuntu-latest
steps: steps:
- name: Check out the code - name: Check out the code
uses: actions/checkout@v4 uses: actions/checkout@v4
+1 -1
View File
@@ -20,7 +20,7 @@ env:
jobs: jobs:
release-artifacts: release-artifacts:
timeout-minutes: 15 timeout-minutes: 60
runs-on: ubuntu-latest-16 runs-on: ubuntu-latest-16
steps: steps:
- name: Checkout branch - name: Checkout branch
+16 -1
View File
@@ -21,5 +21,20 @@
"packages/thirdweb/src/utils/bytecode/cbor-decode.ts", "packages/thirdweb/src/utils/bytecode/cbor-decode.ts",
"packages/thirdweb/src/**/__generated__/**" "packages/thirdweb/src/**/__generated__/**"
] ]
} },
"overrides": [
{
"include": ["packages/thirdweb/src/**"],
"linter": {
"rules": {
"style": {
"noRestrictedGlobals": {
"options": { "deniedGlobals": ["Buffer"] },
"level": "error"
}
}
}
}
}
]
} }
+14
View File
@@ -1,5 +1,19 @@
# @thirdweb-dev/auth # @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 ## 4.1.60
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/auth", "name": "@thirdweb-dev/auth",
"version": "4.1.60", "version": "4.1.62",
"main": "dist/thirdweb-dev-auth.cjs.js", "main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js", "module": "dist/thirdweb-dev-auth.esm.js",
"browser": { "browser": {
+12
View File
@@ -1,5 +1,17 @@
# @thirdweb-dev/chains # @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 ## 0.1.93
### Patch Changes ### 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", "name": "blockscout",
"url": "https://blockscoutapi.hekla.taiko.xyz", "url": "https://blockscoutapi.hekla.taiko.xyz",
"standard": "EIP3091" "standard": "EIP3091"
},
{
"name": "routescan",
"url": "https://hekla.taikoscan.network",
"standard": "EIP3091"
} }
], ],
"faucets": [], "faucets": [],
+5 -2
View File
@@ -5,7 +5,7 @@ export default {
"explorers": [ "explorers": [
{ {
"name": "Titan Explorer", "name": "Titan Explorer",
"url": "https://titan-explorer-light.titanlab.io/Titan", "url": "https://tkxscan.io/Titan",
"standard": "none", "standard": "none",
"icon": { "icon": {
"url": "ipfs://bafkreicyvc7t55zsejv6vwaxbmhvea5vdfkkbgqkmn65rhyyifpg3mq3ua", "url": "ipfs://bafkreicyvc7t55zsejv6vwaxbmhvea5vdfkkbgqkmn65rhyyifpg3mq3ua",
@@ -32,7 +32,10 @@ export default {
"networkId": 18888, "networkId": 18888,
"rpc": [ "rpc": [
"https://18888.rpc.thirdweb.com/${THIRDWEB_API_KEY}", "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", "shortName": "titan_tkx",
"slip44": 1, "slip44": 1,
+1 -1
View File
@@ -26,6 +26,6 @@ export default {
], ],
"shortName": "okb", "shortName": "okb",
"slug": "x-layer", "slug": "x-layer",
"status": "incubating", "status": "active",
"testnet": false "testnet": false
} as const satisfies Chain; } 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 { export default {
"chain": "Avalanche", "chain": "Avalanche",
"chainId": 2121, "chainId": 2121,
"explorers": [], "explorers": [
{
"name": "catenascan",
"url": "https://catenascan.com",
"standard": "EIP3091"
}
],
"faucets": [], "faucets": [],
"features": [], "features": [
{
"name": "EIP155"
},
{
"name": "EIP1559"
}
],
"icon": { "icon": {
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg", "url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
"width": 256, "width": 256,
@@ -22,7 +35,8 @@ export default {
"redFlags": [], "redFlags": [],
"rpc": [ "rpc": [
"https://2121.rpc.thirdweb.com/${THIRDWEB_API_KEY}", "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", "shortName": "M TEST 1103-2",
"slug": "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": [ "explorers": [
{ {
"name": "Atleta Testnet Explorer", "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", "standard": "none",
"icon": { "icon": {
"url": "ipfs://QmV2JVr4FCcb6aRiUoA3wS5erLoxtLBLonQ1Nvz8fNuEcR", "url": "ipfs://QmV2JVr4FCcb6aRiUoA3wS5erLoxtLBLonQ1Nvz8fNuEcR",
@@ -33,8 +33,7 @@ export default {
}, },
"networkId": 2340, "networkId": 2340,
"rpc": [ "rpc": [
"https://2340.rpc.thirdweb.com/${THIRDWEB_API_KEY}", "wss://testnet-rpc.atleta.network:9944"
"https://atleta-testnet-rpc.quark.blue:9944"
], ],
"shortName": "atla", "shortName": "atla",
"slip44": 1, "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, "chainId": 2730,
"explorers": [ "explorers": [
{ {
"name": "blockscout", "name": "XR Sepolia Explorer",
"url": "https://xr-sepolia-testnet.explorer.caldera.xyz/", "url": "https://xr-sepolia-testnet.explorer.caldera.xyz",
"standard": "EIP3091", "standard": "EIP3091",
"icon": { "icon": {
"url": "ipfs://QmRdBsZF2sgWitedT5qAtBZwrYwY1xecHN9u5fgddqA1eL/xr-sepolia.png", "url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 300, "width": 551,
"height": 300, "height": 540,
"format": "png" "format": "png"
} }
} }
], ],
"faucets": [], "faucets": [],
"features": [], "features": [
{
"name": "EIP155"
},
{
"name": "EIP1559"
}
],
"icon": { "icon": {
"url": "ipfs://QmRdBsZF2sgWitedT5qAtBZwrYwY1xecHN9u5fgddqA1eL/xr-sepolia.png", "url": "ipfs://QmRdBsZF2sgWitedT5qAtBZwrYwY1xecHN9u5fgddqA1eL/xr-sepolia.png",
"width": 300, "width": 300,
@@ -39,9 +46,12 @@ export default {
"redFlags": [], "redFlags": [],
"rpc": [ "rpc": [
"https://2730.rpc.thirdweb.com/${THIRDWEB_API_KEY}", "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" "https://xr-sepolia-testnet.rpc.caldera.xyz/http"
], ],
"shortName": "xr-sepolia", "shortName": "xr-sepolia",
"slip44": 60,
"slug": "xr-sepolia", "slug": "xr-sepolia",
"status": "active",
"testnet": true "testnet": true
} as const satisfies Chain; } 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": 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 { export default {
"chain": "Avalanche", "chain": "Avalanche",
"chainId": 555666, "chainId": 555666,
"explorers": [], "explorers": [
{
"name": "ECLIPSE Explorer",
"url": "https://subnets-test.avax.network/eclipsecha",
"standard": "EIP3091"
}
],
"faucets": [], "faucets": [],
"features": [], "features": [
{
"name": "EIP1559"
}
],
"icon": { "icon": {
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg", "url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
"width": 256, "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", "name": "Vanguard",
"nativeCurrency": { "nativeCurrency": {
"name": "Vanguard Vanry", "name": "Vanguard Vanry",
"symbol": "VG", "symbol": "VANRY",
"decimals": 18 "decimals": 18
}, },
"networkId": 78600, "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": [ "rpc": [
"https://80002.rpc.thirdweb.com/${THIRDWEB_API_KEY}", "https://80002.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc-amoy.polygon.technology", "https://rpc-amoy.polygon.technology",
"https://https://rpc-amoy.polygon.technology",
"https://polygon-amoy-bor-rpc.publicnode.com", "https://polygon-amoy-bor-rpc.publicnode.com",
"wss://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", "shortName": "karak-sepolia",
"slug": "karak-sepolia", "slug": "karak-sepolia",
"testnet": false "testnet": true,
"title": "Karak Testnet Sepolia"
} as const satisfies Chain; } 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;
+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;
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/chains", "name": "@thirdweb-dev/chains",
"version": "0.1.93", "version": "0.1.95",
"main": "dist/thirdweb-dev-chains.cjs.js", "main": "dist/thirdweb-dev-chains.cjs.js",
"module": "dist/thirdweb-dev-chains.esm.js", "module": "dist/thirdweb-dev-chains.esm.js",
"exports": { "exports": {
File diff suppressed because one or more lines are too long
+22
View File
@@ -1,5 +1,27 @@
# thirdweb # 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 ## 0.13.68
### Patch Changes ### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{ {
"name": "@thirdweb-dev/cli", "name": "@thirdweb-dev/cli",
"main": "dist/cli/index.js", "main": "dist/cli/index.js",
"version": "0.13.68", "version": "0.13.70",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/cli", "repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/cli",
"author": "thirdweb eng <[email protected]>", "author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -16,7 +16,7 @@
"@types/cross-spawn": "^6.0.6", "@types/cross-spawn": "^6.0.6",
"@types/inquirer": "^8.2.10", "@types/inquirer": "^8.2.10",
"@types/js-yaml": "^4.0.9", "@types/js-yaml": "^4.0.9",
"@types/node": "20.12.5", "@types/node": "20.12.7",
"@types/prompts": "^2.4.9", "@types/prompts": "^2.4.9",
"@types/tar": "^6.1.12", "@types/tar": "^6.1.12",
"@types/update-notifier": "^6.0.8", "@types/update-notifier": "^6.0.8",
@@ -6,7 +6,7 @@
"dependencies": { "dependencies": {
"@typescript-eslint/eslint-plugin": "7.5.0", "@typescript-eslint/eslint-plugin": "7.5.0",
"@typescript-eslint/parser": "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-prettier": "9.1.0",
"eslint-config-turbo": "1.13.2", "eslint-config-turbo": "1.13.2",
"eslint-plugin-react": "7.34.1" "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 // ADAPTED FROM https://github.com/merkletreejs/merkletreejs
import { Buffer } from "buffer"; 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 // ADAPTED FROM https://github.com/merkletreejs/merkletreejs
import { Buffer } from "buffer"; import { Buffer } from "buffer";
+20
View File
@@ -1,5 +1,25 @@
# @thirdweb-dev/react-core # @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 ## 4.6.1
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/react-core", "name": "@thirdweb-dev/react-core",
"version": "4.6.1", "version": "4.6.3",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-core", "repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-core",
"author": "thirdweb eng <[email protected]>", "author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -1,5 +1,13 @@
# @thirdweb-dev/react-native-compat # @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.33
## 0.7.32 ## 0.7.32
@@ -1,7 +1,7 @@
{ {
"name": "@thirdweb-dev/react-native-compat", "name": "@thirdweb-dev/react-native-compat",
"description": "Shims for Thirdweb in React Native Projects", "description": "Shims for Thirdweb in React Native Projects",
"version": "0.7.33", "version": "0.7.35",
"author": "thirdweb eng <[email protected]>", "author": "thirdweb eng <[email protected]>",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native-compat", "repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native-compat",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -35,7 +35,7 @@
}, },
"devDependencies": { "devDependencies": {
"@thirdweb-dev/tsconfig": "workspace:*", "@thirdweb-dev/tsconfig": "workspace:*",
"@types/node": "20.12.5", "@types/node": "20.12.7",
"babel-plugin-module-resolver": "^5.0.0", "babel-plugin-module-resolver": "^5.0.0",
"eslint-config-thirdweb": "workspace:*", "eslint-config-thirdweb": "workspace:*",
"ethers": "^5.7.2", "ethers": "^5.7.2",
+20
View File
@@ -1,5 +1,25 @@
# @thirdweb-dev/react-native # @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 ## 0.7.33
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/react-native", "name": "@thirdweb-dev/react-native",
"version": "0.7.33", "version": "0.7.35",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native", "repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native",
"author": "thirdweb eng <[email protected]>", "author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0", "license": "Apache-2.0",
+22
View File
@@ -1,5 +1,27 @@
# @thirdweb-dev/react # @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 ## 4.6.1
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/react", "name": "@thirdweb-dev/react",
"version": "4.6.1", "version": "4.6.3",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react", "repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react",
"author": "thirdweb eng <[email protected]>", "author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -23,8 +23,8 @@ import {
} from "./types"; } from "./types";
const DEFAULT_AUTH_OPTIONS: AuthOption[] = [ const DEFAULT_AUTH_OPTIONS: AuthOption[] = [
"phone",
"email", "email",
"phone",
"google", "google",
"apple", "apple",
"facebook", "facebook",
Binary file not shown.
+18
View File
@@ -1,5 +1,23 @@
# @thirdweb-dev/sdk # @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 ## 4.0.62
### Patch Changes ### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/sdk", "name": "@thirdweb-dev/sdk",
"version": "4.0.62", "version": "4.0.64",
"description": "The main thirdweb SDK.", "description": "The main thirdweb SDK.",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/sdk", "repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/sdk",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -89,7 +89,7 @@
"@types/chai": "^4.3.14", "@types/chai": "^4.3.14",
"@types/deep-equal-in-any-order": "^1.0.3", "@types/deep-equal-in-any-order": "^1.0.3",
"@types/mocha": "^10.0.6", "@types/mocha": "^10.0.6",
"@types/node": "20.12.5", "@types/node": "20.12.7",
"@types/uuid": "^9.0.8", "@types/uuid": "^9.0.8",
"chai": "^4.4.1", "chai": "^4.4.1",
"deep-equal-in-any-order": "^1.1.20", "deep-equal-in-any-order": "^1.1.20",
Binary file not shown.
@@ -1,5 +1,29 @@
# @thirdweb-dev/unity-js-bridge # @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 ## 0.6.11
### Patch Changes ### Patch Changes
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/unity-js-bridge", "name": "@thirdweb-dev/unity-js-bridge",
"version": "0.6.11", "version": "0.6.13",
"main": "dist/thirdweb-unity-bridge.js", "main": "dist/thirdweb-unity-bridge.js",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge", "repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
"license": "Apache-2.0", "license": "Apache-2.0",
@@ -17,13 +17,12 @@ import {
import { ThirdwebStorage } from "@thirdweb-dev/storage"; import { ThirdwebStorage } from "@thirdweb-dev/storage";
import { import {
type DAppMetaData, type DAppMetaData,
type EmbeddedWalletOauthStrategy, InAppWallet,
type InAppWalletOauthStrategy,
type SmartWalletConfig, type SmartWalletConfig,
walletIds,
} from "@thirdweb-dev/wallets"; } from "@thirdweb-dev/wallets";
import type { AbstractClientWallet } from "@thirdweb-dev/wallets/evm/wallets/base"; import type { AbstractClientWallet } from "@thirdweb-dev/wallets/evm/wallets/base";
import { CoinbaseWallet } from "@thirdweb-dev/wallets/evm/wallets/coinbase-wallet"; 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 { EthersWallet } from "@thirdweb-dev/wallets/evm/wallets/ethers";
import { InjectedWallet } from "@thirdweb-dev/wallets/evm/wallets/injected"; import { InjectedWallet } from "@thirdweb-dev/wallets/evm/wallets/injected";
import { LocalWallet } from "@thirdweb-dev/wallets/evm/wallets/local-wallet"; import { LocalWallet } from "@thirdweb-dev/wallets/evm/wallets/local-wallet";
@@ -66,18 +65,16 @@ const bigNumberReplacer = (_key: string, value: any) => {
return value; return value;
}; };
const WALLETS = [ const SUPPORTED_WALLET_IDS = [
MetaMaskWallet, "injected",
InjectedWallet, "metamask",
WalletConnect, "walletConnect",
CoinbaseWallet, "coinbase",
LocalWallet, "localWallet",
SmartWallet, "smartWallet",
EmbeddedWallet, "inAppWallet",
] as const; ] as const;
type PossibleWallet = (typeof WALLETS)[number]["id"];
type FundWalletInput = FundWalletOptions & { type FundWalletInput = FundWalletOptions & {
appId: string; appId: string;
}; };
@@ -85,11 +82,11 @@ type FundWalletInput = FundWalletOptions & {
interface TWBridge { interface TWBridge {
initialize: (chain: ChainIdOrName, options: string) => void; initialize: (chain: ChainIdOrName, options: string) => void;
connect: ( connect: (
wallet: PossibleWallet, wallet: string,
chainId: string, chainId: string,
password?: string, password?: string,
email?: string, email?: string,
personalWallet?: PossibleWallet, personalWallet?: string,
authOptions?: string, authOptions?: string,
smartWalletAccountOverride?: string, smartWalletAccountOverride?: string,
) => Promise<string>; ) => Promise<string>;
@@ -174,10 +171,11 @@ class ThirdwebBridge implements TWBridge {
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any // biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
(globalThis as any).X_SDK_PLATFORM = "unity"; (globalThis as any).X_SDK_PLATFORM = "unity";
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any // 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 // biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
(globalThis as any).X_SDK_OS = browser?.os ?? "unknown"; (globalThis as any).X_SDK_OS = browser?.os ?? "unknown";
} }
this.initializedChain = chain; this.initializedChain = chain;
const sdkOptions = JSON.parse(options); const sdkOptions = JSON.parse(options);
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any // biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
@@ -215,7 +213,7 @@ class ThirdwebBridge implements TWBridge {
clientId: sdkOptions.clientId, clientId: sdkOptions.clientId,
}); });
this.activeSDK = new ThirdwebSDK(chain, sdkOptions, storage); this.activeSDK = new ThirdwebSDK(chain, sdkOptions, storage);
for (const possibleWallet of WALLETS) { for (const walletId of SUPPORTED_WALLET_IDS) {
let walletInstance: AbstractClientWallet; let walletInstance: AbstractClientWallet;
const dappMetadata: DAppMetaData = { const dappMetadata: DAppMetaData = {
name: sdkOptions.wallet?.appName || "thirdweb powered game", name: sdkOptions.wallet?.appName || "thirdweb powered game",
@@ -224,7 +222,7 @@ class ThirdwebBridge implements TWBridge {
logoUrl: sdkOptions.wallet?.appIcons?.[0] || "", logoUrl: sdkOptions.wallet?.appIcons?.[0] || "",
...sdkOptions.wallet?.extras, ...sdkOptions.wallet?.extras,
}; };
switch (possibleWallet.id) { switch (walletId) {
case "injected": case "injected":
walletInstance = new InjectedWallet({ walletInstance = new InjectedWallet({
dappMetadata, dappMetadata,
@@ -232,14 +230,14 @@ class ThirdwebBridge implements TWBridge {
clientId: sdkOptions.clientId, clientId: sdkOptions.clientId,
}); });
break; break;
case walletIds.metamask: case "metamask":
walletInstance = new MetaMaskWallet({ walletInstance = new MetaMaskWallet({
dappMetadata, dappMetadata,
chains: supportedChains, chains: supportedChains,
clientId: sdkOptions.clientId, clientId: sdkOptions.clientId,
}); });
break; break;
case walletIds.walletConnect: case "walletConnect":
walletInstance = new WalletConnect({ walletInstance = new WalletConnect({
projectId: sdkOptions.wallet?.walletConnectProjectId, projectId: sdkOptions.wallet?.walletConnectProjectId,
dappMetadata, dappMetadata,
@@ -261,21 +259,21 @@ class ThirdwebBridge implements TWBridge {
}, },
}); });
break; break;
case walletIds.coinbase: case "coinbase":
walletInstance = new CoinbaseWallet({ walletInstance = new CoinbaseWallet({
dappMetadata, dappMetadata,
chains: supportedChains, chains: supportedChains,
clientId: sdkOptions.clientId, clientId: sdkOptions.clientId,
}); });
break; break;
case walletIds.localWallet: case "localWallet":
walletInstance = new LocalWallet({ walletInstance = new LocalWallet({
dappMetadata, dappMetadata,
chains: supportedChains, chains: supportedChains,
clientId: sdkOptions.clientId, clientId: sdkOptions.clientId,
}); });
break; break;
case walletIds.smartWallet: { case "smartWallet": {
const config: SmartWalletConfig = { const config: SmartWalletConfig = {
chain: chain, chain: chain,
factoryAddress: sdkOptions.smartWalletConfig?.factoryAddress, factoryAddress: sdkOptions.smartWalletConfig?.factoryAddress,
@@ -292,8 +290,8 @@ class ThirdwebBridge implements TWBridge {
walletInstance = new SmartWallet(config); walletInstance = new SmartWallet(config);
break; break;
} }
case walletIds.embeddedWallet: case "inAppWallet":
walletInstance = new EmbeddedWallet({ walletInstance = new InAppWallet({
clientId: sdkOptions.clientId, clientId: sdkOptions.clientId,
chain: Ethereum, chain: Ethereum,
dappMetadata, dappMetadata,
@@ -301,7 +299,7 @@ class ThirdwebBridge implements TWBridge {
}); });
break; break;
default: default:
throw new Error(`Unknown wallet type: ${possibleWallet.id}`); throw new Error(`Unknown wallet type: ${walletId}`);
} }
if (walletInstance) { if (walletInstance) {
walletInstance.on("connect", async () => walletInstance.on("connect", async () =>
@@ -312,19 +310,19 @@ class ThirdwebBridge implements TWBridge {
); );
walletInstance.on("disconnect", () => this.updateSDKSigner()); walletInstance.on("disconnect", () => this.updateSDKSigner());
this.walletMap.set(possibleWallet.id, walletInstance); this.walletMap.set(walletId, walletInstance);
} }
} }
} }
public async connect( public async connect(
// biome-ignore lint/style/useDefaultParameterLast: would change the order of parameters to fix this // biome-ignore lint/style/useDefaultParameterLast: would change the order of parameters to fix this
wallet: PossibleWallet = "injected", wallet: string,
chainId: string, chainId: string,
password?: string, password?: string,
email?: string, email?: string,
phoneNumber?: string, phoneNumber?: string,
personalWallet: PossibleWallet = "localWallet", personalWallet?: string,
authOptions?: string, authOptions?: string,
smartWalletAccountOverride?: string, smartWalletAccountOverride?: string,
) { ) {
@@ -335,13 +333,13 @@ class ThirdwebBridge implements TWBridge {
const chainIdNumber = Number(chainId); const chainIdNumber = Number(chainId);
if (walletInstance) { if (walletInstance) {
// local wallet needs to be generated or loaded before connecting // local wallet needs to be generated or loaded before connecting
if (walletInstance.walletId === walletIds.localWallet) { if (wallet === "localWallet") {
await this.initializeLocalWallet(password as string); await this.initializeLocalWallet(password as string);
walletInstance.connect({ chainId: chainIdNumber }); walletInstance.connect({ chainId: chainIdNumber });
} }
if (walletInstance.walletId === walletIds.embeddedWallet) { if (wallet === "inAppWallet") {
const embeddedWallet = walletInstance as EmbeddedWallet; const embeddedWallet = walletInstance as InAppWallet;
const authOptionsParsed = JSON.parse(authOptions || "{}"); const authOptionsParsed = JSON.parse(authOptions || "{}");
if (authOptionsParsed.authProvider === 0) { if (authOptionsParsed.authProvider === 0) {
// EmailOTP // EmailOTP
@@ -358,7 +356,7 @@ class ThirdwebBridge implements TWBridge {
}); });
} else if (authOptionsParsed.authProvider < 4) { } else if (authOptionsParsed.authProvider < 4) {
// OAuth // OAuth
let authProvider: EmbeddedWalletOauthStrategy; let authProvider: InAppWalletOauthStrategy;
switch (authOptionsParsed.authProvider) { switch (authOptionsParsed.authProvider) {
// Google // Google
case 1: case 1:
@@ -437,17 +435,21 @@ class ThirdwebBridge implements TWBridge {
`Invalid auth provider: ${authOptionsParsed.authProvider}`, `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 smartWallet = walletInstance as SmartWallet;
const eoaWallet = this.walletMap.get(personalWallet);
// Connect flow for EOA first // Connect flow for EOA first
await this.connect( await this.connect(
eoaWallet?.walletId, personalWallet,
chainId, chainId,
password, password,
email, email,
personalWallet, phoneNumber,
undefined,
authOptions, authOptions,
undefined,
); );
await this.switchNetwork(chainId); // workaround for polygon/mumbai await this.switchNetwork(chainId); // workaround for polygon/mumbai
if (this.activeWallet) { if (this.activeWallet) {
@@ -471,7 +473,7 @@ class ThirdwebBridge implements TWBridge {
this.updateSDKSigner(await walletInstance.getSigner()); this.updateSDKSigner(await walletInstance.getSigner());
return await this.activeSDK.wallet.getAddress(); 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() { public async disconnect() {
@@ -728,9 +730,7 @@ class ThirdwebBridge implements TWBridge {
} }
public async exportWallet(password: string): Promise<string> { public async exportWallet(password: string): Promise<string> {
const localWallet = this.walletMap.get( const localWallet = this.walletMap.get("localWallet") as LocalWallet;
walletIds.localWallet,
) as LocalWallet;
return await localWallet.export({ return await localWallet.export({
strategy: "encryptedJson", strategy: "encryptedJson",
password: password, password: password,
@@ -754,9 +754,7 @@ class ThirdwebBridge implements TWBridge {
} }
public async initializeLocalWallet(password: string): Promise<LocalWallet> { public async initializeLocalWallet(password: string): Promise<LocalWallet> {
const localWallet = this.walletMap.get( const localWallet = this.walletMap.get("localWallet") as LocalWallet;
walletIds.localWallet,
) as LocalWallet;
try { try {
await localWallet.loadOrCreate({ await localWallet.loadOrCreate({
strategy: "encryptedJson", strategy: "encryptedJson",
@@ -872,9 +870,7 @@ class ThirdwebBridge implements TWBridge {
if (!this.activeWallet) { if (!this.activeWallet) {
throw new Error("No wallet connected"); throw new Error("No wallet connected");
} }
const embeddedWallet = this.walletMap.get( const embeddedWallet = this.walletMap.get("inAppWallet") as InAppWallet;
walletIds.embeddedWallet,
) as EmbeddedWallet;
const email = await embeddedWallet.getEmail(); const email = await embeddedWallet.getEmail();
return JSON.stringify({ result: email }); return JSON.stringify({ result: email });
} }
+16
View File
@@ -1,5 +1,21 @@
# @thirdweb-dev/wallets # @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 ## 2.5.2
### Patch Changes ### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/wallets", "name": "@thirdweb-dev/wallets",
"version": "2.5.2", "version": "2.5.4",
"main": "dist/thirdweb-dev-wallets.cjs.js", "main": "dist/thirdweb-dev-wallets.cjs.js",
"module": "dist/thirdweb-dev-wallets.esm.js", "module": "dist/thirdweb-dev-wallets.esm.js",
"browser": { "browser": {
+6 -6
View File
@@ -44,31 +44,31 @@
"@manypkg/cli": "0.21.3", "@manypkg/cli": "0.21.3",
"@manypkg/get-packages": "2.2.1", "@manypkg/get-packages": "2.2.1",
"@playwright/test": "1.31.2", "@playwright/test": "1.31.2",
"@types/node": "20.12.5", "@types/node": "20.12.7",
"turbo": "1.13.2", "turbo": "1.13.2",
"yalc": "1.0.0-pre.53" "yalc": "1.0.0-pre.53"
}, },
"_______ALL_PACKAGE_DEV_DEPENDENCIES_GO_IN_HERE_SO_CONSUMERS_DONT_END_UP_INSTALLING_THEM______": "_______ALL_PACKAGE_DEV_DEPENDENCIES_GO_IN_HERE_SO_CONSUMERS_DONT_END_UP_INSTALLING_THEM______", "_______ALL_PACKAGE_DEV_DEPENDENCIES_GO_IN_HERE_SO_CONSUMERS_DONT_END_UP_INSTALLING_THEM______": "_______ALL_PACKAGE_DEV_DEPENDENCIES_GO_IN_HERE_SO_CONSUMERS_DONT_END_UP_INSTALLING_THEM______",
"devDependencies": { "devDependencies": {
"@biomejs/biome": "1.6.4", "@biomejs/biome": "1.7.0",
"@codspeed/vitest-plugin": "3.1.0", "@codspeed/vitest-plugin": "3.1.0",
"@size-limit/preset-big-lib": "11.1.2", "@size-limit/preset-big-lib": "11.1.2",
"@types/bun": "1.0.12", "@types/bun": "1.0.12",
"@types/react": "18.2.17", "@types/react": "18.2.17",
"@viem/anvil": "0.0.9", "@viem/anvil": "0.0.9",
"@vitest/coverage-v8": "1.4.0", "@vitest/coverage-v8": "1.5.0",
"dotenv-mono": "1.3.14", "dotenv-mono": "1.3.14",
"ethers5": "npm:[email protected]", "ethers5": "npm:[email protected]",
"ethers6": "npm:[email protected]", "ethers6": "npm:[email protected]",
"knip": "5.9.1", "knip": "5.9.4",
"mitata": "0.1.11", "mitata": "0.1.11",
"react": "18.2.0", "react": "18.2.0",
"rimraf": "5.0.5", "rimraf": "5.0.5",
"sharp": "^0.33.3", "sharp": "^0.33.3",
"size-limit": "11.1.2", "size-limit": "11.1.2",
"typedoc-gen": "workspace:*", "typedoc-gen": "workspace:*",
"typescript": "5.4.4", "typescript": "5.4.5",
"vitest": "1.4.0" "vitest": "1.5.0"
}, },
"manypkg": { "manypkg": {
"defaultBranch": "main" "defaultBranch": "main"
+6
View File
@@ -1,5 +1,11 @@
# @thirdweb-dev/service-utils # @thirdweb-dev/service-utils
## 0.4.27
### 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.4.26 ## 0.4.26
### Patch Changes ### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@thirdweb-dev/service-utils", "name": "@thirdweb-dev/service-utils",
"version": "0.4.26", "version": "0.4.27",
"main": "dist/thirdweb-dev-service-utils.cjs.js", "main": "dist/thirdweb-dev-service-utils.cjs.js",
"module": "dist/thirdweb-dev-service-utils.esm.js", "module": "dist/thirdweb-dev-service-utils.esm.js",
"exports": { "exports": {
@@ -46,7 +46,7 @@
"@cloudflare/workers-types": "4.20240405.0", "@cloudflare/workers-types": "4.20240405.0",
"@preconstruct/cli": "2.7.0", "@preconstruct/cli": "2.7.0",
"@thirdweb-dev/tsconfig": "workspace:*", "@thirdweb-dev/tsconfig": "workspace:*",
"@types/node": "20.12.5", "@types/node": "20.12.7",
"typescript": "5.4.4" "typescript": "5.4.4"
}, },
"scripts": { "scripts": {
+67
View File
@@ -1,5 +1,72 @@
# thirdweb # thirdweb
## 5.7.0
### Minor Changes
- [#2803](https://github.com/thirdweb-dev/js/pull/2803) [`a54c745`](https://github.com/thirdweb-dev/js/commit/a54c745977e7806c0339633486eef55f92b02832) Thanks [@jnsdls](https://github.com/jnsdls)! - Added new extensions for "English Auctions" in `thirdweb/extensions/marketplace` module:
- `bidInAuction`
- `cancelAuction`
- `buyoutAuction`
- `collectAuctionPayout`
- `collectAuctionTokens`
- `executeSale`
- [#2767](https://github.com/thirdweb-dev/js/pull/2767) [`300e4c8`](https://github.com/thirdweb-dev/js/commit/300e4c8a51581156acdfac431655510f0cdbca21) Thanks [@MananTank](https://github.com/MananTank)! - Open "Pay Modal" UI when sending transaction using the `useSendTransaction` hook if the user does not have enough funds to execute the transaction to prompt the user to buy tokens
`useSendTransaction` now takes an optional `config` option to customize the "Pay Modal" UI
```tsx
const sendTransaction = useSendTransaction({
payModal: {
locale: "en_US",
theme: "light",
},
});
```
You may also explicitly disable the "Pay Modal" UI by setting the `payModal` option to `false`
```tsx
const sendTransaction = useSendTransaction({
payModal: false,
});
```
- [#2788](https://github.com/thirdweb-dev/js/pull/2788) [`f5abbe8`](https://github.com/thirdweb-dev/js/commit/f5abbe8b54fbd68188c40268ae5707c72f39441f) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Added `deployPublishedContract`
### Patch Changes
- [#2795](https://github.com/thirdweb-dev/js/pull/2795) [`7c17892`](https://github.com/thirdweb-dev/js/commit/7c178923f9072d8f43b0d23f3888fdedae540005) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Fix claiming drops with prices and no allowlists
- [#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
- [#2799](https://github.com/thirdweb-dev/js/pull/2799) [`37bd0e4`](https://github.com/thirdweb-dev/js/commit/37bd0e42a58cdbe5b04a9871b5fd413ec293d96c) Thanks [@jnsdls](https://github.com/jnsdls)! - fix `npx thirdweb` on windows when `thirdweb` is installed locally
## 5.6.0
### Minor Changes
- [#2760](https://github.com/thirdweb-dev/js/pull/2760) [`8197b3c`](https://github.com/thirdweb-dev/js/commit/8197b3ced288597979f27ab88abecadad5dac2cb) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Adds serializeTransaction and updates sign return object to include yParity
- [#2766](https://github.com/thirdweb-dev/js/pull/2766) [`65e4ddc`](https://github.com/thirdweb-dev/js/commit/65e4ddc8e02467c170658d29d71dca53737548b7) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Added ERC721 extensions:
- claimTo with allowlist support
- lazyMint
- setClaimConditions
- [#2771](https://github.com/thirdweb-dev/js/pull/2771) [`df338f5`](https://github.com/thirdweb-dev/js/commit/df338f5f75545dcf717c39e045e2c7e9f64e5f9d) Thanks [@jnsdls](https://github.com/jnsdls)! - Added ERC20 extensions:
- claimTo with allowlist support
- setClaimConditions
- [#2757](https://github.com/thirdweb-dev/js/pull/2757) [`9d46fce`](https://github.com/thirdweb-dev/js/commit/9d46fce50fe7ef5750ddf9fefe8131cf190450db) Thanks [@jnsdls](https://github.com/jnsdls)! - add extensions for contract roles in the `thirdweb/extensions/permissions` namespace
### Patch Changes
- [#2761](https://github.com/thirdweb-dev/js/pull/2761) [`a18fc8e`](https://github.com/thirdweb-dev/js/commit/a18fc8e1b7d7f351e43367f6a6fd77674998e701) Thanks [@MananTank](https://github.com/MananTank)! - Connect UI context code cleanup
## 5.5.0 ## 5.5.0
### Minor Changes ### Minor Changes
@@ -1,15 +1,15 @@
import { run, bench, group } from "mitata"; import { bench, group, run } from "mitata";
import { prepareTransaction } from "../src/transaction/prepare-transaction";
import { createThirdwebClient } from "../src/client/client";
import { defineChain } from "../src/chains/utils"; import { defineChain } from "../src/chains/utils";
import { privateKeyAccount } from "../src/wallets/private-key"; import { createThirdwebClient } from "../src/client/client";
import { sendTransaction } from "../src/transaction/actions/send-transaction"; import { sendTransaction } from "../src/transaction/actions/send-transaction";
import { prepareTransaction } from "../src/transaction/prepare-transaction";
import { privateKeyToAccount } from "../src/wallets/private-key";
import * as viem from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { mainnet } from "viem/chains";
import * as ethers from "ethers6"; import * as ethers from "ethers6";
import * as viem from "viem";
import { privateKeyToAccount as viemPrivateKeyToAccount } from "viem/accounts";
import { mainnet } from "viem/chains";
const LOCAL_RPC = "http://127.0.0.1:8545"; const LOCAL_RPC = "http://127.0.0.1:8545";
const VITALIK_WALLET = "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B"; const VITALIK_WALLET = "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B";
@@ -27,13 +27,13 @@ const TEST_CHAIN = defineChain({
const PKEY = const PKEY =
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";
const account = privateKeyAccount({ const account = privateKeyToAccount({
privateKey: PKEY, privateKey: PKEY,
client, client,
}); });
// viem setup // viem setup
const privateKeyAccountViem = privateKeyToAccount(PKEY); const privateKeyAccountViem = viemPrivateKeyToAccount(PKEY);
const walletClient = viem.createWalletClient({ const walletClient = viem.createWalletClient({
account: privateKeyAccountViem, account: privateKeyAccountViem,
transport: viem.http(LOCAL_RPC), transport: viem.http(LOCAL_RPC),
+10
View File
@@ -1,6 +1,16 @@
{ {
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json", "$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"extends": ["../../biome.json"], "extends": ["../../biome.json"],
"linter": {
"rules": {
"style": {
"noRestrictedGlobals": {
"options": { "deniedGlobals": ["Buffer"] },
"level": "error"
}
}
}
},
"files": { "files": {
"ignore": [ "ignore": [
"src/crypto/aes/lib/md5.ts", "src/crypto/aes/lib/md5.ts",
+9 -5
View File
@@ -1,6 +1,6 @@
{ {
"name": "thirdweb", "name": "thirdweb",
"version": "5.5.0", "version": "5.7.0",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/thirdweb-dev/js.git#main" "url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -184,15 +184,15 @@
"@radix-ui/react-focus-scope": "1.0.4", "@radix-ui/react-focus-scope": "1.0.4",
"@radix-ui/react-icons": "1.3.0", "@radix-ui/react-icons": "1.3.0",
"@radix-ui/react-tooltip": "1.0.7", "@radix-ui/react-tooltip": "1.0.7",
"@tanstack/react-query": "5.29.0", "@tanstack/react-query": "5.29.2",
"@walletconnect/ethereum-provider": "2.12.1", "@walletconnect/ethereum-provider": "2.12.2",
"abitype": "1.0.0", "abitype": "1.0.0",
"fast-text-encoding": "^1.0.6", "fast-text-encoding": "^1.0.6",
"fuse.js": "7.0.0", "fuse.js": "7.0.0",
"mipd": "0.0.7", "mipd": "0.0.7",
"node-libs-browser": "2.2.1", "node-libs-browser": "2.2.1",
"uqr": "0.1.2", "uqr": "0.1.2",
"viem": "2.9.9" "viem": "2.9.18"
}, },
"peerDependencies": { "peerDependencies": {
"ethers": "^5 || ^6", "ethers": "^5 || ^6",
@@ -226,7 +226,7 @@
"push": "yalc push", "push": "yalc push",
"size": "size-limit", "size": "size-limit",
"test:watch": "vitest -c ./test/vitest.config.ts dev", "test:watch": "vitest -c ./test/vitest.config.ts dev",
"test": "vitest run -c ./test/vitest.config.ts --coverage --bail=1", "test": "vitest run -c ./test/vitest.config.ts",
"test:cov": "vitest dev -c ./test/vitest.config.ts --coverage", "test:cov": "vitest dev -c ./test/vitest.config.ts --coverage",
"test:dev": "vitest run -c ./test/vitest.config.ts", "test:dev": "vitest run -c ./test/vitest.config.ts",
"typedoc": "node scripts/typedoc.mjs", "typedoc": "node scripts/typedoc.mjs",
@@ -234,5 +234,9 @@
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=18"
},
"devDependencies": {
"@types/cross-spawn": "^6.0.6",
"cross-spawn": "7.0.3"
} }
} }
@@ -1,6 +1,8 @@
[ [
"event ClaimConditionsUpdated((uint256 startTimestamp, uint256 maxClaimableSupply, uint256 supplyClaimed, uint256 quantityLimitPerWallet, uint256 waitTimeInSecondsBetweenClaims, bytes32 merkleRoot, uint256 pricePerToken, address currency)[] claimConditions)", "event ClaimConditionsUpdated((uint256 startTimestamp, uint256 maxClaimableSupply, uint256 supplyClaimed, uint256 quantityLimitPerWallet, bytes32 merkleRoot, uint256 pricePerToken, address currency, string metadata)[] claimConditions, bool resetEligibility)",
"event TokensClaimed(uint256 indexed claimConditionIndex, address indexed claimer, address indexed receiver, uint256 quantityClaimed)", "event TokensClaimed(uint256 indexed claimConditionIndex, address indexed claimer, address indexed receiver, uint256 quantityClaimed)",
"function claim(address receiver, uint256 quantity, address currency, uint256 pricePerToken, (bytes32[] proof, uint256 maxQuantityInAllowlist) allowlistProof, bytes data) payable", "function claim(address receiver, uint256 quantity, address currency, uint256 pricePerToken, (bytes32[] proof, uint256 quantityLimitPerWallet, uint256 pricePerToken, address currency) allowlistProof, bytes data) payable",
"function setClaimConditions((uint256 startTimestamp, uint256 maxClaimableSupply, uint256 supplyClaimed, uint256 quantityLimitPerWallet, uint256 waitTimeInSecondsBetweenClaims, bytes32 merkleRoot, uint256 pricePerToken, address currency)[] phases, bool resetClaimEligibility)" "function setClaimConditions((uint256 startTimestamp, uint256 maxClaimableSupply, uint256 supplyClaimed, uint256 quantityLimitPerWallet, uint256 waitTimeInSecondsBetweenClaims, bytes32 merkleRoot, uint256 pricePerToken, address currency)[] phases, bool resetClaimEligibility)",
"function getClaimConditionById(uint256 _conditionId) view returns ((uint256 startTimestamp, uint256 maxClaimableSupply, uint256 supplyClaimed, uint256 quantityLimitPerWallet, bytes32 merkleRoot, uint256 pricePerToken, address currency, string metadata) condition)",
"function getActiveClaimConditionId() view returns (uint256)"
] ]
@@ -151,7 +151,7 @@ const FN_OUTPUTS = ${JSON.stringify(preparedMethod[2], null, 2)} as const;
* Checks if the \`${f.name}\` method is supported by the given contract. * Checks if the \`${f.name}\` method is supported by the given contract.
* @param contract The ThirdwebContract. * @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the \`${f.name}\` method is supported. * @returns A promise that resolves to a boolean indicating if the \`${f.name}\` method is supported.
* @extension ERC721 * @extension ${extensionName.toUpperCase()}
* @example * @example
* \`\`\`ts * \`\`\`ts
* import { is${uppercaseFirstLetter( * import { is${uppercaseFirstLetter(
@@ -326,7 +326,7 @@ const FN_OUTPUTS = ${JSON.stringify(preparedMethod[2], null, 2)} as const;
* Checks if the \`${f.name}\` method is supported by the given contract. * Checks if the \`${f.name}\` method is supported by the given contract.
* @param contract The ThirdwebContract. * @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the \`${f.name}\` method is supported. * @returns A promise that resolves to a boolean indicating if the \`${f.name}\` method is supported.
* @extension ERC721 * @extension ${extensionName.toUpperCase()}
* @example * @example
* \`\`\`ts * \`\`\`ts
* import { is${uppercaseFirstLetter( * import { is${uppercaseFirstLetter(
@@ -3,10 +3,10 @@ import { describe, expect, test } from "vitest";
import { ANVIL_CHAIN } from "../../test/src/chains.js"; import { ANVIL_CHAIN } from "../../test/src/chains.js";
import { TEST_CLIENT } from "../../test/src/test-clients.js"; import { TEST_CLIENT } from "../../test/src/test-clients.js";
import { ANVIL_PKEY_A, TEST_ACCOUNT_B } from "../../test/src/test-wallets.js"; import { ANVIL_PKEY_A, TEST_ACCOUNT_B } from "../../test/src/test-wallets.js";
import { privateKeyAccount } from "../wallets/private-key.js"; import { privateKeyToAccount } from "../wallets/private-key.js";
import { toEthersSigner } from "./ethers5.js"; import { toEthersSigner } from "./ethers5.js";
const account = privateKeyAccount({ const account = privateKeyToAccount({
privateKey: ANVIL_PKEY_A, privateKey: ANVIL_PKEY_A,
client: TEST_CLIENT, client: TEST_CLIENT,
}); });
@@ -2,10 +2,10 @@ import { describe, expect, test } from "vitest";
import { ANVIL_CHAIN } from "../../test/src/chains.js"; import { ANVIL_CHAIN } from "../../test/src/chains.js";
import { TEST_CLIENT } from "../../test/src/test-clients.js"; import { TEST_CLIENT } from "../../test/src/test-clients.js";
import { ANVIL_PKEY_A, TEST_ACCOUNT_B } from "../../test/src/test-wallets.js"; import { ANVIL_PKEY_A, TEST_ACCOUNT_B } from "../../test/src/test-wallets.js";
import { privateKeyAccount } from "../wallets/private-key.js"; import { privateKeyToAccount } from "../wallets/private-key.js";
import { ethers6Adapter } from "./ethers6.js"; import { ethers6Adapter } from "./ethers6.js";
const account = privateKeyAccount({ const account = privateKeyToAccount({
privateKey: ANVIL_PKEY_A, privateKey: ANVIL_PKEY_A,
client: TEST_CLIENT, client: TEST_CLIENT,
}); });
+6 -8
View File
@@ -1,15 +1,13 @@
import { zeroAddress } from "viem"; import { zeroAddress } from "viem";
import { beforeAll, describe, expect, test } from "vitest"; import { beforeAll, describe, expect, test } from "vitest";
import { TEST_CLIENT } from "../../test/src/test-clients.js";
import { privateKeyAccount } from "../wallets/private-key.js";
import { viemAdapter } from "./viem.js";
import { ANVIL_PKEY_A } from "~test/test-wallets.js"; import { ANVIL_PKEY_A } from "~test/test-wallets.js";
import { typedData } from "~test/typed-data.js"; import { typedData } from "~test/typed-data.js";
import { ANVIL_CHAIN } from "../../test/src/chains.js"; import { ANVIL_CHAIN, FORKED_ETHEREUM_CHAIN } from "../../test/src/chains.js";
import { mainnet } from "../chains/chain-definitions/ethereum.js"; import { TEST_CLIENT } from "../../test/src/test-clients.js";
import { privateKeyToAccount } from "../wallets/private-key.js";
import { viemAdapter } from "./viem.js";
const account = privateKeyAccount({ const account = privateKeyToAccount({
privateKey: ANVIL_PKEY_A, privateKey: ANVIL_PKEY_A,
client: TEST_CLIENT, client: TEST_CLIENT,
}); });
@@ -68,7 +66,7 @@ describe("walletClient.toViem", () => {
walletClient = viemAdapter.walletClient.toViem({ walletClient = viemAdapter.walletClient.toViem({
client: TEST_CLIENT, client: TEST_CLIENT,
account, account,
chain: mainnet, chain: FORKED_ETHEREUM_CHAIN,
}); });
const address = await walletClient.getAddresses(); const address = await walletClient.getAddresses();
@@ -5,4 +5,9 @@ export const anvil = /* @__PURE__ */ defineChain({
name: "Anvil", name: "Anvil",
rpc: "http://localhost:8545", rpc: "http://localhost:8545",
testnet: true, testnet: true,
nativeCurrency: {
name: "Anvil Ether",
symbol: "ETH",
decimals: 18,
},
}); });

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