Compare commits
41
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
429f2d3291 | ||
|
|
27ef292377 | ||
|
|
9962f99ecf | ||
|
|
bdeb6734ce | ||
|
|
fdbc2cc9a7 | ||
|
|
91af89349f | ||
|
|
7f2ec9c2dc | ||
|
|
c05e2a325b | ||
|
|
913a801111 | ||
|
|
597900bdcc | ||
|
|
bfdfc23e3a | ||
|
|
48e6427d65 | ||
|
|
7f4caf0627 | ||
|
|
8ae8e6a702 | ||
|
|
d2aead486e | ||
|
|
62c799d348 | ||
|
|
99298b397c | ||
|
|
e98405e676 | ||
|
|
272e0ebf05 | ||
|
|
fa4bd436e0 | ||
|
|
674fcc7e95 | ||
|
|
faf65e31b7 | ||
|
|
5a87891d16 | ||
|
|
84487d0d78 | ||
|
|
ddfdfc5a02 | ||
|
|
dbdafa2b01 | ||
|
|
77c2a8ae0c | ||
|
|
5c1f4db356 | ||
|
|
5b83353237 | ||
|
|
56c139c5a2 | ||
|
|
03d8d6c15b | ||
|
|
f12f9bbdcf | ||
|
|
82ee42d667 | ||
|
|
81c297faeb | ||
|
|
20fb0d2300 | ||
|
|
637c510f59 | ||
|
|
2ae9a13b01 | ||
|
|
8d91e55eac | ||
|
|
aa0b8c4465 | ||
|
|
41be954bd0 | ||
|
|
e8e3368fde |
@@ -1,5 +1,33 @@
|
||||
# @thirdweb-dev/auth
|
||||
|
||||
## 4.1.71
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies []:
|
||||
- @thirdweb-dev/wallets@2.5.13
|
||||
|
||||
## 4.1.70
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies []:
|
||||
- @thirdweb-dev/wallets@2.5.12
|
||||
|
||||
## 4.1.69
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies []:
|
||||
- @thirdweb-dev/wallets@2.5.11
|
||||
|
||||
## 4.1.68
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies []:
|
||||
- @thirdweb-dev/wallets@2.5.10
|
||||
|
||||
## 4.1.67
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/auth",
|
||||
"version": "4.1.67",
|
||||
"version": "4.1.71",
|
||||
"main": "dist/thirdweb-dev-auth.cjs.js",
|
||||
"module": "dist/thirdweb-dev-auth.esm.js",
|
||||
"browser": {
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# @thirdweb-dev/chains
|
||||
|
||||
## 0.1.103
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2865](https://github.com/thirdweb-dev/js/pull/2865) [`7f2ec9c`](https://github.com/thirdweb-dev/js/commit/7f2ec9c2dca528e736d94b65525aacc1e2f3f28c) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
|
||||
|
||||
## 0.1.102
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2862](https://github.com/thirdweb-dev/js/pull/2862) [`5a87891`](https://github.com/thirdweb-dev/js/commit/5a87891d16f654b28779e76d23ea335bdb26718d) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
|
||||
|
||||
## 0.1.101
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2852](https://github.com/thirdweb-dev/js/pull/2852) [`dbdafa2`](https://github.com/thirdweb-dev/js/commit/dbdafa2b01148b13d05fd75803926d9d37396668) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
|
||||
|
||||
## 0.1.100
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2838](https://github.com/thirdweb-dev/js/pull/2838) [`637c510`](https://github.com/thirdweb-dev/js/commit/637c510f59c2504bd29cedbdf4bda694719681dc) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
|
||||
|
||||
## 0.1.99
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -24,7 +24,7 @@ export default {
|
||||
"nativeCurrency": {
|
||||
"name": "SMR",
|
||||
"symbol": "SMR",
|
||||
"decimals": 6
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1073,
|
||||
"rpc": [
|
||||
|
||||
@@ -2,7 +2,13 @@ import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "IOTA EVM",
|
||||
"chainId": 1075,
|
||||
"explorers": [],
|
||||
"explorers": [
|
||||
{
|
||||
"name": "explorer",
|
||||
"url": "https://explorer.evm.testnet.iotaledger.net",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [
|
||||
"https://evm-toolkit.evm.testnet.iotaledger.net"
|
||||
],
|
||||
|
||||
@@ -5,7 +5,7 @@ export default {
|
||||
"explorers": [
|
||||
{
|
||||
"name": "B2 Hub Habitat Testnet Explorer",
|
||||
"url": "https://habitat-hub-explorer.bsquared.network",
|
||||
"url": "https://testnet-hub-explorer.bsquared.network",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmPV6ASrQDEkEW3g3ni7p2rJMPeciRLpEpvrAc1QfzVkx9",
|
||||
@@ -23,18 +23,18 @@ export default {
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.bsquared.network",
|
||||
"name": "B2 Hub Habitat Testnet",
|
||||
"name": "B2 Hub Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "BSquared Token",
|
||||
"symbol": "BSQ",
|
||||
"symbol": "B2",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 1113,
|
||||
"rpc": [
|
||||
"https://1113.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://habitat-hub-rpc.bsquared.network"
|
||||
"https://testnet-hub-rpc.bsquared.network"
|
||||
],
|
||||
"shortName": "B2Hub-testnet",
|
||||
"slug": "b2-hub-habitat-testnet",
|
||||
"slug": "b2-hub-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -35,14 +35,16 @@ export default {
|
||||
"chain": "eip155-11155111",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://op-bridge.alt.technology/deposit?id=111557560"
|
||||
"url": "https://cyber-testnet-bridge.alt.technology/deposit"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rpc": [
|
||||
"https://111557560.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://cyber-testnet.alt.technology/",
|
||||
"wss://cyber-testnet.alt.technology/ws"
|
||||
"wss://cyber-testnet.alt.technology/ws",
|
||||
"https://rpc.testnet.cyber.co/",
|
||||
"wss://rpc.testnet.cyber.co/"
|
||||
],
|
||||
"shortName": "cysep",
|
||||
"slug": "cyber-testnet",
|
||||
|
||||
@@ -5,7 +5,7 @@ export default {
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://habitat-explorer.bsquared.network",
|
||||
"url": "https://testnet-explorer.bsquared.network",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmPV6ASrQDEkEW3g3ni7p2rJMPeciRLpEpvrAc1QfzVkx9",
|
||||
@@ -23,7 +23,7 @@ export default {
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.bsquared.network",
|
||||
"name": "B2 Habitat Testnet",
|
||||
"name": "B2 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Bitcoin",
|
||||
"symbol": "BTC",
|
||||
@@ -36,12 +36,10 @@ export default {
|
||||
},
|
||||
"rpc": [
|
||||
"https://1123.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://b2habitat-testnet.alt.technology",
|
||||
"https://habitat-rpc.bsquared.network",
|
||||
"https://habitat-rpc-public.bsquared.network"
|
||||
"https://b2-testnet.alt.technology"
|
||||
],
|
||||
"shortName": "B2-testnet",
|
||||
"slug": "b2-habitat-testnet",
|
||||
"slug": "b2-testnet",
|
||||
"testnet": true,
|
||||
"title": "B2 Habitat Testnet"
|
||||
"title": "B2 Testnet"
|
||||
} as const satisfies Chain;
|
||||
@@ -4,6 +4,12 @@ export default {
|
||||
"chainId": 1221,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmeC4mKGbBpwmLfFxUSsareWkSWJomevUmex8ajjxo1zHx",
|
||||
"width": 500,
|
||||
"height": 500,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.cyclenetwork.io/",
|
||||
"name": "Cycle Network Testnet",
|
||||
"nativeCurrency": {
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Omni",
|
||||
"chainId": 164,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Omni X-Explorer",
|
||||
"url": "https://explorer.testnet.omni.network",
|
||||
"standard": "none"
|
||||
},
|
||||
{
|
||||
"name": "Omni EVM Explorer on Blockscout",
|
||||
"url": "https://omni-testnet.blockscout.com",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP155"
|
||||
}
|
||||
],
|
||||
"infoURL": "https://docs.omni.network",
|
||||
"name": "Omni Testnet (incubating)",
|
||||
"nativeCurrency": {
|
||||
"name": "Omni",
|
||||
"symbol": "OMNI",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 164,
|
||||
"rpc": [],
|
||||
"shortName": "omni_testnet_164",
|
||||
"slip44": 1,
|
||||
"slug": "omni-testnet-incubating",
|
||||
"status": "incubating",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,35 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Lambda Chain",
|
||||
"chainId": 17000920,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Lambda Chain Testnet Explorer",
|
||||
"url": "https://testscan.lambda.im",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmXCWjWSTd6kJZKnH9aQRjgLdWRH9NTxU1wC21iBvoB4Hp",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://lambda.im",
|
||||
"name": "Lambda Chain Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "ETH",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 17000920,
|
||||
"rpc": [
|
||||
"https://17000920.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://testnrpc.lambda.im/"
|
||||
],
|
||||
"shortName": "tlambda",
|
||||
"slip44": 1,
|
||||
"slug": "lambda-chain-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -41,8 +41,10 @@ export default {
|
||||
},
|
||||
"rpc": [
|
||||
"https://223.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://mainnet.b2-rpc.com",
|
||||
"https://rpc.bsquared.network",
|
||||
"https://b2-mainnet.alt.technology"
|
||||
"https://b2-mainnet.alt.technology",
|
||||
"https://b2-mainnet-public.s.chainbase.com"
|
||||
],
|
||||
"shortName": "B2-mainnet",
|
||||
"slug": "b2",
|
||||
|
||||
@@ -31,7 +31,7 @@ export default {
|
||||
"networkId": 224433,
|
||||
"rpc": [
|
||||
"https://224433.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://holeskyrpc1.conet.network"
|
||||
"https://rpc.conet.network"
|
||||
],
|
||||
"shortName": "conet-holesky",
|
||||
"slip44": 2147708081,
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 26563,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QIM2404261",
|
||||
"nativeCurrency": {
|
||||
"name": "QIM2404261 Token",
|
||||
"symbol": "YCW",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 26563,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://26563.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QIM2404261",
|
||||
"slug": "qim2404261",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 26730,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "Testnet-AJJ",
|
||||
"nativeCurrency": {
|
||||
"name": "Testnet-AJJ Token",
|
||||
"symbol": "AJJ",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 26730,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://26730.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "Testnet-AJJ",
|
||||
"slug": "testnet-ajj",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,43 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "dchaint",
|
||||
"chainId": 2713017997578000,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "dchaint scan",
|
||||
"url": "https://dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP155"
|
||||
},
|
||||
{
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://QmP2cDWvgMuPgwAAEX9KexowUEjw6q7zCUSsWcb8HdudUH",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.dchain.foundation/",
|
||||
"name": "DCHAIN Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 2713017997578000,
|
||||
"rpc": [
|
||||
"https://2713017997578000.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://dchaintestnet-2713017997578000-1.jsonrpc.testnet.sagarpc.io"
|
||||
],
|
||||
"shortName": "dchaint",
|
||||
"slug": "dchain-testnet",
|
||||
"testnet": true,
|
||||
"title": "DCHAIN Testnet"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,45 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 2748,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Nanon Rollup Explorer",
|
||||
"url": "https://explorer.nanon.network",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafybeiduib2fygrwziqpy4yuqr6vvnd6elhahpigbcowcipjjhk6c3qiny",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.nanon.network",
|
||||
"name": "Nanon",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 2748,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-1",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://bridge.nanon.network"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rpc": [
|
||||
"https://2748.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.nanon.network"
|
||||
],
|
||||
"shortName": "Nanon",
|
||||
"slip44": 1,
|
||||
"slug": "nanon",
|
||||
"testnet": false,
|
||||
"title": "Nanon Rollup"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,45 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 27483,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Nanon Sepolia Rollup Testnet Explorer",
|
||||
"url": "https://sepolia-explorer.nanon.network",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafybeiduib2fygrwziqpy4yuqr6vvnd6elhahpigbcowcipjjhk6c3qiny",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.nanon.network",
|
||||
"name": "Nanon Sepolia",
|
||||
"nativeCurrency": {
|
||||
"name": "Sepolia Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 27483,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-11155111",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://sepolia-bridge.nanon.network"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rpc": [
|
||||
"https://27483.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://sepolia-rpc.nanon.network"
|
||||
],
|
||||
"shortName": "Nanon-Testnet",
|
||||
"slip44": 1,
|
||||
"slug": "nanon-sepolia",
|
||||
"testnet": true,
|
||||
"title": "Nanon Sepolia Rollup Testnet"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,41 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Vizing Testnet",
|
||||
"chainId": 28516,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "blockscout",
|
||||
"url": "https://explorer-sepolia.vizing.com",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmPgpWfGsAZ5UHekWFR8rioadVe3Wox8idFyeVxuv9N4Vo",
|
||||
"width": 200,
|
||||
"height": 200,
|
||||
"format": "svg"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmPgpWfGsAZ5UHekWFR8rioadVe3Wox8idFyeVxuv9N4Vo",
|
||||
"width": 200,
|
||||
"height": 200,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://vizing.com",
|
||||
"name": "Vizing Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 28516,
|
||||
"rpc": [
|
||||
"https://28516.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc-sepolia.vizing.com"
|
||||
],
|
||||
"shortName": "Vizing-Testnet",
|
||||
"slug": "vizing-testnet",
|
||||
"testnet": true,
|
||||
"title": "Vizing Testnet"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,52 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "ETH",
|
||||
"chainId": 302,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "zkCandy Block Explorer",
|
||||
"url": "https://sepolia.explorer.zkcandy.io",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreib5jsvl6kxn2qvv4giag3l3e54d2wolo2lqbgkhivxu4cpjzi77eq",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "svg"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreib5jsvl6kxn2qvv4giag3l3e54d2wolo2lqbgkhivxu4cpjzi77eq",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://zkcandy.io/",
|
||||
"name": "zkCandy Sepolia Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 302,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-1",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://sepolia.bridge.zkcandy.io/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"redFlags": [
|
||||
"reusedChainId"
|
||||
],
|
||||
"rpc": [
|
||||
"https://302.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://sepolia.rpc.zkcandy.io"
|
||||
],
|
||||
"shortName": "zkcandy-sepolia",
|
||||
"slug": "zkcandy-sepolia-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 30406,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "MUGEN Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "MUGEN Testnet Token",
|
||||
"symbol": "MGN",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 30406,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://30406.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/mugen/testnet/rpc"
|
||||
],
|
||||
"shortName": "MUGEN Testnet",
|
||||
"slug": "mugen-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 38904,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser1490 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser1490 Testnet Token",
|
||||
"symbol": "PNK",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 38904,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://38904.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser1490 Testnet",
|
||||
"slug": "qauser1490-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 46109,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "qr0224t1tp Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "qr0224t1tp Testnet Token",
|
||||
"symbol": "CRH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 46109,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://46109.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/qr0224t1tp/testnet/rpc"
|
||||
],
|
||||
"shortName": "qr0224t1tp Testnet",
|
||||
"slug": "qr0224t1tp-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,43 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "VERY Mainnet",
|
||||
"chainId": 4613,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "VERY explorer",
|
||||
"url": "https://www.veryscan.io",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP155"
|
||||
},
|
||||
{
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreih6nnkha6t3oiy6qkqpgyb46p3ddg5nff5ayizpum2ljexlc3gc54",
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://www.verylabs.io/",
|
||||
"name": "VERY Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "VERY",
|
||||
"symbol": "VERY",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 4613,
|
||||
"rpc": [
|
||||
"https://4613.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc.verylabs.io"
|
||||
],
|
||||
"shortName": "very",
|
||||
"slug": "very",
|
||||
"testnet": false,
|
||||
"title": "VERY Mainnet"
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,36 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "REACT",
|
||||
"chainId": 5318008,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "reactscan",
|
||||
"url": "https://kopli.reactscan.net",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP155"
|
||||
},
|
||||
{
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"infoURL": "https://reactive.network",
|
||||
"name": "Reactive Network Testnet Kopli",
|
||||
"nativeCurrency": {
|
||||
"name": "React",
|
||||
"symbol": "REACT",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 5318008,
|
||||
"rpc": [
|
||||
"https://5318008.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://kopli-rpc.reactive.network"
|
||||
],
|
||||
"shortName": "react",
|
||||
"slug": "reactive-network-testnet-kopli",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,44 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "edeXa Network",
|
||||
"chainId": 5424,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "edexa-mainnet",
|
||||
"url": "https://explorer.edexa.network",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP155"
|
||||
},
|
||||
{
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",
|
||||
"width": 1028,
|
||||
"height": 1042,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://edexa.network/",
|
||||
"name": "edeXa Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "EDEXA",
|
||||
"symbol": "EDX",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 5424,
|
||||
"rpc": [
|
||||
"https://5424.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://mainnet.edexa.com/rpc",
|
||||
"https://io-dataseed1.mainnet.edexa.io-market.com/rpc"
|
||||
],
|
||||
"shortName": "edeXa",
|
||||
"slip44": 1,
|
||||
"slug": "edexa",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,35 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Lambda Chain",
|
||||
"chainId": 56026,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Lambda Chain Mainnet Explorer",
|
||||
"url": "https://scan.lambda.im",
|
||||
"standard": "EIP3091"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmXCWjWSTd6kJZKnH9aQRjgLdWRH9NTxU1wC21iBvoB4Hp",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://lambda.im",
|
||||
"name": "Lambda Chain Mainnet",
|
||||
"nativeCurrency": {
|
||||
"name": "ETH",
|
||||
"symbol": "ETH",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 56026,
|
||||
"rpc": [
|
||||
"https://56026.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://nrpc.lambda.im/"
|
||||
],
|
||||
"shortName": "lambda",
|
||||
"slip44": 1,
|
||||
"slug": "lambda-chain",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 56636,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QI0429I3",
|
||||
"nativeCurrency": {
|
||||
"name": "QI0429I3 Token",
|
||||
"symbol": "IJK",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 56636,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://56636.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avacloud-test.io/b6421f40-aa32-4cdc-98f2-bf22d0db7b4f"
|
||||
],
|
||||
"shortName": "QI0429I3",
|
||||
"slug": "qi0429i3",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 5668,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "JONO122",
|
||||
"nativeCurrency": {
|
||||
"name": "JONO122 Token",
|
||||
"symbol": "JONO",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 5668,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://5668.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/jono122/testnet/rpc"
|
||||
],
|
||||
"shortName": "JONO122",
|
||||
"slug": "jono122",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,41 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Aura",
|
||||
"chainId": 6321,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Aurascan Explorer",
|
||||
"url": "https://euphoria.aurascan.io",
|
||||
"standard": "none",
|
||||
"icon": {
|
||||
"url": "ipfs://QmbpQPpjKy1bkDmuzCSSE9iFTUK37AiWYgJbgN3Fr7MWYq",
|
||||
"width": 512,
|
||||
"height": 557,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmbpQPpjKy1bkDmuzCSSE9iFTUK37AiWYgJbgN3Fr7MWYq",
|
||||
"width": 512,
|
||||
"height": 557,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://aura.network",
|
||||
"name": "Aura Euphoria Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "test-EAura",
|
||||
"symbol": "eAura",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 6321,
|
||||
"rpc": [
|
||||
"https://6321.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://jsonrpc.euphoria.aura.network"
|
||||
],
|
||||
"shortName": "eaura",
|
||||
"slip44": 1,
|
||||
"slug": "aura-euphoria-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 65174,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser9821 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser9821 Testnet Token",
|
||||
"symbol": "HKL",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 65174,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://65174.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser9821 Testnet",
|
||||
"slug": "qauser9821-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -42,7 +42,9 @@ export default {
|
||||
"rpc": [
|
||||
"https://7560.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://cyber.alt.technology/",
|
||||
"wss://cyber-ws.alt.technology/"
|
||||
"wss://cyber-ws.alt.technology/",
|
||||
"https://rpc.cyber.co/",
|
||||
"wss://rpc.cyber.co/"
|
||||
],
|
||||
"shortName": "cyeth",
|
||||
"slug": "cyber",
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "GDCC",
|
||||
"chainId": 7775,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "GDCC",
|
||||
"url": "https://testnet.gdccscan.io",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmY4vp1mJoGpUiuWbRVenNiDZC17wSyyueGPK9A5QyK1M2",
|
||||
"width": 72,
|
||||
"height": 72,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://gdcchain.com",
|
||||
"name": "GDCC TESTNET",
|
||||
"nativeCurrency": {
|
||||
"name": "GDCC",
|
||||
"symbol": "GDCC",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 7775,
|
||||
"rpc": [
|
||||
"https://7775.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://testnet-rpc1.gdccscan.io"
|
||||
],
|
||||
"shortName": "GDCC",
|
||||
"slug": "gdcc-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -5,7 +5,7 @@ export default {
|
||||
"explorers": [
|
||||
{
|
||||
"name": "explorer",
|
||||
"url": "https://iota-evm.blockscout.com",
|
||||
"url": "https://explorer.evm.iota.org",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://bafkreibky2sy6qhi6arktayvologkrgu5kudpgdxfkx4uosbvmstz7v4di",
|
||||
@@ -32,7 +32,8 @@ export default {
|
||||
"networkId": 8822,
|
||||
"rpc": [
|
||||
"https://8822.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://json-rpc.evm.iotaledger.net"
|
||||
"https://json-rpc.evm.iotaledger.net",
|
||||
"https://ws.json-rpc.evm.iotaledger.net"
|
||||
],
|
||||
"shortName": "iotaevm",
|
||||
"slug": "iota-evm",
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 88795,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QaUser8230 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QaUser8230 Testnet Token",
|
||||
"symbol": "GRB",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 88795,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://88795.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QaUser8230 Testnet",
|
||||
"slug": "qauser8230-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -15,14 +15,24 @@ export default {
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"faucets": [
|
||||
"https://www.campnetwork.xyz/faucet"
|
||||
],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP155"
|
||||
},
|
||||
{
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://Qmd5ux27W44fjxHP2opz7eLhJ6CJJm9WR6VcKNhbQBxiSd/QOyzwbO2_400x400.jpg",
|
||||
"width": 400,
|
||||
"height": 400,
|
||||
"format": "jpg"
|
||||
},
|
||||
"infoURL": "https://campaign-1.gitbook.io/camp-technical-docså",
|
||||
"name": "Camp Network",
|
||||
"nativeCurrency": {
|
||||
"name": "Ether",
|
||||
@@ -30,12 +40,23 @@ export default {
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 90354,
|
||||
"parent": {
|
||||
"type": "L2",
|
||||
"chain": "eip155-1",
|
||||
"bridges": [
|
||||
{
|
||||
"url": "https://camp-testnet-bridge.vercel.app/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://90354.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc-camp-network-4xje7wy105.t.conduit.xyz/"
|
||||
"https://rpc-camp-network-4xje7wy105.t.conduit.xyz/",
|
||||
"https://rpc-camp-network-4xje7wy105.t.conduit.xyz"
|
||||
],
|
||||
"shortName": "campaign-l2",
|
||||
"slip44": 1,
|
||||
"slug": "camp-network",
|
||||
"testnet": false
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 90871,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QI0426s1 Testnet",
|
||||
"nativeCurrency": {
|
||||
"name": "QI0426s1 Testnet Token",
|
||||
"symbol": "WDC",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 90871,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://90871.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
|
||||
],
|
||||
"shortName": "QI0426s1 Testnet",
|
||||
"slug": "qi0426s1-testnet",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,45 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "treasure",
|
||||
"chainId": 978657,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "Treasurescan",
|
||||
"url": "https://testnet.treasurescan.io/",
|
||||
"standard": "EIP3091",
|
||||
"icon": {
|
||||
"url": "ipfs://QmbzZk23owb7grDEbEJLuxgUAqQVcHmdjsEkkCD7E9C5R9/Treasure_Primary_Icon%20-%20Karel%20Vuong.png",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"faucets": [
|
||||
"https://portal.treasure.lol/faucet"
|
||||
],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "ipfs://QmQYRpJAMyPt1DKz1iAuseX3puBZYmdGgFeaZCFDPhixXp",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://portal.treasure.lol",
|
||||
"name": "Treasure Ruby",
|
||||
"nativeCurrency": {
|
||||
"name": "Testnet MAGIC",
|
||||
"symbol": "MAGIC",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 978657,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://978657.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://rpc-testnet.treasure.lol/http",
|
||||
"wss://rpc-testnet.treasure.lol/ws"
|
||||
],
|
||||
"shortName": "MAGIC",
|
||||
"slug": "treasure-ruby",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 982558,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QR0429T1TS",
|
||||
"nativeCurrency": {
|
||||
"name": "QR0429T1TS Token",
|
||||
"symbol": "EXT",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 982558,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://982558.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/qr0429t1ts/testnet/rpc"
|
||||
],
|
||||
"shortName": "QR0429T1TS",
|
||||
"slug": "qr0429t1ts",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,30 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "Avalanche",
|
||||
"chainId": 995201,
|
||||
"explorers": [],
|
||||
"faucets": [],
|
||||
"features": [],
|
||||
"icon": {
|
||||
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
|
||||
"width": 256,
|
||||
"height": 256,
|
||||
"format": "svg"
|
||||
},
|
||||
"infoURL": "https://avacloud.io",
|
||||
"name": "QR0426T1TS",
|
||||
"nativeCurrency": {
|
||||
"name": "QR0426T1TS Token",
|
||||
"symbol": "XOF",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 995201,
|
||||
"redFlags": [],
|
||||
"rpc": [
|
||||
"https://995201.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://subnets.avax.network/qr0426t1ts/testnet/rpc"
|
||||
],
|
||||
"shortName": "QR0426T1TS",
|
||||
"slug": "qr0426t1ts",
|
||||
"testnet": true
|
||||
} as const satisfies Chain;
|
||||
@@ -0,0 +1,43 @@
|
||||
import type { Chain } from "../src/types";
|
||||
export default {
|
||||
"chain": "AmChain",
|
||||
"chainId": 999999,
|
||||
"explorers": [
|
||||
{
|
||||
"name": "AMCAmChain explorer",
|
||||
"url": "https://explorer.amchain.net",
|
||||
"standard": "none"
|
||||
}
|
||||
],
|
||||
"faucets": [],
|
||||
"features": [
|
||||
{
|
||||
"name": "EIP155"
|
||||
},
|
||||
{
|
||||
"name": "EIP1559"
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"url": "ipfs://Qmb6VAhhtaJmdaW1j7PAjxaLju1V24PPDFBdXtebyTSfsZ",
|
||||
"width": 200,
|
||||
"height": 200,
|
||||
"format": "png"
|
||||
},
|
||||
"infoURL": "https://hewe.io/",
|
||||
"name": "AmChain",
|
||||
"nativeCurrency": {
|
||||
"name": "AMC",
|
||||
"symbol": "AMC",
|
||||
"decimals": 18
|
||||
},
|
||||
"networkId": 999999,
|
||||
"rpc": [
|
||||
"https://999999.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
|
||||
"https://node1.amchain.net"
|
||||
],
|
||||
"shortName": "AMC",
|
||||
"slug": "amchain",
|
||||
"testnet": false,
|
||||
"title": "AMC"
|
||||
} as const satisfies Chain;
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/chains",
|
||||
"version": "0.1.99",
|
||||
"version": "0.1.103",
|
||||
"main": "dist/thirdweb-dev-chains.cjs.js",
|
||||
"module": "dist/thirdweb-dev-chains.esm.js",
|
||||
"exports": {
|
||||
@@ -13,7 +13,7 @@
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"devDependencies": {
|
||||
"eslint": "8.57.0",
|
||||
"@babel/runtime": "^7.24.4",
|
||||
"@babel/runtime": "^7.24.5",
|
||||
"@preconstruct/cli": "2.7.0",
|
||||
"@thirdweb-dev/tsconfig": "workspace:*",
|
||||
"eslint-config-thirdweb": "workspace:*",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,5 +1,45 @@
|
||||
# thirdweb
|
||||
|
||||
## 0.13.79
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`7f2ec9c`](https://github.com/thirdweb-dev/js/commit/7f2ec9c2dca528e736d94b65525aacc1e2f3f28c)]:
|
||||
- @thirdweb-dev/chains@0.1.103
|
||||
- @thirdweb-dev/sdk@4.0.73
|
||||
- @thirdweb-dev/wallets@2.5.13
|
||||
- @thirdweb-dev/auth@4.1.71
|
||||
|
||||
## 0.13.78
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`5a87891`](https://github.com/thirdweb-dev/js/commit/5a87891d16f654b28779e76d23ea335bdb26718d)]:
|
||||
- @thirdweb-dev/chains@0.1.102
|
||||
- @thirdweb-dev/sdk@4.0.72
|
||||
- @thirdweb-dev/wallets@2.5.12
|
||||
- @thirdweb-dev/auth@4.1.70
|
||||
|
||||
## 0.13.77
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`dbdafa2`](https://github.com/thirdweb-dev/js/commit/dbdafa2b01148b13d05fd75803926d9d37396668)]:
|
||||
- @thirdweb-dev/chains@0.1.101
|
||||
- @thirdweb-dev/sdk@4.0.71
|
||||
- @thirdweb-dev/wallets@2.5.11
|
||||
- @thirdweb-dev/auth@4.1.69
|
||||
|
||||
## 0.13.76
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`41be954`](https://github.com/thirdweb-dev/js/commit/41be954bd0a92d49767d62a6fa02f1ee0effb469), [`637c510`](https://github.com/thirdweb-dev/js/commit/637c510f59c2504bd29cedbdf4bda694719681dc)]:
|
||||
- @thirdweb-dev/sdk@4.0.70
|
||||
- @thirdweb-dev/chains@0.1.100
|
||||
- @thirdweb-dev/wallets@2.5.10
|
||||
- @thirdweb-dev/auth@4.1.68
|
||||
|
||||
## 0.13.75
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/cli",
|
||||
"main": "dist/cli/index.js",
|
||||
"version": "0.13.75",
|
||||
"version": "0.13.79",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/cli",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,45 @@
|
||||
# @thirdweb-dev/react-core
|
||||
|
||||
## 4.6.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`7f2ec9c`](https://github.com/thirdweb-dev/js/commit/7f2ec9c2dca528e736d94b65525aacc1e2f3f28c)]:
|
||||
- @thirdweb-dev/chains@0.1.103
|
||||
- @thirdweb-dev/sdk@4.0.73
|
||||
- @thirdweb-dev/wallets@2.5.13
|
||||
- @thirdweb-dev/auth@4.1.71
|
||||
|
||||
## 4.6.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`5a87891`](https://github.com/thirdweb-dev/js/commit/5a87891d16f654b28779e76d23ea335bdb26718d)]:
|
||||
- @thirdweb-dev/chains@0.1.102
|
||||
- @thirdweb-dev/sdk@4.0.72
|
||||
- @thirdweb-dev/wallets@2.5.12
|
||||
- @thirdweb-dev/auth@4.1.70
|
||||
|
||||
## 4.6.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`dbdafa2`](https://github.com/thirdweb-dev/js/commit/dbdafa2b01148b13d05fd75803926d9d37396668)]:
|
||||
- @thirdweb-dev/chains@0.1.101
|
||||
- @thirdweb-dev/sdk@4.0.71
|
||||
- @thirdweb-dev/wallets@2.5.11
|
||||
- @thirdweb-dev/auth@4.1.69
|
||||
|
||||
## 4.6.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`41be954`](https://github.com/thirdweb-dev/js/commit/41be954bd0a92d49767d62a6fa02f1ee0effb469), [`637c510`](https://github.com/thirdweb-dev/js/commit/637c510f59c2504bd29cedbdf4bda694719681dc)]:
|
||||
- @thirdweb-dev/sdk@4.0.70
|
||||
- @thirdweb-dev/chains@0.1.100
|
||||
- @thirdweb-dev/wallets@2.5.10
|
||||
- @thirdweb-dev/auth@4.1.68
|
||||
|
||||
## 4.6.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-core",
|
||||
"version": "4.6.8",
|
||||
"version": "4.6.12",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-core",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
@@ -58,7 +58,7 @@
|
||||
"sideEffects:": false,
|
||||
"devDependencies": {
|
||||
"@babel/preset-react": "^7.24.1",
|
||||
"@babel/runtime": "^7.24.4",
|
||||
"@babel/runtime": "^7.24.5",
|
||||
"@microsoft/api-documenter": "^7.24.1",
|
||||
"@microsoft/api-extractor": "^7.43.0",
|
||||
"@microsoft/tsdoc": "^0.14.2",
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,13 @@
|
||||
# @thirdweb-dev/react-native-compat
|
||||
|
||||
## 0.7.44
|
||||
|
||||
## 0.7.43
|
||||
|
||||
## 0.7.42
|
||||
|
||||
## 0.7.41
|
||||
|
||||
## 0.7.40
|
||||
|
||||
## 0.7.39
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native-compat",
|
||||
"description": "Shims for Thirdweb in React Native Projects",
|
||||
"version": "0.7.40",
|
||||
"version": "0.7.44",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native-compat",
|
||||
"license": "Apache-2.0",
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ethersproject/shims": "^5.7.0",
|
||||
"@walletconnect/react-native-compat": "2.12.1",
|
||||
"@walletconnect/react-native-compat": "2.12.2",
|
||||
"base-64": "^1.0.0",
|
||||
"big-integer": "^1.6.52",
|
||||
"react-native-get-random-values": "^1.11.0",
|
||||
|
||||
@@ -1,5 +1,45 @@
|
||||
# @thirdweb-dev/react-native
|
||||
|
||||
## 0.7.44
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`7f2ec9c`](https://github.com/thirdweb-dev/js/commit/7f2ec9c2dca528e736d94b65525aacc1e2f3f28c)]:
|
||||
- @thirdweb-dev/chains@0.1.103
|
||||
- @thirdweb-dev/sdk@4.0.73
|
||||
- @thirdweb-dev/react-core@4.6.12
|
||||
- @thirdweb-dev/wallets@2.5.13
|
||||
|
||||
## 0.7.43
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`5a87891`](https://github.com/thirdweb-dev/js/commit/5a87891d16f654b28779e76d23ea335bdb26718d)]:
|
||||
- @thirdweb-dev/chains@0.1.102
|
||||
- @thirdweb-dev/react-core@4.6.11
|
||||
- @thirdweb-dev/sdk@4.0.72
|
||||
- @thirdweb-dev/wallets@2.5.12
|
||||
|
||||
## 0.7.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`dbdafa2`](https://github.com/thirdweb-dev/js/commit/dbdafa2b01148b13d05fd75803926d9d37396668)]:
|
||||
- @thirdweb-dev/chains@0.1.101
|
||||
- @thirdweb-dev/sdk@4.0.71
|
||||
- @thirdweb-dev/react-core@4.6.10
|
||||
- @thirdweb-dev/wallets@2.5.11
|
||||
|
||||
## 0.7.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`41be954`](https://github.com/thirdweb-dev/js/commit/41be954bd0a92d49767d62a6fa02f1ee0effb469), [`637c510`](https://github.com/thirdweb-dev/js/commit/637c510f59c2504bd29cedbdf4bda694719681dc)]:
|
||||
- @thirdweb-dev/sdk@4.0.70
|
||||
- @thirdweb-dev/chains@0.1.100
|
||||
- @thirdweb-dev/react-core@4.6.9
|
||||
- @thirdweb-dev/wallets@2.5.10
|
||||
|
||||
## 0.7.40
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native",
|
||||
"version": "0.7.40",
|
||||
"version": "0.7.44",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,47 @@
|
||||
# @thirdweb-dev/react
|
||||
|
||||
## 4.6.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`7f2ec9c`](https://github.com/thirdweb-dev/js/commit/7f2ec9c2dca528e736d94b65525aacc1e2f3f28c)]:
|
||||
- @thirdweb-dev/chains@0.1.103
|
||||
- @thirdweb-dev/sdk@4.0.73
|
||||
- @thirdweb-dev/react-core@4.6.12
|
||||
- @thirdweb-dev/wallets@2.5.13
|
||||
|
||||
## 4.6.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2863](https://github.com/thirdweb-dev/js/pull/2863) [`84487d0`](https://github.com/thirdweb-dev/js/commit/84487d0d78576c613ae6eccaa9a8b7a132370018) Thanks [@jnsdls](https://github.com/jnsdls)! - fix `onAuthSuccess` not being passed through to the underlying wallet
|
||||
|
||||
- Updated dependencies [[`5a87891`](https://github.com/thirdweb-dev/js/commit/5a87891d16f654b28779e76d23ea335bdb26718d)]:
|
||||
- @thirdweb-dev/chains@0.1.102
|
||||
- @thirdweb-dev/react-core@4.6.11
|
||||
- @thirdweb-dev/sdk@4.0.72
|
||||
- @thirdweb-dev/wallets@2.5.12
|
||||
|
||||
## 4.6.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`dbdafa2`](https://github.com/thirdweb-dev/js/commit/dbdafa2b01148b13d05fd75803926d9d37396668)]:
|
||||
- @thirdweb-dev/chains@0.1.101
|
||||
- @thirdweb-dev/sdk@4.0.71
|
||||
- @thirdweb-dev/react-core@4.6.10
|
||||
- @thirdweb-dev/wallets@2.5.11
|
||||
|
||||
## 4.6.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`41be954`](https://github.com/thirdweb-dev/js/commit/41be954bd0a92d49767d62a6fa02f1ee0effb469), [`637c510`](https://github.com/thirdweb-dev/js/commit/637c510f59c2504bd29cedbdf4bda694719681dc)]:
|
||||
- @thirdweb-dev/sdk@4.0.70
|
||||
- @thirdweb-dev/chains@0.1.100
|
||||
- @thirdweb-dev/react-core@4.6.9
|
||||
- @thirdweb-dev/wallets@2.5.10
|
||||
|
||||
## 4.6.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react",
|
||||
"version": "4.6.8",
|
||||
"version": "4.6.12",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
@@ -72,7 +72,7 @@
|
||||
},
|
||||
"sideEffects:": false,
|
||||
"devDependencies": {
|
||||
"@babel/runtime": "^7.24.4",
|
||||
"@babel/runtime": "^7.24.5",
|
||||
"@microsoft/api-documenter": "^7.24.1",
|
||||
"@microsoft/api-extractor": "^7.43.0",
|
||||
"@microsoft/tsdoc": "^0.14.2",
|
||||
|
||||
@@ -123,6 +123,7 @@ export const embeddedWallet = (
|
||||
create(walletOptions: WalletOptions) {
|
||||
return new EmbeddedWallet({
|
||||
...walletOptions,
|
||||
...options,
|
||||
clientId: walletOptions?.clientId ?? "",
|
||||
});
|
||||
},
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,38 @@
|
||||
# @thirdweb-dev/sdk
|
||||
|
||||
## 4.0.73
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`7f4caf0`](https://github.com/thirdweb-dev/js/commit/7f4caf06274ed9a0c753f034f5b8279e618a0644), [`d2aead4`](https://github.com/thirdweb-dev/js/commit/d2aead486e4335130b8fa8d3961c3a99da9a07b3), [`fa4bd43`](https://github.com/thirdweb-dev/js/commit/fa4bd436e01041419b668379103abb2759dc702f), [`bfdfc23`](https://github.com/thirdweb-dev/js/commit/bfdfc23e3aac6cf977774e3905dfe97c8b49d69a), [`597900b`](https://github.com/thirdweb-dev/js/commit/597900bdcc2c51e4623a3c196c5ccf9cc704e12c), [`62c799d`](https://github.com/thirdweb-dev/js/commit/62c799d3484abe54a9c648148e5e207876f8bb46), [`99298b3`](https://github.com/thirdweb-dev/js/commit/99298b397c2fa03e98d8a4a828a483e243815e1d), [`674fcc7`](https://github.com/thirdweb-dev/js/commit/674fcc7e9510e85f67d6ab7b056612a15856e0df), [`48e6427`](https://github.com/thirdweb-dev/js/commit/48e6427d657ec202b8415d716411a6d6b194d185), [`7f2ec9c`](https://github.com/thirdweb-dev/js/commit/7f2ec9c2dca528e736d94b65525aacc1e2f3f28c), [`8ae8e6a`](https://github.com/thirdweb-dev/js/commit/8ae8e6a702d074890c145005a32450fe7ee44b27)]:
|
||||
- thirdweb@5.14.0
|
||||
- @thirdweb-dev/chains@0.1.103
|
||||
|
||||
## 4.0.72
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`5a87891`](https://github.com/thirdweb-dev/js/commit/5a87891d16f654b28779e76d23ea335bdb26718d)]:
|
||||
- @thirdweb-dev/chains@0.1.102
|
||||
|
||||
## 4.0.71
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`03d8d6c`](https://github.com/thirdweb-dev/js/commit/03d8d6c15b02fb6889680484daf40f6189ad6359), [`5b83353`](https://github.com/thirdweb-dev/js/commit/5b833532372dd6e96dd0aeda7a4b190e9f280d4f), [`77c2a8a`](https://github.com/thirdweb-dev/js/commit/77c2a8ae0cdb49091bd961b60ef5c316ccd6e119), [`dbdafa2`](https://github.com/thirdweb-dev/js/commit/dbdafa2b01148b13d05fd75803926d9d37396668), [`56c139c`](https://github.com/thirdweb-dev/js/commit/56c139c5a2c1e702e038a8948fefd647b3695823)]:
|
||||
- thirdweb@5.13.0
|
||||
- @thirdweb-dev/chains@0.1.101
|
||||
|
||||
## 4.0.70
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2848](https://github.com/thirdweb-dev/js/pull/2848) [`41be954`](https://github.com/thirdweb-dev/js/commit/41be954bd0a92d49767d62a6fa02f1ee0effb469) Thanks [@jnsdls](https://github.com/jnsdls)! - add `celo` chains to known `op stack` chains
|
||||
|
||||
- Updated dependencies [[`2ae9a13`](https://github.com/thirdweb-dev/js/commit/2ae9a13b01e7a436536b3d412690150f9f960c72), [`41be954`](https://github.com/thirdweb-dev/js/commit/41be954bd0a92d49767d62a6fa02f1ee0effb469), [`637c510`](https://github.com/thirdweb-dev/js/commit/637c510f59c2504bd29cedbdf4bda694719681dc), [`e8e3368`](https://github.com/thirdweb-dev/js/commit/e8e3368fdef1aa9aaefe6243486395b666b47137), [`aa0b8c4`](https://github.com/thirdweb-dev/js/commit/aa0b8c44650b9d0f45f6dff66ebbceb64cfd7be3)]:
|
||||
- thirdweb@5.12.0
|
||||
- @thirdweb-dev/chains@0.1.100
|
||||
|
||||
## 4.0.69
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/sdk",
|
||||
"version": "4.0.69",
|
||||
"version": "4.0.73",
|
||||
"description": "The main thirdweb SDK.",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/sdk",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -11,6 +11,8 @@ import {
|
||||
BaseSepoliaTestnet,
|
||||
Zora,
|
||||
ZoraSepoliaTestnet,
|
||||
Celo,
|
||||
CeloAlfajoresTestnet,
|
||||
} from "@thirdweb-dev/chains";
|
||||
|
||||
type FeeData = {
|
||||
@@ -134,7 +136,9 @@ function isOpStackChain(chainId: number) {
|
||||
chainId === Base.chainId ||
|
||||
chainId === BaseSepoliaTestnet.chainId ||
|
||||
chainId === Zora.chainId ||
|
||||
chainId === ZoraSepoliaTestnet.chainId
|
||||
chainId === ZoraSepoliaTestnet.chainId ||
|
||||
chainId === Celo.chainId ||
|
||||
chainId === CeloAlfajoresTestnet.chainId
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,49 @@
|
||||
# @thirdweb-dev/unity-js-bridge
|
||||
|
||||
## 0.6.22
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`7f2ec9c`](https://github.com/thirdweb-dev/js/commit/7f2ec9c2dca528e736d94b65525aacc1e2f3f28c)]:
|
||||
- @thirdweb-dev/chains@0.1.103
|
||||
- @thirdweb-dev/sdk@4.0.73
|
||||
- @thirdweb-dev/wallets@2.5.13
|
||||
- @thirdweb-dev/auth@4.1.71
|
||||
|
||||
## 0.6.21
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`5a87891`](https://github.com/thirdweb-dev/js/commit/5a87891d16f654b28779e76d23ea335bdb26718d)]:
|
||||
- @thirdweb-dev/chains@0.1.102
|
||||
- @thirdweb-dev/sdk@4.0.72
|
||||
- @thirdweb-dev/wallets@2.5.12
|
||||
- @thirdweb-dev/auth@4.1.70
|
||||
|
||||
## 0.6.20
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2858](https://github.com/thirdweb-dev/js/pull/2858) [`82ee42d`](https://github.com/thirdweb-dev/js/commit/82ee42d667219b5a2aa323278af1e9981076b339) Thanks [@0xFirekeeper](https://github.com/0xFirekeeper)! - Unity 4.12.4
|
||||
|
||||
- [#2854](https://github.com/thirdweb-dev/js/pull/2854) [`81c297f`](https://github.com/thirdweb-dev/js/commit/81c297faeb698503cf5e2716d604c9f0c18ad668) Thanks [@0xFirekeeper](https://github.com/0xFirekeeper)! - Unity 4.12.3
|
||||
|
||||
- Updated dependencies [[`dbdafa2`](https://github.com/thirdweb-dev/js/commit/dbdafa2b01148b13d05fd75803926d9d37396668)]:
|
||||
- @thirdweb-dev/chains@0.1.101
|
||||
- @thirdweb-dev/sdk@4.0.71
|
||||
- @thirdweb-dev/wallets@2.5.11
|
||||
- @thirdweb-dev/auth@4.1.69
|
||||
|
||||
## 0.6.19
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`41be954`](https://github.com/thirdweb-dev/js/commit/41be954bd0a92d49767d62a6fa02f1ee0effb469), [`637c510`](https://github.com/thirdweb-dev/js/commit/637c510f59c2504bd29cedbdf4bda694719681dc)]:
|
||||
- @thirdweb-dev/sdk@4.0.70
|
||||
- @thirdweb-dev/chains@0.1.100
|
||||
- @thirdweb-dev/wallets@2.5.10
|
||||
- @thirdweb-dev/auth@4.1.68
|
||||
|
||||
## 0.6.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/unity-js-bridge",
|
||||
"version": "0.6.18",
|
||||
"version": "0.6.22",
|
||||
"main": "dist/thirdweb-unity-bridge.js",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -171,7 +171,7 @@ class ThirdwebBridge implements TWBridge {
|
||||
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
|
||||
(globalThis as any).X_SDK_PLATFORM = "unity";
|
||||
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
|
||||
(globalThis as any).X_SDK_VERSION = "4.12.2";
|
||||
(globalThis as any).X_SDK_VERSION = "4.12.4";
|
||||
// biome-ignore lint/suspicious/noExplicitAny: TODO: fix use of any
|
||||
(globalThis as any).X_SDK_OS = browser?.os ?? "unknown";
|
||||
}
|
||||
|
||||
@@ -1,5 +1,37 @@
|
||||
# @thirdweb-dev/wallets
|
||||
|
||||
## 2.5.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`7f2ec9c`](https://github.com/thirdweb-dev/js/commit/7f2ec9c2dca528e736d94b65525aacc1e2f3f28c)]:
|
||||
- @thirdweb-dev/chains@0.1.103
|
||||
- @thirdweb-dev/sdk@4.0.73
|
||||
|
||||
## 2.5.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`5a87891`](https://github.com/thirdweb-dev/js/commit/5a87891d16f654b28779e76d23ea335bdb26718d)]:
|
||||
- @thirdweb-dev/chains@0.1.102
|
||||
- @thirdweb-dev/sdk@4.0.72
|
||||
|
||||
## 2.5.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`dbdafa2`](https://github.com/thirdweb-dev/js/commit/dbdafa2b01148b13d05fd75803926d9d37396668)]:
|
||||
- @thirdweb-dev/chains@0.1.101
|
||||
- @thirdweb-dev/sdk@4.0.71
|
||||
|
||||
## 2.5.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`41be954`](https://github.com/thirdweb-dev/js/commit/41be954bd0a92d49767d62a6fa02f1ee0effb469), [`637c510`](https://github.com/thirdweb-dev/js/commit/637c510f59c2504bd29cedbdf4bda694719681dc)]:
|
||||
- @thirdweb-dev/sdk@4.0.70
|
||||
- @thirdweb-dev/chains@0.1.100
|
||||
|
||||
## 2.5.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/wallets",
|
||||
"version": "2.5.9",
|
||||
"version": "2.5.13",
|
||||
"main": "dist/thirdweb-dev-wallets.cjs.js",
|
||||
"module": "dist/thirdweb-dev-wallets.esm.js",
|
||||
"browser": {
|
||||
@@ -541,8 +541,8 @@
|
||||
"@walletconnect/jsonrpc-utils": "^1.0.8",
|
||||
"@walletconnect/modal": "^2.6.2",
|
||||
"@walletconnect/types": "^2.12.1",
|
||||
"@walletconnect/utils": "^2.12.1",
|
||||
"@walletconnect/web3wallet": "^1.11.1",
|
||||
"@walletconnect/utils": "^2.12.2",
|
||||
"@walletconnect/web3wallet": "^1.11.2",
|
||||
"asn1.js": "5.4.1",
|
||||
"bn.js": "5.2.1",
|
||||
"buffer": "^6.0.3",
|
||||
|
||||
Binary file not shown.
+2
-2
@@ -45,12 +45,12 @@
|
||||
"@manypkg/get-packages": "2.2.1",
|
||||
"@playwright/test": "1.31.2",
|
||||
"@types/node": "20.12.7",
|
||||
"turbo": "1.13.2",
|
||||
"turbo": "1.13.3",
|
||||
"yalc": "1.0.0-pre.53"
|
||||
},
|
||||
"_______ALL_PACKAGE_DEV_DEPENDENCIES_GO_IN_HERE_SO_CONSUMERS_DONT_END_UP_INSTALLING_THEM______": "_______ALL_PACKAGE_DEV_DEPENDENCIES_GO_IN_HERE_SO_CONSUMERS_DONT_END_UP_INSTALLING_THEM______",
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.7.0",
|
||||
"@biomejs/biome": "1.7.1",
|
||||
"@codspeed/vitest-plugin": "3.1.0",
|
||||
"@size-limit/preset-big-lib": "11.1.2",
|
||||
"@types/bun": "1.0.12",
|
||||
|
||||
@@ -39,7 +39,7 @@ export const SERVICE_DEFINITIONS = {
|
||||
},
|
||||
embeddedWallets: {
|
||||
name: "embeddedWallets",
|
||||
title: "Embedded Wallets",
|
||||
title: "In-App Wallets",
|
||||
description: "E-mail and social login wallets for easy web3 onboarding",
|
||||
// all actions allowed
|
||||
actions: [],
|
||||
|
||||
@@ -1,5 +1,64 @@
|
||||
# thirdweb
|
||||
|
||||
## 5.14.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#2869](https://github.com/thirdweb-dev/js/pull/2869) [`fa4bd43`](https://github.com/thirdweb-dev/js/commit/fa4bd436e01041419b668379103abb2759dc702f) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Adds the disabled prop to TransactionButton component
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2881](https://github.com/thirdweb-dev/js/pull/2881) [`7f4caf0`](https://github.com/thirdweb-dev/js/commit/7f4caf06274ed9a0c753f034f5b8279e618a0644) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Fix nonce value for ethers5 adapter
|
||||
|
||||
- [#2874](https://github.com/thirdweb-dev/js/pull/2874) [`d2aead4`](https://github.com/thirdweb-dev/js/commit/d2aead486e4335130b8fa8d3961c3a99da9a07b3) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Docs: update incorrect code snippet for viem adapter
|
||||
|
||||
- [#2882](https://github.com/thirdweb-dev/js/pull/2882) [`bfdfc23`](https://github.com/thirdweb-dev/js/commit/bfdfc23e3aac6cf977774e3905dfe97c8b49d69a) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Better error message for failed smart wallet connections
|
||||
|
||||
- [#2879](https://github.com/thirdweb-dev/js/pull/2879) [`597900b`](https://github.com/thirdweb-dev/js/commit/597900bdcc2c51e4623a3c196c5ccf9cc704e12c) Thanks [@MananTank](https://github.com/MananTank)! - - Add onConnect prop on `AutoConnect` component
|
||||
|
||||
- Call the `onConnect` callback passed to `ConnectButton` and `ConnectEmbed` when wallet is auto-connected
|
||||
|
||||
- [#2866](https://github.com/thirdweb-dev/js/pull/2866) [`62c799d`](https://github.com/thirdweb-dev/js/commit/62c799d3484abe54a9c648148e5e207876f8bb46) Thanks [@MananTank](https://github.com/MananTank)! - Fix exception on passing chain with unknown chainId to ConnectButton
|
||||
|
||||
- [#2872](https://github.com/thirdweb-dev/js/pull/2872) [`99298b3`](https://github.com/thirdweb-dev/js/commit/99298b397c2fa03e98d8a4a828a483e243815e1d) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Add optional `icon` in `ChainOptions` when defining a chain
|
||||
|
||||
- [#2867](https://github.com/thirdweb-dev/js/pull/2867) [`674fcc7`](https://github.com/thirdweb-dev/js/commit/674fcc7e9510e85f67d6ab7b056612a15856e0df) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fixes single phase drop compatibility across erc20, erc721, and erc1155 contracts
|
||||
|
||||
- [#2883](https://github.com/thirdweb-dev/js/pull/2883) [`48e6427`](https://github.com/thirdweb-dev/js/commit/48e6427d657ec202b8415d716411a6d6b194d185) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Improve docs for verifySignature
|
||||
|
||||
- [#2870](https://github.com/thirdweb-dev/js/pull/2870) [`8ae8e6a`](https://github.com/thirdweb-dev/js/commit/8ae8e6a702d074890c145005a32450fe7ee44b27) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fix TransactionButton layout shift while loading
|
||||
|
||||
## 5.13.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#2853](https://github.com/thirdweb-dev/js/pull/2853) [`56c139c`](https://github.com/thirdweb-dev/js/commit/56c139c5a2c1e702e038a8948fefd647b3695823) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Add account abstraction options to `useConnect` and handle smart wallet autoconnection outside of UI components
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2859](https://github.com/thirdweb-dev/js/pull/2859) [`03d8d6c`](https://github.com/thirdweb-dev/js/commit/03d8d6c15b02fb6889680484daf40f6189ad6359) Thanks [@jnsdls](https://github.com/jnsdls)! - add `gasless` prop to `<TransactionButton />`
|
||||
|
||||
- [#2861](https://github.com/thirdweb-dev/js/pull/2861) [`5b83353`](https://github.com/thirdweb-dev/js/commit/5b833532372dd6e96dd0aeda7a4b190e9f280d4f) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Export airdrop extensions
|
||||
|
||||
- [#2857](https://github.com/thirdweb-dev/js/pull/2857) [`77c2a8a`](https://github.com/thirdweb-dev/js/commit/77c2a8ae0cdb49091bd961b60ef5c316ccd6e119) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Docs: update incorrect code snippets, fix typos
|
||||
|
||||
## 5.12.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#2841](https://github.com/thirdweb-dev/js/pull/2841) [`2ae9a13`](https://github.com/thirdweb-dev/js/commit/2ae9a13b01e7a436536b3d412690150f9f960c72) Thanks [@kumaryash90](https://github.com/kumaryash90)! - SDK V5 extension for new Airdrop contract.
|
||||
|
||||
- [#2846](https://github.com/thirdweb-dev/js/pull/2846) [`e8e3368`](https://github.com/thirdweb-dev/js/commit/e8e3368fdef1aa9aaefe6243486395b666b47137) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Add isERC20 extension
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2848](https://github.com/thirdweb-dev/js/pull/2848) [`41be954`](https://github.com/thirdweb-dev/js/commit/41be954bd0a92d49767d62a6fa02f1ee0effb469) Thanks [@jnsdls](https://github.com/jnsdls)! - add `celo` chains to known `op stack` chains
|
||||
|
||||
- [#2850](https://github.com/thirdweb-dev/js/pull/2850) [`aa0b8c4`](https://github.com/thirdweb-dev/js/commit/aa0b8c44650b9d0f45f6dff66ebbceb64cfd7be3) Thanks [@MananTank](https://github.com/MananTank)! - Fix "All wallets" UI in Connect
|
||||
|
||||
- Remove duplicated entry for "inApp"
|
||||
- Remove wallets specified by developer
|
||||
|
||||
## 5.11.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "thirdweb",
|
||||
"version": "5.11.0",
|
||||
"version": "5.14.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/thirdweb-dev/js.git#main"
|
||||
|
||||
@@ -0,0 +1,408 @@
|
||||
[
|
||||
"function tokenConditionId(address tokenAddress) view returns (uint256)",
|
||||
"function tokenMerkleRoot(address tokenAddress) view returns (bytes32)",
|
||||
{ "type": "constructor", "inputs": [], "stateMutability": "nonpayable" },
|
||||
{
|
||||
"type": "function",
|
||||
"name": "airdropERC1155",
|
||||
"inputs": [
|
||||
{ "name": "_tokenAddress", "type": "address", "internalType": "address" },
|
||||
{
|
||||
"name": "_contents",
|
||||
"type": "tuple[]",
|
||||
"internalType": "struct Airdrop.AirdropContentERC1155[]",
|
||||
"components": [
|
||||
{ "name": "recipient", "type": "address", "internalType": "address" },
|
||||
{ "name": "tokenId", "type": "uint256", "internalType": "uint256" },
|
||||
{ "name": "amount", "type": "uint256", "internalType": "uint256" }
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "airdropERC1155WithSignature",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "req",
|
||||
"type": "tuple",
|
||||
"internalType": "struct Airdrop.AirdropRequestERC1155",
|
||||
"components": [
|
||||
{ "name": "uid", "type": "bytes32", "internalType": "bytes32" },
|
||||
{
|
||||
"name": "tokenAddress",
|
||||
"type": "address",
|
||||
"internalType": "address"
|
||||
},
|
||||
{
|
||||
"name": "expirationTimestamp",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "contents",
|
||||
"type": "tuple[]",
|
||||
"internalType": "struct Airdrop.AirdropContentERC1155[]",
|
||||
"components": [
|
||||
{
|
||||
"name": "recipient",
|
||||
"type": "address",
|
||||
"internalType": "address"
|
||||
},
|
||||
{
|
||||
"name": "tokenId",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{ "name": "amount", "type": "uint256", "internalType": "uint256" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "airdropERC20",
|
||||
"inputs": [
|
||||
{ "name": "_tokenAddress", "type": "address", "internalType": "address" },
|
||||
{
|
||||
"name": "_contents",
|
||||
"type": "tuple[]",
|
||||
"internalType": "struct Airdrop.AirdropContentERC20[]",
|
||||
"components": [
|
||||
{ "name": "recipient", "type": "address", "internalType": "address" },
|
||||
{ "name": "amount", "type": "uint256", "internalType": "uint256" }
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "airdropERC20WithSignature",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "req",
|
||||
"type": "tuple",
|
||||
"internalType": "struct Airdrop.AirdropRequestERC20",
|
||||
"components": [
|
||||
{ "name": "uid", "type": "bytes32", "internalType": "bytes32" },
|
||||
{
|
||||
"name": "tokenAddress",
|
||||
"type": "address",
|
||||
"internalType": "address"
|
||||
},
|
||||
{
|
||||
"name": "expirationTimestamp",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "contents",
|
||||
"type": "tuple[]",
|
||||
"internalType": "struct Airdrop.AirdropContentERC20[]",
|
||||
"components": [
|
||||
{
|
||||
"name": "recipient",
|
||||
"type": "address",
|
||||
"internalType": "address"
|
||||
},
|
||||
{ "name": "amount", "type": "uint256", "internalType": "uint256" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "airdropERC721",
|
||||
"inputs": [
|
||||
{ "name": "_tokenAddress", "type": "address", "internalType": "address" },
|
||||
{
|
||||
"name": "_contents",
|
||||
"type": "tuple[]",
|
||||
"internalType": "struct Airdrop.AirdropContentERC721[]",
|
||||
"components": [
|
||||
{ "name": "recipient", "type": "address", "internalType": "address" },
|
||||
{ "name": "tokenId", "type": "uint256", "internalType": "uint256" }
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "airdropERC721WithSignature",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "req",
|
||||
"type": "tuple",
|
||||
"internalType": "struct Airdrop.AirdropRequestERC721",
|
||||
"components": [
|
||||
{ "name": "uid", "type": "bytes32", "internalType": "bytes32" },
|
||||
{
|
||||
"name": "tokenAddress",
|
||||
"type": "address",
|
||||
"internalType": "address"
|
||||
},
|
||||
{
|
||||
"name": "expirationTimestamp",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "contents",
|
||||
"type": "tuple[]",
|
||||
"internalType": "struct Airdrop.AirdropContentERC721[]",
|
||||
"components": [
|
||||
{
|
||||
"name": "recipient",
|
||||
"type": "address",
|
||||
"internalType": "address"
|
||||
},
|
||||
{
|
||||
"name": "tokenId",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "airdropNativeToken",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "_contents",
|
||||
"type": "tuple[]",
|
||||
"internalType": "struct Airdrop.AirdropContentERC20[]",
|
||||
"components": [
|
||||
{ "name": "recipient", "type": "address", "internalType": "address" },
|
||||
{ "name": "amount", "type": "uint256", "internalType": "uint256" }
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "payable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "claimERC1155",
|
||||
"inputs": [
|
||||
{ "name": "_token", "type": "address", "internalType": "address" },
|
||||
{ "name": "_receiver", "type": "address", "internalType": "address" },
|
||||
{ "name": "_tokenId", "type": "uint256", "internalType": "uint256" },
|
||||
{ "name": "_quantity", "type": "uint256", "internalType": "uint256" },
|
||||
{ "name": "_proofs", "type": "bytes32[]", "internalType": "bytes32[]" }
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "claimERC20",
|
||||
"inputs": [
|
||||
{ "name": "_token", "type": "address", "internalType": "address" },
|
||||
{ "name": "_receiver", "type": "address", "internalType": "address" },
|
||||
{ "name": "_quantity", "type": "uint256", "internalType": "uint256" },
|
||||
{ "name": "_proofs", "type": "bytes32[]", "internalType": "bytes32[]" }
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "claimERC721",
|
||||
"inputs": [
|
||||
{ "name": "_token", "type": "address", "internalType": "address" },
|
||||
{ "name": "_receiver", "type": "address", "internalType": "address" },
|
||||
{ "name": "_tokenId", "type": "uint256", "internalType": "uint256" },
|
||||
{ "name": "_proofs", "type": "bytes32[]", "internalType": "bytes32[]" }
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "eip712Domain",
|
||||
"inputs": [],
|
||||
"outputs": [
|
||||
{ "name": "fields", "type": "bytes1", "internalType": "bytes1" },
|
||||
{ "name": "name", "type": "string", "internalType": "string" },
|
||||
{ "name": "version", "type": "string", "internalType": "string" },
|
||||
{ "name": "chainId", "type": "uint256", "internalType": "uint256" },
|
||||
{
|
||||
"name": "verifyingContract",
|
||||
"type": "address",
|
||||
"internalType": "address"
|
||||
},
|
||||
{ "name": "salt", "type": "bytes32", "internalType": "bytes32" },
|
||||
{ "name": "extensions", "type": "uint256[]", "internalType": "uint256[]" }
|
||||
],
|
||||
"stateMutability": "view"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "initialize",
|
||||
"inputs": [
|
||||
{ "name": "_defaultAdmin", "type": "address", "internalType": "address" }
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "isClaimed",
|
||||
"inputs": [
|
||||
{ "name": "_receiver", "type": "address", "internalType": "address" },
|
||||
{ "name": "_token", "type": "address", "internalType": "address" },
|
||||
{ "name": "_tokenId", "type": "uint256", "internalType": "uint256" }
|
||||
],
|
||||
"outputs": [{ "name": "", "type": "bool", "internalType": "bool" }],
|
||||
"stateMutability": "view"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "owner",
|
||||
"inputs": [],
|
||||
"outputs": [{ "name": "", "type": "address", "internalType": "address" }],
|
||||
"stateMutability": "view"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "setMerkleRoot",
|
||||
"inputs": [
|
||||
{ "name": "_token", "type": "address", "internalType": "address" },
|
||||
{
|
||||
"name": "_tokenMerkleRoot",
|
||||
"type": "bytes32",
|
||||
"internalType": "bytes32"
|
||||
},
|
||||
{ "name": "_resetClaimStatus", "type": "bool", "internalType": "bool" }
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "function",
|
||||
"name": "setOwner",
|
||||
"inputs": [
|
||||
{ "name": "_newOwner", "type": "address", "internalType": "address" }
|
||||
],
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable"
|
||||
},
|
||||
{
|
||||
"type": "event",
|
||||
"name": "Airdrop",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "token",
|
||||
"type": "address",
|
||||
"indexed": false,
|
||||
"internalType": "address"
|
||||
}
|
||||
],
|
||||
"anonymous": false
|
||||
},
|
||||
{
|
||||
"type": "event",
|
||||
"name": "AirdropClaimed",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "token",
|
||||
"type": "address",
|
||||
"indexed": false,
|
||||
"internalType": "address"
|
||||
},
|
||||
{
|
||||
"name": "receiver",
|
||||
"type": "address",
|
||||
"indexed": false,
|
||||
"internalType": "address"
|
||||
}
|
||||
],
|
||||
"anonymous": false
|
||||
},
|
||||
{
|
||||
"type": "event",
|
||||
"name": "AirdropWithSignature",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "token",
|
||||
"type": "address",
|
||||
"indexed": false,
|
||||
"internalType": "address"
|
||||
}
|
||||
],
|
||||
"anonymous": false
|
||||
},
|
||||
{
|
||||
"type": "event",
|
||||
"name": "Initialized",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "version",
|
||||
"type": "uint8",
|
||||
"indexed": false,
|
||||
"internalType": "uint8"
|
||||
}
|
||||
],
|
||||
"anonymous": false
|
||||
},
|
||||
{
|
||||
"type": "event",
|
||||
"name": "OwnerUpdated",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "prevOwner",
|
||||
"type": "address",
|
||||
"indexed": true,
|
||||
"internalType": "address"
|
||||
},
|
||||
{
|
||||
"name": "newOwner",
|
||||
"type": "address",
|
||||
"indexed": true,
|
||||
"internalType": "address"
|
||||
}
|
||||
],
|
||||
"anonymous": false
|
||||
},
|
||||
{ "type": "error", "name": "AirdropAlreadyClaimed", "inputs": [] },
|
||||
{ "type": "error", "name": "AirdropInvalidProof", "inputs": [] },
|
||||
{ "type": "error", "name": "AirdropNoMerkleRoot", "inputs": [] },
|
||||
{ "type": "error", "name": "AirdropRequestAlreadyProcessed", "inputs": [] },
|
||||
{
|
||||
"type": "error",
|
||||
"name": "AirdropRequestExpired",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "expirationTimestamp",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "type": "error", "name": "AirdropRequestInvalidSigner", "inputs": [] },
|
||||
{ "type": "error", "name": "AirdropValueMismatch", "inputs": [] },
|
||||
{ "type": "error", "name": "OwnableUnauthorized", "inputs": [] }
|
||||
]
|
||||
@@ -0,0 +1,57 @@
|
||||
[
|
||||
{
|
||||
"type": "function",
|
||||
"name": "claimCondition",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "_tokenId",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "startTimestamp",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "maxClaimableSupply",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "supplyClaimed",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "quantityLimitPerWallet",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "merkleRoot",
|
||||
"type": "bytes32",
|
||||
"internalType": "bytes32"
|
||||
},
|
||||
{
|
||||
"name": "pricePerToken",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "currency",
|
||||
"type": "address",
|
||||
"internalType": "address"
|
||||
},
|
||||
{
|
||||
"name": "metadata",
|
||||
"type": "string",
|
||||
"internalType": "string"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
[
|
||||
{
|
||||
"type": "function",
|
||||
"name": "claimCondition",
|
||||
"inputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "startTimestamp",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "maxClaimableSupply",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "supplyClaimed",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "quantityLimitPerWallet",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "merkleRoot",
|
||||
"type": "bytes32",
|
||||
"internalType": "bytes32"
|
||||
},
|
||||
{
|
||||
"name": "pricePerToken",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "currency",
|
||||
"type": "address",
|
||||
"internalType": "address"
|
||||
},
|
||||
{
|
||||
"name": "metadata",
|
||||
"type": "string",
|
||||
"internalType": "string"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,50 @@
|
||||
[
|
||||
{
|
||||
"type": "function",
|
||||
"name": "claimCondition",
|
||||
"inputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "startTimestamp",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "maxClaimableSupply",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "supplyClaimed",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "quantityLimitPerWallet",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "merkleRoot",
|
||||
"type": "bytes32",
|
||||
"internalType": "bytes32"
|
||||
},
|
||||
{
|
||||
"name": "pricePerToken",
|
||||
"type": "uint256",
|
||||
"internalType": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "currency",
|
||||
"type": "address",
|
||||
"internalType": "address"
|
||||
},
|
||||
{
|
||||
"name": "metadata",
|
||||
"type": "string",
|
||||
"internalType": "string"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view"
|
||||
}
|
||||
]
|
||||
@@ -515,7 +515,7 @@ async function alignTxFromEthers(
|
||||
chainId,
|
||||
to,
|
||||
data: (data ?? undefined) as Hex | undefined,
|
||||
nonce: nonce ? ethers.BigNumber.from(gasPrice).toNumber() : undefined,
|
||||
nonce: nonce ? ethers.BigNumber.from(nonce).toNumber() : undefined,
|
||||
value: value ? ethers.BigNumber.from(value).toBigInt() : undefined,
|
||||
gasPrice: gasPrice
|
||||
? ethers.BigNumber.from(gasPrice).toBigInt()
|
||||
@@ -533,7 +533,7 @@ async function alignTxFromEthers(
|
||||
chainId,
|
||||
to,
|
||||
data: (data ?? undefined) as Hex | undefined,
|
||||
nonce: nonce ? ethers.BigNumber.from(gasPrice).toNumber() : undefined,
|
||||
nonce: nonce ? ethers.BigNumber.from(nonce).toNumber() : undefined,
|
||||
value: value ? ethers.BigNumber.from(value).toBigInt() : undefined,
|
||||
gas: gasLimit ? ethers.BigNumber.from(gasLimit).toBigInt() : undefined,
|
||||
maxFeePerGas: maxFeePerGas
|
||||
@@ -550,7 +550,7 @@ async function alignTxFromEthers(
|
||||
chainId,
|
||||
to,
|
||||
data: (data ?? undefined) as Hex | undefined,
|
||||
nonce: nonce ? ethers.BigNumber.from(gasPrice).toNumber() : undefined,
|
||||
nonce: nonce ? ethers.BigNumber.from(nonce).toNumber() : undefined,
|
||||
value: value ? ethers.BigNumber.from(value).toBigInt() : undefined,
|
||||
gasPrice: gasPrice
|
||||
? ethers.BigNumber.from(gasPrice).toBigInt()
|
||||
|
||||
@@ -29,9 +29,9 @@ export const viemAdapter = {
|
||||
* @returns The ThirdwebContract.
|
||||
* @example
|
||||
* ```ts
|
||||
* import { viemAdapter } from "thirdweb/adapters";
|
||||
* import { viemAdapter } from "thirdweb/adapters/viem";
|
||||
*
|
||||
* const contract = viemmAdapter.contract.fromViem({
|
||||
* const contract = viemAdapter.contract.fromViem({
|
||||
* viemContract: viemContract,
|
||||
* chain: ethereum,
|
||||
* client,
|
||||
@@ -58,7 +58,7 @@ export const viemAdapter = {
|
||||
* @returns The Viem public client.
|
||||
* @example
|
||||
* ```ts
|
||||
* import { viemAdapter } from "thirdweb/adapters";
|
||||
* import { viemAdapter } from "thirdweb/adapters/viem";
|
||||
*
|
||||
* const publicClient = viemAdapter.publicClient.toViem({
|
||||
* chain: ethereum,
|
||||
@@ -77,10 +77,10 @@ export const viemAdapter = {
|
||||
* @returns The Viem Wallet client.
|
||||
* @example
|
||||
* ```ts
|
||||
* import { viemAdapter } from "thirdweb/adapters";
|
||||
* import { viemAdapter } from "thirdweb/adapters/viem";
|
||||
*
|
||||
* const walletClient = viemAdapter.walletClient.toViem({
|
||||
* wallet: wallet,
|
||||
* account,
|
||||
* client,
|
||||
* chain: ethereum,
|
||||
* });
|
||||
@@ -94,7 +94,7 @@ export const viemAdapter = {
|
||||
* @returns The Account.
|
||||
* @example
|
||||
* ```ts
|
||||
* import { viemAdapter } from "thirdweb/adapters";
|
||||
* import { viemAdapter } from "thirdweb/adapters/viem";
|
||||
*
|
||||
* const account = viemAdapter.walletClient.fromViem({
|
||||
* walletClient,
|
||||
@@ -246,7 +246,7 @@ function fromViemWalletClient(options: {
|
||||
const viemAccount = options.walletClient.account;
|
||||
if (!viemAccount) {
|
||||
throw new Error(
|
||||
"Account not found in walletClient, please pass it explicitely.",
|
||||
"Account not found in walletClient, please pass it explicitly.",
|
||||
);
|
||||
}
|
||||
return {
|
||||
|
||||
@@ -107,7 +107,7 @@ export type VerifySignatureParams = Prettify<
|
||||
/**
|
||||
* Verifies the signature based on the provided options.
|
||||
* Handles smart contract wallet signatures and EOA signatures.
|
||||
* IMPORTANT: in order to check smart contract signatures, a chain and client must be provided.
|
||||
* **IMPORTANT: in order to check smart contract signatures, a chain and client must be provided.**
|
||||
* @param options - The options for signature verification.
|
||||
* @returns A boolean indicating whether the signature is valid or not.
|
||||
* @example
|
||||
@@ -115,9 +115,11 @@ export type VerifySignatureParams = Prettify<
|
||||
* import { verifySignature } from 'thirdweb/auth';
|
||||
*
|
||||
* const isValid = await verifySignature({
|
||||
* message: '0x1234567890123456789012345678901234567890',
|
||||
* signature: '0x1234567890123456789012345678901234567890',
|
||||
* address: '0x1234567890123456789012345678901234567890'
|
||||
* message: 'Your message to sign',
|
||||
* signature: '0x91db0222ec371a8c18d3b187a6d2e77789bffca1b96826ef6b8708e0d4a66c80312fc3ae95b8fbc147265abf539bb6f360152be61a0e1411d7f5771a599e769a1c',
|
||||
* address: '0xda9C7A86AeE76701FC1c23ae548e8E93Ba3e42A5',
|
||||
* client: thirdwebClient,
|
||||
* chain: chain
|
||||
* });
|
||||
* ```
|
||||
* @auth
|
||||
|
||||
@@ -3,7 +3,7 @@ import { defineChain } from "../utils.js";
|
||||
export const anvil = /* @__PURE__ */ defineChain({
|
||||
id: 31337,
|
||||
name: "Anvil",
|
||||
rpc: "http://localhost:8545",
|
||||
rpc: "http://127.0.0.1:8545",
|
||||
testnet: true,
|
||||
nativeCurrency: {
|
||||
name: "Anvil Ether",
|
||||
|
||||
@@ -15,6 +15,8 @@ const opChains = [
|
||||
zoraSepolia.id,
|
||||
34443, // mode
|
||||
919, // mode testnet
|
||||
42220, // celo
|
||||
44787, // celo testnet
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -6,6 +6,7 @@ export type ChainOptions = {
|
||||
id: number;
|
||||
name?: string;
|
||||
rpc?: string;
|
||||
icon?: Icon;
|
||||
nativeCurrency?: {
|
||||
name?: string;
|
||||
symbol?: string;
|
||||
|
||||
@@ -231,45 +231,29 @@ export function getChainMetadata(chain: Chain): Promise<ChainMetadata> {
|
||||
const chainId = chain.id;
|
||||
return withCache(
|
||||
async () => {
|
||||
const res = await fetch(`https://api.thirdweb.com/v1/chains/${chainId}`);
|
||||
if (!res.ok) {
|
||||
res.body?.cancel();
|
||||
throw new Error(`Failed to fetch chain data for chainId ${chainId}`);
|
||||
}
|
||||
try {
|
||||
const res = await fetch(
|
||||
`https://api.thirdweb.com/v1/chains/${chainId}`,
|
||||
);
|
||||
if (!res.ok) {
|
||||
res.body?.cancel();
|
||||
throw new Error(`Failed to fetch chain data for chainId ${chainId}`);
|
||||
}
|
||||
|
||||
const response = (await res.json()) as FetchChainResponse;
|
||||
if (response.error) {
|
||||
throw new Error(`Failed to fetch chain data for chainId ${chainId}`);
|
||||
}
|
||||
if (!response.data) {
|
||||
throw new Error(`Failed to fetch chain data for chainId ${chainId}`);
|
||||
}
|
||||
const response = (await res.json()) as FetchChainResponse;
|
||||
if (response.error) {
|
||||
throw new Error(`Failed to fetch chain data for chainId ${chainId}`);
|
||||
}
|
||||
if (!response.data) {
|
||||
throw new Error(`Failed to fetch chain data for chainId ${chainId}`);
|
||||
}
|
||||
|
||||
const data = response.data;
|
||||
const data = response.data;
|
||||
|
||||
return {
|
||||
...data,
|
||||
name: chain?.name || data.name,
|
||||
chainId: chain?.id || data.chainId,
|
||||
rpc: chain?.rpc ? [chain.rpc] : data.rpc,
|
||||
testnet: chain?.testnet || data.testnet,
|
||||
nativeCurrency: chain?.nativeCurrency
|
||||
? {
|
||||
...data.nativeCurrency,
|
||||
...chain.nativeCurrency,
|
||||
}
|
||||
: data.nativeCurrency,
|
||||
// TODO: handle explorers - don't know what should be the standard
|
||||
// explorers: chain?.blockExplorers
|
||||
// ? chain.blockExplorers.map((x) => {
|
||||
// return {
|
||||
// name: x.name,
|
||||
// url: x.url,
|
||||
// standard: '' /// ???
|
||||
// };
|
||||
// })
|
||||
// : result.data.explorers,
|
||||
};
|
||||
return createChainMetadata(chain, data);
|
||||
} catch {
|
||||
return createChainMetadata(chain);
|
||||
}
|
||||
},
|
||||
{
|
||||
cacheKey: `chain:${chainId}`,
|
||||
@@ -298,3 +282,31 @@ export function convertApiChainToChain(apiChain: ChainMetadata): Chain {
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
function createChainMetadata(
|
||||
chain: Chain,
|
||||
data?: ChainMetadata,
|
||||
): ChainMetadata {
|
||||
const nativeCurrency = chain.nativeCurrency
|
||||
? {
|
||||
...data?.nativeCurrency,
|
||||
...chain.nativeCurrency,
|
||||
}
|
||||
: data?.nativeCurrency;
|
||||
|
||||
return {
|
||||
...data,
|
||||
name: chain.name || data?.name || "",
|
||||
chainId: chain.id || data?.chainId || -1,
|
||||
rpc: chain.rpc ? [chain.rpc] : data?.rpc || [""],
|
||||
testnet: chain.testnet || data?.testnet || false,
|
||||
nativeCurrency: {
|
||||
name: nativeCurrency?.name || "",
|
||||
symbol: nativeCurrency?.symbol || "",
|
||||
decimals: nativeCurrency?.decimals || 18,
|
||||
},
|
||||
chain: data?.chain || chain.name || "",
|
||||
shortName: data?.shortName || chain.name || "",
|
||||
slug: data?.slug || chain.name || "",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -18,9 +18,11 @@ export async function getOrDeployInfraForPublishedContract(
|
||||
args: ClientAndChainAndAccount & {
|
||||
contractId: string;
|
||||
constructorParams: unknown[];
|
||||
publisher?: string;
|
||||
},
|
||||
) {
|
||||
const { chain, client, account, contractId, constructorParams } = args;
|
||||
const { chain, client, account, contractId, constructorParams, publisher } =
|
||||
args;
|
||||
let [cloneFactoryContract, implementationContract] = await Promise.all([
|
||||
getDeployedCloneFactoryContract({
|
||||
chain,
|
||||
@@ -31,6 +33,7 @@ export async function getOrDeployInfraForPublishedContract(
|
||||
client,
|
||||
contractId,
|
||||
constructorParams,
|
||||
publisher,
|
||||
}),
|
||||
]);
|
||||
|
||||
@@ -47,6 +50,7 @@ export async function getOrDeployInfraForPublishedContract(
|
||||
account,
|
||||
contractId,
|
||||
constructorParams,
|
||||
publisher,
|
||||
});
|
||||
}
|
||||
return { cloneFactoryContract, implementationContract };
|
||||
|
||||
@@ -27,7 +27,7 @@ export type WatchContractEventsOptions<
|
||||
* ### Listen to all events for a contract
|
||||
* ```ts
|
||||
* import { watchContractEvents } from "thirdweb";
|
||||
* const unwatch = watchEvents({
|
||||
* const unwatch = watchContractEvents({
|
||||
* contract: myContract,
|
||||
* onEvents: (events) => {
|
||||
* // do something with the events
|
||||
@@ -41,7 +41,7 @@ export type WatchContractEventsOptions<
|
||||
* const myEvent = prepareEvent({
|
||||
* event: "event MyEvent(uint256 myArg)",
|
||||
* });
|
||||
* const events = await watchEvents({
|
||||
* const events = await watchContractEvents({
|
||||
* contract: myContract,
|
||||
* events: [myEvent],
|
||||
* onEvents: (events) => {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
// chain type
|
||||
export type { Chain } from "../chains/types.js";
|
||||
// chain Metadata type
|
||||
export type { ChainMetadata } from "../chains/types.js";
|
||||
// chain types
|
||||
export type { Chain, ChainOptions, ChainMetadata } from "../chains/types.js";
|
||||
// define chain, chainMetadata
|
||||
export {
|
||||
defineChain,
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* READ
|
||||
*/
|
||||
export {
|
||||
isClaimed,
|
||||
type IsClaimedParams,
|
||||
} from "../../extensions/airdrop/__generated__/Airdrop/read/isClaimed.js";
|
||||
export {
|
||||
tokenConditionId,
|
||||
type TokenConditionIdParams,
|
||||
} from "../../extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.js";
|
||||
export {
|
||||
tokenMerkleRoot,
|
||||
type TokenMerkleRootParams,
|
||||
} from "../../extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.js";
|
||||
|
||||
/**
|
||||
* Write
|
||||
*/
|
||||
export {
|
||||
airdropERC20,
|
||||
type AirdropERC20Params,
|
||||
} from "../../extensions/airdrop/__generated__/Airdrop/write/airdropERC20.js";
|
||||
export {
|
||||
airdropERC721,
|
||||
type AirdropERC721Params,
|
||||
} from "../../extensions/airdrop/__generated__/Airdrop/write/airdropERC721.js";
|
||||
export {
|
||||
airdropERC1155,
|
||||
type AirdropERC1155Params,
|
||||
} from "../../extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.js";
|
||||
export {
|
||||
airdropNativeToken,
|
||||
type AirdropNativeTokenParams,
|
||||
} from "../../extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.js";
|
||||
export {
|
||||
setMerkleRoot,
|
||||
type SetMerkleRootParams,
|
||||
} from "../../extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.js";
|
||||
export {
|
||||
airdropERC20WithSignature,
|
||||
generateAirdropSignatureERC20,
|
||||
type GenerateAirdropERC20SignatureOptions,
|
||||
} from "../../extensions/airdrop/write/airdropERC20WithSignature.js";
|
||||
export {
|
||||
airdropERC721WithSignature,
|
||||
generateAirdropSignatureERC721,
|
||||
type GenerateAirdropERC721SignatureOptions,
|
||||
} from "../../extensions/airdrop/write/airdropERC721WithSignature.js";
|
||||
export {
|
||||
airdropERC1155WithSignature,
|
||||
generateAirdropSignatureERC1155,
|
||||
type GenerateAirdropERC1155SignatureOptions,
|
||||
} from "../../extensions/airdrop/write/airdropERC1155WithSignature.js";
|
||||
export {
|
||||
claimERC20,
|
||||
type ClaimERC20Params,
|
||||
} from "../../extensions/airdrop/write/claimERC20.js";
|
||||
export {
|
||||
claimERC721,
|
||||
type ClaimERC721Params,
|
||||
} from "../../extensions/airdrop/write/claimERC721.js";
|
||||
export {
|
||||
claimERC1155,
|
||||
type ClaimERC1155Params,
|
||||
} from "../../extensions/airdrop/write/claimERC1155.js";
|
||||
export {
|
||||
generateMerkleTreeInfoERC20,
|
||||
type GenerateMerkleTreeInfoERC20Params,
|
||||
} from "../../extensions/airdrop/write/merkleInfoERC20.js";
|
||||
export {
|
||||
generateMerkleTreeInfoERC721,
|
||||
type GenerateMerkleTreeInfoERC721Params,
|
||||
} from "../../extensions/airdrop/write/merkleInfoERC721.js";
|
||||
export {
|
||||
generateMerkleTreeInfoERC1155,
|
||||
type GenerateMerkleTreeInfoERC1155Params,
|
||||
} from "../../extensions/airdrop/write/merkleInfoERC1155.js";
|
||||
export {
|
||||
saveSnapshot,
|
||||
type SaveSnapshotParams,
|
||||
} from "../../extensions/airdrop/write/saveSnapshot.js";
|
||||
@@ -78,6 +78,7 @@ export { freezeMetadata } from "../../extensions/erc1155/__generated__/INFTMetad
|
||||
* DROPS extension for ERC1155
|
||||
*/
|
||||
export { getActiveClaimCondition } from "../../extensions/erc1155/drops/read/getActiveClaimCondition.js";
|
||||
export { claimCondition } from "../../extensions/erc1155/__generated__/DropSinglePhase1155/read/claimCondition.js";
|
||||
export {
|
||||
claimTo,
|
||||
type ClaimToParams,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// read
|
||||
export { isERC20 } from "../../extensions/erc20/read/isERC20.js";
|
||||
export {
|
||||
getBalance,
|
||||
type GetBalanceParams,
|
||||
@@ -49,6 +50,7 @@ export {
|
||||
* DROPS extension for ERC20
|
||||
*/
|
||||
export { getClaimConditionById } from "../../extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.js";
|
||||
export { claimCondition } from "../../extensions/erc20/__generated__/DropSinglePhase/read/claimCondition.js";
|
||||
export { getActiveClaimCondition } from "../../extensions/erc20/drops/read/getActiveClaimCondition.js";
|
||||
export {
|
||||
claimTo,
|
||||
|
||||
@@ -83,6 +83,7 @@ export {
|
||||
* DROPS extension for ERC721
|
||||
*/
|
||||
export { getClaimConditionById } from "../../extensions/erc721/__generated__/IDrop/read/getClaimConditionById.js";
|
||||
export { claimCondition } from "../../extensions/erc721/__generated__/DropSinglePhase/read/claimCondition.js";
|
||||
export { getActiveClaimCondition } from "../../extensions/erc721/drops/read/getActiveClaimCondition.js";
|
||||
export {
|
||||
claimTo,
|
||||
|
||||
@@ -61,7 +61,7 @@ export {
|
||||
} from "../../extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.js";
|
||||
|
||||
export {
|
||||
getUniswapV3Pools as getUniswapV3Pool,
|
||||
type GetUniswapV3PoolsParams as GetUniswapV3PoolParams,
|
||||
type GetUniswapV3PoolsResult as GetUniswapV3PoolResult,
|
||||
getUniswapV3Pool,
|
||||
type GetUniswapV3PoolParams,
|
||||
type GetUniswapV3PoolResult,
|
||||
} from "../../extensions/uniswap/read/getUniswapV3Pools.js";
|
||||
|
||||
@@ -54,6 +54,8 @@ export {
|
||||
useIsAutoConnecting,
|
||||
} from "../react/core/hooks/wallets/wallet-hooks.js";
|
||||
|
||||
export type { ConnectManagerOptions } from "../wallets/manager/index.js";
|
||||
|
||||
// contract related
|
||||
export { useReadContract } from "../react/core/hooks/contract/useReadContract.js";
|
||||
export {
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
import { prepareEvent } from "../../../../../event/prepare-event.js";
|
||||
|
||||
/**
|
||||
* Creates an event object for the Airdrop event.
|
||||
* @returns The prepared event object.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { getContractEvents } from "thirdweb";
|
||||
* import { airdropEvent } from "thirdweb/extensions/airdrop";
|
||||
*
|
||||
* const events = await getContractEvents({
|
||||
* contract,
|
||||
* events: [
|
||||
* airdropEvent()
|
||||
* ],
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export function airdropEvent() {
|
||||
return prepareEvent({
|
||||
signature: "event Airdrop(address token)",
|
||||
});
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
import { prepareEvent } from "../../../../../event/prepare-event.js";
|
||||
|
||||
/**
|
||||
* Creates an event object for the AirdropClaimed event.
|
||||
* @returns The prepared event object.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { getContractEvents } from "thirdweb";
|
||||
* import { airdropClaimedEvent } from "thirdweb/extensions/airdrop";
|
||||
*
|
||||
* const events = await getContractEvents({
|
||||
* contract,
|
||||
* events: [
|
||||
* airdropClaimedEvent()
|
||||
* ],
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export function airdropClaimedEvent() {
|
||||
return prepareEvent({
|
||||
signature: "event AirdropClaimed(address token, address receiver)",
|
||||
});
|
||||
}
|
||||
Generated
+24
@@ -0,0 +1,24 @@
|
||||
import { prepareEvent } from "../../../../../event/prepare-event.js";
|
||||
|
||||
/**
|
||||
* Creates an event object for the AirdropWithSignature event.
|
||||
* @returns The prepared event object.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { getContractEvents } from "thirdweb";
|
||||
* import { airdropWithSignatureEvent } from "thirdweb/extensions/airdrop";
|
||||
*
|
||||
* const events = await getContractEvents({
|
||||
* contract,
|
||||
* events: [
|
||||
* airdropWithSignatureEvent()
|
||||
* ],
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export function airdropWithSignatureEvent() {
|
||||
return prepareEvent({
|
||||
signature: "event AirdropWithSignature(address token)",
|
||||
});
|
||||
}
|
||||
Generated
+24
@@ -0,0 +1,24 @@
|
||||
import { prepareEvent } from "../../../../../event/prepare-event.js";
|
||||
|
||||
/**
|
||||
* Creates an event object for the ContractURIUpdated event.
|
||||
* @returns The prepared event object.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { getContractEvents } from "thirdweb";
|
||||
* import { contractURIUpdatedEvent } from "thirdweb/extensions/airdrop";
|
||||
*
|
||||
* const events = await getContractEvents({
|
||||
* contract,
|
||||
* events: [
|
||||
* contractURIUpdatedEvent()
|
||||
* ],
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export function contractURIUpdatedEvent() {
|
||||
return prepareEvent({
|
||||
signature: "event ContractURIUpdated(string prevURI, string newURI)",
|
||||
});
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
import { prepareEvent } from "../../../../../event/prepare-event.js";
|
||||
|
||||
/**
|
||||
* Creates an event object for the Initialized event.
|
||||
* @returns The prepared event object.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { getContractEvents } from "thirdweb";
|
||||
* import { initializedEvent } from "thirdweb/extensions/airdrop";
|
||||
*
|
||||
* const events = await getContractEvents({
|
||||
* contract,
|
||||
* events: [
|
||||
* initializedEvent()
|
||||
* ],
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export function initializedEvent() {
|
||||
return prepareEvent({
|
||||
signature: "event Initialized(uint8 version)",
|
||||
});
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
import { prepareEvent } from "../../../../../event/prepare-event.js";
|
||||
import type { AbiParameterToPrimitiveType } from "abitype";
|
||||
|
||||
/**
|
||||
* Represents the filters for the "OwnerUpdated" event.
|
||||
*/
|
||||
export type OwnerUpdatedEventFilters = Partial<{
|
||||
prevOwner: AbiParameterToPrimitiveType<{
|
||||
name: "prevOwner";
|
||||
type: "address";
|
||||
indexed: true;
|
||||
internalType: "address";
|
||||
}>;
|
||||
newOwner: AbiParameterToPrimitiveType<{
|
||||
name: "newOwner";
|
||||
type: "address";
|
||||
indexed: true;
|
||||
internalType: "address";
|
||||
}>;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Creates an event object for the OwnerUpdated event.
|
||||
* @param filters - Optional filters to apply to the event.
|
||||
* @returns The prepared event object.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { getContractEvents } from "thirdweb";
|
||||
* import { ownerUpdatedEvent } from "thirdweb/extensions/airdrop";
|
||||
*
|
||||
* const events = await getContractEvents({
|
||||
* contract,
|
||||
* events: [
|
||||
* ownerUpdatedEvent({
|
||||
* prevOwner: ...,
|
||||
* newOwner: ...,
|
||||
* })
|
||||
* ],
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export function ownerUpdatedEvent(filters: OwnerUpdatedEventFilters = {}) {
|
||||
return prepareEvent({
|
||||
signature:
|
||||
"event OwnerUpdated(address indexed prevOwner, address indexed newOwner)",
|
||||
filters,
|
||||
});
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
import { readContract } from "../../../../../transaction/read-contract.js";
|
||||
import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
|
||||
|
||||
import { decodeAbiParameters } from "viem";
|
||||
import type { Hex } from "../../../../../utils/encoding/hex.js";
|
||||
import type { ThirdwebContract } from "../../../../../contract/contract.js";
|
||||
import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js";
|
||||
|
||||
export const FN_SELECTOR = "0xe8a3d485" as const;
|
||||
const FN_INPUTS = [] as const;
|
||||
const FN_OUTPUTS = [
|
||||
{
|
||||
type: "string",
|
||||
},
|
||||
] as const;
|
||||
|
||||
/**
|
||||
* Checks if the `contractURI` method is supported by the given contract.
|
||||
* @param contract The ThirdwebContract.
|
||||
* @returns A promise that resolves to a boolean indicating if the `contractURI` method is supported.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { isContractURISupported } from "thirdweb/extensions/airdrop";
|
||||
*
|
||||
* const supported = await isContractURISupported(contract);
|
||||
* ```
|
||||
*/
|
||||
export async function isContractURISupported(contract: ThirdwebContract<any>) {
|
||||
return detectMethod({
|
||||
contract,
|
||||
method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Decodes the result of the contractURI function call.
|
||||
* @param result - The hexadecimal result to decode.
|
||||
* @returns The decoded result as per the FN_OUTPUTS definition.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { decodeContractURIResult } from "thirdweb/extensions/airdrop";
|
||||
* const result = decodeContractURIResult("...");
|
||||
* ```
|
||||
*/
|
||||
export function decodeContractURIResult(result: Hex) {
|
||||
return decodeAbiParameters(FN_OUTPUTS, result)[0];
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "contractURI" function on the contract.
|
||||
* @param options - The options for the contractURI function.
|
||||
* @returns The parsed result of the function call.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { contractURI } from "thirdweb/extensions/airdrop";
|
||||
*
|
||||
* const result = await contractURI();
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
export async function contractURI(options: BaseTransactionOptions) {
|
||||
return readContract({
|
||||
contract: options.contract,
|
||||
method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const,
|
||||
params: [],
|
||||
});
|
||||
}
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
import { readContract } from "../../../../../transaction/read-contract.js";
|
||||
import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
|
||||
|
||||
import { decodeAbiParameters } from "viem";
|
||||
import type { Hex } from "../../../../../utils/encoding/hex.js";
|
||||
import type { ThirdwebContract } from "../../../../../contract/contract.js";
|
||||
import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js";
|
||||
|
||||
export const FN_SELECTOR = "0x84b0196e" as const;
|
||||
const FN_INPUTS = [] as const;
|
||||
const FN_OUTPUTS = [
|
||||
{
|
||||
name: "fields",
|
||||
type: "bytes1",
|
||||
internalType: "bytes1",
|
||||
},
|
||||
{
|
||||
name: "name",
|
||||
type: "string",
|
||||
internalType: "string",
|
||||
},
|
||||
{
|
||||
name: "version",
|
||||
type: "string",
|
||||
internalType: "string",
|
||||
},
|
||||
{
|
||||
name: "chainId",
|
||||
type: "uint256",
|
||||
internalType: "uint256",
|
||||
},
|
||||
{
|
||||
name: "verifyingContract",
|
||||
type: "address",
|
||||
internalType: "address",
|
||||
},
|
||||
{
|
||||
name: "salt",
|
||||
type: "bytes32",
|
||||
internalType: "bytes32",
|
||||
},
|
||||
{
|
||||
name: "extensions",
|
||||
type: "uint256[]",
|
||||
internalType: "uint256[]",
|
||||
},
|
||||
] as const;
|
||||
|
||||
/**
|
||||
* Checks if the `eip712Domain` method is supported by the given contract.
|
||||
* @param contract The ThirdwebContract.
|
||||
* @returns A promise that resolves to a boolean indicating if the `eip712Domain` method is supported.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { isEip712DomainSupported } from "thirdweb/extensions/airdrop";
|
||||
*
|
||||
* const supported = await isEip712DomainSupported(contract);
|
||||
* ```
|
||||
*/
|
||||
export async function isEip712DomainSupported(contract: ThirdwebContract<any>) {
|
||||
return detectMethod({
|
||||
contract,
|
||||
method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Decodes the result of the eip712Domain function call.
|
||||
* @param result - The hexadecimal result to decode.
|
||||
* @returns The decoded result as per the FN_OUTPUTS definition.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { decodeEip712DomainResult } from "thirdweb/extensions/airdrop";
|
||||
* const result = decodeEip712DomainResult("...");
|
||||
* ```
|
||||
*/
|
||||
export function decodeEip712DomainResult(result: Hex) {
|
||||
return decodeAbiParameters(FN_OUTPUTS, result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the "eip712Domain" function on the contract.
|
||||
* @param options - The options for the eip712Domain function.
|
||||
* @returns The parsed result of the function call.
|
||||
* @extension AIRDROP
|
||||
* @example
|
||||
* ```ts
|
||||
* import { eip712Domain } from "thirdweb/extensions/airdrop";
|
||||
*
|
||||
* const result = await eip712Domain();
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
export async function eip712Domain(options: BaseTransactionOptions) {
|
||||
return readContract({
|
||||
contract: options.contract,
|
||||
method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const,
|
||||
params: [],
|
||||
});
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user