Compare commits

...
Author SHA1 Message Date
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
bb80b1d758 Version Packages (#2909)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-05-04 15:28:53 +12:00
Joaquim VergesandGitHub 5b0c37a0d9 feat: default account factory for smart accounts + switch chain support (#2917) 2024-05-03 20:03:28 -07:00
gregandGitHub d77b6f67ad Adds use client directives (#2921) 2024-05-03 19:33:45 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2c4af9a85d chore(chains): update chains (#2920)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-03 18:25:16 -07:00
Jonas DanielsandGitHub 47de345b60 chore(wallets): add support for several new wallets (#2919) 2024-05-03 18:25:01 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
7485f6bb41 chore(chains): update chains (#2918)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-03 16:33:27 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
c280112bba chore(chains): update chains (#2910)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-03 12:15:06 -07:00
Joaquim VergesandGitHub 664082e5e6 feat: prepareDeployDeterministicTransaction (#2915) 2024-05-03 01:50:10 +00:00
Joaquim VergesandGitHub 24a3ee49d1 fix: legacy transactions with in-app wallet (#2914) 2024-05-03 13:44:55 +12:00
gregandGitHub 5525a0e336 Filter invalid auction listings on getAllAuctions (#2913) 2024-05-02 13:53:57 -07:00
gregandGitHub 35acbcd10e Update mintWithSignature ABIs with proper return types (#2911) 2024-05-02 16:05:35 +00:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
83d1d6f397 chore(chains): update chains (#2908)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-02 09:16:38 +12:00
gregandGitHub 1f3e5c4726 Create wallet ID constants file (#2900) 2024-05-01 16:29:01 +00:00
243 changed files with 2733 additions and 13440 deletions
+7
View File
@@ -1,5 +1,12 @@
# @thirdweb-dev/auth
## 4.1.73
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/wallets@2.5.15
## 4.1.72
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/auth",
"version": "4.1.72",
"version": "4.1.73",
"main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js",
"browser": {
+6
View File
@@ -1,5 +1,11 @@
# @thirdweb-dev/chains
## 0.1.105
### Patch Changes
- [#2908](https://github.com/thirdweb-dev/js/pull/2908) [`83d1d6f`](https://github.com/thirdweb-dev/js/commit/83d1d6f397982dfda87a835743a2ef1fecd5d919) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
## 0.1.104
### Patch Changes
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 10154,
"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": "QIM2405023 Interop",
"nativeCurrency": {
"name": "QIM2405023 Interop Token",
"symbol": "UZP",
"decimals": 18
},
"networkId": 10154,
"redFlags": [],
"rpc": [
"https://10154.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QIM2405023 Interop",
"slug": "qim2405023-interop",
"testnet": true
} as const satisfies Chain;
+35
View File
@@ -0,0 +1,35 @@
import type { Chain } from "../src/types";
export default {
"chain": "ETH",
"chainId": 1135,
"explorers": [
{
"name": "blockscout",
"url": "https://blockscout.lisk.com",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 551,
"height": 540,
"format": "png"
}
}
],
"faucets": [],
"infoURL": "https://lisk.com",
"name": "Lisk",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"networkId": 1135,
"rpc": [
"https://1135.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.api.lisk.com"
],
"shortName": "lisk",
"slip44": 134,
"slug": "lisk",
"testnet": false
} as const satisfies Chain;
+3
View File
@@ -15,6 +15,7 @@ export default {
}
],
"faucets": [],
"features": [],
"icon": {
"url": "ipfs://QmcHdmVr5VRUJq13jnM6tgah5Ge7hn3Dm14eY6vwivJ5ui",
"width": 288,
@@ -29,8 +30,10 @@ export default {
"decimals": 18
},
"networkId": 167009,
"redFlags": [],
"rpc": [
"https://167009.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://taiko-hekla.blockpi.network/v1/rpc/public",
"https://rpc.hekla.taiko.xyz",
"wss://ws.hekla.taiko.xyz"
],
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 1853,
"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": "HighOctane",
"nativeCurrency": {
"name": "HighOctane Token",
"symbol": "HO",
"decimals": 18
},
"networkId": 1853,
"redFlags": [],
"rpc": [
"https://1853.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/highoctane/mainnet/rpc"
],
"shortName": "HighOctane",
"slug": "highoctane",
"testnet": false
} as const satisfies Chain;
+3 -3
View File
@@ -5,7 +5,7 @@ export default {
"explorers": [
{
"name": "edexa-testnet",
"url": "https://explorer.testnet.edexa.com",
"url": "https://explorer.testnet.edexa.network",
"standard": "EIP3091"
}
],
@@ -18,7 +18,7 @@ export default {
"height": 1042,
"format": "png"
},
"infoURL": "https://edexa.com/",
"infoURL": "https://edexa.network/",
"name": "edeXa Testnet",
"nativeCurrency": {
"name": "EDEXA",
@@ -28,7 +28,7 @@ export default {
"networkId": 1995,
"rpc": [
"https://1995.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://testnet.edexa.com/rpc",
"https://testnet.edexa.network/rpc",
"https://io-dataseed1.testnet.edexa.io-market.com/rpc"
],
"shortName": "edx",
+49
View File
@@ -0,0 +1,49 @@
import type { Chain } from "../src/types";
export default {
"chain": "TEL",
"chainId": 2017,
"explorers": [
{
"name": "telscan",
"url": "https://telscan.io",
"standard": "EIP3091",
"icon": {
"url": "ipfs://bafkreih4obvrymfdqohzhiafhvpcy6zwqbgpfm26aahrv3qx2dtcei7hk4",
"width": 79,
"height": 80,
"format": "svg"
}
}
],
"faucets": [
"https://telcoin.network/faucet"
],
"icon": {
"url": "ipfs://bafkreih4obvrymfdqohzhiafhvpcy6zwqbgpfm26aahrv3qx2dtcei7hk4",
"width": 79,
"height": 80,
"format": "svg"
},
"infoURL": "https://telcoin.network",
"name": "Adiri",
"nativeCurrency": {
"name": "Telcoin",
"symbol": "TEL",
"decimals": 18
},
"networkId": 2017,
"rpc": [
"https://2017.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.telcoin.network",
"https://adiri.tel",
"https://node1.telcoin.network",
"https://node2.telcoin.network",
"https://node3.telcoin.network",
"https://node4.telcoin.network"
],
"shortName": "tel",
"slip44": 1,
"slug": "adiri",
"testnet": true,
"title": "Telcoin Network Testnet"
} as const satisfies Chain;
+5 -3
View File
@@ -25,7 +25,7 @@ export default {
"format": "png"
},
"infoURL": "https://atleta.network",
"name": "Atleta Testnet",
"name": "Atleta Olympia",
"nativeCurrency": {
"name": "Atla",
"symbol": "ATLA",
@@ -33,10 +33,12 @@ export default {
},
"networkId": 2340,
"rpc": [
"wss://testnet-rpc.atleta.network:9944"
"https://2340.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"wss://testnet-rpc.atleta.network:9944",
"https://testnet-rpc.atleta.network:9944"
],
"shortName": "atla",
"slip44": 1,
"slug": "atleta-testnet",
"slug": "atleta-olympia",
"testnet": true
} as const satisfies Chain;
+2
View File
@@ -23,8 +23,10 @@ export default {
"decimals": 18
},
"networkId": 25,
"redFlags": [],
"rpc": [
"https://25.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://cronos.blockpi.network/v1/rpc/public",
"https://evm.cronos.org",
"https://cronos-evm-rpc.publicnode.com",
"wss://cronos-evm-rpc.publicnode.com",
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 25284,
"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": "QIM2405021",
"nativeCurrency": {
"name": "QIM2405021 Token",
"symbol": "UZP",
"decimals": 18
},
"networkId": 25284,
"redFlags": [],
"rpc": [
"https://25284.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QIM2405021",
"slug": "qim2405021",
"testnet": true
} as const satisfies Chain;
+2 -2
View File
@@ -14,8 +14,8 @@ export default {
"networkId": 3100,
"rpc": [
"https://3100.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://fraa-dancebox-3043-rpc.a.dancebox.tanssi.network",
"wss://fraa-dancebox-3043-rpc.a.dancebox.tanssi.network"
"https://fraa-flashbox-2800-rpc.a.stagenet.tanssi.network",
"wss://fraa-flashbox-2800-rpc.a.stagenet.tanssi.network"
],
"shortName": "Immu3",
"slug": "immu3-evm",
+9 -15
View File
@@ -1,29 +1,23 @@
import type { Chain } from "../src/types";
export default {
"chain": "Web3Q",
"chain": "EthStorage",
"chainId": 3333,
"explorers": [
{
"name": "w3q-testnet",
"url": "https://explorer.testnet.web3q.io",
"standard": "EIP3091"
}
],
"explorers": [],
"faucets": [],
"infoURL": "https://testnet.web3q.io/home.w3q/",
"name": "Web3Q Testnet",
"infoURL": "https://ethstorage.io/",
"name": "EthStorage Testnet",
"nativeCurrency": {
"name": "Web3Q",
"symbol": "W3Q",
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"networkId": 3333,
"rpc": [
"https://3333.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://testnet.web3q.io:8545"
"http://testnet.ethstorage.io:9540"
],
"shortName": "w3q-t",
"shortName": "es-t",
"slip44": 1,
"slug": "web3q-testnet",
"slug": "ethstorage-testnet",
"testnet": true
} as const satisfies Chain;
+34
View File
@@ -0,0 +1,34 @@
import type { Chain } from "../src/types";
export default {
"chain": "GAN",
"chainId": 4048,
"explorers": [
{
"name": "ganscan",
"url": "https://ganscan.gpu.net",
"standard": "none"
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmTYgL4PMNJya3XchuRx99ggNzMHL9kWaZvj3wycdEwpQA",
"width": 1248,
"height": 1197,
"format": "png"
},
"infoURL": "https://docs.gpu.net/",
"name": "GAN Testnet",
"nativeCurrency": {
"name": "GP Token",
"symbol": "GP",
"decimals": 18
},
"networkId": 4048,
"rpc": [
"https://4048.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.gpu.net"
],
"shortName": "GANTestnet",
"slug": "gan-testnet",
"testnet": true
} as const satisfies Chain;
+3 -3
View File
@@ -19,9 +19,9 @@ export default {
}
],
"icon": {
"url": "ipfs://bafkreih6nnkha6t3oiy6qkqpgyb46p3ddg5nff5ayizpum2ljexlc3gc54",
"width": 128,
"height": 128,
"url": "ipfs://bafkreidyrvphfojaf7iev57trxk3sxbo6qikg26pdy66ke4n22dgm52wwa",
"width": 320,
"height": 320,
"format": "png"
},
"infoURL": "https://www.verylabs.io/",
+6
View File
@@ -10,6 +10,12 @@ export default {
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmWvfA2usnYp1ktzLcqFS8eTLgdp4ifrxjiify46KyG9NZ",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://yooldo.gg/",
"name": "Yooldo Verse Mainnet",
"nativeCurrency": {
+6
View File
@@ -10,6 +10,12 @@ export default {
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmWvfA2usnYp1ktzLcqFS8eTLgdp4ifrxjiify46KyG9NZ",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://yooldo.gg/",
"name": "Yooldo Verse Testnet",
"nativeCurrency": {
+1
View File
@@ -34,6 +34,7 @@ export default {
"networkId": 5424,
"rpc": [
"https://5424.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://mainnet.edexa.network/rpc",
"https://mainnet.edexa.com/rpc",
"https://io-dataseed1.mainnet.edexa.io-market.com/rpc"
],
+20 -2
View File
@@ -6,15 +6,33 @@ export default {
{
"name": "Imversed EVM explorer (Blockscout)",
"url": "https://txe.imversed.network",
"standard": "EIP3091"
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
}
},
{
"name": "Imversed Cosmos Explorer (Big Dipper)",
"url": "https://tex-c.imversed.com",
"standard": "none"
"standard": "none",
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
},
"infoURL": "https://imversed.com",
"name": "Imversed Mainnet",
"nativeCurrency": {
+20 -2
View File
@@ -6,15 +6,33 @@ export default {
{
"name": "Imversed EVM Explorer (Blockscout)",
"url": "https://txe-test.imversed.network",
"standard": "EIP3091"
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
}
},
{
"name": "Imversed Cosmos Explorer (Big Dipper)",
"url": "https://tex-t.imversed.com",
"standard": "none"
"standard": "none",
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
},
"infoURL": "https://imversed.com",
"name": "Imversed Testnet",
"nativeCurrency": {
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 58050,
"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": "QaUser0417",
"nativeCurrency": {
"name": "QaUser0417 Token",
"symbol": "HAR",
"decimals": 18
},
"networkId": 58050,
"redFlags": [],
"rpc": [
"https://58050.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QaUser0417",
"slug": "qauser0417",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 70457,
"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": "QaUser9604",
"nativeCurrency": {
"name": "QaUser9604 Token",
"symbol": "CEB",
"decimals": 18
},
"networkId": 70457,
"redFlags": [],
"rpc": [
"https://70457.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QaUser9604",
"slug": "qauser9604",
"testnet": true
} as const satisfies Chain;
+6
View File
@@ -4,6 +4,12 @@ export default {
"chainId": 7118,
"explorers": [],
"faucets": [],
"icon": {
"url": "ipfs://QmNR4Y3cUxefV7KGpGxMkjp5ofeJvbaUkR1GavsmTtK248",
"width": 1000,
"height": 1000,
"format": "png"
},
"infoURL": "https://hth.world",
"name": "Help The Homeless",
"nativeCurrency": {
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 73486,
"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": "QIM2405024 NO INTEROP",
"nativeCurrency": {
"name": "QIM2405024 NO INTEROP Token",
"symbol": "UZP",
"decimals": 18
},
"networkId": 73486,
"redFlags": [],
"rpc": [
"https://73486.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QIM2405024 NO INTEROP",
"slug": "qim2405024-no-interop",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 939359,
"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": "QR0501T1TS",
"nativeCurrency": {
"name": "QR0501T1TS Token",
"symbol": "ZGM",
"decimals": 18
},
"networkId": 939359,
"redFlags": [],
"rpc": [
"https://939359.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/qr0501t1ts/testnet/rpc"
],
"shortName": "QR0501T1TS",
"slug": "qr0501t1ts",
"testnet": true
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 96040,
"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": "FIZIT",
"nativeCurrency": {
"name": "FIZIT Token",
"symbol": "FIZIT",
"decimals": 18
},
"networkId": 96040,
"redFlags": [],
"rpc": [
"https://96040.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/fizit/testnet/rpc"
],
"shortName": "FIZIT",
"slug": "fizit",
"testnet": true
} as const satisfies Chain;
+34
View File
@@ -0,0 +1,34 @@
import type { Chain } from "../src/types";
export default {
"chain": "EthXY",
"chainId": 979,
"explorers": [
{
"name": "EthXY Testnet Network Explorer",
"url": "https://explorer.testnet.ethxy.com",
"standard": "EIP3091"
}
],
"faucets": [],
"icon": {
"url": "ipfs://bafkreihq3b3cqbg2ttlp4dfbgmirrwdw6bbpmmbr5wolddd2izbyqay4xq",
"width": 480,
"height": 480,
"format": "png"
},
"infoURL": "https://ethxy.com",
"name": "EthXY Testnet",
"nativeCurrency": {
"name": "Settled EthXY Token",
"symbol": "SEXY",
"decimals": 18
},
"networkId": 979,
"rpc": [
"https://979.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.testnet.ethxy.com"
],
"shortName": "sexyTestnet",
"slug": "ethxy-testnet",
"testnet": true
} as const satisfies Chain;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/chains",
"version": "0.1.104",
"version": "0.1.105",
"main": "dist/thirdweb-dev-chains.cjs.js",
"module": "dist/thirdweb-dev-chains.esm.js",
"exports": {
File diff suppressed because one or more lines are too long
+10
View File
@@ -1,5 +1,15 @@
# thirdweb
## 0.13.81
### Patch Changes
- Updated dependencies [[`83d1d6f`](https://github.com/thirdweb-dev/js/commit/83d1d6f397982dfda87a835743a2ef1fecd5d919)]:
- @thirdweb-dev/chains@0.1.105
- @thirdweb-dev/sdk@4.0.75
- @thirdweb-dev/wallets@2.5.15
- @thirdweb-dev/auth@4.1.73
## 0.13.80
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/cli",
"main": "dist/cli/index.js",
"version": "0.13.80",
"version": "0.13.81",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/cli",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-core
## 4.6.14
### Patch Changes
- Updated dependencies [[`83d1d6f`](https://github.com/thirdweb-dev/js/commit/83d1d6f397982dfda87a835743a2ef1fecd5d919)]:
- @thirdweb-dev/chains@0.1.105
- @thirdweb-dev/sdk@4.0.75
- @thirdweb-dev/wallets@2.5.15
- @thirdweb-dev/auth@4.1.73
## 4.6.13
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-core",
"version": "4.6.13",
"version": "4.6.14",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-core",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -1,5 +1,7 @@
# @thirdweb-dev/react-native-compat
## 0.7.46
## 0.7.45
## 0.7.44
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/react-native-compat",
"description": "Shims for Thirdweb in React Native Projects",
"version": "0.7.45",
"version": "0.7.46",
"author": "thirdweb eng <[email protected]>",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native-compat",
"license": "Apache-2.0",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react-native
## 0.7.46
### Patch Changes
- Updated dependencies [[`83d1d6f`](https://github.com/thirdweb-dev/js/commit/83d1d6f397982dfda87a835743a2ef1fecd5d919)]:
- @thirdweb-dev/chains@0.1.105
- @thirdweb-dev/sdk@4.0.75
- @thirdweb-dev/react-core@4.6.14
- @thirdweb-dev/wallets@2.5.15
## 0.7.45
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-native",
"version": "0.7.45",
"version": "0.7.46",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+10
View File
@@ -1,5 +1,15 @@
# @thirdweb-dev/react
## 4.6.14
### Patch Changes
- Updated dependencies [[`83d1d6f`](https://github.com/thirdweb-dev/js/commit/83d1d6f397982dfda87a835743a2ef1fecd5d919)]:
- @thirdweb-dev/chains@0.1.105
- @thirdweb-dev/sdk@4.0.75
- @thirdweb-dev/react-core@4.6.14
- @thirdweb-dev/wallets@2.5.15
## 4.6.13
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react",
"version": "4.6.13",
"version": "4.6.14",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
Binary file not shown.
+8
View File
@@ -1,5 +1,13 @@
# @thirdweb-dev/sdk
## 4.0.75
### Patch Changes
- Updated dependencies [[`5b0c37a`](https://github.com/thirdweb-dev/js/commit/5b0c37a0d9b7ba3d7f38647bb41463e91cc91a49), [`24a3ee4`](https://github.com/thirdweb-dev/js/commit/24a3ee49d182a840c864a221eee4dd7d05c5c469), [`5525a0e`](https://github.com/thirdweb-dev/js/commit/5525a0e336177407d508da37058ca24a3abfae37), [`35acbcd`](https://github.com/thirdweb-dev/js/commit/35acbcd10e146b886dfe8a83cd485e96b8c70928), [`664082e`](https://github.com/thirdweb-dev/js/commit/664082e5e613b8748713522353585839fe018fc2), [`d77b6f6`](https://github.com/thirdweb-dev/js/commit/d77b6f67adc6eaf7c306ef738714e8d650ed5af3), [`83d1d6f`](https://github.com/thirdweb-dev/js/commit/83d1d6f397982dfda87a835743a2ef1fecd5d919), [`47de345`](https://github.com/thirdweb-dev/js/commit/47de345b604dbd9afbaaa95a76569b9029d69b00)]:
- thirdweb@5.16.0
- @thirdweb-dev/chains@0.1.105
## 4.0.74
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/sdk",
"version": "4.0.74",
"version": "4.0.75",
"description": "The main thirdweb SDK.",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/sdk",
"license": "Apache-2.0",
Binary file not shown.
@@ -1,5 +1,15 @@
# @thirdweb-dev/unity-js-bridge
## 0.6.24
### Patch Changes
- Updated dependencies [[`83d1d6f`](https://github.com/thirdweb-dev/js/commit/83d1d6f397982dfda87a835743a2ef1fecd5d919)]:
- @thirdweb-dev/chains@0.1.105
- @thirdweb-dev/sdk@4.0.75
- @thirdweb-dev/wallets@2.5.15
- @thirdweb-dev/auth@4.1.73
## 0.6.23
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/unity-js-bridge",
"version": "0.6.23",
"version": "0.6.24",
"main": "dist/thirdweb-unity-bridge.js",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
"license": "Apache-2.0",
+8
View File
@@ -1,5 +1,13 @@
# @thirdweb-dev/wallets
## 2.5.15
### Patch Changes
- Updated dependencies [[`83d1d6f`](https://github.com/thirdweb-dev/js/commit/83d1d6f397982dfda87a835743a2ef1fecd5d919)]:
- @thirdweb-dev/chains@0.1.105
- @thirdweb-dev/sdk@4.0.75
## 2.5.14
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/wallets",
"version": "2.5.14",
"version": "2.5.15",
"main": "dist/thirdweb-dev-wallets.cjs.js",
"module": "dist/thirdweb-dev-wallets.esm.js",
"browser": {
+1 -1
View File
@@ -25,7 +25,7 @@
{
"name": "thirdweb/react (minimal + tree-shaking)",
"path": "./dist/esm/exports/react.js",
"limit": "15 kB",
"limit": "16 kB",
"import": "{ ThirdwebProvider, useConnect }"
}
]
+23
View File
@@ -1,5 +1,28 @@
# thirdweb
## 5.16.0
### Minor Changes
- [#2917](https://github.com/thirdweb-dev/js/pull/2917) [`5b0c37a`](https://github.com/thirdweb-dev/js/commit/5b0c37a0d9b7ba3d7f38647bb41463e91cc91a49) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Factory address is now optional in `accountAbstraction` and `smartWallet` options.
- Defaults to a global permissionless factory deployed on all chains.
- Also enables switching chains for smart wallets, as long as the factory is deployed
- [#2915](https://github.com/thirdweb-dev/js/pull/2915) [`664082e`](https://github.com/thirdweb-dev/js/commit/664082e5e613b8748713522353585839fe018fc2) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - New `prepareDeterministicDeployTransaction` extension for deploying published contracts with the same address on multiple chains
- [#2921](https://github.com/thirdweb-dev/js/pull/2921) [`d77b6f6`](https://github.com/thirdweb-dev/js/commit/d77b6f67adc6eaf7c306ef738714e8d650ed5af3) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Adds the 'use client' directive to all client-only components
- [#2919](https://github.com/thirdweb-dev/js/pull/2919) [`47de345`](https://github.com/thirdweb-dev/js/commit/47de345b604dbd9afbaaa95a76569b9029d69b00) Thanks [@jnsdls](https://github.com/jnsdls)! - Add support for several additional wallets
### Patch Changes
- [#2914](https://github.com/thirdweb-dev/js/pull/2914) [`24a3ee4`](https://github.com/thirdweb-dev/js/commit/24a3ee49d182a840c864a221eee4dd7d05c5c469) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Fix legacy transactions with in-app wallets
- [#2913](https://github.com/thirdweb-dev/js/pull/2913) [`5525a0e`](https://github.com/thirdweb-dev/js/commit/5525a0e336177407d508da37058ca24a3abfae37) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Filter invalid auctions in getAllAuctions
- [#2911](https://github.com/thirdweb-dev/js/pull/2911) [`35acbcd`](https://github.com/thirdweb-dev/js/commit/35acbcd10e146b886dfe8a83cd485e96b8c70928) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Updates mintWithSignature return types to properly parse
## 5.15.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "thirdweb",
"version": "5.15.0",
"version": "5.16.0",
"repository": {
"type": "git",
"url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -1,5 +1,5 @@
[
"event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, uint256 indexed tokenIdMinted, (address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, uint256 tokenId, string uri, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) mintRequest)",
"function mintWithSignature((address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, uint256 tokenId, string uri, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) payload, bytes signature) payable returns (address signer)",
"function mintWithSignature((address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, uint256 tokenId, string uri, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) payload, bytes signature) payable",
"function verify((address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, uint256 tokenId, string uri, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) req, bytes signature) view returns (bool success, address signer)"
]
@@ -1,5 +1,5 @@
[
"event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, (address to, address primarySaleRecipient, uint256 quantity, uint256 price, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) mintRequest)",
"function mintWithSignature((address to, address primarySaleRecipient, uint256 quantity, uint256 price, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) payload, bytes signature) payable returns (address signer)",
"function mintWithSignature((address to, address primarySaleRecipient, uint256 quantity, uint256 price, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) payload, bytes signature) payable",
"function verify((address to, address primarySaleRecipient, uint256 quantity, uint256 price, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) req, bytes signature) view returns (bool success, address signer)"
]
@@ -1,5 +1,5 @@
[
"event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, uint256 indexed tokenIdMinted, (address to,address royaltyRecipient,uint256 royaltyBps,address primarySaleRecipient,string uri,uint256 price,address currency,uint128 validityStartTimestamp,uint128 validityEndTimestamp,bytes32 uid) mintpayload)",
"function mintWithSignature((address to,address royaltyRecipient,uint256 royaltyBps,address primarySaleRecipient,string uri,uint256 price,address currency,uint128 validityStartTimestamp,uint128 validityEndTimestamp,bytes32 uid) payload, bytes signature) payable returns (address signer)",
"function mintWithSignature((address to,address royaltyRecipient,uint256 royaltyBps,address primarySaleRecipient,string uri,uint256 price,address currency,uint128 validityStartTimestamp,uint128 validityEndTimestamp,bytes32 uid) payload, bytes signature) payable returns (uint256 tokenIdMinted)",
"function verify((address to,address royaltyRecipient,uint256 royaltyBps,address primarySaleRecipient,string uri,uint256 price,address currency,uint128 validityStartTimestamp,uint128 validityEndTimestamp,bytes32 uid) payload, bytes signature) view returns (bool success, address signer)"
]
@@ -0,0 +1,6 @@
### how to add new wallets that are not included in the wallet connect registry
1. Add the wallet into the `extra-wallets.json` file
2. add an icon for the wallet in the `extra-wallets-icons` folder
3. reference that icon's file-name in the `image_id` field in the `extra-wallets.json` file
4. then run the generate script
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="38" height="38" viewBox="0 0 38 38" fill="none">
<path d="M0 8.44444C0 3.78071 3.78071 0 8.44444 0H29.5556C34.2193 0 38 3.78071 38 8.44444V29.5556C38 34.2193 34.2193 38 29.5556 38H8.44444C3.78071 38 0 34.2193 0 29.5556V8.44444Z" fill="#7331FF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.44434 8.44446V21.4733C8.44434 22.5931 8.88918 23.6671 9.681 24.4589L13.541 28.3189C14.3328 29.1107 15.4068 29.5556 16.5266 29.5556H29.5554V21.1111H16.8888V8.44446H8.44434Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 539 B

@@ -0,0 +1,32 @@
[
{
"id": "com.lootrush",
"name": "LootRush",
"homepage": "https://www.lootrush.com/lootrush-wallet",
"image_id": "lootrush.svg",
"order": 9999999,
"app": {
"browser": null,
"ios": null,
"android": null,
"mac": null,
"windows": null,
"linux": null,
"chrome": "https://chrome.google.com/webstore/detail/lootrush-wallet/lfmmjkfllhmfmkcobchabopkcefjkoip",
"firefox": "https://addons.mozilla.org/en-US/firefox/addon/lootrush-wallet/",
"safari": null,
"edge": null,
"opera": null
},
"injected": [],
"rdns": "com.lootrush",
"mobile": {
"native": null,
"universal": null
},
"desktop": {
"native": null,
"universal": null
}
}
]
+50 -10
View File
@@ -1,11 +1,15 @@
import { writeFile } from "node:fs/promises";
import { rm, mkdir, readFile } from "node:fs/promises";
import { mkdir, readFile, rm } from "node:fs/promises";
import { join } from "node:path";
import { format } from "prettier";
import sharp from "sharp";
const allWalletsJson = JSON.parse(
await readFile(join(__dirname, "./all-wallets.json"), "utf-8"),
const walletConnectWalletsJson = await fetch(
"https://explorer-api.walletconnect.com/w3m/v1/getAllListings?projectId=145769e410f16970a79ff77b2d89a1e0",
).then((res) => res.json());
const extraWalletsJson = JSON.parse(
await readFile(join(__dirname, "./extra-wallets.json"), "utf-8"),
);
type Wallet = {
@@ -40,9 +44,17 @@ type Wallet = {
native: string | null;
universal: string | null;
};
_type: "wc" | "extra";
};
const allWalletsArray = Object.values(allWalletsJson.listings) as Wallet[];
const allWalletsArray = Object.values(walletConnectWalletsJson.listings)
.map((w) => ({ ...(w as Omit<Wallet, "type">), _type: "wc" }))
.concat(
extraWalletsJson.map((w) => ({
...(w as Omit<Wallet, "type">),
_type: "extra",
})),
) as Wallet[];
function rdns(wallet: Wallet) {
// prefer the rdns if it exists
@@ -175,6 +187,13 @@ export default ALL_MINIMAL_WALLET_INFOS;
},
),
);
function stripType(wallet: Wallet) {
const copy = { ...wallet };
// biome-ignore lint/performance/noDelete: aware it's bad but it's OK in generate script
// biome-ignore lint/suspicious/noExplicitAny: aware it's bad but it's OK in generate script
delete (copy as any)._type;
return copy;
}
// for each wallet, generate a folder within the `src/wallets/__generated__` directory
// and write a `index.ts` file with the wallet's information
@@ -191,7 +210,7 @@ for (const wallet of allSupportedWallets) {
`// This file is auto-generated by the \`scripts/wallets/generate.ts\` script.
// Do not modify this file manually.
export const wallet = ${JSON.stringify(wallet, null, 2)} as const;
export const wallet = ${JSON.stringify(stripType(wallet), null, 2)} as const;
`,
{
parser: "babel-ts",
@@ -200,12 +219,33 @@ export const wallet = ${JSON.stringify(wallet, null, 2)} as const;
);
// download the wallet's image
const image = await fetch(
`https://explorer-api.walletconnect.com/w3m/v1/getWalletImage/${wallet.image_id}?projectId=145769e410f16970a79ff77b2d89a1e0&`,
);
const arrBuff = await image.arrayBuffer();
let resized: Buffer;
if (wallet._type === "extra") {
// directly fetch, this will be a URL always
resized = await sharp(
await readFile(
join(__dirname, `./extra-wallet-icons/${wallet.image_id}`),
),
)
.resize(128, 128)
.webp()
.toBuffer();
} else {
// fetch from the explorer api
const imageRes = await fetch(
`https://explorer-api.walletconnect.com/w3m/v1/getWalletImage/${wallet.image_id}?projectId=145769e410f16970a79ff77b2d89a1e0&`,
);
if (!imageRes.ok) {
console.error(`Failed to fetch image for ${wallet.id}`);
return;
}
resized = await sharp(await imageRes.arrayBuffer())
.resize(128, 128)
.webp()
.toBuffer();
}
const resized = await sharp(arrBuff).resize(128, 128).webp().toBuffer();
// arrayBuffer to base64 webp
const base64Flag = "data:image/webp;base64,";
@@ -0,0 +1,55 @@
import { describe, expect, it } from "vitest";
import {
FORKED_ETHEREUM_CHAIN,
FORKED_OPTIMISM_CHAIN,
} from "../../../test/src/chains.js";
import { TEST_CLIENT } from "../../../test/src/test-clients.js";
import { TEST_ACCOUNT_A } from "../../../test/src/test-wallets.js";
import { simulateTransaction } from "../../transaction/actions/simulate.js";
import { ENTRYPOINT_ADDRESS_v0_6 } from "../../wallets/smart/lib/constants.js";
import { prepareDeterministicDeployTransaction } from "./deploy-deterministic.js";
// skip this test suite if there is no secret key available to test with
// TODO: remove reliance on secret key during unit tests entirely
describe.runIf(process.env.TW_SECRET_KEY)("deployFromMetadata", () => {
it("should deploy contracts at the same address", async () => {
const tx1 = prepareDeterministicDeployTransaction({
chain: FORKED_ETHEREUM_CHAIN,
client: TEST_CLIENT,
contractId: "AccountFactory",
constructorParams: [TEST_ACCOUNT_A.address, ENTRYPOINT_ADDRESS_v0_6],
});
const tx2 = prepareDeterministicDeployTransaction({
chain: FORKED_OPTIMISM_CHAIN,
client: TEST_CLIENT,
contractId: "AccountFactory",
constructorParams: [TEST_ACCOUNT_A.address, ENTRYPOINT_ADDRESS_v0_6],
});
const [tx1Result, tx2Result] = await Promise.all([
simulateTransaction({ transaction: tx1 }),
simulateTransaction({ transaction: tx2 }),
]);
expect(tx1Result).toEqual(tx2Result);
});
it("should respect salt param", async () => {
const tx1 = prepareDeterministicDeployTransaction({
chain: FORKED_ETHEREUM_CHAIN,
client: TEST_CLIENT,
contractId: "AccountFactory",
constructorParams: [TEST_ACCOUNT_A.address, ENTRYPOINT_ADDRESS_v0_6],
salt: "some-salt",
});
const tx2 = prepareDeterministicDeployTransaction({
chain: FORKED_OPTIMISM_CHAIN,
client: TEST_CLIENT,
contractId: "AccountFactory",
constructorParams: [TEST_ACCOUNT_A.address, ENTRYPOINT_ADDRESS_v0_6],
});
const [tx1Result, tx2Result] = await Promise.all([
simulateTransaction({ transaction: tx1 }),
simulateTransaction({ transaction: tx2 }),
]);
expect(tx1Result !== tx2Result).toBe(true);
});
});
@@ -0,0 +1,55 @@
import { prepareTransaction } from "../../transaction/prepare-transaction.js";
import { computeDeploymentInfoFromContractId } from "../../utils/any-evm/compute-published-contract-deploy-info.js";
import type { Prettify } from "../../utils/type-utils.js";
import type { ClientAndChain } from "../../utils/types.js";
import { computeCreate2FactoryAddress } from "./utils/create-2-factory.js";
export type DeployDetemisiticParams = Prettify<
ClientAndChain & {
contractId: string;
constructorParams: unknown[];
publisher?: string;
version?: string;
salt?: string;
}
>;
/**
* Deploy a contract deterministically - will maintain the same address across chains.
* This is meant to be used with published contracts configured with the 'direct deploy' method.
* Under the hood, this uses a keyless transaction with a common create2 factory.
* @param options - the options to deploy the contract
* @returns - the transaction to deploy the contract
* @extension DEPLOY
* @example
* ```ts
* import { prepareDeterministicDeployTransaction } from "thirdweb/deploys";
* import { sepolia } from "thirdweb/chains";
*
* const tx = prepareDeterministicDeployTransaction({
* client,
* chain: sepolia,
* contractId: "AccountFactory",
* constructorParams: [123],
* });
* ```
*/
export function prepareDeterministicDeployTransaction(
options: DeployDetemisiticParams,
) {
const { client, chain } = options;
return prepareTransaction({
client,
chain,
to: () =>
computeCreate2FactoryAddress({
client,
chain,
}),
data: async () => {
const infraContractInfo =
await computeDeploymentInfoFromContractId(options);
return infraContractInfo.initBytecodeWithsalt;
},
});
}
@@ -33,7 +33,7 @@ export type PrepareDirectDeployTransactionOptions<
* @returns - The prepared transaction.
* @example
* ```ts
* import { prepareDirectDeployTransaction } from "thirdweb/contract";
* import { prepareDirectDeployTransaction } from "thirdweb/deploys";
* import { ethereum } from "thirdweb/chains";
* const tx = prepareDirectDeployTransaction({
* client,
@@ -33,7 +33,7 @@ type VerifyContractOptions = {
* @example
* ```ts
* import { getContract } from "thirdweb/contract";
* import { verifyContract } from "thirdweb/contract/verification";
* import { verifyContract } from "thirdweb/contract";
*
* const contract = getContract({ ... });
* const verificationResult = await verifyContract({
@@ -162,7 +162,7 @@ type CheckVerificationStatusOptions = {
* @throws An error if the verification status check fails.
* @example
* ```ts
* import { checkVerificationStatus } from "thirdweb/contract/verification";
* import { checkVerificationStatus } from "thirdweb/contract";
* const verificationStatus = await checkVerificationStatus({
* explorerApiUrl: "https://api.polygonscan.com/api",
* explorerApiKey: "YOUR_API_KEY",
+2
View File
@@ -26,8 +26,10 @@ export {
export { prepareDirectDeployTransaction } from "../contract/deployment/deploy-with-abi.js";
export { prepareAutoFactoryDeployTransaction } from "../contract/deployment/deploy-via-autofactory.js";
export { prepareDeterministicDeployTransaction } from "../contract/deployment/deploy-deterministic.js";
export { deployViaAutoFactory } from "../contract/deployment/deploy-via-autofactory.js";
export {
deployContract,
type PrepareDirectDeployTransactionOptions,
} from "../contract/deployment/deploy-with-abi.js";
export { computePublishedContractAddress } from "../utils/any-evm/compute-published-contract-address.js";
+5
View File
@@ -141,3 +141,8 @@ export { resolvePromisedValue } from "../utils/promise/resolve-promised-value.js
// json
// ------------------------------------------------
export { stringify } from "../utils/json.js";
// ------------------------------------------------
// values
// ------------------------------------------------
export { maxUint256 } from "viem";
@@ -7,4 +7,7 @@ export type {
PaymasterResult,
} from "../../wallets/smart/types.js";
// TODO: add exports for smart wallet utils here
export {
ENTRYPOINT_ADDRESS_v0_6,
DEFAULT_ACCOUNT_FACTORY,
} from "../../wallets/smart/lib/constants.js";
@@ -95,12 +95,7 @@ const FN_INPUTS = [
name: "signature",
},
] as const;
const FN_OUTPUTS = [
{
type: "address",
name: "signer",
},
] as const;
const FN_OUTPUTS = [] as const;
/**
* Checks if the `mintWithSignature` method is supported by the given contract.
@@ -75,12 +75,7 @@ const FN_INPUTS = [
name: "signature",
},
] as const;
const FN_OUTPUTS = [
{
type: "address",
name: "signer",
},
] as const;
const FN_OUTPUTS = [] as const;
/**
* Checks if the `mintWithSignature` method is supported by the given contract.
@@ -36,14 +36,19 @@ export async function getCurrencyMetadata(
};
}
const [name_, symbol_, decimals_] = await Promise.all([
name(options),
symbol(options),
decimals(options),
]);
return {
name: name_,
symbol: symbol_,
decimals: decimals_,
};
try {
const [name_, symbol_, decimals_] = await Promise.all([
name(options),
symbol(options),
decimals(options),
]);
return {
name: name_,
symbol: symbol_,
decimals: decimals_,
};
} catch (e) {
throw new Error("Invalid currency token");
}
}
@@ -14,7 +14,7 @@ import { getOrDeployInfraContract } from "../../../contract/deployment/utils/boo
import { parseEventLogs } from "../../../event/actions/parse-logs.js";
import { sendAndConfirmTransaction } from "../../../transaction/actions/send-and-confirm-transaction.js";
import { simulateTransaction } from "../../../transaction/actions/simulate.js";
import { ENTRYPOINT_ADDRESS } from "../../../wallets/smart/lib/constants.js";
import { ENTRYPOINT_ADDRESS_v0_6 } from "../../../wallets/smart/lib/constants.js";
import { createAccount } from "../__generated__/IAccountFactory/write/createAccount.js";
import { adminUpdatedEvent } from "../__generated__/IAccountPermissions/events/AdminUpdated.js";
import { signerPermissionsUpdatedEvent } from "../__generated__/IAccountPermissions/events/SignerPermissionsUpdated.js";
@@ -34,7 +34,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("Account Permissions", () => {
chain: ANVIL_CHAIN,
client: TEST_CLIENT,
contractId: "AccountFactory",
constructorParams: [TEST_ACCOUNT_A.address, ENTRYPOINT_ADDRESS],
constructorParams: [TEST_ACCOUNT_A.address, ENTRYPOINT_ADDRESS_v0_6],
});
const transaction = createAccount({
contract: accountFactoryContract,
@@ -87,8 +87,8 @@ const FN_INPUTS = [
] as const;
const FN_OUTPUTS = [
{
type: "address",
name: "signer",
type: "uint256",
name: "tokenIdMinted",
},
] as const;
@@ -67,13 +67,17 @@ export async function getAllAuctions(
}),
]);
return await Promise.all(
rawAuctions.map((rawAuction) =>
mapEnglishAuction({
contract: options.contract,
latestBlock,
rawAuction,
}),
),
);
const auctions = (
await Promise.all(
rawAuctions.map((rawAuction) =>
mapEnglishAuction({
contract: options.contract,
latestBlock,
rawAuction,
}).catch(() => null),
),
)
).filter((auction) => auction !== null);
return auctions as EnglishAuction[]; // TODO: Fix when TS 5.5 is out
}
@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
import { ANVIL_CHAIN } from "../../../test/src/chains.js";
import { TEST_CLIENT } from "../../../test/src/test-clients.js";
import { TEST_ACCOUNT_A } from "../../../test/src/test-wallets.js";
import { ENTRYPOINT_ADDRESS } from "../../wallets/smart/lib/constants.js";
import { ENTRYPOINT_ADDRESS_v0_6 } from "../../wallets/smart/lib/constants.js";
import { deployPublishedContract } from "./deploy-published.js";
describe.runIf(process.env.TW_SECRET_KEY)(
@@ -17,7 +17,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
chain: ANVIL_CHAIN,
account: TEST_ACCOUNT_A,
contractId: "AccountFactory",
contractParams: [TEST_ACCOUNT_A.address, ENTRYPOINT_ADDRESS],
contractParams: [TEST_ACCOUNT_A.address, ENTRYPOINT_ADDRESS_v0_6],
});
expect(address).toBeDefined();
expect(address.length).toBe(42);
@@ -1,3 +1,4 @@
"use client";
import { createContext } from "react";
export const SetRootElementContext = createContext<
@@ -1,3 +1,4 @@
"use client";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { useState } from "react";
import {
@@ -1,3 +1,4 @@
"use client";
import { createContext } from "react";
import type { Chain } from "../../../chains/types.js";
import type { ThirdwebClient } from "../../../client/client.js";
@@ -1,3 +1,4 @@
"use client";
import { createContext, useContext, useState } from "react";
import { CustomThemeProvider } from "../ui/design-system/CustomThemeProvider.js";
import type { Theme } from "../ui/design-system/index.js";
@@ -1,3 +1,5 @@
"use client";
import styled from "@emotion/styled";
import { useEffect, useMemo, useState } from "react";
import { useSiweAuth } from "../../../core/hooks/auth/useSiweAuth.js";
@@ -1,3 +1,4 @@
"use client";
import styled from "@emotion/styled";
import {
ChevronRightIcon,
@@ -1,3 +1,4 @@
"use client";
import styled from "@emotion/styled";
import { MagnifyingGlassIcon } from "@radix-ui/react-icons";
import { CrossCircledIcon } from "@radix-ui/react-icons";
@@ -1,8 +1,10 @@
"use client";
import { Suspense, lazy, useEffect, useState } from "react";
import type {
InjectedSupportedWalletIds,
WCSupportedWalletIds,
} from "../../../../../wallets/__generated__/wallet-ids.js";
import { COINBASE } from "../../../../../wallets/constants.js";
import { getInstalledWalletProviders } from "../../../../../wallets/injected/mipdStore.js";
import type { Wallet } from "../../../../../wallets/interfaces/wallet.js";
import { useConnectUI } from "../../../../core/hooks/others/useWalletConnectionCtx.js";
@@ -85,7 +87,7 @@ export function AnyWalletConnectUI(props: {
}
// coinbase wallet sdk
if (props.wallet.id === "com.coinbase.wallet") {
if (props.wallet.id === COINBASE) {
return (
<Suspense fallback={<LoadingScreen />}>
<CoinbaseSDKWalletConnectUI
@@ -95,7 +97,7 @@ export function AnyWalletConnectUI(props: {
}}
onBack={props.onBack}
done={props.done}
wallet={props.wallet as Wallet<"com.coinbase.wallet">}
wallet={props.wallet as Wallet<typeof COINBASE>}
walletInfo={walletInfo.data}
/>
</Suspense>
@@ -1,3 +1,4 @@
"use client";
import { useEffect, useMemo } from "react";
import type { Chain } from "../../../../../chains/types.js";
import type { ThirdwebClient } from "../../../../../client/client.js";
@@ -1,3 +1,4 @@
"use client";
import { useCallback, useEffect, useState } from "react";
import { useConnectUI } from "../../../../core/hooks/others/useWalletConnectionCtx.js";
import { useActiveAccount } from "../../../../core/hooks/wallets/wallet-hooks.js";
@@ -1,3 +1,4 @@
"use client";
import { Suspense, lazy, useCallback } from "react";
import type { Wallet } from "../../../../../wallets/interfaces/wallet.js";
import { useSiweAuth } from "../../../../core/hooks/auth/useSiweAuth.js";
@@ -1,3 +1,4 @@
"use client";
import { Cross2Icon } from "@radix-ui/react-icons";
import { useConnectUI } from "../../../../core/hooks/others/useWalletConnectionCtx.js";
import { WalletUIStatesProvider } from "../../../providers/wallet-ui-states-provider.js";
@@ -1,3 +1,4 @@
"use client";
import { Container, noScrollBar } from "../../components/basic.js";
import { useCustomTheme } from "../../design-system/CustomThemeProvider.js";
import { StyledDiv } from "../../design-system/elements.js";
@@ -1,3 +1,4 @@
"use client";
import { useCallback, useEffect, useRef, useState } from "react";
import type { InjectedSupportedWalletIds } from "../../../../../wallets/__generated__/wallet-ids.js";
import type { Wallet } from "../../../../../wallets/interfaces/wallet.js";
@@ -1,3 +1,4 @@
"use client";
import { ExclamationTriangleIcon } from "@radix-ui/react-icons";
import { useCallback, useEffect, useRef, useState } from "react";
import type { Wallet } from "../../../../../wallets/interfaces/wallet.js";
@@ -1,3 +1,4 @@
"use client";
import { useConnectUI } from "../../../../core/hooks/others/useWalletConnectionCtx.js";
import { Container } from "../../components/basic.js";
import { Link } from "../../components/text.js";
@@ -1,3 +1,4 @@
"use client";
import { createContext, useContext, useEffect, useRef, useState } from "react";
import type { Wallet } from "../../../../../wallets/interfaces/wallet.js";
import { useConnectUI } from "../../../../core/hooks/others/useWalletConnectionCtx.js";
@@ -1,3 +1,4 @@
"use client";
import styled from "@emotion/styled";
import { CrossCircledIcon, MagnifyingGlassIcon } from "@radix-ui/react-icons";
import Fuse from "fuse.js";
@@ -1,3 +1,4 @@
"use client";
import { getInstalledWalletProviders } from "../../../../wallets/injected/mipdStore.js";
import type { WalletId } from "../../../../wallets/wallet-types.js";
// import { localWalletMetadata } from "../../../../wallets/local/index._ts";
@@ -1,3 +1,4 @@
"use client";
import { ChevronLeftIcon } from "@radix-ui/react-icons";
import { Suspense, lazy, useEffect, useRef, useState } from "react";
import type { InjectedSupportedWalletIds } from "../../../../wallets/__generated__/wallet-ids.js";
@@ -1,3 +1,4 @@
"use client";
import React, { useState, useRef, useEffect, Suspense, lazy } from "react";
import {
CarbonDocumentAudio,
@@ -1,3 +1,4 @@
"use client";
import { useState } from "react";
import type { GaslessOptions } from "../../../../transaction/actions/gasless/types.js";
import {
@@ -10,6 +11,7 @@ import { useSendTransactionCore } from "../../../core/hooks/contract/useSendTran
import {
useActiveAccount,
useActiveWallet,
useSwitchActiveWalletChain,
} from "../../../core/hooks/wallets/wallet-hooks.js";
import { Spinner } from "../components/Spinner.js";
import { Button } from "../components/buttons.js";
@@ -104,6 +106,7 @@ export function TransactionButton(props: TransactionButtonProps) {
const account = useActiveAccount();
const wallet = useActiveWallet();
const [isPending, setIsPending] = useState(false);
const switchChain = useSwitchActiveWalletChain();
const sendTransaction = useSendTransactionCore(undefined, gasless);
@@ -122,7 +125,7 @@ export function TransactionButton(props: TransactionButtonProps) {
const resolvedTx = await transaction();
if (wallet && wallet.getChain()?.id !== resolvedTx.chain.id) {
await wallet?.switchChain(resolvedTx.chain);
await switchChain(resolvedTx.chain);
}
const result = await sendTransaction.mutateAsync(resolvedTx);
@@ -1,3 +1,4 @@
"use client";
import { CheckIcon, CopyIcon as CopyIconSVG } from "@radix-ui/react-icons";
import { useClipboard } from "../hooks/useCopyClipboard.js";
import { ToolTip } from "./Tooltip.js";

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