thirdweb 5.76.0-nightly-e702490f2ff5e2b7d6b28c06731af880583cf8bc-20241210010916 → 5.76.0

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.
Files changed (49) hide show
  1. package/dist/cjs/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.js +33 -0
  2. package/dist/cjs/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.js.map +1 -0
  3. package/dist/cjs/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.js +172 -0
  4. package/dist/cjs/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.js.map +1 -0
  5. package/dist/cjs/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.js +175 -0
  6. package/dist/cjs/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.js.map +1 -0
  7. package/dist/cjs/extensions/erc721/write/sigMint.js +99 -4
  8. package/dist/cjs/extensions/erc721/write/sigMint.js.map +1 -1
  9. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +2 -0
  10. package/dist/cjs/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -1
  11. package/dist/cjs/version.js +1 -1
  12. package/dist/cjs/version.js.map +1 -1
  13. package/dist/cjs/wallets/in-app/core/wallet/enclave-wallet.js +1 -1
  14. package/dist/cjs/wallets/in-app/core/wallet/enclave-wallet.js.map +1 -1
  15. package/dist/esm/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.js +30 -0
  16. package/dist/esm/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.js.map +1 -0
  17. package/dist/esm/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.js +164 -0
  18. package/dist/esm/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.js.map +1 -0
  19. package/dist/esm/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.js +168 -0
  20. package/dist/esm/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.js.map +1 -0
  21. package/dist/esm/extensions/erc721/write/sigMint.js +99 -4
  22. package/dist/esm/extensions/erc721/write/sigMint.js.map +1 -1
  23. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js +2 -0
  24. package/dist/esm/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.js.map +1 -1
  25. package/dist/esm/version.js +1 -1
  26. package/dist/esm/version.js.map +1 -1
  27. package/dist/esm/wallets/in-app/core/wallet/enclave-wallet.js +1 -1
  28. package/dist/esm/wallets/in-app/core/wallet/enclave-wallet.js.map +1 -1
  29. package/dist/types/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.d.ts +98 -0
  30. package/dist/types/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.d.ts.map +1 -0
  31. package/dist/types/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.d.ts +136 -0
  32. package/dist/types/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.d.ts.map +1 -0
  33. package/dist/types/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.d.ts +132 -0
  34. package/dist/types/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.d.ts.map +1 -0
  35. package/dist/types/extensions/erc721/write/sigMint.d.ts +119 -18
  36. package/dist/types/extensions/erc721/write/sigMint.d.ts.map +1 -1
  37. package/dist/types/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.d.ts.map +1 -1
  38. package/dist/types/version.d.ts +1 -1
  39. package/dist/types/version.d.ts.map +1 -1
  40. package/package.json +1 -1
  41. package/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts +55 -0
  42. package/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts +196 -0
  43. package/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts +214 -0
  44. package/src/extensions/erc721/write/sigMint.ts +184 -8
  45. package/src/extensions/erc721/write/sigMint721.test.ts +42 -0
  46. package/src/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.test.tsx +135 -0
  47. package/src/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.tsx +2 -0
  48. package/src/version.ts +1 -1
  49. package/src/wallets/in-app/core/wallet/enclave-wallet.ts +1 -1
@@ -0,0 +1,98 @@
1
+ import type { AbiParameterToPrimitiveType } from "abitype";
2
+ /**
3
+ * Represents the filters for the "TokensMintedWithSignature" event.
4
+ */
5
+ export type TokensMintedWithSignatureEventFilters = Partial<{
6
+ signer: AbiParameterToPrimitiveType<{
7
+ type: "address";
8
+ name: "signer";
9
+ indexed: true;
10
+ }>;
11
+ mintedTo: AbiParameterToPrimitiveType<{
12
+ type: "address";
13
+ name: "mintedTo";
14
+ indexed: true;
15
+ }>;
16
+ tokenIdMinted: AbiParameterToPrimitiveType<{
17
+ type: "uint256";
18
+ name: "tokenIdMinted";
19
+ indexed: true;
20
+ }>;
21
+ }>;
22
+ /**
23
+ * Creates an event object for the TokensMintedWithSignature event.
24
+ * @param filters - Optional filters to apply to the event.
25
+ * @returns The prepared event object.
26
+ * @extension ERC721
27
+ * @example
28
+ * ```ts
29
+ * import { getContractEvents } from "thirdweb";
30
+ * import { tokensMintedWithSignatureEvent } from "thirdweb/extensions/erc721";
31
+ *
32
+ * const events = await getContractEvents({
33
+ * contract,
34
+ * events: [
35
+ * tokensMintedWithSignatureEvent({
36
+ * signer: ...,
37
+ * mintedTo: ...,
38
+ * tokenIdMinted: ...,
39
+ * })
40
+ * ],
41
+ * });
42
+ * ```
43
+ */
44
+ export declare function tokensMintedWithSignatureEvent(filters?: TokensMintedWithSignatureEventFilters): import("../../../../../event/prepare-event.js").PreparedEvent<{
45
+ readonly name: "TokensMintedWithSignature";
46
+ readonly type: "event";
47
+ readonly inputs: readonly [{
48
+ readonly type: "address";
49
+ readonly name: "signer";
50
+ readonly indexed: true;
51
+ }, {
52
+ readonly type: "address";
53
+ readonly name: "mintedTo";
54
+ readonly indexed: true;
55
+ }, {
56
+ readonly type: "uint256";
57
+ readonly name: "tokenIdMinted";
58
+ readonly indexed: true;
59
+ }, {
60
+ readonly type: "tuple";
61
+ readonly components: readonly [{
62
+ readonly type: "address";
63
+ readonly name: "to";
64
+ }, {
65
+ readonly type: "address";
66
+ readonly name: "royaltyRecipient";
67
+ }, {
68
+ readonly type: "uint256";
69
+ readonly name: "royaltyBps";
70
+ }, {
71
+ readonly type: "address";
72
+ readonly name: "primarySaleRecipient";
73
+ }, {
74
+ readonly type: "string";
75
+ readonly name: "uri";
76
+ }, {
77
+ readonly type: "uint256";
78
+ readonly name: "quantity";
79
+ }, {
80
+ readonly type: "uint256";
81
+ readonly name: "pricePerToken";
82
+ }, {
83
+ readonly type: "address";
84
+ readonly name: "currency";
85
+ }, {
86
+ readonly type: "uint128";
87
+ readonly name: "validityStartTimestamp";
88
+ }, {
89
+ readonly type: "uint128";
90
+ readonly name: "validityEndTimestamp";
91
+ }, {
92
+ readonly type: "bytes32";
93
+ readonly name: "uid";
94
+ }];
95
+ readonly name: "mintRequest";
96
+ }];
97
+ }>;
98
+ //# sourceMappingURL=TokensMintedWithSignature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TokensMintedWithSignature.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG,OAAO,CAAC;IAC1D,MAAM,EAAE,2BAA2B,CAAC;QAClC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,QAAQ,CAAC;QACf,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;IACH,QAAQ,EAAE,2BAA2B,CAAC;QACpC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,UAAU,CAAC;QACjB,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;IACH,aAAa,EAAE,2BAA2B,CAAC;QACzC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,eAAe,CAAC;QACtB,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;CACJ,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,GAAE,qCAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOpD"}
@@ -0,0 +1,136 @@
1
+ import type { AbiParameterToPrimitiveType } from "abitype";
2
+ import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
3
+ import type { Hex } from "../../../../../utils/encoding/hex.js";
4
+ /**
5
+ * Represents the parameters for the "verify" function.
6
+ */
7
+ export type VerifyParams = {
8
+ req: AbiParameterToPrimitiveType<{
9
+ type: "tuple";
10
+ name: "req";
11
+ components: [
12
+ {
13
+ type: "address";
14
+ name: "to";
15
+ },
16
+ {
17
+ type: "address";
18
+ name: "royaltyRecipient";
19
+ },
20
+ {
21
+ type: "uint256";
22
+ name: "royaltyBps";
23
+ },
24
+ {
25
+ type: "address";
26
+ name: "primarySaleRecipient";
27
+ },
28
+ {
29
+ type: "string";
30
+ name: "uri";
31
+ },
32
+ {
33
+ type: "uint256";
34
+ name: "quantity";
35
+ },
36
+ {
37
+ type: "uint256";
38
+ name: "pricePerToken";
39
+ },
40
+ {
41
+ type: "address";
42
+ name: "currency";
43
+ },
44
+ {
45
+ type: "uint128";
46
+ name: "validityStartTimestamp";
47
+ },
48
+ {
49
+ type: "uint128";
50
+ name: "validityEndTimestamp";
51
+ },
52
+ {
53
+ type: "bytes32";
54
+ name: "uid";
55
+ }
56
+ ];
57
+ }>;
58
+ signature: AbiParameterToPrimitiveType<{
59
+ type: "bytes";
60
+ name: "signature";
61
+ }>;
62
+ };
63
+ export declare const FN_SELECTOR: "0x252e82e8";
64
+ /**
65
+ * Checks if the `verify` method is supported by the given contract.
66
+ * @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
67
+ * @returns A boolean indicating if the `verify` method is supported.
68
+ * @extension ERC721
69
+ * @example
70
+ * ```ts
71
+ * import { isVerifySupported } from "thirdweb/extensions/erc721";
72
+ * const supported = isVerifySupported(["0x..."]);
73
+ * ```
74
+ */
75
+ export declare function isVerifySupported(availableSelectors: string[]): boolean;
76
+ /**
77
+ * Encodes the parameters for the "verify" function.
78
+ * @param options - The options for the verify function.
79
+ * @returns The encoded ABI parameters.
80
+ * @extension ERC721
81
+ * @example
82
+ * ```ts
83
+ * import { encodeVerifyParams } from "thirdweb/extensions/erc721";
84
+ * const result = encodeVerifyParams({
85
+ * req: ...,
86
+ * signature: ...,
87
+ * });
88
+ * ```
89
+ */
90
+ export declare function encodeVerifyParams(options: VerifyParams): `0x${string}`;
91
+ /**
92
+ * Encodes the "verify" function into a Hex string with its parameters.
93
+ * @param options - The options for the verify function.
94
+ * @returns The encoded hexadecimal string.
95
+ * @extension ERC721
96
+ * @example
97
+ * ```ts
98
+ * import { encodeVerify } from "thirdweb/extensions/erc721";
99
+ * const result = encodeVerify({
100
+ * req: ...,
101
+ * signature: ...,
102
+ * });
103
+ * ```
104
+ */
105
+ export declare function encodeVerify(options: VerifyParams): `${typeof FN_SELECTOR}${string}`;
106
+ /**
107
+ * Decodes the result of the verify function call.
108
+ * @param result - The hexadecimal result to decode.
109
+ * @returns The decoded result as per the FN_OUTPUTS definition.
110
+ * @extension ERC721
111
+ * @example
112
+ * ```ts
113
+ * import { decodeVerifyResult } from "thirdweb/extensions/erc721";
114
+ * const result = decodeVerifyResultResult("...");
115
+ * ```
116
+ */
117
+ export declare function decodeVerifyResult(result: Hex): readonly [boolean, string];
118
+ /**
119
+ * Calls the "verify" function on the contract.
120
+ * @param options - The options for the verify function.
121
+ * @returns The parsed result of the function call.
122
+ * @extension ERC721
123
+ * @example
124
+ * ```ts
125
+ * import { verify } from "thirdweb/extensions/erc721";
126
+ *
127
+ * const result = await verify({
128
+ * contract,
129
+ * req: ...,
130
+ * signature: ...,
131
+ * });
132
+ *
133
+ * ```
134
+ */
135
+ export declare function verify(options: BaseTransactionOptions<VerifyParams>): Promise<readonly [boolean, string]>;
136
+ //# sourceMappingURL=verify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,2BAA2B,CAAC;QAC/B,IAAI,EAAE,OAAO,CAAC;QACd,IAAI,EAAE,KAAK,CAAC;QACZ,UAAU,EAAE;YACV;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,IAAI,CAAA;aAAE;YAC/B;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,kBAAkB,CAAA;aAAE;YAC7C;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,YAAY,CAAA;aAAE;YACvC;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,sBAAsB,CAAA;aAAE;YACjD;gBAAE,IAAI,EAAE,QAAQ,CAAC;gBAAC,IAAI,EAAE,KAAK,CAAA;aAAE;YAC/B;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,UAAU,CAAA;aAAE;YACrC;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,eAAe,CAAA;aAAE;YAC1C;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,UAAU,CAAA;aAAE;YACrC;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,wBAAwB,CAAA;aAAE;YACnD;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,sBAAsB,CAAA;aAAE;YACjD;gBAAE,IAAI,EAAE,SAAS,CAAC;gBAAC,IAAI,EAAE,KAAK,CAAA;aAAE;SACjC,CAAC;KACH,CAAC,CAAC;IACH,SAAS,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,WAAW,CAAA;KAAE,CAAC,CAAC;CAC9E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AAoEjD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAK7D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,iBAEvD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,GAIL,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CAC5E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,GAAG,8BAE7C;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,MAAM,CAAC,OAAO,EAAE,sBAAsB,CAAC,YAAY,CAAC,uCAMzE"}
@@ -0,0 +1,132 @@
1
+ import type { AbiParameterToPrimitiveType } from "abitype";
2
+ import type { BaseTransactionOptions, WithOverrides } from "../../../../../transaction/types.js";
3
+ /**
4
+ * Represents the parameters for the "mintWithSignature" function.
5
+ */
6
+ export type MintWithSignatureParams = WithOverrides<{
7
+ payload: AbiParameterToPrimitiveType<{
8
+ type: "tuple";
9
+ name: "payload";
10
+ components: [
11
+ {
12
+ type: "address";
13
+ name: "to";
14
+ },
15
+ {
16
+ type: "address";
17
+ name: "royaltyRecipient";
18
+ },
19
+ {
20
+ type: "uint256";
21
+ name: "royaltyBps";
22
+ },
23
+ {
24
+ type: "address";
25
+ name: "primarySaleRecipient";
26
+ },
27
+ {
28
+ type: "string";
29
+ name: "uri";
30
+ },
31
+ {
32
+ type: "uint256";
33
+ name: "quantity";
34
+ },
35
+ {
36
+ type: "uint256";
37
+ name: "pricePerToken";
38
+ },
39
+ {
40
+ type: "address";
41
+ name: "currency";
42
+ },
43
+ {
44
+ type: "uint128";
45
+ name: "validityStartTimestamp";
46
+ },
47
+ {
48
+ type: "uint128";
49
+ name: "validityEndTimestamp";
50
+ },
51
+ {
52
+ type: "bytes32";
53
+ name: "uid";
54
+ }
55
+ ];
56
+ }>;
57
+ signature: AbiParameterToPrimitiveType<{
58
+ type: "bytes";
59
+ name: "signature";
60
+ }>;
61
+ }>;
62
+ export declare const FN_SELECTOR: "0x439c7be5";
63
+ /**
64
+ * Checks if the `mintWithSignature` method is supported by the given contract.
65
+ * @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
66
+ * @returns A boolean indicating if the `mintWithSignature` method is supported.
67
+ * @extension ERC721
68
+ * @example
69
+ * ```ts
70
+ * import { isMintWithSignatureSupported } from "thirdweb/extensions/erc721";
71
+ *
72
+ * const supported = isMintWithSignatureSupported(["0x..."]);
73
+ * ```
74
+ */
75
+ export declare function isMintWithSignatureSupported(availableSelectors: string[]): boolean;
76
+ /**
77
+ * Encodes the parameters for the "mintWithSignature" function.
78
+ * @param options - The options for the mintWithSignature function.
79
+ * @returns The encoded ABI parameters.
80
+ * @extension ERC721
81
+ * @example
82
+ * ```ts
83
+ * import { encodeMintWithSignatureParams } from "thirdweb/extensions/erc721";
84
+ * const result = encodeMintWithSignatureParams({
85
+ * payload: ...,
86
+ * signature: ...,
87
+ * });
88
+ * ```
89
+ */
90
+ export declare function encodeMintWithSignatureParams(options: MintWithSignatureParams): `0x${string}`;
91
+ /**
92
+ * Encodes the "mintWithSignature" function into a Hex string with its parameters.
93
+ * @param options - The options for the mintWithSignature function.
94
+ * @returns The encoded hexadecimal string.
95
+ * @extension ERC721
96
+ * @example
97
+ * ```ts
98
+ * import { encodeMintWithSignature } from "thirdweb/extensions/erc721";
99
+ * const result = encodeMintWithSignature({
100
+ * payload: ...,
101
+ * signature: ...,
102
+ * });
103
+ * ```
104
+ */
105
+ export declare function encodeMintWithSignature(options: MintWithSignatureParams): `${typeof FN_SELECTOR}${string}`;
106
+ /**
107
+ * Prepares a transaction to call the "mintWithSignature" function on the contract.
108
+ * @param options - The options for the "mintWithSignature" function.
109
+ * @returns A prepared transaction object.
110
+ * @extension ERC721
111
+ * @example
112
+ * ```ts
113
+ * import { sendTransaction } from "thirdweb";
114
+ * import { mintWithSignature } from "thirdweb/extensions/erc721";
115
+ *
116
+ * const transaction = mintWithSignature({
117
+ * contract,
118
+ * payload: ...,
119
+ * signature: ...,
120
+ * overrides: {
121
+ * ...
122
+ * }
123
+ * });
124
+ *
125
+ * // Send the transaction
126
+ * await sendTransaction({ transaction, account });
127
+ * ```
128
+ */
129
+ export declare function mintWithSignature(options: BaseTransactionOptions<MintWithSignatureParams | {
130
+ asyncParams: () => Promise<MintWithSignatureParams>;
131
+ }>): import("../../../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
132
+ //# sourceMappingURL=mintWithSignature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mintWithSignature.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MA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,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AAgEjD;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKxE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,uBAAuB,iBAGjC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,uBAAuB,GAM9D,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,sBAAsB,CAC3B,uBAAuB,GACvB;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACrD,CACJ,8MAwBF"}
@@ -1,9 +1,9 @@
1
- import type { Address } from "abitype";
1
+ import type { AbiParameterToPrimitiveType, Address } from "abitype";
2
+ import { type Hex } from "viem";
2
3
  import type { ThirdwebContract } from "../../../contract/contract.js";
3
4
  import type { BaseTransactionOptions } from "../../../transaction/types.js";
4
5
  import type { NFTInput } from "../../../utils/nft/parseNft.js";
5
6
  import type { Account } from "../../../wallets/interfaces/wallet.js";
6
- import { type MintWithSignatureParams } from "../__generated__/ISignatureMintERC721/write/mintWithSignature.js";
7
7
  /**
8
8
  * Mints a new ERC721 token with the given minter signature
9
9
  * @param options - The transaction options.
@@ -25,11 +25,18 @@ import { type MintWithSignatureParams } from "../__generated__/ISignatureMintERC
25
25
  * @extension ERC721
26
26
  * @returns A promise that resolves to the transaction result.
27
27
  */
28
- export declare function mintWithSignature(options: BaseTransactionOptions<MintWithSignatureParams>): import("../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
29
- export type GenerateMintSignatureOptions = {
28
+ export declare function mintWithSignature(options: BaseTransactionOptions<{
29
+ payload: PayloadTypeV2;
30
+ signature: Hex;
31
+ } | {
32
+ payload: PayloadType;
33
+ signature: Hex;
34
+ }>): import("../../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
35
+ export type GenerateMintSignatureOptions<T extends "LoyaltyCard" | "TokenERC721" = "TokenERC721"> = {
30
36
  account: Account;
31
37
  contract: ThirdwebContract;
32
38
  mintRequest: GeneratePayloadInput;
39
+ contractType?: T;
33
40
  };
34
41
  /**
35
42
  * Generates the payload and signature for minting an ERC721 token.
@@ -61,20 +68,49 @@ export type GenerateMintSignatureOptions = {
61
68
  * @extension ERC721
62
69
  * @returns A promise that resolves to the payload and signature.
63
70
  */
64
- export declare function generateMintSignature(options: GenerateMintSignatureOptions): Promise<{
65
- payload: {
66
- to: string;
67
- royaltyRecipient: string;
68
- royaltyBps: bigint;
69
- primarySaleRecipient: string;
70
- uri: string;
71
- price: bigint;
72
- currency: string;
73
- validityStartTimestamp: bigint;
74
- validityEndTimestamp: bigint;
75
- uid: `0x${string}`;
76
- };
77
- signature: `0x${string}`;
71
+ export declare function generateMintSignature<T extends "LoyaltyCard" | "TokenERC721" = "TokenERC721">(options: GenerateMintSignatureOptions<T>): Promise<SignPayloadResult<T>>;
72
+ declare function signPayloadV1({ mintRequest, account, contract, uri, currency, uid, price, royaltyRecipient, primarySaleRecipient, startTime, endTime, }: {
73
+ mintRequest: GeneratePayloadInput;
74
+ account: Account;
75
+ contract: ThirdwebContract;
76
+ uri: string;
77
+ currency: Address;
78
+ uid: Hex;
79
+ price: bigint;
80
+ royaltyRecipient: Address;
81
+ primarySaleRecipient: Address;
82
+ startTime: Date;
83
+ endTime: Date;
84
+ }): Promise<{
85
+ payload: PayloadType;
86
+ signature: Hex;
87
+ }>;
88
+ declare function signPayloadV2({ mintRequest, account, contract, uri, currency, uid, price, royaltyRecipient, primarySaleRecipient, startTime, endTime, }: {
89
+ mintRequest: GeneratePayloadInput;
90
+ account: Account;
91
+ contract: ThirdwebContract;
92
+ uri: string;
93
+ currency: Address;
94
+ uid: Hex;
95
+ price: bigint;
96
+ royaltyRecipient: Address;
97
+ primarySaleRecipient: Address;
98
+ startTime: Date;
99
+ endTime: Date;
100
+ }): Promise<{
101
+ payload: PayloadTypeV2;
102
+ signature: Hex;
103
+ }>;
104
+ type SignPayloadResult<T> = T extends "LoyaltyCard" ? Awaited<ReturnType<typeof signPayloadV2>> : Awaited<ReturnType<typeof signPayloadV1>>;
105
+ type PayloadType = AbiParameterToPrimitiveType<{
106
+ type: "tuple";
107
+ name: "payload";
108
+ components: typeof MintRequest721;
109
+ }>;
110
+ type PayloadTypeV2 = AbiParameterToPrimitiveType<{
111
+ type: "tuple";
112
+ name: "payload";
113
+ components: typeof MintRequest721_V2;
78
114
  }>;
79
115
  type GeneratePayloadInput = {
80
116
  to: string;
@@ -89,5 +125,70 @@ type GeneratePayloadInput = {
89
125
  validityEndTimestamp?: Date;
90
126
  uid?: string;
91
127
  };
128
+ declare const MintRequest721: readonly [{
129
+ readonly name: "to";
130
+ readonly type: "address";
131
+ }, {
132
+ readonly name: "royaltyRecipient";
133
+ readonly type: "address";
134
+ }, {
135
+ readonly name: "royaltyBps";
136
+ readonly type: "uint256";
137
+ }, {
138
+ readonly name: "primarySaleRecipient";
139
+ readonly type: "address";
140
+ }, {
141
+ readonly name: "uri";
142
+ readonly type: "string";
143
+ }, {
144
+ readonly name: "price";
145
+ readonly type: "uint256";
146
+ }, {
147
+ readonly name: "currency";
148
+ readonly type: "address";
149
+ }, {
150
+ readonly name: "validityStartTimestamp";
151
+ readonly type: "uint128";
152
+ }, {
153
+ readonly name: "validityEndTimestamp";
154
+ readonly type: "uint128";
155
+ }, {
156
+ readonly name: "uid";
157
+ readonly type: "bytes32";
158
+ }];
159
+ declare const MintRequest721_V2: readonly [{
160
+ readonly name: "to";
161
+ readonly type: "address";
162
+ }, {
163
+ readonly name: "royaltyRecipient";
164
+ readonly type: "address";
165
+ }, {
166
+ readonly name: "royaltyBps";
167
+ readonly type: "uint256";
168
+ }, {
169
+ readonly name: "primarySaleRecipient";
170
+ readonly type: "address";
171
+ }, {
172
+ readonly name: "uri";
173
+ readonly type: "string";
174
+ }, {
175
+ readonly name: "quantity";
176
+ readonly type: "uint256";
177
+ }, {
178
+ readonly name: "pricePerToken";
179
+ readonly type: "uint256";
180
+ }, {
181
+ readonly name: "currency";
182
+ readonly type: "address";
183
+ }, {
184
+ readonly name: "validityStartTimestamp";
185
+ readonly type: "uint128";
186
+ }, {
187
+ readonly name: "validityEndTimestamp";
188
+ readonly type: "uint128";
189
+ }, {
190
+ readonly name: "uid";
191
+ readonly type: "bytes32";
192
+ }];
92
193
  export {};
93
194
  //# sourceMappingURL=sigMint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sigMint.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/erc721/write/sigMint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA+B,OAAO,EAAE,MAAM,SAAS,CAAC;AAMpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAG5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,kEAAkE,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,sBAAsB,CAAC,uBAAuB,CAAC,kMAWzD;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,oBAAoB,CAAC;CACnC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAC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C;IACnB,sBAAsB,CAAC,EAAE,IAAI,CAAC;IAC9B,oBAAoB,CAAC,EAAE,IAAI,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWV,CAAC;AAIX,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYb,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LinkedProfilesScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAkBtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAoB3D;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACtD,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,cAAc,CAAC;CACxB,8CA+DA"}
1
+ {"version":3,"file":"LinkedProfilesScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/ConnectWallet/screens/LinkedProfilesScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAkBtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAsB3D;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACtD,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,cAAc,CAAC;CACxB,8CA+DA"}
@@ -1,2 +1,2 @@
1
- export declare const version = "5.76.0-nightly-e702490f2ff5e2b7d6b28c06731af880583cf8bc-20241210010916";
1
+ export declare const version = "5.76.0";
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,2EAA2E,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thirdweb",
3
- "version": "5.76.0-nightly-e702490f2ff5e2b7d6b28c06731af880583cf8bc-20241210010916",
3
+ "version": "5.76.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -0,0 +1,55 @@
1
+ import { prepareEvent } from "../../../../../event/prepare-event.js";
2
+ import type { AbiParameterToPrimitiveType } from "abitype";
3
+
4
+ /**
5
+ * Represents the filters for the "TokensMintedWithSignature" event.
6
+ */
7
+ export type TokensMintedWithSignatureEventFilters = Partial<{
8
+ signer: AbiParameterToPrimitiveType<{
9
+ type: "address";
10
+ name: "signer";
11
+ indexed: true;
12
+ }>;
13
+ mintedTo: AbiParameterToPrimitiveType<{
14
+ type: "address";
15
+ name: "mintedTo";
16
+ indexed: true;
17
+ }>;
18
+ tokenIdMinted: AbiParameterToPrimitiveType<{
19
+ type: "uint256";
20
+ name: "tokenIdMinted";
21
+ indexed: true;
22
+ }>;
23
+ }>;
24
+
25
+ /**
26
+ * Creates an event object for the TokensMintedWithSignature event.
27
+ * @param filters - Optional filters to apply to the event.
28
+ * @returns The prepared event object.
29
+ * @extension ERC721
30
+ * @example
31
+ * ```ts
32
+ * import { getContractEvents } from "thirdweb";
33
+ * import { tokensMintedWithSignatureEvent } from "thirdweb/extensions/erc721";
34
+ *
35
+ * const events = await getContractEvents({
36
+ * contract,
37
+ * events: [
38
+ * tokensMintedWithSignatureEvent({
39
+ * signer: ...,
40
+ * mintedTo: ...,
41
+ * tokenIdMinted: ...,
42
+ * })
43
+ * ],
44
+ * });
45
+ * ```
46
+ */
47
+ export function tokensMintedWithSignatureEvent(
48
+ filters: TokensMintedWithSignatureEventFilters = {},
49
+ ) {
50
+ return prepareEvent({
51
+ signature:
52
+ "event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, uint256 indexed tokenIdMinted, (address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, string uri, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) mintRequest)",
53
+ filters,
54
+ });
55
+ }