Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b4b6a5b4e | ||
|
|
b3d57949bd | ||
|
|
1cf1f866d5 | ||
|
|
602d8cbcfa | ||
|
|
33a78e68d1 | ||
|
|
235eb0460a | ||
|
|
3bb846adf0 | ||
|
|
b5648aee83 | ||
|
|
1b8f812fb8 | ||
|
|
1547d76cce | ||
|
|
7c78d1c6e8 | ||
|
|
058e4357c7 | ||
|
|
3a0e904fc2 |
@@ -1,5 +1,12 @@
|
|||||||
# @thirdweb-dev/auth
|
# @thirdweb-dev/auth
|
||||||
|
|
||||||
|
## 3.0.13
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [[`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d)]:
|
||||||
|
- @thirdweb-dev/wallets@0.2.14
|
||||||
|
|
||||||
## 3.0.12
|
## 3.0.12
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/auth",
|
"name": "@thirdweb-dev/auth",
|
||||||
"version": "3.0.12",
|
"version": "3.0.13",
|
||||||
"main": "dist/thirdweb-dev-auth.cjs.js",
|
"main": "dist/thirdweb-dev-auth.cjs.js",
|
||||||
"module": "dist/thirdweb-dev-auth.esm.js",
|
"module": "dist/thirdweb-dev-auth.esm.js",
|
||||||
"browser": {
|
"browser": {
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @thirdweb-dev/chains
|
# @thirdweb-dev/chains
|
||||||
|
|
||||||
|
## 0.1.11
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#870](https://github.com/thirdweb-dev/js/pull/870) [`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d) Thanks [@jnsdls](https://github.com/jnsdls)! - update chains
|
||||||
|
|
||||||
## 0.1.10
|
## 0.1.10
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
import type { Chain } from "../src/types";
|
||||||
|
export default {
|
||||||
|
"name": "ShimmerEVM Testnet",
|
||||||
|
"title": "ShimmerEVM Testnet",
|
||||||
|
"chain": "ShimmerEVM",
|
||||||
|
"icon": {
|
||||||
|
"url": "ipfs://bafkreibky2sy6qhi6arktayvologkrgu5kudpgdxfkx4uosbvmstz7v4di",
|
||||||
|
"width": 720,
|
||||||
|
"height": 720,
|
||||||
|
"format": "png"
|
||||||
|
},
|
||||||
|
"rpc": [
|
||||||
|
"https://shimmerevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||||
|
"https://json-rpc.evm.testnet.shimmer.network"
|
||||||
|
],
|
||||||
|
"faucets": [
|
||||||
|
"https://evm-toolkit.evm.testnet.shimmer.network",
|
||||||
|
"https://evm-faucet.testnet.shimmer.network"
|
||||||
|
],
|
||||||
|
"nativeCurrency": {
|
||||||
|
"name": "SMR",
|
||||||
|
"symbol": "SMR",
|
||||||
|
"decimals": 18
|
||||||
|
},
|
||||||
|
"infoURL": "https://shimmer.network",
|
||||||
|
"shortName": "shimmerevm-testnet",
|
||||||
|
"chainId": 1071,
|
||||||
|
"networkId": 1071,
|
||||||
|
"explorers": [
|
||||||
|
{
|
||||||
|
"name": "explorer",
|
||||||
|
"url": "https://explorer.evm.testnet.shimmer.network",
|
||||||
|
"standard": "EIP3091"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testnet": true,
|
||||||
|
"slug": "shimmerevm-testnet"
|
||||||
|
} as const satisfies Chain;
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
import type { Chain } from "../src/types";
|
||||||
|
export default {
|
||||||
|
"name": "Defi Oracle Meta Mainnet",
|
||||||
|
"chain": "dfiometa",
|
||||||
|
"icon": {
|
||||||
|
"url": "ipfs://QmYrMRnjQJcNkYq9AvZ2FQ9kzYj9szzP4YDmyNA1ybd8xE",
|
||||||
|
"width": 1000,
|
||||||
|
"height": 1043,
|
||||||
|
"format": "png"
|
||||||
|
},
|
||||||
|
"rpc": [
|
||||||
|
"https://defi-oracle-meta.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||||
|
"https://rpc.public-0138.defi-oracle.io",
|
||||||
|
"wss://rpc.public-0138.defi-oracle.io"
|
||||||
|
],
|
||||||
|
"features": [
|
||||||
|
{
|
||||||
|
"name": "EIP155"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "EIP1559"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"faucets": [],
|
||||||
|
"nativeCurrency": {
|
||||||
|
"name": "Ether",
|
||||||
|
"symbol": "ETH",
|
||||||
|
"decimals": 18
|
||||||
|
},
|
||||||
|
"infoURL": "https://defi-oracle.io/",
|
||||||
|
"shortName": "dfio-meta-main",
|
||||||
|
"chainId": 138,
|
||||||
|
"networkId": 1,
|
||||||
|
"slip44": 60,
|
||||||
|
"ens": {
|
||||||
|
"registry": "0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85"
|
||||||
|
},
|
||||||
|
"explorers": [
|
||||||
|
{
|
||||||
|
"name": "Quorum Explorer",
|
||||||
|
"url": "https://public-0138.defi-oracle.io",
|
||||||
|
"standard": "none"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testnet": false,
|
||||||
|
"slug": "defi-oracle-meta"
|
||||||
|
} as const satisfies Chain;
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import type { Chain } from "../src/types";
|
||||||
|
export default {
|
||||||
|
"name": "Neutrinos TestNet",
|
||||||
|
"chain": "NEUTR",
|
||||||
|
"rpc": [
|
||||||
|
"https://neutrinos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||||
|
"https://testnet-rpc.neutrinoschain.com"
|
||||||
|
],
|
||||||
|
"faucets": [
|
||||||
|
"https://neutrinoschain.com/faucet"
|
||||||
|
],
|
||||||
|
"nativeCurrency": {
|
||||||
|
"name": "Neutrinos",
|
||||||
|
"symbol": "NEUTR",
|
||||||
|
"decimals": 18
|
||||||
|
},
|
||||||
|
"infoURL": "https://docs.neutrinoschain.com",
|
||||||
|
"shortName": "NEUTR",
|
||||||
|
"chainId": 197,
|
||||||
|
"networkId": 197,
|
||||||
|
"explorers": [
|
||||||
|
{
|
||||||
|
"name": "blockscout",
|
||||||
|
"url": "https://testnet.neutrinoschain.com",
|
||||||
|
"standard": "EIP3091"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testnet": true,
|
||||||
|
"slug": "neutrinos-testnet"
|
||||||
|
} as const satisfies Chain;
|
||||||
@@ -5,10 +5,10 @@ export default {
|
|||||||
"shortName": "Camelark",
|
"shortName": "Camelark",
|
||||||
"chain": "ETHW",
|
"chain": "ETHW",
|
||||||
"icon": {
|
"icon": {
|
||||||
"url": "ipfs://QmbXDcCWHh8jExE1tAUkUKzXyTb8srpC75ogZq1QYkMMRW",
|
"url": "ipfs://QmeJerrsURFNt2LL7DE7TxeunjrQXiuezdfHyqmsbwX3MZ",
|
||||||
"width": 128,
|
"width": 128,
|
||||||
"height": 128,
|
"height": 128,
|
||||||
"format": "svg"
|
"format": "png"
|
||||||
},
|
},
|
||||||
"networkId": 20001,
|
"networkId": 20001,
|
||||||
"nativeCurrency": {
|
"nativeCurrency": {
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
import type { Chain } from "../src/types";
|
||||||
|
export default {
|
||||||
|
"name": "Defi Oracle Meta Testnet",
|
||||||
|
"chain": "dfiometatest",
|
||||||
|
"icon": {
|
||||||
|
"url": "ipfs://QmYrMRnjQJcNkYq9AvZ2FQ9kzYj9szzP4YDmyNA1ybd8xE",
|
||||||
|
"width": 1000,
|
||||||
|
"height": 1043,
|
||||||
|
"format": "png"
|
||||||
|
},
|
||||||
|
"rpc": [
|
||||||
|
"https://defi-oracle-meta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||||
|
"https://rpc.public-2138.defi-oracle.io",
|
||||||
|
"wss://rpc.public-2138.defi-oracle.io"
|
||||||
|
],
|
||||||
|
"features": [
|
||||||
|
{
|
||||||
|
"name": "EIP155"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "EIP1559"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"faucets": [],
|
||||||
|
"nativeCurrency": {
|
||||||
|
"name": "testEther",
|
||||||
|
"symbol": "tETH",
|
||||||
|
"decimals": 18
|
||||||
|
},
|
||||||
|
"infoURL": "https://defi-oracle.io/",
|
||||||
|
"shortName": "dfio-meta-test",
|
||||||
|
"chainId": 2138,
|
||||||
|
"networkId": 21,
|
||||||
|
"slip44": 60,
|
||||||
|
"ens": {
|
||||||
|
"registry": "0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85"
|
||||||
|
},
|
||||||
|
"explorers": [
|
||||||
|
{
|
||||||
|
"name": "Quorum Explorer",
|
||||||
|
"url": "https://public-2138.defi-oracle.io",
|
||||||
|
"standard": "none"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testnet": true,
|
||||||
|
"slug": "defi-oracle-meta-testnet"
|
||||||
|
} as const satisfies Chain;
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
import type { Chain } from "../src/types";
|
||||||
|
export default {
|
||||||
|
"name": "Taf ECO Chain Mainnet",
|
||||||
|
"chain": "Taf ECO Chain",
|
||||||
|
"icon": {
|
||||||
|
"url": "ipfs://bafkreigpxhu7glccsislhjqpl5fnsfmj2io4cy33blhky642uiuyojossy",
|
||||||
|
"width": 400,
|
||||||
|
"height": 400,
|
||||||
|
"format": "png"
|
||||||
|
},
|
||||||
|
"rpc": [
|
||||||
|
"https://taf-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||||
|
"https://mainnet.tafchain.com/v1"
|
||||||
|
],
|
||||||
|
"faucets": [],
|
||||||
|
"nativeCurrency": {
|
||||||
|
"name": "Taf ECO Chain Mainnet",
|
||||||
|
"symbol": "TAFECO",
|
||||||
|
"decimals": 18
|
||||||
|
},
|
||||||
|
"infoURL": "https://www.tafchain.com",
|
||||||
|
"shortName": "TAFECO",
|
||||||
|
"chainId": 224168,
|
||||||
|
"networkId": 224168,
|
||||||
|
"explorers": [
|
||||||
|
{
|
||||||
|
"name": "Taf ECO Chain Mainnet",
|
||||||
|
"url": "https://ecoscan.tafchain.com",
|
||||||
|
"standard": "EIP3091"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testnet": false,
|
||||||
|
"slug": "taf-eco-chain"
|
||||||
|
} as const satisfies Chain;
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
import type { Chain } from "../src/types";
|
||||||
|
export default {
|
||||||
|
"name": "WEMIX Kanvas Sepolia",
|
||||||
|
"title": "WEMIX Kanvas Testnet Sepolia",
|
||||||
|
"chainId": 2357,
|
||||||
|
"shortName": "kanvas-aqua",
|
||||||
|
"chain": "ETH",
|
||||||
|
"networkId": 2357,
|
||||||
|
"nativeCurrency": {
|
||||||
|
"name": "Sepolia Ether",
|
||||||
|
"symbol": "ETH",
|
||||||
|
"decimals": 18
|
||||||
|
},
|
||||||
|
"rpc": [
|
||||||
|
"https://wemix-kanvas-sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||||
|
"https://api.aqua.wemixkanvas.io"
|
||||||
|
],
|
||||||
|
"faucets": [],
|
||||||
|
"infoURL": "https://wemixkanvas.io",
|
||||||
|
"icon": {
|
||||||
|
"url": "ipfs://QmVcVxsHsVg5BMii3EJ1MUSnLBZkQicpjmXjSmW66bCEUF",
|
||||||
|
"width": 320,
|
||||||
|
"height": 320,
|
||||||
|
"format": "svg"
|
||||||
|
},
|
||||||
|
"explorers": [
|
||||||
|
{
|
||||||
|
"name": "blockscout",
|
||||||
|
"url": "https://blockscout.aqua.wemixkanvas.io",
|
||||||
|
"icon": {
|
||||||
|
"url": "ipfs://QmVcVxsHsVg5BMii3EJ1MUSnLBZkQicpjmXjSmW66bCEUF",
|
||||||
|
"width": 320,
|
||||||
|
"height": 320,
|
||||||
|
"format": "svg"
|
||||||
|
},
|
||||||
|
"standard": "EIP3091"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"parent": {
|
||||||
|
"type": "L2",
|
||||||
|
"chain": "eip155-11155111",
|
||||||
|
"bridges": [
|
||||||
|
{
|
||||||
|
"url": "https://wemixkanvas.io/bridge"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"testnet": true,
|
||||||
|
"slug": "wemix-kanvas-sepolia"
|
||||||
|
} as const satisfies Chain;
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
import type { Chain } from "../src/types";
|
||||||
|
export default {
|
||||||
|
"name": "Acria IntelliChain",
|
||||||
|
"chain": "AIC",
|
||||||
|
"rpc": [
|
||||||
|
"https://acria-intellichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||||
|
"https://aic.acria.ai"
|
||||||
|
],
|
||||||
|
"faucets": [],
|
||||||
|
"nativeCurrency": {
|
||||||
|
"name": "ACRIA",
|
||||||
|
"symbol": "ACRIA",
|
||||||
|
"decimals": 18
|
||||||
|
},
|
||||||
|
"features": [
|
||||||
|
{
|
||||||
|
"name": "EIP155"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "EIP1559"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"infoURL": "https://acria.ai",
|
||||||
|
"shortName": "aic",
|
||||||
|
"chainId": 47,
|
||||||
|
"networkId": 47,
|
||||||
|
"explorers": [
|
||||||
|
{
|
||||||
|
"name": "Acria IntelliChain-Explorer",
|
||||||
|
"url": "https://explorer.acria.ai",
|
||||||
|
"standard": "EIP3091"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testnet": false,
|
||||||
|
"slug": "acria-intellichain"
|
||||||
|
} as const satisfies Chain;
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
import type { Chain } from "../src/types";
|
|
||||||
export default {
|
|
||||||
"name": "Canto Testnet",
|
|
||||||
"chain": "Canto Tesnet",
|
|
||||||
"rpc": [
|
|
||||||
"https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
|
||||||
"https://eth.plexnode.wtf/"
|
|
||||||
],
|
|
||||||
"faucets": [],
|
|
||||||
"nativeCurrency": {
|
|
||||||
"name": "Canto",
|
|
||||||
"symbol": "CANTO",
|
|
||||||
"decimals": 18
|
|
||||||
},
|
|
||||||
"infoURL": "https://canto.io",
|
|
||||||
"shortName": "tcanto",
|
|
||||||
"chainId": 740,
|
|
||||||
"networkId": 740,
|
|
||||||
"explorers": [
|
|
||||||
{
|
|
||||||
"name": "Canto Tesnet Explorer (Neobase)",
|
|
||||||
"url": "https://testnet-explorer.canto.neobase.one",
|
|
||||||
"standard": "none"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"testnet": true,
|
|
||||||
"slug": "canto-testnet"
|
|
||||||
} as const satisfies Chain;
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import type { Chain } from "../src/types";
|
||||||
|
export default {
|
||||||
|
"name": "Canto Tesnet",
|
||||||
|
"chain": "Canto",
|
||||||
|
"rpc": [
|
||||||
|
"https://canto-tesnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||||
|
"https://testnet-archive.plexnode.wtf"
|
||||||
|
],
|
||||||
|
"faucets": [],
|
||||||
|
"nativeCurrency": {
|
||||||
|
"name": "Testnet Canto",
|
||||||
|
"symbol": "CANTO",
|
||||||
|
"decimals": 18
|
||||||
|
},
|
||||||
|
"infoURL": "https://canto.io",
|
||||||
|
"shortName": "TestnetCanto",
|
||||||
|
"chainId": 7701,
|
||||||
|
"networkId": 7701,
|
||||||
|
"explorers": [
|
||||||
|
{
|
||||||
|
"name": "Canto Testnet EVM Explorer (Blockscout)",
|
||||||
|
"url": "https://testnet.tuber.build",
|
||||||
|
"standard": "none"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testnet": true,
|
||||||
|
"slug": "canto-tesnet"
|
||||||
|
} as const satisfies Chain;
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
import type { Chain } from "../src/types";
|
||||||
|
export default {
|
||||||
|
"name": "BeOne Chain Mainnet",
|
||||||
|
"chain": "BOC",
|
||||||
|
"icon": {
|
||||||
|
"url": "ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",
|
||||||
|
"width": 500,
|
||||||
|
"height": 500,
|
||||||
|
"format": "png"
|
||||||
|
},
|
||||||
|
"rpc": [
|
||||||
|
"https://beone-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||||
|
"https://dataseed1.beonechain.com",
|
||||||
|
"https://dataseed2.beonechain.com",
|
||||||
|
"https://dataseed-us1.beonechain.com",
|
||||||
|
"https://dataseed-us2.beonechain.com",
|
||||||
|
"https://dataseed-uk1.beonechain.com",
|
||||||
|
"https://dataseed-uk2.beonechain.com"
|
||||||
|
],
|
||||||
|
"faucets": [],
|
||||||
|
"nativeCurrency": {
|
||||||
|
"name": "BeOne Chain Mainnet",
|
||||||
|
"symbol": "BOC",
|
||||||
|
"decimals": 18
|
||||||
|
},
|
||||||
|
"infoURL": "https://beonechain.com",
|
||||||
|
"shortName": "BOC",
|
||||||
|
"chainId": 818,
|
||||||
|
"networkId": 818,
|
||||||
|
"slip44": 8181,
|
||||||
|
"explorers": [
|
||||||
|
{
|
||||||
|
"name": "BeOne Chain Mainnet",
|
||||||
|
"url": "https://beonescan.com",
|
||||||
|
"standard": "EIP3091"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testnet": false,
|
||||||
|
"slug": "beone-chain"
|
||||||
|
} as const satisfies Chain;
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
import type { Chain } from "../src/types";
|
||||||
|
export default {
|
||||||
|
"name": "DecentraBone Layer1 Testnet",
|
||||||
|
"chain": "DBONE",
|
||||||
|
"rpc": [
|
||||||
|
"https://decentrabone-layer1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||||
|
"https://layer1test.decentrabone.com"
|
||||||
|
],
|
||||||
|
"faucets": [],
|
||||||
|
"nativeCurrency": {
|
||||||
|
"name": "DecentraBone",
|
||||||
|
"symbol": "DBONE",
|
||||||
|
"decimals": 18
|
||||||
|
},
|
||||||
|
"infoURL": "https://decentrabone.com",
|
||||||
|
"shortName": "DBONE",
|
||||||
|
"chainId": 910,
|
||||||
|
"networkId": 910,
|
||||||
|
"testnet": true,
|
||||||
|
"slug": "decentrabone-layer1-testnet"
|
||||||
|
} as const satisfies Chain;
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/chains",
|
"name": "@thirdweb-dev/chains",
|
||||||
"version": "0.1.10",
|
"version": "0.1.11",
|
||||||
"main": "dist/thirdweb-dev-chains.cjs.js",
|
"main": "dist/thirdweb-dev-chains.cjs.js",
|
||||||
"module": "dist/thirdweb-dev-chains.esm.js",
|
"module": "dist/thirdweb-dev-chains.esm.js",
|
||||||
"browser": {
|
"browser": {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,5 +1,30 @@
|
|||||||
# thirdweb
|
# thirdweb
|
||||||
|
|
||||||
|
## 0.10.10
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [[`b3d57949`](https://github.com/thirdweb-dev/js/commit/b3d57949bd047831fda7e600b4872200340903b5), [`602d8cbc`](https://github.com/thirdweb-dev/js/commit/602d8cbcfaa7c1e117c01f842f89508f7333fcfe)]:
|
||||||
|
- @thirdweb-dev/sdk@3.10.9
|
||||||
|
|
||||||
|
## 0.10.9
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#867](https://github.com/thirdweb-dev/js/pull/867) [`3bb846ad`](https://github.com/thirdweb-dev/js/commit/3bb846adf0484e8b7dc7dfeba9f9c0ee26f4ef35) Thanks [@adam-maj](https://github.com/adam-maj)! - Generate auto detects smart contracts in project
|
||||||
|
|
||||||
|
- Updated dependencies [[`1547d76c`](https://github.com/thirdweb-dev/js/commit/1547d76cce52265076c347599014f578c1de6152), [`1b8f812f`](https://github.com/thirdweb-dev/js/commit/1b8f812fb8c910d91fb7535d6446a0b6fc6b2310), [`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d)]:
|
||||||
|
- @thirdweb-dev/sdk@3.10.8
|
||||||
|
- @thirdweb-dev/chains@0.1.11
|
||||||
|
|
||||||
|
## 0.10.8
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#857](https://github.com/thirdweb-dev/js/pull/857) [`3a0e904f`](https://github.com/thirdweb-dev/js/commit/3a0e904fc2bae5134ba3bf65ba666c3360e4fced) Thanks [@adam-maj](https://github.com/adam-maj)! - Add skip intro flag to generate command and fix ABI cache regex
|
||||||
|
|
||||||
|
- [#860](https://github.com/thirdweb-dev/js/pull/860) [`058e4357`](https://github.com/thirdweb-dev/js/commit/058e4357c783911a6cab6b38c6eebbb3277dfe93) Thanks [@iketw](https://github.com/iketw)! - [CLI] Only checks ruby version and attempts to run pod install if the platform is macOS
|
||||||
|
|
||||||
## 0.10.7
|
## 0.10.7
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export const CREATE_MESSAGES = {
|
|||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const GENERATE_MESSAGES = {
|
export const GENERATE_MESSAGES = {
|
||||||
deployerAddress: "What is your deployer wallet address?",
|
chains: "What chains are you using in your project?",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const ERROR_MESSAGES = {
|
export const ERROR_MESSAGES = {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "thirdweb",
|
"name": "thirdweb",
|
||||||
"main": "dist/cli/index.js",
|
"main": "dist/cli/index.js",
|
||||||
"version": "0.10.7",
|
"version": "0.10.10",
|
||||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
|
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
|
||||||
"author": "thirdweb eng <[email protected]>",
|
"author": "thirdweb eng <[email protected]>",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
@@ -34,6 +34,7 @@
|
|||||||
"typescript": "^4.7.4"
|
"typescript": "^4.7.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@thirdweb-dev/chains": "workspace:*",
|
||||||
"@thirdweb-dev/sdk": "workspace:*",
|
"@thirdweb-dev/sdk": "workspace:*",
|
||||||
"@thirdweb-dev/storage": "workspace:*",
|
"@thirdweb-dev/storage": "workspace:*",
|
||||||
"async-retry": "^1.3.3",
|
"async-retry": "^1.3.3",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { logger } from "../core/helpers/logger";
|
import { logger } from "../core/helpers/logger";
|
||||||
import { existsSync, readdirSync, statSync } from "fs";
|
import { existsSync, readFileSync, readdirSync, statSync } from "fs";
|
||||||
import { basename, join } from "path";
|
import { basename, join } from "path";
|
||||||
|
|
||||||
export function findFiles(
|
export function findFiles(
|
||||||
@@ -38,3 +38,38 @@ export function findFiles(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function findMatches(
|
||||||
|
startPath: string,
|
||||||
|
filter: RegExp,
|
||||||
|
results: string[],
|
||||||
|
) {
|
||||||
|
if (!existsSync(startPath)) {
|
||||||
|
console.log("no dir ", startPath);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const files = readdirSync(startPath);
|
||||||
|
for (let i = 0; i < files.length; i++) {
|
||||||
|
const filename = join(startPath, files[i]);
|
||||||
|
const stat = statSync(filename);
|
||||||
|
|
||||||
|
if (stat.isDirectory() && basename(filename) === "node_modules") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (stat.isDirectory() && filename.startsWith(".")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (stat.isDirectory()) {
|
||||||
|
findMatches(filename, filter, results);
|
||||||
|
} else {
|
||||||
|
const fileContents = readFileSync(filename, "utf-8");
|
||||||
|
const matches = fileContents.match(filter);
|
||||||
|
if (matches) {
|
||||||
|
results.push(...matches);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -62,6 +62,24 @@ export async function createApp({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isReactNative =
|
||||||
|
template?.includes("react-native") || framework === "react-native";
|
||||||
|
function isReactNativeCLI() {
|
||||||
|
return (
|
||||||
|
isReactNative &&
|
||||||
|
(language === "typescript" || (template && !template.includes("expo")))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function isMacOS() {
|
||||||
|
return process.platform === "darwin";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isReactNativeCLI() && isMacOS()) {
|
||||||
|
// fail early if the user doesn't have the right version of Ruby installed on macOS
|
||||||
|
await checkRubyVersion();
|
||||||
|
}
|
||||||
|
|
||||||
const root = path.resolve(appPath);
|
const root = path.resolve(appPath);
|
||||||
|
|
||||||
if (!(await isWriteable(path.dirname(root)))) {
|
if (!(await isWriteable(path.dirname(root)))) {
|
||||||
@@ -98,20 +116,6 @@ export async function createApp({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const isReactNative =
|
|
||||||
template?.includes("react-native") || framework === "react-native";
|
|
||||||
function isReactNativeCLI() {
|
|
||||||
return (
|
|
||||||
isReactNative &&
|
|
||||||
(language === "typescript" || (template && !template.includes("expo")))
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isReactNativeCLI()) {
|
|
||||||
// fail early if the user doesn't have the right version of Ruby installed
|
|
||||||
await checkRubyVersion();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (template) {
|
if (template) {
|
||||||
/**
|
/**
|
||||||
* If a template repository is provided, clone it.
|
* If a template repository is provided, clone it.
|
||||||
@@ -199,7 +203,7 @@ export async function createApp({
|
|||||||
console.log();
|
console.log();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isReactNativeCLI()) {
|
if (isReactNativeCLI() && isMacOS()) {
|
||||||
await podInstall(root, isOnline);
|
await podInstall(root, isOnline);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,54 +3,101 @@ import {
|
|||||||
DeployedContract,
|
DeployedContract,
|
||||||
fetchContractMetadataFromAddress,
|
fetchContractMetadataFromAddress,
|
||||||
getChainProvider,
|
getChainProvider,
|
||||||
ThirdwebSDK,
|
|
||||||
} from "@thirdweb-dev/sdk";
|
} from "@thirdweb-dev/sdk";
|
||||||
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
||||||
|
import { spinner, info } from "../core/helpers/logger";
|
||||||
|
import { allChains } from "@thirdweb-dev/chains";
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import prompts from "prompts";
|
import prompts from "prompts";
|
||||||
|
import { findMatches } from "../common/file-helper";
|
||||||
type GenerateOptions = {
|
import ora from "ora";
|
||||||
path: string;
|
import { GenerateOptions, ThirdwebConfig } from "./types";
|
||||||
deployer?: string;
|
import { CHAIN_OPTIONS, getContractsForAddresses } from "./utils";
|
||||||
};
|
|
||||||
|
|
||||||
export async function generate(options: GenerateOptions) {
|
export async function generate(options: GenerateOptions) {
|
||||||
let projectPath: string = options.path?.replace(/\/$/, "") || ".";
|
let projectPath: string = options.path?.replace(/\/$/, "") || ".";
|
||||||
|
|
||||||
let contracts: DeployedContract[] = [];
|
let contracts: DeployedContract[] = [];
|
||||||
|
|
||||||
|
// Find all addresses in this project
|
||||||
|
let addresses: string[] = [];
|
||||||
|
findMatches(projectPath, /(0x[a-fA-F0-9]{40})/g, addresses);
|
||||||
|
|
||||||
|
// We check if there's a thirdweb.json config file present
|
||||||
if (fs.existsSync(`${projectPath}/thirdweb.json`)) {
|
if (fs.existsSync(`${projectPath}/thirdweb.json`)) {
|
||||||
// First we check if there's a thirdweb.json config file present
|
// Read the current thirdweb config file
|
||||||
const thirdwebConfig = JSON.parse(
|
const thirdwebConfig: ThirdwebConfig = JSON.parse(
|
||||||
fs.readFileSync(`${projectPath}/thirdweb.json`, "utf-8"),
|
fs.readFileSync(`${projectPath}/thirdweb.json`, "utf-8"),
|
||||||
);
|
);
|
||||||
contracts = thirdwebConfig.contracts as DeployedContract[];
|
|
||||||
} else {
|
|
||||||
// Otherwise, we get contracts by deployer address (and generate a thirdweb.json)
|
|
||||||
let deployerAddress: string;
|
|
||||||
if (options.deployer) {
|
|
||||||
deployerAddress = options.deployer;
|
|
||||||
} else {
|
|
||||||
const res = await prompts({
|
|
||||||
type: "text",
|
|
||||||
name: "deployer",
|
|
||||||
message: GENERATE_MESSAGES.deployerAddress,
|
|
||||||
});
|
|
||||||
|
|
||||||
deployerAddress = res.deployer.trim();
|
// Check if there are any addresses in the project that aren't yet in the config
|
||||||
}
|
const configAddresses = thirdwebConfig.contracts.map((contract) =>
|
||||||
|
contract.address.toLowerCase(),
|
||||||
const sdk = new ThirdwebSDK("polygon");
|
);
|
||||||
contracts = await sdk.multiChainRegistry.getContractAddresses(
|
const newAddresses = addresses.filter(
|
||||||
deployerAddress,
|
(address) => !configAddresses.includes(address.toLowerCase()),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Initialize contracts to the contracts in thirdweb.json file
|
||||||
|
contracts = [...thirdwebConfig.contracts];
|
||||||
|
|
||||||
|
// If we have new contracts that aren't yet stored in config
|
||||||
|
// get full contract objects
|
||||||
|
if (newAddresses.length) {
|
||||||
|
const chainIds = thirdwebConfig.chainIds;
|
||||||
|
await getContractsForAddresses(newAddresses, chainIds, contracts);
|
||||||
|
|
||||||
|
if (contracts.length > thirdwebConfig.contracts.length) {
|
||||||
|
fs.writeFileSync(
|
||||||
|
`${projectPath}/thirdweb.json`,
|
||||||
|
JSON.stringify({ chainIds, contracts }, undefined, 2),
|
||||||
|
);
|
||||||
|
|
||||||
|
const numberOfNewContracts =
|
||||||
|
contracts.length - thirdwebConfig.contracts.length;
|
||||||
|
info(
|
||||||
|
`Updated thirdweb.json with ${numberOfNewContracts} new contract${
|
||||||
|
numberOfNewContracts === 1 ? "" : "s"
|
||||||
|
}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// If there is no configuration file present, we need to generate one...
|
||||||
|
|
||||||
|
// First we ask the user what chains are used in their project
|
||||||
|
const res = await prompts({
|
||||||
|
type: "autocompleteMultiselect",
|
||||||
|
name: "chains",
|
||||||
|
message: GENERATE_MESSAGES.chains,
|
||||||
|
choices: CHAIN_OPTIONS,
|
||||||
|
});
|
||||||
|
|
||||||
|
const chainIds: number[] = res.chains.map(
|
||||||
|
(index: number) => allChains[index].chainId,
|
||||||
|
);
|
||||||
|
|
||||||
|
// Then we check for the chainId of each address
|
||||||
|
await getContractsForAddresses(addresses, chainIds, contracts);
|
||||||
|
|
||||||
|
// Create a thirdweb.json file with the specific contracts and chain ids
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
`${projectPath}/thirdweb.json`,
|
`${projectPath}/thirdweb.json`,
|
||||||
JSON.stringify({ contracts }, undefined, 2),
|
JSON.stringify({ chainIds, contracts }, undefined, 2),
|
||||||
|
);
|
||||||
|
|
||||||
|
info(
|
||||||
|
`Created a thirdweb.json file with configuration for ${
|
||||||
|
contracts.length
|
||||||
|
} contract${
|
||||||
|
contracts.length === 1 ? "" : "s"
|
||||||
|
} detected in your project.\n\n - You can also update this configuration manually by editing the file.\n`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attempt to download the ABI for the contract
|
// Attempt to download the ABI for each contract
|
||||||
|
const abiSpinner = spinner(
|
||||||
|
`Downloading ABIs for contracts configured in 'thirdweb.json'`,
|
||||||
|
);
|
||||||
const storage = new ThirdwebStorage();
|
const storage = new ThirdwebStorage();
|
||||||
const metadata: {
|
const metadata: {
|
||||||
address: string;
|
address: string;
|
||||||
@@ -97,7 +144,7 @@ export async function generate(options: GenerateOptions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const file = fs.readFileSync(filePath, "utf-8");
|
const file = fs.readFileSync(filePath, "utf-8");
|
||||||
const abiRegex = /GENERATED_ABI = \{.*\}/s;
|
const abiRegex = /GENERATED_ABI = \{.*\};\n\n/s;
|
||||||
const contractAbis = metadata.reduce((acc, contract) => {
|
const contractAbis = metadata.reduce((acc, contract) => {
|
||||||
acc[contract.address] = contract.metadata.abi;
|
acc[contract.address] = contract.metadata.abi;
|
||||||
return acc;
|
return acc;
|
||||||
@@ -105,8 +152,9 @@ export async function generate(options: GenerateOptions) {
|
|||||||
const updatedAbis = JSON.stringify(contractAbis, null, 2);
|
const updatedAbis = JSON.stringify(contractAbis, null, 2);
|
||||||
const updatedFile = file.replace(
|
const updatedFile = file.replace(
|
||||||
abiRegex,
|
abiRegex,
|
||||||
`GENERATED_ABI = ${updatedAbis}`,
|
`GENERATED_ABI = ${updatedAbis};\n\n`,
|
||||||
);
|
);
|
||||||
|
|
||||||
fs.writeFileSync(filePath, updatedFile);
|
fs.writeFileSync(filePath, updatedFile);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -128,6 +176,12 @@ export async function generate(options: GenerateOptions) {
|
|||||||
fs.writeFileSync(typeFilePath, updatedFile);
|
fs.writeFileSync(typeFilePath, updatedFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
abiSpinner.succeed(
|
||||||
|
`Downloaded and cached ABIs for ${contracts.length} smart contract${
|
||||||
|
contracts.length === 1 ? "" : "s"
|
||||||
|
}`,
|
||||||
|
);
|
||||||
|
|
||||||
// Add generate command to postinstall
|
// Add generate command to postinstall
|
||||||
const packageJsonPath = `${projectPath}/package.json`;
|
const packageJsonPath = `${projectPath}/package.json`;
|
||||||
if (!fs.existsSync(packageJsonPath)) {
|
if (!fs.existsSync(packageJsonPath)) {
|
||||||
@@ -141,8 +195,8 @@ export async function generate(options: GenerateOptions) {
|
|||||||
|
|
||||||
const postinstall = packageJson.scripts?.postinstall
|
const postinstall = packageJson.scripts?.postinstall
|
||||||
? packageJson.scripts.postinstall +
|
? packageJson.scripts.postinstall +
|
||||||
` && npx thirdweb generate --skip-update-check`
|
` && export THIRDWEB_CLI_SKIP_INTRO=true && npx thirdweb generate --skip-update-check`
|
||||||
: `npx thirdweb generate --skip-update-check`;
|
: `export THIRDWEB_CLI_SKIP_INTRO=true && npx thirdweb generate --skip-update-check`;
|
||||||
|
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
packageJsonPath,
|
packageJsonPath,
|
||||||
@@ -158,4 +212,8 @@ export async function generate(options: GenerateOptions) {
|
|||||||
2,
|
2,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ora(
|
||||||
|
"Added 'npx thirdweb generate' to postinstall in package.json.\n\n - This is necessary to use 'thirdweb generate' in production.\n",
|
||||||
|
).info();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
import { DeployedContract } from "@thirdweb-dev/sdk";
|
||||||
|
|
||||||
|
export type ThirdwebConfig = {
|
||||||
|
chainIds: number[];
|
||||||
|
contracts: DeployedContract[];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GenerateOptions = {
|
||||||
|
path: string;
|
||||||
|
deployer?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ContractChainPrompt = {
|
||||||
|
address: string;
|
||||||
|
chains: {
|
||||||
|
slug: string;
|
||||||
|
chainId: number;
|
||||||
|
}[];
|
||||||
|
};
|
||||||
@@ -0,0 +1,87 @@
|
|||||||
|
import { DeployedContract, getChainProvider } from "@thirdweb-dev/sdk";
|
||||||
|
import prompts from "prompts";
|
||||||
|
import { ContractChainPrompt } from "./types";
|
||||||
|
import { allChains } from "@thirdweb-dev/chains";
|
||||||
|
|
||||||
|
export const CHAIN_OPTIONS = allChains.map((chain) => ({ title: chain.slug }));
|
||||||
|
|
||||||
|
export async function getContractsForAddresses(
|
||||||
|
addresses: string[],
|
||||||
|
chainIds: number[],
|
||||||
|
contracts: DeployedContract[],
|
||||||
|
) {
|
||||||
|
let contractChainPrompts: ContractChainPrompt[] = [];
|
||||||
|
|
||||||
|
await Promise.all(
|
||||||
|
addresses.map(async (address) => {
|
||||||
|
// Check which chainIds of the provided chains have a contract at this address
|
||||||
|
let chainIdsWithContract: number[] = [];
|
||||||
|
|
||||||
|
await Promise.all(
|
||||||
|
chainIds.map(async (chainId) => {
|
||||||
|
// Handles cacheing of provider by chain
|
||||||
|
const provider = getChainProvider(chainId, {});
|
||||||
|
|
||||||
|
try {
|
||||||
|
const code = await provider.getCode(address);
|
||||||
|
|
||||||
|
if (!code || code === "0x") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
chainIdsWithContract.push(chainId);
|
||||||
|
} catch {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
// If no chainId has this contract, we assume it's an EOA and move on
|
||||||
|
if (!chainIdsWithContract.length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If only one chain has this contract address, add it to our contracts list
|
||||||
|
if (chainIdsWithContract.length === 1) {
|
||||||
|
contracts.push({
|
||||||
|
address,
|
||||||
|
chainId: chainIdsWithContract[0],
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Otherwise, add our contract to the list of contracts
|
||||||
|
// where we need to prompt the user to select the chain
|
||||||
|
contractChainPrompts.push({
|
||||||
|
address,
|
||||||
|
chains: chainIdsWithContract.map((chainId) => ({
|
||||||
|
slug: allChains[chainId].slug,
|
||||||
|
chainId,
|
||||||
|
})),
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
// TODO: Long term, smart contracts in the generated-abis cache should be cached by
|
||||||
|
// both smart contract and chain id because people may want to use the same contract address
|
||||||
|
// on different chains
|
||||||
|
|
||||||
|
// For all addresses that have smart contracts deployed on multiple selected chains
|
||||||
|
// allow the user to specify which chain they want to use for their smart contract
|
||||||
|
for (const prompt of contractChainPrompts) {
|
||||||
|
const res = await prompts({
|
||||||
|
type: "select",
|
||||||
|
name: "chainId",
|
||||||
|
message: `What chain is smart contract '${prompt.address}' on?`,
|
||||||
|
choices: prompt.chains.map((chain) => ({
|
||||||
|
title: chain.slug,
|
||||||
|
value: chain.chainId,
|
||||||
|
})),
|
||||||
|
});
|
||||||
|
|
||||||
|
contracts.push({
|
||||||
|
address: prompt.address,
|
||||||
|
chainId: res.chainId,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,25 @@
|
|||||||
# @thirdweb-dev/react-core
|
# @thirdweb-dev/react-core
|
||||||
|
|
||||||
|
## 3.11.6
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [[`b3d57949`](https://github.com/thirdweb-dev/js/commit/b3d57949bd047831fda7e600b4872200340903b5), [`602d8cbc`](https://github.com/thirdweb-dev/js/commit/602d8cbcfaa7c1e117c01f842f89508f7333fcfe)]:
|
||||||
|
- @thirdweb-dev/sdk@3.10.9
|
||||||
|
|
||||||
|
## 3.11.5
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#870](https://github.com/thirdweb-dev/js/pull/870) [`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d) Thanks [@jnsdls](https://github.com/jnsdls)! - fix crash during SSR when "window" is undefined
|
||||||
|
|
||||||
|
- [#862](https://github.com/thirdweb-dev/js/pull/862) [`b5648aee`](https://github.com/thirdweb-dev/js/commit/b5648aee83b299d07a8eed7773bd32bcceef9657) Thanks [@nachoiacovino](https://github.com/nachoiacovino)! - Make tokenId optional one useNFTBalance
|
||||||
|
|
||||||
|
- Updated dependencies [[`1547d76c`](https://github.com/thirdweb-dev/js/commit/1547d76cce52265076c347599014f578c1de6152), [`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d), [`1b8f812f`](https://github.com/thirdweb-dev/js/commit/1b8f812fb8c910d91fb7535d6446a0b6fc6b2310), [`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d)]:
|
||||||
|
- @thirdweb-dev/sdk@3.10.8
|
||||||
|
- @thirdweb-dev/wallets@0.2.14
|
||||||
|
- @thirdweb-dev/chains@0.1.11
|
||||||
|
|
||||||
## 3.11.4
|
## 3.11.4
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/react-core",
|
"name": "@thirdweb-dev/react-core",
|
||||||
"version": "3.11.4",
|
"version": "3.11.6",
|
||||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-core",
|
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-core",
|
||||||
"author": "thirdweb eng <[email protected]>",
|
"author": "thirdweb eng <[email protected]>",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|||||||
@@ -61,12 +61,12 @@ export function useNetwork(): [NetworkMetadata, SwitchNetwork | undefined] {
|
|||||||
const supportedChains = useSupportedChains();
|
const supportedChains = useSupportedChains();
|
||||||
const wallet = useWallet();
|
const wallet = useWallet();
|
||||||
|
|
||||||
const isMetamaskInstalled = assertWindowEthereum(window)
|
const isMetamaskInstalled = assertWindowEthereum(globalThis.window)
|
||||||
? window.ethereum.isMetaMask
|
? globalThis.window.ethereum.isMetaMask
|
||||||
: false;
|
: false;
|
||||||
|
|
||||||
const isCoinbaseInstalled = assertWindowEthereum(window)
|
const isCoinbaseInstalled = assertWindowEthereum(globalThis.window)
|
||||||
? window.ethereum.isCoinbaseWallet
|
? globalThis.window.ethereum.isCoinbaseWallet
|
||||||
: false;
|
: false;
|
||||||
|
|
||||||
// switch not supported if connected to a mobile wallet
|
// switch not supported if connected to a mobile wallet
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ export function useOwnedNFTs<TContract extends NFTContract>(
|
|||||||
export function useNFTBalance(
|
export function useNFTBalance(
|
||||||
contract: RequiredParam<NFTContract>,
|
contract: RequiredParam<NFTContract>,
|
||||||
ownerWalletAddress: RequiredParam<WalletAddress>,
|
ownerWalletAddress: RequiredParam<WalletAddress>,
|
||||||
tokenId: RequiredParam<BigNumberish>,
|
tokenId?: RequiredParam<BigNumberish>,
|
||||||
) {
|
) {
|
||||||
const contractAddress = contract?.getAddress();
|
const contractAddress = contract?.getAddress();
|
||||||
const { erc721, erc1155 } = getErcs(contract);
|
const { erc721, erc1155 } = getErcs(contract);
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
# @thirdweb-dev/react-native-compat
|
# @thirdweb-dev/react-native-compat
|
||||||
|
|
||||||
|
## 0.2.6
|
||||||
|
|
||||||
|
## 0.2.5
|
||||||
|
|
||||||
## 0.2.4
|
## 0.2.4
|
||||||
|
|
||||||
## 0.2.3
|
## 0.2.3
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/react-native-compat",
|
"name": "@thirdweb-dev/react-native-compat",
|
||||||
"description": "Shims for Thirdweb in React Native Projects",
|
"description": "Shims for Thirdweb in React Native Projects",
|
||||||
"version": "0.2.4",
|
"version": "0.2.6",
|
||||||
"author": "thirdweb eng <[email protected]>",
|
"author": "thirdweb eng <[email protected]>",
|
||||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native-compat",
|
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native-compat",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|||||||
@@ -1,5 +1,23 @@
|
|||||||
# @thirdweb-dev/react-native
|
# @thirdweb-dev/react-native
|
||||||
|
|
||||||
|
## 0.2.6
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [[`b3d57949`](https://github.com/thirdweb-dev/js/commit/b3d57949bd047831fda7e600b4872200340903b5), [`602d8cbc`](https://github.com/thirdweb-dev/js/commit/602d8cbcfaa7c1e117c01f842f89508f7333fcfe)]:
|
||||||
|
- @thirdweb-dev/sdk@3.10.9
|
||||||
|
- @thirdweb-dev/react-core@3.11.6
|
||||||
|
|
||||||
|
## 0.2.5
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [[`1547d76c`](https://github.com/thirdweb-dev/js/commit/1547d76cce52265076c347599014f578c1de6152), [`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d), [`b5648aee`](https://github.com/thirdweb-dev/js/commit/b5648aee83b299d07a8eed7773bd32bcceef9657), [`1b8f812f`](https://github.com/thirdweb-dev/js/commit/1b8f812fb8c910d91fb7535d6446a0b6fc6b2310), [`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d)]:
|
||||||
|
- @thirdweb-dev/sdk@3.10.8
|
||||||
|
- @thirdweb-dev/react-core@3.11.5
|
||||||
|
- @thirdweb-dev/wallets@0.2.14
|
||||||
|
- @thirdweb-dev/chains@0.1.11
|
||||||
|
|
||||||
## 0.2.4
|
## 0.2.4
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/react-native",
|
"name": "@thirdweb-dev/react-native",
|
||||||
"version": "0.2.4",
|
"version": "0.2.6",
|
||||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native",
|
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native",
|
||||||
"author": "thirdweb eng <[email protected]>",
|
"author": "thirdweb eng <[email protected]>",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|||||||
@@ -1,5 +1,23 @@
|
|||||||
# @thirdweb-dev/react
|
# @thirdweb-dev/react
|
||||||
|
|
||||||
|
## 3.11.6
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [[`b3d57949`](https://github.com/thirdweb-dev/js/commit/b3d57949bd047831fda7e600b4872200340903b5), [`602d8cbc`](https://github.com/thirdweb-dev/js/commit/602d8cbcfaa7c1e117c01f842f89508f7333fcfe)]:
|
||||||
|
- @thirdweb-dev/sdk@3.10.9
|
||||||
|
- @thirdweb-dev/react-core@3.11.6
|
||||||
|
|
||||||
|
## 3.11.5
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [[`1547d76c`](https://github.com/thirdweb-dev/js/commit/1547d76cce52265076c347599014f578c1de6152), [`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d), [`b5648aee`](https://github.com/thirdweb-dev/js/commit/b5648aee83b299d07a8eed7773bd32bcceef9657), [`1b8f812f`](https://github.com/thirdweb-dev/js/commit/1b8f812fb8c910d91fb7535d6446a0b6fc6b2310), [`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d)]:
|
||||||
|
- @thirdweb-dev/sdk@3.10.8
|
||||||
|
- @thirdweb-dev/react-core@3.11.5
|
||||||
|
- @thirdweb-dev/wallets@0.2.14
|
||||||
|
- @thirdweb-dev/chains@0.1.11
|
||||||
|
|
||||||
## 3.11.4
|
## 3.11.4
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/react",
|
"name": "@thirdweb-dev/react",
|
||||||
"version": "3.11.4",
|
"version": "3.11.6",
|
||||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react",
|
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react",
|
||||||
"author": "thirdweb eng <[email protected]>",
|
"author": "thirdweb eng <[email protected]>",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export const ChainIcon: React.FC<{
|
|||||||
chain?: Chain;
|
chain?: Chain;
|
||||||
size: string;
|
size: string;
|
||||||
active?: boolean;
|
active?: boolean;
|
||||||
|
className?: string;
|
||||||
}> = (props) => {
|
}> = (props) => {
|
||||||
const url = props.chain?.icon?.url;
|
const url = props.chain?.icon?.url;
|
||||||
const src = url ? resolveIpfsUri(url) : defaultChainIcon;
|
const src = url ? resolveIpfsUri(url) : defaultChainIcon;
|
||||||
@@ -34,6 +35,7 @@ export const ChainIcon: React.FC<{
|
|||||||
alt=""
|
alt=""
|
||||||
width={props.size}
|
width={props.size}
|
||||||
height={props.size}
|
height={props.size}
|
||||||
|
className={props.className}
|
||||||
/>
|
/>
|
||||||
{props.active && <ActiveDot />}
|
{props.active && <ActiveDot />}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ export const Img: React.FC<{
|
|||||||
src: string;
|
src: string;
|
||||||
alt?: string;
|
alt?: string;
|
||||||
loading?: "eager" | "lazy";
|
loading?: "eager" | "lazy";
|
||||||
|
className?: string;
|
||||||
}> = (props) => {
|
}> = (props) => {
|
||||||
return (
|
return (
|
||||||
<img
|
<img
|
||||||
@@ -19,6 +20,7 @@ export const Img: React.FC<{
|
|||||||
height: props.height + "px",
|
height: props.height + "px",
|
||||||
width: props.width + "px",
|
width: props.width + "px",
|
||||||
}}
|
}}
|
||||||
|
className={props.className}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ import invariant from "tiny-invariant";
|
|||||||
|
|
||||||
type ActionFn = (contract: SmartContract) => any;
|
type ActionFn = (contract: SmartContract) => any;
|
||||||
|
|
||||||
|
const TW_WEB3BUTTON = "tw-web3button";
|
||||||
|
|
||||||
interface Web3ButtonProps<TActionFn extends ActionFn> {
|
interface Web3ButtonProps<TActionFn extends ActionFn> {
|
||||||
className?: string;
|
className?: string;
|
||||||
contractAddress: `0x${string}` | `${string}.eth` | string;
|
contractAddress: `0x${string}` | `${string}.eth` | string;
|
||||||
@@ -121,7 +123,12 @@ export const Web3Button = <TAction extends ActionFn>({
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (!address) {
|
if (!address) {
|
||||||
return <ConnectWallet theme={theme} />;
|
return (
|
||||||
|
<ConnectWallet
|
||||||
|
theme={theme}
|
||||||
|
className={`${className || ""} ${TW_WEB3BUTTON}--connect-wallet`}
|
||||||
|
/>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// let onClick = () => actionMutation.mutate();
|
// let onClick = () => actionMutation.mutate();
|
||||||
@@ -152,9 +159,11 @@ export const Web3Button = <TAction extends ActionFn>({
|
|||||||
<Button
|
<Button
|
||||||
variant="inverted"
|
variant="inverted"
|
||||||
type={type}
|
type={type}
|
||||||
className={className}
|
className={`${className || ""} ${TW_WEB3BUTTON}--switch-network`}
|
||||||
onClick={handleSwitchChain}
|
onClick={handleSwitchChain}
|
||||||
style={btnStyle}
|
style={btnStyle}
|
||||||
|
data-is-loading={confirmStatus === "waiting"}
|
||||||
|
data-theme={theme}
|
||||||
>
|
>
|
||||||
{confirmStatus === "waiting" ? (
|
{confirmStatus === "waiting" ? (
|
||||||
<Spinner size="sm" color={"inverted"} />
|
<Spinner size="sm" color={"inverted"} />
|
||||||
@@ -195,10 +204,11 @@ export const Web3Button = <TAction extends ActionFn>({
|
|||||||
<Button
|
<Button
|
||||||
variant="inverted"
|
variant="inverted"
|
||||||
type={type}
|
type={type}
|
||||||
className={className}
|
className={`${className || ""} ${TW_WEB3BUTTON}`}
|
||||||
disabled
|
disabled
|
||||||
onClick={handleSwitchChain}
|
|
||||||
style={btnStyle}
|
style={btnStyle}
|
||||||
|
data-is-loading
|
||||||
|
data-theme={theme}
|
||||||
>
|
>
|
||||||
<Spinner size="md" color={"inverted"} />
|
<Spinner size="md" color={"inverted"} />
|
||||||
</Button>
|
</Button>
|
||||||
@@ -211,10 +221,12 @@ export const Web3Button = <TAction extends ActionFn>({
|
|||||||
<Button
|
<Button
|
||||||
variant="inverted"
|
variant="inverted"
|
||||||
type={type}
|
type={type}
|
||||||
className={className}
|
className={`${className || ""} ${TW_WEB3BUTTON}`}
|
||||||
onClick={() => actionMutation.mutate()}
|
onClick={() => actionMutation.mutate()}
|
||||||
disabled={isDisabled}
|
disabled={isDisabled}
|
||||||
style={btnStyle}
|
style={btnStyle}
|
||||||
|
data-is-loading="false"
|
||||||
|
data-theme={theme}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ type ConnectWalletProps = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const TW_CONNECT_WALLET = "tw-connect-wallet";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A component that allows the user to connect their wallet.
|
* A component that allows the user to connect their wallet.
|
||||||
*
|
*
|
||||||
@@ -98,7 +100,12 @@ export const ConnectWallet: React.FC<ConnectWalletProps> = (props) => {
|
|||||||
|
|
||||||
{/* Sign In Button */}
|
{/* Sign In Button */}
|
||||||
{requiresSignIn && (
|
{requiresSignIn && (
|
||||||
<Button variant="inverted" onClick={signIn}>
|
<Button
|
||||||
|
variant="inverted"
|
||||||
|
onClick={signIn}
|
||||||
|
data-theme={theme}
|
||||||
|
className={`${TW_CONNECT_WALLET}--sign-in`}
|
||||||
|
>
|
||||||
<Flex
|
<Flex
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
gap="sm"
|
gap="sm"
|
||||||
@@ -120,7 +127,9 @@ export const ConnectWallet: React.FC<ConnectWalletProps> = (props) => {
|
|||||||
// connect wallet button
|
// connect wallet button
|
||||||
<AnimatedButton
|
<AnimatedButton
|
||||||
disabled={isLoading}
|
disabled={isLoading}
|
||||||
className={props.className}
|
className={`${props.className || ""} ${TW_CONNECT_WALLET}`}
|
||||||
|
data-theme={theme}
|
||||||
|
data-is-loading={isLoading}
|
||||||
variant="inverted"
|
variant="inverted"
|
||||||
type="button"
|
type="button"
|
||||||
style={{
|
style={{
|
||||||
@@ -139,6 +148,7 @@ export const ConnectWallet: React.FC<ConnectWalletProps> = (props) => {
|
|||||||
) : (
|
) : (
|
||||||
<ConnectedWalletDetails
|
<ConnectedWalletDetails
|
||||||
dropdownPosition={props.dropdownPosition}
|
dropdownPosition={props.dropdownPosition}
|
||||||
|
theme={theme}
|
||||||
onDisconnect={() => {
|
onDisconnect={() => {
|
||||||
if (authConfig?.authUrl) {
|
if (authConfig?.authUrl) {
|
||||||
logout();
|
logout();
|
||||||
|
|||||||
@@ -44,9 +44,12 @@ export type DropDownPosition = {
|
|||||||
align: "start" | "center" | "end";
|
align: "start" | "center" | "end";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const TW_CONNECTED_WALLET = "tw-connected-wallet";
|
||||||
|
|
||||||
export const ConnectedWalletDetails: React.FC<{
|
export const ConnectedWalletDetails: React.FC<{
|
||||||
dropdownPosition?: DropDownPosition;
|
dropdownPosition?: DropDownPosition;
|
||||||
onDisconnect: () => void;
|
onDisconnect: () => void;
|
||||||
|
theme: "dark" | "light";
|
||||||
}> = (props) => {
|
}> = (props) => {
|
||||||
const disconnect = useDisconnect();
|
const disconnect = useDisconnect();
|
||||||
const chains = useSupportedChains();
|
const chains = useSupportedChains();
|
||||||
@@ -101,12 +104,20 @@ export const ConnectedWalletDetails: React.FC<{
|
|||||||
}, [personalWallet]);
|
}, [personalWallet]);
|
||||||
|
|
||||||
const trigger = (
|
const trigger = (
|
||||||
<WalletInfoButton type="button">
|
<WalletInfoButton
|
||||||
<ChainIcon chain={chain} size={iconSize.lg} />
|
type="button"
|
||||||
|
className={TW_CONNECTED_WALLET}
|
||||||
|
data-theme={props.theme}
|
||||||
|
>
|
||||||
|
<ChainIcon
|
||||||
|
chain={chain}
|
||||||
|
size={iconSize.lg}
|
||||||
|
className={`${TW_CONNECTED_WALLET}__network-icon`}
|
||||||
|
/>
|
||||||
|
|
||||||
<ColFlex>
|
<ColFlex>
|
||||||
{!balanceQuery.isLoading ? (
|
{!balanceQuery.isLoading ? (
|
||||||
<WalletBalance>
|
<WalletBalance className={`${TW_CONNECTED_WALLET}__balance`}>
|
||||||
{balanceQuery.data?.displayValue.slice(0, 5)}{" "}
|
{balanceQuery.data?.displayValue.slice(0, 5)}{" "}
|
||||||
{balanceQuery.data?.symbol}
|
{balanceQuery.data?.symbol}
|
||||||
</WalletBalance>
|
</WalletBalance>
|
||||||
@@ -114,10 +125,17 @@ export const ConnectedWalletDetails: React.FC<{
|
|||||||
<Skeleton height={fontSize.sm} width="82px" />
|
<Skeleton height={fontSize.sm} width="82px" />
|
||||||
)}
|
)}
|
||||||
<Spacer y="xs" />
|
<Spacer y="xs" />
|
||||||
<WalletAddress>{shortenString(address || "")}</WalletAddress>
|
<WalletAddress className={`${TW_CONNECTED_WALLET}__address`}>
|
||||||
|
{shortenString(address || "")}
|
||||||
|
</WalletAddress>
|
||||||
</ColFlex>
|
</ColFlex>
|
||||||
|
|
||||||
<Img width={iconSize.lg} height={iconSize.lg} src={activeWalletIconURL} />
|
<Img
|
||||||
|
width={iconSize.lg}
|
||||||
|
height={iconSize.lg}
|
||||||
|
src={activeWalletIconURL}
|
||||||
|
className={`${TW_CONNECTED_WALLET}__wallet-icon`}
|
||||||
|
/>
|
||||||
</WalletInfoButton>
|
</WalletInfoButton>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,24 @@
|
|||||||
# @thirdweb-dev/sdk
|
# @thirdweb-dev/sdk
|
||||||
|
|
||||||
|
## 3.10.9
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#864](https://github.com/thirdweb-dev/js/pull/864) [`b3d57949`](https://github.com/thirdweb-dev/js/commit/b3d57949bd047831fda7e600b4872200340903b5) Thanks [@ciaranightingale](https://github.com/ciaranightingale)! - Remove necessity for LazyMint to detect any of the claim extensions
|
||||||
|
|
||||||
|
- [#869](https://github.com/thirdweb-dev/js/pull/869) [`602d8cbc`](https://github.com/thirdweb-dev/js/commit/602d8cbcfaa7c1e117c01f842f89508f7333fcfe) Thanks [@adam-maj](https://github.com/adam-maj)! - Add .prepare() syntax to tiered-drop
|
||||||
|
|
||||||
|
## 3.10.8
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#861](https://github.com/thirdweb-dev/js/pull/861) [`1547d76c`](https://github.com/thirdweb-dev/js/commit/1547d76cce52265076c347599014f578c1de6152) Thanks [@adam-maj](https://github.com/adam-maj)! - Add option to pass timestamps for dates
|
||||||
|
|
||||||
|
- [#863](https://github.com/thirdweb-dev/js/pull/863) [`1b8f812f`](https://github.com/thirdweb-dev/js/commit/1b8f812fb8c910d91fb7535d6446a0b6fc6b2310) Thanks [@ciaranightingale](https://github.com/ciaranightingale)! - Update Solidity SDK detected extension portal links
|
||||||
|
|
||||||
|
- Updated dependencies [[`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d)]:
|
||||||
|
- @thirdweb-dev/chains@0.1.11
|
||||||
|
|
||||||
## 3.10.7
|
## 3.10.7
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/sdk",
|
"name": "@thirdweb-dev/sdk",
|
||||||
"version": "3.10.7",
|
"version": "3.10.9",
|
||||||
"description": "The main thirdweb SDK.",
|
"description": "The main thirdweb SDK.",
|
||||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/sdk",
|
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/sdk",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export const FEATURE_EDITION_BURNABLE = {
|
|||||||
namespace: "edition.burn",
|
namespace: "edition.burn",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155burnable",
|
sdk: "sdk.erc1155burnable",
|
||||||
contracts: "IBurnableERC1155",
|
contracts: "erc1155burnable",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, IBurnableERC1155Abi],
|
abis: [Erc1155Abi, IBurnableERC1155Abi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -28,9 +28,9 @@ export const FEATURE_EDITION_CLAIM_CONDITIONS_V1 = {
|
|||||||
namespace: "edition.drop.claim",
|
namespace: "edition.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155claimable",
|
sdk: "sdk.erc1155claimable",
|
||||||
contracts: "DropSinglePhase1155",
|
contracts: "erc1155dropsinglephase",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, ILazyMintAbi, IDropSinglePhase1155_V1],
|
abis: [Erc1155Abi, IDropSinglePhase1155_V1],
|
||||||
features: {},
|
features: {},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -39,9 +39,9 @@ export const FEATURE_EDITION_CLAIM_CONDITIONS_V2 = {
|
|||||||
namespace: "edition.drop.claim",
|
namespace: "edition.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155claimable",
|
sdk: "sdk.erc1155claimable",
|
||||||
contracts: "DropSinglePhase1155",
|
contracts: "erc1155claimconditions",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, ILazyMintAbi, IDropSinglePhase1155],
|
abis: [Erc1155Abi, IDropSinglePhase1155],
|
||||||
features: {},
|
features: {},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -50,9 +50,9 @@ export const FEATURE_EDITION_CLAIM_PHASES_V2 = {
|
|||||||
namespace: "edition.drop.claim",
|
namespace: "edition.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155claimable",
|
sdk: "sdk.erc1155claimable",
|
||||||
contracts: "Drop1155",
|
contracts: "erc1155claimphases",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, ILazyMintAbi, IDropMultiPhase1155],
|
abis: [Erc1155Abi, IDropMultiPhase1155],
|
||||||
features: {},
|
features: {},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ export const FEATURE_EDITION_CLAIM_PHASES_V1 = {
|
|||||||
namespace: "edition.drop.claim",
|
namespace: "edition.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155claimable",
|
sdk: "sdk.erc1155claimable",
|
||||||
contracts: "Drop1155",
|
contracts: "erc1155claimphases",
|
||||||
},
|
},
|
||||||
abis: [DropERC1155_V2Abi],
|
abis: [DropERC1155_V2Abi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -72,9 +72,9 @@ export const FEATURE_EDITION_CLAIM_CUSTOM = {
|
|||||||
namespace: "edition.drop.claim",
|
namespace: "edition.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155claimable",
|
sdk: "sdk.erc1155claimable",
|
||||||
contracts: "IClaimableERC1155",
|
contracts: "erc1155claimcustom",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, ILazyMintAbi, IClaimableERC1155],
|
abis: [Erc1155Abi, IClaimableERC1155],
|
||||||
features: {},
|
features: {},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ export const FEATURE_EDITION_REVEALABLE = {
|
|||||||
namespace: "edition.drop.revealer",
|
namespace: "edition.drop.revealer",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.drop.delayedreveal",
|
sdk: "sdk.drop.delayedreveal",
|
||||||
contracts: "DelayedReveal",
|
contracts: "erc1155revealable",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, ILazyMintAbi, DelayedRevealAbi],
|
abis: [Erc1155Abi, ILazyMintAbi, DelayedRevealAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -94,17 +94,11 @@ export const FEATURE_EDITION_LAZY_MINTABLE_V2 = {
|
|||||||
namespace: "edition.drop",
|
namespace: "edition.drop",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155droppable",
|
sdk: "sdk.erc1155droppable",
|
||||||
contracts: "LazyMint",
|
contracts: "lazymint",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, ILazyMintAbi],
|
abis: [Erc1155Abi, ILazyMintAbi],
|
||||||
features: {
|
features: {
|
||||||
[FEATURE_EDITION_REVEALABLE.name]: FEATURE_EDITION_REVEALABLE,
|
[FEATURE_EDITION_REVEALABLE.name]: FEATURE_EDITION_REVEALABLE,
|
||||||
[FEATURE_EDITION_CLAIM_CUSTOM.name]: FEATURE_EDITION_CLAIM_CUSTOM,
|
|
||||||
[FEATURE_EDITION_CLAIM_CONDITIONS_V1.name]:
|
|
||||||
FEATURE_EDITION_CLAIM_CONDITIONS_V1,
|
|
||||||
[FEATURE_EDITION_CLAIM_CONDITIONS_V2.name]:
|
|
||||||
FEATURE_EDITION_CLAIM_CONDITIONS_V2,
|
|
||||||
[FEATURE_EDITION_CLAIM_PHASES_V2.name]: FEATURE_EDITION_CLAIM_PHASES_V2,
|
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -113,7 +107,7 @@ export const FEATURE_EDITION_LAZY_MINTABLE_V1 = {
|
|||||||
namespace: "edition.drop",
|
namespace: "edition.drop",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155droppable",
|
sdk: "sdk.erc1155droppable",
|
||||||
contracts: "LazyMint",
|
contracts: "lazymint",
|
||||||
},
|
},
|
||||||
abis: [DropERC1155_V2Abi],
|
abis: [DropERC1155_V2Abi],
|
||||||
features: {
|
features: {
|
||||||
@@ -126,7 +120,7 @@ export const FEATURE_EDITION_SIGNATURE_MINTABLE = {
|
|||||||
namespace: "edition.signature",
|
namespace: "edition.signature",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155signaturemintable",
|
sdk: "sdk.erc1155signaturemintable",
|
||||||
contracts: "ISignatureMintERC1155",
|
contracts: "erc1155signaturemint",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, ISignatureMintERC1155Abi],
|
abis: [Erc1155Abi, ISignatureMintERC1155Abi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -137,7 +131,7 @@ export const FEATURE_EDITION_BATCH_TRASNFERABLE = {
|
|||||||
namespace: "",
|
namespace: "",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155",
|
sdk: "sdk.erc1155",
|
||||||
contracts: "IMulticall",
|
contracts: "multicall",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, MulticallAbi],
|
abis: [Erc1155Abi, MulticallAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -148,7 +142,7 @@ export const FEATURE_EDITION_BATCH_MINTABLE = {
|
|||||||
namespace: "edition.mint.batch",
|
namespace: "edition.mint.batch",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155batchmintable",
|
sdk: "sdk.erc1155batchmintable",
|
||||||
contracts: "IMulticall",
|
contracts: "erc1155batchmintable",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, IMintableERC1155Abi, MulticallAbi],
|
abis: [Erc1155Abi, IMintableERC1155Abi, MulticallAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -159,7 +153,7 @@ export const FEATURE_EDITION_MINTABLE = {
|
|||||||
namespace: "edition.mint",
|
namespace: "edition.mint",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155mintable",
|
sdk: "sdk.erc1155mintable",
|
||||||
contracts: "IMintableERC1155",
|
contracts: "erc1155mintable",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, IMintableERC1155Abi],
|
abis: [Erc1155Abi, IMintableERC1155Abi],
|
||||||
features: {
|
features: {
|
||||||
@@ -172,7 +166,7 @@ export const FEATURE_EDITION_ENUMERABLE = {
|
|||||||
namespace: "edition.query",
|
namespace: "edition.query",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155",
|
sdk: "sdk.erc1155",
|
||||||
contracts: "IERC1155",
|
contracts: "erc1155enumerable",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi, Erc1155EnumerableAbi],
|
abis: [Erc1155Abi, Erc1155EnumerableAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -183,7 +177,7 @@ export const FEATURE_EDITION = {
|
|||||||
namespace: "edition",
|
namespace: "edition",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc1155enumerable",
|
sdk: "sdk.erc1155enumerable",
|
||||||
contracts: "IERC1155Enumerable",
|
contracts: "erc1155",
|
||||||
},
|
},
|
||||||
abis: [Erc1155Abi],
|
abis: [Erc1155Abi],
|
||||||
features: {
|
features: {
|
||||||
@@ -195,5 +189,11 @@ export const FEATURE_EDITION = {
|
|||||||
[FEATURE_EDITION_REVEALABLE.name]: FEATURE_EDITION_REVEALABLE,
|
[FEATURE_EDITION_REVEALABLE.name]: FEATURE_EDITION_REVEALABLE,
|
||||||
[FEATURE_EDITION_SIGNATURE_MINTABLE.name]:
|
[FEATURE_EDITION_SIGNATURE_MINTABLE.name]:
|
||||||
FEATURE_EDITION_SIGNATURE_MINTABLE,
|
FEATURE_EDITION_SIGNATURE_MINTABLE,
|
||||||
|
[FEATURE_EDITION_CLAIM_CUSTOM.name]: FEATURE_EDITION_CLAIM_CUSTOM,
|
||||||
|
[FEATURE_EDITION_CLAIM_CONDITIONS_V1.name]:
|
||||||
|
FEATURE_EDITION_CLAIM_CONDITIONS_V1,
|
||||||
|
[FEATURE_EDITION_CLAIM_CONDITIONS_V2.name]:
|
||||||
|
FEATURE_EDITION_CLAIM_CONDITIONS_V2,
|
||||||
|
[FEATURE_EDITION_CLAIM_PHASES_V2.name]: FEATURE_EDITION_CLAIM_PHASES_V2,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export const FEATURE_TOKEN_CLAIM_CONDITIONS_V1 = {
|
|||||||
namespace: "token.drop.claim",
|
namespace: "token.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc20dclaimable",
|
sdk: "sdk.erc20dclaimable",
|
||||||
contracts: "DropSinglePhase_V1",
|
contracts: "erc20claimconditions",
|
||||||
},
|
},
|
||||||
abis: [ERC20Abi, IDropSinglePhaseV1],
|
abis: [ERC20Abi, IDropSinglePhaseV1],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -25,7 +25,7 @@ export const FEATURE_TOKEN_CLAIM_CONDITIONS_V2 = {
|
|||||||
namespace: "token.drop.claim",
|
namespace: "token.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc20dclaimable",
|
sdk: "sdk.erc20dclaimable",
|
||||||
contracts: "DropSinglePhase",
|
contracts: "erc20claimconditions",
|
||||||
},
|
},
|
||||||
abis: [ERC20Abi, IDropSinglePhase],
|
abis: [ERC20Abi, IDropSinglePhase],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -36,7 +36,7 @@ export const FEATURE_TOKEN_CLAIM_PHASES_V2 = {
|
|||||||
namespace: "token.drop.claim",
|
namespace: "token.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc20dclaimable",
|
sdk: "sdk.erc20dclaimable",
|
||||||
contracts: "Drop",
|
contracts: "erc20claimphases",
|
||||||
},
|
},
|
||||||
abis: [ERC20Abi, IDrop],
|
abis: [ERC20Abi, IDrop],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -47,7 +47,7 @@ export const FEATURE_TOKEN_CLAIM_PHASES_V1 = {
|
|||||||
namespace: "token.drop.claim",
|
namespace: "token.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc20dclaimable",
|
sdk: "sdk.erc20dclaimable",
|
||||||
contracts: "Drop",
|
contracts: "erc20claimphases",
|
||||||
},
|
},
|
||||||
abis: [DropERC20_V2Abi],
|
abis: [DropERC20_V2Abi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -58,7 +58,7 @@ export const FEATURE_TOKEN_BURNABLE = {
|
|||||||
namespace: "token.burn",
|
namespace: "token.burn",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc20burnable",
|
sdk: "sdk.erc20burnable",
|
||||||
contracts: "IBurnableERC20",
|
contracts: "erc20burnable",
|
||||||
},
|
},
|
||||||
abis: [ERC20Abi, IBurnableERC20Abi],
|
abis: [ERC20Abi, IBurnableERC20Abi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -69,7 +69,7 @@ export const FEATURE_TOKEN_SIGNATURE_MINTABLE = {
|
|||||||
namespace: "token.signature",
|
namespace: "token.signature",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc20signaturemintable",
|
sdk: "sdk.erc20signaturemintable",
|
||||||
contracts: "ISignatureMintERC20",
|
contracts: "erc20signaturemint",
|
||||||
},
|
},
|
||||||
abis: [ERC20Abi, ISignatureMintERC20Abi],
|
abis: [ERC20Abi, ISignatureMintERC20Abi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -80,7 +80,7 @@ export const FEATURE_TOKEN_BATCH_MINTABLE = {
|
|||||||
namespace: "token.mint.batch",
|
namespace: "token.mint.batch",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc20batchmintable",
|
sdk: "sdk.erc20batchmintable",
|
||||||
contracts: "IMulticall",
|
contracts: "erc20batchmintable",
|
||||||
},
|
},
|
||||||
abis: [ERC20Abi, IMintableERC20Abi, MulticallAbi],
|
abis: [ERC20Abi, IMintableERC20Abi, MulticallAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -91,7 +91,7 @@ export const FEATURE_TOKEN_MINTABLE = {
|
|||||||
namespace: "token.mint",
|
namespace: "token.mint",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc20mintable",
|
sdk: "sdk.erc20mintable",
|
||||||
contracts: "IMintableERC20",
|
contracts: "erc20mintable",
|
||||||
},
|
},
|
||||||
abis: [ERC20Abi, IMintableERC20Abi],
|
abis: [ERC20Abi, IMintableERC20Abi],
|
||||||
features: {
|
features: {
|
||||||
@@ -104,7 +104,7 @@ export const FEATURE_TOKEN_PERMIT = {
|
|||||||
namespace: "token.permit",
|
namespace: "token.permit",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc20permit",
|
sdk: "sdk.erc20permit",
|
||||||
contracts: "IERC20Permit",
|
contracts: "erc20permit",
|
||||||
},
|
},
|
||||||
abis: [ERC20Abi, IERC20PermitAbi],
|
abis: [ERC20Abi, IERC20PermitAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -115,7 +115,7 @@ export const FEATURE_TOKEN = {
|
|||||||
namespace: "token",
|
namespace: "token",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc20",
|
sdk: "sdk.erc20",
|
||||||
contracts: "IERC20",
|
contracts: "erc20",
|
||||||
},
|
},
|
||||||
abis: [ERC20Abi],
|
abis: [ERC20Abi],
|
||||||
features: {
|
features: {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export const FEATURE_NFT_BURNABLE = {
|
|||||||
namespace: "nft.burn",
|
namespace: "nft.burn",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721burnable",
|
sdk: "sdk.erc721burnable",
|
||||||
contracts: "IBurnableERC721",
|
contracts: "erc721burnable",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, IBurnableERC721Abi],
|
abis: [Erc721Abi, IBurnableERC721Abi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -31,7 +31,7 @@ export const FEATURE_NFT_REVEALABLE = {
|
|||||||
namespace: "nft.drop.revealer",
|
namespace: "nft.drop.revealer",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.delayedreveal",
|
sdk: "sdk.delayedreveal",
|
||||||
contracts: "DelayedReveal",
|
contracts: "erc721revealable",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, ILazyMintAbi, DelayedRevealAbi],
|
abis: [Erc721Abi, ILazyMintAbi, DelayedRevealAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -42,7 +42,8 @@ export const FEATURE_NFT_TIERED_DROP = {
|
|||||||
namespace: "nft.tieredDrop",
|
namespace: "nft.tieredDrop",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721tiereddrop",
|
sdk: "sdk.erc721tiereddrop",
|
||||||
contracts: "TieredDrop",
|
//TODO
|
||||||
|
contracts: "",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, TieredDropAbi],
|
abis: [Erc721Abi, TieredDropAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -53,9 +54,9 @@ export const FEATURE_NFT_CLAIM_CONDITIONS_V1 = {
|
|||||||
namespace: "nft.drop.claim",
|
namespace: "nft.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721claimable",
|
sdk: "sdk.erc721claimable",
|
||||||
contracts: "DropSinglePhase_V1",
|
contracts: "erc721claimconditions",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, ILazyMintAbi, IDropSinglePhaseV1],
|
abis: [Erc721Abi, IDropSinglePhaseV1],
|
||||||
features: {},
|
features: {},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -64,9 +65,9 @@ export const FEATURE_NFT_CLAIM_CONDITIONS_V2 = {
|
|||||||
namespace: "nft.drop.claim",
|
namespace: "nft.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721claimable",
|
sdk: "sdk.erc721claimable",
|
||||||
contracts: "DropSinglePhase",
|
contracts: "erc721claimconditions",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, ILazyMintAbi, IDropSinglePhase],
|
abis: [Erc721Abi, IDropSinglePhase],
|
||||||
features: {},
|
features: {},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -75,7 +76,7 @@ export const FEATURE_NFT_CLAIM_PHASES_V1 = {
|
|||||||
namespace: "nft.drop.claim",
|
namespace: "nft.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721claimable",
|
sdk: "sdk.erc721claimable",
|
||||||
contracts: "Drop",
|
contracts: "erc721claimphases",
|
||||||
},
|
},
|
||||||
abis: [DropERC721_V3Abi],
|
abis: [DropERC721_V3Abi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -86,9 +87,9 @@ export const FEATURE_NFT_CLAIM_PHASES_V2 = {
|
|||||||
namespace: "nft.drop.claim",
|
namespace: "nft.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721claimable",
|
sdk: "sdk.erc721claimable",
|
||||||
contracts: "Drop",
|
contracts: "erc721claimphases",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, ILazyMintAbi, IDrop],
|
abis: [Erc721Abi, IDrop],
|
||||||
features: {},
|
features: {},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -97,9 +98,9 @@ export const FEATURE_NFT_CLAIM_CUSTOM = {
|
|||||||
namespace: "nft.drop.claim",
|
namespace: "nft.drop.claim",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721claimable",
|
sdk: "sdk.erc721claimable",
|
||||||
contracts: "IClaimableERC721",
|
contracts: "erc721claimcustom",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, ILazyMintAbi, IClaimableERC721],
|
abis: [Erc721Abi, IClaimableERC721],
|
||||||
features: {},
|
features: {},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -108,16 +109,11 @@ export const FEATURE_NFT_LAZY_MINTABLE = {
|
|||||||
namespace: "nft.drop",
|
namespace: "nft.drop",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721lazymintable",
|
sdk: "sdk.erc721lazymintable",
|
||||||
contracts: "LazyMint",
|
contracts: "lazymint",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, ILazyMintAbi],
|
abis: [Erc721Abi, ILazyMintAbi],
|
||||||
features: {
|
features: {
|
||||||
[FEATURE_NFT_REVEALABLE.name]: FEATURE_NFT_REVEALABLE,
|
[FEATURE_NFT_REVEALABLE.name]: FEATURE_NFT_REVEALABLE,
|
||||||
[FEATURE_NFT_CLAIM_CUSTOM.name]: FEATURE_NFT_CLAIM_CUSTOM,
|
|
||||||
[FEATURE_NFT_CLAIM_CONDITIONS_V1.name]: FEATURE_NFT_CLAIM_CONDITIONS_V1,
|
|
||||||
[FEATURE_NFT_CLAIM_CONDITIONS_V2.name]: FEATURE_NFT_CLAIM_CONDITIONS_V2,
|
|
||||||
[FEATURE_NFT_CLAIM_PHASES_V1.name]: FEATURE_NFT_CLAIM_PHASES_V1,
|
|
||||||
[FEATURE_NFT_CLAIM_PHASES_V2.name]: FEATURE_NFT_CLAIM_PHASES_V2,
|
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -126,7 +122,7 @@ export const FEATURE_NFT_BATCH_MINTABLE = {
|
|||||||
namespace: "nft.mint.batch",
|
namespace: "nft.mint.batch",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721batchmintable",
|
sdk: "sdk.erc721batchmintable",
|
||||||
contracts: "IMulticall",
|
contracts: "erc721batchmintable",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, IMintableERC721Abi, MulticallAbi],
|
abis: [Erc721Abi, IMintableERC721Abi, MulticallAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -137,7 +133,7 @@ export const FEATURE_NFT_MINTABLE = {
|
|||||||
namespace: "nft.mint",
|
namespace: "nft.mint",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721mintable",
|
sdk: "sdk.erc721mintable",
|
||||||
contracts: "IMintableERC721",
|
contracts: "erc721mintable",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, IMintableERC721Abi],
|
abis: [Erc721Abi, IMintableERC721Abi],
|
||||||
features: {
|
features: {
|
||||||
@@ -150,7 +146,7 @@ export const FEATURE_NFT_SIGNATURE_MINTABLE_V2 = {
|
|||||||
namespace: "nft.signature",
|
namespace: "nft.signature",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721signaturemint",
|
sdk: "sdk.erc721signaturemint",
|
||||||
contracts: "ISignatureMintERC721",
|
contracts: "erc721signaturemint",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, SignatureMintERC721Abi],
|
abis: [Erc721Abi, SignatureMintERC721Abi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -161,7 +157,7 @@ export const FEATURE_NFT_SIGNATURE_MINTABLE_V1 = {
|
|||||||
namespace: "nft.signature",
|
namespace: "nft.signature",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721signaturemint",
|
sdk: "sdk.erc721signaturemint",
|
||||||
contracts: "ISignatureMintERC721",
|
contracts: "erc721signaturemint",
|
||||||
},
|
},
|
||||||
abis: [SignatureMintERC721_V1Abi],
|
abis: [SignatureMintERC721_V1Abi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -172,7 +168,7 @@ export const FEATURE_NFT_ENUMERABLE = {
|
|||||||
namespace: "nft.query.owned",
|
namespace: "nft.query.owned",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721enumerable",
|
sdk: "sdk.erc721enumerable",
|
||||||
contracts: "IERC721Enumerable",
|
contracts: "erc721enumerable",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, Erc721EnumerableAbi],
|
abis: [Erc721Abi, Erc721EnumerableAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -183,7 +179,7 @@ export const FEATURE_NFT_SUPPLY = {
|
|||||||
namespace: "nft.query",
|
namespace: "nft.query",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721supply",
|
sdk: "sdk.erc721supply",
|
||||||
contracts: "IERC721Supply",
|
contracts: "erc721supply",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi, Erc721SupplyAbi],
|
abis: [Erc721Abi, Erc721SupplyAbi],
|
||||||
features: {
|
features: {
|
||||||
@@ -196,7 +192,7 @@ export const FEATURE_NFT = {
|
|||||||
namespace: "nft",
|
namespace: "nft",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.erc721",
|
sdk: "sdk.erc721",
|
||||||
contracts: "IERC721",
|
contracts: "erc721",
|
||||||
},
|
},
|
||||||
abis: [Erc721Abi],
|
abis: [Erc721Abi],
|
||||||
features: {
|
features: {
|
||||||
@@ -207,5 +203,10 @@ export const FEATURE_NFT = {
|
|||||||
[FEATURE_NFT_SIGNATURE_MINTABLE_V1.name]: FEATURE_NFT_SIGNATURE_MINTABLE_V1,
|
[FEATURE_NFT_SIGNATURE_MINTABLE_V1.name]: FEATURE_NFT_SIGNATURE_MINTABLE_V1,
|
||||||
[FEATURE_NFT_SIGNATURE_MINTABLE_V2.name]: FEATURE_NFT_SIGNATURE_MINTABLE_V2,
|
[FEATURE_NFT_SIGNATURE_MINTABLE_V2.name]: FEATURE_NFT_SIGNATURE_MINTABLE_V2,
|
||||||
[FEATURE_NFT_TIERED_DROP.name]: FEATURE_NFT_TIERED_DROP,
|
[FEATURE_NFT_TIERED_DROP.name]: FEATURE_NFT_TIERED_DROP,
|
||||||
|
[FEATURE_NFT_CLAIM_CUSTOM.name]: FEATURE_NFT_CLAIM_CUSTOM,
|
||||||
|
[FEATURE_NFT_CLAIM_CONDITIONS_V1.name]: FEATURE_NFT_CLAIM_CONDITIONS_V1,
|
||||||
|
[FEATURE_NFT_CLAIM_CONDITIONS_V2.name]: FEATURE_NFT_CLAIM_CONDITIONS_V2,
|
||||||
|
[FEATURE_NFT_CLAIM_PHASES_V1.name]: FEATURE_NFT_CLAIM_PHASES_V1,
|
||||||
|
[FEATURE_NFT_CLAIM_PHASES_V2.name]: FEATURE_NFT_CLAIM_PHASES_V2,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ export const FEATURE_ROYALTY = {
|
|||||||
namespace: "royalty",
|
namespace: "royalty",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.contractroyalty",
|
sdk: "sdk.contractroyalty",
|
||||||
contracts: "Royalty",
|
contracts: "royalty",
|
||||||
},
|
},
|
||||||
abis: [IThirdwebRoyaltyAbi],
|
abis: [IThirdwebRoyaltyAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -118,7 +118,7 @@ export const FEATURE_PRIMARY_SALE = {
|
|||||||
namespace: "sales",
|
namespace: "sales",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.contractprimarysale",
|
sdk: "sdk.contractprimarysale",
|
||||||
contracts: "PrimarySale",
|
contracts: "primarysale",
|
||||||
},
|
},
|
||||||
abis: [IThirdwebPrimarySaleAbi],
|
abis: [IThirdwebPrimarySaleAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -129,7 +129,7 @@ export const FEATURE_PLATFORM_FEE = {
|
|||||||
namespace: "platformFee",
|
namespace: "platformFee",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.platformfee",
|
sdk: "sdk.platformfee",
|
||||||
contracts: "PlatformFee",
|
contracts: "platformfee",
|
||||||
},
|
},
|
||||||
abis: [IThirdwebPlatformFeeAbi],
|
abis: [IThirdwebPlatformFeeAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -140,7 +140,7 @@ export const FEATURE_PERMISSIONS_ENUMERABLE = {
|
|||||||
namespace: "roles",
|
namespace: "roles",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.contractroles",
|
sdk: "sdk.contractroles",
|
||||||
contracts: "PermissionsEnumerable",
|
contracts: "permissionsenumerable",
|
||||||
},
|
},
|
||||||
abis: [IPermissionsEnumerableAbi],
|
abis: [IPermissionsEnumerableAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -151,7 +151,7 @@ export const FEATURE_PERMISSIONS = {
|
|||||||
namespace: "roles",
|
namespace: "roles",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.contractroles",
|
sdk: "sdk.contractroles",
|
||||||
contracts: "Permissions",
|
contracts: "permissions",
|
||||||
},
|
},
|
||||||
abis: [IPermissionsAbi],
|
abis: [IPermissionsAbi],
|
||||||
features: {
|
features: {
|
||||||
@@ -164,7 +164,7 @@ export const FEATURE_METADATA = {
|
|||||||
namespace: "metadata",
|
namespace: "metadata",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.contractmetadata",
|
sdk: "sdk.contractmetadata",
|
||||||
contracts: "ContractMetadata",
|
contracts: "contractmetadata",
|
||||||
},
|
},
|
||||||
abis: [IContractMetadataAbi],
|
abis: [IContractMetadataAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -175,7 +175,8 @@ export const FEATURE_APPURI = {
|
|||||||
namespace: "appURI",
|
namespace: "appURI",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.appURI",
|
sdk: "sdk.appURI",
|
||||||
contracts: "AppURI",
|
//TODO
|
||||||
|
contracts: "",
|
||||||
},
|
},
|
||||||
abis: [IAppURI],
|
abis: [IAppURI],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -186,7 +187,7 @@ export const FEATURE_OWNER = {
|
|||||||
namespace: "owner",
|
namespace: "owner",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.owner",
|
sdk: "sdk.owner",
|
||||||
contracts: "Ownable",
|
contracts: "ownable",
|
||||||
},
|
},
|
||||||
abis: [IOwnableAbi],
|
abis: [IOwnableAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -209,7 +210,8 @@ export const FEATURE_PACK_VRF = {
|
|||||||
namespace: "pack.vrf",
|
namespace: "pack.vrf",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.packvrf",
|
sdk: "sdk.packvrf",
|
||||||
contracts: "IPackVRFDirect",
|
//TODO
|
||||||
|
contracts: "",
|
||||||
},
|
},
|
||||||
abis: [IPackVRFAbi],
|
abis: [IPackVRFAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -220,7 +222,8 @@ export const FEATURE_PLUGIN_ROUTER = {
|
|||||||
namespace: "plugin.router",
|
namespace: "plugin.router",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "sdk.pluginrouter",
|
sdk: "sdk.pluginrouter",
|
||||||
contracts: "IRouter",
|
//TODO
|
||||||
|
contracts: "",
|
||||||
},
|
},
|
||||||
abis: [getAllPluginsAbi],
|
abis: [getAllPluginsAbi],
|
||||||
features: {},
|
features: {},
|
||||||
@@ -231,6 +234,7 @@ export const FEATURE_EXTENSION_ROUTER = {
|
|||||||
namespace: "extension.router",
|
namespace: "extension.router",
|
||||||
docLinks: {
|
docLinks: {
|
||||||
sdk: "",
|
sdk: "",
|
||||||
|
//TODO
|
||||||
contracts: "",
|
contracts: "",
|
||||||
},
|
},
|
||||||
abis: [getAllExtensionsAbi],
|
abis: [getAllExtensionsAbi],
|
||||||
|
|||||||
@@ -7,24 +7,15 @@ import {
|
|||||||
FEATURE_EDITION_LAZY_MINTABLE_V2,
|
FEATURE_EDITION_LAZY_MINTABLE_V2,
|
||||||
FEATURE_EDITION_REVEALABLE,
|
FEATURE_EDITION_REVEALABLE,
|
||||||
} from "../../constants/erc1155-features";
|
} from "../../constants/erc1155-features";
|
||||||
import {
|
import { BaseDelayedRevealERC1155, BaseDropERC1155 } from "../../types/eips";
|
||||||
BaseClaimConditionERC1155,
|
|
||||||
BaseDelayedRevealERC1155,
|
|
||||||
BaseDropERC1155,
|
|
||||||
} from "../../types/eips";
|
|
||||||
import { UploadProgressEvent } from "../../types/events";
|
import { UploadProgressEvent } from "../../types/events";
|
||||||
import { DetectableFeature } from "../interfaces/DetectableFeature";
|
import { DetectableFeature } from "../interfaces/DetectableFeature";
|
||||||
import { TransactionResultWithId } from "../types";
|
import { TransactionResultWithId } from "../types";
|
||||||
import { ContractWrapper } from "./contract-wrapper";
|
import { ContractWrapper } from "./contract-wrapper";
|
||||||
import { DelayedReveal } from "./delayed-reveal";
|
import { DelayedReveal } from "./delayed-reveal";
|
||||||
import { Erc1155 } from "./erc-1155";
|
import { Erc1155 } from "./erc-1155";
|
||||||
import { ERC1155Claimable } from "./erc-1155-claimable";
|
|
||||||
import { Erc1155ClaimableWithConditions } from "./erc-1155-claimable-with-conditions";
|
|
||||||
import { Transaction } from "./transactions";
|
import { Transaction } from "./transactions";
|
||||||
import type {
|
import type { DropERC1155_V2 } from "@thirdweb-dev/contracts-js";
|
||||||
DropERC1155_V2,
|
|
||||||
IClaimableERC1155,
|
|
||||||
} from "@thirdweb-dev/contracts-js";
|
|
||||||
import { TokensLazyMintedEvent } from "@thirdweb-dev/contracts-js/dist/declarations/src/LazyMint";
|
import { TokensLazyMintedEvent } from "@thirdweb-dev/contracts-js/dist/declarations/src/LazyMint";
|
||||||
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
||||||
import { ethers } from "ethers";
|
import { ethers } from "ethers";
|
||||||
@@ -65,19 +56,6 @@ export class Erc1155LazyMintable implements DetectableFeature {
|
|||||||
*/
|
*/
|
||||||
public revealer: DelayedReveal<BaseDelayedRevealERC1155> | undefined;
|
public revealer: DelayedReveal<BaseDelayedRevealERC1155> | undefined;
|
||||||
|
|
||||||
/**
|
|
||||||
* Claim tokens and configure claim conditions
|
|
||||||
* @remarks Let users claim NFTs. Define who can claim NFTs in the collection, when and how many.
|
|
||||||
* @example
|
|
||||||
* ```javascript
|
|
||||||
* const quantity = 10;
|
|
||||||
* const tokenId = 0;
|
|
||||||
* await contract.erc1155.claimTo("0x...", 0, quantity);
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
public claimWithConditions: Erc1155ClaimableWithConditions | undefined;
|
|
||||||
public claim: ERC1155Claimable | undefined;
|
|
||||||
|
|
||||||
private contractWrapper: ContractWrapper<BaseDropERC1155>;
|
private contractWrapper: ContractWrapper<BaseDropERC1155>;
|
||||||
private erc1155: Erc1155;
|
private erc1155: Erc1155;
|
||||||
private storage: ThirdwebStorage;
|
private storage: ThirdwebStorage;
|
||||||
@@ -91,8 +69,6 @@ export class Erc1155LazyMintable implements DetectableFeature {
|
|||||||
this.contractWrapper = contractWrapper;
|
this.contractWrapper = contractWrapper;
|
||||||
|
|
||||||
this.storage = storage;
|
this.storage = storage;
|
||||||
this.claim = this.detectErc1155Claimable();
|
|
||||||
this.claimWithConditions = this.detectErc1155ClaimableWithConditions();
|
|
||||||
this.revealer = this.detectErc1155Revealable();
|
this.revealer = this.detectErc1155Revealable();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,47 +177,6 @@ export class Erc1155LazyMintable implements DetectableFeature {
|
|||||||
* PRIVATE FUNCTIONS
|
* PRIVATE FUNCTIONS
|
||||||
*******************************/
|
*******************************/
|
||||||
|
|
||||||
private detectErc1155Claimable(): ERC1155Claimable | undefined {
|
|
||||||
if (
|
|
||||||
detectContractFeature<IClaimableERC1155>(
|
|
||||||
this.contractWrapper,
|
|
||||||
"ERC1155ClaimCustom",
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
return new ERC1155Claimable(this.contractWrapper);
|
|
||||||
}
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
private detectErc1155ClaimableWithConditions():
|
|
||||||
| Erc1155ClaimableWithConditions
|
|
||||||
| undefined {
|
|
||||||
if (
|
|
||||||
detectContractFeature<BaseClaimConditionERC1155>(
|
|
||||||
this.contractWrapper,
|
|
||||||
"ERC1155ClaimConditionsV1",
|
|
||||||
) ||
|
|
||||||
detectContractFeature<BaseClaimConditionERC1155>(
|
|
||||||
this.contractWrapper,
|
|
||||||
"ERC1155ClaimConditionsV2",
|
|
||||||
) ||
|
|
||||||
detectContractFeature<BaseClaimConditionERC1155>(
|
|
||||||
this.contractWrapper,
|
|
||||||
"ERC1155ClaimPhasesV1",
|
|
||||||
) ||
|
|
||||||
detectContractFeature<BaseClaimConditionERC1155>(
|
|
||||||
this.contractWrapper,
|
|
||||||
"ERC1155ClaimPhasesV2",
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
return new Erc1155ClaimableWithConditions(
|
|
||||||
this.contractWrapper,
|
|
||||||
this.storage,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
private detectErc1155Revealable():
|
private detectErc1155Revealable():
|
||||||
| DelayedReveal<BaseDelayedRevealERC1155>
|
| DelayedReveal<BaseDelayedRevealERC1155>
|
||||||
| undefined {
|
| undefined {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import { EditionMetadataOrUri } from "../../schema/tokens/edition";
|
|||||||
import { ClaimOptions, UploadProgressEvent } from "../../types";
|
import { ClaimOptions, UploadProgressEvent } from "../../types";
|
||||||
import { AirdropInput } from "../../types/airdrop/airdrop";
|
import { AirdropInput } from "../../types/airdrop/airdrop";
|
||||||
import {
|
import {
|
||||||
|
BaseClaimConditionERC1155,
|
||||||
BaseDropERC1155,
|
BaseDropERC1155,
|
||||||
BaseERC1155,
|
BaseERC1155,
|
||||||
BaseSignatureMintERC1155,
|
BaseSignatureMintERC1155,
|
||||||
@@ -45,12 +46,15 @@ import { Transaction } from "./transactions";
|
|||||||
import type {
|
import type {
|
||||||
DropERC1155,
|
DropERC1155,
|
||||||
IBurnableERC1155,
|
IBurnableERC1155,
|
||||||
|
IClaimableERC1155,
|
||||||
IERC1155Enumerable,
|
IERC1155Enumerable,
|
||||||
IMintableERC1155,
|
IMintableERC1155,
|
||||||
TokenERC1155,
|
TokenERC1155,
|
||||||
} from "@thirdweb-dev/contracts-js";
|
} from "@thirdweb-dev/contracts-js";
|
||||||
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
||||||
import { BigNumber, BigNumberish, BytesLike, ethers } from "ethers";
|
import { BigNumber, BigNumberish, BytesLike, ethers } from "ethers";
|
||||||
|
import { ERC1155Claimable } from "./erc-1155-claimable";
|
||||||
|
import { Erc1155ClaimableWithConditions } from "./erc-1155-claimable-with-conditions";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Standard ERC1155 NFT functions
|
* Standard ERC1155 NFT functions
|
||||||
@@ -74,6 +78,8 @@ export class Erc1155<
|
|||||||
private burnable: Erc1155Burnable | undefined;
|
private burnable: Erc1155Burnable | undefined;
|
||||||
private lazyMintable: Erc1155LazyMintable | undefined;
|
private lazyMintable: Erc1155LazyMintable | undefined;
|
||||||
private signatureMintable: Erc1155SignatureMintable | undefined;
|
private signatureMintable: Erc1155SignatureMintable | undefined;
|
||||||
|
private claimWithConditions: Erc1155ClaimableWithConditions | undefined;
|
||||||
|
private claimCustom: ERC1155Claimable | undefined;
|
||||||
|
|
||||||
protected contractWrapper: ContractWrapper<T>;
|
protected contractWrapper: ContractWrapper<T>;
|
||||||
protected storage: ThirdwebStorage;
|
protected storage: ThirdwebStorage;
|
||||||
@@ -95,6 +101,8 @@ export class Erc1155<
|
|||||||
this.burnable = this.detectErc1155Burnable();
|
this.burnable = this.detectErc1155Burnable();
|
||||||
this.lazyMintable = this.detectErc1155LazyMintable();
|
this.lazyMintable = this.detectErc1155LazyMintable();
|
||||||
this.signatureMintable = this.detectErc1155SignatureMintable();
|
this.signatureMintable = this.detectErc1155SignatureMintable();
|
||||||
|
this.claimCustom = this.detectErc1155Claimable();
|
||||||
|
this.claimWithConditions = this.detectErc1155ClaimableWithConditions();
|
||||||
this._chainId = chainId;
|
this._chainId = chainId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -853,8 +861,8 @@ export class Erc1155<
|
|||||||
quantity: BigNumberish,
|
quantity: BigNumberish,
|
||||||
options?: ClaimOptions,
|
options?: ClaimOptions,
|
||||||
): Promise<Transaction> {
|
): Promise<Transaction> {
|
||||||
const claimWithConditions = this.lazyMintable?.claimWithConditions;
|
const claimWithConditions = this.claimWithConditions;
|
||||||
const claim = this.lazyMintable?.claim;
|
const claim = this.claimCustom;
|
||||||
if (claimWithConditions) {
|
if (claimWithConditions) {
|
||||||
return claimWithConditions.conditions.getClaimTransaction(
|
return claimWithConditions.conditions.getClaimTransaction(
|
||||||
destinationAddress,
|
destinationAddress,
|
||||||
@@ -940,8 +948,8 @@ export class Erc1155<
|
|||||||
quantity: BigNumberish,
|
quantity: BigNumberish,
|
||||||
options?: ClaimOptions,
|
options?: ClaimOptions,
|
||||||
) => {
|
) => {
|
||||||
const claimWithConditions = this.lazyMintable?.claimWithConditions;
|
const claimWithConditions = this.claimWithConditions;
|
||||||
const claim = this.lazyMintable?.claim;
|
const claim = this.claimCustom;
|
||||||
if (claimWithConditions) {
|
if (claimWithConditions) {
|
||||||
return claimWithConditions.to.prepare(
|
return claimWithConditions.to.prepare(
|
||||||
destinationAddress,
|
destinationAddress,
|
||||||
@@ -982,7 +990,7 @@ export class Erc1155<
|
|||||||
*/
|
*/
|
||||||
get claimConditions() {
|
get claimConditions() {
|
||||||
return assertEnabled(
|
return assertEnabled(
|
||||||
this.lazyMintable?.claimWithConditions,
|
this.claimWithConditions,
|
||||||
FEATURE_EDITION_CLAIM_CONDITIONS_V2,
|
FEATURE_EDITION_CLAIM_CONDITIONS_V2,
|
||||||
).conditions;
|
).conditions;
|
||||||
}
|
}
|
||||||
@@ -1132,4 +1140,45 @@ export class Erc1155<
|
|||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private detectErc1155Claimable(): ERC1155Claimable | undefined {
|
||||||
|
if (
|
||||||
|
detectContractFeature<IClaimableERC1155>(
|
||||||
|
this.contractWrapper,
|
||||||
|
"ERC1155ClaimCustom",
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
return new ERC1155Claimable(this.contractWrapper);
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
private detectErc1155ClaimableWithConditions():
|
||||||
|
| Erc1155ClaimableWithConditions
|
||||||
|
| undefined {
|
||||||
|
if (
|
||||||
|
detectContractFeature<BaseClaimConditionERC1155>(
|
||||||
|
this.contractWrapper,
|
||||||
|
"ERC1155ClaimConditionsV1",
|
||||||
|
) ||
|
||||||
|
detectContractFeature<BaseClaimConditionERC1155>(
|
||||||
|
this.contractWrapper,
|
||||||
|
"ERC1155ClaimConditionsV2",
|
||||||
|
) ||
|
||||||
|
detectContractFeature<BaseClaimConditionERC1155>(
|
||||||
|
this.contractWrapper,
|
||||||
|
"ERC1155ClaimPhasesV1",
|
||||||
|
) ||
|
||||||
|
detectContractFeature<BaseClaimConditionERC1155>(
|
||||||
|
this.contractWrapper,
|
||||||
|
"ERC1155ClaimPhasesV2",
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
return new Erc1155ClaimableWithConditions(
|
||||||
|
this.contractWrapper,
|
||||||
|
this.storage,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,20 +7,13 @@ import {
|
|||||||
FEATURE_NFT_REVEALABLE,
|
FEATURE_NFT_REVEALABLE,
|
||||||
} from "../../constants/erc721-features";
|
} from "../../constants/erc721-features";
|
||||||
import { UploadProgressEvent } from "../../types";
|
import { UploadProgressEvent } from "../../types";
|
||||||
import {
|
import { BaseDelayedRevealERC721, BaseDropERC721 } from "../../types/eips";
|
||||||
BaseClaimConditionERC721,
|
|
||||||
BaseDelayedRevealERC721,
|
|
||||||
BaseDropERC721,
|
|
||||||
} from "../../types/eips";
|
|
||||||
import { DetectableFeature } from "../interfaces/DetectableFeature";
|
import { DetectableFeature } from "../interfaces/DetectableFeature";
|
||||||
import { TransactionResultWithId } from "../types";
|
import { TransactionResultWithId } from "../types";
|
||||||
import { ContractWrapper } from "./contract-wrapper";
|
import { ContractWrapper } from "./contract-wrapper";
|
||||||
import { DelayedReveal } from "./delayed-reveal";
|
import { DelayedReveal } from "./delayed-reveal";
|
||||||
import { Erc721 } from "./erc-721";
|
import { Erc721 } from "./erc-721";
|
||||||
import { Erc721Claimable } from "./erc-721-claimable";
|
|
||||||
import { Erc721ClaimableWithConditions } from "./erc-721-claimable-with-conditions";
|
|
||||||
import { Transaction } from "./transactions";
|
import { Transaction } from "./transactions";
|
||||||
import type { IClaimableERC721 } from "@thirdweb-dev/contracts-js";
|
|
||||||
import { TokensLazyMintedEvent } from "@thirdweb-dev/contracts-js/dist/declarations/src/LazyMint";
|
import { TokensLazyMintedEvent } from "@thirdweb-dev/contracts-js/dist/declarations/src/LazyMint";
|
||||||
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
||||||
import { ethers } from "ethers";
|
import { ethers } from "ethers";
|
||||||
@@ -70,18 +63,6 @@ export class Erc721LazyMintable implements DetectableFeature {
|
|||||||
*/
|
*/
|
||||||
public revealer: DelayedReveal<BaseDelayedRevealERC721> | undefined;
|
public revealer: DelayedReveal<BaseDelayedRevealERC721> | undefined;
|
||||||
|
|
||||||
/**
|
|
||||||
* Claim tokens and configure claim conditions
|
|
||||||
* @remarks Let users claim NFTs. Define who can claim NFTs in the collection, when and how many.
|
|
||||||
* @example
|
|
||||||
* ```javascript
|
|
||||||
* const quantity = 10;
|
|
||||||
* await contract.erc721.claim(quantity);
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
public claimWithConditions: Erc721ClaimableWithConditions | undefined;
|
|
||||||
public claim: Erc721Claimable | undefined;
|
|
||||||
|
|
||||||
private contractWrapper: ContractWrapper<BaseDropERC721>;
|
private contractWrapper: ContractWrapper<BaseDropERC721>;
|
||||||
private erc721: Erc721;
|
private erc721: Erc721;
|
||||||
private storage: ThirdwebStorage;
|
private storage: ThirdwebStorage;
|
||||||
@@ -96,8 +77,6 @@ export class Erc721LazyMintable implements DetectableFeature {
|
|||||||
|
|
||||||
this.storage = storage;
|
this.storage = storage;
|
||||||
this.revealer = this.detectErc721Revealable();
|
this.revealer = this.detectErc721Revealable();
|
||||||
this.claimWithConditions = this.detectErc721ClaimableWithConditions();
|
|
||||||
this.claim = this.detectErc721Claimable();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -194,46 +173,4 @@ export class Erc721LazyMintable implements DetectableFeature {
|
|||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
private detectErc721ClaimableWithConditions():
|
|
||||||
| Erc721ClaimableWithConditions
|
|
||||||
| undefined {
|
|
||||||
if (
|
|
||||||
detectContractFeature<BaseClaimConditionERC721>(
|
|
||||||
this.contractWrapper,
|
|
||||||
"ERC721ClaimConditionsV1",
|
|
||||||
) ||
|
|
||||||
detectContractFeature<BaseClaimConditionERC721>(
|
|
||||||
this.contractWrapper,
|
|
||||||
"ERC721ClaimConditionsV2",
|
|
||||||
) ||
|
|
||||||
detectContractFeature<BaseClaimConditionERC721>(
|
|
||||||
this.contractWrapper,
|
|
||||||
"ERC721ClaimPhasesV1",
|
|
||||||
) ||
|
|
||||||
detectContractFeature<BaseClaimConditionERC721>(
|
|
||||||
this.contractWrapper,
|
|
||||||
"ERC721ClaimPhasesV2",
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
return new Erc721ClaimableWithConditions(
|
|
||||||
this.erc721,
|
|
||||||
this.contractWrapper,
|
|
||||||
this.storage,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
private detectErc721Claimable(): Erc721Claimable | undefined {
|
|
||||||
if (
|
|
||||||
detectContractFeature<IClaimableERC721>(
|
|
||||||
this.contractWrapper,
|
|
||||||
"ERC721ClaimCustom",
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
return new Erc721Claimable(this.erc721, this.contractWrapper);
|
|
||||||
}
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import {
|
|||||||
} from "../../schema/contracts/tiered-drop";
|
} from "../../schema/contracts/tiered-drop";
|
||||||
import { UploadProgressEvent } from "../../types/events";
|
import { UploadProgressEvent } from "../../types/events";
|
||||||
import { DetectableFeature } from "../interfaces/DetectableFeature";
|
import { DetectableFeature } from "../interfaces/DetectableFeature";
|
||||||
import { TransactionResult, TransactionResultWithId } from "../types";
|
import { TransactionResultWithId } from "../types";
|
||||||
import { ContractWrapper } from "./contract-wrapper";
|
import { ContractWrapper } from "./contract-wrapper";
|
||||||
import { Erc721 } from "./erc-721";
|
import { Erc721 } from "./erc-721";
|
||||||
import type { TieredDrop, ISignatureAction } from "@thirdweb-dev/contracts-js";
|
import type { TieredDrop, ISignatureAction } from "@thirdweb-dev/contracts-js";
|
||||||
@@ -28,6 +28,8 @@ import {
|
|||||||
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
||||||
import { BigNumberish, ethers } from "ethers";
|
import { BigNumberish, ethers } from "ethers";
|
||||||
import invariant from "tiny-invariant";
|
import invariant from "tiny-invariant";
|
||||||
|
import { Transaction } from "./transactions";
|
||||||
|
import { buildTransactionFunction } from "../../common/transactions";
|
||||||
|
|
||||||
export class Erc721TieredDrop implements DetectableFeature {
|
export class Erc721TieredDrop implements DetectableFeature {
|
||||||
featureName = FEATURE_NFT_TIERED_DROP.name;
|
featureName = FEATURE_NFT_TIERED_DROP.name;
|
||||||
@@ -112,164 +114,182 @@ export class Erc721TieredDrop implements DetectableFeature {
|
|||||||
return nfts;
|
return nfts;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async createBatchWithTier(
|
createBatchWithTier = buildTransactionFunction(
|
||||||
metadatas: NFTMetadataOrUri[],
|
async (
|
||||||
tier: string,
|
metadatas: NFTMetadataOrUri[],
|
||||||
options?: {
|
tier: string,
|
||||||
onProgress: (event: UploadProgressEvent) => void;
|
options?: {
|
||||||
},
|
onProgress: (event: UploadProgressEvent) => void;
|
||||||
): Promise<TransactionResultWithId<NFTMetadata>[]> {
|
},
|
||||||
// TODO: Change this to on extension
|
): Promise<Transaction<TransactionResultWithId<NFTMetadata>[]>> => {
|
||||||
const startFileNumber = await this.erc721.nextTokenIdToMint();
|
// TODO: Change this to on extension
|
||||||
const batch = await uploadOrExtractURIs(
|
const startFileNumber = await this.erc721.nextTokenIdToMint();
|
||||||
metadatas,
|
const batch = await uploadOrExtractURIs(
|
||||||
this.storage,
|
metadatas,
|
||||||
startFileNumber.toNumber(),
|
this.storage,
|
||||||
options,
|
startFileNumber.toNumber(),
|
||||||
);
|
options,
|
||||||
const baseUri = getBaseUriFromBatch(batch);
|
);
|
||||||
|
const baseUri = getBaseUriFromBatch(batch);
|
||||||
|
|
||||||
const receipt = await this.contractWrapper.sendTransaction("lazyMint", [
|
return Transaction.fromContractWrapper({
|
||||||
batch.length,
|
contractWrapper: this.contractWrapper,
|
||||||
baseUri.endsWith("/") ? baseUri : `${baseUri}/`,
|
method: "lazyMint",
|
||||||
tier,
|
args: [
|
||||||
ethers.utils.toUtf8Bytes(""),
|
batch.length,
|
||||||
]);
|
baseUri.endsWith("/") ? baseUri : `${baseUri}/`,
|
||||||
|
tier,
|
||||||
|
ethers.utils.toUtf8Bytes(""),
|
||||||
|
],
|
||||||
|
parse: (receipt) => {
|
||||||
|
const event = this.contractWrapper.parseLogs<TokensLazyMintedEvent>(
|
||||||
|
"TokensLazyMinted",
|
||||||
|
receipt?.logs,
|
||||||
|
);
|
||||||
|
|
||||||
const event = this.contractWrapper.parseLogs<TokensLazyMintedEvent>(
|
const startingIndex = event[0].args[1];
|
||||||
"TokensLazyMinted",
|
const endingIndex = event[0].args[2];
|
||||||
receipt?.logs,
|
const results: TransactionResultWithId<NFTMetadata>[] = [];
|
||||||
);
|
for (let id = startingIndex; id.lte(endingIndex); id = id.add(1)) {
|
||||||
|
results.push({
|
||||||
const startingIndex = event[0].args[1];
|
id,
|
||||||
const endingIndex = event[0].args[2];
|
receipt,
|
||||||
const results: TransactionResultWithId<NFTMetadata>[] = [];
|
data: () => this.erc721.getTokenMetadata(id),
|
||||||
for (let id = startingIndex; id.lte(endingIndex); id = id.add(1)) {
|
});
|
||||||
results.push({
|
}
|
||||||
id,
|
return results;
|
||||||
receipt,
|
},
|
||||||
data: () => this.erc721.getTokenMetadata(id),
|
|
||||||
});
|
});
|
||||||
}
|
|
||||||
return results;
|
|
||||||
}
|
|
||||||
|
|
||||||
public async createDelayedRevealBatchWithTier(
|
|
||||||
placeholder: NFTMetadataInput,
|
|
||||||
metadatas: NFTMetadataInput[],
|
|
||||||
password: string,
|
|
||||||
tier: string,
|
|
||||||
options?: {
|
|
||||||
onProgress: (event: UploadProgressEvent) => void;
|
|
||||||
},
|
},
|
||||||
): Promise<TransactionResultWithId<NFTMetadata>[]> {
|
);
|
||||||
if (!password) {
|
|
||||||
throw new Error("Password is required");
|
|
||||||
}
|
|
||||||
|
|
||||||
const placeholderUris = await this.storage.uploadBatch(
|
createDelayedRevealBatchWithTier = buildTransactionFunction(
|
||||||
[CommonNFTInput.parse(placeholder)],
|
async (
|
||||||
{
|
placeholder: NFTMetadataInput,
|
||||||
rewriteFileNames: {
|
metadatas: NFTMetadataInput[],
|
||||||
fileStartNumber: 0,
|
password: string,
|
||||||
},
|
tier: string,
|
||||||
|
options?: {
|
||||||
|
onProgress: (event: UploadProgressEvent) => void;
|
||||||
},
|
},
|
||||||
);
|
): Promise<Transaction<TransactionResultWithId<NFTMetadata>[]>> => {
|
||||||
const placeholderUri = getBaseUriFromBatch(placeholderUris);
|
if (!password) {
|
||||||
const startFileNumber = await this.erc721.nextTokenIdToMint();
|
throw new Error("Password is required");
|
||||||
const uris = await this.storage.uploadBatch(
|
}
|
||||||
metadatas.map((m) => CommonNFTInput.parse(m)),
|
|
||||||
{
|
const placeholderUris = await this.storage.uploadBatch(
|
||||||
onProgress: options?.onProgress,
|
[CommonNFTInput.parse(placeholder)],
|
||||||
rewriteFileNames: {
|
{
|
||||||
fileStartNumber: startFileNumber.toNumber(),
|
rewriteFileNames: {
|
||||||
|
fileStartNumber: 0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
);
|
||||||
|
const placeholderUri = getBaseUriFromBatch(placeholderUris);
|
||||||
|
const startFileNumber = await this.erc721.nextTokenIdToMint();
|
||||||
|
const uris = await this.storage.uploadBatch(
|
||||||
|
metadatas.map((m) => CommonNFTInput.parse(m)),
|
||||||
|
{
|
||||||
|
onProgress: options?.onProgress,
|
||||||
|
rewriteFileNames: {
|
||||||
|
fileStartNumber: startFileNumber.toNumber(),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
const baseUri = getBaseUriFromBatch(uris);
|
|
||||||
const baseUriId = await this.contractWrapper.readContract.getBaseURICount();
|
|
||||||
const chainId = await this.contractWrapper.getChainID();
|
|
||||||
const hashedPassword = ethers.utils.solidityKeccak256(
|
|
||||||
["string", "uint256", "uint256", "address"],
|
|
||||||
[password, chainId, baseUriId, this.contractWrapper.readContract.address],
|
|
||||||
);
|
|
||||||
|
|
||||||
const encryptedBaseUri =
|
|
||||||
await this.contractWrapper.readContract.encryptDecrypt(
|
|
||||||
ethers.utils.toUtf8Bytes(baseUri),
|
|
||||||
hashedPassword,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
let data: string;
|
const baseUri = getBaseUriFromBatch(uris);
|
||||||
const provenanceHash = ethers.utils.solidityKeccak256(
|
const baseUriId =
|
||||||
["bytes", "bytes", "uint256"],
|
await this.contractWrapper.readContract.getBaseURICount();
|
||||||
[ethers.utils.toUtf8Bytes(baseUri), hashedPassword, chainId],
|
const chainId = await this.contractWrapper.getChainID();
|
||||||
);
|
const hashedPassword = ethers.utils.solidityKeccak256(
|
||||||
data = ethers.utils.defaultAbiCoder.encode(
|
["string", "uint256", "uint256", "address"],
|
||||||
["bytes", "bytes32"],
|
[
|
||||||
[encryptedBaseUri, provenanceHash],
|
password,
|
||||||
);
|
chainId,
|
||||||
|
baseUriId,
|
||||||
|
this.contractWrapper.readContract.address,
|
||||||
|
],
|
||||||
|
);
|
||||||
|
|
||||||
const receipt = await this.contractWrapper.sendTransaction("lazyMint", [
|
const encryptedBaseUri =
|
||||||
uris.length,
|
await this.contractWrapper.readContract.encryptDecrypt(
|
||||||
placeholderUri.endsWith("/") ? placeholderUri : `${placeholderUri}/`,
|
ethers.utils.toUtf8Bytes(baseUri),
|
||||||
tier,
|
hashedPassword,
|
||||||
data,
|
);
|
||||||
]);
|
|
||||||
|
|
||||||
const event = this.contractWrapper.parseLogs<TokensLazyMintedEvent>(
|
let data: string;
|
||||||
"TokensLazyMinted",
|
const provenanceHash = ethers.utils.solidityKeccak256(
|
||||||
receipt?.logs,
|
["bytes", "bytes", "uint256"],
|
||||||
);
|
[ethers.utils.toUtf8Bytes(baseUri), hashedPassword, chainId],
|
||||||
const startingIndex = event[0].args[1];
|
);
|
||||||
const endingIndex = event[0].args[2];
|
data = ethers.utils.defaultAbiCoder.encode(
|
||||||
const results: TransactionResultWithId<NFTMetadata>[] = [];
|
["bytes", "bytes32"],
|
||||||
for (let id = startingIndex; id.lte(endingIndex); id = id.add(1)) {
|
[encryptedBaseUri, provenanceHash],
|
||||||
results.push({
|
);
|
||||||
id,
|
|
||||||
receipt,
|
return Transaction.fromContractWrapper({
|
||||||
data: () => this.erc721.getTokenMetadata(id),
|
contractWrapper: this.contractWrapper,
|
||||||
|
method: "lazyMint",
|
||||||
|
args: [
|
||||||
|
uris.length,
|
||||||
|
placeholderUri.endsWith("/") ? placeholderUri : `${placeholderUri}/`,
|
||||||
|
tier,
|
||||||
|
data,
|
||||||
|
],
|
||||||
|
parse: (receipt) => {
|
||||||
|
const event = this.contractWrapper.parseLogs<TokensLazyMintedEvent>(
|
||||||
|
"TokensLazyMinted",
|
||||||
|
receipt?.logs,
|
||||||
|
);
|
||||||
|
const startingIndex = event[0].args[1];
|
||||||
|
const endingIndex = event[0].args[2];
|
||||||
|
const results: TransactionResultWithId<NFTMetadata>[] = [];
|
||||||
|
for (let id = startingIndex; id.lte(endingIndex); id = id.add(1)) {
|
||||||
|
results.push({
|
||||||
|
id,
|
||||||
|
receipt,
|
||||||
|
data: () => this.erc721.getTokenMetadata(id),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return results;
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
);
|
||||||
|
|
||||||
return results;
|
reveal = buildTransactionFunction(
|
||||||
}
|
async (batchId: BigNumberish, password: string) => {
|
||||||
|
if (!password) {
|
||||||
public async reveal(
|
throw new Error("Password is required");
|
||||||
batchId: BigNumberish,
|
}
|
||||||
password: string,
|
const chainId = await this.contractWrapper.getChainID();
|
||||||
): Promise<TransactionResult> {
|
const key = ethers.utils.solidityKeccak256(
|
||||||
if (!password) {
|
["string", "uint256", "uint256", "address"],
|
||||||
throw new Error("Password is required");
|
[password, chainId, batchId, this.contractWrapper.readContract.address],
|
||||||
}
|
);
|
||||||
const chainId = await this.contractWrapper.getChainID();
|
// performing the reveal locally to make sure it'd succeed before sending the transaction
|
||||||
const key = ethers.utils.solidityKeccak256(
|
try {
|
||||||
["string", "uint256", "uint256", "address"],
|
const decryptedUri = await this.contractWrapper
|
||||||
[password, chainId, batchId, this.contractWrapper.readContract.address],
|
.callStatic()
|
||||||
);
|
.reveal(batchId, key);
|
||||||
// performing the reveal locally to make sure it'd succeed before sending the transaction
|
// basic sanity check for making sure decryptedUri is valid
|
||||||
try {
|
// this is optional because invalid decryption key would result in non-utf8 bytes and
|
||||||
const decryptedUri = await this.contractWrapper
|
// ethers would throw when trying to decode it
|
||||||
.callStatic()
|
if (!decryptedUri.includes("://") || !decryptedUri.endsWith("/")) {
|
||||||
.reveal(batchId, key);
|
throw new Error("invalid password");
|
||||||
// basic sanity check for making sure decryptedUri is valid
|
}
|
||||||
// this is optional because invalid decryption key would result in non-utf8 bytes and
|
} catch (e) {
|
||||||
// ethers would throw when trying to decode it
|
|
||||||
if (!decryptedUri.includes("://") || !decryptedUri.endsWith("/")) {
|
|
||||||
throw new Error("invalid password");
|
throw new Error("invalid password");
|
||||||
}
|
}
|
||||||
} catch (e) {
|
|
||||||
throw new Error("invalid password");
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return Transaction.fromContractWrapper({
|
||||||
receipt: await this.contractWrapper.sendTransaction("reveal", [
|
contractWrapper: this.contractWrapper,
|
||||||
batchId,
|
method: "reveal",
|
||||||
key,
|
args: [batchId, key],
|
||||||
]),
|
});
|
||||||
};
|
},
|
||||||
}
|
);
|
||||||
|
|
||||||
public async generate(
|
public async generate(
|
||||||
payloadToSign: TieredDropPayloadInput,
|
payloadToSign: TieredDropPayloadInput,
|
||||||
|
|||||||
@@ -25,7 +25,11 @@ import {
|
|||||||
} from "../../constants/erc721-features";
|
} from "../../constants/erc721-features";
|
||||||
import { Address, AddressOrEns } from "../../schema";
|
import { Address, AddressOrEns } from "../../schema";
|
||||||
import { ClaimOptions, UploadProgressEvent } from "../../types";
|
import { ClaimOptions, UploadProgressEvent } from "../../types";
|
||||||
import { BaseDropERC721, BaseERC721 } from "../../types/eips";
|
import {
|
||||||
|
BaseClaimConditionERC721,
|
||||||
|
BaseDropERC721,
|
||||||
|
BaseERC721,
|
||||||
|
} from "../../types/eips";
|
||||||
import { DetectableFeature } from "../interfaces/DetectableFeature";
|
import { DetectableFeature } from "../interfaces/DetectableFeature";
|
||||||
import { UpdateableNetwork } from "../interfaces/contract";
|
import { UpdateableNetwork } from "../interfaces/contract";
|
||||||
import { NetworkInput, TransactionResultWithId } from "../types";
|
import { NetworkInput, TransactionResultWithId } from "../types";
|
||||||
@@ -40,6 +44,7 @@ import { Transaction } from "./transactions";
|
|||||||
import type {
|
import type {
|
||||||
DropERC721,
|
DropERC721,
|
||||||
IBurnableERC721,
|
IBurnableERC721,
|
||||||
|
IClaimableERC721,
|
||||||
IERC721Supply,
|
IERC721Supply,
|
||||||
IMintableERC721,
|
IMintableERC721,
|
||||||
ISignatureMintERC721,
|
ISignatureMintERC721,
|
||||||
@@ -50,6 +55,8 @@ import type {
|
|||||||
} from "@thirdweb-dev/contracts-js";
|
} from "@thirdweb-dev/contracts-js";
|
||||||
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
import { ThirdwebStorage } from "@thirdweb-dev/storage";
|
||||||
import { BigNumber, BigNumberish, constants } from "ethers";
|
import { BigNumber, BigNumberish, constants } from "ethers";
|
||||||
|
import { Erc721Claimable } from "./erc-721-claimable";
|
||||||
|
import { Erc721ClaimableWithConditions } from "./erc-721-claimable-with-conditions";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Standard ERC721 NFT functions
|
* Standard ERC721 NFT functions
|
||||||
@@ -77,6 +84,8 @@ export class Erc721<
|
|||||||
private lazyMintable: Erc721LazyMintable | undefined;
|
private lazyMintable: Erc721LazyMintable | undefined;
|
||||||
private tieredDropable: Erc721TieredDrop | undefined;
|
private tieredDropable: Erc721TieredDrop | undefined;
|
||||||
private signatureMintable: Erc721WithQuantitySignatureMintable | undefined;
|
private signatureMintable: Erc721WithQuantitySignatureMintable | undefined;
|
||||||
|
private claimWithConditions: Erc721ClaimableWithConditions | undefined;
|
||||||
|
private claimCustom: Erc721Claimable | undefined;
|
||||||
protected contractWrapper: ContractWrapper<T>;
|
protected contractWrapper: ContractWrapper<T>;
|
||||||
protected storage: ThirdwebStorage;
|
protected storage: ThirdwebStorage;
|
||||||
|
|
||||||
@@ -98,6 +107,8 @@ export class Erc721<
|
|||||||
this.lazyMintable = this.detectErc721LazyMintable();
|
this.lazyMintable = this.detectErc721LazyMintable();
|
||||||
this.tieredDropable = this.detectErc721TieredDrop();
|
this.tieredDropable = this.detectErc721TieredDrop();
|
||||||
this.signatureMintable = this.detectErc721SignatureMintable();
|
this.signatureMintable = this.detectErc721SignatureMintable();
|
||||||
|
this.claimWithConditions = this.detectErc721ClaimableWithConditions();
|
||||||
|
this.claimCustom = this.detectErc721Claimable();
|
||||||
this._chainId = chainId;
|
this._chainId = chainId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -654,8 +665,8 @@ export class Erc721<
|
|||||||
quantity: BigNumberish,
|
quantity: BigNumberish,
|
||||||
options?: ClaimOptions,
|
options?: ClaimOptions,
|
||||||
): Promise<Transaction<TransactionResultWithId<NFT>[]>> => {
|
): Promise<Transaction<TransactionResultWithId<NFT>[]>> => {
|
||||||
const claimWithConditions = this.lazyMintable?.claimWithConditions;
|
const claimWithConditions = this.claimWithConditions;
|
||||||
const claim = this.lazyMintable?.claim;
|
const claim = this.claimCustom;
|
||||||
if (claimWithConditions) {
|
if (claimWithConditions) {
|
||||||
return claimWithConditions.to.prepare(
|
return claimWithConditions.to.prepare(
|
||||||
destinationAddress,
|
destinationAddress,
|
||||||
@@ -685,8 +696,8 @@ export class Erc721<
|
|||||||
quantity: BigNumberish,
|
quantity: BigNumberish,
|
||||||
options?: ClaimOptions,
|
options?: ClaimOptions,
|
||||||
): Promise<Transaction> {
|
): Promise<Transaction> {
|
||||||
const claimWithConditions = this.lazyMintable?.claimWithConditions;
|
const claimWithConditions = this.claimWithConditions;
|
||||||
const claim = this.lazyMintable?.claim;
|
const claim = this.claimCustom;
|
||||||
if (claimWithConditions) {
|
if (claimWithConditions) {
|
||||||
return claimWithConditions.conditions.getClaimTransaction(
|
return claimWithConditions.conditions.getClaimTransaction(
|
||||||
destinationAddress,
|
destinationAddress,
|
||||||
@@ -770,7 +781,7 @@ export class Erc721<
|
|||||||
*/
|
*/
|
||||||
get claimConditions() {
|
get claimConditions() {
|
||||||
return assertEnabled(
|
return assertEnabled(
|
||||||
this.lazyMintable?.claimWithConditions,
|
this.claimWithConditions,
|
||||||
FEATURE_NFT_CLAIM_CONDITIONS_V2,
|
FEATURE_NFT_CLAIM_CONDITIONS_V2,
|
||||||
).conditions;
|
).conditions;
|
||||||
}
|
}
|
||||||
@@ -960,4 +971,46 @@ export class Erc721<
|
|||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private detectErc721ClaimableWithConditions():
|
||||||
|
| Erc721ClaimableWithConditions
|
||||||
|
| undefined {
|
||||||
|
if (
|
||||||
|
detectContractFeature<BaseClaimConditionERC721>(
|
||||||
|
this.contractWrapper,
|
||||||
|
"ERC721ClaimConditionsV1",
|
||||||
|
) ||
|
||||||
|
detectContractFeature<BaseClaimConditionERC721>(
|
||||||
|
this.contractWrapper,
|
||||||
|
"ERC721ClaimConditionsV2",
|
||||||
|
) ||
|
||||||
|
detectContractFeature<BaseClaimConditionERC721>(
|
||||||
|
this.contractWrapper,
|
||||||
|
"ERC721ClaimPhasesV1",
|
||||||
|
) ||
|
||||||
|
detectContractFeature<BaseClaimConditionERC721>(
|
||||||
|
this.contractWrapper,
|
||||||
|
"ERC721ClaimPhasesV2",
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
return new Erc721ClaimableWithConditions(
|
||||||
|
this,
|
||||||
|
this.contractWrapper,
|
||||||
|
this.storage,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
private detectErc721Claimable(): Erc721Claimable | undefined {
|
||||||
|
if (
|
||||||
|
detectContractFeature<IClaimableERC721>(
|
||||||
|
this.contractWrapper,
|
||||||
|
"ERC721ClaimCustom",
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
return new Erc721Claimable(this, this.contractWrapper);
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,9 +42,14 @@ export const AddressOrEnsSchema = z.union([AddressSchema, EnsSchema], {
|
|||||||
invalid_type_error: "Provided value was not a valid address or ENS name",
|
invalid_type_error: "Provided value was not a valid address or ENS name",
|
||||||
});
|
});
|
||||||
|
|
||||||
export const RawDateSchema = z.date().transform((i) => {
|
export const RawDateSchema = z.union([
|
||||||
return BigNumber.from(Math.floor(i.getTime() / 1000));
|
z.date().transform((i) => {
|
||||||
});
|
return BigNumber.from(Math.floor(i.getTime() / 1000));
|
||||||
|
}),
|
||||||
|
z.number().transform((i) => {
|
||||||
|
return BigNumber.from(i);
|
||||||
|
}),
|
||||||
|
]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default to now
|
* Default to now
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ describe("Custom Contracts", async () => {
|
|||||||
try {
|
try {
|
||||||
c.roles.get("admin");
|
c.roles.get("admin");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
expectError(e, "contract does not implement the 'Permissions' Extension");
|
expectError(e, "contract does not implement the 'permissions' Extension");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,21 @@
|
|||||||
# @thirdweb-dev/unity-js-bridge
|
# @thirdweb-dev/unity-js-bridge
|
||||||
|
|
||||||
|
## 0.2.24
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [[`b3d57949`](https://github.com/thirdweb-dev/js/commit/b3d57949bd047831fda7e600b4872200340903b5), [`602d8cbc`](https://github.com/thirdweb-dev/js/commit/602d8cbcfaa7c1e117c01f842f89508f7333fcfe)]:
|
||||||
|
- @thirdweb-dev/sdk@3.10.9
|
||||||
|
|
||||||
|
## 0.2.23
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [[`1547d76c`](https://github.com/thirdweb-dev/js/commit/1547d76cce52265076c347599014f578c1de6152), [`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d), [`1b8f812f`](https://github.com/thirdweb-dev/js/commit/1b8f812fb8c910d91fb7535d6446a0b6fc6b2310)]:
|
||||||
|
- @thirdweb-dev/sdk@3.10.8
|
||||||
|
- @thirdweb-dev/wallets@0.2.14
|
||||||
|
- @thirdweb-dev/auth@3.0.13
|
||||||
|
|
||||||
## 0.2.22
|
## 0.2.22
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/unity-js-bridge",
|
"name": "@thirdweb-dev/unity-js-bridge",
|
||||||
"version": "0.2.22",
|
"version": "0.2.24",
|
||||||
"main": "dist/thirdweb-unity-bridge.js",
|
"main": "dist/thirdweb-unity-bridge.js",
|
||||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
|
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
# @thirdweb-dev/wallets
|
# @thirdweb-dev/wallets
|
||||||
|
|
||||||
|
## 0.2.14
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#870](https://github.com/thirdweb-dev/js/pull/870) [`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d) Thanks [@jnsdls](https://github.com/jnsdls)! - fix crash during SSR when "window" is undefined
|
||||||
|
|
||||||
|
- Updated dependencies [[`235eb046`](https://github.com/thirdweb-dev/js/commit/235eb0460ae0638f63acf82957bcfea41b9e955d)]:
|
||||||
|
- @thirdweb-dev/chains@0.1.11
|
||||||
|
|
||||||
## 0.2.13
|
## 0.2.13
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@thirdweb-dev/wallets",
|
"name": "@thirdweb-dev/wallets",
|
||||||
"version": "0.2.13",
|
"version": "0.2.14",
|
||||||
"main": "dist/thirdweb-dev-wallets.cjs.js",
|
"main": "dist/thirdweb-dev-wallets.cjs.js",
|
||||||
"module": "dist/thirdweb-dev-wallets.esm.js",
|
"module": "dist/thirdweb-dev-wallets.esm.js",
|
||||||
"types": "dist/thirdweb-dev-wallets.cjs.d.ts",
|
"types": "dist/thirdweb-dev-wallets.cjs.d.ts",
|
||||||
|
|||||||
@@ -79,8 +79,8 @@ export class InjectedConnector extends Connector<
|
|||||||
shimDisconnect: true,
|
shimDisconnect: true,
|
||||||
shimChainChangedDisconnect: true,
|
shimChainChangedDisconnect: true,
|
||||||
getProvider: () => {
|
getProvider: () => {
|
||||||
if (assertWindowEthereum(window)) {
|
if (assertWindowEthereum(globalThis.window)) {
|
||||||
return window.ethereum;
|
return globalThis.window.ethereum;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Generated
+123
-96
@@ -212,6 +212,9 @@ importers:
|
|||||||
|
|
||||||
packages/cli:
|
packages/cli:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
'@thirdweb-dev/chains':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../chains
|
||||||
'@thirdweb-dev/sdk':
|
'@thirdweb-dev/sdk':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../sdk
|
version: link:../sdk
|
||||||
@@ -381,13 +384,13 @@ importers:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/eslint-plugin':
|
'@typescript-eslint/eslint-plugin':
|
||||||
specifier: ^5.33.0
|
specifier: ^5.33.0
|
||||||
version: 5.55.0(@typescript-eslint/[email protected])([email protected])(typescript@5.0.3)
|
version: 5.55.0(@typescript-eslint/[email protected])([email protected])(typescript@4.9.5)
|
||||||
'@typescript-eslint/parser':
|
'@typescript-eslint/parser':
|
||||||
specifier: ^5.33.0
|
specifier: ^5.33.0
|
||||||
version: 5.55.0([email protected])(typescript@5.0.3)
|
version: 5.55.0([email protected])(typescript@4.9.5)
|
||||||
eslint-config-next:
|
eslint-config-next:
|
||||||
specifier: 13.2.4
|
specifier: 13.2.4
|
||||||
version: 13.2.4([email protected])(typescript@5.0.3)
|
version: 13.2.4([email protected])(typescript@4.9.5)
|
||||||
eslint-config-prettier:
|
eslint-config-prettier:
|
||||||
specifier: ^8.3.0
|
specifier: ^8.3.0
|
||||||
version: 8.7.0([email protected])
|
version: 8.7.0([email protected])
|
||||||
@@ -1258,7 +1261,7 @@ importers:
|
|||||||
version: 18.2.0([email protected])
|
version: 18.2.0([email protected])
|
||||||
react-scripts:
|
react-scripts:
|
||||||
specifier: ^5
|
specifier: ^5
|
||||||
version: 5.0.1(@babel/[email protected])(@babel/[email protected])([email protected])([email protected])(typescript@5.0.3)
|
version: 5.0.1(@babel/[email protected])(@babel/[email protected])([email protected])([email protected])(typescript@4.9.5)
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@playwright/test':
|
'@playwright/test':
|
||||||
specifier: 1.31.2
|
specifier: 1.31.2
|
||||||
@@ -2441,7 +2444,7 @@ packages:
|
|||||||
'@babel/helper-annotate-as-pure': 7.18.6
|
'@babel/helper-annotate-as-pure': 7.18.6
|
||||||
'@babel/helper-environment-visitor': 7.18.9
|
'@babel/helper-environment-visitor': 7.18.9
|
||||||
'@babel/helper-wrap-function': 7.20.5
|
'@babel/helper-wrap-function': 7.20.5
|
||||||
'@babel/types': 7.21.4
|
'@babel/types': 7.21.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
@@ -3109,7 +3112,6 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.21.4
|
'@babel/core': 7.21.4
|
||||||
'@babel/helper-plugin-utils': 7.20.2
|
'@babel/helper-plugin-utils': 7.20.2
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@babel/[email protected](@babel/[email protected]):
|
/@babel/[email protected](@babel/[email protected]):
|
||||||
resolution: {integrity: sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==}
|
resolution: {integrity: sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==}
|
||||||
@@ -4041,6 +4043,22 @@ packages:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
|
/@babel/[email protected](@babel/[email protected]):
|
||||||
|
resolution: {integrity: sha512-1J4dhrw1h1PqnNNpzwxQ2UBymJUF8KuPjAAnlLwZcGhHAIqUigFW7cdK6GHoB64ubY4qXQNYknoUeks4Wz7CUA==}
|
||||||
|
engines: {node: '>=6.9.0'}
|
||||||
|
peerDependencies:
|
||||||
|
'@babel/core': ^7.0.0-0
|
||||||
|
dependencies:
|
||||||
|
'@babel/core': 7.21.4
|
||||||
|
'@babel/helper-module-imports': 7.21.4
|
||||||
|
'@babel/helper-plugin-utils': 7.20.2
|
||||||
|
babel-plugin-polyfill-corejs2: 0.3.3(@babel/[email protected])
|
||||||
|
babel-plugin-polyfill-corejs3: 0.6.0(@babel/[email protected])
|
||||||
|
babel-plugin-polyfill-regenerator: 0.4.1(@babel/[email protected])
|
||||||
|
semver: 6.3.0
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
/@babel/[email protected](@babel/[email protected]):
|
/@babel/[email protected](@babel/[email protected]):
|
||||||
resolution: {integrity: sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==}
|
resolution: {integrity: sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
@@ -6737,7 +6755,7 @@ packages:
|
|||||||
chalk: 4.1.2
|
chalk: 4.1.2
|
||||||
convert-source-map: 1.9.0
|
convert-source-map: 1.9.0
|
||||||
fast-json-stable-stringify: 2.1.0
|
fast-json-stable-stringify: 2.1.0
|
||||||
graceful-fs: 4.2.10
|
graceful-fs: 4.2.11
|
||||||
jest-haste-map: 27.5.1
|
jest-haste-map: 27.5.1
|
||||||
jest-regex-util: 27.5.1
|
jest-regex-util: 27.5.1
|
||||||
jest-util: 27.5.1
|
jest-util: 27.5.1
|
||||||
@@ -11657,7 +11675,7 @@ packages:
|
|||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])(typescript@5.0.3):
|
/@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])(typescript@4.9.5):
|
||||||
resolution: {integrity: sha512-IZGc50rtbjk+xp5YQoJvmMPmJEYoC53SiKPXyqWfv15XoD2Y5Kju6zN0DwlmaGJp1Iw33JsWJcQ7nw0lGCGjVg==}
|
resolution: {integrity: sha512-IZGc50rtbjk+xp5YQoJvmMPmJEYoC53SiKPXyqWfv15XoD2Y5Kju6zN0DwlmaGJp1Iw33JsWJcQ7nw0lGCGjVg==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -11669,29 +11687,29 @@ packages:
|
|||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-community/regexpp': 4.4.0
|
'@eslint-community/regexpp': 4.4.0
|
||||||
'@typescript-eslint/parser': 5.55.0([email protected])(typescript@5.0.3)
|
'@typescript-eslint/parser': 5.55.0([email protected])(typescript@4.9.5)
|
||||||
'@typescript-eslint/scope-manager': 5.55.0
|
'@typescript-eslint/scope-manager': 5.55.0
|
||||||
'@typescript-eslint/type-utils': 5.55.0([email protected])(typescript@5.0.3)
|
'@typescript-eslint/type-utils': 5.55.0([email protected])(typescript@4.9.5)
|
||||||
'@typescript-eslint/utils': 5.55.0([email protected])(typescript@5.0.3)
|
'@typescript-eslint/utils': 5.55.0([email protected])(typescript@4.9.5)
|
||||||
debug: 4.3.4([email protected])
|
debug: 4.3.4([email protected])
|
||||||
eslint: 8.37.0
|
eslint: 8.37.0
|
||||||
grapheme-splitter: 1.0.4
|
grapheme-splitter: 1.0.4
|
||||||
ignore: 5.2.4
|
ignore: 5.2.4
|
||||||
natural-compare-lite: 1.4.0
|
natural-compare-lite: 1.4.0
|
||||||
semver: 7.3.8
|
semver: 7.3.8
|
||||||
tsutils: 3.21.0(typescript@5.0.3)
|
tsutils: 3.21.0(typescript@4.9.5)
|
||||||
typescript: 5.0.3
|
typescript: 4.9.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@typescript-eslint/[email protected]([email protected])(typescript@5.0.3):
|
/@typescript-eslint/[email protected]([email protected])(typescript@4.9.5):
|
||||||
resolution: {integrity: sha512-3ZqXIZhdGyGQAIIGATeMtg7prA6VlyxGtcy5hYIR/3qUqp3t18pWWUYhL9mpsDm7y8F9mr3ISMt83TiqCt7OPQ==}
|
resolution: {integrity: sha512-3ZqXIZhdGyGQAIIGATeMtg7prA6VlyxGtcy5hYIR/3qUqp3t18pWWUYhL9mpsDm7y8F9mr3ISMt83TiqCt7OPQ==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
|
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/utils': 5.55.0([email protected])(typescript@5.0.3)
|
'@typescript-eslint/utils': 5.55.0([email protected])(typescript@4.9.5)
|
||||||
eslint: 8.37.0
|
eslint: 8.37.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -11717,7 +11735,7 @@ packages:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
/@typescript-eslint/[email protected]([email protected])(typescript@5.0.3):
|
/@typescript-eslint/[email protected]([email protected])(typescript@4.9.5):
|
||||||
resolution: {integrity: sha512-ppvmeF7hvdhUUZWSd2EEWfzcFkjJzgNQzVST22nzg958CR+sphy8A6K7LXQZd6V75m1VKjp+J4g/PCEfSCmzhw==}
|
resolution: {integrity: sha512-ppvmeF7hvdhUUZWSd2EEWfzcFkjJzgNQzVST22nzg958CR+sphy8A6K7LXQZd6V75m1VKjp+J4g/PCEfSCmzhw==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -11729,10 +11747,10 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/scope-manager': 5.55.0
|
'@typescript-eslint/scope-manager': 5.55.0
|
||||||
'@typescript-eslint/types': 5.55.0
|
'@typescript-eslint/types': 5.55.0
|
||||||
'@typescript-eslint/typescript-estree': 5.55.0(typescript@5.0.3)
|
'@typescript-eslint/typescript-estree': 5.55.0(typescript@4.9.5)
|
||||||
debug: 4.3.4([email protected])
|
debug: 4.3.4([email protected])
|
||||||
eslint: 8.37.0
|
eslint: 8.37.0
|
||||||
typescript: 5.0.3
|
typescript: 4.9.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: false
|
dev: false
|
||||||
@@ -11764,7 +11782,7 @@ packages:
|
|||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/[email protected]([email protected])(typescript@5.0.3):
|
/@typescript-eslint/[email protected]([email protected])(typescript@4.9.5):
|
||||||
resolution: {integrity: sha512-ObqxBgHIXj8rBNm0yh8oORFrICcJuZPZTqtAFh0oZQyr5DnAHZWfyw54RwpEEH+fD8suZaI0YxvWu5tYE/WswA==}
|
resolution: {integrity: sha512-ObqxBgHIXj8rBNm0yh8oORFrICcJuZPZTqtAFh0oZQyr5DnAHZWfyw54RwpEEH+fD8suZaI0YxvWu5tYE/WswA==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -11774,12 +11792,12 @@ packages:
|
|||||||
typescript:
|
typescript:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/typescript-estree': 5.55.0(typescript@5.0.3)
|
'@typescript-eslint/typescript-estree': 5.55.0(typescript@4.9.5)
|
||||||
'@typescript-eslint/utils': 5.55.0([email protected])(typescript@5.0.3)
|
'@typescript-eslint/utils': 5.55.0([email protected])(typescript@4.9.5)
|
||||||
debug: 4.3.4([email protected])
|
debug: 4.3.4([email protected])
|
||||||
eslint: 8.37.0
|
eslint: 8.37.0
|
||||||
tsutils: 3.21.0(typescript@5.0.3)
|
tsutils: 3.21.0(typescript@4.9.5)
|
||||||
typescript: 5.0.3
|
typescript: 4.9.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: false
|
dev: false
|
||||||
@@ -11808,27 +11826,6 @@ packages:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
/@typescript-eslint/[email protected]([email protected]):
|
|
||||||
resolution: {integrity: sha512-I7X4A9ovA8gdpWMpr7b1BN9eEbvlEtWhQvpxp/yogt48fy9Lj3iE3ild/1H3jKBBIYj5YYJmS2+9ystVhC7eaQ==}
|
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
|
||||||
peerDependencies:
|
|
||||||
typescript: '*'
|
|
||||||
peerDependenciesMeta:
|
|
||||||
typescript:
|
|
||||||
optional: true
|
|
||||||
dependencies:
|
|
||||||
'@typescript-eslint/types': 5.55.0
|
|
||||||
'@typescript-eslint/visitor-keys': 5.55.0
|
|
||||||
debug: 4.3.4([email protected])
|
|
||||||
globby: 11.1.0
|
|
||||||
is-glob: 4.0.3
|
|
||||||
semver: 7.3.8
|
|
||||||
tsutils: 3.21.0([email protected])
|
|
||||||
typescript: 5.0.3
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- supports-color
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@typescript-eslint/[email protected]([email protected])([email protected]):
|
/@typescript-eslint/[email protected]([email protected])([email protected]):
|
||||||
resolution: {integrity: sha512-FkW+i2pQKcpDC3AY6DU54yl8Lfl14FVGYDgBTyGKB75cCwV3KpkpTMFi9d9j2WAJ4271LR2HeC5SEWF/CZmmfw==}
|
resolution: {integrity: sha512-FkW+i2pQKcpDC3AY6DU54yl8Lfl14FVGYDgBTyGKB75cCwV3KpkpTMFi9d9j2WAJ4271LR2HeC5SEWF/CZmmfw==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
@@ -11849,7 +11846,7 @@ packages:
|
|||||||
- typescript
|
- typescript
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/[email protected]([email protected])(typescript@5.0.3):
|
/@typescript-eslint/[email protected]([email protected])(typescript@4.9.5):
|
||||||
resolution: {integrity: sha512-FkW+i2pQKcpDC3AY6DU54yl8Lfl14FVGYDgBTyGKB75cCwV3KpkpTMFi9d9j2WAJ4271LR2HeC5SEWF/CZmmfw==}
|
resolution: {integrity: sha512-FkW+i2pQKcpDC3AY6DU54yl8Lfl14FVGYDgBTyGKB75cCwV3KpkpTMFi9d9j2WAJ4271LR2HeC5SEWF/CZmmfw==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -11860,7 +11857,7 @@ packages:
|
|||||||
'@types/semver': 7.3.13
|
'@types/semver': 7.3.13
|
||||||
'@typescript-eslint/scope-manager': 5.55.0
|
'@typescript-eslint/scope-manager': 5.55.0
|
||||||
'@typescript-eslint/types': 5.55.0
|
'@typescript-eslint/types': 5.55.0
|
||||||
'@typescript-eslint/typescript-estree': 5.55.0(typescript@5.0.3)
|
'@typescript-eslint/typescript-estree': 5.55.0(typescript@4.9.5)
|
||||||
eslint: 8.37.0
|
eslint: 8.37.0
|
||||||
eslint-scope: 5.1.1
|
eslint-scope: 5.1.1
|
||||||
semver: 7.3.8
|
semver: 7.3.8
|
||||||
@@ -16768,7 +16765,7 @@ packages:
|
|||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/[email protected]([email protected])(typescript@5.0.3):
|
/[email protected]([email protected])(typescript@4.9.5):
|
||||||
resolution: {integrity: sha512-lunIBhsoeqw6/Lfkd6zPt25w1bn0znLA/JCL+au1HoEpSb4/PpsOYsYtgV/q+YPsoKIOzFyU5xnb04iZnXjUvg==}
|
resolution: {integrity: sha512-lunIBhsoeqw6/Lfkd6zPt25w1bn0znLA/JCL+au1HoEpSb4/PpsOYsYtgV/q+YPsoKIOzFyU5xnb04iZnXjUvg==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^7.23.0 || ^8.0.0
|
eslint: ^7.23.0 || ^8.0.0
|
||||||
@@ -16779,7 +16776,7 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@next/eslint-plugin-next': 13.2.4
|
'@next/eslint-plugin-next': 13.2.4
|
||||||
'@rushstack/eslint-patch': 1.2.0
|
'@rushstack/eslint-patch': 1.2.0
|
||||||
'@typescript-eslint/parser': 5.55.0([email protected])(typescript@5.0.3)
|
'@typescript-eslint/parser': 5.55.0([email protected])(typescript@4.9.5)
|
||||||
eslint: 8.37.0
|
eslint: 8.37.0
|
||||||
eslint-import-resolver-node: 0.3.7
|
eslint-import-resolver-node: 0.3.7
|
||||||
eslint-import-resolver-typescript: 3.5.3([email protected])([email protected])
|
eslint-import-resolver-typescript: 3.5.3([email protected])([email protected])
|
||||||
@@ -16787,7 +16784,7 @@ packages:
|
|||||||
eslint-plugin-jsx-a11y: 6.7.1([email protected])
|
eslint-plugin-jsx-a11y: 6.7.1([email protected])
|
||||||
eslint-plugin-react: 7.32.2([email protected])
|
eslint-plugin-react: 7.32.2([email protected])
|
||||||
eslint-plugin-react-hooks: 4.6.0([email protected])
|
eslint-plugin-react-hooks: 4.6.0([email protected])
|
||||||
typescript: 5.0.3
|
typescript: 4.9.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- eslint-import-resolver-webpack
|
- eslint-import-resolver-webpack
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -16811,7 +16808,7 @@ packages:
|
|||||||
eslint: 8.37.0
|
eslint: 8.37.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/[email protected](@babel/[email protected])(@babel/[email protected])([email protected])([email protected])(typescript@5.0.3):
|
/[email protected](@babel/[email protected])(@babel/[email protected])([email protected])([email protected])(typescript@4.9.5):
|
||||||
resolution: {integrity: sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==}
|
resolution: {integrity: sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==}
|
||||||
engines: {node: '>=14.0.0'}
|
engines: {node: '>=14.0.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -16824,19 +16821,19 @@ packages:
|
|||||||
'@babel/core': 7.21.3
|
'@babel/core': 7.21.3
|
||||||
'@babel/eslint-parser': 7.21.3(@babel/[email protected])([email protected])
|
'@babel/eslint-parser': 7.21.3(@babel/[email protected])([email protected])
|
||||||
'@rushstack/eslint-patch': 1.2.0
|
'@rushstack/eslint-patch': 1.2.0
|
||||||
'@typescript-eslint/eslint-plugin': 5.55.0(@typescript-eslint/[email protected])([email protected])(typescript@5.0.3)
|
'@typescript-eslint/eslint-plugin': 5.55.0(@typescript-eslint/[email protected])([email protected])(typescript@4.9.5)
|
||||||
'@typescript-eslint/parser': 5.55.0([email protected])(typescript@5.0.3)
|
'@typescript-eslint/parser': 5.55.0([email protected])(typescript@4.9.5)
|
||||||
babel-preset-react-app: 10.0.1
|
babel-preset-react-app: 10.0.1
|
||||||
confusing-browser-globals: 1.0.11
|
confusing-browser-globals: 1.0.11
|
||||||
eslint: 8.37.0
|
eslint: 8.37.0
|
||||||
eslint-plugin-flowtype: 8.0.3(@babel/[email protected])(@babel/[email protected])([email protected])
|
eslint-plugin-flowtype: 8.0.3(@babel/[email protected])(@babel/[email protected])([email protected])
|
||||||
eslint-plugin-import: 2.27.5(@typescript-eslint/[email protected])([email protected])([email protected])
|
eslint-plugin-import: 2.27.5(@typescript-eslint/[email protected])([email protected])([email protected])
|
||||||
eslint-plugin-jest: 25.7.0(@typescript-eslint/[email protected])([email protected])([email protected])(typescript@5.0.3)
|
eslint-plugin-jest: 25.7.0(@typescript-eslint/[email protected])([email protected])([email protected])(typescript@4.9.5)
|
||||||
eslint-plugin-jsx-a11y: 6.7.1([email protected])
|
eslint-plugin-jsx-a11y: 6.7.1([email protected])
|
||||||
eslint-plugin-react: 7.32.2([email protected])
|
eslint-plugin-react: 7.32.2([email protected])
|
||||||
eslint-plugin-react-hooks: 4.6.0([email protected])
|
eslint-plugin-react-hooks: 4.6.0([email protected])
|
||||||
eslint-plugin-testing-library: 5.10.2([email protected])(typescript@5.0.3)
|
eslint-plugin-testing-library: 5.10.2([email protected])(typescript@4.9.5)
|
||||||
typescript: 5.0.3
|
typescript: 4.9.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@babel/plugin-syntax-flow'
|
- '@babel/plugin-syntax-flow'
|
||||||
- '@babel/plugin-transform-react-jsx'
|
- '@babel/plugin-transform-react-jsx'
|
||||||
@@ -17009,7 +17006,7 @@ packages:
|
|||||||
humps: 2.0.1
|
humps: 2.0.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/[email protected](@typescript-eslint/[email protected])([email protected])([email protected])(typescript@5.0.3):
|
/[email protected](@typescript-eslint/[email protected])([email protected])([email protected])(typescript@4.9.5):
|
||||||
resolution: {integrity: sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==}
|
resolution: {integrity: sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==}
|
||||||
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
|
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -17022,8 +17019,8 @@ packages:
|
|||||||
jest:
|
jest:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/eslint-plugin': 5.55.0(@typescript-eslint/[email protected])([email protected])(typescript@5.0.3)
|
'@typescript-eslint/eslint-plugin': 5.55.0(@typescript-eslint/[email protected])([email protected])(typescript@4.9.5)
|
||||||
'@typescript-eslint/experimental-utils': 5.55.0([email protected])(typescript@5.0.3)
|
'@typescript-eslint/experimental-utils': 5.55.0([email protected])(typescript@4.9.5)
|
||||||
eslint: 8.37.0
|
eslint: 8.37.0
|
||||||
jest: 27.5.1
|
jest: 27.5.1
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
@@ -17202,13 +17199,13 @@ packages:
|
|||||||
string.prototype.matchall: 4.0.8
|
string.prototype.matchall: 4.0.8
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/[email protected]([email protected])(typescript@5.0.3):
|
/[email protected]([email protected])(typescript@4.9.5):
|
||||||
resolution: {integrity: sha512-f1DmDWcz5SDM+IpCkEX0lbFqrrTs8HRsEElzDEqN/EBI0hpRj8Cns5+IVANXswE8/LeybIJqPAOQIFu2j5Y5sw==}
|
resolution: {integrity: sha512-f1DmDWcz5SDM+IpCkEX0lbFqrrTs8HRsEElzDEqN/EBI0hpRj8Cns5+IVANXswE8/LeybIJqPAOQIFu2j5Y5sw==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0, npm: '>=6'}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0, npm: '>=6'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^7.5.0 || ^8.0.0
|
eslint: ^7.5.0 || ^8.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/utils': 5.55.0([email protected])(typescript@5.0.3)
|
'@typescript-eslint/utils': 5.55.0([email protected])(typescript@4.9.5)
|
||||||
eslint: 8.37.0
|
eslint: 8.37.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -18306,7 +18303,7 @@ packages:
|
|||||||
signal-exit: 3.0.7
|
signal-exit: 3.0.7
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/[email protected]([email protected])(typescript@5.0.3)([email protected]):
|
/[email protected]([email protected])(typescript@4.9.5)([email protected]):
|
||||||
resolution: {integrity: sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==}
|
resolution: {integrity: sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==}
|
||||||
engines: {node: '>=10', yarn: '>=1.0.0'}
|
engines: {node: '>=10', yarn: '>=1.0.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -18334,7 +18331,7 @@ packages:
|
|||||||
schema-utils: 2.7.0
|
schema-utils: 2.7.0
|
||||||
semver: 7.3.8
|
semver: 7.3.8
|
||||||
tapable: 1.1.3
|
tapable: 1.1.3
|
||||||
typescript: 5.0.3
|
typescript: 4.9.5
|
||||||
webpack: 5.76.2
|
webpack: 5.76.2
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
@@ -20489,7 +20486,7 @@ packages:
|
|||||||
'@types/node': 18.15.11
|
'@types/node': 18.15.11
|
||||||
anymatch: 3.1.3
|
anymatch: 3.1.3
|
||||||
fb-watchman: 2.0.2
|
fb-watchman: 2.0.2
|
||||||
graceful-fs: 4.2.10
|
graceful-fs: 4.2.11
|
||||||
jest-regex-util: 27.5.1
|
jest-regex-util: 27.5.1
|
||||||
jest-serializer: 27.5.1
|
jest-serializer: 27.5.1
|
||||||
jest-util: 27.5.1
|
jest-util: 27.5.1
|
||||||
@@ -20856,7 +20853,7 @@ packages:
|
|||||||
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
|
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 18.15.11
|
'@types/node': 18.15.11
|
||||||
graceful-fs: 4.2.10
|
graceful-fs: 4.2.11
|
||||||
|
|
||||||
/[email protected]:
|
/[email protected]:
|
||||||
resolution: {integrity: sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==}
|
resolution: {integrity: sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==}
|
||||||
@@ -20927,7 +20924,7 @@ packages:
|
|||||||
'@types/node': 18.15.11
|
'@types/node': 18.15.11
|
||||||
chalk: 4.1.2
|
chalk: 4.1.2
|
||||||
ci-info: 3.8.0
|
ci-info: 3.8.0
|
||||||
graceful-fs: 4.2.10
|
graceful-fs: 4.2.11
|
||||||
picomatch: 2.3.1
|
picomatch: 2.3.1
|
||||||
|
|
||||||
/[email protected]:
|
/[email protected]:
|
||||||
@@ -21408,7 +21405,7 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
universalify: 2.0.0
|
universalify: 2.0.0
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
graceful-fs: 4.2.10
|
graceful-fs: 4.2.11
|
||||||
|
|
||||||
/[email protected]:
|
/[email protected]:
|
||||||
resolution: {integrity: sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==}
|
resolution: {integrity: sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==}
|
||||||
@@ -22029,7 +22026,7 @@ packages:
|
|||||||
/[email protected]:
|
/[email protected]:
|
||||||
resolution: {integrity: sha512-DlYwg9wwYIZTHtic7dyD4BP0SDftoltZ3clma76nHu43blMWsCnrImHeHsAVne3XsQ+RJaSRxhN5nkG2VyVHwA==}
|
resolution: {integrity: sha512-DlYwg9wwYIZTHtic7dyD4BP0SDftoltZ3clma76nHu43blMWsCnrImHeHsAVne3XsQ+RJaSRxhN5nkG2VyVHwA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.21.3
|
'@babel/core': 7.21.4
|
||||||
hermes-parser: 0.8.0
|
hermes-parser: 0.8.0
|
||||||
metro-source-map: 0.73.9
|
metro-source-map: 0.73.9
|
||||||
nullthrows: 1.1.1
|
nullthrows: 1.1.1
|
||||||
@@ -22375,6 +22372,52 @@ packages:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
|
/[email protected](@babel/[email protected]):
|
||||||
|
resolution: {integrity: sha512-AoD7v132iYDV4K78yN2OLgTPwtAKn0XlD2pOhzyBxiI8PeXzozhbKyPV7zUOJUPETj+pcEVfuYj5ZN/8+bhbCw==}
|
||||||
|
peerDependencies:
|
||||||
|
'@babel/core': '*'
|
||||||
|
dependencies:
|
||||||
|
'@babel/core': 7.21.4
|
||||||
|
'@babel/plugin-proposal-async-generator-functions': 7.20.7(@babel/[email protected])
|
||||||
|
'@babel/plugin-proposal-class-properties': 7.18.6(@babel/[email protected])
|
||||||
|
'@babel/plugin-proposal-export-default-from': 7.18.10(@babel/[email protected])
|
||||||
|
'@babel/plugin-proposal-nullish-coalescing-operator': 7.18.6(@babel/[email protected])
|
||||||
|
'@babel/plugin-proposal-object-rest-spread': 7.20.7(@babel/[email protected])
|
||||||
|
'@babel/plugin-proposal-optional-catch-binding': 7.18.6(@babel/[email protected])
|
||||||
|
'@babel/plugin-proposal-optional-chaining': 7.21.0(@babel/[email protected])
|
||||||
|
'@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])
|
||||||
|
'@babel/plugin-syntax-export-default-from': 7.18.6(@babel/[email protected])
|
||||||
|
'@babel/plugin-syntax-flow': 7.21.4(@babel/[email protected])
|
||||||
|
'@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])
|
||||||
|
'@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-arrow-functions': 7.20.7(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-async-to-generator': 7.20.7(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-block-scoping': 7.21.0(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-classes': 7.21.0(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-computed-properties': 7.20.7(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-destructuring': 7.21.3(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-flow-strip-types': 7.21.0(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-function-name': 7.18.9(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-literals': 7.18.9(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-modules-commonjs': 7.21.2(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-named-capturing-groups-regex': 7.20.5(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-parameters': 7.21.3(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-react-display-name': 7.18.6(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-react-jsx': 7.21.0(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-react-jsx-self': 7.21.0(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-react-jsx-source': 7.19.6(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-runtime': 7.21.4(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-shorthand-properties': 7.18.6(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-spread': 7.20.7(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-sticky-regex': 7.18.6(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-template-literals': 7.18.9(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-typescript': 7.21.3(@babel/[email protected])
|
||||||
|
'@babel/plugin-transform-unicode-regex': 7.18.6(@babel/[email protected])
|
||||||
|
'@babel/template': 7.20.7
|
||||||
|
react-refresh: 0.4.3
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
/[email protected](@babel/[email protected]):
|
/[email protected](@babel/[email protected]):
|
||||||
resolution: {integrity: sha512-oH/LCCJPauteAE28c0KJAiSrkV+1VJbU0PwA9UwaWnle+qevs/clpKQ8LrIr33YbBj4CiI1kFoVRuNRt5h4NFg==}
|
resolution: {integrity: sha512-oH/LCCJPauteAE28c0KJAiSrkV+1VJbU0PwA9UwaWnle+qevs/clpKQ8LrIr33YbBj4CiI1kFoVRuNRt5h4NFg==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -22512,7 +22555,7 @@ packages:
|
|||||||
/[email protected]:
|
/[email protected]:
|
||||||
resolution: {integrity: sha512-r9NeiqMngmooX2VOKLJVQrMuV7PAydbqst5bFhdVBPcFpZkxxqyzjzo+kzrszGy2UpSQBZr2P1L6OMjLHwQwfQ==}
|
resolution: {integrity: sha512-r9NeiqMngmooX2VOKLJVQrMuV7PAydbqst5bFhdVBPcFpZkxxqyzjzo+kzrszGy2UpSQBZr2P1L6OMjLHwQwfQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.21.3
|
'@babel/core': 7.21.4
|
||||||
'@babel/generator': 7.21.4
|
'@babel/generator': 7.21.4
|
||||||
'@babel/template': 7.20.7
|
'@babel/template': 7.20.7
|
||||||
'@babel/traverse': 7.21.4
|
'@babel/traverse': 7.21.4
|
||||||
@@ -22545,11 +22588,11 @@ packages:
|
|||||||
/[email protected]:
|
/[email protected]:
|
||||||
resolution: {integrity: sha512-Rq4b489sIaTUENA+WCvtu9yvlT/C6zFMWhU4sq+97W29Zj0mPBjdk+qGT5n1ZBgtBIJzZWt1KxeYuc17f4aYtQ==}
|
resolution: {integrity: sha512-Rq4b489sIaTUENA+WCvtu9yvlT/C6zFMWhU4sq+97W29Zj0mPBjdk+qGT5n1ZBgtBIJzZWt1KxeYuc17f4aYtQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.21.3
|
'@babel/core': 7.21.4
|
||||||
'@babel/generator': 7.21.4
|
'@babel/generator': 7.21.4
|
||||||
'@babel/parser': 7.21.4
|
'@babel/parser': 7.21.4
|
||||||
'@babel/types': 7.21.4
|
'@babel/types': 7.21.4
|
||||||
babel-preset-fbjs: 3.4.0(@babel/[email protected].3)
|
babel-preset-fbjs: 3.4.0(@babel/[email protected].4)
|
||||||
metro: 0.73.9
|
metro: 0.73.9
|
||||||
metro-babel-transformer: 0.73.9
|
metro-babel-transformer: 0.73.9
|
||||||
metro-cache: 0.73.9
|
metro-cache: 0.73.9
|
||||||
@@ -22629,7 +22672,7 @@ packages:
|
|||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/code-frame': 7.21.4
|
'@babel/code-frame': 7.21.4
|
||||||
'@babel/core': 7.21.3
|
'@babel/core': 7.21.4
|
||||||
'@babel/generator': 7.21.4
|
'@babel/generator': 7.21.4
|
||||||
'@babel/parser': 7.21.4
|
'@babel/parser': 7.21.4
|
||||||
'@babel/template': 7.20.7
|
'@babel/template': 7.20.7
|
||||||
@@ -22660,7 +22703,7 @@ packages:
|
|||||||
metro-inspector-proxy: 0.73.9
|
metro-inspector-proxy: 0.73.9
|
||||||
metro-minify-terser: 0.73.9
|
metro-minify-terser: 0.73.9
|
||||||
metro-minify-uglify: 0.73.9
|
metro-minify-uglify: 0.73.9
|
||||||
metro-react-native-babel-preset: 0.73.9(@babel/[email protected].3)
|
metro-react-native-babel-preset: 0.73.9(@babel/[email protected].4)
|
||||||
metro-resolver: 0.73.9
|
metro-resolver: 0.73.9
|
||||||
metro-runtime: 0.73.9
|
metro-runtime: 0.73.9
|
||||||
metro-source-map: 0.73.9
|
metro-source-map: 0.73.9
|
||||||
@@ -25516,7 +25559,7 @@ packages:
|
|||||||
whatwg-fetch: 3.6.2
|
whatwg-fetch: 3.6.2
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/[email protected]([email protected])(typescript@5.0.3)([email protected]):
|
/[email protected]([email protected])(typescript@4.9.5)([email protected]):
|
||||||
resolution: {integrity: sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==}
|
resolution: {integrity: sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -25535,7 +25578,7 @@ packages:
|
|||||||
escape-string-regexp: 4.0.0
|
escape-string-regexp: 4.0.0
|
||||||
filesize: 8.0.7
|
filesize: 8.0.7
|
||||||
find-up: 5.0.0
|
find-up: 5.0.0
|
||||||
fork-ts-checker-webpack-plugin: 6.5.3([email protected])(typescript@5.0.3)([email protected])
|
fork-ts-checker-webpack-plugin: 6.5.3([email protected])(typescript@4.9.5)([email protected])
|
||||||
global-modules: 2.0.0
|
global-modules: 2.0.0
|
||||||
globby: 11.1.0
|
globby: 11.1.0
|
||||||
gzip-size: 6.0.0
|
gzip-size: 6.0.0
|
||||||
@@ -25550,7 +25593,7 @@ packages:
|
|||||||
shell-quote: 1.8.0
|
shell-quote: 1.8.0
|
||||||
strip-ansi: 6.0.1
|
strip-ansi: 6.0.1
|
||||||
text-table: 0.2.0
|
text-table: 0.2.0
|
||||||
typescript: 5.0.3
|
typescript: 4.9.5
|
||||||
webpack: 5.76.2
|
webpack: 5.76.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- eslint
|
- eslint
|
||||||
@@ -25942,7 +25985,7 @@ packages:
|
|||||||
use-sidecar: 1.1.2(@types/[email protected])([email protected])
|
use-sidecar: 1.1.2(@types/[email protected])([email protected])
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/[email protected](@babel/[email protected])(@babel/[email protected])([email protected])([email protected])(typescript@5.0.3):
|
/[email protected](@babel/[email protected])(@babel/[email protected])([email protected])([email protected])(typescript@4.9.5):
|
||||||
resolution: {integrity: sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==}
|
resolution: {integrity: sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==}
|
||||||
engines: {node: '>=14.0.0'}
|
engines: {node: '>=14.0.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
@@ -25970,7 +26013,7 @@ packages:
|
|||||||
dotenv: 10.0.0
|
dotenv: 10.0.0
|
||||||
dotenv-expand: 5.1.0
|
dotenv-expand: 5.1.0
|
||||||
eslint: 8.37.0
|
eslint: 8.37.0
|
||||||
eslint-config-react-app: 7.0.1(@babel/[email protected])(@babel/[email protected])([email protected])([email protected])(typescript@5.0.3)
|
eslint-config-react-app: 7.0.1(@babel/[email protected])(@babel/[email protected])([email protected])([email protected])(typescript@4.9.5)
|
||||||
eslint-webpack-plugin: 3.2.0([email protected])([email protected])
|
eslint-webpack-plugin: 3.2.0([email protected])([email protected])
|
||||||
file-loader: 6.2.0([email protected])
|
file-loader: 6.2.0([email protected])
|
||||||
fs-extra: 10.1.0
|
fs-extra: 10.1.0
|
||||||
@@ -25988,7 +26031,7 @@ packages:
|
|||||||
prompts: 2.4.2
|
prompts: 2.4.2
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
react-app-polyfill: 3.0.0
|
react-app-polyfill: 3.0.0
|
||||||
react-dev-utils: 12.0.1([email protected])(typescript@5.0.3)([email protected])
|
react-dev-utils: 12.0.1([email protected])(typescript@4.9.5)([email protected])
|
||||||
react-refresh: 0.11.0
|
react-refresh: 0.11.0
|
||||||
resolve: 1.22.1
|
resolve: 1.22.1
|
||||||
resolve-url-loader: 4.0.0
|
resolve-url-loader: 4.0.0
|
||||||
@@ -25998,7 +26041,7 @@ packages:
|
|||||||
style-loader: 3.3.2([email protected])
|
style-loader: 3.3.2([email protected])
|
||||||
tailwindcss: 3.2.7([email protected])
|
tailwindcss: 3.2.7([email protected])
|
||||||
terser-webpack-plugin: 5.3.7([email protected])
|
terser-webpack-plugin: 5.3.7([email protected])
|
||||||
typescript: 5.0.3
|
typescript: 4.9.5
|
||||||
webpack: 5.76.2
|
webpack: 5.76.2
|
||||||
webpack-dev-server: 4.12.0([email protected])
|
webpack-dev-server: 4.12.0([email protected])
|
||||||
webpack-manifest-plugin: 4.1.1([email protected])
|
webpack-manifest-plugin: 4.1.1([email protected])
|
||||||
@@ -28361,16 +28404,6 @@ packages:
|
|||||||
tslib: 1.14.1
|
tslib: 1.14.1
|
||||||
typescript: 4.9.5
|
typescript: 4.9.5
|
||||||
|
|
||||||
/[email protected]([email protected]):
|
|
||||||
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
|
|
||||||
engines: {node: '>= 6'}
|
|
||||||
peerDependencies:
|
|
||||||
typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
|
|
||||||
dependencies:
|
|
||||||
tslib: 1.14.1
|
|
||||||
typescript: 5.0.3
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/[email protected]:
|
/[email protected]:
|
||||||
resolution: {integrity: sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==}
|
resolution: {integrity: sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==}
|
||||||
dev: true
|
dev: true
|
||||||
@@ -28580,12 +28613,6 @@ packages:
|
|||||||
engines: {node: '>=4.2.0'}
|
engines: {node: '>=4.2.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
/[email protected]:
|
|
||||||
resolution: {integrity: sha512-xv8mOEDnigb/tN9PSMTwSEqAnUvkoXMQlicOb0IUVDBSQCgBSaAAROUZYy2IcUy5qU6XajK5jjjO7TMWqBTKZA==}
|
|
||||||
engines: {node: '>=12.20'}
|
|
||||||
hasBin: true
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/[email protected]:
|
/[email protected]:
|
||||||
resolution: {integrity: sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==}
|
resolution: {integrity: sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
@@ -29143,7 +29170,7 @@ packages:
|
|||||||
engines: {node: '>=10.13.0'}
|
engines: {node: '>=10.13.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
glob-to-regexp: 0.4.1
|
glob-to-regexp: 0.4.1
|
||||||
graceful-fs: 4.2.10
|
graceful-fs: 4.2.11
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/[email protected]:
|
/[email protected]:
|
||||||
|
|||||||
Reference in New Issue
Block a user