thirdweb 5.63.2 → 5.63.3-nightly-50f98d7486809c541252a9cfc6979d102960366b-20241022000337

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = "5.63.2";
4
+ exports.version = "5.63.3-nightly-50f98d7486809c541252a9cfc6979d102960366b-20241022000337";
5
5
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,wEAAwE,CAAC"}
@@ -1,2 +1,2 @@
1
- export const version = "5.63.2";
1
+ export const version = "5.63.3-nightly-50f98d7486809c541252a9cfc6979d102960366b-20241022000337";
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,wEAAwE,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "5.63.2";
1
+ export declare const version = "5.63.3-nightly-50f98d7486809c541252a9cfc6979d102960366b-20241022000337";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,2EAA2E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thirdweb",
3
- "version": "5.63.2",
3
+ "version": "5.63.3-nightly-50f98d7486809c541252a9cfc6979d102960366b-20241022000337",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -306,14 +306,14 @@
306
306
  "@storybook/addon-onboarding": "8.3.5",
307
307
  "@storybook/react": "8.3.5",
308
308
  "@storybook/react-vite": "8.3.5",
309
- "@storybook/test": "8.3.5",
309
+ "@storybook/test": "8.3.6",
310
310
  "@testing-library/jest-dom": "^6.4.7",
311
311
  "@testing-library/react": "^16.0.0",
312
312
  "@testing-library/user-event": "^14.5.2",
313
313
  "@types/cross-spawn": "^6.0.6",
314
314
  "@types/react": "^18.3.11",
315
315
  "@viem/anvil": "0.0.10",
316
- "@vitejs/plugin-react": "^4.3.2",
316
+ "@vitejs/plugin-react": "^4.3.3",
317
317
  "@vitest/coverage-v8": "2.1.3",
318
318
  "@vitest/ui": "2.1.3",
319
319
  "cross-spawn": "7.0.3",
@@ -324,7 +324,7 @@
324
324
  "expo-web-browser": "13.0.3",
325
325
  "happy-dom": "^15.7.4",
326
326
  "knip": "^5.33.3",
327
- "msw": "^2.4.11",
327
+ "msw": "^2.4.12",
328
328
  "prettier": "^3.3.2",
329
329
  "react": "18.3.1",
330
330
  "react-native": "0.75.3",
@@ -336,7 +336,7 @@
336
336
  "sharp": "^0.33.5",
337
337
  "size-limit": "11.1.6",
338
338
  "storybook": "8.3.5",
339
- "typedoc": "0.26.9",
339
+ "typedoc": "0.26.10",
340
340
  "typescript": "5.6.3",
341
341
  "vite": "5.4.9",
342
342
  "vitest": "2.1.3"
@@ -13,62 +13,65 @@ const chain = ANVIL_CHAIN;
13
13
  const client = TEST_CLIENT;
14
14
  const account = TEST_ACCOUNT_C;
15
15
 
16
- describe("ERC1155 Edition: mintToBatch", () => {
17
- it("should mint multiple tokens in one tx", async () => {
18
- const contract = getContract({
19
- chain,
20
- client,
21
- address: await deployERC1155Contract({
16
+ describe.runIf(process.env.TW_SECRET_KEY)(
17
+ "ERC1155 Edition: mintToBatch",
18
+ () => {
19
+ it("should mint multiple tokens in one tx", async () => {
20
+ const contract = getContract({
22
21
  chain,
23
22
  client,
23
+ address: await deployERC1155Contract({
24
+ chain,
25
+ client,
26
+ account,
27
+ type: "TokenERC1155",
28
+ params: {
29
+ name: "edition",
30
+ contractURI: TEST_CONTRACT_URI,
31
+ },
32
+ }),
33
+ });
34
+
35
+ await sendAndConfirmTransaction({
24
36
  account,
25
- type: "TokenERC1155",
26
- params: {
27
- name: "edition",
28
- contractURI: TEST_CONTRACT_URI,
29
- },
30
- }),
31
- });
37
+ transaction: mintToBatch({
38
+ contract,
39
+ to: account.address,
40
+ nfts: [
41
+ { metadata: { name: "token 0" }, supply: 1n },
42
+ { metadata: { name: "token 1" }, supply: 2n },
43
+ { metadata: { name: "token 2" }, supply: 3n },
44
+ ],
45
+ }),
46
+ });
32
47
 
33
- await sendAndConfirmTransaction({
34
- account,
35
- transaction: mintToBatch({
36
- contract,
37
- to: account.address,
38
- nfts: [
39
- { metadata: { name: "token 0" }, supply: 1n },
40
- { metadata: { name: "token 1" }, supply: 2n },
41
- { metadata: { name: "token 2" }, supply: 3n },
42
- ],
43
- }),
48
+ const nfts = await getNFTs({ contract });
49
+ expect(nfts).toStrictEqual([
50
+ {
51
+ metadata: { name: "token 0" },
52
+ owner: null,
53
+ id: 0n,
54
+ tokenURI: "ipfs://QmPZ6LpGqMuFbHKTXrNW1NRNLHf1nrxS4dtoFqdZZTKvPX/0",
55
+ type: "ERC1155",
56
+ supply: 1n,
57
+ },
58
+ {
59
+ metadata: { name: "token 1" },
60
+ owner: null,
61
+ id: 1n,
62
+ tokenURI: "ipfs://QmRFPyc3yEYxR4pQxwyTQWTine51TxWCoD6nzJWR3eX45b/0",
63
+ type: "ERC1155",
64
+ supply: 2n,
65
+ },
66
+ {
67
+ metadata: { name: "token 2" },
68
+ owner: null,
69
+ id: 2n,
70
+ tokenURI: "ipfs://QmesQiRLHCgqWZM2GFCs7Nb7rr2S72hU1BVQc7xiTyKZtT/0",
71
+ type: "ERC1155",
72
+ supply: 3n,
73
+ },
74
+ ]);
44
75
  });
45
-
46
- const nfts = await getNFTs({ contract });
47
- expect(nfts).toStrictEqual([
48
- {
49
- metadata: { name: "token 0" },
50
- owner: null,
51
- id: 0n,
52
- tokenURI: "ipfs://QmPZ6LpGqMuFbHKTXrNW1NRNLHf1nrxS4dtoFqdZZTKvPX/0",
53
- type: "ERC1155",
54
- supply: 1n,
55
- },
56
- {
57
- metadata: { name: "token 1" },
58
- owner: null,
59
- id: 1n,
60
- tokenURI: "ipfs://QmRFPyc3yEYxR4pQxwyTQWTine51TxWCoD6nzJWR3eX45b/0",
61
- type: "ERC1155",
62
- supply: 2n,
63
- },
64
- {
65
- metadata: { name: "token 2" },
66
- owner: null,
67
- id: 2n,
68
- tokenURI: "ipfs://QmesQiRLHCgqWZM2GFCs7Nb7rr2S72hU1BVQc7xiTyKZtT/0",
69
- type: "ERC1155",
70
- supply: 3n,
71
- },
72
- ]);
73
- });
74
- });
76
+ },
77
+ );
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = "5.63.2";
1
+ export const version = "5.63.3-nightly-50f98d7486809c541252a9cfc6979d102960366b-20241022000337";