Compare commits

..
Author SHA1 Message Date
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
4eb628363a Version Packages (#2808)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-19 21:00:12 +12:00
Joaquim VergesandGitHub 381b669cd1 fix: react query invalidation (#2815) 2024-04-19 20:42:24 +12:00
Jonas DanielsandGitHub bebcf46c3a feat: Add support for updating metadata for ERC1155 contracts (#2814) 2024-04-18 14:43:22 -07:00
1b2bfc83d7 feat: add ERC20 and ERC1155 signature mint extensions (#2811)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-18 21:22:03 +00:00
Jonas DanielsandGitHub 576bb579f6 refactor: Refactor test code for ERC721 and ERC1155 direct listings (#2813) 2024-04-18 11:01:19 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
23680d19cb chore(chains): update chains (#2809)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-18 09:10:29 -07:00
Jonas DanielsandGitHub 94e354aad3 feat(marketplace/offers): implement extensions for marketplace offers (#2806)
Signed-off-by: Jonas Daniels <[email protected]>
2024-04-18 01:54:56 -07:00
Jonas DanielsandGitHub e18606e034 chore: update stale issue settings (#2810) 2024-04-17 23:43:45 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ca2576f818 chore(chains): update chains (#2802)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-17 22:55:46 -07:00
FirekeeperandGitHub ec35f32d2b Unity 4.12.1 (#2805) 2024-04-18 05:45:13 +00:00
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
205 changed files with 6456 additions and 2393 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
daysUntilStale: 14
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
-2
View File
@@ -74,7 +74,6 @@ jobs:
- name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-440ec525deb00b4dca138794865c27d1e8ea4d01
cache: false
- run: pnpm test
@@ -115,7 +114,6 @@ jobs:
- name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-440ec525deb00b4dca138794865c27d1e8ea4d01
cache: false
- name: Run benchmarks
+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
+14
View File
@@ -1,5 +1,19 @@
# @thirdweb-dev/auth
## 4.1.63
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/wallets@2.5.5
## 4.1.62
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/wallets@2.5.4
## 4.1.61
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/auth",
"version": "4.1.61",
"version": "4.1.63",
"main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js",
"browser": {
+12
View File
@@ -1,5 +1,17 @@
# @thirdweb-dev/chains
## 0.1.96
### Patch Changes
- [#2802](https://github.com/thirdweb-dev/js/pull/2802) [`ca2576f`](https://github.com/thirdweb-dev/js/commit/ca2576f8180b6b5b9fe47087a53d1f13665c5028) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
## 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
@@ -0,0 +1,50 @@
import type { Chain } from "../src/types";
export default {
"chain": "Cyber",
"chainId": 111557560,
"explorers": [
{
"name": "Cyber Testnet Explorer",
"url": "https://testnet.cyberscan.co",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 551,
"height": 540,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmP61yDNPv7fxY9ZzPs4CjQDbZLoKtF8eWWjszVYbwkabd",
"width": 1000,
"height": 1000,
"format": "svg"
},
"infoURL": "https://cyber.co/",
"name": "Cyber Testnet",
"nativeCurrency": {
"name": "Sepolia Ether",
"symbol": "ETH",
"decimals": 18
},
"networkId": 111557560,
"parent": {
"type": "L2",
"chain": "eip155-11155111",
"bridges": [
{
"url": "https://op-bridge.alt.technology/deposit?id=111557560"
}
]
},
"rpc": [
"https://111557560.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://cyber-testnet.alt.technology/",
"wss://cyber-testnet.alt.technology/ws"
],
"shortName": "cysep",
"slug": "cyber-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": 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 -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;
+6
View File
@@ -12,6 +12,12 @@ export default {
"faucets": [
"https://faucet.opside.network"
],
"icon": {
"url": "ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",
"width": 591,
"height": 591,
"format": "png"
},
"infoURL": "https://opside.network",
"name": "Opside Testnet",
"nativeCurrency": {
+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,
+36
View File
@@ -0,0 +1,36 @@
import type { Chain } from "../src/types";
export default {
"chain": "Nexis Network",
"chainId": 2370,
"explorers": [
{
"name": "Nexis Testnet Explorer",
"url": "https://evm-testnet.nexscan.io",
"standard": "EIP3091"
}
],
"faucets": [
"https://evm-faucet.nexis.network"
],
"icon": {
"url": "ipfs://QmdJwWuMgbhoZhgFM4zWrZne6qs5ktcL1vBLKX12VGgALM",
"width": 1892,
"height": 1892,
"format": "png"
},
"infoURL": "https://nexis.network/",
"name": "Nexis Network Testnet",
"nativeCurrency": {
"name": "Nexis",
"symbol": "NZT",
"decimals": 18
},
"networkId": 2370,
"rpc": [
"https://2370.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://evm-testnet.nexis.network"
],
"shortName": "nzt",
"slug": "nexis-network-testnet",
"testnet": true
} as const satisfies Chain;
+32 -4
View File
@@ -2,8 +2,33 @@ import type { Chain } from "../src/types";
export default {
"chain": "NEURA",
"chainId": 267,
"explorers": [],
"faucets": [],
"explorers": [
{
"name": "blockscout",
"url": "https://explorer.neura-testnet.ankr.com",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 551,
"height": 540,
"format": "png"
}
},
{
"name": "ankrscan-neura",
"url": "https://testnet.neuraprotocol.io/explorer",
"standard": "none",
"icon": {
"url": "ipfs://QmWdpK5WFKrosaCSpJRCvU7uXeKk2qVeCckTxh6Zw2JrK8",
"width": 600,
"height": 600,
"format": "png"
}
}
],
"faucets": [
"https://testnet.neuraprotocol.io/faucet"
],
"features": [
{
"name": "EIP155"
@@ -26,11 +51,14 @@ export default {
"decimals": 18
},
"networkId": 267,
"rpc": [],
"rpc": [
"https://267.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.ankr.com/neura_testnet"
],
"shortName": "tneura",
"slip44": 1,
"slug": "neura-testnet",
"status": "incubating",
"status": "active",
"testnet": true,
"title": "Neura Testnet"
} 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;
+25 -3
View File
@@ -2,9 +2,28 @@ import type { Chain } from "../src/types";
export default {
"chain": "XR Sepolia",
"chainId": 2730,
"explorers": [],
"explorers": [
{
"name": "XR Sepolia Explorer",
"url": "https://xr-sepolia-testnet.explorer.caldera.xyz",
"standard": "EIP3091",
"icon": {
"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,
@@ -27,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/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;
+39
View File
@@ -0,0 +1,39 @@
import type { Chain } from "../src/types";
export default {
"chain": "ETH",
"chainId": 2810,
"explorers": [
{
"name": "Morph Holesky Testnet Explorer",
"url": "https://explorer-holesky.morphl2.io",
"standard": "EIP3091"
}
],
"faucets": [],
"infoURL": "https://morphl2.io",
"name": "Morph Holesky",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"networkId": 2810,
"parent": {
"type": "L2",
"chain": "eip155-1",
"bridges": [
{
"url": "https://bridge-holesky.morphl2.io"
}
]
},
"rpc": [
"https://2810.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc-holesky.morphl2.io"
],
"shortName": "hmorph",
"slip44": 1,
"slug": "morph-holesky",
"testnet": true,
"title": "Morph Holesky Testnet"
} 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;
+6
View File
@@ -12,6 +12,12 @@ export default {
"faucets": [
"https://sepoliafaucet.com/"
],
"icon": {
"url": "ipfs://qmxhs7fvjanzwm14vjpbnmklre32gsiy9chsarrnbtfa1n",
"width": 1280,
"height": 1280,
"format": "png"
},
"infoURL": "https://docs.apexlayer.xyz/",
"name": "APEX Testnet",
"nativeCurrency": {
+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": "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;
+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;
+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;
+6
View File
@@ -10,6 +10,12 @@ export default {
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmPko9BJhR5FWTsThcwUFnnnjgLjrXVDm1n98dCuaQNW59",
"width": 506,
"height": 652,
"format": "png"
},
"infoURL": "https://bstchain.io",
"name": "BST Chain",
"nativeCurrency": {
+13 -1
View File
@@ -6,10 +6,22 @@ export default {
{
"name": "GuapcoinX Explorer",
"url": "http://explorer.guapcoinx.com",
"standard": "none"
"standard": "none",
"icon": {
"url": "ipfs://QmcDTR7982VQKDDz2Mh4fZbnE9hn67MuFPWQv1MimCqPvB",
"width": 800,
"height": 800,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmcDTR7982VQKDDz2Mh4fZbnE9hn67MuFPWQv1MimCqPvB",
"width": 800,
"height": 800,
"format": "png"
},
"infoURL": "https://guapcoin.org/",
"name": "GuapcoinX",
"nativeCurrency": {
+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": "Cyber",
"chainId": 7560,
"explorers": [],
"faucets": [],
"icon": {
"url": "ipfs://QmP61yDNPv7fxY9ZzPs4CjQDbZLoKtF8eWWjszVYbwkabd",
"width": 1000,
"height": 1000,
"format": "svg"
},
"infoURL": "https://cyber.co/",
"name": "Cyber Mainnet",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"networkId": 7560,
"parent": {
"type": "L2",
"chain": "eip155-1"
},
"rpc": [],
"shortName": "cyeth",
"slug": "cyber",
"status": "incubating",
"testnet": false
} as const satisfies Chain;
+6
View File
@@ -10,6 +10,12 @@ export default {
}
],
"faucets": [],
"icon": {
"url": "ipfs://bafkreic6tcc6swh5kzljwqnswj6rlemcm7n6ra7xkgttwv5v3fv7ozj5zu",
"width": 1500,
"height": 1500,
"format": "png"
},
"infoURL": "https://miexs.com",
"name": "Miexs Smartchain",
"nativeCurrency": {
+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;
+6
View File
@@ -12,6 +12,12 @@ export default {
"faucets": [
"https://faucet.vention.network"
],
"icon": {
"url": "ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",
"width": 250,
"height": 250,
"format": "png"
},
"infoURL": "https://ventionscan.io",
"name": "Vention Smart Chain Mainnet",
"nativeCurrency": {
+1 -1
View File
@@ -33,7 +33,7 @@ export default {
"name": "Vanguard",
"nativeCurrency": {
"name": "Vanguard Vanry",
"symbol": "VG",
"symbol": "VANRY",
"decimals": 18
},
"networkId": 78600,
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 79490,
"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": "QaUser2672 Testnet",
"nativeCurrency": {
"name": "QaUser2672 Testnet Token",
"symbol": "ENU",
"decimals": 18
},
"networkId": 79490,
"redFlags": [],
"rpc": [
"https://79490.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QaUser2672 Testnet",
"slug": "qauser2672-testnet",
"testnet": true
} 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;
+12 -12
View File
@@ -11,22 +11,22 @@ export default {
"url": "https://explorerl2new-camp-network-4xje7wy105.t.conduit.xyz",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 83,
"height": 82,
"format": "svg"
"url": "ipfs://Qmd5ux27W44fjxHP2opz7eLhJ6CJJm9WR6VcKNhbQBxiSd/QOyzwbO2_400x400.jpg",
"width": 400,
"height": 400,
"format": "jpg"
}
}
],
"faucets": [],
"features": [],
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 551,
"height": 540,
"format": "png"
"url": "ipfs://Qmd5ux27W44fjxHP2opz7eLhJ6CJJm9WR6VcKNhbQBxiSd/QOyzwbO2_400x400.jpg",
"width": 400,
"height": 400,
"format": "jpg"
},
"name": "Camp Network",
"name": "Camp Network Testnet",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
@@ -38,7 +38,7 @@ export default {
"https://90354.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc-camp-network-4xje7wy105.t.conduit.xyz/"
],
"shortName": "campaign-l2",
"slug": "camp-network",
"testnet": false
"shortName": "campaign-l2-test",
"slug": "camp-network-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;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/chains",
"version": "0.1.94",
"version": "0.1.96",
"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
+22
View File
@@ -1,5 +1,27 @@
# thirdweb
## 0.13.71
### Patch Changes
- Updated dependencies [[`ca2576f`](https://github.com/thirdweb-dev/js/commit/ca2576f8180b6b5b9fe47087a53d1f13665c5028)]:
- @thirdweb-dev/chains@0.1.96
- @thirdweb-dev/sdk@4.0.65
- @thirdweb-dev/wallets@2.5.5
- @thirdweb-dev/auth@4.1.63
## 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
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/cli",
"main": "dist/cli/index.js",
"version": "0.13.69",
"version": "0.13.71",
"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"
+20
View File
@@ -1,5 +1,25 @@
# @thirdweb-dev/react-core
## 4.6.4
### Patch Changes
- Updated dependencies [[`ca2576f`](https://github.com/thirdweb-dev/js/commit/ca2576f8180b6b5b9fe47087a53d1f13665c5028)]:
- @thirdweb-dev/chains@0.1.96
- @thirdweb-dev/sdk@4.0.65
- @thirdweb-dev/wallets@2.5.5
- @thirdweb-dev/auth@4.1.63
## 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
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-core",
"version": "4.6.2",
"version": "4.6.4",
"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,13 @@
# @thirdweb-dev/react-native-compat
## 0.7.36
## 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
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/react-native-compat",
"description": "Shims for Thirdweb in React Native Projects",
"version": "0.7.34",
"version": "0.7.36",
"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",
+20
View File
@@ -1,5 +1,25 @@
# @thirdweb-dev/react-native
## 0.7.36
### Patch Changes
- Updated dependencies [[`ca2576f`](https://github.com/thirdweb-dev/js/commit/ca2576f8180b6b5b9fe47087a53d1f13665c5028)]:
- @thirdweb-dev/chains@0.1.96
- @thirdweb-dev/sdk@4.0.65
- @thirdweb-dev/react-core@4.6.4
- @thirdweb-dev/wallets@2.5.5
## 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
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-native",
"version": "0.7.34",
"version": "0.7.36",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+22
View File
@@ -1,5 +1,27 @@
# @thirdweb-dev/react
## 4.6.4
### Patch Changes
- Updated dependencies [[`ca2576f`](https://github.com/thirdweb-dev/js/commit/ca2576f8180b6b5b9fe47087a53d1f13665c5028)]:
- @thirdweb-dev/chains@0.1.96
- @thirdweb-dev/sdk@4.0.65
- @thirdweb-dev/react-core@4.6.4
- @thirdweb-dev/wallets@2.5.5
## 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
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react",
"version": "4.6.2",
"version": "4.6.4",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -23,8 +23,8 @@ import {
} from "./types";
const DEFAULT_AUTH_OPTIONS: AuthOption[] = [
"phone",
"email",
"phone",
"google",
"apple",
"facebook",
+18
View File
@@ -1,5 +1,23 @@
# @thirdweb-dev/sdk
## 4.0.65
### Patch Changes
- Updated dependencies [[`381b669`](https://github.com/thirdweb-dev/js/commit/381b669cd1b4c621519636211f47a6910ca048f0), [`94e354a`](https://github.com/thirdweb-dev/js/commit/94e354aad30fc94b4d4c379e01810b0f4e2087bf), [`bebcf46`](https://github.com/thirdweb-dev/js/commit/bebcf46c3a900fcbff6d544b18c7f0140c5ca9be), [`1b2bfc8`](https://github.com/thirdweb-dev/js/commit/1b2bfc83d786d1c7b7d1fefa480dbab559e84c54), [`ca2576f`](https://github.com/thirdweb-dev/js/commit/ca2576f8180b6b5b9fe47087a53d1f13665c5028)]:
- thirdweb@5.8.0
- @thirdweb-dev/chains@0.1.96
## 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
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/sdk",
"version": "4.0.63",
"version": "4.0.65",
"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",
@@ -1,5 +1,29 @@
# @thirdweb-dev/unity-js-bridge
## 0.6.14
### Patch Changes
- [#2805](https://github.com/thirdweb-dev/js/pull/2805) [`ec35f32`](https://github.com/thirdweb-dev/js/commit/ec35f32d2baf5a8ff70531fc07a6b1ad57164db7) Thanks [@0xFirekeeper](https://github.com/0xFirekeeper)! - Unity 4.12.1
- Updated dependencies [[`ca2576f`](https://github.com/thirdweb-dev/js/commit/ca2576f8180b6b5b9fe47087a53d1f13665c5028)]:
- @thirdweb-dev/chains@0.1.96
- @thirdweb-dev/sdk@4.0.65
- @thirdweb-dev/wallets@2.5.5
- @thirdweb-dev/auth@4.1.63
## 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
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/unity-js-bridge",
"version": "0.6.12",
"version": "0.6.14",
"main": "dist/thirdweb-unity-bridge.js",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
"license": "Apache-2.0",
@@ -171,7 +171,7 @@ 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.11.0";
(globalThis as any).X_SDK_VERSION = "4.12.1";
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
(globalThis as any).X_SDK_OS = browser?.os ?? "unknown";
}
+16
View File
@@ -1,5 +1,21 @@
# @thirdweb-dev/wallets
## 2.5.5
### Patch Changes
- Updated dependencies [[`ca2576f`](https://github.com/thirdweb-dev/js/commit/ca2576f8180b6b5b9fe47087a53d1f13665c5028)]:
- @thirdweb-dev/chains@0.1.96
- @thirdweb-dev/sdk@4.0.65
## 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
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/wallets",
"version": "2.5.3",
"version": "2.5.5",
"main": "dist/thirdweb-dev-wallets.cjs.js",
"module": "dist/thirdweb-dev-wallets.esm.js",
"browser": {
+2 -2
View File
@@ -44,13 +44,13 @@
"@manypkg/cli": "0.21.3",
"@manypkg/get-packages": "2.2.1",
"@playwright/test": "1.31.2",
"@types/node": "20.12.5",
"@types/node": "20.12.7",
"turbo": "1.13.2",
"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______",
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "1.7.0",
"@codspeed/vitest-plugin": "3.1.0",
"@size-limit/preset-big-lib": "11.1.2",
"@types/bun": "1.0.12",
+6
View File
@@ -1,5 +1,11 @@
# @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
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/service-utils",
"version": "0.4.26",
"version": "0.4.27",
"main": "dist/thirdweb-dev-service-utils.cjs.js",
"module": "dist/thirdweb-dev-service-utils.esm.js",
"exports": {
@@ -46,7 +46,7 @@
"@cloudflare/workers-types": "4.20240405.0",
"@preconstruct/cli": "2.7.0",
"@thirdweb-dev/tsconfig": "workspace:*",
"@types/node": "20.12.5",
"@types/node": "20.12.7",
"typescript": "5.4.4"
},
"scripts": {
+58
View File
@@ -1,5 +1,63 @@
# thirdweb
## 5.8.0
### Minor Changes
- [#2806](https://github.com/thirdweb-dev/js/pull/2806) [`94e354a`](https://github.com/thirdweb-dev/js/commit/94e354aad30fc94b4d4c379e01810b0f4e2087bf) Thanks [@jnsdls](https://github.com/jnsdls)! - Implement `Offers` in the Marketplace extensions, available via `thirdweb/extensions/marketplace`.
- [#2814](https://github.com/thirdweb-dev/js/pull/2814) [`bebcf46`](https://github.com/thirdweb-dev/js/commit/bebcf46c3a900fcbff6d544b18c7f0140c5ca9be) Thanks [@jnsdls](https://github.com/jnsdls)! - Add support for updating metadata for ERC1155 contracts
- [#2811](https://github.com/thirdweb-dev/js/pull/2811) [`1b2bfc8`](https://github.com/thirdweb-dev/js/commit/1b2bfc83d786d1c7b7d1fefa480dbab559e84c54) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Added ERC1155 and ERC20 signature mint extensions
### Patch Changes
- [#2815](https://github.com/thirdweb-dev/js/pull/2815) [`381b669`](https://github.com/thirdweb-dev/js/commit/381b669cd1b4c621519636211f47a6910ca048f0) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Fix query invalidation when using react hooks
## 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
@@ -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 { privateKeyAccount } from "../src/wallets/private-key";
import { createThirdwebClient } from "../src/client/client";
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 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 VITALIK_WALLET = "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B";
@@ -27,13 +27,13 @@ const TEST_CHAIN = defineChain({
const PKEY =
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";
const account = privateKeyAccount({
const account = privateKeyToAccount({
privateKey: PKEY,
client,
});
// viem setup
const privateKeyAccountViem = privateKeyToAccount(PKEY);
const privateKeyAccountViem = viemPrivateKeyToAccount(PKEY);
const walletClient = viem.createWalletClient({
account: privateKeyAccountViem,
transport: viem.http(LOCAL_RPC),
+7 -3
View File
@@ -1,6 +1,6 @@
{
"name": "thirdweb",
"version": "5.6.0",
"version": "5.8.0",
"repository": {
"type": "git",
"url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -192,7 +192,7 @@
"mipd": "0.0.7",
"node-libs-browser": "2.2.1",
"uqr": "0.1.2",
"viem": "2.9.16"
"viem": "2.9.18"
},
"peerDependencies": {
"ethers": "^5 || ^6",
@@ -226,7 +226,7 @@
"push": "yalc push",
"size": "size-limit",
"test:watch": "vitest -c ./test/vitest.config.ts dev",
"test": "vitest run -c ./test/vitest.config.ts",
"test": "vitest run -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",
"typedoc": "node scripts/typedoc.mjs",
@@ -234,5 +234,9 @@
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"@types/cross-spawn": "^6.0.6",
"cross-spawn": "7.0.3"
}
}
@@ -1,5 +1,5 @@
[
"event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, uint256 indexed tokenIdMinted, (address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, uint256 tokenId, string uri, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) mintRequest)",
"function mintWithSignature((address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, uint256 tokenId, string uri, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) req, bytes signature) payable returns (address signer)",
"function mintWithSignature((address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, uint256 tokenId, string uri, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) payload, bytes signature) payable returns (address signer)",
"function verify((address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, uint256 tokenId, string uri, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) req, bytes signature) view returns (bool success, address signer)"
]
@@ -1,5 +1,5 @@
[
"event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, (address to, address primarySaleRecipient, uint256 quantity, uint256 price, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) mintRequest)",
"function mintWithSignature((address to, address primarySaleRecipient, uint256 quantity, uint256 price, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) req, bytes signature) payable returns (address signer)",
"function mintWithSignature((address to, address primarySaleRecipient, uint256 quantity, uint256 price, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) payload, bytes signature) payable returns (address signer)",
"function verify((address to, address primarySaleRecipient, uint256 quantity, uint256 price, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) req, bytes signature) view returns (bool success, address signer)"
]
@@ -4,6 +4,7 @@
"event NewOffer(address indexed offeror, uint256 indexed offerId, address indexed assetContract, (uint256 offerId, uint256 tokenId, uint256 quantity, uint256 totalPrice, uint256 expirationTimestamp, address offeror, address assetContract, address currency, uint8 tokenType, uint8 status) offer)",
"function acceptOffer(uint256 _offerId)",
"function cancelOffer(uint256 _offerId)",
"function totalOffers() view returns (uint256)",
"function getAllOffers(uint256 _startId, uint256 _endId) view returns ((uint256 offerId, uint256 tokenId, uint256 quantity, uint256 totalPrice, uint256 expirationTimestamp, address offeror, address assetContract, address currency, uint8 tokenType, uint8 status)[] offers)",
"function getAllValidOffers(uint256 _startId, uint256 _endId) view returns ((uint256 offerId, uint256 tokenId, uint256 quantity, uint256 totalPrice, uint256 expirationTimestamp, address offeror, address assetContract, address currency, uint8 tokenType, uint8 status)[] offers)",
"function getOffer(uint256 _offerId) view returns ((uint256 offerId, uint256 tokenId, uint256 quantity, uint256 totalPrice, uint256 expirationTimestamp, address offeror, address assetContract, address currency, uint8 tokenType, uint8 status) offer)",
@@ -3,10 +3,10 @@ import { describe, expect, test } from "vitest";
import { ANVIL_CHAIN } from "../../test/src/chains.js";
import { TEST_CLIENT } from "../../test/src/test-clients.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";
const account = privateKeyAccount({
const account = privateKeyToAccount({
privateKey: ANVIL_PKEY_A,
client: TEST_CLIENT,
});
@@ -2,10 +2,10 @@ import { describe, expect, test } from "vitest";
import { ANVIL_CHAIN } from "../../test/src/chains.js";
import { TEST_CLIENT } from "../../test/src/test-clients.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";
const account = privateKeyAccount({
const account = privateKeyToAccount({
privateKey: ANVIL_PKEY_A,
client: TEST_CLIENT,
});
+2 -2
View File
@@ -4,10 +4,10 @@ import { ANVIL_PKEY_A } from "~test/test-wallets.js";
import { typedData } from "~test/typed-data.js";
import { ANVIL_CHAIN, FORKED_ETHEREUM_CHAIN } from "../../test/src/chains.js";
import { TEST_CLIENT } from "../../test/src/test-clients.js";
import { privateKeyAccount } from "../wallets/private-key.js";
import { privateKeyToAccount } from "../wallets/private-key.js";
import { viemAdapter } from "./viem.js";
const account = privateKeyAccount({
const account = privateKeyToAccount({
privateKey: ANVIL_PKEY_A,
client: TEST_CLIENT,
});
@@ -5,4 +5,9 @@ export const anvil = /* @__PURE__ */ defineChain({
name: "Anvil",
rpc: "http://localhost:8545",
testnet: true,
nativeCurrency: {
name: "Anvil Ether",
symbol: "ETH",
decimals: 18,
},
});
+10 -10
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env node
import { execSync, spawn } from "node:child_process";
import { execSync } from "node:child_process";
import { spawn } from "cross-spawn";
import {
generate,
isValidChainIdAndContractAddress,
@@ -24,25 +25,24 @@ async function main() {
default: {
const isWindows = /^win/.test(process.platform);
let bunAvailable = false;
// bun has no windows support yet anyways
if (!isWindows) {
const isBunAvailable = (() => {
try {
const res = execSync("bun --version", {
stdio: "ignore",
encoding: "utf-8",
});
if (typeof res === "string" && res.indexOf(".") > -1) {
bunAvailable = true;
return true;
}
} catch {
bunAvailable = false;
}
}
} catch {}
return false;
})();
let runner = "npx";
switch (true) {
case bunAvailable:
case isBunAvailable:
runner = "bun";
break;
case isWindows:
@@ -185,10 +185,10 @@ export type ${uppercaseFirstLetter(f.name)}Params = {
* const transaction = ${f.name}(${
f.inputs.length > 0
? `{\n * ${f.inputs
.map(
(x, i) => ` ${removeLeadingUnderscore(x.name || `arg_${i}`)}: ...,`,
)
.join("\n * ")}\n * }`
.map(
(x, i) => ` ${removeLeadingUnderscore(x.name || `arg_${i}`)}: ...,`,
)
.join("\n * ")}\n * }`
: ""
});
*
@@ -243,10 +243,10 @@ export type ${uppercaseFirstLetter(f.name)}Params = {
* const result = await ${f.name}(${
f.inputs.length > 0
? `{\n * ${f.inputs
.map(
(x, i) => ` ${removeLeadingUnderscore(x.name || `arg_${i}`)}: ...,`,
)
.join("\n * ")}\n * }`
.map(
(x, i) => ` ${removeLeadingUnderscore(x.name || `arg_${i}`)}: ...,`,
)
.join("\n * ")}\n * }`
: ""
});
*
@@ -302,8 +302,8 @@ export type ${uppercaseFirstLetter(e.name)}EventFilters = Partial<{
* ${eventNameToPreparedEventName(e.name)}(${
indexedInputs.length > 0
? `{\n * ${indexedInputs
.map((x) => ` ${x.name}: ...,`)
.join("\n * ")}\n * }`
.map((x) => ` ${x.name}: ...,`)
.join("\n * ")}\n * }`
: ""
})
* ],
@@ -3,6 +3,7 @@ import type {
AbiParameter,
AbiParametersToPrimitiveTypes,
} from "abitype";
import { sendAndConfirmTransaction } from "../../transaction/actions/send-and-confirm-transaction.js";
import { prepareTransaction } from "../../transaction/prepare-transaction.js";
import { encodeAbiParameters } from "../../utils/abi/encodeAbiParameters.js";
import { ensureBytecodePrefix } from "../../utils/bytecode/prefix.js";
@@ -10,6 +11,7 @@ import { concatHex } from "../../utils/encoding/helpers/concat-hex.js";
import { type Hex, isHex } from "../../utils/encoding/hex.js";
import type { Prettify } from "../../utils/type-utils.js";
import type { ClientAndChain } from "../../utils/types.js";
import type { Account } from "../../wallets/interfaces/wallet.js";
export type PrepareDirectDeployTransactionOptions<
TConstructor extends AbiConstructor,
@@ -67,3 +69,42 @@ export function prepareDirectDeployTransaction<
]),
});
}
/**
* Deploy a contract on a given chain
* @param options - the deploy options
* @returns - a promise that resolves to the deployed contract address
* @example
* ```ts
* import { deployContract } from "thirdweb/deployContract";
*
* const address = await deployContract({
* client,
* chain,
* bytecode: "0x...",
* constructorAbi: {
* inputs: [{ type: "uint256", name: "value" }],
* type: "constructor",
* },
* constructorParams: [123],
* });
* ```
* @extension DEPLOY
*/
export async function deployContract<const TConstructor extends AbiConstructor>(
options: PrepareDirectDeployTransactionOptions<TConstructor> & {
account: Account;
},
) {
const deployTx = prepareDirectDeployTransaction(options);
const receipt = await sendAndConfirmTransaction({
account: options.account,
transaction: deployTx,
});
if (!receipt.contractAddress) {
throw new Error(
`Could not find deployed contract address in transaction: ${receipt.transactionHash}`,
);
}
return receipt.contractAddress;
}
+10
View File
@@ -19,5 +19,15 @@ export {
deployERC1155Contract,
} from "../extensions/prebuilts/deploy-erc1155.js";
export {
deployPublishedContract,
type DeployPublishedContractOptions,
} from "../extensions/prebuilts/deploy-published.js";
export { prepareDirectDeployTransaction } from "../contract/deployment/deploy-with-abi.js";
export { prepareAutoFactoryDeployTransaction } from "../contract/deployment/deploy-via-autofactory.js";
export { deployViaAutoFactory } from "../contract/deployment/deploy-via-autofactory.js";
export {
deployContract,
type PrepareDirectDeployTransactionOptions,
} from "../contract/deployment/deploy-with-abi.js";
@@ -68,6 +68,11 @@ export {
mintAdditionalSupplyTo,
type MintAdditionalSupplyToParams,
} from "../../extensions/erc1155/write/mintAdditionalSupplyTo.js";
export {
setTokenURI,
type SetTokenURIParams,
} from "../../extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.js";
export { freezeMetadata } from "../../extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.js";
// EVENTS
@@ -83,6 +88,9 @@ export {
approvalForAllEvent,
type ApprovalForAllEventFilters,
} from "../../extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.js";
export { metadataUpdateEvent } from "../../extensions/erc1155/__generated__/INFTMetadata/events/MetadataUpdate.js";
export { metadataFrozenEvent } from "../../extensions/erc1155/__generated__/INFTMetadata/events/MetadataFrozen.js";
export { batchMetadataUpdateEvent } from "../../extensions/erc1155/__generated__/INFTMetadata/events/BatchMetadataUpdate.js";
/**
* DROPS extension for ERC1155
@@ -103,6 +111,15 @@ export {
type SetClaimConditionsParams,
} from "../../extensions/erc1155/drops/write/setClaimConditions.js";
/**
* SIGNATURE extension for ERC1155
*/
export {
mintWithSignature,
type GenerateMintSignatureOptions,
generateMintSignature,
} from "../../extensions/erc1155/write/sigMint.js";
// EVENTS
export { tokensLazyMintedEvent } from "../../extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.js";
export { tokensClaimedEvent } from "../../extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.js";
@@ -77,3 +77,24 @@ export {
setClaimConditions,
type SetClaimConditionsParams,
} from "../../extensions/erc20/drops/write/setClaimConditions.js";
/**
* SIGNATURE extension for ERC20
*/
export {
mintWithSignature,
type GenerateMintSignatureOptions,
generateMintSignature,
} from "../../extensions/erc20/write/sigMint.js";
// ----------------------------
// WETH
// ----------------------------
export {
deposit,
type DepositParams,
} from "../../extensions/erc20/write/deposit.js";
export {
withdraw,
type WithdrawParams,
} from "../../extensions/erc20/__generated__/IWETH/write/withdraw.js";
@@ -1,34 +1,27 @@
// ----------------------------
// COMMON
// ----------------------------
export type {
DirectListing,
ListingStatus,
} from "../../extensions/marketplace/types.js";
// ----------------------------
// DIRECT LISTINGS
// ----------------------------
export type { DirectListing } from "../../extensions/marketplace/direct-listings/types.js";
// READ
export { totalListings } from "../../extensions/marketplace/__generated__/IDirectListings/read/totalListings.js";
export {
getListing,
type GetListingParams,
} from "../../extensions/marketplace/read/direct/getListing.js";
} from "../../extensions/marketplace/direct-listings/read/getListing.js";
export {
getAllListings,
type GetAllListingParams,
} from "../../extensions/marketplace/read/direct/getAllListings.js";
} from "../../extensions/marketplace/direct-listings/read/getAllListings.js";
export {
getAllValidListings,
type GetAllValidListingParams,
} from "../../extensions/marketplace/read/direct/getAllValidListings.js";
} from "../../extensions/marketplace/direct-listings/read/getAllValidListings.js";
export {
isBuyerApprovedForListing,
type IsBuyerApprovedForListingParams,
} from "../../extensions/marketplace/read/direct/isBuyerApprovedForListing.js";
} from "../../extensions/marketplace/direct-listings/read/isBuyerApprovedForListing.js";
export {
isCurrencyApprovedForListing,
type IsCurrencyApprovedForListingParams,
@@ -36,17 +29,17 @@ export {
export {
currencyPriceForListing,
type CurrencyPriceForListingParams,
} from "../../extensions/marketplace/read/direct/currencyPriceForListing.js";
} from "../../extensions/marketplace/direct-listings/read/currencyPriceForListing.js";
// WRITE
export {
createListing,
type CreateListingParams,
} from "../../extensions/marketplace/write/direct/createListing.js";
} from "../../extensions/marketplace/direct-listings/write/createListing.js";
export {
updateListing,
type UpdateListingParams,
} from "../../extensions/marketplace/write/direct/updateListing.js";
} from "../../extensions/marketplace/direct-listings/write/updateListing.js";
export {
cancelListing,
type CancelListingParams,
@@ -54,7 +47,7 @@ export {
export {
buyFromListing,
type BuyFromListingParams,
} from "../../extensions/marketplace/write/direct/buyFromListing.js";
} from "../../extensions/marketplace/direct-listings/write/buyFromListing.js";
export {
approveBuyerForListing,
type ApproveBuyerForListingParams,
@@ -94,26 +87,60 @@ export {
// ENGLISH AUCTIONS
// ----------------------------
export type { EnglishAuction } from "../../extensions/marketplace/english-auctions/types.js";
// READ
export { totalAuctions } from "../../extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.js";
export {
getAuction,
type GetAuctionParams,
} from "../../extensions/marketplace/read/english-auction/getAuction.js";
} from "../../extensions/marketplace/english-auctions/read/getAuction.js";
export {
getAllAuctions,
type GetAllAuctionParams,
} from "../../extensions/marketplace/read/english-auction/getAllAuctions.js";
} from "../../extensions/marketplace/english-auctions/read/getAllAuctions.js";
export {
getAllValidAuctions,
type GetAllValidAuctionParams,
} from "../../extensions/marketplace/read/english-auction/getAllValidAuctions.js";
} from "../../extensions/marketplace/english-auctions/read/getAllValidAuctions.js";
export {
getWinningBid,
type GetWinningBidParams,
} from "../../extensions/marketplace/english-auctions/read/getWinningBid.js";
export {
isNewWinningBid,
type IsNewWinningBidParams,
} from "../../extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.js";
// WRITE
export {
createAuction,
type CreateAuctionParams,
} from "../../extensions/marketplace/write/english-auction/createAuction.js";
} from "../../extensions/marketplace/english-auctions/write/createAuction.js";
export {
bidInAuction,
type BidInAuctionParams,
} from "../../extensions/marketplace/english-auctions/write/bidInAuction.js";
export {
cancelAuction,
type CancelAuctionParams,
} from "../../extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.js";
export {
buyoutAuction,
type BuyoutAuctionParams,
} from "../../extensions/marketplace/english-auctions/write/buyoutAuction.js";
export {
collectAuctionPayout,
type CollectAuctionPayoutParams,
} from "../../extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.js";
export {
collectAuctionTokens,
type CollectAuctionTokensParams,
} from "../../extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.js";
export {
executeSale,
type ExecuteSaleParams,
} from "../../extensions/marketplace/english-auctions/write/executeSale.js";
// EVENTS
export {
@@ -132,3 +159,52 @@ export {
newBidEvent,
type NewBidEventFilters,
} from "../../extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.js";
// ----------------------------
// OFFERS
// ----------------------------
export type { Offer } from "../../extensions/marketplace/offers/types.js";
// READ
export { totalOffers } from "../../extensions/marketplace/__generated__/IOffers/read/totalOffers.js";
export {
getAllOffers,
type GetAllOffersParams,
} from "../../extensions/marketplace/offers/read/getAllOffers.js";
export {
getAllValidOffers,
type GetAllValidOffersParams,
} from "../../extensions/marketplace/offers/read/getAllValidOffers.js";
export {
getOffer,
type GetOfferParams,
} from "../../extensions/marketplace/offers/read/getOffer.js";
// WRITE
export {
makeOffer,
type MakeOfferParams,
} from "../../extensions/marketplace/offers/write/makeOffer.js";
export {
cancelOffer,
type CancelOfferParams,
} from "../../extensions/marketplace/__generated__/IOffers/write/cancelOffer.js";
export {
acceptOffer,
type AcceptOfferParams,
} from "../../extensions/marketplace/offers/write/acceptOffer.js";
// EVENTS
export {
acceptedOfferEvent,
type AcceptedOfferEventFilters,
} from "../../extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.js";
export {
cancelledOfferEvent,
type CancelledOfferEventFilters,
} from "../../extensions/marketplace/__generated__/IOffers/events/CancelledOffer.js";
export {
newOfferEvent,
type NewOfferEventFilters,
} from "../../extensions/marketplace/__generated__/IOffers/events/NewOffer.js";
+18 -1
View File
@@ -17,7 +17,7 @@ export {
// contract related
export { useReadContract } from "../react/core/hooks/contract/useReadContract.js";
export { useSendTransaction } from "../react/core/hooks/contract/useSendTransaction.js";
export { useEstimateGas } from "../react/core/hooks/contract/useEstimateGas.js";
export { useWaitForReceipt } from "../react/core/hooks/contract/useWaitForReceipt.js";
export { useContractEvents } from "../react/core/hooks/contract/useContractEvents.js";
@@ -45,3 +45,20 @@ export {
useBuyWithCryptoHistory,
type BuyWithCryptoHistoryQueryParams,
} from "../react/core/hooks/pay/useBuyWithCryptoHistory.js";
import { useSendTransactionCore } from "../react/core/hooks/contract/useSendTransaction.js";
/**
* A hook to send a transaction.
* @returns A mutation object to send a transaction.
* @example
* ```jsx
* import { useSendTransaction } from "thirdweb/react-native";
* const { mutate: sendTx, data: transactionResult } = useSendTransaction();
*
* // later
* sendTx(tx);
* ```
* @transaction
*/
export const useSendTransaction = useSendTransactionCore;
+8 -2
View File
@@ -29,7 +29,10 @@ export {
export { ThirdwebProvider } from "../react/core/providers/thirdweb-provider.js";
// tokens
export type { SupportedTokens } from "../react/web/ui/ConnectWallet/defaultTokens.js";
export type {
SupportedTokens,
TokenInfo,
} from "../react/web/ui/ConnectWallet/defaultTokens.js";
export { defaultTokens } from "../react/web/ui/ConnectWallet/defaultTokens.js";
// Media Renderer
@@ -53,7 +56,10 @@ export {
// contract related
export { useReadContract } from "../react/core/hooks/contract/useReadContract.js";
export { useSendTransaction } from "../react/core/hooks/contract/useSendTransaction.js";
export {
useSendTransaction,
type SendTransactionConfig,
} from "../react/web/hooks/useSendTransaction.js";
export { useSendBatchTransaction } from "../react/core/hooks/contract/useSendBatchTransaction.js";
export { useSendAndConfirmTransaction } from "../react/core/hooks/contract/useSendAndConfirmTransaction.js";
export { useEstimateGas } from "../react/core/hooks/contract/useEstimateGas.js";
+11 -2
View File
@@ -24,9 +24,18 @@ export {
// private-key
export {
privateKeyAccount,
privateKeyToAccount,
type PrivateKeyAccountOptions,
/**
* @internal
* @deprecated - use {@link privateKeyToAccount} instead
*/
privateKeyToAccount as privateKeyAccount,
type PrivateKeyToAccountOptions,
/**
* @internal
* @deprecated - use {@link PrivateKeyToAccountOptions} instead
*/
type PrivateKeyToAccountOptions as PrivateKeyAccountOptions,
} from "../wallets/private-key.js";
// injected
@@ -1,4 +1,14 @@
export {
privateKeyAccount,
type PrivateKeyAccountOptions,
privateKeyToAccount,
/**
* @internal
* @deprecated - use {@link privateKeyToAccount} instead
*/
privateKeyToAccount as privateKeyAccount,
type PrivateKeyToAccountOptions,
/**
* @internal
* @deprecated - use {@link PrivateKeyToAccountOptions} instead
*/
type PrivateKeyToAccountOptions as PrivateKeyAccountOptions,
} from "../../wallets/private-key.js";
@@ -13,9 +13,9 @@ import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js";
* Represents the parameters for the "mintWithSignature" function.
*/
export type MintWithSignatureParams = WithOverrides<{
req: AbiParameterToPrimitiveType<{
payload: AbiParameterToPrimitiveType<{
type: "tuple";
name: "req";
name: "payload";
components: [
{ type: "address"; name: "to" },
{ type: "address"; name: "royaltyRecipient" },
@@ -38,7 +38,7 @@ export const FN_SELECTOR = "0x98a6e993" as const;
const FN_INPUTS = [
{
type: "tuple",
name: "req",
name: "payload",
components: [
{
type: "address",
@@ -132,7 +132,7 @@ export async function isMintWithSignatureSupported(
* ```ts
* import { encodeMintWithSignatureParams } "thirdweb/extensions/erc1155";
* const result = encodeMintWithSignatureParams({
* req: ...,
* payload: ...,
* signature: ...,
* });
* ```
@@ -140,7 +140,7 @@ export async function isMintWithSignatureSupported(
export function encodeMintWithSignatureParams(
options: MintWithSignatureParams,
) {
return encodeAbiParameters(FN_INPUTS, [options.req, options.signature]);
return encodeAbiParameters(FN_INPUTS, [options.payload, options.signature]);
}
/**
@@ -152,7 +152,7 @@ export function encodeMintWithSignatureParams(
* ```ts
* import { encodeMintWithSignature } "thirdweb/extensions/erc1155";
* const result = encodeMintWithSignature({
* req: ...,
* payload: ...,
* signature: ...,
* });
* ```
@@ -177,7 +177,7 @@ export function encodeMintWithSignature(options: MintWithSignatureParams) {
*
* const transaction = mintWithSignature({
* contract,
* req: ...,
* payload: ...,
* signature: ...,
* });
*
@@ -203,7 +203,7 @@ export function mintWithSignature(
method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const,
params: async () => {
const resolvedOptions = await asyncOptions();
return [resolvedOptions.req, resolvedOptions.signature] as const;
return [resolvedOptions.payload, resolvedOptions.signature] as const;
},
value: async () => (await asyncOptions()).overrides?.value,
});
@@ -7,7 +7,7 @@ import {
TEST_ACCOUNT_B,
} from "../../../test/src/test-wallets.js";
import { type ThirdwebContract, getContract } from "../../contract/contract.js";
import { sendAndConfirmTransaction } from "../../exports/transaction.js";
import { sendAndConfirmTransaction } from "../../transaction/actions/send-and-confirm-transaction.js";
import { getContractMetadata } from "../common/read/getContractMetadata.js";
import { deployERC1155Contract } from "../prebuilts/deploy-erc1155.js";
import { balanceOf } from "./__generated__/IERC1155/read/balanceOf.js";
@@ -113,6 +113,37 @@ describe.runIf(process.env.TW_SECRET_KEY)(
).resolves.toBe(1n);
});
it("should allow to claim tokens with price", async () => {
await expect(
balanceOf({ contract, owner: TEST_ACCOUNT_A.address, tokenId: 0n }),
).resolves.toBe(1n);
await sendAndConfirmTransaction({
transaction: setClaimConditions({
contract,
phases: [
{
price: "0.001",
},
],
tokenId: 0n,
}),
account: TEST_ACCOUNT_A,
});
const claimTx = claimTo({
contract,
to: TEST_ACCOUNT_A.address,
tokenId: 0n,
quantity: 1n,
});
await sendAndConfirmTransaction({
transaction: claimTx,
account: TEST_ACCOUNT_A,
});
await expect(
balanceOf({ contract, owner: TEST_ACCOUNT_A.address, tokenId: 0n }),
).resolves.toBe(2n);
});
describe("Allowlists", () => {
it("should allow to claim tokens with an allowlist", async () => {
const tokenId = 1n;
@@ -6,7 +6,7 @@ import {
TEST_ACCOUNT_B,
} from "../../../test/src/test-wallets.js";
import { type ThirdwebContract, getContract } from "../../contract/contract.js";
import { sendAndConfirmTransaction } from "../../exports/transaction.js";
import { sendAndConfirmTransaction } from "../../transaction/actions/send-and-confirm-transaction.js";
import { getContractMetadata } from "../common/read/getContractMetadata.js";
import { deployERC1155Contract } from "../prebuilts/deploy-erc1155.js";
import { balanceOf } from "./__generated__/IERC1155/read/balanceOf.js";
@@ -16,7 +16,7 @@ export type MintAdditionalSupplyToParams = {
* @example
* ```ts
* import { mintAdditionalSupplyTo } from "thirdweb/extensions/erc1155";
* const transaction = mintTo({
* const transaction = mintAdditionalSupplyTo({
* contract,
* to: "0x...",
* tokenId: 1n,

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