Compare commits

..
Author SHA1 Message Date
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
6bf1dad28b Version Packages (#2896)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-01 21:55:20 +12:00
Joaquim VergesandGitHub 75e66b189d fix: signTypedData verification for smart accounts (#2906) 2024-05-01 21:37:58 +12:00
Joaquim VergesandGitHub d2541e5d2c chore: update to cb wallet rc2 (#2907) 2024-05-01 21:25:15 +12:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
0bce535094 chore(chains): update chains (#2902)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-01 20:39:11 +12:00
88886acd76 Adds overrides to extension functions (#2898)
Co-authored-by: Joaquim Verges <[email protected]>
2024-05-01 14:00:29 +12:00
YashandGitHub 1d669547fb Contracts version 3.15.0 (#2904) 2024-05-01 01:38:03 +00:00
Joaquim VergesandGitHub 9a031bb19f chore: bump timeout for userop receipts to 2 mins (#2905) 2024-05-01 01:17:19 +00:00
gregandGitHub e6fce1f2e6 Fix event duplication in useContractEvents (#2899) 2024-04-30 20:12:25 +00:00
Joaquim VergesandGitHub 3c13fe4423 fix: switch to base sepolia for sw legacy integration tests (#2901) 2024-04-30 21:19:01 +12:00
gregandGitHub f916d7a453 Fix TransactionButton loading state layout (#2897) 2024-04-30 04:57:07 +00:00
Joaquim VergesandGitHub 7882b22306 feat: coinbase wallet sdk v4 with SW support (#2875) 2024-04-30 00:52:35 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
429f2d3291 Version Packages (#2868)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-04-30 10:21:33 +12:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
27ef292377 build(deps-dev): bump @babel/runtime from 7.24.4 to 7.24.5 (#2889)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 14:23:40 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9962f99ecf build(deps): bump @walletconnect/utils from 2.12.1 to 2.12.2 (#2891)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 21:14:49 +00:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
bdeb6734ce chore(chains): update chains (#2895)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-29 14:09:00 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fdbc2cc9a7 build(deps): bump turbo from 1.13.2 to 1.13.3 (#2893)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 13:59:12 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
91af89349f build(deps-dev): bump @biomejs/biome from 1.7.0 to 1.7.1 (#2894)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 13:59:00 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
7f2ec9c2dc chore(chains): update chains (#2865)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-29 13:57:57 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
c05e2a325b build(deps): bump @walletconnect/web3wallet from 1.11.1 to 1.11.2 (#2884)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 20:49:36 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
913a801111 build(deps): bump @walletconnect/react-native-compat from 2.12.1 to 2.12.2 (#2886)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 20:49:12 +00:00
Manan TankandGitHub 597900bdcc Add onConnect prop on AutoConnect (#2879) 2024-04-29 18:06:29 +00:00
gregandGitHub bfdfc23e3a Better error message on failed predictAddress (#2882) 2024-04-29 10:57:35 -07:00
gregandGitHub 48e6427d65 Small improvement to verifySignature docs example (#2883) 2024-04-29 10:40:45 -07:00
7f4caf0627 Fix nonce value for ethers5 adapter (#2881)
Co-authored-by: Kien Ngo <[email protected]>
2024-04-29 10:11:07 -07:00
8ae8e6a702 Cleanup TransactionButton loading state (#2870)
Co-authored-by: Manan Tank <[email protected]>
2024-04-29 09:55:17 -07:00
d2aead486e Docs: update incorrect code snippet for viem adapter (#2874)
Signed-off-by: Joaquim Verges <[email protected]>
Co-authored-by: Kien Ngo <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
2024-04-29 09:54:59 -07:00
Manan TankandGitHub 62c799d348 Fix exception on chain with unknown chainId (#2866) 2024-04-29 14:41:54 +00:00
Joaquim VergesandGitHub 99298b397c Add optional icon in ChainOptions (#2872) 2024-04-29 04:59:06 +00:00
Joaquim VergesandGitHub e98405e676 fix: jsDoc import for viem adapter (#2873) 2024-04-28 20:30:55 +12:00
Joaquim VergesandGitHub 272e0ebf05 fix: ENS jsDocs exports (#2871) 2024-04-28 17:32:24 +12:00
gregandGitHub fa4bd436e0 Adds disabled prop to TransactionButton (#2869) 2024-04-26 22:09:29 +00:00
gregandGitHub 674fcc7e95 Enable single phase drop compatibility (#2867) 2024-04-26 14:18:02 -07:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
faf65e31b7 Version Packages (#2864)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-26 11:09:43 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
5a87891d16 chore(chains): update chains (#2862)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-26 10:59:36 -07:00
84487d0d78 fix(legacy_packages): fix onAuthSuccess not being passed through to… (#2863)
Co-authored-by: Manan Tank <[email protected]>
2024-04-26 17:52:54 +00:00
353 changed files with 6255 additions and 923 deletions
+21
View File
@@ -1,5 +1,26 @@
# @thirdweb-dev/auth
## 4.1.72
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/wallets@2.5.14
## 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
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/auth",
"version": "4.1.69",
"version": "4.1.72",
"main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js",
"browser": {
+70 -29
View File
@@ -9,16 +9,13 @@ require("dotenv-mono").load();
describe.runIf(process.env.TW_SECRET_KEY)(
"Wallet Authentication - EVM - Smart Wallet",
{
timeout: 60000,
},
async () => {
let adminWallet: any, signerWallet: any, attackerWallet: any;
let auth: ThirdwebAuth;
beforeAll(async () => {
const factoryAddress = "0xbf1C9aA4B1A085f7DA890a44E82B0A1289A40052";
const chain = 421614;
const factoryAddress = "0x7b5ba9D46b53aae55e2c2E9b38d9AfF9a0b158F8";
const chain = 84532;
const localWallet = new LocalWallet();
await localWallet.generate();
const smartWallet = new SmartWallet({
@@ -42,7 +39,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
auth.updateWallet(signerWallet);
});
it("Should verify logged in wallet", async () => {
it("Should verify logged in wallet", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -51,21 +50,25 @@ describe.runIf(process.env.TW_SECRET_KEY)(
expect(address).to.equal(await signerWallet.getAddress());
});
it("Should verify logged in wallet with chain ID and expiration", async () => {
it("Should verify logged in wallet with chain ID and expiration", {
timeout: 240000,
}, async () => {
const payload = await auth.login({
expirationTime: new Date(Date.now() + 1000 * 60 * 5),
chainId: "421614",
chainId: "84532",
});
auth.updateWallet(adminWallet);
const address = await auth.verify(payload, {
chainId: "421614",
chainId: "84532",
});
expect(address).to.equal(await signerWallet.getAddress());
});
it("Should verify payload with resources", async () => {
it("Should verify payload with resources", {
timeout: 240000,
}, async () => {
const payload = await auth.login({
resources: ["https://example.com", "https://test.com"],
});
@@ -78,7 +81,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
expect(address).to.equal(await signerWallet.getAddress());
});
it("Should reject payload without necessary resources", async () => {
it("Should reject payload without necessary resources", {
timeout: 240000,
}, async () => {
const payload = await auth.login({
resources: ["https://example.com"],
});
@@ -96,7 +101,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should verify payload with customized statement", async () => {
it("Should verify payload with customized statement", {
timeout: 240000,
}, async () => {
const payload = await auth.login({
statement: "Please sign!",
});
@@ -109,7 +116,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
expect(address).to.equal(await signerWallet.getAddress());
});
it("Should reject payload with incorrect statement", async () => {
it("Should reject payload with incorrect statement", {
timeout: 240000,
}, async () => {
const payload = await auth.login({
statement: "Please sign!",
});
@@ -127,7 +136,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should reject invalid nonce", async () => {
it("Should reject invalid nonce", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -145,7 +156,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should accept valid nonce", async () => {
it("Should accept valid nonce", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -160,7 +173,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
expect(address).to.equal(await signerWallet.getAddress());
});
it("Should reject payload with incorrect domain", async () => {
it("Should reject payload with incorrect domain", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -174,7 +189,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should reject expired login payload", async () => {
it("Should reject expired login payload", {
timeout: 240000,
}, async () => {
const payload = await auth.login({
expirationTime: new Date(Date.now() - 1000 * 60 * 5),
});
@@ -188,7 +205,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should reject payload with incorrect chain ID", async () => {
it("Should reject payload with incorrect chain ID", {
timeout: 240000,
}, async () => {
const payload = await auth.login({
chainId: "1",
});
@@ -206,7 +225,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should reject payload with incorrect signer", async () => {
it("Should reject payload with incorrect signer", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
payload.payload.address = await attackerWallet.getAddress();
@@ -219,7 +240,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should generate valid authentication token", async () => {
it("Should generate valid authentication token", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -229,7 +252,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
expect(user.address).to.equal(await signerWallet.getAddress());
});
it("Should reject token with incorrect domain", async () => {
it("Should reject token with incorrect domain", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -245,7 +270,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should reject token before invalid before", async () => {
it("Should reject token before invalid before", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -261,7 +288,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should reject expired authentication token", async () => {
it("Should reject expired authentication token", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -277,7 +306,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should reject if admin address is not connected wallet address", async () => {
it("Should reject if admin address is not connected wallet address", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -294,7 +325,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should accept token with valid token ID", async () => {
it("Should accept token with valid token ID", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -313,7 +346,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
expect(user.address).to.equal(await signerWallet.getAddress());
});
it("Should reject token with invalid token ID", async () => {
it("Should reject token with invalid token ID", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -335,7 +370,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
}
});
it("Should propagate session on token", async () => {
it("Should propagate session on token", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -349,7 +386,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
expect(user.session).to.deep.equal({ role: "admin" });
});
it("Should call session callback function", async () => {
it("Should call session callback function", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
@@ -368,7 +407,9 @@ describe.runIf(process.env.TW_SECRET_KEY)(
});
});
it("Should authenticate with issuer address", async () => {
it("Should authenticate with issuer address", {
timeout: 240000,
}, async () => {
const payload = await auth.login();
auth.updateWallet(adminWallet);
+18
View File
@@ -1,5 +1,23 @@
# @thirdweb-dev/chains
## 0.1.104
### Patch Changes
- [#2902](https://github.com/thirdweb-dev/js/pull/2902) [`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
## 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
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 10036,
"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": "Innovo Markets Mainnet",
"nativeCurrency": {
"name": "Innovo Markets Mainnet Token",
"symbol": "INN",
"decimals": 18
},
"networkId": 10036,
"redFlags": [],
"rpc": [
"https://10036.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/innovo/mainnet/rpc"
],
"shortName": "Innovo Markets Mainnet",
"slug": "innovo-markets",
"testnet": false
} as const satisfies Chain;
+52
View File
@@ -0,0 +1,52 @@
import type { Chain } from "../src/types";
export default {
"chain": "REBUS",
"chainId": 1011,
"explorers": [
{
"name": "Rebus EVM Explorer (Blockscout)",
"url": "https://evm.rebuschain.com",
"standard": "none",
"icon": {
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
"width": 512,
"height": 512,
"format": "png"
}
},
{
"name": "Rebus Cosmos Explorer (ping.pub)",
"url": "https://cosmos.rebuschain.com",
"standard": "none",
"icon": {
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
"width": 512,
"height": 512,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://www.rebuschain.com",
"name": "Rebus Mainnet",
"nativeCurrency": {
"name": "Rebus",
"symbol": "REBUS",
"decimals": 18
},
"networkId": 1011,
"rpc": [
"https://1011.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://apievm.rebuschain.com/rpc"
],
"shortName": "rebus",
"slug": "rebus",
"testnet": false,
"title": "Rebuschain Mainnet"
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 10255,
"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": "Coqnet Testnet",
"nativeCurrency": {
"name": "Coqnet Testnet Token",
"symbol": "COQ",
"decimals": 18
},
"networkId": 10255,
"redFlags": [],
"rpc": [
"https://10255.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/coqnet/testnet/rpc"
],
"shortName": "Coqnet Testnet",
"slug": "coqnet-testnet",
"testnet": true
} as const satisfies Chain;
@@ -11,7 +11,7 @@ export default {
"format": "png"
},
"infoURL": "https://kakarot.org",
"name": "Kakarot Sepolia",
"name": "Kakarot Sepolia Deprecated",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
@@ -24,7 +24,7 @@ export default {
"bridges": []
},
"rpc": [],
"shortName": "kkrt-sepolia",
"slug": "kakarot-sepolia",
"shortName": "kkrt-sepolia-deprecated",
"slug": "kakarot-sepolia-deprecated",
"testnet": false
} as const satisfies Chain;
+5 -5
View File
@@ -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;
+4 -2
View File
@@ -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
View File
@@ -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;
+37
View File
@@ -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;
+35
View File
@@ -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;
@@ -0,0 +1,39 @@
import type { Chain } from "../src/types";
export default {
"chain": "ETH",
"chainId": 1802203764,
"explorers": [
{
"name": "Kakarot Scan",
"url": "https://sepolia.kakarotscan.org",
"standard": "EIP3091"
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmNTZ9nEomAXK6bLxUbMfTS1TvrsN22HU1zTtxHUpMkUhz",
"width": 1000,
"height": 1000,
"format": "png"
},
"infoURL": "https://kakarot.org",
"name": "Kakarot Sepolia",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"networkId": 1802203764,
"parent": {
"type": "L2",
"chain": "eip155-11155111",
"bridges": []
},
"rpc": [
"https://1802203764.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://sepolia-rpc.kakarot.org"
],
"shortName": "kkrt-sepolia",
"slug": "kakarot-sepolia",
"testnet": false
} as const satisfies Chain;
+54
View File
@@ -0,0 +1,54 @@
import type { Chain } from "../src/types";
export default {
"chain": "B3 Sepolia",
"chainId": 1993,
"explorers": [
{
"name": "blockscout",
"url": "https://sepolia.explorer.b3.fun/",
"standard": "EIP3091",
"icon": {
"url": "ipfs://Qmc6XdDC7FSn2YyBwFXUNVbk9Nmhvn2Bz7iMqCA1ofwhQC/b3-logo-temp-cropped.png",
"width": 512,
"height": 512,
"format": "png"
}
}
],
"faucets": [
"https://faucet.b3.fun/"
],
"features": [],
"icon": {
"url": "ipfs://Qmc6XdDC7FSn2YyBwFXUNVbk9Nmhvn2Bz7iMqCA1ofwhQC/b3-logo-temp-cropped.png",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://docs.b3.fun/",
"name": "B3 Sepolia",
"nativeCurrency": {
"name": "ETH",
"symbol": "ETH",
"decimals": 18
},
"networkId": 1993,
"parent": {
"type": "L3",
"chain": "eip155-1",
"bridges": [
{
"url": "https://bridge.b3.fun/"
}
]
},
"redFlags": [],
"rpc": [
"https://1993.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://sepolia.b3.fun/http"
],
"shortName": "b3-sepolia",
"slug": "b3-sepolia",
"testnet": true,
"title": "B3 Sepolia"
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 21178,
"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": "QI0430I2",
"nativeCurrency": {
"name": "QI0430I2 Token",
"symbol": "ETI",
"decimals": 18
},
"networkId": 21178,
"redFlags": [],
"rpc": [
"https://21178.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QI0430I2",
"slug": "qi0430i2",
"testnet": true
} as const satisfies Chain;
+27
View File
@@ -0,0 +1,27 @@
import type { Chain } from "../src/types";
export default {
"chain": "Oneness",
"chainId": 2140,
"explorers": [
{
"name": "oneness-mainnet",
"url": "https://scan.onenesslabs.io",
"standard": "EIP3091"
}
],
"faucets": [],
"name": "Oneness Network",
"nativeCurrency": {
"name": "BTC",
"symbol": "BTC",
"decimals": 18
},
"networkId": 2140,
"rpc": [
"https://2140.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.onenesslabs.io/"
],
"shortName": "oneness",
"slug": "oneness-network",
"testnet": false
} as const satisfies Chain;
+27
View File
@@ -0,0 +1,27 @@
import type { Chain } from "../src/types";
export default {
"chain": "Oneness-Testnet",
"chainId": 2141,
"explorers": [
{
"name": "oneness-testnet",
"url": "https://scan.testnet.onenesslabs.io",
"standard": "EIP3091"
}
],
"faucets": [],
"name": "Oneness TestNet",
"nativeCurrency": {
"name": "BTC",
"symbol": "BTC",
"decimals": 18
},
"networkId": 2141,
"rpc": [
"https://2141.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.testnet.onenesslabs.io/"
],
"shortName": "oneness-testnet",
"slug": "oneness-testnet",
"testnet": true
} as const satisfies Chain;
+3 -1
View File
@@ -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",
+30
View File
@@ -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;
+30
View File
@@ -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;
+45
View File
@@ -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;
+12 -2
View File
@@ -2,9 +2,19 @@ import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 27827,
"explorers": [],
"explorers": [
{
"name": "ZEROONEMAI Explorer",
"url": "https://subnets.avax.network/zeroonemai",
"standard": "EIP3091"
}
],
"faucets": [],
"features": [],
"features": [
{
"name": "EIP1559"
}
],
"icon": {
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
"width": 256,
+41
View File
@@ -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;
+52
View File
@@ -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;
+52
View File
@@ -0,0 +1,52 @@
import type { Chain } from "../src/types";
export default {
"chain": "REBUS",
"chainId": 3033,
"explorers": [
{
"name": "Rebus EVM Explorer (Blockscout)",
"url": "https://evm.testnet.rebus.money",
"standard": "none",
"icon": {
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
"width": 512,
"height": 512,
"format": "png"
}
},
{
"name": "Rebus Cosmos Explorer (ping.pub)",
"url": "https://testnet.rebus.money/rebustestnet",
"standard": "none",
"icon": {
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
"width": 512,
"height": 512,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://bafkreifzag46dhp33vb2uldg4htqbqipuqrapjga6ml6pnhn5yibbvb4gq",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://www.rebuschain.com",
"name": "Rebus Testnet",
"nativeCurrency": {
"name": "Rebus",
"symbol": "REBUS",
"decimals": 18
},
"networkId": 3033,
"rpc": [
"https://3033.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://testnet.rebus.money/rpc"
],
"shortName": "rebus-testnet",
"slug": "rebus-testnet",
"testnet": true,
"title": "Rebuschain Testnet"
} as const satisfies Chain;
+32
View File
@@ -0,0 +1,32 @@
import type { Chain } from "../src/types";
export default {
"chain": "MOVE",
"chainId": 3073,
"explorers": [
{
"name": "mevm explorer",
"url": "https://explorer.movementlabs.xyz",
"standard": "none"
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmWRAor77N6VyjJiQgtsEE7h9Bd1Q7vtRveTYv2A6wZyAT",
"width": 1546,
"height": 1546,
"format": "png"
},
"infoURL": "https://movementlabs.xyz",
"name": "Movement EVM",
"nativeCurrency": {
"name": "Move",
"symbol": "MOVE",
"decimals": 18
},
"networkId": 3073,
"rpc": [],
"shortName": "move",
"slug": "movement-evm",
"status": "incubating",
"testnet": false
} as const satisfies Chain;
+32
View File
@@ -0,0 +1,32 @@
import type { Chain } from "../src/types";
export default {
"chain": "MOVE",
"chainId": 30730,
"explorers": [
{
"name": "mevm explorer",
"url": "https://explorer.movementlabs.xyz",
"standard": "none"
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmWRAor77N6VyjJiQgtsEE7h9Bd1Q7vtRveTYv2A6wZyAT",
"width": 1546,
"height": 1546,
"format": "png"
},
"infoURL": "https://movementlabs.xyz",
"name": "Movement EVM Legacy",
"nativeCurrency": {
"name": "Move",
"symbol": "MOVE",
"decimals": 18
},
"networkId": 30730,
"rpc": [],
"shortName": "moveleg",
"slug": "movement-evm-legacy",
"status": "incubating",
"testnet": false
} as const satisfies Chain;
+32
View File
@@ -0,0 +1,32 @@
import type { Chain } from "../src/types";
export default {
"chain": "MOVE",
"chainId": 30731,
"explorers": [
{
"name": "mevm explorer",
"url": "https://explorer.movementlabs.xyz",
"standard": "none"
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmWRAor77N6VyjJiQgtsEE7h9Bd1Q7vtRveTYv2A6wZyAT",
"width": 1546,
"height": 1546,
"format": "png"
},
"infoURL": "https://movementlabs.xyz",
"name": "Movement EVM Devnet",
"nativeCurrency": {
"name": "Move",
"symbol": "MOVE",
"decimals": 18
},
"networkId": 30731,
"rpc": [],
"shortName": "movedev",
"slug": "movement-evm-devnet",
"status": "incubating",
"testnet": false
} as const satisfies Chain;
+32
View File
@@ -0,0 +1,32 @@
import type { Chain } from "../src/types";
export default {
"chain": "MOVE",
"chainId": 30732,
"explorers": [
{
"name": "mevm explorer",
"url": "https://explorer.movementlabs.xyz",
"standard": "none"
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmWRAor77N6VyjJiQgtsEE7h9Bd1Q7vtRveTYv2A6wZyAT",
"width": 1546,
"height": 1546,
"format": "png"
},
"infoURL": "https://movementlabs.xyz",
"name": "Movement EVM Testnet",
"nativeCurrency": {
"name": "Move",
"symbol": "MOVE",
"decimals": 18
},
"networkId": 30732,
"rpc": [],
"shortName": "movetest",
"slug": "movement-evm-testnet",
"status": "incubating",
"testnet": true
} as const satisfies Chain;
+43
View File
@@ -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;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 46565,
"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": "QI0430s2",
"nativeCurrency": {
"name": "QI0430s2 Token",
"symbol": "SWS",
"decimals": 18
},
"networkId": 46565,
"redFlags": [],
"rpc": [
"https://46565.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QI0430s2",
"slug": "qi0430s2",
"testnet": true
} as const satisfies Chain;
-6
View File
@@ -10,12 +10,6 @@ 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,12 +10,6 @@ export default {
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmWvfA2usnYp1ktzLcqFS8eTLgdp4ifrxjiify46KyG9NZ",
"width": 512,
"height": 512,
"format": "png"
},
"infoURL": "https://yooldo.gg/",
"name": "Yooldo Verse Testnet",
"nativeCurrency": {
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 51440,
"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": "QI0430s4",
"nativeCurrency": {
"name": "QI0430s4 Token",
"symbol": "SWS",
"decimals": 18
},
"networkId": 51440,
"redFlags": [],
"rpc": [
"https://51440.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QI0430s4",
"slug": "qi0430s4",
"testnet": true
} as const satisfies Chain;
+46
View File
@@ -0,0 +1,46 @@
import type { Chain } from "../src/types";
export default {
"chain": "REACT",
"chainId": 5318008,
"explorers": [
{
"name": "reactscan",
"url": "https://kopli.reactscan.net",
"standard": "none"
}
],
"faucets": [
"https://dev.reactive.network/docs/kopli-testnet#faucet"
],
"features": [
{
"name": "EIP155"
},
{
"name": "EIP1559"
}
],
"icon": {
"url": "ipfs://QmZewyubd3zC17pmmGbjix6gFsppYpLsP3ntu3aB7rCJmW",
"width": 800,
"height": 800,
"format": "png"
},
"infoURL": "https://reactive.network",
"name": "Reactive Kopli",
"nativeCurrency": {
"name": "Kopli React",
"symbol": "REACT",
"decimals": 18
},
"networkId": 5318008,
"rpc": [
"https://5318008.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://kopli-rpc.reactive.network",
"http://kopli-rpc.rkt.ink"
],
"shortName": "kreact",
"slug": "reactive-kopli",
"testnet": true,
"title": "Reactive Network Testnet Kopli"
} as const satisfies Chain;
+42
View File
@@ -0,0 +1,42 @@
import type { Chain } from "../src/types";
export default {
"chain": "DODOchain",
"chainId": 53457,
"explorers": [
{
"name": "DODOchain Testnet (Sepolia) Explorer",
"url": "https://testnet-scan.dodochain.com",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmQDdZQjpKhrVM62479RTzppUG8QHhHd8Bq4RFYAjN1yf4",
"width": 160,
"height": 160,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmQDdZQjpKhrVM62479RTzppUG8QHhHd8Bq4RFYAjN1yf4",
"width": 160,
"height": 160,
"format": "png"
},
"infoURL": "https://www.dodochain.com",
"name": "DODOchain testnet",
"nativeCurrency": {
"name": "Berd",
"symbol": "BERD",
"decimals": 18
},
"networkId": 53457,
"rpc": [
"https://53457.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://dodochain-testnet.alt.technology",
"wss://dodochain-testnet.alt.technology/ws"
],
"shortName": "dodochain",
"slug": "dodochain-testnet",
"testnet": true,
"title": "DODOchain testnet"
} as const satisfies Chain;
+44
View File
@@ -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;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 54688,
"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": "QI0430I1",
"nativeCurrency": {
"name": "QI0430I1 Token",
"symbol": "ILF",
"decimals": 18
},
"networkId": 54688,
"redFlags": [],
"rpc": [
"https://54688.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QI0430I1",
"slug": "qi0430i1",
"testnet": true
} as const satisfies Chain;
+2 -20
View File
@@ -6,33 +6,15 @@ export default {
{
"name": "Imversed EVM explorer (Blockscout)",
"url": "https://txe.imversed.network",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
}
"standard": "EIP3091"
},
{
"name": "Imversed Cosmos Explorer (Big Dipper)",
"url": "https://tex-c.imversed.com",
"standard": "none",
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
}
"standard": "none"
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
},
"infoURL": "https://imversed.com",
"name": "Imversed Mainnet",
"nativeCurrency": {
+2 -20
View File
@@ -6,33 +6,15 @@ export default {
{
"name": "Imversed EVM Explorer (Blockscout)",
"url": "https://txe-test.imversed.network",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
}
"standard": "EIP3091"
},
{
"name": "Imversed Cosmos Explorer (Big Dipper)",
"url": "https://tex-t.imversed.com",
"standard": "none",
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
}
"standard": "none"
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",
"width": 400,
"height": 400,
"format": "png"
},
"infoURL": "https://imversed.com",
"name": "Imversed Testnet",
"nativeCurrency": {
+35
View File
@@ -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;
+12 -2
View File
@@ -2,9 +2,19 @@ import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 56400,
"explorers": [],
"explorers": [
{
"name": "TESTNETZER Explorer",
"url": "https://subnets-test.avax.network/testnetzer",
"standard": "EIP3091"
}
],
"faucets": [],
"features": [],
"features": [
{
"name": "EIP1559"
}
],
"icon": {
"url": "https://images.ctfassets.net/9bazykntljf6/62CceHSYsRS4D9fgDSkLRB/877cb8f26954e1743ff535fd7fdaf78f/avacloud-placeholder.svg",
"width": 256,
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 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;
+30
View File
@@ -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;
+34 -3
View File
@@ -2,8 +2,26 @@ import type { Chain } from "../src/types";
export default {
"chain": "ETH",
"chainId": 60808,
"explorers": [],
"explorers": [
{
"name": "bobscout",
"url": "https://explorer.gobob.xyz",
"standard": "EIP3091",
"icon": {
"url": "ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",
"width": 551,
"height": 540,
"format": "png"
}
}
],
"faucets": [],
"icon": {
"url": "ipfs://QmaX5iqQTrJD8TBuvoT97xPMG6LYamjPCPnZUUMh12jc99",
"width": 297,
"height": 378,
"format": "png"
},
"infoURL": "https://gobob.xyz",
"name": "BOB",
"nativeCurrency": {
@@ -12,9 +30,22 @@ export default {
"decimals": 18
},
"networkId": 60808,
"rpc": [],
"parent": {
"type": "L2",
"chain": "eip155-1",
"bridges": [
{
"url": "https://app.gobob.xyz"
}
]
},
"rpc": [
"https://60808.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://rpc.gobob.xyz",
"wss://rpc.gobob.xyz"
],
"shortName": "bob",
"slug": "bob",
"status": "incubating",
"status": "active",
"testnet": false
} as const satisfies Chain;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 62040,
"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": "QI0430s1",
"nativeCurrency": {
"name": "QI0430s1 Token",
"symbol": "SWS",
"decimals": 18
},
"networkId": 62040,
"redFlags": [],
"rpc": [
"https://62040.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QI0430s1",
"slug": "qi0430s1",
"testnet": true
} as const satisfies Chain;
+41
View File
@@ -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;
+30
View File
@@ -0,0 +1,30 @@
import type { Chain } from "../src/types";
export default {
"chain": "Avalanche",
"chainId": 64943,
"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": "QI0430I1",
"nativeCurrency": {
"name": "QI0430I1 Token",
"symbol": "JIQ",
"decimals": 18
},
"networkId": 64943,
"redFlags": [],
"rpc": [
"https://64943.rpc.thirdweb.com/${THIRDWEB_API_KEY}",
"https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"
],
"shortName": "QI0430I1",
"slug": "qi0430i1-qi0430i1",
"testnet": true
} as const satisfies Chain;
-6
View File
@@ -4,12 +4,6 @@ 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": {
+3 -1
View File
@@ -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",
+34
View File
@@ -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;
+24 -3
View File
@@ -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;
+30
View File
@@ -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;
+30
View File
@@ -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;
+30
View File
@@ -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;
+43
View File
@@ -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;
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/chains",
"version": "0.1.101",
"version": "0.1.104",
"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
+30
View File
@@ -1,5 +1,35 @@
# thirdweb
## 0.13.80
### Patch Changes
- Updated dependencies [[`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
- @thirdweb-dev/chains@0.1.104
- @thirdweb-dev/sdk@4.0.74
- @thirdweb-dev/wallets@2.5.14
- @thirdweb-dev/auth@4.1.72
## 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
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/cli",
"main": "dist/cli/index.js",
"version": "0.13.77",
"version": "0.13.80",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/cli",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -1,5 +1,11 @@
# @thirdweb-dev/contracts-js
## 1.3.22
### Patch Changes
- [#2904](https://github.com/thirdweb-dev/js/pull/2904) [`1d66954`](https://github.com/thirdweb-dev/js/commit/1d669547fb4f8a873194e0b843a9ca71e7e1504e) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Contracts version 3.15.0
## 1.3.21
### Patch Changes
+9 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/contracts-js",
"version": "1.3.21",
"version": "1.3.22",
"main": "dist/thirdweb-dev-contracts-js.cjs.js",
"module": "dist/thirdweb-dev-contracts-js.esm.js",
"exports": {
@@ -147,6 +147,7 @@
"./dist/abis/PermissionsLogic.json": "./dist/abis/PermissionsLogic.json",
"./dist/abis/Staking20Base.json": "./dist/abis/Staking20Base.json",
"./dist/abis/IContext.json": "./dist/abis/IContext.json",
"./dist/abis/AccountSeaportBulkSigSupport.json": "./dist/abis/AccountSeaportBulkSigSupport.json",
"./dist/abis/Staking20Upgradeable.json": "./dist/abis/Staking20Upgradeable.json",
"./dist/abis/Proxy.json": "./dist/abis/Proxy.json",
"./dist/abis/ERC1967Proxy.json": "./dist/abis/ERC1967Proxy.json",
@@ -194,8 +195,10 @@
"./dist/abis/SignatureMintERC20.json": "./dist/abis/SignatureMintERC20.json",
"./dist/abis/Staking1155Upgradeable.json": "./dist/abis/Staking1155Upgradeable.json",
"./dist/abis/IEntryPoint.json": "./dist/abis/IEntryPoint.json",
"./dist/abis/SeaportOrderParser.json": "./dist/abis/SeaportOrderParser.json",
"./dist/abis/EnglishAuctionsStorage.json": "./dist/abis/EnglishAuctionsStorage.json",
"./dist/abis/IDropERC721_V3.json": "./dist/abis/IDropERC721_V3.json",
"./dist/abis/EIP712.json": "./dist/abis/EIP712.json",
"./dist/abis/DelayedReveal.json": "./dist/abis/DelayedReveal.json",
"./dist/abis/IAccount.json": "./dist/abis/IAccount.json",
"./dist/abis/OffersStorage.json": "./dist/abis/OffersStorage.json",
@@ -230,6 +233,7 @@
"./dist/abis/IAirdropERC1155.json": "./dist/abis/IAirdropERC1155.json",
"./dist/abis/OffersLogic.json": "./dist/abis/OffersLogic.json",
"./dist/abis/Marketplace.json": "./dist/abis/Marketplace.json",
"./dist/abis/Airdrop.json": "./dist/abis/Airdrop.json",
"./dist/abis/DirectListingsStorage.json": "./dist/abis/DirectListingsStorage.json",
"./dist/abis/TieredDrop.json": "./dist/abis/TieredDrop.json",
"./dist/abis/ERC1155Receiver.json": "./dist/abis/ERC1155Receiver.json",
@@ -267,6 +271,7 @@
"./dist/abis/IERC721Metadata.json": "./dist/abis/IERC721Metadata.json",
"./dist/abis/DropSinglePhase_V1.json": "./dist/abis/DropSinglePhase_V1.json",
"./dist/abis/PermissionsEnumerable.json": "./dist/abis/PermissionsEnumerable.json",
"./dist/abis/SeaportEIP1271.json": "./dist/abis/SeaportEIP1271.json",
"./dist/abis/IAccountFactoryCore.json": "./dist/abis/IAccountFactoryCore.json",
"./dist/abis/TokenStake.json": "./dist/abis/TokenStake.json",
"./dist/abis/AppURI.json": "./dist/abis/AppURI.json",
@@ -324,6 +329,7 @@
"./dist/abis/IAirdropERC1155Claimable.json": "./dist/abis/IAirdropERC1155Claimable.json",
"./dist/abis/IVotes.json": "./dist/abis/IVotes.json",
"./dist/abis/PluginMap.json": "./dist/abis/PluginMap.json",
"./dist/abis/ECDSA.json": "./dist/abis/ECDSA.json",
"./dist/abis/PermissionsEnumerableLogic.json": "./dist/abis/PermissionsEnumerableLogic.json",
"./dist/abis/IContractMetadata.json": "./dist/abis/IContractMetadata.json",
"./dist/abis/IDropClaimCondition.json": "./dist/abis/IDropClaimCondition.json",
@@ -424,7 +430,7 @@
"license": "Apache-2.0",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/contracts-js",
"dependencies": {
"@thirdweb-dev/contracts": "3.14.0"
"@thirdweb-dev/contracts": "3.15.0"
},
"devDependencies": {
"@ethersproject/abi": "^5.7.0",
@@ -461,4 +467,4 @@
"build": "bun ./scripts/revert-exports.ts && pnpm typechain && tsc && pnpm preconstruct build && pnpm extract-abi",
"push": "yalc push"
}
}
}
+30
View File
@@ -1,5 +1,35 @@
# @thirdweb-dev/react-core
## 4.6.13
### Patch Changes
- Updated dependencies [[`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
- @thirdweb-dev/chains@0.1.104
- @thirdweb-dev/sdk@4.0.74
- @thirdweb-dev/wallets@2.5.14
- @thirdweb-dev/auth@4.1.72
## 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
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-core",
"version": "4.6.10",
"version": "4.6.13",
"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",
@@ -1,5 +1,11 @@
# @thirdweb-dev/react-native-compat
## 0.7.45
## 0.7.44
## 0.7.43
## 0.7.42
## 0.7.41
@@ -1,7 +1,7 @@
{
"name": "@thirdweb-dev/react-native-compat",
"description": "Shims for Thirdweb in React Native Projects",
"version": "0.7.42",
"version": "0.7.45",
"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",
+30
View File
@@ -1,5 +1,35 @@
# @thirdweb-dev/react-native
## 0.7.45
### Patch Changes
- Updated dependencies [[`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
- @thirdweb-dev/chains@0.1.104
- @thirdweb-dev/sdk@4.0.74
- @thirdweb-dev/wallets@2.5.14
- @thirdweb-dev/react-core@4.6.13
## 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
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react-native",
"version": "0.7.42",
"version": "0.7.45",
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+32
View File
@@ -1,5 +1,37 @@
# @thirdweb-dev/react
## 4.6.13
### Patch Changes
- Updated dependencies [[`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
- @thirdweb-dev/chains@0.1.104
- @thirdweb-dev/sdk@4.0.74
- @thirdweb-dev/wallets@2.5.14
- @thirdweb-dev/react-core@4.6.13
## 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
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react",
"version": "4.6.10",
"version": "4.6.13",
"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.
+24
View File
@@ -1,5 +1,29 @@
# @thirdweb-dev/sdk
## 4.0.74
### Patch Changes
- Updated dependencies [[`75e66b1`](https://github.com/thirdweb-dev/js/commit/75e66b189d790778358edeacdd71965f248902c2), [`f916d7a`](https://github.com/thirdweb-dev/js/commit/f916d7a453854bcb8c6f0b9c95b49d34eb865882), [`1d66954`](https://github.com/thirdweb-dev/js/commit/1d669547fb4f8a873194e0b843a9ca71e7e1504e), [`9a031bb`](https://github.com/thirdweb-dev/js/commit/9a031bb19fe9b39ff88a02c48c311ba5c3184aab), [`7882b22`](https://github.com/thirdweb-dev/js/commit/7882b22306c1ccd4919fe088dfcd7c68bff954f9), [`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376), [`e6fce1f`](https://github.com/thirdweb-dev/js/commit/e6fce1f2e617c795377ef4de12e2112f1fa03ebb), [`88886ac`](https://github.com/thirdweb-dev/js/commit/88886acd762e637ac130bb7fa0eda12c6e5da4fc)]:
- thirdweb@5.15.0
- @thirdweb-dev/contracts-js@1.3.22
- @thirdweb-dev/chains@0.1.104
## 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
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/sdk",
"version": "4.0.71",
"version": "4.0.74",
"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,35 @@
# @thirdweb-dev/unity-js-bridge
## 0.6.23
### Patch Changes
- Updated dependencies [[`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
- @thirdweb-dev/chains@0.1.104
- @thirdweb-dev/sdk@4.0.74
- @thirdweb-dev/wallets@2.5.14
- @thirdweb-dev/auth@4.1.72
## 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
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/unity-js-bridge",
"version": "0.6.20",
"version": "0.6.23",
"main": "dist/thirdweb-unity-bridge.js",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
"license": "Apache-2.0",
+25
View File
@@ -1,5 +1,30 @@
# @thirdweb-dev/wallets
## 2.5.14
### Patch Changes
- Updated dependencies [[`1d66954`](https://github.com/thirdweb-dev/js/commit/1d669547fb4f8a873194e0b843a9ca71e7e1504e), [`0bce535`](https://github.com/thirdweb-dev/js/commit/0bce5350946d0ce231a65dbad2493d1fbe0c1376)]:
- @thirdweb-dev/contracts-js@1.3.22
- @thirdweb-dev/chains@0.1.104
- @thirdweb-dev/sdk@4.0.74
## 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
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/wallets",
"version": "2.5.11",
"version": "2.5.14",
"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",
@@ -74,7 +74,7 @@ export async function checkContractWalletSignature(
const provider = new providers.StaticJsonRpcProvider(
{
url: chainIdToThirdwebRpc(chainId),
url: rpcUrl,
skipFetchSetup: _skipFetchSetup,
headers,
},
@@ -227,7 +227,7 @@ Code: ${errorCode}`;
try {
const provider = new providers.StaticJsonRpcProvider(
{
url: chainIdToThirdwebRpc(chainId, this.config.clientId),
url: rpcUrl,
headers,
},
chainId,
@@ -17,7 +17,7 @@ import { createErc20 } from "../utils/currency";
// TODO improve this
export function chainIdToThirdwebRpc(chainId: number, clientId?: string) {
return `https://${chainId}.rpc.thirdweb.com${clientId ? `/${clientId}` : ""}${
typeof globalThis !== "undefined" && "APP_BUNDLE_ID" in globalThis
typeof globalThis !== "undefined" && "APP_BUNDLE_ID" in globalThis && !!(globalThis as any).APP_BUNDLE_ID
? `?bundleId=${(globalThis as any).APP_BUNDLE_ID as string}`
: ""
}`;
@@ -1,7 +1,7 @@
/* eslint-disable better-tree-shaking/no-top-level-side-effects */
import { SmartWallet } from "../src/evm/wallets/smart-wallet";
import { LocalWallet } from "../src/evm/wallets/local-wallet";
import { ArbitrumSepolia } from "@thirdweb-dev/chains";
import { BaseSepoliaTestnet } from "@thirdweb-dev/chains";
import { ThirdwebSDK, SmartContract } from "@thirdweb-dev/sdk";
import { checkContractWalletSignature } from "../src/evm/connectors/smart-wallet/lib/check-contract-wallet-signature";
import { describe, it, expect, beforeAll } from "vitest";
@@ -12,9 +12,9 @@ let smartWallet: SmartWallet;
let smartWalletAddress: string;
let personalWallet: LocalWallet;
let contract: SmartContract;
const factoryAddress = "0x564cf6453a1b0FF8DB603E92EA4BbD410dea45F3"; // pre 712
const factoryAddressV2 = "0xbf1C9aA4B1A085f7DA890a44E82B0A1289A40052"; // post 712
const chain = ArbitrumSepolia;
const factoryAddress = "0x7b5ba9D46b53aae55e2c2E9b38d9AfF9a0b158F8"; // pre 712
const factoryAddressV2 = "0xBCE06A6Dcd4dE8c6D8892E404b0a99A8812352b2"; // post 712
const chain = BaseSepoliaTestnet;
const SECRET_KEY = process.env.TW_SECRET_KEY;
const describeIf = (condition: boolean) =>
@@ -34,21 +34,20 @@ beforeAll(async () => {
secretKey: SECRET_KEY,
});
contract = await sdk.getContract(
"0x6A7a26c9a595E6893C255C9dF0b593e77518e0c3", // arb sep edition drop
"0x638263e3eAa3917a53630e61B1fBa685308024fa", // edition drop
);
});
describeIf(!!SECRET_KEY)(
"SmartWallet core tests",
{
timeout: 240_000,
},
() => {
it("can connect", async () => {
expect(smartWalletAddress).toHaveLength(42);
});
it("can execute a tx via SDK", async () => {
it("can execute a tx via SDK", {
timeout: 120_000,
}, async () => {
const tx = await contract.erc1155.claim(0, 1);
expect(tx.receipt.transactionHash).toHaveLength(66);
const isDeployed = await smartWallet.isDeployed();
@@ -57,13 +56,17 @@ describeIf(!!SECRET_KEY)(
expect(balance.toNumber()).toEqual(1);
});
it("can estimate a tx", async () => {
it("can estimate a tx", {
timeout: 120_000,
}, async () => {
const preparedTx = await contract.erc1155.claim.prepare(0, 1);
const estimates = await smartWallet.estimate(preparedTx);
expect(estimates.wei.toString()).not.toBe("0");
});
it("can execute a tx", async () => {
it("can execute a tx", {
timeout: 120_000,
}, async () => {
const preparedTx = await contract.erc1155.claim.prepare(0, 1);
const tx = await smartWallet.execute(preparedTx);
expect(tx.receipt.transactionHash).toHaveLength(66);
@@ -71,7 +74,9 @@ describeIf(!!SECRET_KEY)(
expect(balance.toNumber()).toEqual(2);
});
it("can execute a batched tx", async () => {
it("can execute a batched tx", {
timeout: 120_000,
}, async () => {
const preparedTx = await contract.erc1155.claim.prepare(0, 1);
const tx = await smartWallet.executeBatch([preparedTx, preparedTx]);
expect(tx.receipt.transactionHash).toHaveLength(66);
@@ -79,7 +84,9 @@ describeIf(!!SECRET_KEY)(
expect(balance.toNumber()).toEqual(4);
});
it("can execute a raw tx", async () => {
it("can execute a raw tx", {
timeout: 120_000,
}, async () => {
const preparedTx = await contract.erc1155.claim.prepare(0, 1);
const tx = await smartWallet.executeRaw({
to: preparedTx.getTarget(),
@@ -90,7 +97,9 @@ describeIf(!!SECRET_KEY)(
expect(balance.toNumber()).toEqual(5);
});
it("can execute a batched raw tx", async () => {
it("can execute a batched raw tx", {
timeout: 120_000,
}, async () => {
const preparedTx = await contract.erc1155.claim.prepare(0, 1);
const tx = await smartWallet.executeBatchRaw([
{
@@ -107,7 +116,9 @@ describeIf(!!SECRET_KEY)(
expect(balance.toNumber()).toEqual(7);
});
it("can sign and verify 1271 old factory", async () => {
it("can sign and verify 1271 old factory", {
timeout: 240_000,
}, async () => {
const message = "0x1234";
const sig = await smartWallet.signMessage(message);
const isValidV1 = await smartWallet.verifySignature(
@@ -128,7 +139,9 @@ describeIf(!!SECRET_KEY)(
expect(isValidV2).toEqual(true);
});
it("can sign and verify 1271 new factory", async () => {
it("can sign and verify 1271 new factory", {
timeout: 240_000,
}, async () => {
smartWallet = new SmartWallet({
chain,
factoryAddress: factoryAddressV2,
+2 -2
View File
@@ -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",
+46
View File
@@ -1,5 +1,51 @@
# thirdweb
## 5.15.0
### Minor Changes
- [#2875](https://github.com/thirdweb-dev/js/pull/2875) [`7882b22`](https://github.com/thirdweb-dev/js/commit/7882b22306c1ccd4919fe088dfcd7c68bff954f9) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Support for Coinbase Smart Wallet
- [#2898](https://github.com/thirdweb-dev/js/pull/2898) [`88886ac`](https://github.com/thirdweb-dev/js/commit/88886acd762e637ac130bb7fa0eda12c6e5da4fc) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Adds overrides to extension functions
### Patch Changes
- [#2906](https://github.com/thirdweb-dev/js/pull/2906) [`75e66b1`](https://github.com/thirdweb-dev/js/commit/75e66b189d790778358edeacdd71965f248902c2) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Fix signTypedData external verification for smart accounts
- [#2897](https://github.com/thirdweb-dev/js/pull/2897) [`f916d7a`](https://github.com/thirdweb-dev/js/commit/f916d7a453854bcb8c6f0b9c95b49d34eb865882) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fixes TransactionButton loading state layout shift
- [#2905](https://github.com/thirdweb-dev/js/pull/2905) [`9a031bb`](https://github.com/thirdweb-dev/js/commit/9a031bb19fe9b39ff88a02c48c311ba5c3184aab) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Bump timeout for userOps receipts to 2mins
- [#2899](https://github.com/thirdweb-dev/js/pull/2899) [`e6fce1f`](https://github.com/thirdweb-dev/js/commit/e6fce1f2e617c795377ef4de12e2112f1fa03ebb) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fixes useContractEvents duplicating events
## 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
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "thirdweb",
"version": "5.13.0",
"version": "5.15.0",
"repository": {
"type": "git",
"url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -174,7 +174,7 @@
"!tsconfig.build.json"
],
"dependencies": {
"@coinbase/wallet-sdk": "3.7.2",
"@coinbase/wallet-sdk": "4.0.0-rc.2",
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.0",
"@google/model-viewer": "2.1.1",
@@ -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"
}
]
+13 -7
View File
@@ -218,7 +218,7 @@ export function encode${uppercaseFirstLetter(f.name)}(options: ${inputTypeName})
: ""
}
/**
* Calls the "${f.name}" function on the contract.
* Prepares a transaction to call the "${f.name}" function on the contract.
* @param options - The options for the "${f.name}" function.
* @returns A prepared transaction object.
* @extension ${extensionName.toUpperCase()}
@@ -229,8 +229,8 @@ export function encode${uppercaseFirstLetter(f.name)}(options: ${inputTypeName})
* const transaction = ${f.name}(${
f.inputs.length > 0
? `{\n * contract,\n * ${f.inputs
.map((x) => ` ${removeLeadingUnderscore(x.name)}: ...,`)
.join("\n * ")}\n * }`
.map((x) => ` ${removeLeadingUnderscore(x.name)}: ...,`)
.join("\n * ")}\n* overrides: {\n* ...\n* }\n * }`
: ""
});
*
@@ -269,6 +269,12 @@ export function ${f.name}(
.join(", ")}] as const;
},
value: async () => (await asyncOptions()).overrides?.value,
accessList: async () => (await asyncOptions()).overrides?.accessList,
gas: async () => (await asyncOptions()).overrides?.gas,
gasPrice: async () => (await asyncOptions()).overrides?.gasPrice,
maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas,
maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas,
nonce: async () => (await asyncOptions()).overrides?.nonce,
`
: ""
}
@@ -433,8 +439,8 @@ export function decode${uppercaseFirstLetter(f.name)}Result(result: Hex) {
* const result = await ${f.name}(${
f.inputs.length > 0
? `{\n * ${f.inputs
.map((x) => ` ${removeLeadingUnderscore(x.name)}: ...,`)
.join("\n * ")}\n * }`
.map((x) => ` ${removeLeadingUnderscore(x.name)}: ...,`)
.join("\n * ")}\n * }`
: ""
});
*
@@ -500,8 +506,8 @@ export type ${uppercaseFirstLetter(e.name)}EventFilters = Partial<{
* ${eventNameToPreparedEventName(e.name)}(${
indexedInputs.length > 0
? `{\n * ${indexedInputs
.map((x) => ` ${x.name}: ...,`)
.join("\n * ")}\n * }`
.map((x) => ` ${x.name}: ...,`)
.join("\n * ")}\n * }`
: ""
})
* ],
+3 -3
View File
@@ -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()
+5 -5
View File
@@ -29,7 +29,7 @@ export const viemAdapter = {
* @returns The ThirdwebContract.
* @example
* ```ts
* import { viemAdapter } from "thirdweb/adapters";
* import { viemAdapter } from "thirdweb/adapters/viem";
*
* const contract = viemAdapter.contract.fromViem({
* viemContract: viemContract,
@@ -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,
@@ -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
+1
View File
@@ -6,6 +6,7 @@ export type ChainOptions = {
id: number;
name?: string;
rpc?: string;
icon?: Icon;
nativeCurrency?: {
name?: string;
symbol?: string;

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