@zoralabs/protocol-sdk 0.6.0 → 0.7.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 (59) hide show
  1. package/.turbo/turbo-build.log +6 -6
  2. package/CHANGELOG.md +6 -0
  3. package/dist/constants.d.ts +0 -1
  4. package/dist/constants.d.ts.map +1 -1
  5. package/dist/index.cjs +845 -407
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.js +829 -391
  8. package/dist/index.js.map +1 -1
  9. package/dist/mint/mint-client.d.ts +28 -4071
  10. package/dist/mint/mint-client.d.ts.map +1 -1
  11. package/dist/mint/mint-queries.d.ts +38 -0
  12. package/dist/mint/mint-queries.d.ts.map +1 -0
  13. package/dist/mint/mint-transactions.d.ts +20 -0
  14. package/dist/mint/mint-transactions.d.ts.map +1 -0
  15. package/dist/mint/subgraph-mint-getter.d.ts +14 -7
  16. package/dist/mint/subgraph-mint-getter.d.ts.map +1 -1
  17. package/dist/mint/subgraph-queries.d.ts +55 -0
  18. package/dist/mint/subgraph-queries.d.ts.map +1 -0
  19. package/dist/mint/types.d.ts +117 -19
  20. package/dist/mint/types.d.ts.map +1 -1
  21. package/dist/mint/utils.d.ts +2 -0
  22. package/dist/mint/utils.d.ts.map +1 -0
  23. package/dist/mints/mints-contracts.d.ts +3 -4494
  24. package/dist/mints/mints-contracts.d.ts.map +1 -1
  25. package/dist/premint/conversions.d.ts +12 -15
  26. package/dist/premint/conversions.d.ts.map +1 -1
  27. package/dist/premint/premint-api-client.d.ts +14 -11
  28. package/dist/premint/premint-api-client.d.ts.map +1 -1
  29. package/dist/premint/premint-client.d.ts +15 -5
  30. package/dist/premint/premint-client.d.ts.map +1 -1
  31. package/dist/premint/preminter.d.ts +1 -1
  32. package/dist/premint/preminter.d.ts.map +1 -1
  33. package/dist/sdk.d.ts +4 -2
  34. package/dist/sdk.d.ts.map +1 -1
  35. package/dist/types.d.ts +3 -0
  36. package/dist/types.d.ts.map +1 -1
  37. package/dist/utils.d.ts +10 -2
  38. package/dist/utils.d.ts.map +1 -1
  39. package/package.json +1 -1
  40. package/src/constants.ts +0 -36
  41. package/src/create/1155-create-helper.test.ts +9 -7
  42. package/src/mint/mint-client.test.ts +96 -47
  43. package/src/mint/mint-client.ts +75 -343
  44. package/src/mint/mint-queries.ts +320 -0
  45. package/src/mint/mint-transactions.ts +253 -0
  46. package/src/mint/subgraph-mint-getter.ts +216 -123
  47. package/src/mint/subgraph-queries.ts +170 -0
  48. package/src/mint/types.ts +140 -23
  49. package/src/mint/utils.ts +14 -0
  50. package/src/premint/conversions.ts +26 -2
  51. package/src/premint/premint-api-client.ts +48 -16
  52. package/src/premint/premint-client.test.ts +29 -23
  53. package/src/premint/premint-client.ts +64 -36
  54. package/src/premint/preminter.ts +2 -3
  55. package/src/sdk.ts +7 -4
  56. package/src/types.ts +18 -0
  57. package/src/utils.ts +29 -28
  58. package/test-integration/setup-test-contracts.ts +96 -0
  59. package/test-integration/premint-client.test.ts +0 -148
@@ -1,8 +1,7 @@
1
1
  import { Address, Account, SimulateContractParameters } from "viem";
2
- import { GenericTokenIdTypes } from "src/types";
3
- import { PublicClient } from "src/utils";
4
- import { IMintGetter, SalesConfigAndTokenInfo } from "./types";
5
- import { MakeMintParametersArguments, MakeMintParametersArgumentsBase, Make1155MintArguments, Make721MintArguments, GetMintCostsParameters } from "./types";
2
+ import { IPublicClient } from "src/types";
3
+ import { GetMintParameters, IOnchainMintGetter, MintCosts, PrepareMintReturn, SaleType } from "./types";
4
+ import { MakeMintParametersArguments, Make1155MintArguments, Make721MintArguments, GetMintCostsParameters } from "./types";
6
5
  import { IPremintGetter } from "src/premint/premint-api-client";
7
6
  declare class MintError extends Error {
8
7
  }
@@ -13,25 +12,41 @@ export declare const Errors: {
13
12
  MintInactiveError: typeof MintInactiveError;
14
13
  };
15
14
  export declare class MintClient {
16
- private readonly chainId;
17
15
  private readonly publicClient;
18
16
  private readonly mintGetter;
19
17
  private readonly premintGetter;
20
- constructor({ chainId, publicClient, premintGetter, mintGetter, }: {
21
- chainId: number;
22
- publicClient: PublicClient;
18
+ constructor({ publicClient, premintGetter, mintGetter, }: {
19
+ publicClient: IPublicClient;
23
20
  premintGetter: IPremintGetter;
24
- mintGetter: IMintGetter;
21
+ mintGetter: IOnchainMintGetter;
25
22
  });
26
23
  /**
27
24
  * Returns the parameters needed to prepare a transaction mint a token.
28
25
  * Works with premint, onchain 1155, and onchain 721.
29
26
  *
30
27
  * @param parameters - Parameters for collecting the token {@link MakeMintParametersArguments}
31
- * @returns Parameters for simulating/executing the mint transaction
28
+ * @returns Parameters for simulating/executing the mint transaction, any necessary erc20 approval, and costs to mint
32
29
  */
33
- mint(parameters: MakeMintParametersArguments): Promise<{
34
- parameters: SimulateContractParameters<any, any, any, any, any, `0x${string}` | Account>;
30
+ mint(parameters: MakeMintParametersArguments): Promise<PrepareMintReturn>;
31
+ /**
32
+ * Gets an 1155, 721, or premint, and returns both information about it, and a function
33
+ * that can be used to build a mint transaction for a quantity of items to mint.
34
+ * @param parameters - Token to get {@link GetMintParameters}
35
+ * @Returns Information about the mint and a function to build a mint transaction {@link MintableReturn}
36
+ */
37
+ get(parameters: GetMintParameters): Promise<import("./types").MintableReturn>;
38
+ /**
39
+ * Gets onchain and premint tokens of an 1155 contract. For each token returns both information about it, and a function
40
+ * that can be used to build a mint transaction for a quantity of items to mint.
41
+ * @param parameters - Contract address to get tokens for {@link GetMintsOfContractParameters}
42
+ * @Returns Array of tokens, each containing information about the token and a function to build a mint transaction.
43
+ */
44
+ getOfContract(params: {
45
+ tokenContract: Address;
46
+ preferredSaleType?: SaleType;
47
+ }): Promise<{
48
+ contract?: import("./types").ContractInfo | undefined;
49
+ tokens: import("./types").MintableReturn[];
35
50
  }>;
36
51
  /**
37
52
  * Gets the costs to mint the quantity of tokens specified for a mint.
@@ -40,4067 +55,9 @@ export declare class MintClient {
40
55
  */
41
56
  getMintCosts(parameters: GetMintCostsParameters): Promise<MintCosts>;
42
57
  }
43
- export declare function requestErc20ApprovalForMint({ account, tokenAddress, quantityErc20, erc20MinterAddress, }: {
44
- account: Account | Address;
45
- tokenAddress: Address;
46
- quantityErc20: bigint;
47
- erc20MinterAddress: Address;
48
- }): SimulateContractParameters<readonly [{
49
- readonly type: "event";
50
- readonly name: "Approval";
51
- readonly inputs: readonly [{
52
- readonly indexed: true;
53
- readonly name: "owner";
54
- readonly type: "address";
55
- }, {
56
- readonly indexed: true;
57
- readonly name: "spender";
58
- readonly type: "address";
59
- }, {
60
- readonly indexed: false;
61
- readonly name: "value";
62
- readonly type: "uint256";
63
- }];
64
- }, {
65
- readonly type: "event";
66
- readonly name: "Transfer";
67
- readonly inputs: readonly [{
68
- readonly indexed: true;
69
- readonly name: "from";
70
- readonly type: "address";
71
- }, {
72
- readonly indexed: true;
73
- readonly name: "to";
74
- readonly type: "address";
75
- }, {
76
- readonly indexed: false;
77
- readonly name: "value";
78
- readonly type: "uint256";
79
- }];
80
- }, {
81
- readonly type: "function";
82
- readonly name: "allowance";
83
- readonly stateMutability: "view";
84
- readonly inputs: readonly [{
85
- readonly name: "owner";
86
- readonly type: "address";
87
- }, {
88
- readonly name: "spender";
89
- readonly type: "address";
90
- }];
91
- readonly outputs: readonly [{
92
- readonly type: "uint256";
93
- }];
94
- }, {
95
- readonly type: "function";
96
- readonly name: "approve";
97
- readonly stateMutability: "nonpayable";
98
- readonly inputs: readonly [{
99
- readonly name: "spender";
100
- readonly type: "address";
101
- }, {
102
- readonly name: "amount";
103
- readonly type: "uint256";
104
- }];
105
- readonly outputs: readonly [{
106
- readonly type: "bool";
107
- }];
108
- }, {
109
- readonly type: "function";
110
- readonly name: "balanceOf";
111
- readonly stateMutability: "view";
112
- readonly inputs: readonly [{
113
- readonly name: "account";
114
- readonly type: "address";
115
- }];
116
- readonly outputs: readonly [{
117
- readonly type: "uint256";
118
- }];
119
- }, {
120
- readonly type: "function";
121
- readonly name: "decimals";
122
- readonly stateMutability: "view";
123
- readonly inputs: readonly [];
124
- readonly outputs: readonly [{
125
- readonly type: "uint8";
126
- }];
127
- }, {
128
- readonly type: "function";
129
- readonly name: "name";
130
- readonly stateMutability: "view";
131
- readonly inputs: readonly [];
132
- readonly outputs: readonly [{
133
- readonly type: "string";
134
- }];
135
- }, {
136
- readonly type: "function";
137
- readonly name: "symbol";
138
- readonly stateMutability: "view";
139
- readonly inputs: readonly [];
140
- readonly outputs: readonly [{
141
- readonly type: "string";
142
- }];
143
- }, {
144
- readonly type: "function";
145
- readonly name: "totalSupply";
146
- readonly stateMutability: "view";
147
- readonly inputs: readonly [];
148
- readonly outputs: readonly [{
149
- readonly type: "uint256";
150
- }];
151
- }, {
152
- readonly type: "function";
153
- readonly name: "transfer";
154
- readonly stateMutability: "nonpayable";
155
- readonly inputs: readonly [{
156
- readonly name: "recipient";
157
- readonly type: "address";
158
- }, {
159
- readonly name: "amount";
160
- readonly type: "uint256";
161
- }];
162
- readonly outputs: readonly [{
163
- readonly type: "bool";
164
- }];
165
- }, {
166
- readonly type: "function";
167
- readonly name: "transferFrom";
168
- readonly stateMutability: "nonpayable";
169
- readonly inputs: readonly [{
170
- readonly name: "sender";
171
- readonly type: "address";
172
- }, {
173
- readonly name: "recipient";
174
- readonly type: "address";
175
- }, {
176
- readonly name: "amount";
177
- readonly type: "uint256";
178
- }];
179
- readonly outputs: readonly [{
180
- readonly type: "bool";
181
- }];
182
- }], "approve", [`0x${string}`, bigint], import("viem").Chain, import("viem").Chain | undefined, `0x${string}` | {
183
- address: `0x${string}`;
184
- type: "json-rpc";
185
- experimental_signAuthMessage?: undefined;
186
- signMessage?: undefined;
187
- signTransaction?: undefined;
188
- signTypedData?: undefined;
189
- publicKey?: undefined;
190
- source?: undefined;
191
- } | {
192
- address: `0x${string}`;
193
- experimental_signAuthMessage?: ((parameters: import("viem/_types/experimental/eip3074/utils/toAuthMessage").ToAuthMessageParameters) => Promise<`0x${string}`>) | undefined;
194
- signMessage: ({ message }: {
195
- message: import("viem").SignableMessage;
196
- }) => Promise<`0x${string}`>;
197
- signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, args?: {
198
- serializer?: serializer | undefined;
199
- } | undefined) => Promise<import("viem/_types/types/utils").IsNarrowable<import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>>, `0x${string}`> extends true ? import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>> : `0x${string}`>;
200
- signTypedData: <const typedData extends Record<string, unknown> | {
201
- [x: string]: readonly import("viem").TypedDataParameter[];
202
- [x: `string[${string}]`]: undefined;
203
- [x: `function[${string}]`]: undefined;
204
- [x: `address[${string}]`]: undefined;
205
- [x: `bool[${string}]`]: undefined;
206
- [x: `bytes[${string}]`]: undefined;
207
- [x: `bytes21[${string}]`]: undefined;
208
- [x: `bytes1[${string}]`]: undefined;
209
- [x: `bytes2[${string}]`]: undefined;
210
- [x: `bytes3[${string}]`]: undefined;
211
- [x: `bytes4[${string}]`]: undefined;
212
- [x: `bytes5[${string}]`]: undefined;
213
- [x: `bytes6[${string}]`]: undefined;
214
- [x: `bytes7[${string}]`]: undefined;
215
- [x: `bytes8[${string}]`]: undefined;
216
- [x: `bytes9[${string}]`]: undefined;
217
- [x: `bytes10[${string}]`]: undefined;
218
- [x: `bytes11[${string}]`]: undefined;
219
- [x: `bytes12[${string}]`]: undefined;
220
- [x: `bytes13[${string}]`]: undefined;
221
- [x: `bytes14[${string}]`]: undefined;
222
- [x: `bytes15[${string}]`]: undefined;
223
- [x: `bytes16[${string}]`]: undefined;
224
- [x: `bytes17[${string}]`]: undefined;
225
- [x: `bytes18[${string}]`]: undefined;
226
- [x: `bytes19[${string}]`]: undefined;
227
- [x: `bytes20[${string}]`]: undefined;
228
- [x: `bytes22[${string}]`]: undefined;
229
- [x: `bytes23[${string}]`]: undefined;
230
- [x: `bytes24[${string}]`]: undefined;
231
- [x: `bytes25[${string}]`]: undefined;
232
- [x: `bytes26[${string}]`]: undefined;
233
- [x: `bytes27[${string}]`]: undefined;
234
- [x: `bytes28[${string}]`]: undefined;
235
- [x: `bytes29[${string}]`]: undefined;
236
- [x: `bytes30[${string}]`]: undefined;
237
- [x: `bytes31[${string}]`]: undefined;
238
- [x: `bytes32[${string}]`]: undefined;
239
- [x: `int[${string}]`]: undefined;
240
- [x: `int8[${string}]`]: undefined;
241
- [x: `int16[${string}]`]: undefined;
242
- [x: `int24[${string}]`]: undefined;
243
- [x: `int32[${string}]`]: undefined;
244
- [x: `int40[${string}]`]: undefined;
245
- [x: `int48[${string}]`]: undefined;
246
- [x: `int56[${string}]`]: undefined;
247
- [x: `int64[${string}]`]: undefined;
248
- [x: `int72[${string}]`]: undefined;
249
- [x: `int80[${string}]`]: undefined;
250
- [x: `int88[${string}]`]: undefined;
251
- [x: `int96[${string}]`]: undefined;
252
- [x: `int104[${string}]`]: undefined;
253
- [x: `int112[${string}]`]: undefined;
254
- [x: `int120[${string}]`]: undefined;
255
- [x: `int128[${string}]`]: undefined;
256
- [x: `int136[${string}]`]: undefined;
257
- [x: `int144[${string}]`]: undefined;
258
- [x: `int152[${string}]`]: undefined;
259
- [x: `int160[${string}]`]: undefined;
260
- [x: `int168[${string}]`]: undefined;
261
- [x: `int176[${string}]`]: undefined;
262
- [x: `int184[${string}]`]: undefined;
263
- [x: `int192[${string}]`]: undefined;
264
- [x: `int200[${string}]`]: undefined;
265
- [x: `int208[${string}]`]: undefined;
266
- [x: `int216[${string}]`]: undefined;
267
- [x: `int224[${string}]`]: undefined;
268
- [x: `int232[${string}]`]: undefined;
269
- [x: `int240[${string}]`]: undefined;
270
- [x: `int248[${string}]`]: undefined;
271
- [x: `int256[${string}]`]: undefined;
272
- [x: `uint[${string}]`]: undefined;
273
- [x: `uint8[${string}]`]: undefined;
274
- [x: `uint16[${string}]`]: undefined;
275
- [x: `uint24[${string}]`]: undefined;
276
- [x: `uint32[${string}]`]: undefined;
277
- [x: `uint40[${string}]`]: undefined;
278
- [x: `uint48[${string}]`]: undefined;
279
- [x: `uint56[${string}]`]: undefined;
280
- [x: `uint64[${string}]`]: undefined;
281
- [x: `uint72[${string}]`]: undefined;
282
- [x: `uint80[${string}]`]: undefined;
283
- [x: `uint88[${string}]`]: undefined;
284
- [x: `uint96[${string}]`]: undefined;
285
- [x: `uint104[${string}]`]: undefined;
286
- [x: `uint112[${string}]`]: undefined;
287
- [x: `uint120[${string}]`]: undefined;
288
- [x: `uint128[${string}]`]: undefined;
289
- [x: `uint136[${string}]`]: undefined;
290
- [x: `uint144[${string}]`]: undefined;
291
- [x: `uint152[${string}]`]: undefined;
292
- [x: `uint160[${string}]`]: undefined;
293
- [x: `uint168[${string}]`]: undefined;
294
- [x: `uint176[${string}]`]: undefined;
295
- [x: `uint184[${string}]`]: undefined;
296
- [x: `uint192[${string}]`]: undefined;
297
- [x: `uint200[${string}]`]: undefined;
298
- [x: `uint208[${string}]`]: undefined;
299
- [x: `uint216[${string}]`]: undefined;
300
- [x: `uint224[${string}]`]: undefined;
301
- [x: `uint232[${string}]`]: undefined;
302
- [x: `uint240[${string}]`]: undefined;
303
- [x: `uint248[${string}]`]: undefined;
304
- [x: `uint256[${string}]`]: undefined;
305
- string?: undefined;
306
- address?: undefined;
307
- bool?: undefined;
308
- bytes?: undefined;
309
- bytes21?: undefined;
310
- bytes1?: undefined;
311
- bytes2?: undefined;
312
- bytes3?: undefined;
313
- bytes4?: undefined;
314
- bytes5?: undefined;
315
- bytes6?: undefined;
316
- bytes7?: undefined;
317
- bytes8?: undefined;
318
- bytes9?: undefined;
319
- bytes10?: undefined;
320
- bytes11?: undefined;
321
- bytes12?: undefined;
322
- bytes13?: undefined;
323
- bytes14?: undefined;
324
- bytes15?: undefined;
325
- bytes16?: undefined;
326
- bytes17?: undefined;
327
- bytes18?: undefined;
328
- bytes19?: undefined;
329
- bytes20?: undefined;
330
- bytes22?: undefined;
331
- bytes23?: undefined;
332
- bytes24?: undefined;
333
- bytes25?: undefined;
334
- bytes26?: undefined;
335
- bytes27?: undefined;
336
- bytes28?: undefined;
337
- bytes29?: undefined;
338
- bytes30?: undefined;
339
- bytes31?: undefined;
340
- bytes32?: undefined;
341
- int8?: undefined;
342
- int16?: undefined;
343
- int24?: undefined;
344
- int32?: undefined;
345
- int40?: undefined;
346
- int48?: undefined;
347
- int56?: undefined;
348
- int64?: undefined;
349
- int72?: undefined;
350
- int80?: undefined;
351
- int88?: undefined;
352
- int96?: undefined;
353
- int104?: undefined;
354
- int112?: undefined;
355
- int120?: undefined;
356
- int128?: undefined;
357
- int136?: undefined;
358
- int144?: undefined;
359
- int152?: undefined;
360
- int160?: undefined;
361
- int168?: undefined;
362
- int176?: undefined;
363
- int184?: undefined;
364
- int192?: undefined;
365
- int200?: undefined;
366
- int208?: undefined;
367
- int216?: undefined;
368
- int224?: undefined;
369
- int232?: undefined;
370
- int240?: undefined;
371
- int248?: undefined;
372
- int256?: undefined;
373
- uint8?: undefined;
374
- uint16?: undefined;
375
- uint24?: undefined;
376
- uint32?: undefined;
377
- uint40?: undefined;
378
- uint48?: undefined;
379
- uint56?: undefined;
380
- uint64?: undefined;
381
- uint72?: undefined;
382
- uint80?: undefined;
383
- uint88?: undefined;
384
- uint96?: undefined;
385
- uint104?: undefined;
386
- uint112?: undefined;
387
- uint120?: undefined;
388
- uint128?: undefined;
389
- uint136?: undefined;
390
- uint144?: undefined;
391
- uint152?: undefined;
392
- uint160?: undefined;
393
- uint168?: undefined;
394
- uint176?: undefined;
395
- uint184?: undefined;
396
- uint192?: undefined;
397
- uint200?: undefined;
398
- uint208?: undefined;
399
- uint216?: undefined;
400
- uint224?: undefined;
401
- uint232?: undefined;
402
- uint240?: undefined;
403
- uint248?: undefined;
404
- uint256?: undefined;
405
- }, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(typedDataDefinition: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
406
- publicKey: `0x${string}`;
407
- source: string;
408
- type: "local";
409
- }>;
410
- export declare function getNecessaryErc20Approval({ chainId, account, tokenAddress, quantityErc20, publicClient, }: {
411
- chainId: number;
412
- account: Account | Address;
413
- tokenAddress: Address;
414
- quantityErc20: bigint;
415
- publicClient: PublicClient;
416
- }): Promise<SimulateContractParameters<readonly [{
417
- readonly type: "event";
418
- readonly name: "Approval";
419
- readonly inputs: readonly [{
420
- readonly indexed: true;
421
- readonly name: "owner";
422
- readonly type: "address";
423
- }, {
424
- readonly indexed: true;
425
- readonly name: "spender";
426
- readonly type: "address";
427
- }, {
428
- readonly indexed: false;
429
- readonly name: "value";
430
- readonly type: "uint256";
431
- }];
432
- }, {
433
- readonly type: "event";
434
- readonly name: "Transfer";
435
- readonly inputs: readonly [{
436
- readonly indexed: true;
437
- readonly name: "from";
438
- readonly type: "address";
439
- }, {
440
- readonly indexed: true;
441
- readonly name: "to";
442
- readonly type: "address";
443
- }, {
444
- readonly indexed: false;
445
- readonly name: "value";
446
- readonly type: "uint256";
447
- }];
448
- }, {
449
- readonly type: "function";
450
- readonly name: "allowance";
451
- readonly stateMutability: "view";
452
- readonly inputs: readonly [{
453
- readonly name: "owner";
454
- readonly type: "address";
455
- }, {
456
- readonly name: "spender";
457
- readonly type: "address";
458
- }];
459
- readonly outputs: readonly [{
460
- readonly type: "uint256";
461
- }];
462
- }, {
463
- readonly type: "function";
464
- readonly name: "approve";
465
- readonly stateMutability: "nonpayable";
466
- readonly inputs: readonly [{
467
- readonly name: "spender";
468
- readonly type: "address";
469
- }, {
470
- readonly name: "amount";
471
- readonly type: "uint256";
472
- }];
473
- readonly outputs: readonly [{
474
- readonly type: "bool";
475
- }];
476
- }, {
477
- readonly type: "function";
478
- readonly name: "balanceOf";
479
- readonly stateMutability: "view";
480
- readonly inputs: readonly [{
481
- readonly name: "account";
482
- readonly type: "address";
483
- }];
484
- readonly outputs: readonly [{
485
- readonly type: "uint256";
486
- }];
487
- }, {
488
- readonly type: "function";
489
- readonly name: "decimals";
490
- readonly stateMutability: "view";
491
- readonly inputs: readonly [];
492
- readonly outputs: readonly [{
493
- readonly type: "uint8";
494
- }];
495
- }, {
496
- readonly type: "function";
497
- readonly name: "name";
498
- readonly stateMutability: "view";
499
- readonly inputs: readonly [];
500
- readonly outputs: readonly [{
501
- readonly type: "string";
502
- }];
503
- }, {
504
- readonly type: "function";
505
- readonly name: "symbol";
506
- readonly stateMutability: "view";
507
- readonly inputs: readonly [];
508
- readonly outputs: readonly [{
509
- readonly type: "string";
510
- }];
511
- }, {
512
- readonly type: "function";
513
- readonly name: "totalSupply";
514
- readonly stateMutability: "view";
515
- readonly inputs: readonly [];
516
- readonly outputs: readonly [{
517
- readonly type: "uint256";
518
- }];
519
- }, {
520
- readonly type: "function";
521
- readonly name: "transfer";
522
- readonly stateMutability: "nonpayable";
523
- readonly inputs: readonly [{
524
- readonly name: "recipient";
525
- readonly type: "address";
526
- }, {
527
- readonly name: "amount";
528
- readonly type: "uint256";
529
- }];
530
- readonly outputs: readonly [{
531
- readonly type: "bool";
532
- }];
533
- }, {
534
- readonly type: "function";
535
- readonly name: "transferFrom";
536
- readonly stateMutability: "nonpayable";
537
- readonly inputs: readonly [{
538
- readonly name: "sender";
539
- readonly type: "address";
540
- }, {
541
- readonly name: "recipient";
542
- readonly type: "address";
543
- }, {
544
- readonly name: "amount";
545
- readonly type: "uint256";
546
- }];
547
- readonly outputs: readonly [{
548
- readonly type: "bool";
549
- }];
550
- }], "approve", [`0x${string}`, bigint], import("viem").Chain, import("viem").Chain | undefined, `0x${string}` | {
551
- address: `0x${string}`;
552
- type: "json-rpc";
553
- experimental_signAuthMessage?: undefined;
554
- signMessage?: undefined;
555
- signTransaction?: undefined;
556
- signTypedData?: undefined;
557
- publicKey?: undefined;
558
- source?: undefined;
559
- } | {
560
- address: `0x${string}`;
561
- experimental_signAuthMessage?: ((parameters: import("viem/_types/experimental/eip3074/utils/toAuthMessage").ToAuthMessageParameters) => Promise<`0x${string}`>) | undefined;
562
- signMessage: ({ message }: {
563
- message: import("viem").SignableMessage;
564
- }) => Promise<`0x${string}`>;
565
- signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, args?: {
566
- serializer?: serializer | undefined;
567
- } | undefined) => Promise<import("viem/_types/types/utils").IsNarrowable<import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>>, `0x${string}`> extends true ? import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>> : `0x${string}`>;
568
- signTypedData: <const typedData extends Record<string, unknown> | {
569
- [x: string]: readonly import("viem").TypedDataParameter[];
570
- [x: `string[${string}]`]: undefined;
571
- [x: `function[${string}]`]: undefined;
572
- [x: `address[${string}]`]: undefined;
573
- [x: `bool[${string}]`]: undefined;
574
- [x: `bytes[${string}]`]: undefined;
575
- [x: `bytes21[${string}]`]: undefined;
576
- [x: `bytes1[${string}]`]: undefined;
577
- [x: `bytes2[${string}]`]: undefined;
578
- [x: `bytes3[${string}]`]: undefined;
579
- [x: `bytes4[${string}]`]: undefined;
580
- [x: `bytes5[${string}]`]: undefined;
581
- [x: `bytes6[${string}]`]: undefined;
582
- [x: `bytes7[${string}]`]: undefined;
583
- [x: `bytes8[${string}]`]: undefined;
584
- [x: `bytes9[${string}]`]: undefined;
585
- [x: `bytes10[${string}]`]: undefined;
586
- [x: `bytes11[${string}]`]: undefined;
587
- [x: `bytes12[${string}]`]: undefined;
588
- [x: `bytes13[${string}]`]: undefined;
589
- [x: `bytes14[${string}]`]: undefined;
590
- [x: `bytes15[${string}]`]: undefined;
591
- [x: `bytes16[${string}]`]: undefined;
592
- [x: `bytes17[${string}]`]: undefined;
593
- [x: `bytes18[${string}]`]: undefined;
594
- [x: `bytes19[${string}]`]: undefined;
595
- [x: `bytes20[${string}]`]: undefined;
596
- [x: `bytes22[${string}]`]: undefined;
597
- [x: `bytes23[${string}]`]: undefined;
598
- [x: `bytes24[${string}]`]: undefined;
599
- [x: `bytes25[${string}]`]: undefined;
600
- [x: `bytes26[${string}]`]: undefined;
601
- [x: `bytes27[${string}]`]: undefined;
602
- [x: `bytes28[${string}]`]: undefined;
603
- [x: `bytes29[${string}]`]: undefined;
604
- [x: `bytes30[${string}]`]: undefined;
605
- [x: `bytes31[${string}]`]: undefined;
606
- [x: `bytes32[${string}]`]: undefined;
607
- [x: `int[${string}]`]: undefined;
608
- [x: `int8[${string}]`]: undefined;
609
- [x: `int16[${string}]`]: undefined;
610
- [x: `int24[${string}]`]: undefined;
611
- [x: `int32[${string}]`]: undefined;
612
- [x: `int40[${string}]`]: undefined;
613
- [x: `int48[${string}]`]: undefined;
614
- [x: `int56[${string}]`]: undefined;
615
- [x: `int64[${string}]`]: undefined;
616
- [x: `int72[${string}]`]: undefined;
617
- [x: `int80[${string}]`]: undefined;
618
- [x: `int88[${string}]`]: undefined;
619
- [x: `int96[${string}]`]: undefined;
620
- [x: `int104[${string}]`]: undefined;
621
- [x: `int112[${string}]`]: undefined;
622
- [x: `int120[${string}]`]: undefined;
623
- [x: `int128[${string}]`]: undefined;
624
- [x: `int136[${string}]`]: undefined;
625
- [x: `int144[${string}]`]: undefined;
626
- [x: `int152[${string}]`]: undefined;
627
- [x: `int160[${string}]`]: undefined;
628
- [x: `int168[${string}]`]: undefined;
629
- [x: `int176[${string}]`]: undefined;
630
- [x: `int184[${string}]`]: undefined;
631
- [x: `int192[${string}]`]: undefined;
632
- [x: `int200[${string}]`]: undefined;
633
- [x: `int208[${string}]`]: undefined;
634
- [x: `int216[${string}]`]: undefined;
635
- [x: `int224[${string}]`]: undefined;
636
- [x: `int232[${string}]`]: undefined;
637
- [x: `int240[${string}]`]: undefined;
638
- [x: `int248[${string}]`]: undefined;
639
- [x: `int256[${string}]`]: undefined;
640
- [x: `uint[${string}]`]: undefined;
641
- [x: `uint8[${string}]`]: undefined;
642
- [x: `uint16[${string}]`]: undefined;
643
- [x: `uint24[${string}]`]: undefined;
644
- [x: `uint32[${string}]`]: undefined;
645
- [x: `uint40[${string}]`]: undefined;
646
- [x: `uint48[${string}]`]: undefined;
647
- [x: `uint56[${string}]`]: undefined;
648
- [x: `uint64[${string}]`]: undefined;
649
- [x: `uint72[${string}]`]: undefined;
650
- [x: `uint80[${string}]`]: undefined;
651
- [x: `uint88[${string}]`]: undefined;
652
- [x: `uint96[${string}]`]: undefined;
653
- [x: `uint104[${string}]`]: undefined;
654
- [x: `uint112[${string}]`]: undefined;
655
- [x: `uint120[${string}]`]: undefined;
656
- [x: `uint128[${string}]`]: undefined;
657
- [x: `uint136[${string}]`]: undefined;
658
- [x: `uint144[${string}]`]: undefined;
659
- [x: `uint152[${string}]`]: undefined;
660
- [x: `uint160[${string}]`]: undefined;
661
- [x: `uint168[${string}]`]: undefined;
662
- [x: `uint176[${string}]`]: undefined;
663
- [x: `uint184[${string}]`]: undefined;
664
- [x: `uint192[${string}]`]: undefined;
665
- [x: `uint200[${string}]`]: undefined;
666
- [x: `uint208[${string}]`]: undefined;
667
- [x: `uint216[${string}]`]: undefined;
668
- [x: `uint224[${string}]`]: undefined;
669
- [x: `uint232[${string}]`]: undefined;
670
- [x: `uint240[${string}]`]: undefined;
671
- [x: `uint248[${string}]`]: undefined;
672
- [x: `uint256[${string}]`]: undefined;
673
- string?: undefined;
674
- address?: undefined;
675
- bool?: undefined;
676
- bytes?: undefined;
677
- bytes21?: undefined;
678
- bytes1?: undefined;
679
- bytes2?: undefined;
680
- bytes3?: undefined;
681
- bytes4?: undefined;
682
- bytes5?: undefined;
683
- bytes6?: undefined;
684
- bytes7?: undefined;
685
- bytes8?: undefined;
686
- bytes9?: undefined;
687
- bytes10?: undefined;
688
- bytes11?: undefined;
689
- bytes12?: undefined;
690
- bytes13?: undefined;
691
- bytes14?: undefined;
692
- bytes15?: undefined;
693
- bytes16?: undefined;
694
- bytes17?: undefined;
695
- bytes18?: undefined;
696
- bytes19?: undefined;
697
- bytes20?: undefined;
698
- bytes22?: undefined;
699
- bytes23?: undefined;
700
- bytes24?: undefined;
701
- bytes25?: undefined;
702
- bytes26?: undefined;
703
- bytes27?: undefined;
704
- bytes28?: undefined;
705
- bytes29?: undefined;
706
- bytes30?: undefined;
707
- bytes31?: undefined;
708
- bytes32?: undefined;
709
- int8?: undefined;
710
- int16?: undefined;
711
- int24?: undefined;
712
- int32?: undefined;
713
- int40?: undefined;
714
- int48?: undefined;
715
- int56?: undefined;
716
- int64?: undefined;
717
- int72?: undefined;
718
- int80?: undefined;
719
- int88?: undefined;
720
- int96?: undefined;
721
- int104?: undefined;
722
- int112?: undefined;
723
- int120?: undefined;
724
- int128?: undefined;
725
- int136?: undefined;
726
- int144?: undefined;
727
- int152?: undefined;
728
- int160?: undefined;
729
- int168?: undefined;
730
- int176?: undefined;
731
- int184?: undefined;
732
- int192?: undefined;
733
- int200?: undefined;
734
- int208?: undefined;
735
- int216?: undefined;
736
- int224?: undefined;
737
- int232?: undefined;
738
- int240?: undefined;
739
- int248?: undefined;
740
- int256?: undefined;
741
- uint8?: undefined;
742
- uint16?: undefined;
743
- uint24?: undefined;
744
- uint32?: undefined;
745
- uint40?: undefined;
746
- uint48?: undefined;
747
- uint56?: undefined;
748
- uint64?: undefined;
749
- uint72?: undefined;
750
- uint80?: undefined;
751
- uint88?: undefined;
752
- uint96?: undefined;
753
- uint104?: undefined;
754
- uint112?: undefined;
755
- uint120?: undefined;
756
- uint128?: undefined;
757
- uint136?: undefined;
758
- uint144?: undefined;
759
- uint152?: undefined;
760
- uint160?: undefined;
761
- uint168?: undefined;
762
- uint176?: undefined;
763
- uint184?: undefined;
764
- uint192?: undefined;
765
- uint200?: undefined;
766
- uint208?: undefined;
767
- uint216?: undefined;
768
- uint224?: undefined;
769
- uint232?: undefined;
770
- uint240?: undefined;
771
- uint248?: undefined;
772
- uint256?: undefined;
773
- }, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(typedDataDefinition: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
774
- publicKey: `0x${string}`;
775
- source: string;
776
- type: "local";
777
- }> | undefined>;
778
58
  export declare function collectOnchain({ chainId, mintGetter, ...parameters }: (Make1155MintArguments | Make721MintArguments) & {
779
- mintGetter: IMintGetter;
59
+ mintGetter: IOnchainMintGetter;
780
60
  chainId: number;
781
61
  }): Promise<SimulateContractParameters<any, any, any, any, any, Account | Address>>;
782
- export type MintCosts = {
783
- /** The total of the mint fee, in eth */
784
- mintFee: bigint;
785
- /** If it is a paid or erc20 mint, the total price of the paid or erc20 mint in eth or erc20 value correspondingly. */
786
- totalPurchaseCost: bigint;
787
- /** If it is an erc20 mint, the erc20 address */
788
- totalPurchaseCostCurrency?: Address;
789
- /** The total cost in eth (mint fee + purchase cost) to mint */
790
- totalCostEth: bigint;
791
- };
792
- export declare function parseMintCosts({ salesConfigAndTokenInfo, quantityToMint, }: {
793
- salesConfigAndTokenInfo: SalesConfigAndTokenInfo;
794
- quantityToMint: bigint;
795
- }): MintCosts;
796
- export declare function getMintCosts(params: GetMintCostsParameters & {
797
- mintGetter: IMintGetter;
798
- premintGetter: IPremintGetter;
799
- publicClient: PublicClient;
800
- }): Promise<MintCosts>;
801
- export declare function makePrepareMint1155TokenParams({ tokenContract: tokenContract, tokenId, salesConfigAndTokenInfo, minterAccount, mintComment, mintReferral, mintRecipient, quantityToMint, chainId, }: {
802
- salesConfigAndTokenInfo: SalesConfigAndTokenInfo;
803
- chainId: number;
804
- tokenId: GenericTokenIdTypes;
805
- } & Pick<MakeMintParametersArgumentsBase, "minterAccount" | "tokenContract" | "mintComment" | "mintReferral" | "quantityToMint" | "mintRecipient">): SimulateContractParameters<readonly [{
806
- readonly stateMutability: "nonpayable";
807
- readonly type: "constructor";
808
- readonly inputs: readonly [{
809
- readonly name: "_mintFeeRecipient";
810
- readonly internalType: "address";
811
- readonly type: "address";
812
- }, {
813
- readonly name: "_upgradeGate";
814
- readonly internalType: "address";
815
- readonly type: "address";
816
- }, {
817
- readonly name: "_protocolRewards";
818
- readonly internalType: "address";
819
- readonly type: "address";
820
- }, {
821
- readonly name: "_mints";
822
- readonly internalType: "address";
823
- readonly type: "address";
824
- }];
825
- }, {
826
- readonly stateMutability: "payable";
827
- readonly type: "receive";
828
- }, {
829
- readonly stateMutability: "view";
830
- readonly type: "function";
831
- readonly inputs: readonly [];
832
- readonly name: "CONTRACT_BASE_ID";
833
- readonly outputs: readonly [{
834
- readonly name: "";
835
- readonly internalType: "uint256";
836
- readonly type: "uint256";
837
- }];
838
- }, {
839
- readonly stateMutability: "view";
840
- readonly type: "function";
841
- readonly inputs: readonly [];
842
- readonly name: "PERMISSION_BIT_ADMIN";
843
- readonly outputs: readonly [{
844
- readonly name: "";
845
- readonly internalType: "uint256";
846
- readonly type: "uint256";
847
- }];
848
- }, {
849
- readonly stateMutability: "view";
850
- readonly type: "function";
851
- readonly inputs: readonly [];
852
- readonly name: "PERMISSION_BIT_FUNDS_MANAGER";
853
- readonly outputs: readonly [{
854
- readonly name: "";
855
- readonly internalType: "uint256";
856
- readonly type: "uint256";
857
- }];
858
- }, {
859
- readonly stateMutability: "view";
860
- readonly type: "function";
861
- readonly inputs: readonly [];
862
- readonly name: "PERMISSION_BIT_METADATA";
863
- readonly outputs: readonly [{
864
- readonly name: "";
865
- readonly internalType: "uint256";
866
- readonly type: "uint256";
867
- }];
868
- }, {
869
- readonly stateMutability: "view";
870
- readonly type: "function";
871
- readonly inputs: readonly [];
872
- readonly name: "PERMISSION_BIT_MINTER";
873
- readonly outputs: readonly [{
874
- readonly name: "";
875
- readonly internalType: "uint256";
876
- readonly type: "uint256";
877
- }];
878
- }, {
879
- readonly stateMutability: "view";
880
- readonly type: "function";
881
- readonly inputs: readonly [];
882
- readonly name: "PERMISSION_BIT_SALES";
883
- readonly outputs: readonly [{
884
- readonly name: "";
885
- readonly internalType: "uint256";
886
- readonly type: "uint256";
887
- }];
888
- }, {
889
- readonly stateMutability: "nonpayable";
890
- readonly type: "function";
891
- readonly inputs: readonly [{
892
- readonly name: "tokenId";
893
- readonly internalType: "uint256";
894
- readonly type: "uint256";
895
- }, {
896
- readonly name: "user";
897
- readonly internalType: "address";
898
- readonly type: "address";
899
- }, {
900
- readonly name: "permissionBits";
901
- readonly internalType: "uint256";
902
- readonly type: "uint256";
903
- }];
904
- readonly name: "addPermission";
905
- readonly outputs: readonly [];
906
- }, {
907
- readonly stateMutability: "nonpayable";
908
- readonly type: "function";
909
- readonly inputs: readonly [{
910
- readonly name: "recipient";
911
- readonly internalType: "address";
912
- readonly type: "address";
913
- }, {
914
- readonly name: "tokenId";
915
- readonly internalType: "uint256";
916
- readonly type: "uint256";
917
- }, {
918
- readonly name: "quantity";
919
- readonly internalType: "uint256";
920
- readonly type: "uint256";
921
- }, {
922
- readonly name: "data";
923
- readonly internalType: "bytes";
924
- readonly type: "bytes";
925
- }];
926
- readonly name: "adminMint";
927
- readonly outputs: readonly [];
928
- }, {
929
- readonly stateMutability: "view";
930
- readonly type: "function";
931
- readonly inputs: readonly [{
932
- readonly name: "lastTokenId";
933
- readonly internalType: "uint256";
934
- readonly type: "uint256";
935
- }];
936
- readonly name: "assumeLastTokenIdMatches";
937
- readonly outputs: readonly [];
938
- }, {
939
- readonly stateMutability: "view";
940
- readonly type: "function";
941
- readonly inputs: readonly [{
942
- readonly name: "account";
943
- readonly internalType: "address";
944
- readonly type: "address";
945
- }, {
946
- readonly name: "id";
947
- readonly internalType: "uint256";
948
- readonly type: "uint256";
949
- }];
950
- readonly name: "balanceOf";
951
- readonly outputs: readonly [{
952
- readonly name: "";
953
- readonly internalType: "uint256";
954
- readonly type: "uint256";
955
- }];
956
- }, {
957
- readonly stateMutability: "view";
958
- readonly type: "function";
959
- readonly inputs: readonly [{
960
- readonly name: "accounts";
961
- readonly internalType: "address[]";
962
- readonly type: "address[]";
963
- }, {
964
- readonly name: "ids";
965
- readonly internalType: "uint256[]";
966
- readonly type: "uint256[]";
967
- }];
968
- readonly name: "balanceOfBatch";
969
- readonly outputs: readonly [{
970
- readonly name: "batchBalances";
971
- readonly internalType: "uint256[]";
972
- readonly type: "uint256[]";
973
- }];
974
- }, {
975
- readonly stateMutability: "nonpayable";
976
- readonly type: "function";
977
- readonly inputs: readonly [{
978
- readonly name: "from";
979
- readonly internalType: "address";
980
- readonly type: "address";
981
- }, {
982
- readonly name: "tokenIds";
983
- readonly internalType: "uint256[]";
984
- readonly type: "uint256[]";
985
- }, {
986
- readonly name: "amounts";
987
- readonly internalType: "uint256[]";
988
- readonly type: "uint256[]";
989
- }];
990
- readonly name: "burnBatch";
991
- readonly outputs: readonly [];
992
- }, {
993
- readonly stateMutability: "nonpayable";
994
- readonly type: "function";
995
- readonly inputs: readonly [{
996
- readonly name: "tokenId";
997
- readonly internalType: "uint256";
998
- readonly type: "uint256";
999
- }, {
1000
- readonly name: "data";
1001
- readonly internalType: "bytes";
1002
- readonly type: "bytes";
1003
- }];
1004
- readonly name: "callRenderer";
1005
- readonly outputs: readonly [];
1006
- }, {
1007
- readonly stateMutability: "nonpayable";
1008
- readonly type: "function";
1009
- readonly inputs: readonly [{
1010
- readonly name: "tokenId";
1011
- readonly internalType: "uint256";
1012
- readonly type: "uint256";
1013
- }, {
1014
- readonly name: "salesConfig";
1015
- readonly internalType: "contract IMinter1155";
1016
- readonly type: "address";
1017
- }, {
1018
- readonly name: "data";
1019
- readonly internalType: "bytes";
1020
- readonly type: "bytes";
1021
- }];
1022
- readonly name: "callSale";
1023
- readonly outputs: readonly [];
1024
- }, {
1025
- readonly stateMutability: "pure";
1026
- readonly type: "function";
1027
- readonly inputs: readonly [{
1028
- readonly name: "mintPrice";
1029
- readonly internalType: "uint256";
1030
- readonly type: "uint256";
1031
- }, {
1032
- readonly name: "quantity";
1033
- readonly internalType: "uint256";
1034
- readonly type: "uint256";
1035
- }];
1036
- readonly name: "computeTotalReward";
1037
- readonly outputs: readonly [{
1038
- readonly name: "";
1039
- readonly internalType: "uint256";
1040
- readonly type: "uint256";
1041
- }];
1042
- }, {
1043
- readonly stateMutability: "view";
1044
- readonly type: "function";
1045
- readonly inputs: readonly [];
1046
- readonly name: "config";
1047
- readonly outputs: readonly [{
1048
- readonly name: "owner";
1049
- readonly internalType: "address";
1050
- readonly type: "address";
1051
- }, {
1052
- readonly name: "__gap1";
1053
- readonly internalType: "uint96";
1054
- readonly type: "uint96";
1055
- }, {
1056
- readonly name: "fundsRecipient";
1057
- readonly internalType: "address payable";
1058
- readonly type: "address";
1059
- }, {
1060
- readonly name: "__gap2";
1061
- readonly internalType: "uint96";
1062
- readonly type: "uint96";
1063
- }, {
1064
- readonly name: "transferHook";
1065
- readonly internalType: "contract ITransferHookReceiver";
1066
- readonly type: "address";
1067
- }, {
1068
- readonly name: "__gap3";
1069
- readonly internalType: "uint96";
1070
- readonly type: "uint96";
1071
- }];
1072
- }, {
1073
- readonly stateMutability: "view";
1074
- readonly type: "function";
1075
- readonly inputs: readonly [];
1076
- readonly name: "contractURI";
1077
- readonly outputs: readonly [{
1078
- readonly name: "";
1079
- readonly internalType: "string";
1080
- readonly type: "string";
1081
- }];
1082
- }, {
1083
- readonly stateMutability: "pure";
1084
- readonly type: "function";
1085
- readonly inputs: readonly [];
1086
- readonly name: "contractVersion";
1087
- readonly outputs: readonly [{
1088
- readonly name: "";
1089
- readonly internalType: "string";
1090
- readonly type: "string";
1091
- }];
1092
- }, {
1093
- readonly stateMutability: "view";
1094
- readonly type: "function";
1095
- readonly inputs: readonly [{
1096
- readonly name: "";
1097
- readonly internalType: "uint256";
1098
- readonly type: "uint256";
1099
- }];
1100
- readonly name: "createReferrals";
1101
- readonly outputs: readonly [{
1102
- readonly name: "";
1103
- readonly internalType: "address";
1104
- readonly type: "address";
1105
- }];
1106
- }, {
1107
- readonly stateMutability: "view";
1108
- readonly type: "function";
1109
- readonly inputs: readonly [{
1110
- readonly name: "";
1111
- readonly internalType: "uint256";
1112
- readonly type: "uint256";
1113
- }];
1114
- readonly name: "customRenderers";
1115
- readonly outputs: readonly [{
1116
- readonly name: "";
1117
- readonly internalType: "contract IRenderer1155";
1118
- readonly type: "address";
1119
- }];
1120
- }, {
1121
- readonly stateMutability: "nonpayable";
1122
- readonly type: "function";
1123
- readonly inputs: readonly [{
1124
- readonly name: "premintConfig";
1125
- readonly internalType: "bytes";
1126
- readonly type: "bytes";
1127
- }, {
1128
- readonly name: "premintVersion";
1129
- readonly internalType: "bytes32";
1130
- readonly type: "bytes32";
1131
- }, {
1132
- readonly name: "signature";
1133
- readonly internalType: "bytes";
1134
- readonly type: "bytes";
1135
- }, {
1136
- readonly name: "firstMinter";
1137
- readonly internalType: "address";
1138
- readonly type: "address";
1139
- }, {
1140
- readonly name: "premintSignerContract";
1141
- readonly internalType: "address";
1142
- readonly type: "address";
1143
- }];
1144
- readonly name: "delegateSetupNewToken";
1145
- readonly outputs: readonly [{
1146
- readonly name: "newTokenId";
1147
- readonly internalType: "uint256";
1148
- readonly type: "uint256";
1149
- }];
1150
- }, {
1151
- readonly stateMutability: "view";
1152
- readonly type: "function";
1153
- readonly inputs: readonly [{
1154
- readonly name: "";
1155
- readonly internalType: "uint32";
1156
- readonly type: "uint32";
1157
- }];
1158
- readonly name: "delegatedTokenId";
1159
- readonly outputs: readonly [{
1160
- readonly name: "";
1161
- readonly internalType: "uint256";
1162
- readonly type: "uint256";
1163
- }];
1164
- }, {
1165
- readonly stateMutability: "view";
1166
- readonly type: "function";
1167
- readonly inputs: readonly [{
1168
- readonly name: "";
1169
- readonly internalType: "uint256";
1170
- readonly type: "uint256";
1171
- }];
1172
- readonly name: "firstMinters";
1173
- readonly outputs: readonly [{
1174
- readonly name: "";
1175
- readonly internalType: "address";
1176
- readonly type: "address";
1177
- }];
1178
- }, {
1179
- readonly stateMutability: "view";
1180
- readonly type: "function";
1181
- readonly inputs: readonly [{
1182
- readonly name: "tokenId";
1183
- readonly internalType: "uint256";
1184
- readonly type: "uint256";
1185
- }];
1186
- readonly name: "getCreatorRewardRecipient";
1187
- readonly outputs: readonly [{
1188
- readonly name: "";
1189
- readonly internalType: "address";
1190
- readonly type: "address";
1191
- }];
1192
- }, {
1193
- readonly stateMutability: "view";
1194
- readonly type: "function";
1195
- readonly inputs: readonly [{
1196
- readonly name: "tokenId";
1197
- readonly internalType: "uint256";
1198
- readonly type: "uint256";
1199
- }];
1200
- readonly name: "getCustomRenderer";
1201
- readonly outputs: readonly [{
1202
- readonly name: "customRenderer";
1203
- readonly internalType: "contract IRenderer1155";
1204
- readonly type: "address";
1205
- }];
1206
- }, {
1207
- readonly stateMutability: "view";
1208
- readonly type: "function";
1209
- readonly inputs: readonly [{
1210
- readonly name: "tokenId";
1211
- readonly internalType: "uint256";
1212
- readonly type: "uint256";
1213
- }];
1214
- readonly name: "getRoyalties";
1215
- readonly outputs: readonly [{
1216
- readonly name: "";
1217
- readonly internalType: "struct ICreatorRoyaltiesControl.RoyaltyConfiguration";
1218
- readonly type: "tuple";
1219
- readonly components: readonly [{
1220
- readonly name: "royaltyMintSchedule";
1221
- readonly internalType: "uint32";
1222
- readonly type: "uint32";
1223
- }, {
1224
- readonly name: "royaltyBPS";
1225
- readonly internalType: "uint32";
1226
- readonly type: "uint32";
1227
- }, {
1228
- readonly name: "royaltyRecipient";
1229
- readonly internalType: "address";
1230
- readonly type: "address";
1231
- }];
1232
- }];
1233
- }, {
1234
- readonly stateMutability: "view";
1235
- readonly type: "function";
1236
- readonly inputs: readonly [{
1237
- readonly name: "tokenId";
1238
- readonly internalType: "uint256";
1239
- readonly type: "uint256";
1240
- }];
1241
- readonly name: "getTokenInfo";
1242
- readonly outputs: readonly [{
1243
- readonly name: "";
1244
- readonly internalType: "struct IZoraCreator1155TypesV1.TokenData";
1245
- readonly type: "tuple";
1246
- readonly components: readonly [{
1247
- readonly name: "uri";
1248
- readonly internalType: "string";
1249
- readonly type: "string";
1250
- }, {
1251
- readonly name: "maxSupply";
1252
- readonly internalType: "uint256";
1253
- readonly type: "uint256";
1254
- }, {
1255
- readonly name: "totalMinted";
1256
- readonly internalType: "uint256";
1257
- readonly type: "uint256";
1258
- }];
1259
- }];
1260
- }, {
1261
- readonly stateMutability: "view";
1262
- readonly type: "function";
1263
- readonly inputs: readonly [];
1264
- readonly name: "implementation";
1265
- readonly outputs: readonly [{
1266
- readonly name: "";
1267
- readonly internalType: "address";
1268
- readonly type: "address";
1269
- }];
1270
- }, {
1271
- readonly stateMutability: "nonpayable";
1272
- readonly type: "function";
1273
- readonly inputs: readonly [{
1274
- readonly name: "contractName";
1275
- readonly internalType: "string";
1276
- readonly type: "string";
1277
- }, {
1278
- readonly name: "newContractURI";
1279
- readonly internalType: "string";
1280
- readonly type: "string";
1281
- }, {
1282
- readonly name: "defaultRoyaltyConfiguration";
1283
- readonly internalType: "struct ICreatorRoyaltiesControl.RoyaltyConfiguration";
1284
- readonly type: "tuple";
1285
- readonly components: readonly [{
1286
- readonly name: "royaltyMintSchedule";
1287
- readonly internalType: "uint32";
1288
- readonly type: "uint32";
1289
- }, {
1290
- readonly name: "royaltyBPS";
1291
- readonly internalType: "uint32";
1292
- readonly type: "uint32";
1293
- }, {
1294
- readonly name: "royaltyRecipient";
1295
- readonly internalType: "address";
1296
- readonly type: "address";
1297
- }];
1298
- }, {
1299
- readonly name: "defaultAdmin";
1300
- readonly internalType: "address payable";
1301
- readonly type: "address";
1302
- }, {
1303
- readonly name: "setupActions";
1304
- readonly internalType: "bytes[]";
1305
- readonly type: "bytes[]";
1306
- }];
1307
- readonly name: "initialize";
1308
- readonly outputs: readonly [];
1309
- }, {
1310
- readonly stateMutability: "view";
1311
- readonly type: "function";
1312
- readonly inputs: readonly [{
1313
- readonly name: "user";
1314
- readonly internalType: "address";
1315
- readonly type: "address";
1316
- }, {
1317
- readonly name: "tokenId";
1318
- readonly internalType: "uint256";
1319
- readonly type: "uint256";
1320
- }, {
1321
- readonly name: "role";
1322
- readonly internalType: "uint256";
1323
- readonly type: "uint256";
1324
- }];
1325
- readonly name: "isAdminOrRole";
1326
- readonly outputs: readonly [{
1327
- readonly name: "";
1328
- readonly internalType: "bool";
1329
- readonly type: "bool";
1330
- }];
1331
- }, {
1332
- readonly stateMutability: "view";
1333
- readonly type: "function";
1334
- readonly inputs: readonly [{
1335
- readonly name: "account";
1336
- readonly internalType: "address";
1337
- readonly type: "address";
1338
- }, {
1339
- readonly name: "operator";
1340
- readonly internalType: "address";
1341
- readonly type: "address";
1342
- }];
1343
- readonly name: "isApprovedForAll";
1344
- readonly outputs: readonly [{
1345
- readonly name: "";
1346
- readonly internalType: "bool";
1347
- readonly type: "bool";
1348
- }];
1349
- }, {
1350
- readonly stateMutability: "view";
1351
- readonly type: "function";
1352
- readonly inputs: readonly [{
1353
- readonly name: "";
1354
- readonly internalType: "uint256";
1355
- readonly type: "uint256";
1356
- }];
1357
- readonly name: "metadataRendererContract";
1358
- readonly outputs: readonly [{
1359
- readonly name: "";
1360
- readonly internalType: "address";
1361
- readonly type: "address";
1362
- }];
1363
- }, {
1364
- readonly stateMutability: "payable";
1365
- readonly type: "function";
1366
- readonly inputs: readonly [{
1367
- readonly name: "minter";
1368
- readonly internalType: "contract IMinter1155";
1369
- readonly type: "address";
1370
- }, {
1371
- readonly name: "tokenId";
1372
- readonly internalType: "uint256";
1373
- readonly type: "uint256";
1374
- }, {
1375
- readonly name: "quantity";
1376
- readonly internalType: "uint256";
1377
- readonly type: "uint256";
1378
- }, {
1379
- readonly name: "rewardsRecipients";
1380
- readonly internalType: "address[]";
1381
- readonly type: "address[]";
1382
- }, {
1383
- readonly name: "minterArguments";
1384
- readonly internalType: "bytes";
1385
- readonly type: "bytes";
1386
- }];
1387
- readonly name: "mint";
1388
- readonly outputs: readonly [];
1389
- }, {
1390
- readonly stateMutability: "view";
1391
- readonly type: "function";
1392
- readonly inputs: readonly [];
1393
- readonly name: "mintFee";
1394
- readonly outputs: readonly [{
1395
- readonly name: "";
1396
- readonly internalType: "uint256";
1397
- readonly type: "uint256";
1398
- }];
1399
- }, {
1400
- readonly stateMutability: "payable";
1401
- readonly type: "function";
1402
- readonly inputs: readonly [{
1403
- readonly name: "mintTokenIds";
1404
- readonly internalType: "uint256[]";
1405
- readonly type: "uint256[]";
1406
- }, {
1407
- readonly name: "quantities";
1408
- readonly internalType: "uint256[]";
1409
- readonly type: "uint256[]";
1410
- }, {
1411
- readonly name: "minter";
1412
- readonly internalType: "contract IMinter1155";
1413
- readonly type: "address";
1414
- }, {
1415
- readonly name: "tokenId";
1416
- readonly internalType: "uint256";
1417
- readonly type: "uint256";
1418
- }, {
1419
- readonly name: "rewardsRecipients";
1420
- readonly internalType: "address[]";
1421
- readonly type: "address[]";
1422
- }, {
1423
- readonly name: "minterArguments";
1424
- readonly internalType: "bytes";
1425
- readonly type: "bytes";
1426
- }];
1427
- readonly name: "mintWithMints";
1428
- readonly outputs: readonly [{
1429
- readonly name: "quantityMinted";
1430
- readonly internalType: "uint256";
1431
- readonly type: "uint256";
1432
- }];
1433
- }, {
1434
- readonly stateMutability: "payable";
1435
- readonly type: "function";
1436
- readonly inputs: readonly [{
1437
- readonly name: "minter";
1438
- readonly internalType: "contract IMinter1155";
1439
- readonly type: "address";
1440
- }, {
1441
- readonly name: "tokenId";
1442
- readonly internalType: "uint256";
1443
- readonly type: "uint256";
1444
- }, {
1445
- readonly name: "quantity";
1446
- readonly internalType: "uint256";
1447
- readonly type: "uint256";
1448
- }, {
1449
- readonly name: "minterArguments";
1450
- readonly internalType: "bytes";
1451
- readonly type: "bytes";
1452
- }, {
1453
- readonly name: "mintReferral";
1454
- readonly internalType: "address";
1455
- readonly type: "address";
1456
- }];
1457
- readonly name: "mintWithRewards";
1458
- readonly outputs: readonly [];
1459
- }, {
1460
- readonly stateMutability: "nonpayable";
1461
- readonly type: "function";
1462
- readonly inputs: readonly [{
1463
- readonly name: "data";
1464
- readonly internalType: "bytes[]";
1465
- readonly type: "bytes[]";
1466
- }];
1467
- readonly name: "multicall";
1468
- readonly outputs: readonly [{
1469
- readonly name: "results";
1470
- readonly internalType: "bytes[]";
1471
- readonly type: "bytes[]";
1472
- }];
1473
- }, {
1474
- readonly stateMutability: "view";
1475
- readonly type: "function";
1476
- readonly inputs: readonly [];
1477
- readonly name: "name";
1478
- readonly outputs: readonly [{
1479
- readonly name: "";
1480
- readonly internalType: "string";
1481
- readonly type: "string";
1482
- }];
1483
- }, {
1484
- readonly stateMutability: "view";
1485
- readonly type: "function";
1486
- readonly inputs: readonly [];
1487
- readonly name: "nextTokenId";
1488
- readonly outputs: readonly [{
1489
- readonly name: "";
1490
- readonly internalType: "uint256";
1491
- readonly type: "uint256";
1492
- }];
1493
- }, {
1494
- readonly stateMutability: "view";
1495
- readonly type: "function";
1496
- readonly inputs: readonly [{
1497
- readonly name: "";
1498
- readonly internalType: "address";
1499
- readonly type: "address";
1500
- }, {
1501
- readonly name: "";
1502
- readonly internalType: "address";
1503
- readonly type: "address";
1504
- }, {
1505
- readonly name: "";
1506
- readonly internalType: "uint256[]";
1507
- readonly type: "uint256[]";
1508
- }, {
1509
- readonly name: "";
1510
- readonly internalType: "uint256[]";
1511
- readonly type: "uint256[]";
1512
- }, {
1513
- readonly name: "";
1514
- readonly internalType: "bytes";
1515
- readonly type: "bytes";
1516
- }];
1517
- readonly name: "onERC1155BatchReceived";
1518
- readonly outputs: readonly [{
1519
- readonly name: "";
1520
- readonly internalType: "bytes4";
1521
- readonly type: "bytes4";
1522
- }];
1523
- }, {
1524
- readonly stateMutability: "view";
1525
- readonly type: "function";
1526
- readonly inputs: readonly [{
1527
- readonly name: "";
1528
- readonly internalType: "address";
1529
- readonly type: "address";
1530
- }, {
1531
- readonly name: "";
1532
- readonly internalType: "address";
1533
- readonly type: "address";
1534
- }, {
1535
- readonly name: "";
1536
- readonly internalType: "uint256";
1537
- readonly type: "uint256";
1538
- }, {
1539
- readonly name: "";
1540
- readonly internalType: "uint256";
1541
- readonly type: "uint256";
1542
- }, {
1543
- readonly name: "";
1544
- readonly internalType: "bytes";
1545
- readonly type: "bytes";
1546
- }];
1547
- readonly name: "onERC1155Received";
1548
- readonly outputs: readonly [{
1549
- readonly name: "";
1550
- readonly internalType: "bytes4";
1551
- readonly type: "bytes4";
1552
- }];
1553
- }, {
1554
- readonly stateMutability: "view";
1555
- readonly type: "function";
1556
- readonly inputs: readonly [];
1557
- readonly name: "owner";
1558
- readonly outputs: readonly [{
1559
- readonly name: "";
1560
- readonly internalType: "address";
1561
- readonly type: "address";
1562
- }];
1563
- }, {
1564
- readonly stateMutability: "view";
1565
- readonly type: "function";
1566
- readonly inputs: readonly [{
1567
- readonly name: "";
1568
- readonly internalType: "uint256";
1569
- readonly type: "uint256";
1570
- }, {
1571
- readonly name: "";
1572
- readonly internalType: "address";
1573
- readonly type: "address";
1574
- }];
1575
- readonly name: "permissions";
1576
- readonly outputs: readonly [{
1577
- readonly name: "";
1578
- readonly internalType: "uint256";
1579
- readonly type: "uint256";
1580
- }];
1581
- }, {
1582
- readonly stateMutability: "view";
1583
- readonly type: "function";
1584
- readonly inputs: readonly [];
1585
- readonly name: "proxiableUUID";
1586
- readonly outputs: readonly [{
1587
- readonly name: "";
1588
- readonly internalType: "bytes32";
1589
- readonly type: "bytes32";
1590
- }];
1591
- }, {
1592
- readonly stateMutability: "nonpayable";
1593
- readonly type: "function";
1594
- readonly inputs: readonly [{
1595
- readonly name: "tokenId";
1596
- readonly internalType: "uint256";
1597
- readonly type: "uint256";
1598
- }, {
1599
- readonly name: "user";
1600
- readonly internalType: "address";
1601
- readonly type: "address";
1602
- }, {
1603
- readonly name: "permissionBits";
1604
- readonly internalType: "uint256";
1605
- readonly type: "uint256";
1606
- }];
1607
- readonly name: "removePermission";
1608
- readonly outputs: readonly [];
1609
- }, {
1610
- readonly stateMutability: "view";
1611
- readonly type: "function";
1612
- readonly inputs: readonly [{
1613
- readonly name: "";
1614
- readonly internalType: "uint256";
1615
- readonly type: "uint256";
1616
- }];
1617
- readonly name: "royalties";
1618
- readonly outputs: readonly [{
1619
- readonly name: "royaltyMintSchedule";
1620
- readonly internalType: "uint32";
1621
- readonly type: "uint32";
1622
- }, {
1623
- readonly name: "royaltyBPS";
1624
- readonly internalType: "uint32";
1625
- readonly type: "uint32";
1626
- }, {
1627
- readonly name: "royaltyRecipient";
1628
- readonly internalType: "address";
1629
- readonly type: "address";
1630
- }];
1631
- }, {
1632
- readonly stateMutability: "view";
1633
- readonly type: "function";
1634
- readonly inputs: readonly [{
1635
- readonly name: "tokenId";
1636
- readonly internalType: "uint256";
1637
- readonly type: "uint256";
1638
- }, {
1639
- readonly name: "salePrice";
1640
- readonly internalType: "uint256";
1641
- readonly type: "uint256";
1642
- }];
1643
- readonly name: "royaltyInfo";
1644
- readonly outputs: readonly [{
1645
- readonly name: "receiver";
1646
- readonly internalType: "address";
1647
- readonly type: "address";
1648
- }, {
1649
- readonly name: "royaltyAmount";
1650
- readonly internalType: "uint256";
1651
- readonly type: "uint256";
1652
- }];
1653
- }, {
1654
- readonly stateMutability: "nonpayable";
1655
- readonly type: "function";
1656
- readonly inputs: readonly [{
1657
- readonly name: "from";
1658
- readonly internalType: "address";
1659
- readonly type: "address";
1660
- }, {
1661
- readonly name: "to";
1662
- readonly internalType: "address";
1663
- readonly type: "address";
1664
- }, {
1665
- readonly name: "ids";
1666
- readonly internalType: "uint256[]";
1667
- readonly type: "uint256[]";
1668
- }, {
1669
- readonly name: "amounts";
1670
- readonly internalType: "uint256[]";
1671
- readonly type: "uint256[]";
1672
- }, {
1673
- readonly name: "data";
1674
- readonly internalType: "bytes";
1675
- readonly type: "bytes";
1676
- }];
1677
- readonly name: "safeBatchTransferFrom";
1678
- readonly outputs: readonly [];
1679
- }, {
1680
- readonly stateMutability: "nonpayable";
1681
- readonly type: "function";
1682
- readonly inputs: readonly [{
1683
- readonly name: "from";
1684
- readonly internalType: "address";
1685
- readonly type: "address";
1686
- }, {
1687
- readonly name: "to";
1688
- readonly internalType: "address";
1689
- readonly type: "address";
1690
- }, {
1691
- readonly name: "id";
1692
- readonly internalType: "uint256";
1693
- readonly type: "uint256";
1694
- }, {
1695
- readonly name: "amount";
1696
- readonly internalType: "uint256";
1697
- readonly type: "uint256";
1698
- }, {
1699
- readonly name: "data";
1700
- readonly internalType: "bytes";
1701
- readonly type: "bytes";
1702
- }];
1703
- readonly name: "safeTransferFrom";
1704
- readonly outputs: readonly [];
1705
- }, {
1706
- readonly stateMutability: "nonpayable";
1707
- readonly type: "function";
1708
- readonly inputs: readonly [{
1709
- readonly name: "operator";
1710
- readonly internalType: "address";
1711
- readonly type: "address";
1712
- }, {
1713
- readonly name: "approved";
1714
- readonly internalType: "bool";
1715
- readonly type: "bool";
1716
- }];
1717
- readonly name: "setApprovalForAll";
1718
- readonly outputs: readonly [];
1719
- }, {
1720
- readonly stateMutability: "nonpayable";
1721
- readonly type: "function";
1722
- readonly inputs: readonly [{
1723
- readonly name: "fundsRecipient";
1724
- readonly internalType: "address payable";
1725
- readonly type: "address";
1726
- }];
1727
- readonly name: "setFundsRecipient";
1728
- readonly outputs: readonly [];
1729
- }, {
1730
- readonly stateMutability: "nonpayable";
1731
- readonly type: "function";
1732
- readonly inputs: readonly [{
1733
- readonly name: "newOwner";
1734
- readonly internalType: "address";
1735
- readonly type: "address";
1736
- }];
1737
- readonly name: "setOwner";
1738
- readonly outputs: readonly [];
1739
- }, {
1740
- readonly stateMutability: "nonpayable";
1741
- readonly type: "function";
1742
- readonly inputs: readonly [{
1743
- readonly name: "tokenId";
1744
- readonly internalType: "uint256";
1745
- readonly type: "uint256";
1746
- }, {
1747
- readonly name: "renderer";
1748
- readonly internalType: "contract IRenderer1155";
1749
- readonly type: "address";
1750
- }];
1751
- readonly name: "setTokenMetadataRenderer";
1752
- readonly outputs: readonly [];
1753
- }, {
1754
- readonly stateMutability: "nonpayable";
1755
- readonly type: "function";
1756
- readonly inputs: readonly [{
1757
- readonly name: "transferHook";
1758
- readonly internalType: "contract ITransferHookReceiver";
1759
- readonly type: "address";
1760
- }];
1761
- readonly name: "setTransferHook";
1762
- readonly outputs: readonly [];
1763
- }, {
1764
- readonly stateMutability: "nonpayable";
1765
- readonly type: "function";
1766
- readonly inputs: readonly [{
1767
- readonly name: "newURI";
1768
- readonly internalType: "string";
1769
- readonly type: "string";
1770
- }, {
1771
- readonly name: "maxSupply";
1772
- readonly internalType: "uint256";
1773
- readonly type: "uint256";
1774
- }];
1775
- readonly name: "setupNewToken";
1776
- readonly outputs: readonly [{
1777
- readonly name: "";
1778
- readonly internalType: "uint256";
1779
- readonly type: "uint256";
1780
- }];
1781
- }, {
1782
- readonly stateMutability: "nonpayable";
1783
- readonly type: "function";
1784
- readonly inputs: readonly [{
1785
- readonly name: "newURI";
1786
- readonly internalType: "string";
1787
- readonly type: "string";
1788
- }, {
1789
- readonly name: "maxSupply";
1790
- readonly internalType: "uint256";
1791
- readonly type: "uint256";
1792
- }, {
1793
- readonly name: "createReferral";
1794
- readonly internalType: "address";
1795
- readonly type: "address";
1796
- }];
1797
- readonly name: "setupNewTokenWithCreateReferral";
1798
- readonly outputs: readonly [{
1799
- readonly name: "";
1800
- readonly internalType: "uint256";
1801
- readonly type: "uint256";
1802
- }];
1803
- }, {
1804
- readonly stateMutability: "pure";
1805
- readonly type: "function";
1806
- readonly inputs: readonly [];
1807
- readonly name: "supportedPremintSignatureVersions";
1808
- readonly outputs: readonly [{
1809
- readonly name: "";
1810
- readonly internalType: "string[]";
1811
- readonly type: "string[]";
1812
- }];
1813
- }, {
1814
- readonly stateMutability: "view";
1815
- readonly type: "function";
1816
- readonly inputs: readonly [{
1817
- readonly name: "interfaceId";
1818
- readonly internalType: "bytes4";
1819
- readonly type: "bytes4";
1820
- }];
1821
- readonly name: "supportsInterface";
1822
- readonly outputs: readonly [{
1823
- readonly name: "";
1824
- readonly internalType: "bool";
1825
- readonly type: "bool";
1826
- }];
1827
- }, {
1828
- readonly stateMutability: "pure";
1829
- readonly type: "function";
1830
- readonly inputs: readonly [];
1831
- readonly name: "symbol";
1832
- readonly outputs: readonly [{
1833
- readonly name: "";
1834
- readonly internalType: "string";
1835
- readonly type: "string";
1836
- }];
1837
- }, {
1838
- readonly stateMutability: "nonpayable";
1839
- readonly type: "function";
1840
- readonly inputs: readonly [{
1841
- readonly name: "_newURI";
1842
- readonly internalType: "string";
1843
- readonly type: "string";
1844
- }, {
1845
- readonly name: "_newName";
1846
- readonly internalType: "string";
1847
- readonly type: "string";
1848
- }];
1849
- readonly name: "updateContractMetadata";
1850
- readonly outputs: readonly [];
1851
- }, {
1852
- readonly stateMutability: "nonpayable";
1853
- readonly type: "function";
1854
- readonly inputs: readonly [{
1855
- readonly name: "tokenId";
1856
- readonly internalType: "uint256";
1857
- readonly type: "uint256";
1858
- }, {
1859
- readonly name: "recipient";
1860
- readonly internalType: "address";
1861
- readonly type: "address";
1862
- }];
1863
- readonly name: "updateCreateReferral";
1864
- readonly outputs: readonly [];
1865
- }, {
1866
- readonly stateMutability: "nonpayable";
1867
- readonly type: "function";
1868
- readonly inputs: readonly [{
1869
- readonly name: "tokenId";
1870
- readonly internalType: "uint256";
1871
- readonly type: "uint256";
1872
- }, {
1873
- readonly name: "newConfiguration";
1874
- readonly internalType: "struct ICreatorRoyaltiesControl.RoyaltyConfiguration";
1875
- readonly type: "tuple";
1876
- readonly components: readonly [{
1877
- readonly name: "royaltyMintSchedule";
1878
- readonly internalType: "uint32";
1879
- readonly type: "uint32";
1880
- }, {
1881
- readonly name: "royaltyBPS";
1882
- readonly internalType: "uint32";
1883
- readonly type: "uint32";
1884
- }, {
1885
- readonly name: "royaltyRecipient";
1886
- readonly internalType: "address";
1887
- readonly type: "address";
1888
- }];
1889
- }];
1890
- readonly name: "updateRoyaltiesForToken";
1891
- readonly outputs: readonly [];
1892
- }, {
1893
- readonly stateMutability: "nonpayable";
1894
- readonly type: "function";
1895
- readonly inputs: readonly [{
1896
- readonly name: "tokenId";
1897
- readonly internalType: "uint256";
1898
- readonly type: "uint256";
1899
- }, {
1900
- readonly name: "_newURI";
1901
- readonly internalType: "string";
1902
- readonly type: "string";
1903
- }];
1904
- readonly name: "updateTokenURI";
1905
- readonly outputs: readonly [];
1906
- }, {
1907
- readonly stateMutability: "nonpayable";
1908
- readonly type: "function";
1909
- readonly inputs: readonly [{
1910
- readonly name: "newImplementation";
1911
- readonly internalType: "address";
1912
- readonly type: "address";
1913
- }];
1914
- readonly name: "upgradeTo";
1915
- readonly outputs: readonly [];
1916
- }, {
1917
- readonly stateMutability: "payable";
1918
- readonly type: "function";
1919
- readonly inputs: readonly [{
1920
- readonly name: "newImplementation";
1921
- readonly internalType: "address";
1922
- readonly type: "address";
1923
- }, {
1924
- readonly name: "data";
1925
- readonly internalType: "bytes";
1926
- readonly type: "bytes";
1927
- }];
1928
- readonly name: "upgradeToAndCall";
1929
- readonly outputs: readonly [];
1930
- }, {
1931
- readonly stateMutability: "view";
1932
- readonly type: "function";
1933
- readonly inputs: readonly [{
1934
- readonly name: "tokenId";
1935
- readonly internalType: "uint256";
1936
- readonly type: "uint256";
1937
- }];
1938
- readonly name: "uri";
1939
- readonly outputs: readonly [{
1940
- readonly name: "";
1941
- readonly internalType: "string";
1942
- readonly type: "string";
1943
- }];
1944
- }, {
1945
- readonly stateMutability: "nonpayable";
1946
- readonly type: "function";
1947
- readonly inputs: readonly [];
1948
- readonly name: "withdraw";
1949
- readonly outputs: readonly [];
1950
- }, {
1951
- readonly type: "event";
1952
- readonly anonymous: false;
1953
- readonly inputs: readonly [{
1954
- readonly name: "previousAdmin";
1955
- readonly internalType: "address";
1956
- readonly type: "address";
1957
- readonly indexed: false;
1958
- }, {
1959
- readonly name: "newAdmin";
1960
- readonly internalType: "address";
1961
- readonly type: "address";
1962
- readonly indexed: false;
1963
- }];
1964
- readonly name: "AdminChanged";
1965
- }, {
1966
- readonly type: "event";
1967
- readonly anonymous: false;
1968
- readonly inputs: readonly [{
1969
- readonly name: "account";
1970
- readonly internalType: "address";
1971
- readonly type: "address";
1972
- readonly indexed: true;
1973
- }, {
1974
- readonly name: "operator";
1975
- readonly internalType: "address";
1976
- readonly type: "address";
1977
- readonly indexed: true;
1978
- }, {
1979
- readonly name: "approved";
1980
- readonly internalType: "bool";
1981
- readonly type: "bool";
1982
- readonly indexed: false;
1983
- }];
1984
- readonly name: "ApprovalForAll";
1985
- }, {
1986
- readonly type: "event";
1987
- readonly anonymous: false;
1988
- readonly inputs: readonly [{
1989
- readonly name: "beacon";
1990
- readonly internalType: "address";
1991
- readonly type: "address";
1992
- readonly indexed: true;
1993
- }];
1994
- readonly name: "BeaconUpgraded";
1995
- }, {
1996
- readonly type: "event";
1997
- readonly anonymous: false;
1998
- readonly inputs: readonly [{
1999
- readonly name: "updater";
2000
- readonly internalType: "address";
2001
- readonly type: "address";
2002
- readonly indexed: true;
2003
- }, {
2004
- readonly name: "updateType";
2005
- readonly internalType: "enum IZoraCreator1155.ConfigUpdate";
2006
- readonly type: "uint8";
2007
- readonly indexed: true;
2008
- }, {
2009
- readonly name: "newConfig";
2010
- readonly internalType: "struct IZoraCreator1155TypesV1.ContractConfig";
2011
- readonly type: "tuple";
2012
- readonly components: readonly [{
2013
- readonly name: "owner";
2014
- readonly internalType: "address";
2015
- readonly type: "address";
2016
- }, {
2017
- readonly name: "__gap1";
2018
- readonly internalType: "uint96";
2019
- readonly type: "uint96";
2020
- }, {
2021
- readonly name: "fundsRecipient";
2022
- readonly internalType: "address payable";
2023
- readonly type: "address";
2024
- }, {
2025
- readonly name: "__gap2";
2026
- readonly internalType: "uint96";
2027
- readonly type: "uint96";
2028
- }, {
2029
- readonly name: "transferHook";
2030
- readonly internalType: "contract ITransferHookReceiver";
2031
- readonly type: "address";
2032
- }, {
2033
- readonly name: "__gap3";
2034
- readonly internalType: "uint96";
2035
- readonly type: "uint96";
2036
- }];
2037
- readonly indexed: false;
2038
- }];
2039
- readonly name: "ConfigUpdated";
2040
- }, {
2041
- readonly type: "event";
2042
- readonly anonymous: false;
2043
- readonly inputs: readonly [{
2044
- readonly name: "updater";
2045
- readonly internalType: "address";
2046
- readonly type: "address";
2047
- readonly indexed: true;
2048
- }, {
2049
- readonly name: "uri";
2050
- readonly internalType: "string";
2051
- readonly type: "string";
2052
- readonly indexed: false;
2053
- }, {
2054
- readonly name: "name";
2055
- readonly internalType: "string";
2056
- readonly type: "string";
2057
- readonly indexed: false;
2058
- }];
2059
- readonly name: "ContractMetadataUpdated";
2060
- }, {
2061
- readonly type: "event";
2062
- readonly anonymous: false;
2063
- readonly inputs: readonly [{
2064
- readonly name: "renderer";
2065
- readonly internalType: "contract IRenderer1155";
2066
- readonly type: "address";
2067
- readonly indexed: false;
2068
- }];
2069
- readonly name: "ContractRendererUpdated";
2070
- }, {
2071
- readonly type: "event";
2072
- readonly anonymous: false;
2073
- readonly inputs: readonly [];
2074
- readonly name: "ContractURIUpdated";
2075
- }, {
2076
- readonly type: "event";
2077
- readonly anonymous: false;
2078
- readonly inputs: readonly [{
2079
- readonly name: "structHash";
2080
- readonly internalType: "bytes32";
2081
- readonly type: "bytes32";
2082
- readonly indexed: false;
2083
- }, {
2084
- readonly name: "domainName";
2085
- readonly internalType: "string";
2086
- readonly type: "string";
2087
- readonly indexed: false;
2088
- }, {
2089
- readonly name: "version";
2090
- readonly internalType: "string";
2091
- readonly type: "string";
2092
- readonly indexed: false;
2093
- }, {
2094
- readonly name: "creator";
2095
- readonly internalType: "address";
2096
- readonly type: "address";
2097
- readonly indexed: false;
2098
- }, {
2099
- readonly name: "signature";
2100
- readonly internalType: "bytes";
2101
- readonly type: "bytes";
2102
- readonly indexed: false;
2103
- }];
2104
- readonly name: "CreatorAttribution";
2105
- }, {
2106
- readonly type: "event";
2107
- readonly anonymous: false;
2108
- readonly inputs: readonly [{
2109
- readonly name: "version";
2110
- readonly internalType: "uint8";
2111
- readonly type: "uint8";
2112
- readonly indexed: false;
2113
- }];
2114
- readonly name: "Initialized";
2115
- }, {
2116
- readonly type: "event";
2117
- readonly anonymous: false;
2118
- readonly inputs: readonly [{
2119
- readonly name: "lastOwner";
2120
- readonly internalType: "address";
2121
- readonly type: "address";
2122
- readonly indexed: false;
2123
- }, {
2124
- readonly name: "newOwner";
2125
- readonly internalType: "address";
2126
- readonly type: "address";
2127
- readonly indexed: false;
2128
- }];
2129
- readonly name: "OwnershipTransferred";
2130
- }, {
2131
- readonly type: "event";
2132
- readonly anonymous: false;
2133
- readonly inputs: readonly [{
2134
- readonly name: "sender";
2135
- readonly internalType: "address";
2136
- readonly type: "address";
2137
- readonly indexed: true;
2138
- }, {
2139
- readonly name: "minter";
2140
- readonly internalType: "address";
2141
- readonly type: "address";
2142
- readonly indexed: true;
2143
- }, {
2144
- readonly name: "tokenId";
2145
- readonly internalType: "uint256";
2146
- readonly type: "uint256";
2147
- readonly indexed: true;
2148
- }, {
2149
- readonly name: "quantity";
2150
- readonly internalType: "uint256";
2151
- readonly type: "uint256";
2152
- readonly indexed: false;
2153
- }, {
2154
- readonly name: "value";
2155
- readonly internalType: "uint256";
2156
- readonly type: "uint256";
2157
- readonly indexed: false;
2158
- }];
2159
- readonly name: "Purchased";
2160
- }, {
2161
- readonly type: "event";
2162
- readonly anonymous: false;
2163
- readonly inputs: readonly [{
2164
- readonly name: "tokenId";
2165
- readonly internalType: "uint256";
2166
- readonly type: "uint256";
2167
- readonly indexed: true;
2168
- }, {
2169
- readonly name: "renderer";
2170
- readonly internalType: "address";
2171
- readonly type: "address";
2172
- readonly indexed: true;
2173
- }, {
2174
- readonly name: "user";
2175
- readonly internalType: "address";
2176
- readonly type: "address";
2177
- readonly indexed: true;
2178
- }];
2179
- readonly name: "RendererUpdated";
2180
- }, {
2181
- readonly type: "event";
2182
- readonly anonymous: false;
2183
- readonly inputs: readonly [{
2184
- readonly name: "tokenId";
2185
- readonly internalType: "uint256";
2186
- readonly type: "uint256";
2187
- readonly indexed: true;
2188
- }, {
2189
- readonly name: "sender";
2190
- readonly internalType: "address";
2191
- readonly type: "address";
2192
- readonly indexed: true;
2193
- }, {
2194
- readonly name: "newURI";
2195
- readonly internalType: "string";
2196
- readonly type: "string";
2197
- readonly indexed: false;
2198
- }, {
2199
- readonly name: "maxSupply";
2200
- readonly internalType: "uint256";
2201
- readonly type: "uint256";
2202
- readonly indexed: false;
2203
- }];
2204
- readonly name: "SetupNewToken";
2205
- }, {
2206
- readonly type: "event";
2207
- readonly anonymous: false;
2208
- readonly inputs: readonly [{
2209
- readonly name: "operator";
2210
- readonly internalType: "address";
2211
- readonly type: "address";
2212
- readonly indexed: true;
2213
- }, {
2214
- readonly name: "from";
2215
- readonly internalType: "address";
2216
- readonly type: "address";
2217
- readonly indexed: true;
2218
- }, {
2219
- readonly name: "to";
2220
- readonly internalType: "address";
2221
- readonly type: "address";
2222
- readonly indexed: true;
2223
- }, {
2224
- readonly name: "ids";
2225
- readonly internalType: "uint256[]";
2226
- readonly type: "uint256[]";
2227
- readonly indexed: false;
2228
- }, {
2229
- readonly name: "values";
2230
- readonly internalType: "uint256[]";
2231
- readonly type: "uint256[]";
2232
- readonly indexed: false;
2233
- }];
2234
- readonly name: "TransferBatch";
2235
- }, {
2236
- readonly type: "event";
2237
- readonly anonymous: false;
2238
- readonly inputs: readonly [{
2239
- readonly name: "operator";
2240
- readonly internalType: "address";
2241
- readonly type: "address";
2242
- readonly indexed: true;
2243
- }, {
2244
- readonly name: "from";
2245
- readonly internalType: "address";
2246
- readonly type: "address";
2247
- readonly indexed: true;
2248
- }, {
2249
- readonly name: "to";
2250
- readonly internalType: "address";
2251
- readonly type: "address";
2252
- readonly indexed: true;
2253
- }, {
2254
- readonly name: "id";
2255
- readonly internalType: "uint256";
2256
- readonly type: "uint256";
2257
- readonly indexed: false;
2258
- }, {
2259
- readonly name: "value";
2260
- readonly internalType: "uint256";
2261
- readonly type: "uint256";
2262
- readonly indexed: false;
2263
- }];
2264
- readonly name: "TransferSingle";
2265
- }, {
2266
- readonly type: "event";
2267
- readonly anonymous: false;
2268
- readonly inputs: readonly [{
2269
- readonly name: "value";
2270
- readonly internalType: "string";
2271
- readonly type: "string";
2272
- readonly indexed: false;
2273
- }, {
2274
- readonly name: "id";
2275
- readonly internalType: "uint256";
2276
- readonly type: "uint256";
2277
- readonly indexed: true;
2278
- }];
2279
- readonly name: "URI";
2280
- }, {
2281
- readonly type: "event";
2282
- readonly anonymous: false;
2283
- readonly inputs: readonly [{
2284
- readonly name: "tokenId";
2285
- readonly internalType: "uint256";
2286
- readonly type: "uint256";
2287
- readonly indexed: true;
2288
- }, {
2289
- readonly name: "user";
2290
- readonly internalType: "address";
2291
- readonly type: "address";
2292
- readonly indexed: true;
2293
- }, {
2294
- readonly name: "permissions";
2295
- readonly internalType: "uint256";
2296
- readonly type: "uint256";
2297
- readonly indexed: true;
2298
- }];
2299
- readonly name: "UpdatedPermissions";
2300
- }, {
2301
- readonly type: "event";
2302
- readonly anonymous: false;
2303
- readonly inputs: readonly [{
2304
- readonly name: "tokenId";
2305
- readonly internalType: "uint256";
2306
- readonly type: "uint256";
2307
- readonly indexed: true;
2308
- }, {
2309
- readonly name: "user";
2310
- readonly internalType: "address";
2311
- readonly type: "address";
2312
- readonly indexed: true;
2313
- }, {
2314
- readonly name: "configuration";
2315
- readonly internalType: "struct ICreatorRoyaltiesControl.RoyaltyConfiguration";
2316
- readonly type: "tuple";
2317
- readonly components: readonly [{
2318
- readonly name: "royaltyMintSchedule";
2319
- readonly internalType: "uint32";
2320
- readonly type: "uint32";
2321
- }, {
2322
- readonly name: "royaltyBPS";
2323
- readonly internalType: "uint32";
2324
- readonly type: "uint32";
2325
- }, {
2326
- readonly name: "royaltyRecipient";
2327
- readonly internalType: "address";
2328
- readonly type: "address";
2329
- }];
2330
- readonly indexed: false;
2331
- }];
2332
- readonly name: "UpdatedRoyalties";
2333
- }, {
2334
- readonly type: "event";
2335
- readonly anonymous: false;
2336
- readonly inputs: readonly [{
2337
- readonly name: "from";
2338
- readonly internalType: "address";
2339
- readonly type: "address";
2340
- readonly indexed: true;
2341
- }, {
2342
- readonly name: "tokenId";
2343
- readonly internalType: "uint256";
2344
- readonly type: "uint256";
2345
- readonly indexed: true;
2346
- }, {
2347
- readonly name: "tokenData";
2348
- readonly internalType: "struct IZoraCreator1155TypesV1.TokenData";
2349
- readonly type: "tuple";
2350
- readonly components: readonly [{
2351
- readonly name: "uri";
2352
- readonly internalType: "string";
2353
- readonly type: "string";
2354
- }, {
2355
- readonly name: "maxSupply";
2356
- readonly internalType: "uint256";
2357
- readonly type: "uint256";
2358
- }, {
2359
- readonly name: "totalMinted";
2360
- readonly internalType: "uint256";
2361
- readonly type: "uint256";
2362
- }];
2363
- readonly indexed: false;
2364
- }];
2365
- readonly name: "UpdatedToken";
2366
- }, {
2367
- readonly type: "event";
2368
- readonly anonymous: false;
2369
- readonly inputs: readonly [{
2370
- readonly name: "implementation";
2371
- readonly internalType: "address";
2372
- readonly type: "address";
2373
- readonly indexed: true;
2374
- }];
2375
- readonly name: "Upgraded";
2376
- }, {
2377
- readonly type: "error";
2378
- readonly inputs: readonly [];
2379
- readonly name: "ADDRESS_DELEGATECALL_TO_NON_CONTRACT";
2380
- }, {
2381
- readonly type: "error";
2382
- readonly inputs: readonly [];
2383
- readonly name: "ADDRESS_LOW_LEVEL_CALL_FAILED";
2384
- }, {
2385
- readonly type: "error";
2386
- readonly inputs: readonly [{
2387
- readonly name: "operator";
2388
- readonly internalType: "address";
2389
- readonly type: "address";
2390
- }, {
2391
- readonly name: "user";
2392
- readonly internalType: "address";
2393
- readonly type: "address";
2394
- }];
2395
- readonly name: "Burn_NotOwnerOrApproved";
2396
- }, {
2397
- readonly type: "error";
2398
- readonly inputs: readonly [];
2399
- readonly name: "CREATOR_FUNDS_RECIPIENT_NOT_SET";
2400
- }, {
2401
- readonly type: "error";
2402
- readonly inputs: readonly [{
2403
- readonly name: "reason";
2404
- readonly internalType: "bytes";
2405
- readonly type: "bytes";
2406
- }];
2407
- readonly name: "CallFailed";
2408
- }, {
2409
- readonly type: "error";
2410
- readonly inputs: readonly [];
2411
- readonly name: "Call_TokenIdMismatch";
2412
- }, {
2413
- readonly type: "error";
2414
- readonly inputs: readonly [];
2415
- readonly name: "CallerNotZoraCreator1155";
2416
- }, {
2417
- readonly type: "error";
2418
- readonly inputs: readonly [{
2419
- readonly name: "tokenId";
2420
- readonly internalType: "uint256";
2421
- readonly type: "uint256";
2422
- }, {
2423
- readonly name: "quantity";
2424
- readonly internalType: "uint256";
2425
- readonly type: "uint256";
2426
- }, {
2427
- readonly name: "totalMinted";
2428
- readonly internalType: "uint256";
2429
- readonly type: "uint256";
2430
- }, {
2431
- readonly name: "maxSupply";
2432
- readonly internalType: "uint256";
2433
- readonly type: "uint256";
2434
- }];
2435
- readonly name: "CannotMintMoreTokens";
2436
- }, {
2437
- readonly type: "error";
2438
- readonly inputs: readonly [{
2439
- readonly name: "proposedAddress";
2440
- readonly internalType: "address";
2441
- readonly type: "address";
2442
- }];
2443
- readonly name: "Config_TransferHookNotSupported";
2444
- }, {
2445
- readonly type: "error";
2446
- readonly inputs: readonly [];
2447
- readonly name: "ERC1155_ACCOUNTS_AND_IDS_LENGTH_MISMATCH";
2448
- }, {
2449
- readonly type: "error";
2450
- readonly inputs: readonly [];
2451
- readonly name: "ERC1155_ADDRESS_ZERO_IS_NOT_A_VALID_OWNER";
2452
- }, {
2453
- readonly type: "error";
2454
- readonly inputs: readonly [];
2455
- readonly name: "ERC1155_BURN_AMOUNT_EXCEEDS_BALANCE";
2456
- }, {
2457
- readonly type: "error";
2458
- readonly inputs: readonly [];
2459
- readonly name: "ERC1155_BURN_FROM_ZERO_ADDRESS";
2460
- }, {
2461
- readonly type: "error";
2462
- readonly inputs: readonly [];
2463
- readonly name: "ERC1155_CALLER_IS_NOT_TOKEN_OWNER_OR_APPROVED";
2464
- }, {
2465
- readonly type: "error";
2466
- readonly inputs: readonly [];
2467
- readonly name: "ERC1155_ERC1155RECEIVER_REJECTED_TOKENS";
2468
- }, {
2469
- readonly type: "error";
2470
- readonly inputs: readonly [];
2471
- readonly name: "ERC1155_IDS_AND_AMOUNTS_LENGTH_MISMATCH";
2472
- }, {
2473
- readonly type: "error";
2474
- readonly inputs: readonly [];
2475
- readonly name: "ERC1155_INSUFFICIENT_BALANCE_FOR_TRANSFER";
2476
- }, {
2477
- readonly type: "error";
2478
- readonly inputs: readonly [];
2479
- readonly name: "ERC1155_MINT_TO_ZERO_ADDRESS";
2480
- }, {
2481
- readonly type: "error";
2482
- readonly inputs: readonly [];
2483
- readonly name: "ERC1155_MINT_TO_ZERO_ADDRESS";
2484
- }, {
2485
- readonly type: "error";
2486
- readonly inputs: readonly [];
2487
- readonly name: "ERC1155_SETTING_APPROVAL_FOR_SELF";
2488
- }, {
2489
- readonly type: "error";
2490
- readonly inputs: readonly [];
2491
- readonly name: "ERC1155_TRANSFER_TO_NON_ERC1155RECEIVER_IMPLEMENTER";
2492
- }, {
2493
- readonly type: "error";
2494
- readonly inputs: readonly [];
2495
- readonly name: "ERC1155_TRANSFER_TO_ZERO_ADDRESS";
2496
- }, {
2497
- readonly type: "error";
2498
- readonly inputs: readonly [];
2499
- readonly name: "ERC1967_NEW_IMPL_NOT_CONTRACT";
2500
- }, {
2501
- readonly type: "error";
2502
- readonly inputs: readonly [];
2503
- readonly name: "ERC1967_NEW_IMPL_NOT_UUPS";
2504
- }, {
2505
- readonly type: "error";
2506
- readonly inputs: readonly [];
2507
- readonly name: "ERC1967_UNSUPPORTED_PROXIABLEUUID";
2508
- }, {
2509
- readonly type: "error";
2510
- readonly inputs: readonly [{
2511
- readonly name: "recipient";
2512
- readonly internalType: "address";
2513
- readonly type: "address";
2514
- }, {
2515
- readonly name: "amount";
2516
- readonly internalType: "uint256";
2517
- readonly type: "uint256";
2518
- }];
2519
- readonly name: "ETHWithdrawFailed";
2520
- }, {
2521
- readonly type: "error";
2522
- readonly inputs: readonly [];
2523
- readonly name: "FUNCTION_MUST_BE_CALLED_THROUGH_ACTIVE_PROXY";
2524
- }, {
2525
- readonly type: "error";
2526
- readonly inputs: readonly [];
2527
- readonly name: "FUNCTION_MUST_BE_CALLED_THROUGH_DELEGATECALL";
2528
- }, {
2529
- readonly type: "error";
2530
- readonly inputs: readonly [];
2531
- readonly name: "FirstMinterAddressZero";
2532
- }, {
2533
- readonly type: "error";
2534
- readonly inputs: readonly [{
2535
- readonly name: "amount";
2536
- readonly internalType: "uint256";
2537
- readonly type: "uint256";
2538
- }, {
2539
- readonly name: "contractValue";
2540
- readonly internalType: "uint256";
2541
- readonly type: "uint256";
2542
- }];
2543
- readonly name: "FundsWithdrawInsolvent";
2544
- }, {
2545
- readonly type: "error";
2546
- readonly inputs: readonly [];
2547
- readonly name: "INITIALIZABLE_CONTRACT_ALREADY_INITIALIZED";
2548
- }, {
2549
- readonly type: "error";
2550
- readonly inputs: readonly [];
2551
- readonly name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING";
2552
- }, {
2553
- readonly type: "error";
2554
- readonly inputs: readonly [];
2555
- readonly name: "INVALID_ADDRESS_ZERO";
2556
- }, {
2557
- readonly type: "error";
2558
- readonly inputs: readonly [];
2559
- readonly name: "INVALID_ETH_AMOUNT";
2560
- }, {
2561
- readonly type: "error";
2562
- readonly inputs: readonly [{
2563
- readonly name: "mintTo";
2564
- readonly internalType: "address";
2565
- readonly type: "address";
2566
- }, {
2567
- readonly name: "merkleProof";
2568
- readonly internalType: "bytes32[]";
2569
- readonly type: "bytes32[]";
2570
- }, {
2571
- readonly name: "merkleRoot";
2572
- readonly internalType: "bytes32";
2573
- readonly type: "bytes32";
2574
- }];
2575
- readonly name: "InvalidMerkleProof";
2576
- }, {
2577
- readonly type: "error";
2578
- readonly inputs: readonly [];
2579
- readonly name: "InvalidMintSchedule";
2580
- }, {
2581
- readonly type: "error";
2582
- readonly inputs: readonly [];
2583
- readonly name: "InvalidMintSchedule";
2584
- }, {
2585
- readonly type: "error";
2586
- readonly inputs: readonly [];
2587
- readonly name: "InvalidPremintVersion";
2588
- }, {
2589
- readonly type: "error";
2590
- readonly inputs: readonly [];
2591
- readonly name: "InvalidSignature";
2592
- }, {
2593
- readonly type: "error";
2594
- readonly inputs: readonly [];
2595
- readonly name: "InvalidSignatureVersion";
2596
- }, {
2597
- readonly type: "error";
2598
- readonly inputs: readonly [{
2599
- readonly name: "magicValue";
2600
- readonly internalType: "bytes4";
2601
- readonly type: "bytes4";
2602
- }];
2603
- readonly name: "InvalidSigner";
2604
- }, {
2605
- readonly type: "error";
2606
- readonly inputs: readonly [];
2607
- readonly name: "MintNotYetStarted";
2608
- }, {
2609
- readonly type: "error";
2610
- readonly inputs: readonly [];
2611
- readonly name: "Mint_InsolventSaleTransfer";
2612
- }, {
2613
- readonly type: "error";
2614
- readonly inputs: readonly [];
2615
- readonly name: "Mint_InvalidMintArrayLength";
2616
- }, {
2617
- readonly type: "error";
2618
- readonly inputs: readonly [];
2619
- readonly name: "Mint_TokenIDMintNotAllowed";
2620
- }, {
2621
- readonly type: "error";
2622
- readonly inputs: readonly [];
2623
- readonly name: "Mint_UnknownCommand";
2624
- }, {
2625
- readonly type: "error";
2626
- readonly inputs: readonly [];
2627
- readonly name: "Mint_ValueTransferFail";
2628
- }, {
2629
- readonly type: "error";
2630
- readonly inputs: readonly [];
2631
- readonly name: "MinterContractAlreadyExists";
2632
- }, {
2633
- readonly type: "error";
2634
- readonly inputs: readonly [];
2635
- readonly name: "MinterContractDoesNotExist";
2636
- }, {
2637
- readonly type: "error";
2638
- readonly inputs: readonly [];
2639
- readonly name: "NewOwnerNeedsToBeAdmin";
2640
- }, {
2641
- readonly type: "error";
2642
- readonly inputs: readonly [{
2643
- readonly name: "tokenId";
2644
- readonly internalType: "uint256";
2645
- readonly type: "uint256";
2646
- }];
2647
- readonly name: "NoRendererForToken";
2648
- }, {
2649
- readonly type: "error";
2650
- readonly inputs: readonly [];
2651
- readonly name: "NonEthRedemption";
2652
- }, {
2653
- readonly type: "error";
2654
- readonly inputs: readonly [];
2655
- readonly name: "ONLY_CREATE_REFERRAL";
2656
- }, {
2657
- readonly type: "error";
2658
- readonly inputs: readonly [];
2659
- readonly name: "OnlyTransfersFromZoraMints";
2660
- }, {
2661
- readonly type: "error";
2662
- readonly inputs: readonly [];
2663
- readonly name: "PremintDeleted";
2664
- }, {
2665
- readonly type: "error";
2666
- readonly inputs: readonly [{
2667
- readonly name: "caller";
2668
- readonly internalType: "address";
2669
- readonly type: "address";
2670
- }, {
2671
- readonly name: "recipient";
2672
- readonly internalType: "address";
2673
- readonly type: "address";
2674
- }, {
2675
- readonly name: "amount";
2676
- readonly internalType: "uint256";
2677
- readonly type: "uint256";
2678
- }];
2679
- readonly name: "ProtocolRewardsWithdrawFailed";
2680
- }, {
2681
- readonly type: "error";
2682
- readonly inputs: readonly [{
2683
- readonly name: "renderer";
2684
- readonly internalType: "address";
2685
- readonly type: "address";
2686
- }];
2687
- readonly name: "RendererNotValid";
2688
- }, {
2689
- readonly type: "error";
2690
- readonly inputs: readonly [];
2691
- readonly name: "Renderer_NotValidRendererContract";
2692
- }, {
2693
- readonly type: "error";
2694
- readonly inputs: readonly [];
2695
- readonly name: "SaleEnded";
2696
- }, {
2697
- readonly type: "error";
2698
- readonly inputs: readonly [];
2699
- readonly name: "SaleHasNotStarted";
2700
- }, {
2701
- readonly type: "error";
2702
- readonly inputs: readonly [{
2703
- readonly name: "targetContract";
2704
- readonly internalType: "address";
2705
- readonly type: "address";
2706
- }];
2707
- readonly name: "Sale_CannotCallNonSalesContract";
2708
- }, {
2709
- readonly type: "error";
2710
- readonly inputs: readonly [{
2711
- readonly name: "expected";
2712
- readonly internalType: "uint256";
2713
- readonly type: "uint256";
2714
- }, {
2715
- readonly name: "actual";
2716
- readonly internalType: "uint256";
2717
- readonly type: "uint256";
2718
- }];
2719
- readonly name: "TokenIdMismatch";
2720
- }, {
2721
- readonly type: "error";
2722
- readonly inputs: readonly [];
2723
- readonly name: "UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL";
2724
- }, {
2725
- readonly type: "error";
2726
- readonly inputs: readonly [{
2727
- readonly name: "user";
2728
- readonly internalType: "address";
2729
- readonly type: "address";
2730
- }, {
2731
- readonly name: "limit";
2732
- readonly internalType: "uint256";
2733
- readonly type: "uint256";
2734
- }, {
2735
- readonly name: "requestedAmount";
2736
- readonly internalType: "uint256";
2737
- readonly type: "uint256";
2738
- }];
2739
- readonly name: "UserExceedsMintLimit";
2740
- }, {
2741
- readonly type: "error";
2742
- readonly inputs: readonly [{
2743
- readonly name: "user";
2744
- readonly internalType: "address";
2745
- readonly type: "address";
2746
- }, {
2747
- readonly name: "tokenId";
2748
- readonly internalType: "uint256";
2749
- readonly type: "uint256";
2750
- }, {
2751
- readonly name: "role";
2752
- readonly internalType: "uint256";
2753
- readonly type: "uint256";
2754
- }];
2755
- readonly name: "UserMissingRoleForToken";
2756
- }, {
2757
- readonly type: "error";
2758
- readonly inputs: readonly [];
2759
- readonly name: "WrongValueSent";
2760
- }, {
2761
- readonly type: "error";
2762
- readonly inputs: readonly [];
2763
- readonly name: "premintSignerContractFailedToRecoverSigner";
2764
- }, {
2765
- readonly type: "error";
2766
- readonly inputs: readonly [];
2767
- readonly name: "premintSignerContractNotAContract";
2768
- }], "mintWithRewards", [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`], import("viem").Chain, import("viem").Chain | undefined, `0x${string}` | {
2769
- address: `0x${string}`;
2770
- type: "json-rpc";
2771
- experimental_signAuthMessage?: undefined;
2772
- signMessage?: undefined;
2773
- signTransaction?: undefined;
2774
- signTypedData?: undefined;
2775
- publicKey?: undefined;
2776
- source?: undefined;
2777
- } | {
2778
- address: `0x${string}`;
2779
- experimental_signAuthMessage?: ((parameters: import("viem/_types/experimental/eip3074/utils/toAuthMessage").ToAuthMessageParameters) => Promise<`0x${string}`>) | undefined;
2780
- signMessage: ({ message }: {
2781
- message: import("viem").SignableMessage;
2782
- }) => Promise<`0x${string}`>;
2783
- signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, args?: {
2784
- serializer?: serializer | undefined;
2785
- } | undefined) => Promise<import("viem/_types/types/utils").IsNarrowable<import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>>, `0x${string}`> extends true ? import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>> : `0x${string}`>;
2786
- signTypedData: <const typedData extends Record<string, unknown> | {
2787
- [x: string]: readonly import("viem").TypedDataParameter[];
2788
- [x: `string[${string}]`]: undefined;
2789
- [x: `function[${string}]`]: undefined;
2790
- [x: `address[${string}]`]: undefined;
2791
- [x: `bool[${string}]`]: undefined;
2792
- [x: `bytes[${string}]`]: undefined;
2793
- [x: `bytes21[${string}]`]: undefined;
2794
- [x: `bytes1[${string}]`]: undefined;
2795
- [x: `bytes2[${string}]`]: undefined;
2796
- [x: `bytes3[${string}]`]: undefined;
2797
- [x: `bytes4[${string}]`]: undefined;
2798
- [x: `bytes5[${string}]`]: undefined;
2799
- [x: `bytes6[${string}]`]: undefined;
2800
- [x: `bytes7[${string}]`]: undefined;
2801
- [x: `bytes8[${string}]`]: undefined;
2802
- [x: `bytes9[${string}]`]: undefined;
2803
- [x: `bytes10[${string}]`]: undefined;
2804
- [x: `bytes11[${string}]`]: undefined;
2805
- [x: `bytes12[${string}]`]: undefined;
2806
- [x: `bytes13[${string}]`]: undefined;
2807
- [x: `bytes14[${string}]`]: undefined;
2808
- [x: `bytes15[${string}]`]: undefined;
2809
- [x: `bytes16[${string}]`]: undefined;
2810
- [x: `bytes17[${string}]`]: undefined;
2811
- [x: `bytes18[${string}]`]: undefined;
2812
- [x: `bytes19[${string}]`]: undefined;
2813
- [x: `bytes20[${string}]`]: undefined;
2814
- [x: `bytes22[${string}]`]: undefined;
2815
- [x: `bytes23[${string}]`]: undefined;
2816
- [x: `bytes24[${string}]`]: undefined;
2817
- [x: `bytes25[${string}]`]: undefined;
2818
- [x: `bytes26[${string}]`]: undefined;
2819
- [x: `bytes27[${string}]`]: undefined;
2820
- [x: `bytes28[${string}]`]: undefined;
2821
- [x: `bytes29[${string}]`]: undefined;
2822
- [x: `bytes30[${string}]`]: undefined;
2823
- [x: `bytes31[${string}]`]: undefined;
2824
- [x: `bytes32[${string}]`]: undefined;
2825
- [x: `int[${string}]`]: undefined;
2826
- [x: `int8[${string}]`]: undefined;
2827
- [x: `int16[${string}]`]: undefined;
2828
- [x: `int24[${string}]`]: undefined;
2829
- [x: `int32[${string}]`]: undefined;
2830
- [x: `int40[${string}]`]: undefined;
2831
- [x: `int48[${string}]`]: undefined;
2832
- [x: `int56[${string}]`]: undefined;
2833
- [x: `int64[${string}]`]: undefined;
2834
- [x: `int72[${string}]`]: undefined;
2835
- [x: `int80[${string}]`]: undefined;
2836
- [x: `int88[${string}]`]: undefined;
2837
- [x: `int96[${string}]`]: undefined;
2838
- [x: `int104[${string}]`]: undefined;
2839
- [x: `int112[${string}]`]: undefined;
2840
- [x: `int120[${string}]`]: undefined;
2841
- [x: `int128[${string}]`]: undefined;
2842
- [x: `int136[${string}]`]: undefined;
2843
- [x: `int144[${string}]`]: undefined;
2844
- [x: `int152[${string}]`]: undefined;
2845
- [x: `int160[${string}]`]: undefined;
2846
- [x: `int168[${string}]`]: undefined;
2847
- [x: `int176[${string}]`]: undefined;
2848
- [x: `int184[${string}]`]: undefined;
2849
- [x: `int192[${string}]`]: undefined;
2850
- [x: `int200[${string}]`]: undefined;
2851
- [x: `int208[${string}]`]: undefined;
2852
- [x: `int216[${string}]`]: undefined;
2853
- [x: `int224[${string}]`]: undefined;
2854
- [x: `int232[${string}]`]: undefined;
2855
- [x: `int240[${string}]`]: undefined;
2856
- [x: `int248[${string}]`]: undefined;
2857
- [x: `int256[${string}]`]: undefined;
2858
- [x: `uint[${string}]`]: undefined;
2859
- [x: `uint8[${string}]`]: undefined;
2860
- [x: `uint16[${string}]`]: undefined;
2861
- [x: `uint24[${string}]`]: undefined;
2862
- [x: `uint32[${string}]`]: undefined;
2863
- [x: `uint40[${string}]`]: undefined;
2864
- [x: `uint48[${string}]`]: undefined;
2865
- [x: `uint56[${string}]`]: undefined;
2866
- [x: `uint64[${string}]`]: undefined;
2867
- [x: `uint72[${string}]`]: undefined;
2868
- [x: `uint80[${string}]`]: undefined;
2869
- [x: `uint88[${string}]`]: undefined;
2870
- [x: `uint96[${string}]`]: undefined;
2871
- [x: `uint104[${string}]`]: undefined;
2872
- [x: `uint112[${string}]`]: undefined;
2873
- [x: `uint120[${string}]`]: undefined;
2874
- [x: `uint128[${string}]`]: undefined;
2875
- [x: `uint136[${string}]`]: undefined;
2876
- [x: `uint144[${string}]`]: undefined;
2877
- [x: `uint152[${string}]`]: undefined;
2878
- [x: `uint160[${string}]`]: undefined;
2879
- [x: `uint168[${string}]`]: undefined;
2880
- [x: `uint176[${string}]`]: undefined;
2881
- [x: `uint184[${string}]`]: undefined;
2882
- [x: `uint192[${string}]`]: undefined;
2883
- [x: `uint200[${string}]`]: undefined;
2884
- [x: `uint208[${string}]`]: undefined;
2885
- [x: `uint216[${string}]`]: undefined;
2886
- [x: `uint224[${string}]`]: undefined;
2887
- [x: `uint232[${string}]`]: undefined;
2888
- [x: `uint240[${string}]`]: undefined;
2889
- [x: `uint248[${string}]`]: undefined;
2890
- [x: `uint256[${string}]`]: undefined;
2891
- string?: undefined;
2892
- address?: undefined;
2893
- bool?: undefined;
2894
- bytes?: undefined;
2895
- bytes21?: undefined;
2896
- bytes1?: undefined;
2897
- bytes2?: undefined;
2898
- bytes3?: undefined;
2899
- bytes4?: undefined;
2900
- bytes5?: undefined;
2901
- bytes6?: undefined;
2902
- bytes7?: undefined;
2903
- bytes8?: undefined;
2904
- bytes9?: undefined;
2905
- bytes10?: undefined;
2906
- bytes11?: undefined;
2907
- bytes12?: undefined;
2908
- bytes13?: undefined;
2909
- bytes14?: undefined;
2910
- bytes15?: undefined;
2911
- bytes16?: undefined;
2912
- bytes17?: undefined;
2913
- bytes18?: undefined;
2914
- bytes19?: undefined;
2915
- bytes20?: undefined;
2916
- bytes22?: undefined;
2917
- bytes23?: undefined;
2918
- bytes24?: undefined;
2919
- bytes25?: undefined;
2920
- bytes26?: undefined;
2921
- bytes27?: undefined;
2922
- bytes28?: undefined;
2923
- bytes29?: undefined;
2924
- bytes30?: undefined;
2925
- bytes31?: undefined;
2926
- bytes32?: undefined;
2927
- int8?: undefined;
2928
- int16?: undefined;
2929
- int24?: undefined;
2930
- int32?: undefined;
2931
- int40?: undefined;
2932
- int48?: undefined;
2933
- int56?: undefined;
2934
- int64?: undefined;
2935
- int72?: undefined;
2936
- int80?: undefined;
2937
- int88?: undefined;
2938
- int96?: undefined;
2939
- int104?: undefined;
2940
- int112?: undefined;
2941
- int120?: undefined;
2942
- int128?: undefined;
2943
- int136?: undefined;
2944
- int144?: undefined;
2945
- int152?: undefined;
2946
- int160?: undefined;
2947
- int168?: undefined;
2948
- int176?: undefined;
2949
- int184?: undefined;
2950
- int192?: undefined;
2951
- int200?: undefined;
2952
- int208?: undefined;
2953
- int216?: undefined;
2954
- int224?: undefined;
2955
- int232?: undefined;
2956
- int240?: undefined;
2957
- int248?: undefined;
2958
- int256?: undefined;
2959
- uint8?: undefined;
2960
- uint16?: undefined;
2961
- uint24?: undefined;
2962
- uint32?: undefined;
2963
- uint40?: undefined;
2964
- uint48?: undefined;
2965
- uint56?: undefined;
2966
- uint64?: undefined;
2967
- uint72?: undefined;
2968
- uint80?: undefined;
2969
- uint88?: undefined;
2970
- uint96?: undefined;
2971
- uint104?: undefined;
2972
- uint112?: undefined;
2973
- uint120?: undefined;
2974
- uint128?: undefined;
2975
- uint136?: undefined;
2976
- uint144?: undefined;
2977
- uint152?: undefined;
2978
- uint160?: undefined;
2979
- uint168?: undefined;
2980
- uint176?: undefined;
2981
- uint184?: undefined;
2982
- uint192?: undefined;
2983
- uint200?: undefined;
2984
- uint208?: undefined;
2985
- uint216?: undefined;
2986
- uint224?: undefined;
2987
- uint232?: undefined;
2988
- uint240?: undefined;
2989
- uint248?: undefined;
2990
- uint256?: undefined;
2991
- }, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(typedDataDefinition: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
2992
- publicKey: `0x${string}`;
2993
- source: string;
2994
- type: "local";
2995
- }> | SimulateContractParameters<readonly [{
2996
- readonly stateMutability: "nonpayable";
2997
- readonly type: "function";
2998
- readonly inputs: readonly [];
2999
- readonly name: "acceptOwnership";
3000
- readonly outputs: readonly [];
3001
- }, {
3002
- readonly stateMutability: "view";
3003
- readonly type: "function";
3004
- readonly inputs: readonly [{
3005
- readonly name: "config";
3006
- readonly internalType: "struct IERC20Minter.PremintSalesConfig";
3007
- readonly type: "tuple";
3008
- readonly components: readonly [{
3009
- readonly name: "duration";
3010
- readonly internalType: "uint64";
3011
- readonly type: "uint64";
3012
- }, {
3013
- readonly name: "maxTokensPerAddress";
3014
- readonly internalType: "uint64";
3015
- readonly type: "uint64";
3016
- }, {
3017
- readonly name: "pricePerToken";
3018
- readonly internalType: "uint256";
3019
- readonly type: "uint256";
3020
- }, {
3021
- readonly name: "fundsRecipient";
3022
- readonly internalType: "address";
3023
- readonly type: "address";
3024
- }, {
3025
- readonly name: "currency";
3026
- readonly internalType: "address";
3027
- readonly type: "address";
3028
- }];
3029
- }];
3030
- readonly name: "buildSalesConfigForPremint";
3031
- readonly outputs: readonly [{
3032
- readonly name: "";
3033
- readonly internalType: "struct IERC20Minter.SalesConfig";
3034
- readonly type: "tuple";
3035
- readonly components: readonly [{
3036
- readonly name: "saleStart";
3037
- readonly internalType: "uint64";
3038
- readonly type: "uint64";
3039
- }, {
3040
- readonly name: "saleEnd";
3041
- readonly internalType: "uint64";
3042
- readonly type: "uint64";
3043
- }, {
3044
- readonly name: "maxTokensPerAddress";
3045
- readonly internalType: "uint64";
3046
- readonly type: "uint64";
3047
- }, {
3048
- readonly name: "pricePerToken";
3049
- readonly internalType: "uint256";
3050
- readonly type: "uint256";
3051
- }, {
3052
- readonly name: "fundsRecipient";
3053
- readonly internalType: "address";
3054
- readonly type: "address";
3055
- }, {
3056
- readonly name: "currency";
3057
- readonly internalType: "address";
3058
- readonly type: "address";
3059
- }];
3060
- }];
3061
- }, {
3062
- readonly stateMutability: "nonpayable";
3063
- readonly type: "function";
3064
- readonly inputs: readonly [];
3065
- readonly name: "cancelOwnershipTransfer";
3066
- readonly outputs: readonly [];
3067
- }, {
3068
- readonly stateMutability: "pure";
3069
- readonly type: "function";
3070
- readonly inputs: readonly [{
3071
- readonly name: "totalReward";
3072
- readonly internalType: "uint256";
3073
- readonly type: "uint256";
3074
- }];
3075
- readonly name: "computePaidMintRewards";
3076
- readonly outputs: readonly [{
3077
- readonly name: "";
3078
- readonly internalType: "struct IERC20Minter.RewardsSettings";
3079
- readonly type: "tuple";
3080
- readonly components: readonly [{
3081
- readonly name: "createReferralReward";
3082
- readonly internalType: "uint256";
3083
- readonly type: "uint256";
3084
- }, {
3085
- readonly name: "mintReferralReward";
3086
- readonly internalType: "uint256";
3087
- readonly type: "uint256";
3088
- }, {
3089
- readonly name: "zoraReward";
3090
- readonly internalType: "uint256";
3091
- readonly type: "uint256";
3092
- }, {
3093
- readonly name: "firstMinterReward";
3094
- readonly internalType: "uint256";
3095
- readonly type: "uint256";
3096
- }];
3097
- }];
3098
- }, {
3099
- readonly stateMutability: "pure";
3100
- readonly type: "function";
3101
- readonly inputs: readonly [{
3102
- readonly name: "totalReward";
3103
- readonly internalType: "uint256";
3104
- readonly type: "uint256";
3105
- }, {
3106
- readonly name: "rewardPct";
3107
- readonly internalType: "uint256";
3108
- readonly type: "uint256";
3109
- }];
3110
- readonly name: "computeReward";
3111
- readonly outputs: readonly [{
3112
- readonly name: "";
3113
- readonly internalType: "uint256";
3114
- readonly type: "uint256";
3115
- }];
3116
- }, {
3117
- readonly stateMutability: "view";
3118
- readonly type: "function";
3119
- readonly inputs: readonly [{
3120
- readonly name: "totalValue";
3121
- readonly internalType: "uint256";
3122
- readonly type: "uint256";
3123
- }];
3124
- readonly name: "computeTotalReward";
3125
- readonly outputs: readonly [{
3126
- readonly name: "";
3127
- readonly internalType: "uint256";
3128
- readonly type: "uint256";
3129
- }];
3130
- }, {
3131
- readonly stateMutability: "pure";
3132
- readonly type: "function";
3133
- readonly inputs: readonly [];
3134
- readonly name: "contractName";
3135
- readonly outputs: readonly [{
3136
- readonly name: "";
3137
- readonly internalType: "string";
3138
- readonly type: "string";
3139
- }];
3140
- }, {
3141
- readonly stateMutability: "pure";
3142
- readonly type: "function";
3143
- readonly inputs: readonly [];
3144
- readonly name: "contractURI";
3145
- readonly outputs: readonly [{
3146
- readonly name: "";
3147
- readonly internalType: "string";
3148
- readonly type: "string";
3149
- }];
3150
- }, {
3151
- readonly stateMutability: "pure";
3152
- readonly type: "function";
3153
- readonly inputs: readonly [];
3154
- readonly name: "contractVersion";
3155
- readonly outputs: readonly [{
3156
- readonly name: "";
3157
- readonly internalType: "string";
3158
- readonly type: "string";
3159
- }];
3160
- }, {
3161
- readonly stateMutability: "view";
3162
- readonly type: "function";
3163
- readonly inputs: readonly [];
3164
- readonly name: "ethRewardAmount";
3165
- readonly outputs: readonly [{
3166
- readonly name: "";
3167
- readonly internalType: "uint256";
3168
- readonly type: "uint256";
3169
- }];
3170
- }, {
3171
- readonly stateMutability: "view";
3172
- readonly type: "function"; /** If it is an erc20 mint, the erc20 address */
3173
- readonly inputs: readonly [{
3174
- readonly name: "tokenContract";
3175
- readonly internalType: "address";
3176
- readonly type: "address";
3177
- }, {
3178
- readonly name: "tokenId";
3179
- readonly internalType: "uint256";
3180
- readonly type: "uint256";
3181
- }];
3182
- readonly name: "getCreateReferral";
3183
- readonly outputs: readonly [{
3184
- readonly name: "createReferral";
3185
- readonly internalType: "address";
3186
- readonly type: "address";
3187
- }];
3188
- }, {
3189
- readonly stateMutability: "view";
3190
- readonly type: "function";
3191
- readonly inputs: readonly [];
3192
- readonly name: "getERC20MinterConfig";
3193
- readonly outputs: readonly [{
3194
- readonly name: "";
3195
- readonly internalType: "struct IERC20Minter.ERC20MinterConfig";
3196
- readonly type: "tuple";
3197
- readonly components: readonly [{
3198
- readonly name: "zoraRewardRecipientAddress";
3199
- readonly internalType: "address";
3200
- readonly type: "address";
3201
- }, {
3202
- readonly name: "rewardRecipientPercentage";
3203
- readonly internalType: "uint256";
3204
- readonly type: "uint256";
3205
- }, {
3206
- readonly name: "ethReward";
3207
- readonly internalType: "uint256";
3208
- readonly type: "uint256";
3209
- }];
3210
- }];
3211
- }, {
3212
- readonly stateMutability: "view";
3213
- readonly type: "function";
3214
- readonly inputs: readonly [{
3215
- readonly name: "tokenContract";
3216
- readonly internalType: "address";
3217
- readonly type: "address";
3218
- }, {
3219
- readonly name: "tokenId";
3220
- readonly internalType: "uint256";
3221
- readonly type: "uint256";
3222
- }];
3223
- readonly name: "getFirstMinter";
3224
- readonly outputs: readonly [{
3225
- readonly name: "firstMinter";
3226
- readonly internalType: "address";
3227
- readonly type: "address";
3228
- }];
3229
- }, {
3230
- readonly stateMutability: "view";
3231
- readonly type: "function";
3232
- readonly inputs: readonly [{
3233
- readonly name: "tokenContract";
3234
- readonly internalType: "address";
3235
- readonly type: "address";
3236
- }, {
3237
- readonly name: "tokenId";
3238
- readonly internalType: "uint256";
3239
- readonly type: "uint256";
3240
- }, {
3241
- readonly name: "wallet";
3242
- readonly internalType: "address";
3243
- readonly type: "address";
3244
- }];
3245
- readonly name: "getMintedPerWallet";
3246
- readonly outputs: readonly [{
3247
- readonly name: "";
3248
- readonly internalType: "uint256";
3249
- readonly type: "uint256";
3250
- }];
3251
- }, {
3252
- readonly stateMutability: "nonpayable";
3253
- readonly type: "function";
3254
- readonly inputs: readonly [{
3255
- readonly name: "_zoraRewardRecipientAddress";
3256
- readonly internalType: "address";
3257
- readonly type: "address";
3258
- }, {
3259
- readonly name: "_owner";
3260
- readonly internalType: "address";
3261
- readonly type: "address";
3262
- }, {
3263
- readonly name: "_rewardPct";
3264
- readonly internalType: "uint256";
3265
- readonly type: "uint256";
3266
- }, {
3267
- readonly name: "_ethReward";
3268
- readonly internalType: "uint256";
3269
- readonly type: "uint256";
3270
- }];
3271
- readonly name: "initialize";
3272
- readonly outputs: readonly [];
3273
- }, {
3274
- readonly stateMutability: "payable";
3275
- readonly type: "function";
3276
- readonly inputs: readonly [{
3277
- readonly name: "mintTo";
3278
- readonly internalType: "address";
3279
- readonly type: "address";
3280
- }, {
3281
- readonly name: "quantity";
3282
- readonly internalType: "uint256";
3283
- readonly type: "uint256";
3284
- }, {
3285
- readonly name: "tokenAddress";
3286
- readonly internalType: "address";
3287
- readonly type: "address";
3288
- }, {
3289
- readonly name: "tokenId";
3290
- readonly internalType: "uint256";
3291
- readonly type: "uint256";
3292
- }, {
3293
- readonly name: "totalValue";
3294
- readonly internalType: "uint256";
3295
- readonly type: "uint256";
3296
- }, {
3297
- readonly name: "currency";
3298
- readonly internalType: "address";
3299
- readonly type: "address";
3300
- }, {
3301
- readonly name: "mintReferral";
3302
- readonly internalType: "address";
3303
- readonly type: "address";
3304
- }, {
3305
- readonly name: "comment";
3306
- readonly internalType: "string";
3307
- readonly type: "string";
3308
- }];
3309
- readonly name: "mint";
3310
- readonly outputs: readonly [];
3311
- }, {
3312
- readonly stateMutability: "view";
3313
- readonly type: "function";
3314
- readonly inputs: readonly [];
3315
- readonly name: "minterConfig";
3316
- readonly outputs: readonly [{
3317
- readonly name: "zoraRewardRecipientAddress";
3318
- readonly internalType: "address";
3319
- readonly type: "address";
3320
- }, {
3321
- readonly name: "rewardRecipientPercentage";
3322
- readonly internalType: "uint256";
3323
- readonly type: "uint256";
3324
- }, {
3325
- readonly name: "ethReward";
3326
- readonly internalType: "uint256";
3327
- readonly type: "uint256";
3328
- }];
3329
- }, {
3330
- readonly stateMutability: "view";
3331
- readonly type: "function";
3332
- readonly inputs: readonly [];
3333
- readonly name: "owner";
3334
- readonly outputs: readonly [{
3335
- readonly name: "";
3336
- readonly internalType: "address";
3337
- readonly type: "address";
3338
- }];
3339
- }, {
3340
- readonly stateMutability: "view";
3341
- readonly type: "function";
3342
- readonly inputs: readonly [];
3343
- readonly name: "pendingOwner";
3344
- readonly outputs: readonly [{
3345
- readonly name: "";
3346
- readonly internalType: "address";
3347
- readonly type: "address";
3348
- }];
3349
- }, {
3350
- readonly stateMutability: "pure";
3351
- readonly type: "function";
3352
- readonly inputs: readonly [{
3353
- readonly name: "";
3354
- readonly internalType: "address";
3355
- readonly type: "address";
3356
- }, {
3357
- readonly name: "";
3358
- readonly internalType: "uint256";
3359
- readonly type: "uint256";
3360
- }, {
3361
- readonly name: "";
3362
- readonly internalType: "uint256";
3363
- readonly type: "uint256";
3364
- }, {
3365
- readonly name: "";
3366
- readonly internalType: "uint256";
3367
- readonly type: "uint256";
3368
- }, {
3369
- readonly name: "";
3370
- readonly internalType: "bytes";
3371
- readonly type: "bytes";
3372
- }];
3373
- readonly name: "requestMint";
3374
- readonly outputs: readonly [{
3375
- readonly name: "";
3376
- readonly internalType: "struct ICreatorCommands.CommandSet";
3377
- readonly type: "tuple";
3378
- readonly components: readonly [{
3379
- readonly name: "commands";
3380
- readonly internalType: "struct ICreatorCommands.Command[]";
3381
- readonly type: "tuple[]";
3382
- readonly components: readonly [{
3383
- readonly name: "method";
3384
- readonly internalType: "enum ICreatorCommands.CreatorActions";
3385
- readonly type: "uint8";
3386
- }, {
3387
- readonly name: "args";
3388
- readonly internalType: "bytes";
3389
- readonly type: "bytes";
3390
- }];
3391
- }, {
3392
- readonly name: "at";
3393
- readonly internalType: "uint256";
3394
- readonly type: "uint256";
3395
- }];
3396
- }];
3397
- }, {
3398
- readonly stateMutability: "nonpayable";
3399
- readonly type: "function";
3400
- readonly inputs: readonly [{
3401
- readonly name: "tokenId";
3402
- readonly internalType: "uint256";
3403
- readonly type: "uint256";
3404
- }];
3405
- readonly name: "resetSale";
3406
- readonly outputs: readonly [];
3407
- }, {
3408
- readonly stateMutability: "nonpayable";
3409
- readonly type: "function";
3410
- readonly inputs: readonly [];
3411
- readonly name: "resignOwnership";
3412
- readonly outputs: readonly [];
3413
- }, {
3414
- readonly stateMutability: "nonpayable";
3415
- readonly type: "function";
3416
- readonly inputs: readonly [{
3417
- readonly name: "_newOwner";
3418
- readonly internalType: "address";
3419
- readonly type: "address";
3420
- }];
3421
- readonly name: "safeTransferOwnership";
3422
- readonly outputs: readonly [];
3423
- }, {
3424
- readonly stateMutability: "view";
3425
- readonly type: "function";
3426
- readonly inputs: readonly [{
3427
- readonly name: "tokenContract";
3428
- readonly internalType: "address";
3429
- readonly type: "address";
3430
- }, {
3431
- readonly name: "tokenId";
3432
- readonly internalType: "uint256";
3433
- readonly type: "uint256";
3434
- }];
3435
- readonly name: "sale";
3436
- readonly outputs: readonly [{
3437
- readonly name: "";
3438
- readonly internalType: "struct IERC20Minter.SalesConfig";
3439
- readonly type: "tuple";
3440
- readonly components: readonly [{
3441
- readonly name: "saleStart";
3442
- readonly internalType: "uint64";
3443
- readonly type: "uint64";
3444
- }, {
3445
- readonly name: "saleEnd";
3446
- readonly internalType: "uint64";
3447
- readonly type: "uint64";
3448
- }, {
3449
- readonly name: "maxTokensPerAddress";
3450
- readonly internalType: "uint64";
3451
- readonly type: "uint64";
3452
- }, {
3453
- readonly name: "pricePerToken";
3454
- readonly internalType: "uint256";
3455
- readonly type: "uint256";
3456
- }, {
3457
- readonly name: "fundsRecipient";
3458
- readonly internalType: "address";
3459
- readonly type: "address";
3460
- }, {
3461
- readonly name: "currency";
3462
- readonly internalType: "address";
3463
- readonly type: "address";
3464
- }];
3465
- }];
3466
- }, {
3467
- readonly stateMutability: "nonpayable";
3468
- readonly type: "function";
3469
- readonly inputs: readonly [{
3470
- readonly name: "config";
3471
- readonly internalType: "struct IERC20Minter.ERC20MinterConfig";
3472
- readonly type: "tuple";
3473
- readonly components: readonly [{
3474
- readonly name: "zoraRewardRecipientAddress";
3475
- readonly internalType: "address";
3476
- readonly type: "address";
3477
- }, {
3478
- readonly name: "rewardRecipientPercentage";
3479
- readonly internalType: "uint256";
3480
- readonly type: "uint256";
3481
- }, {
3482
- readonly name: "ethReward";
3483
- readonly internalType: "uint256";
3484
- readonly type: "uint256";
3485
- }];
3486
- }];
3487
- readonly name: "setERC20MinterConfig";
3488
- readonly outputs: readonly [];
3489
- }, {
3490
- readonly stateMutability: "nonpayable";
3491
- readonly type: "function";
3492
- readonly inputs: readonly [{
3493
- readonly name: "tokenId";
3494
- readonly internalType: "uint256";
3495
- readonly type: "uint256";
3496
- }, {
3497
- readonly name: "encodedPremintSalesConfig";
3498
- readonly internalType: "bytes";
3499
- readonly type: "bytes";
3500
- }];
3501
- readonly name: "setPremintSale";
3502
- readonly outputs: readonly [];
3503
- }, {
3504
- readonly stateMutability: "nonpayable";
3505
- readonly type: "function";
3506
- readonly inputs: readonly [{
3507
- readonly name: "tokenId";
3508
- readonly internalType: "uint256";
3509
- readonly type: "uint256";
3510
- }, {
3511
- readonly name: "salesConfig";
3512
- readonly internalType: "struct IERC20Minter.SalesConfig";
3513
- readonly type: "tuple";
3514
- readonly components: readonly [{
3515
- readonly name: "saleStart";
3516
- readonly internalType: "uint64";
3517
- readonly type: "uint64";
3518
- }, {
3519
- readonly name: "saleEnd";
3520
- readonly internalType: "uint64";
3521
- readonly type: "uint64";
3522
- }, {
3523
- readonly name: "maxTokensPerAddress";
3524
- readonly internalType: "uint64";
3525
- readonly type: "uint64";
3526
- }, {
3527
- readonly name: "pricePerToken";
3528
- readonly internalType: "uint256";
3529
- readonly type: "uint256";
3530
- }, {
3531
- readonly name: "fundsRecipient";
3532
- readonly internalType: "address";
3533
- readonly type: "address";
3534
- }, {
3535
- readonly name: "currency";
3536
- readonly internalType: "address";
3537
- readonly type: "address";
3538
- }];
3539
- }];
3540
- readonly name: "setSale";
3541
- readonly outputs: readonly [];
3542
- }, {
3543
- readonly stateMutability: "pure";
3544
- readonly type: "function";
3545
- readonly inputs: readonly [{
3546
- readonly name: "interfaceId";
3547
- readonly internalType: "bytes4";
3548
- readonly type: "bytes4";
3549
- }];
3550
- readonly name: "supportsInterface";
3551
- readonly outputs: readonly [{
3552
- readonly name: "";
3553
- readonly internalType: "bool";
3554
- readonly type: "bool";
3555
- }];
3556
- }, {
3557
- readonly stateMutability: "view";
3558
- readonly type: "function";
3559
- readonly inputs: readonly [];
3560
- readonly name: "totalRewardPct";
3561
- readonly outputs: readonly [{
3562
- readonly name: "";
3563
- readonly internalType: "uint256";
3564
- readonly type: "uint256";
3565
- }];
3566
- }, {
3567
- readonly stateMutability: "nonpayable";
3568
- readonly type: "function";
3569
- readonly inputs: readonly [{
3570
- readonly name: "_newOwner";
3571
- readonly internalType: "address";
3572
- readonly type: "address";
3573
- }];
3574
- readonly name: "transferOwnership";
3575
- readonly outputs: readonly [];
3576
- }, {
3577
- readonly type: "event";
3578
- readonly anonymous: false;
3579
- readonly inputs: readonly [{
3580
- readonly name: "config";
3581
- readonly internalType: "struct IERC20Minter.ERC20MinterConfig";
3582
- readonly type: "tuple";
3583
- readonly components: readonly [{
3584
- readonly name: "zoraRewardRecipientAddress";
3585
- readonly internalType: "address";
3586
- readonly type: "address";
3587
- }, {
3588
- readonly name: "rewardRecipientPercentage";
3589
- readonly internalType: "uint256";
3590
- readonly type: "uint256";
3591
- }, {
3592
- readonly name: "ethReward";
3593
- readonly internalType: "uint256";
3594
- readonly type: "uint256";
3595
- }];
3596
- readonly indexed: false;
3597
- }];
3598
- readonly name: "ERC20MinterConfigSet";
3599
- }, {
3600
- readonly type: "event";
3601
- readonly anonymous: false;
3602
- readonly inputs: readonly [{
3603
- readonly name: "createReferral";
3604
- readonly internalType: "address";
3605
- readonly type: "address";
3606
- readonly indexed: true;
3607
- }, {
3608
- readonly name: "mintReferral";
3609
- readonly internalType: "address";
3610
- readonly type: "address";
3611
- readonly indexed: true;
3612
- }, {
3613
- readonly name: "firstMinter";
3614
- readonly internalType: "address";
3615
- readonly type: "address";
3616
- readonly indexed: true;
3617
- }, {
3618
- readonly name: "zora";
3619
- readonly internalType: "address";
3620
- readonly type: "address";
3621
- readonly indexed: false;
3622
- }, {
3623
- readonly name: "collection";
3624
- readonly internalType: "address";
3625
- readonly type: "address";
3626
- readonly indexed: false;
3627
- }, {
3628
- readonly name: "currency";
3629
- readonly internalType: "address";
3630
- readonly type: "address";
3631
- readonly indexed: false;
3632
- }, {
3633
- readonly name: "tokenId";
3634
- readonly internalType: "uint256";
3635
- readonly type: "uint256";
3636
- readonly indexed: false;
3637
- }, {
3638
- readonly name: "createReferralReward";
3639
- readonly internalType: "uint256";
3640
- readonly type: "uint256";
3641
- readonly indexed: false;
3642
- }, {
3643
- readonly name: "mintReferralReward";
3644
- readonly internalType: "uint256";
3645
- readonly type: "uint256";
3646
- readonly indexed: false;
3647
- }, {
3648
- readonly name: "firstMinterReward";
3649
- readonly internalType: "uint256";
3650
- readonly type: "uint256";
3651
- readonly indexed: false;
3652
- }, {
3653
- readonly name: "zoraReward";
3654
- readonly internalType: "uint256";
3655
- readonly type: "uint256";
3656
- readonly indexed: false;
3657
- }];
3658
- readonly name: "ERC20RewardsDeposit";
3659
- }, {
3660
- readonly type: "event";
3661
- readonly anonymous: false;
3662
- readonly inputs: readonly [{
3663
- readonly name: "version";
3664
- readonly internalType: "uint8";
3665
- readonly type: "uint8";
3666
- readonly indexed: false;
3667
- }];
3668
- readonly name: "Initialized";
3669
- }, {
3670
- readonly type: "event";
3671
- readonly anonymous: false;
3672
- readonly inputs: readonly [{
3673
- readonly name: "sender";
3674
- readonly internalType: "address";
3675
- readonly type: "address";
3676
- readonly indexed: true;
3677
- }, {
3678
- readonly name: "tokenContract";
3679
- readonly internalType: "address";
3680
- readonly type: "address";
3681
- readonly indexed: true;
3682
- }, {
3683
- readonly name: "tokenId";
3684
- readonly internalType: "uint256";
3685
- readonly type: "uint256";
3686
- readonly indexed: true;
3687
- }, {
3688
- readonly name: "quantity";
3689
- readonly internalType: "uint256";
3690
- readonly type: "uint256";
3691
- readonly indexed: false;
3692
- }, {
3693
- readonly name: "comment";
3694
- readonly internalType: "string";
3695
- readonly type: "string";
3696
- readonly indexed: false;
3697
- }];
3698
- readonly name: "MintComment";
3699
- }, {
3700
- readonly type: "event";
3701
- readonly anonymous: false;
3702
- readonly inputs: readonly [{
3703
- readonly name: "owner";
3704
- readonly internalType: "address";
3705
- readonly type: "address";
3706
- readonly indexed: true;
3707
- }, {
3708
- readonly name: "canceledOwner";
3709
- readonly internalType: "address";
3710
- readonly type: "address";
3711
- readonly indexed: true;
3712
- }];
3713
- readonly name: "OwnerCanceled";
3714
- }, {
3715
- readonly type: "event";
3716
- readonly anonymous: false;
3717
- readonly inputs: readonly [{
3718
- readonly name: "owner";
3719
- readonly internalType: "address";
3720
- readonly type: "address";
3721
- readonly indexed: true;
3722
- }, {
3723
- readonly name: "pendingOwner";
3724
- readonly internalType: "address";
3725
- readonly type: "address";
3726
- readonly indexed: true;
3727
- }];
3728
- readonly name: "OwnerPending";
3729
- }, {
3730
- readonly type: "event";
3731
- readonly anonymous: false;
3732
- readonly inputs: readonly [{
3733
- readonly name: "prevOwner";
3734
- readonly internalType: "address";
3735
- readonly type: "address";
3736
- readonly indexed: true;
3737
- }, {
3738
- readonly name: "newOwner";
3739
- readonly internalType: "address";
3740
- readonly type: "address";
3741
- readonly indexed: true;
3742
- }];
3743
- readonly name: "OwnerUpdated";
3744
- }, {
3745
- readonly type: "event";
3746
- readonly anonymous: false;
3747
- readonly inputs: readonly [{
3748
- readonly name: "mediaContract";
3749
- readonly internalType: "address";
3750
- readonly type: "address";
3751
- readonly indexed: true;
3752
- }, {
3753
- readonly name: "tokenId";
3754
- readonly internalType: "uint256";
3755
- readonly type: "uint256";
3756
- readonly indexed: true;
3757
- }, {
3758
- readonly name: "salesConfig";
3759
- readonly internalType: "struct IERC20Minter.SalesConfig";
3760
- readonly type: "tuple";
3761
- readonly components: readonly [{
3762
- readonly name: "saleStart";
3763
- readonly internalType: "uint64";
3764
- readonly type: "uint64";
3765
- }, {
3766
- readonly name: "saleEnd";
3767
- readonly internalType: "uint64";
3768
- readonly type: "uint64";
3769
- }, {
3770
- readonly name: "maxTokensPerAddress";
3771
- readonly internalType: "uint64";
3772
- readonly type: "uint64";
3773
- }, {
3774
- readonly name: "pricePerToken";
3775
- readonly internalType: "uint256";
3776
- readonly type: "uint256";
3777
- }, {
3778
- readonly name: "fundsRecipient";
3779
- readonly internalType: "address";
3780
- readonly type: "address";
3781
- }, {
3782
- readonly name: "currency";
3783
- readonly internalType: "address";
3784
- readonly type: "address";
3785
- }];
3786
- readonly indexed: false;
3787
- }];
3788
- readonly name: "SaleSet";
3789
- }, {
3790
- readonly type: "error";
3791
- readonly inputs: readonly [];
3792
- readonly name: "AddressZero";
3793
- }, {
3794
- readonly type: "error";
3795
- readonly inputs: readonly [];
3796
- readonly name: "ERC20TransferSlippage";
3797
- }, {
3798
- readonly type: "error";
3799
- readonly inputs: readonly [];
3800
- readonly name: "FailedToSendEthReward";
3801
- }, {
3802
- readonly type: "error";
3803
- readonly inputs: readonly [];
3804
- readonly name: "INITIALIZABLE_CONTRACT_ALREADY_INITIALIZED";
3805
- }, {
3806
- readonly type: "error";
3807
- readonly inputs: readonly [];
3808
- readonly name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING";
3809
- }, {
3810
- readonly type: "error";
3811
- readonly inputs: readonly [];
3812
- readonly name: "InvalidCurrency";
3813
- }, {
3814
- readonly type: "error";
3815
- readonly inputs: readonly [{
3816
- readonly name: "expectedValue";
3817
- readonly internalType: "uint256";
3818
- readonly type: "uint256";
3819
- }, {
3820
- readonly name: "actualValue";
3821
- readonly internalType: "uint256";
3822
- readonly type: "uint256";
3823
- }];
3824
- readonly name: "InvalidETHValue";
3825
- }, {
3826
- readonly type: "error";
3827
- readonly inputs: readonly [];
3828
- readonly name: "InvalidValue";
3829
- }, {
3830
- readonly type: "error";
3831
- readonly inputs: readonly [];
3832
- readonly name: "ONLY_OWNER";
3833
- }, {
3834
- readonly type: "error";
3835
- readonly inputs: readonly [];
3836
- readonly name: "ONLY_PENDING_OWNER";
3837
- }, {
3838
- readonly type: "error";
3839
- readonly inputs: readonly [];
3840
- readonly name: "OWNER_CANNOT_BE_ZERO_ADDRESS";
3841
- }, {
3842
- readonly type: "error";
3843
- readonly inputs: readonly [];
3844
- readonly name: "PricePerTokenTooLow";
3845
- }, {
3846
- readonly type: "error";
3847
- readonly inputs: readonly [];
3848
- readonly name: "RequestMintInvalidUseMint";
3849
- }, {
3850
- readonly type: "error";
3851
- readonly inputs: readonly [];
3852
- readonly name: "SaleEnded";
3853
- }, {
3854
- readonly type: "error";
3855
- readonly inputs: readonly [];
3856
- readonly name: "SaleHasNotStarted";
3857
- }, {
3858
- readonly type: "error";
3859
- readonly inputs: readonly [{
3860
- readonly name: "user";
3861
- readonly internalType: "address";
3862
- readonly type: "address";
3863
- }, {
3864
- readonly name: "limit";
3865
- readonly internalType: "uint256";
3866
- readonly type: "uint256";
3867
- }, {
3868
- readonly name: "requestedAmount";
3869
- readonly internalType: "uint256";
3870
- readonly type: "uint256";
3871
- }];
3872
- readonly name: "UserExceedsMintLimit";
3873
- }, {
3874
- readonly type: "error";
3875
- readonly inputs: readonly [];
3876
- readonly name: "WrongValueSent";
3877
- }], "mint", [`0x${string}`, bigint, `0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`, string], import("viem").Chain, import("viem").Chain | undefined, `0x${string}` | {
3878
- address: `0x${string}`;
3879
- type: "json-rpc";
3880
- experimental_signAuthMessage?: undefined;
3881
- signMessage?: undefined;
3882
- signTransaction?: undefined;
3883
- signTypedData?: undefined;
3884
- publicKey?: undefined;
3885
- source?: undefined;
3886
- } | {
3887
- address: `0x${string}`;
3888
- experimental_signAuthMessage?: ((parameters: import("viem/_types/experimental/eip3074/utils/toAuthMessage").ToAuthMessageParameters) => Promise<`0x${string}`>) | undefined;
3889
- signMessage: ({ message }: {
3890
- message: import("viem").SignableMessage;
3891
- }) => Promise<`0x${string}`>;
3892
- signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, args?: {
3893
- serializer?: serializer | undefined;
3894
- } | undefined) => Promise<import("viem/_types/types/utils").IsNarrowable<import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>>, `0x${string}`> extends true ? import("viem").TransactionSerialized<import("viem").GetTransactionType<transaction>> : `0x${string}`>;
3895
- signTypedData: <const typedData extends Record<string, unknown> | {
3896
- [x: string]: readonly import("viem").TypedDataParameter[];
3897
- [x: `string[${string}]`]: undefined;
3898
- [x: `function[${string}]`]: undefined;
3899
- [x: `address[${string}]`]: undefined;
3900
- [x: `bool[${string}]`]: undefined;
3901
- [x: `bytes[${string}]`]: undefined;
3902
- [x: `bytes21[${string}]`]: undefined;
3903
- [x: `bytes1[${string}]`]: undefined;
3904
- [x: `bytes2[${string}]`]: undefined;
3905
- [x: `bytes3[${string}]`]: undefined;
3906
- [x: `bytes4[${string}]`]: undefined;
3907
- [x: `bytes5[${string}]`]: undefined;
3908
- [x: `bytes6[${string}]`]: undefined;
3909
- [x: `bytes7[${string}]`]: undefined;
3910
- [x: `bytes8[${string}]`]: undefined;
3911
- [x: `bytes9[${string}]`]: undefined;
3912
- [x: `bytes10[${string}]`]: undefined;
3913
- [x: `bytes11[${string}]`]: undefined;
3914
- [x: `bytes12[${string}]`]: undefined;
3915
- [x: `bytes13[${string}]`]: undefined;
3916
- [x: `bytes14[${string}]`]: undefined;
3917
- [x: `bytes15[${string}]`]: undefined;
3918
- [x: `bytes16[${string}]`]: undefined;
3919
- [x: `bytes17[${string}]`]: undefined;
3920
- [x: `bytes18[${string}]`]: undefined;
3921
- [x: `bytes19[${string}]`]: undefined;
3922
- [x: `bytes20[${string}]`]: undefined;
3923
- [x: `bytes22[${string}]`]: undefined;
3924
- [x: `bytes23[${string}]`]: undefined;
3925
- [x: `bytes24[${string}]`]: undefined;
3926
- [x: `bytes25[${string}]`]: undefined;
3927
- [x: `bytes26[${string}]`]: undefined;
3928
- [x: `bytes27[${string}]`]: undefined;
3929
- [x: `bytes28[${string}]`]: undefined;
3930
- [x: `bytes29[${string}]`]: undefined;
3931
- [x: `bytes30[${string}]`]: undefined;
3932
- [x: `bytes31[${string}]`]: undefined;
3933
- [x: `bytes32[${string}]`]: undefined;
3934
- [x: `int[${string}]`]: undefined;
3935
- [x: `int8[${string}]`]: undefined;
3936
- [x: `int16[${string}]`]: undefined;
3937
- [x: `int24[${string}]`]: undefined;
3938
- [x: `int32[${string}]`]: undefined;
3939
- [x: `int40[${string}]`]: undefined;
3940
- [x: `int48[${string}]`]: undefined;
3941
- [x: `int56[${string}]`]: undefined;
3942
- [x: `int64[${string}]`]: undefined;
3943
- [x: `int72[${string}]`]: undefined;
3944
- [x: `int80[${string}]`]: undefined;
3945
- [x: `int88[${string}]`]: undefined;
3946
- [x: `int96[${string}]`]: undefined;
3947
- [x: `int104[${string}]`]: undefined;
3948
- [x: `int112[${string}]`]: undefined;
3949
- [x: `int120[${string}]`]: undefined;
3950
- [x: `int128[${string}]`]: undefined;
3951
- [x: `int136[${string}]`]: undefined;
3952
- [x: `int144[${string}]`]: undefined;
3953
- [x: `int152[${string}]`]: undefined;
3954
- [x: `int160[${string}]`]: undefined;
3955
- [x: `int168[${string}]`]: undefined;
3956
- [x: `int176[${string}]`]: undefined;
3957
- [x: `int184[${string}]`]: undefined;
3958
- [x: `int192[${string}]`]: undefined;
3959
- [x: `int200[${string}]`]: undefined;
3960
- [x: `int208[${string}]`]: undefined;
3961
- [x: `int216[${string}]`]: undefined;
3962
- [x: `int224[${string}]`]: undefined;
3963
- [x: `int232[${string}]`]: undefined;
3964
- [x: `int240[${string}]`]: undefined;
3965
- [x: `int248[${string}]`]: undefined;
3966
- [x: `int256[${string}]`]: undefined;
3967
- [x: `uint[${string}]`]: undefined;
3968
- [x: `uint8[${string}]`]: undefined;
3969
- [x: `uint16[${string}]`]: undefined;
3970
- [x: `uint24[${string}]`]: undefined;
3971
- [x: `uint32[${string}]`]: undefined;
3972
- [x: `uint40[${string}]`]: undefined;
3973
- [x: `uint48[${string}]`]: undefined;
3974
- [x: `uint56[${string}]`]: undefined;
3975
- [x: `uint64[${string}]`]: undefined;
3976
- [x: `uint72[${string}]`]: undefined;
3977
- [x: `uint80[${string}]`]: undefined;
3978
- [x: `uint88[${string}]`]: undefined;
3979
- [x: `uint96[${string}]`]: undefined;
3980
- [x: `uint104[${string}]`]: undefined;
3981
- [x: `uint112[${string}]`]: undefined;
3982
- [x: `uint120[${string}]`]: undefined;
3983
- [x: `uint128[${string}]`]: undefined;
3984
- [x: `uint136[${string}]`]: undefined;
3985
- [x: `uint144[${string}]`]: undefined;
3986
- [x: `uint152[${string}]`]: undefined;
3987
- [x: `uint160[${string}]`]: undefined;
3988
- [x: `uint168[${string}]`]: undefined;
3989
- [x: `uint176[${string}]`]: undefined;
3990
- [x: `uint184[${string}]`]: undefined;
3991
- [x: `uint192[${string}]`]: undefined;
3992
- [x: `uint200[${string}]`]: undefined;
3993
- [x: `uint208[${string}]`]: undefined;
3994
- [x: `uint216[${string}]`]: undefined;
3995
- [x: `uint224[${string}]`]: undefined;
3996
- [x: `uint232[${string}]`]: undefined;
3997
- [x: `uint240[${string}]`]: undefined;
3998
- [x: `uint248[${string}]`]: undefined;
3999
- [x: `uint256[${string}]`]: undefined;
4000
- string?: undefined;
4001
- address?: undefined;
4002
- bool?: undefined;
4003
- bytes?: undefined;
4004
- bytes21?: undefined;
4005
- bytes1?: undefined;
4006
- bytes2?: undefined;
4007
- bytes3?: undefined;
4008
- bytes4?: undefined;
4009
- bytes5?: undefined;
4010
- bytes6?: undefined;
4011
- bytes7?: undefined;
4012
- bytes8?: undefined;
4013
- bytes9?: undefined;
4014
- bytes10?: undefined;
4015
- bytes11?: undefined;
4016
- bytes12?: undefined;
4017
- bytes13?: undefined;
4018
- bytes14?: undefined;
4019
- bytes15?: undefined;
4020
- bytes16?: undefined;
4021
- bytes17?: undefined;
4022
- bytes18?: undefined;
4023
- bytes19?: undefined;
4024
- bytes20?: undefined;
4025
- bytes22?: undefined;
4026
- bytes23?: undefined;
4027
- bytes24?: undefined;
4028
- bytes25?: undefined;
4029
- bytes26?: undefined;
4030
- bytes27?: undefined;
4031
- bytes28?: undefined;
4032
- bytes29?: undefined;
4033
- bytes30?: undefined;
4034
- bytes31?: undefined;
4035
- bytes32?: undefined;
4036
- int8?: undefined;
4037
- int16?: undefined;
4038
- int24?: undefined;
4039
- int32?: undefined;
4040
- int40?: undefined;
4041
- int48?: undefined;
4042
- int56?: undefined;
4043
- int64?: undefined;
4044
- int72?: undefined;
4045
- int80?: undefined;
4046
- int88?: undefined;
4047
- int96?: undefined;
4048
- int104?: undefined;
4049
- int112?: undefined;
4050
- int120?: undefined;
4051
- int128?: undefined;
4052
- int136?: undefined;
4053
- int144?: undefined;
4054
- int152?: undefined;
4055
- int160?: undefined;
4056
- int168?: undefined;
4057
- int176?: undefined;
4058
- int184?: undefined;
4059
- int192?: undefined;
4060
- int200?: undefined;
4061
- int208?: undefined;
4062
- int216?: undefined;
4063
- int224?: undefined;
4064
- int232?: undefined;
4065
- int240?: undefined;
4066
- int248?: undefined;
4067
- int256?: undefined;
4068
- uint8?: undefined;
4069
- uint16?: undefined;
4070
- uint24?: undefined;
4071
- uint32?: undefined;
4072
- uint40?: undefined;
4073
- uint48?: undefined;
4074
- uint56?: undefined;
4075
- uint64?: undefined;
4076
- uint72?: undefined;
4077
- uint80?: undefined;
4078
- uint88?: undefined;
4079
- uint96?: undefined;
4080
- uint104?: undefined;
4081
- uint112?: undefined;
4082
- uint120?: undefined;
4083
- uint128?: undefined;
4084
- uint136?: undefined;
4085
- uint144?: undefined;
4086
- uint152?: undefined;
4087
- uint160?: undefined;
4088
- uint168?: undefined;
4089
- uint176?: undefined;
4090
- uint184?: undefined;
4091
- uint192?: undefined;
4092
- uint200?: undefined;
4093
- uint208?: undefined;
4094
- uint216?: undefined;
4095
- uint224?: undefined;
4096
- uint232?: undefined;
4097
- uint240?: undefined;
4098
- uint248?: undefined;
4099
- uint256?: undefined;
4100
- }, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(typedDataDefinition: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
4101
- publicKey: `0x${string}`;
4102
- source: string;
4103
- type: "local";
4104
- }>;
4105
62
  export {};
4106
63
  //# sourceMappingURL=mint-client.d.ts.map