Compare commits

...
Author SHA1 Message Date
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
9cb51536b4 Version Packages (#2762)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-15 15:05:59 -07:00
Joaquim VergesandGitHub 9b0a3df709 fix: deploy WETH9 infra contract for marketplace deploys (#2775) 2024-04-14 23:44:17 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Jonas Daniels
0c9376ff17 chore(chains): update chains (#2772)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-13 16:22:48 +00:00
Jonas DanielsandGitHub df338f5f75 feat(extensions/erc20): add claimTo and claim condition extensions (#2771) 2024-04-13 09:16:18 -07:00
Jonas DanielsandGitHub ea0dedcb6e test: Update chain definition in isEIP155Enforced test (#2773) 2024-04-12 22:58:47 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
50bbc7c053 chore(chains): update chains (#2763)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-12 16:42:36 -07:00
Jonas DanielsandGitHub ff354a6ae1 Jd/cleanups (#2770) 2024-04-12 13:33:15 -07:00
8197b3ced2 [SDK] Adds serializeTransaction function (#2760)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-12 13:29:54 -07:00
65e4ddc8e0 feat: add erc721 claim conditions + override list support (#2766)
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-12 18:55:38 +00:00
Jonas DanielsandGitHub 955a20737a chore: temporarily move the bridge to legacy_packages until it is switched to v5 SDK (#2769) 2024-04-12 16:17:49 +00:00
FirekeeperandGitHub f0fe1fdb1b Unity 4.11.0, EmbeddedWallet -> InAppWallet + fix 4.10 regression (#2765) 2024-04-12 00:10:11 +00:00
Jonas DanielsandGitHub b22a572d8a fix: Update package dependencies versions (#2764) 2024-04-11 17:08:52 -07:00
Jonas DanielsandGitHub 9d46fce50f extensions(permissions): add support for initial permissions (#2757) 2024-04-11 16:47:30 -07:00
Manan TankandGitHub a18fc8e1b7 Connect UI context cleanup (#2761) 2024-04-11 23:34:14 +00:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
6574e4da99 chore(chains): update chains (#2755)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-11 15:39:02 -07:00
480 changed files with 4952 additions and 2032 deletions
+13 -4
View File
@@ -30,7 +30,7 @@ env:
jobs:
build:
runs-on: ubuntu-latest-16
runs-on: ubuntu-latest
name: Build Packages
steps:
- name: Check out the code
@@ -63,7 +63,7 @@ jobs:
test:
timeout-minutes: 15
name: Unit Tests
runs-on: ubuntu-latest-16
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
@@ -73,6 +73,9 @@ jobs:
- name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-440ec525deb00b4dca138794865c27d1e8ea4d01
cache: false
- run: pnpm test
@@ -101,7 +104,7 @@ jobs:
if: github.event_name != 'merge_group'
timeout-minutes: 15
name: "Benchmarks"
runs-on: ubuntu-latest-16
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
@@ -109,6 +112,12 @@ jobs:
- name: Setup & Install
uses: ./.github/composite-actions/install
- name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-440ec525deb00b4dca138794865c27d1e8ea4d01
cache: false
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
@@ -120,7 +129,7 @@ jobs:
if: github.event_name == 'pull_request'
timeout-minutes: 15
name: "Size"
runs-on: ubuntu-latest-16
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
+16 -1
View File
@@ -21,5 +21,20 @@
"packages/thirdweb/src/utils/bytecode/cbor-decode.ts",
"packages/thirdweb/src/**/__generated__/**"
]
}
},
"overrides": [
{
"include": ["packages/thirdweb/src/**"],
"linter": {
"rules": {
"style": {
"noRestrictedGlobals": {
"options": { "deniedGlobals": ["Buffer"] },
"level": "error"
}
}
}
}
}
]
}
+7
View File
@@ -1,5 +1,12 @@
# @thirdweb-dev/auth
## 4.1.61
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/wallets@2.5.3
## 4.1.60
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/auth",
"version": "4.1.60",
"version": "4.1.61",
"main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js",
"browser": {
+6
View File
@@ -1,5 +1,11 @@
# @thirdweb-dev/chains
## 0.1.94
### Patch Changes
- [#2755](https://github.com/thirdweb-dev/js/pull/2755) [`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
## 0.1.93
### Patch Changes
+5
View File
@@ -7,6 +7,11 @@ export default {
"name": "blockscout",
"url": "https://blockscoutapi.hekla.taiko.xyz",
"standard": "EIP3091"
},
{
"name": "routescan",
"url": "https://hekla.taikoscan.network",
"standard": "EIP3091"
}
],
"faucets": [],
-6
View File
@@ -12,12 +12,6 @@ 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": {
+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;
+2 -14
View File
@@ -2,19 +2,7 @@ import type { Chain } from "../src/types";
export default {
"chain": "XR Sepolia",
"chainId": 2730,
"explorers": [
{
"name": "blockscout",
"url": "https://xr-sepolia-testnet.explorer.caldera.xyz/",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmRdBsZF2sgWitedT5qAtBZwrYwY1xecHN9u5fgddqA1eL/xr-sepolia.png",
"width": 300,
"height": 300,
"format": "png"
}
}
],
"explorers": [],
"faucets": [],
"features": [],
"icon": {
@@ -39,7 +27,7 @@ export default {
"redFlags": [],
"rpc": [
"https://2730.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://xr-sepolia-testnet.rpc.caldera.xyz/http"
"https://xr-sepolia-testnet.rpc.caldera.xyz/infra-partner-http"
],
"shortName": "xr-sepolia",
"slug": "xr-sepolia",
+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;
+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;
-6
View File
@@ -12,12 +12,6 @@ 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": {
+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;
+12 -2
View File
@@ -2,9 +2,19 @@ import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 555666,
"explorers": [],
"explorers": [
{
"name": "ECLIPSE Explorer",
"url": "https://subnets-test.avax.network/eclipsecha",
"standard": "EIP3091"
}
],
"faucets": [],
"features": [],
"features": [
{
"name": "EIP1559"
}
],
"icon": {
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
"width": 256,
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 59932,
"explorers": [],
"faucets": [],
"features": [],
"icon": {
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
"width": 256,
"height": 256,
"format": "svg"
},
"infoURL": "https://avacloud.io",
"name": "Insomnia Testnet",
"nativeCurrency": {
"name": "Insomnia Testnet Token",
"symbol": "TECH",
"decimals": 18
},
"networkId": 59932,
"redFlags": [],
"rpc": [
"https://59932.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/instest/testnet/rpc"
],
"shortName": "Insomnia Testnet",
"slug": "insomnia-testnet",
"testnet": true
} as const satisfies Chain;
+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;
-6
View File
@@ -10,12 +10,6 @@ export default {
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmPko9BJhR5FWTsThcwUFnnnjgLjrXVDm1n98dCuaQNW59",
"width": 506,
"height": 652,
"format": "png"
},
"infoURL": "https://bstchain.io",
"name": "BST Chain",
"nativeCurrency": {
+1 -13
View File
@@ -6,22 +6,10 @@ export default {
{
"name": "GuapcoinX Explorer",
"url": "http://explorer.guapcoinx.com",
"standard": "none",
"icon": {
"url": "ipfs://QmcDTR7982VQKDDz2Mh4fZbnE9hn67MuFPWQv1MimCqPvB",
"width": 800,
"height": 800,
"format": "png"
}
"standard": "none"
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmcDTR7982VQKDDz2Mh4fZbnE9hn67MuFPWQv1MimCqPvB",
"width": 800,
"height": 800,
"format": "png"
},
"infoURL": "https://guapcoin.org/",
"name": "GuapcoinX",
"nativeCurrency": {
-6
View File
@@ -10,12 +10,6 @@ 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": 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;
-6
View File
@@ -12,12 +12,6 @@ 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": {
+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;
+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;
+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",
"version": "0.1.93",
"version": "0.1.94",
"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
+10
View File
@@ -1,5 +1,15 @@
# thirdweb
## 0.13.69
### Patch Changes
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
- @thirdweb-dev/wallets@2.5.3
- @thirdweb-dev/auth@4.1.61
## 0.13.68
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/cli",
"main": "dist/cli/index.js",
"version": "0.13.68",
"version": "0.13.69",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/cli",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -1,3 +1,5 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
// ADAPTED FROM https://github.com/merkletreejs/merkletreejs
import { Buffer } from "buffer";
@@ -1,3 +1,5 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
// ADAPTED FROM https://github.com/merkletreejs/merkletreejs
import { Buffer } from "buffer";
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-core
## 4.6.2
### Patch Changes
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
- @thirdweb-dev/wallets@2.5.3
- @thirdweb-dev/auth@4.1.61
## 4.6.1
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-core",
"version": "4.6.1",
"version": "4.6.2",
"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,7 @@
# @thirdweb-dev/react-native-compat
## 0.7.34
## 0.7.33
## 0.7.32
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/react-native-compat",
"description": "Shims for Thirdweb in React Native Projects",
"version": "0.7.33",
"version": "0.7.34",
"author": "thirdweb eng <[email protected]>",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native-compat",
"license": "Apache-2.0",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-native
## 0.7.34
### Patch Changes
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
- @thirdweb-dev/react-core@4.6.2
- @thirdweb-dev/wallets@2.5.3
## 0.7.33
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-native",
"version": "0.7.33",
"version": "0.7.34",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react
## 4.6.2
### Patch Changes
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
- @thirdweb-dev/react-core@4.6.2
- @thirdweb-dev/wallets@2.5.3
## 4.6.1
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react",
"version": "4.6.1",
"version": "4.6.2",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
Binary file not shown.
+8
View File
@@ -1,5 +1,13 @@
# @thirdweb-dev/sdk
## 4.0.63
### Patch Changes
- Updated dependencies [[`8197b3c`](https://github.com/thirdweb-dev/js/commit/8197b3ced288597979f27ab88abecadad5dac2cb), [`a18fc8e`](https://github.com/thirdweb-dev/js/commit/a18fc8e1b7d7f351e43367f6a6fd77674998e701), [`65e4ddc`](https://github.com/thirdweb-dev/js/commit/65e4ddc8e02467c170658d29d71dca53737548b7), [`df338f5`](https://github.com/thirdweb-dev/js/commit/df338f5f75545dcf717c39e045e2c7e9f64e5f9d), [`9d46fce`](https://github.com/thirdweb-dev/js/commit/9d46fce50fe7ef5750ddf9fefe8131cf190450db), [`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- thirdweb@5.6.0
- @thirdweb-dev/chains@0.1.94
## 4.0.62
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/sdk",
"version": "4.0.62",
"version": "4.0.63",
"description": "The main thirdweb SDK.",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/sdk",
"license": "Apache-2.0",
Binary file not shown.
@@ -1,5 +1,17 @@
# @thirdweb-dev/unity-js-bridge
## 0.6.12
### Patch Changes
- [#2765](https://github.com/thirdweb-dev/js/pull/2765) [`f0fe1fd`](https://github.com/thirdweb-dev/js/commit/f0fe1fdb1bd55fd7d16fc6380be000011d3682a0) Thanks [@0xFirekeeper](https://github.com/0xFirekeeper)! - Unity 4.11.0, EmbeddedWallet -> InAppWallet + fix 4.10 regression
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
- @thirdweb-dev/wallets@2.5.3
- @thirdweb-dev/auth@4.1.61
## 0.6.11
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/unity-js-bridge",
"version": "0.6.11",
"version": "0.6.12",
"main": "dist/thirdweb-unity-bridge.js",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
"license": "Apache-2.0",
@@ -17,13 +17,12 @@ import {
import { ThirdwebStorage } from "@thirdweb-dev/storage";
import {
type DAppMetaData,
type EmbeddedWalletOauthStrategy,
InAppWallet,
type InAppWalletOauthStrategy,
type SmartWalletConfig,
walletIds,
} from "@thirdweb-dev/wallets";
import type { AbstractClientWallet } from "@thirdweb-dev/wallets/evm/wallets/base";
import { CoinbaseWallet } from "@thirdweb-dev/wallets/evm/wallets/coinbase-wallet";
import { EmbeddedWallet } from "@thirdweb-dev/wallets/evm/wallets/embedded-wallet";
import { EthersWallet } from "@thirdweb-dev/wallets/evm/wallets/ethers";
import { InjectedWallet } from "@thirdweb-dev/wallets/evm/wallets/injected";
import { LocalWallet } from "@thirdweb-dev/wallets/evm/wallets/local-wallet";
@@ -66,18 +65,16 @@ const bigNumberReplacer = (_key: string, value: any) => {
return value;
};
const WALLETS = [
MetaMaskWallet,
InjectedWallet,
WalletConnect,
CoinbaseWallet,
LocalWallet,
SmartWallet,
EmbeddedWallet,
const SUPPORTED_WALLET_IDS = [
"injected",
"metamask",
"walletConnect",
"coinbase",
"localWallet",
"smartWallet",
"inAppWallet",
] as const;
type PossibleWallet = (typeof WALLETS)[number]["id"];
type FundWalletInput = FundWalletOptions & {
appId: string;
};
@@ -85,11 +82,11 @@ type FundWalletInput = FundWalletOptions & {
interface TWBridge {
initialize: (chain: ChainIdOrName, options: string) => void;
connect: (
wallet: PossibleWallet,
wallet: string,
chainId: string,
password?: string,
email?: string,
personalWallet?: PossibleWallet,
personalWallet?: string,
authOptions?: string,
smartWalletAccountOverride?: string,
) => Promise<string>;
@@ -174,10 +171,11 @@ class ThirdwebBridge implements TWBridge {
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
(globalThis as any).X_SDK_PLATFORM = "unity";
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
(globalThis as any).X_SDK_VERSION = "unity-4.10.1";
(globalThis as any).X_SDK_VERSION = "unity-4.11.0";
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
(globalThis as any).X_SDK_OS = browser?.os ?? "unknown";
}
this.initializedChain = chain;
const sdkOptions = JSON.parse(options);
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
@@ -215,7 +213,7 @@ class ThirdwebBridge implements TWBridge {
clientId: sdkOptions.clientId,
});
this.activeSDK = new ThirdwebSDK(chain, sdkOptions, storage);
for (const possibleWallet of WALLETS) {
for (const walletId of SUPPORTED_WALLET_IDS) {
let walletInstance: AbstractClientWallet;
const dappMetadata: DAppMetaData = {
name: sdkOptions.wallet?.appName || "thirdweb powered game",
@@ -224,7 +222,7 @@ class ThirdwebBridge implements TWBridge {
logoUrl: sdkOptions.wallet?.appIcons?.[0] || "",
...sdkOptions.wallet?.extras,
};
switch (possibleWallet.id) {
switch (walletId) {
case "injected":
walletInstance = new InjectedWallet({
dappMetadata,
@@ -232,14 +230,14 @@ class ThirdwebBridge implements TWBridge {
clientId: sdkOptions.clientId,
});
break;
case walletIds.metamask:
case "metamask":
walletInstance = new MetaMaskWallet({
dappMetadata,
chains: supportedChains,
clientId: sdkOptions.clientId,
});
break;
case walletIds.walletConnect:
case "walletConnect":
walletInstance = new WalletConnect({
projectId: sdkOptions.wallet?.walletConnectProjectId,
dappMetadata,
@@ -261,21 +259,21 @@ class ThirdwebBridge implements TWBridge {
},
});
break;
case walletIds.coinbase:
case "coinbase":
walletInstance = new CoinbaseWallet({
dappMetadata,
chains: supportedChains,
clientId: sdkOptions.clientId,
});
break;
case walletIds.localWallet:
case "localWallet":
walletInstance = new LocalWallet({
dappMetadata,
chains: supportedChains,
clientId: sdkOptions.clientId,
});
break;
case walletIds.smartWallet: {
case "smartWallet": {
const config: SmartWalletConfig = {
chain: chain,
factoryAddress: sdkOptions.smartWalletConfig?.factoryAddress,
@@ -292,8 +290,8 @@ class ThirdwebBridge implements TWBridge {
walletInstance = new SmartWallet(config);
break;
}
case walletIds.embeddedWallet:
walletInstance = new EmbeddedWallet({
case "inAppWallet":
walletInstance = new InAppWallet({
clientId: sdkOptions.clientId,
chain: Ethereum,
dappMetadata,
@@ -301,7 +299,7 @@ class ThirdwebBridge implements TWBridge {
});
break;
default:
throw new Error(`Unknown wallet type: ${possibleWallet.id}`);
throw new Error(`Unknown wallet type: ${walletId}`);
}
if (walletInstance) {
walletInstance.on("connect", async () =>
@@ -312,19 +310,19 @@ class ThirdwebBridge implements TWBridge {
);
walletInstance.on("disconnect", () => this.updateSDKSigner());
this.walletMap.set(possibleWallet.id, walletInstance);
this.walletMap.set(walletId, walletInstance);
}
}
}
public async connect(
// biome-ignore lint/style/useDefaultParameterLast: would change the order of parameters to fix this
wallet: PossibleWallet = "injected",
wallet: string,
chainId: string,
password?: string,
email?: string,
phoneNumber?: string,
personalWallet: PossibleWallet = "localWallet",
personalWallet?: string,
authOptions?: string,
smartWalletAccountOverride?: string,
) {
@@ -335,13 +333,13 @@ class ThirdwebBridge implements TWBridge {
const chainIdNumber = Number(chainId);
if (walletInstance) {
// local wallet needs to be generated or loaded before connecting
if (walletInstance.walletId === walletIds.localWallet) {
if (wallet === "localWallet") {
await this.initializeLocalWallet(password as string);
walletInstance.connect({ chainId: chainIdNumber });
}
if (walletInstance.walletId === walletIds.embeddedWallet) {
const embeddedWallet = walletInstance as EmbeddedWallet;
if (wallet === "inAppWallet") {
const embeddedWallet = walletInstance as InAppWallet;
const authOptionsParsed = JSON.parse(authOptions || "{}");
if (authOptionsParsed.authProvider === 0) {
// EmailOTP
@@ -358,7 +356,7 @@ class ThirdwebBridge implements TWBridge {
});
} else if (authOptionsParsed.authProvider < 4) {
// OAuth
let authProvider: EmbeddedWalletOauthStrategy;
let authProvider: InAppWalletOauthStrategy;
switch (authOptionsParsed.authProvider) {
// Google
case 1:
@@ -437,17 +435,21 @@ class ThirdwebBridge implements TWBridge {
`Invalid auth provider: ${authOptionsParsed.authProvider}`,
);
}
} else if (walletInstance.walletId === walletIds.smartWallet) {
} else if (wallet === "smartWallet") {
if (!personalWallet) {
throw new Error("Personal wallet is required for smart wallet");
}
const smartWallet = walletInstance as SmartWallet;
const eoaWallet = this.walletMap.get(personalWallet);
// Connect flow for EOA first
await this.connect(
eoaWallet?.walletId,
personalWallet,
chainId,
password,
email,
personalWallet,
phoneNumber,
undefined,
authOptions,
undefined,
);
await this.switchNetwork(chainId); // workaround for polygon/mumbai
if (this.activeWallet) {
@@ -471,7 +473,7 @@ class ThirdwebBridge implements TWBridge {
this.updateSDKSigner(await walletInstance.getSigner());
return await this.activeSDK.wallet.getAddress();
}
throw new Error("Invalid Wallet");
throw new Error(`This wallet is not supported in WebGL: ${wallet}`);
}
public async disconnect() {
@@ -728,9 +730,7 @@ class ThirdwebBridge implements TWBridge {
}
public async exportWallet(password: string): Promise<string> {
const localWallet = this.walletMap.get(
walletIds.localWallet,
) as LocalWallet;
const localWallet = this.walletMap.get("localWallet") as LocalWallet;
return await localWallet.export({
strategy: "encryptedJson",
password: password,
@@ -754,9 +754,7 @@ class ThirdwebBridge implements TWBridge {
}
public async initializeLocalWallet(password: string): Promise<LocalWallet> {
const localWallet = this.walletMap.get(
walletIds.localWallet,
) as LocalWallet;
const localWallet = this.walletMap.get("localWallet") as LocalWallet;
try {
await localWallet.loadOrCreate({
strategy: "encryptedJson",
@@ -872,9 +870,7 @@ class ThirdwebBridge implements TWBridge {
if (!this.activeWallet) {
throw new Error("No wallet connected");
}
const embeddedWallet = this.walletMap.get(
walletIds.embeddedWallet,
) as EmbeddedWallet;
const embeddedWallet = this.walletMap.get("inAppWallet") as InAppWallet;
const email = await embeddedWallet.getEmail();
return JSON.stringify({ result: email });
}
+8
View File
@@ -1,5 +1,13 @@
# @thirdweb-dev/wallets
## 2.5.3
### Patch Changes
- Updated dependencies [[`6574e4d`](https://github.com/thirdweb-dev/js/commit/6574e4da9938fe7eb862a0ae779b02561967abf1)]:
- @thirdweb-dev/chains@0.1.94
- @thirdweb-dev/sdk@4.0.63
## 2.5.2
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/wallets",
"version": "2.5.2",
"version": "2.5.3",
"main": "dist/thirdweb-dev-wallets.cjs.js",
"module": "dist/thirdweb-dev-wallets.esm.js",
"browser": {
+4 -4
View File
@@ -56,19 +56,19 @@
"@types/bun": "1.0.12",
"@types/react": "18.2.17",
"@viem/anvil": "0.0.9",
"@vitest/coverage-v8": "1.4.0",
"@vitest/coverage-v8": "1.5.0",
"dotenv-mono": "1.3.14",
"ethers5": "npm:[email protected]",
"ethers6": "npm:[email protected]",
"knip": "5.9.1",
"knip": "5.9.4",
"mitata": "0.1.11",
"react": "18.2.0",
"rimraf": "5.0.5",
"sharp": "^0.33.3",
"size-limit": "11.1.2",
"typedoc-gen": "workspace:*",
"typescript": "5.4.4",
"vitest": "1.4.0"
"typescript": "5.4.5",
"vitest": "1.5.0"
},
"manypkg": {
"defaultBranch": "main"
+23
View File
@@ -1,5 +1,28 @@
# thirdweb
## 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
### Minor Changes
+10
View File
@@ -1,6 +1,16 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"extends": ["../../biome.json"],
"linter": {
"rules": {
"style": {
"noRestrictedGlobals": {
"options": { "deniedGlobals": ["Buffer"] },
"level": "error"
}
}
}
},
"files": {
"ignore": [
"src/crypto/aes/lib/md5.ts",
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "thirdweb",
"version": "5.5.0",
"version": "5.6.0",
"repository": {
"type": "git",
"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-icons": "1.3.0",
"@radix-ui/react-tooltip": "1.0.7",
"@tanstack/react-query": "5.29.0",
"@walletconnect/ethereum-provider": "2.12.1",
"@tanstack/react-query": "5.29.2",
"@walletconnect/ethereum-provider": "2.12.2",
"abitype": "1.0.0",
"fast-text-encoding": "^1.0.6",
"fuse.js": "7.0.0",
"mipd": "0.0.7",
"node-libs-browser": "2.2.1",
"uqr": "0.1.2",
"viem": "2.9.9"
"viem": "2.9.16"
},
"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 --coverage --bail=1",
"test": "vitest run -c ./test/vitest.config.ts",
"test:cov": "vitest dev -c ./test/vitest.config.ts --coverage",
"test:dev": "vitest run -c ./test/vitest.config.ts",
"typedoc": "node scripts/typedoc.mjs",
@@ -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)",
"function claim(address receiver, uint256 quantity, address currency, uint256 pricePerToken, (bytes32[] proof, uint256 maxQuantityInAllowlist) 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 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 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.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the \`${f.name}\` method is supported.
* @extension ERC721
* @extension ${extensionName.toUpperCase()}
* @example
* \`\`\`ts
* 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.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the \`${f.name}\` method is supported.
* @extension ERC721
* @extension ${extensionName.toUpperCase()}
* @example
* \`\`\`ts
* import { is${uppercaseFirstLetter(
+4 -6
View File
@@ -1,14 +1,12 @@
import { zeroAddress } from "viem";
import { beforeAll, describe, expect, test } from "vitest";
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 { viemAdapter } from "./viem.js";
import { ANVIL_PKEY_A } from "~test/test-wallets.js";
import { typedData } from "~test/typed-data.js";
import { ANVIL_CHAIN } from "../../test/src/chains.js";
import { mainnet } from "../chains/chain-definitions/ethereum.js";
const account = privateKeyAccount({
privateKey: ANVIL_PKEY_A,
client: TEST_CLIENT,
@@ -68,7 +66,7 @@ describe("walletClient.toViem", () => {
walletClient = viemAdapter.walletClient.toViem({
client: TEST_CLIENT,
account,
chain: mainnet,
chain: FORKED_ETHEREUM_CHAIN,
});
const address = await walletClient.getAddresses();
@@ -44,3 +44,36 @@ export {
burnFrom,
type BurnFromParams,
} from "../../extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.js";
// EVENTS
export {
transferEvent,
type TransferEventFilters,
} from "../../extensions/erc20/__generated__/IERC20/events/Transfer.js";
export {
approvalEvent,
type ApprovalEventFilters,
} from "../../extensions/erc20/__generated__/IERC20/events/Approval.js";
export {
tokensMintedEvent,
type TokensMintedEventFilters,
} from "../../extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.js";
export {
tokensClaimedEvent,
type TokensClaimedEventFilters,
} from "../../extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.js";
export { claimConditionsUpdatedEvent } from "../../extensions/erc20/__generated__/IDropERC20/events/ClaimConditionsUpdated.js";
/**
* DROPS extension for ERC20
*/
export { getClaimConditionById } from "../../extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.js";
export { getActiveClaimCondition } from "../../extensions/erc20/drops/read/getActiveClaimCondition.js";
export {
claimTo,
type ClaimToParams,
} from "../../extensions/erc20/drops/write/claimTo.js";
export {
setClaimConditions,
type SetClaimConditionsParams,
} from "../../extensions/erc20/drops/write/setClaimConditions.js";
@@ -78,10 +78,7 @@ export {
setTokenURI,
type SetTokenURIParams,
} from "../../extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.js";
export {
lazyMint,
type LazyMintParams,
} from "../../extensions/erc721/write/lazyMint.js";
/**
* EVENTS extension for ERC721
*/
@@ -103,6 +100,14 @@ export {
claimTo,
type ClaimToParams,
} from "../../extensions/erc721/drops/write/claimTo.js";
export {
lazyMint,
type LazyMintParams,
} from "../../extensions/erc721/write/lazyMint.js";
export {
setClaimConditions,
type SetClaimConditionsParams,
} from "../../extensions/erc721/drops/write/setClaimConditions.js";
/**
* SIGNATURE extension for ERC721
@@ -0,0 +1,59 @@
//--------------------------------------------------
// Permissions
// --------------------------------------------------------
// READ
export {
hasRole,
type HasRoleParams,
} from "../../extensions/permissions/read/hasRole.js";
export {
getRoleAdmin,
type GetRoleAdminParams,
} from "../../extensions/permissions/read/getRoleAdmin.js";
// WRITE
export {
grantRole,
type GrantRoleParams,
} from "../../extensions/permissions/write/grant.js";
export {
revokeRole,
type RevokeRoleParams,
} from "../../extensions/permissions/write/revokeRole.js";
export {
renounceRole,
type RenounceRoleParams,
} from "../../extensions/permissions/write/renounceRole.js";
// EVENTS
export {
roleGrantedEvent,
type RoleGrantedEventFilters,
} from "../../extensions/permissions/__generated__/IPermissions/events/RoleGranted.js";
export {
roleRevokedEvent,
type RoleRevokedEventFilters,
} from "../../extensions/permissions/__generated__/IPermissions/events/RoleRevoked.js";
export {
roleAdminChangedEvent,
type RoleAdminChangedEventFilters,
} from "../../extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.js";
// --------------------------------------------------------
// PermissionsEnumerable
// --------------------------------------------------------
// READ
export {
getRoleMember,
type GetRoleMemberParams,
} from "../../extensions/permissions/read/getRoleMember.js";
export {
getRoleMemberCount,
type GetRoleMemberCountParams,
} from "../../extensions/permissions/read/getRoleMemberCount.js";
export {
getAllRoleMembers,
type GetAllRoleMembersParams,
} from "../../extensions/permissions/read/getAllMembers.js";
@@ -113,6 +113,7 @@ export {
} from "../transaction/actions/simulate.js";
export { waitForReceipt } from "../transaction/actions/wait-for-tx-receipt.js";
export { signTransaction } from "../transaction/actions/sign-transaction.js";
export { serializeTransaction } from "../transaction/serialize-transaction.js";
/**
* EVENTS
@@ -47,6 +47,10 @@ export {
signTransaction,
type SignTransactionOptions,
} from "../transaction/actions/sign-transaction.js";
export {
serializeTransaction,
type SerializeTransactionOptions,
} from "../transaction/serialize-transaction.js";
//types & utils
export {
@@ -84,7 +84,7 @@ const FN_OUTPUTS = [] as const;
* Checks if the `setClaimConditions` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `setClaimConditions` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isSetClaimConditionsSupported } from "thirdweb/extensions/common";
@@ -18,7 +18,7 @@ const FN_OUTPUTS = [
* Checks if the `contractURI` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `contractURI` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isContractURISupported } from "thirdweb/extensions/common";
@@ -18,7 +18,7 @@ const FN_OUTPUTS = [
* Checks if the `name` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `name` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isNameSupported } from "thirdweb/extensions/common";
@@ -18,7 +18,7 @@ const FN_OUTPUTS = [
* Checks if the `symbol` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `symbol` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isSymbolSupported } from "thirdweb/extensions/common";
@@ -29,7 +29,7 @@ const FN_OUTPUTS = [] as const;
* Checks if the `setContractURI` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `setContractURI` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isSetContractURISupported } from "thirdweb/extensions/common";
@@ -34,7 +34,7 @@ const FN_OUTPUTS = [
* Checks if the `multicall` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `multicall` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isMulticallSupported } from "thirdweb/extensions/common";
@@ -18,7 +18,7 @@ const FN_OUTPUTS = [
* Checks if the `owner` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `owner` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isOwnerSupported } from "thirdweb/extensions/common";
@@ -29,7 +29,7 @@ const FN_OUTPUTS = [] as const;
* Checks if the `setOwner` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `setOwner` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isSetOwnerSupported } from "thirdweb/extensions/common";
@@ -21,7 +21,7 @@ const FN_OUTPUTS = [
* Checks if the `getPlatformFeeInfo` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `getPlatformFeeInfo` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isGetPlatformFeeInfoSupported } from "thirdweb/extensions/common";
@@ -40,7 +40,7 @@ const FN_OUTPUTS = [] as const;
* Checks if the `setPlatformFeeInfo` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `setPlatformFeeInfo` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isSetPlatformFeeInfoSupported } from "thirdweb/extensions/common";
@@ -18,7 +18,7 @@ const FN_OUTPUTS = [
* Checks if the `primarySaleRecipient` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `primarySaleRecipient` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isPrimarySaleRecipientSupported } from "thirdweb/extensions/common";
@@ -32,7 +32,7 @@ const FN_OUTPUTS = [] as const;
* Checks if the `setPrimarySaleRecipient` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `setPrimarySaleRecipient` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isSetPrimarySaleRecipientSupported } from "thirdweb/extensions/common";
@@ -21,7 +21,7 @@ const FN_OUTPUTS = [
* Checks if the `getDefaultRoyaltyInfo` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `getDefaultRoyaltyInfo` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isGetDefaultRoyaltyInfoSupported } from "thirdweb/extensions/common";
@@ -34,7 +34,7 @@ const FN_OUTPUTS = [
* Checks if the `getRoyaltyInfoForToken` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `getRoyaltyInfoForToken` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isGetRoyaltyInfoForTokenSupported } from "thirdweb/extensions/common";
@@ -44,7 +44,7 @@ const FN_OUTPUTS = [
* Checks if the `royaltyInfo` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `royaltyInfo` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isRoyaltyInfoSupported } from "thirdweb/extensions/common";
@@ -34,7 +34,7 @@ const FN_OUTPUTS = [
* Checks if the `supportsInterface` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `supportsInterface` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isSupportsInterfaceSupported } from "thirdweb/extensions/common";
@@ -40,7 +40,7 @@ const FN_OUTPUTS = [] as const;
* Checks if the `setDefaultRoyaltyInfo` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `setDefaultRoyaltyInfo` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isSetDefaultRoyaltyInfoSupported } from "thirdweb/extensions/common";
@@ -42,7 +42,7 @@ const FN_OUTPUTS = [] as const;
* Checks if the `setRoyaltyInfoForToken` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `setRoyaltyInfoForToken` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isSetRoyaltyInfoForTokenSupported } from "thirdweb/extensions/common";
@@ -34,7 +34,7 @@ const FN_OUTPUTS = [
* Checks if the `supportsInterface` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `supportsInterface` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isSupportsInterfaceSupported } from "thirdweb/extensions/common";
@@ -51,7 +51,7 @@ const FN_OUTPUTS = [
* Checks if the `getRoyalty` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `getRoyalty` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isGetRoyaltySupported } from "thirdweb/extensions/common";
@@ -32,7 +32,7 @@ const FN_OUTPUTS = [] as const;
* Checks if the `setRoyaltyEngine` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `setRoyaltyEngine` method is supported.
* @extension ERC721
* @extension COMMON
* @example
* ```ts
* import { isSetRoyaltyEngineSupported } from "thirdweb/extensions/common";
@@ -42,7 +42,7 @@ const FN_OUTPUTS = [
* Checks if the `ABI` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `ABI` method is supported.
* @extension ERC721
* @extension ENS
* @example
* ```ts
* import { isABISupported } from "thirdweb/extensions/ens";
@@ -31,7 +31,7 @@ const FN_OUTPUTS = [
* Checks if the `addr` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `addr` method is supported.
* @extension ERC721
* @extension ENS
* @example
* ```ts
* import { isAddrSupported } from "thirdweb/extensions/ens";
@@ -31,7 +31,7 @@ const FN_OUTPUTS = [
* Checks if the `contenthash` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `contenthash` method is supported.
* @extension ERC721
* @extension ENS
* @example
* ```ts
* import { isContenthashSupported } from "thirdweb/extensions/ens";
@@ -31,7 +31,7 @@ const FN_OUTPUTS = [
* Checks if the `name` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `name` method is supported.
* @extension ERC721
* @extension ENS
* @example
* ```ts
* import { isNameSupported } from "thirdweb/extensions/ens";
@@ -36,7 +36,7 @@ const FN_OUTPUTS = [
* Checks if the `pubkey` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `pubkey` method is supported.
* @extension ERC721
* @extension ENS
* @example
* ```ts
* import { isPubkeySupported } from "thirdweb/extensions/ens";
@@ -36,7 +36,7 @@ const FN_OUTPUTS = [
* Checks if the `text` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `text` method is supported.
* @extension ERC721
* @extension ENS
* @example
* ```ts
* import { isTextSupported } from "thirdweb/extensions/ens";
@@ -39,7 +39,7 @@ const FN_OUTPUTS = [
* Checks if the `resolve` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `resolve` method is supported.
* @extension ERC721
* @extension ENS
* @example
* ```ts
* import { isResolveSupported } from "thirdweb/extensions/ens";
@@ -43,7 +43,7 @@ const FN_OUTPUTS = [
* Checks if the `reverse` method is supported by the given contract.
* @param contract The ThirdwebContract.
* @returns A promise that resolves to a boolean indicating if the `reverse` method is supported.
* @extension ERC721
* @extension ENS
* @example
* ```ts
* import { isReverseSupported } from "thirdweb/extensions/ens";

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