@gitmyabi/number 0.0.0-stage → 1.0.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.
- package/README.md +107 -2
- package/contracts/LazySovereignNFT_json.d.ts +1598 -0
- package/contracts/LazySovereignNFT_json.js +1614 -0
- package/contracts/LazySovereignNFT_json.ts +2110 -0
- package/contracts/index.d.ts +2 -0
- package/contracts/index.js +7 -0
- package/contracts/index.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +40 -3
|
@@ -0,0 +1,1598 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* LazySovereignNFT.MintConfig struct type
|
|
4
|
+
*/
|
|
5
|
+
export type LazySovereignNFT_MintConfig = {
|
|
6
|
+
numberOfTokens: bigint;
|
|
7
|
+
baseURI: string;
|
|
8
|
+
lockedMetadata: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* LazySovereignNFT_json ABI
|
|
12
|
+
*
|
|
13
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
14
|
+
*/
|
|
15
|
+
export declare const LazySovereignNFT_jsonAbi: readonly [{
|
|
16
|
+
readonly anonymous: false;
|
|
17
|
+
readonly inputs: readonly [{
|
|
18
|
+
readonly indexed: true;
|
|
19
|
+
readonly internalType: "address";
|
|
20
|
+
readonly name: "owner";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}, {
|
|
23
|
+
readonly indexed: true;
|
|
24
|
+
readonly internalType: "address";
|
|
25
|
+
readonly name: "approved";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
}, {
|
|
28
|
+
readonly indexed: true;
|
|
29
|
+
readonly internalType: "uint256";
|
|
30
|
+
readonly name: "tokenId";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}];
|
|
33
|
+
readonly name: "Approval";
|
|
34
|
+
readonly type: "event";
|
|
35
|
+
}, {
|
|
36
|
+
readonly anonymous: false;
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly indexed: true;
|
|
39
|
+
readonly internalType: "address";
|
|
40
|
+
readonly name: "owner";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
}, {
|
|
43
|
+
readonly indexed: true;
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
readonly name: "operator";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}, {
|
|
48
|
+
readonly indexed: false;
|
|
49
|
+
readonly internalType: "bool";
|
|
50
|
+
readonly name: "approved";
|
|
51
|
+
readonly type: "bool";
|
|
52
|
+
}];
|
|
53
|
+
readonly name: "ApprovalForAll";
|
|
54
|
+
readonly type: "event";
|
|
55
|
+
}, {
|
|
56
|
+
readonly anonymous: false;
|
|
57
|
+
readonly inputs: readonly [{
|
|
58
|
+
readonly indexed: true;
|
|
59
|
+
readonly internalType: "address";
|
|
60
|
+
readonly name: "user";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
}];
|
|
63
|
+
readonly name: "ContractDisabled";
|
|
64
|
+
readonly type: "event";
|
|
65
|
+
}, {
|
|
66
|
+
readonly anonymous: false;
|
|
67
|
+
readonly inputs: readonly [{
|
|
68
|
+
readonly indexed: false;
|
|
69
|
+
readonly internalType: "uint8";
|
|
70
|
+
readonly name: "version";
|
|
71
|
+
readonly type: "uint8";
|
|
72
|
+
}];
|
|
73
|
+
readonly name: "Initialized";
|
|
74
|
+
readonly type: "event";
|
|
75
|
+
}, {
|
|
76
|
+
readonly anonymous: false;
|
|
77
|
+
readonly inputs: readonly [{
|
|
78
|
+
readonly indexed: false;
|
|
79
|
+
readonly internalType: "string";
|
|
80
|
+
readonly name: "baseURI";
|
|
81
|
+
readonly type: "string";
|
|
82
|
+
}];
|
|
83
|
+
readonly name: "MetadataLocked";
|
|
84
|
+
readonly type: "event";
|
|
85
|
+
}, {
|
|
86
|
+
readonly anonymous: false;
|
|
87
|
+
readonly inputs: readonly [{
|
|
88
|
+
readonly indexed: false;
|
|
89
|
+
readonly internalType: "string";
|
|
90
|
+
readonly name: "baseURI";
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
}];
|
|
93
|
+
readonly name: "MetadataUpdated";
|
|
94
|
+
readonly type: "event";
|
|
95
|
+
}, {
|
|
96
|
+
readonly anonymous: false;
|
|
97
|
+
readonly inputs: readonly [{
|
|
98
|
+
readonly indexed: true;
|
|
99
|
+
readonly internalType: "address";
|
|
100
|
+
readonly name: "previousOwner";
|
|
101
|
+
readonly type: "address";
|
|
102
|
+
}, {
|
|
103
|
+
readonly indexed: true;
|
|
104
|
+
readonly internalType: "address";
|
|
105
|
+
readonly name: "newOwner";
|
|
106
|
+
readonly type: "address";
|
|
107
|
+
}];
|
|
108
|
+
readonly name: "OwnershipTransferred";
|
|
109
|
+
readonly type: "event";
|
|
110
|
+
}, {
|
|
111
|
+
readonly anonymous: false;
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly indexed: true;
|
|
114
|
+
readonly internalType: "uint256";
|
|
115
|
+
readonly name: "numberOfTokens";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
}, {
|
|
118
|
+
readonly indexed: false;
|
|
119
|
+
readonly internalType: "string";
|
|
120
|
+
readonly name: "baseURI";
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
}];
|
|
123
|
+
readonly name: "PrepareMint";
|
|
124
|
+
readonly type: "event";
|
|
125
|
+
}, {
|
|
126
|
+
readonly anonymous: false;
|
|
127
|
+
readonly inputs: readonly [{
|
|
128
|
+
readonly indexed: true;
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
readonly name: "tokenId";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
}, {
|
|
133
|
+
readonly indexed: false;
|
|
134
|
+
readonly internalType: "string";
|
|
135
|
+
readonly name: "metadataUri";
|
|
136
|
+
readonly type: "string";
|
|
137
|
+
}];
|
|
138
|
+
readonly name: "TokenURIUpdated";
|
|
139
|
+
readonly type: "event";
|
|
140
|
+
}, {
|
|
141
|
+
readonly anonymous: false;
|
|
142
|
+
readonly inputs: readonly [{
|
|
143
|
+
readonly indexed: true;
|
|
144
|
+
readonly internalType: "address";
|
|
145
|
+
readonly name: "from";
|
|
146
|
+
readonly type: "address";
|
|
147
|
+
}, {
|
|
148
|
+
readonly indexed: true;
|
|
149
|
+
readonly internalType: "address";
|
|
150
|
+
readonly name: "to";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
}, {
|
|
153
|
+
readonly indexed: true;
|
|
154
|
+
readonly internalType: "uint256";
|
|
155
|
+
readonly name: "tokenId";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
}];
|
|
158
|
+
readonly name: "Transfer";
|
|
159
|
+
readonly type: "event";
|
|
160
|
+
}, {
|
|
161
|
+
readonly inputs: readonly [{
|
|
162
|
+
readonly internalType: "address";
|
|
163
|
+
readonly name: "to";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
}, {
|
|
166
|
+
readonly internalType: "uint256";
|
|
167
|
+
readonly name: "tokenId";
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
}];
|
|
170
|
+
readonly name: "approve";
|
|
171
|
+
readonly outputs: readonly [];
|
|
172
|
+
readonly stateMutability: "nonpayable";
|
|
173
|
+
readonly type: "function";
|
|
174
|
+
}, {
|
|
175
|
+
readonly inputs: readonly [{
|
|
176
|
+
readonly internalType: "address";
|
|
177
|
+
readonly name: "owner";
|
|
178
|
+
readonly type: "address";
|
|
179
|
+
}];
|
|
180
|
+
readonly name: "balanceOf";
|
|
181
|
+
readonly outputs: readonly [{
|
|
182
|
+
readonly internalType: "uint256";
|
|
183
|
+
readonly name: "";
|
|
184
|
+
readonly type: "uint256";
|
|
185
|
+
}];
|
|
186
|
+
readonly stateMutability: "view";
|
|
187
|
+
readonly type: "function";
|
|
188
|
+
}, {
|
|
189
|
+
readonly inputs: readonly [{
|
|
190
|
+
readonly internalType: "uint256";
|
|
191
|
+
readonly name: "tokenId";
|
|
192
|
+
readonly type: "uint256";
|
|
193
|
+
}];
|
|
194
|
+
readonly name: "burn";
|
|
195
|
+
readonly outputs: readonly [];
|
|
196
|
+
readonly stateMutability: "nonpayable";
|
|
197
|
+
readonly type: "function";
|
|
198
|
+
}, {
|
|
199
|
+
readonly inputs: readonly [{
|
|
200
|
+
readonly internalType: "uint256";
|
|
201
|
+
readonly name: "_tokenId";
|
|
202
|
+
readonly type: "uint256";
|
|
203
|
+
}];
|
|
204
|
+
readonly name: "deleteToken";
|
|
205
|
+
readonly outputs: readonly [];
|
|
206
|
+
readonly stateMutability: "nonpayable";
|
|
207
|
+
readonly type: "function";
|
|
208
|
+
}, {
|
|
209
|
+
readonly inputs: readonly [];
|
|
210
|
+
readonly name: "disableContract";
|
|
211
|
+
readonly outputs: readonly [];
|
|
212
|
+
readonly stateMutability: "nonpayable";
|
|
213
|
+
readonly type: "function";
|
|
214
|
+
}, {
|
|
215
|
+
readonly inputs: readonly [];
|
|
216
|
+
readonly name: "disabled";
|
|
217
|
+
readonly outputs: readonly [{
|
|
218
|
+
readonly internalType: "bool";
|
|
219
|
+
readonly name: "";
|
|
220
|
+
readonly type: "bool";
|
|
221
|
+
}];
|
|
222
|
+
readonly stateMutability: "view";
|
|
223
|
+
readonly type: "function";
|
|
224
|
+
}, {
|
|
225
|
+
readonly inputs: readonly [{
|
|
226
|
+
readonly internalType: "uint256";
|
|
227
|
+
readonly name: "tokenId";
|
|
228
|
+
readonly type: "uint256";
|
|
229
|
+
}];
|
|
230
|
+
readonly name: "getApproved";
|
|
231
|
+
readonly outputs: readonly [{
|
|
232
|
+
readonly internalType: "address";
|
|
233
|
+
readonly name: "";
|
|
234
|
+
readonly type: "address";
|
|
235
|
+
}];
|
|
236
|
+
readonly stateMutability: "view";
|
|
237
|
+
readonly type: "function";
|
|
238
|
+
}, {
|
|
239
|
+
readonly inputs: readonly [];
|
|
240
|
+
readonly name: "getDefaultRoyaltyPercentage";
|
|
241
|
+
readonly outputs: readonly [{
|
|
242
|
+
readonly internalType: "uint256";
|
|
243
|
+
readonly name: "";
|
|
244
|
+
readonly type: "uint256";
|
|
245
|
+
}];
|
|
246
|
+
readonly stateMutability: "view";
|
|
247
|
+
readonly type: "function";
|
|
248
|
+
}, {
|
|
249
|
+
readonly inputs: readonly [];
|
|
250
|
+
readonly name: "getDefaultRoyaltyReceiver";
|
|
251
|
+
readonly outputs: readonly [{
|
|
252
|
+
readonly internalType: "address";
|
|
253
|
+
readonly name: "";
|
|
254
|
+
readonly type: "address";
|
|
255
|
+
}];
|
|
256
|
+
readonly stateMutability: "view";
|
|
257
|
+
readonly type: "function";
|
|
258
|
+
}, {
|
|
259
|
+
readonly inputs: readonly [];
|
|
260
|
+
readonly name: "getMintConfig";
|
|
261
|
+
readonly outputs: readonly [{
|
|
262
|
+
readonly components: readonly [{
|
|
263
|
+
readonly internalType: "uint256";
|
|
264
|
+
readonly name: "numberOfTokens";
|
|
265
|
+
readonly type: "uint256";
|
|
266
|
+
}, {
|
|
267
|
+
readonly internalType: "string";
|
|
268
|
+
readonly name: "baseURI";
|
|
269
|
+
readonly type: "string";
|
|
270
|
+
}, {
|
|
271
|
+
readonly internalType: "bool";
|
|
272
|
+
readonly name: "lockedMetadata";
|
|
273
|
+
readonly type: "bool";
|
|
274
|
+
}];
|
|
275
|
+
readonly internalType: "struct LazySovereignNFT.MintConfig";
|
|
276
|
+
readonly name: "";
|
|
277
|
+
readonly type: "tuple";
|
|
278
|
+
}];
|
|
279
|
+
readonly stateMutability: "view";
|
|
280
|
+
readonly type: "function";
|
|
281
|
+
}, {
|
|
282
|
+
readonly inputs: readonly [{
|
|
283
|
+
readonly internalType: "string";
|
|
284
|
+
readonly name: "_name";
|
|
285
|
+
readonly type: "string";
|
|
286
|
+
}, {
|
|
287
|
+
readonly internalType: "string";
|
|
288
|
+
readonly name: "_symbol";
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
}, {
|
|
291
|
+
readonly internalType: "address";
|
|
292
|
+
readonly name: "_creator";
|
|
293
|
+
readonly type: "address";
|
|
294
|
+
}, {
|
|
295
|
+
readonly internalType: "uint256";
|
|
296
|
+
readonly name: "_maxTokens";
|
|
297
|
+
readonly type: "uint256";
|
|
298
|
+
}];
|
|
299
|
+
readonly name: "init";
|
|
300
|
+
readonly outputs: readonly [];
|
|
301
|
+
readonly stateMutability: "nonpayable";
|
|
302
|
+
readonly type: "function";
|
|
303
|
+
}, {
|
|
304
|
+
readonly inputs: readonly [{
|
|
305
|
+
readonly internalType: "address";
|
|
306
|
+
readonly name: "owner";
|
|
307
|
+
readonly type: "address";
|
|
308
|
+
}, {
|
|
309
|
+
readonly internalType: "address";
|
|
310
|
+
readonly name: "operator";
|
|
311
|
+
readonly type: "address";
|
|
312
|
+
}];
|
|
313
|
+
readonly name: "isApprovedForAll";
|
|
314
|
+
readonly outputs: readonly [{
|
|
315
|
+
readonly internalType: "bool";
|
|
316
|
+
readonly name: "";
|
|
317
|
+
readonly type: "bool";
|
|
318
|
+
}];
|
|
319
|
+
readonly stateMutability: "view";
|
|
320
|
+
readonly type: "function";
|
|
321
|
+
}, {
|
|
322
|
+
readonly inputs: readonly [{
|
|
323
|
+
readonly internalType: "address";
|
|
324
|
+
readonly name: "_address";
|
|
325
|
+
readonly type: "address";
|
|
326
|
+
}];
|
|
327
|
+
readonly name: "isApprovedMinter";
|
|
328
|
+
readonly outputs: readonly [{
|
|
329
|
+
readonly internalType: "bool";
|
|
330
|
+
readonly name: "";
|
|
331
|
+
readonly type: "bool";
|
|
332
|
+
}];
|
|
333
|
+
readonly stateMutability: "view";
|
|
334
|
+
readonly type: "function";
|
|
335
|
+
}, {
|
|
336
|
+
readonly inputs: readonly [];
|
|
337
|
+
readonly name: "lockBaseURI";
|
|
338
|
+
readonly outputs: readonly [];
|
|
339
|
+
readonly stateMutability: "nonpayable";
|
|
340
|
+
readonly type: "function";
|
|
341
|
+
}, {
|
|
342
|
+
readonly inputs: readonly [];
|
|
343
|
+
readonly name: "maxTokens";
|
|
344
|
+
readonly outputs: readonly [{
|
|
345
|
+
readonly internalType: "uint256";
|
|
346
|
+
readonly name: "";
|
|
347
|
+
readonly type: "uint256";
|
|
348
|
+
}];
|
|
349
|
+
readonly stateMutability: "view";
|
|
350
|
+
readonly type: "function";
|
|
351
|
+
}, {
|
|
352
|
+
readonly inputs: readonly [{
|
|
353
|
+
readonly internalType: "address";
|
|
354
|
+
readonly name: "_receiver";
|
|
355
|
+
readonly type: "address";
|
|
356
|
+
}];
|
|
357
|
+
readonly name: "mintTo";
|
|
358
|
+
readonly outputs: readonly [{
|
|
359
|
+
readonly internalType: "uint256";
|
|
360
|
+
readonly name: "";
|
|
361
|
+
readonly type: "uint256";
|
|
362
|
+
}];
|
|
363
|
+
readonly stateMutability: "nonpayable";
|
|
364
|
+
readonly type: "function";
|
|
365
|
+
}, {
|
|
366
|
+
readonly inputs: readonly [];
|
|
367
|
+
readonly name: "name";
|
|
368
|
+
readonly outputs: readonly [{
|
|
369
|
+
readonly internalType: "string";
|
|
370
|
+
readonly name: "";
|
|
371
|
+
readonly type: "string";
|
|
372
|
+
}];
|
|
373
|
+
readonly stateMutability: "view";
|
|
374
|
+
readonly type: "function";
|
|
375
|
+
}, {
|
|
376
|
+
readonly inputs: readonly [];
|
|
377
|
+
readonly name: "owner";
|
|
378
|
+
readonly outputs: readonly [{
|
|
379
|
+
readonly internalType: "address";
|
|
380
|
+
readonly name: "";
|
|
381
|
+
readonly type: "address";
|
|
382
|
+
}];
|
|
383
|
+
readonly stateMutability: "view";
|
|
384
|
+
readonly type: "function";
|
|
385
|
+
}, {
|
|
386
|
+
readonly inputs: readonly [{
|
|
387
|
+
readonly internalType: "uint256";
|
|
388
|
+
readonly name: "tokenId";
|
|
389
|
+
readonly type: "uint256";
|
|
390
|
+
}];
|
|
391
|
+
readonly name: "ownerOf";
|
|
392
|
+
readonly outputs: readonly [{
|
|
393
|
+
readonly internalType: "address";
|
|
394
|
+
readonly name: "";
|
|
395
|
+
readonly type: "address";
|
|
396
|
+
}];
|
|
397
|
+
readonly stateMutability: "view";
|
|
398
|
+
readonly type: "function";
|
|
399
|
+
}, {
|
|
400
|
+
readonly inputs: readonly [{
|
|
401
|
+
readonly internalType: "string";
|
|
402
|
+
readonly name: "_baseURI";
|
|
403
|
+
readonly type: "string";
|
|
404
|
+
}, {
|
|
405
|
+
readonly internalType: "uint256";
|
|
406
|
+
readonly name: "_numberOfTokens";
|
|
407
|
+
readonly type: "uint256";
|
|
408
|
+
}];
|
|
409
|
+
readonly name: "prepareMint";
|
|
410
|
+
readonly outputs: readonly [];
|
|
411
|
+
readonly stateMutability: "nonpayable";
|
|
412
|
+
readonly type: "function";
|
|
413
|
+
}, {
|
|
414
|
+
readonly inputs: readonly [{
|
|
415
|
+
readonly internalType: "string";
|
|
416
|
+
readonly name: "_baseURI";
|
|
417
|
+
readonly type: "string";
|
|
418
|
+
}, {
|
|
419
|
+
readonly internalType: "uint256";
|
|
420
|
+
readonly name: "_numberOfTokens";
|
|
421
|
+
readonly type: "uint256";
|
|
422
|
+
}, {
|
|
423
|
+
readonly internalType: "address";
|
|
424
|
+
readonly name: "_minter";
|
|
425
|
+
readonly type: "address";
|
|
426
|
+
}];
|
|
427
|
+
readonly name: "prepareMintWithMinter";
|
|
428
|
+
readonly outputs: readonly [];
|
|
429
|
+
readonly stateMutability: "nonpayable";
|
|
430
|
+
readonly type: "function";
|
|
431
|
+
}, {
|
|
432
|
+
readonly inputs: readonly [];
|
|
433
|
+
readonly name: "renounceOwnership";
|
|
434
|
+
readonly outputs: readonly [];
|
|
435
|
+
readonly stateMutability: "nonpayable";
|
|
436
|
+
readonly type: "function";
|
|
437
|
+
}, {
|
|
438
|
+
readonly inputs: readonly [{
|
|
439
|
+
readonly internalType: "uint256";
|
|
440
|
+
readonly name: "_tokenId";
|
|
441
|
+
readonly type: "uint256";
|
|
442
|
+
}, {
|
|
443
|
+
readonly internalType: "uint256";
|
|
444
|
+
readonly name: "_salePrice";
|
|
445
|
+
readonly type: "uint256";
|
|
446
|
+
}];
|
|
447
|
+
readonly name: "royaltyInfo";
|
|
448
|
+
readonly outputs: readonly [{
|
|
449
|
+
readonly internalType: "address";
|
|
450
|
+
readonly name: "receiver";
|
|
451
|
+
readonly type: "address";
|
|
452
|
+
}, {
|
|
453
|
+
readonly internalType: "uint256";
|
|
454
|
+
readonly name: "royaltyAmount";
|
|
455
|
+
readonly type: "uint256";
|
|
456
|
+
}];
|
|
457
|
+
readonly stateMutability: "view";
|
|
458
|
+
readonly type: "function";
|
|
459
|
+
}, {
|
|
460
|
+
readonly inputs: readonly [{
|
|
461
|
+
readonly internalType: "address";
|
|
462
|
+
readonly name: "from";
|
|
463
|
+
readonly type: "address";
|
|
464
|
+
}, {
|
|
465
|
+
readonly internalType: "address";
|
|
466
|
+
readonly name: "to";
|
|
467
|
+
readonly type: "address";
|
|
468
|
+
}, {
|
|
469
|
+
readonly internalType: "uint256";
|
|
470
|
+
readonly name: "tokenId";
|
|
471
|
+
readonly type: "uint256";
|
|
472
|
+
}];
|
|
473
|
+
readonly name: "safeTransferFrom";
|
|
474
|
+
readonly outputs: readonly [];
|
|
475
|
+
readonly stateMutability: "nonpayable";
|
|
476
|
+
readonly type: "function";
|
|
477
|
+
}, {
|
|
478
|
+
readonly inputs: readonly [{
|
|
479
|
+
readonly internalType: "address";
|
|
480
|
+
readonly name: "from";
|
|
481
|
+
readonly type: "address";
|
|
482
|
+
}, {
|
|
483
|
+
readonly internalType: "address";
|
|
484
|
+
readonly name: "to";
|
|
485
|
+
readonly type: "address";
|
|
486
|
+
}, {
|
|
487
|
+
readonly internalType: "uint256";
|
|
488
|
+
readonly name: "tokenId";
|
|
489
|
+
readonly type: "uint256";
|
|
490
|
+
}, {
|
|
491
|
+
readonly internalType: "bytes";
|
|
492
|
+
readonly name: "_data";
|
|
493
|
+
readonly type: "bytes";
|
|
494
|
+
}];
|
|
495
|
+
readonly name: "safeTransferFrom";
|
|
496
|
+
readonly outputs: readonly [];
|
|
497
|
+
readonly stateMutability: "nonpayable";
|
|
498
|
+
readonly type: "function";
|
|
499
|
+
}, {
|
|
500
|
+
readonly inputs: readonly [{
|
|
501
|
+
readonly internalType: "address";
|
|
502
|
+
readonly name: "operator";
|
|
503
|
+
readonly type: "address";
|
|
504
|
+
}, {
|
|
505
|
+
readonly internalType: "bool";
|
|
506
|
+
readonly name: "approved";
|
|
507
|
+
readonly type: "bool";
|
|
508
|
+
}];
|
|
509
|
+
readonly name: "setApprovalForAll";
|
|
510
|
+
readonly outputs: readonly [];
|
|
511
|
+
readonly stateMutability: "nonpayable";
|
|
512
|
+
readonly type: "function";
|
|
513
|
+
}, {
|
|
514
|
+
readonly inputs: readonly [{
|
|
515
|
+
readonly internalType: "address";
|
|
516
|
+
readonly name: "_receiver";
|
|
517
|
+
readonly type: "address";
|
|
518
|
+
}];
|
|
519
|
+
readonly name: "setDefaultRoyaltyReceiver";
|
|
520
|
+
readonly outputs: readonly [];
|
|
521
|
+
readonly stateMutability: "nonpayable";
|
|
522
|
+
readonly type: "function";
|
|
523
|
+
}, {
|
|
524
|
+
readonly inputs: readonly [{
|
|
525
|
+
readonly internalType: "address";
|
|
526
|
+
readonly name: "_minter";
|
|
527
|
+
readonly type: "address";
|
|
528
|
+
}, {
|
|
529
|
+
readonly internalType: "bool";
|
|
530
|
+
readonly name: "_isMinter";
|
|
531
|
+
readonly type: "bool";
|
|
532
|
+
}];
|
|
533
|
+
readonly name: "setMinterApproval";
|
|
534
|
+
readonly outputs: readonly [];
|
|
535
|
+
readonly stateMutability: "nonpayable";
|
|
536
|
+
readonly type: "function";
|
|
537
|
+
}, {
|
|
538
|
+
readonly inputs: readonly [{
|
|
539
|
+
readonly internalType: "address";
|
|
540
|
+
readonly name: "_receiver";
|
|
541
|
+
readonly type: "address";
|
|
542
|
+
}, {
|
|
543
|
+
readonly internalType: "uint256";
|
|
544
|
+
readonly name: "_tokenId";
|
|
545
|
+
readonly type: "uint256";
|
|
546
|
+
}];
|
|
547
|
+
readonly name: "setRoyaltyReceiverForToken";
|
|
548
|
+
readonly outputs: readonly [];
|
|
549
|
+
readonly stateMutability: "nonpayable";
|
|
550
|
+
readonly type: "function";
|
|
551
|
+
}, {
|
|
552
|
+
readonly inputs: readonly [{
|
|
553
|
+
readonly internalType: "bytes4";
|
|
554
|
+
readonly name: "interfaceId";
|
|
555
|
+
readonly type: "bytes4";
|
|
556
|
+
}];
|
|
557
|
+
readonly name: "supportsInterface";
|
|
558
|
+
readonly outputs: readonly [{
|
|
559
|
+
readonly internalType: "bool";
|
|
560
|
+
readonly name: "";
|
|
561
|
+
readonly type: "bool";
|
|
562
|
+
}];
|
|
563
|
+
readonly stateMutability: "view";
|
|
564
|
+
readonly type: "function";
|
|
565
|
+
}, {
|
|
566
|
+
readonly inputs: readonly [];
|
|
567
|
+
readonly name: "symbol";
|
|
568
|
+
readonly outputs: readonly [{
|
|
569
|
+
readonly internalType: "string";
|
|
570
|
+
readonly name: "";
|
|
571
|
+
readonly type: "string";
|
|
572
|
+
}];
|
|
573
|
+
readonly stateMutability: "view";
|
|
574
|
+
readonly type: "function";
|
|
575
|
+
}, {
|
|
576
|
+
readonly inputs: readonly [{
|
|
577
|
+
readonly internalType: "uint256";
|
|
578
|
+
readonly name: "_tokenId";
|
|
579
|
+
readonly type: "uint256";
|
|
580
|
+
}];
|
|
581
|
+
readonly name: "tokenCreator";
|
|
582
|
+
readonly outputs: readonly [{
|
|
583
|
+
readonly internalType: "address payable";
|
|
584
|
+
readonly name: "";
|
|
585
|
+
readonly type: "address";
|
|
586
|
+
}];
|
|
587
|
+
readonly stateMutability: "view";
|
|
588
|
+
readonly type: "function";
|
|
589
|
+
}, {
|
|
590
|
+
readonly inputs: readonly [{
|
|
591
|
+
readonly internalType: "uint256";
|
|
592
|
+
readonly name: "_tokenId";
|
|
593
|
+
readonly type: "uint256";
|
|
594
|
+
}];
|
|
595
|
+
readonly name: "tokenURI";
|
|
596
|
+
readonly outputs: readonly [{
|
|
597
|
+
readonly internalType: "string";
|
|
598
|
+
readonly name: "";
|
|
599
|
+
readonly type: "string";
|
|
600
|
+
}];
|
|
601
|
+
readonly stateMutability: "view";
|
|
602
|
+
readonly type: "function";
|
|
603
|
+
}, {
|
|
604
|
+
readonly inputs: readonly [];
|
|
605
|
+
readonly name: "totalSupply";
|
|
606
|
+
readonly outputs: readonly [{
|
|
607
|
+
readonly internalType: "uint256";
|
|
608
|
+
readonly name: "";
|
|
609
|
+
readonly type: "uint256";
|
|
610
|
+
}];
|
|
611
|
+
readonly stateMutability: "view";
|
|
612
|
+
readonly type: "function";
|
|
613
|
+
}, {
|
|
614
|
+
readonly inputs: readonly [{
|
|
615
|
+
readonly internalType: "address";
|
|
616
|
+
readonly name: "from";
|
|
617
|
+
readonly type: "address";
|
|
618
|
+
}, {
|
|
619
|
+
readonly internalType: "address";
|
|
620
|
+
readonly name: "to";
|
|
621
|
+
readonly type: "address";
|
|
622
|
+
}, {
|
|
623
|
+
readonly internalType: "uint256";
|
|
624
|
+
readonly name: "tokenId";
|
|
625
|
+
readonly type: "uint256";
|
|
626
|
+
}];
|
|
627
|
+
readonly name: "transferFrom";
|
|
628
|
+
readonly outputs: readonly [];
|
|
629
|
+
readonly stateMutability: "nonpayable";
|
|
630
|
+
readonly type: "function";
|
|
631
|
+
}, {
|
|
632
|
+
readonly inputs: readonly [{
|
|
633
|
+
readonly internalType: "address";
|
|
634
|
+
readonly name: "newOwner";
|
|
635
|
+
readonly type: "address";
|
|
636
|
+
}];
|
|
637
|
+
readonly name: "transferOwnership";
|
|
638
|
+
readonly outputs: readonly [];
|
|
639
|
+
readonly stateMutability: "nonpayable";
|
|
640
|
+
readonly type: "function";
|
|
641
|
+
}, {
|
|
642
|
+
readonly inputs: readonly [{
|
|
643
|
+
readonly internalType: "string";
|
|
644
|
+
readonly name: "_baseURI";
|
|
645
|
+
readonly type: "string";
|
|
646
|
+
}];
|
|
647
|
+
readonly name: "updateBaseURI";
|
|
648
|
+
readonly outputs: readonly [];
|
|
649
|
+
readonly stateMutability: "nonpayable";
|
|
650
|
+
readonly type: "function";
|
|
651
|
+
}, {
|
|
652
|
+
readonly inputs: readonly [{
|
|
653
|
+
readonly internalType: "uint256";
|
|
654
|
+
readonly name: "_tokenId";
|
|
655
|
+
readonly type: "uint256";
|
|
656
|
+
}, {
|
|
657
|
+
readonly internalType: "string";
|
|
658
|
+
readonly name: "_metadataUri";
|
|
659
|
+
readonly type: "string";
|
|
660
|
+
}];
|
|
661
|
+
readonly name: "updateTokenURI";
|
|
662
|
+
readonly outputs: readonly [];
|
|
663
|
+
readonly stateMutability: "nonpayable";
|
|
664
|
+
readonly type: "function";
|
|
665
|
+
}];
|
|
666
|
+
/**
|
|
667
|
+
* Type-safe ABI for LazySovereignNFT_json
|
|
668
|
+
*/
|
|
669
|
+
export type LazySovereignNFT_jsonAbi = typeof LazySovereignNFT_jsonAbi;
|
|
670
|
+
/**
|
|
671
|
+
* Contract instance type for LazySovereignNFT_json
|
|
672
|
+
*/
|
|
673
|
+
export type LazySovereignNFT_jsonContract = any;
|
|
674
|
+
/**
|
|
675
|
+
* LazySovereignNFT_json Contract Class
|
|
676
|
+
*
|
|
677
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
678
|
+
*
|
|
679
|
+
* @example
|
|
680
|
+
* ```typescript
|
|
681
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
682
|
+
* import { mainnet } from 'viem/chains';
|
|
683
|
+
* import { LazySovereignNFT_json } from 'LazySovereignNFT_json';
|
|
684
|
+
*
|
|
685
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
686
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
687
|
+
*
|
|
688
|
+
* const contract = new LazySovereignNFT_json('0x...', { publicClient, walletClient });
|
|
689
|
+
*
|
|
690
|
+
* // Read functions
|
|
691
|
+
* const result = await contract.balanceOf('0x...');
|
|
692
|
+
*
|
|
693
|
+
* // Write functions
|
|
694
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
695
|
+
*
|
|
696
|
+
* // Simulate transactions (dry-run)
|
|
697
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
698
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
699
|
+
*
|
|
700
|
+
* // Watch events
|
|
701
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
702
|
+
* console.log('Transfer event:', event);
|
|
703
|
+
* });
|
|
704
|
+
* ```
|
|
705
|
+
*/
|
|
706
|
+
export declare class LazySovereignNFT_json {
|
|
707
|
+
private contract;
|
|
708
|
+
private contractAddress;
|
|
709
|
+
private publicClient;
|
|
710
|
+
constructor(address: Address, clients: {
|
|
711
|
+
publicClient: PublicClient;
|
|
712
|
+
walletClient?: WalletClient;
|
|
713
|
+
});
|
|
714
|
+
/**
|
|
715
|
+
* Get the contract address
|
|
716
|
+
*/
|
|
717
|
+
get address(): Address;
|
|
718
|
+
/**
|
|
719
|
+
* Get the underlying viem contract instance
|
|
720
|
+
*/
|
|
721
|
+
getContract(): LazySovereignNFT_jsonContract;
|
|
722
|
+
/**
|
|
723
|
+
* balanceOf
|
|
724
|
+
* view
|
|
725
|
+
*/
|
|
726
|
+
balanceOf(owner: `0x${string}`): Promise<bigint>;
|
|
727
|
+
/**
|
|
728
|
+
* disabled
|
|
729
|
+
* view
|
|
730
|
+
*/
|
|
731
|
+
disabled(): Promise<boolean>;
|
|
732
|
+
/**
|
|
733
|
+
* getApproved
|
|
734
|
+
* view
|
|
735
|
+
*/
|
|
736
|
+
getApproved(tokenId: bigint): Promise<`0x${string}`>;
|
|
737
|
+
/**
|
|
738
|
+
* getDefaultRoyaltyPercentage
|
|
739
|
+
* view
|
|
740
|
+
*/
|
|
741
|
+
getDefaultRoyaltyPercentage(): Promise<bigint>;
|
|
742
|
+
/**
|
|
743
|
+
* getDefaultRoyaltyReceiver
|
|
744
|
+
* view
|
|
745
|
+
*/
|
|
746
|
+
getDefaultRoyaltyReceiver(): Promise<`0x${string}`>;
|
|
747
|
+
/**
|
|
748
|
+
* getMintConfig
|
|
749
|
+
* view
|
|
750
|
+
*/
|
|
751
|
+
getMintConfig(): Promise<LazySovereignNFT_MintConfig>;
|
|
752
|
+
/**
|
|
753
|
+
* isApprovedForAll
|
|
754
|
+
* view
|
|
755
|
+
*/
|
|
756
|
+
isApprovedForAll(owner: `0x${string}`, operator: `0x${string}`): Promise<boolean>;
|
|
757
|
+
/**
|
|
758
|
+
* isApprovedMinter
|
|
759
|
+
* view
|
|
760
|
+
*/
|
|
761
|
+
isApprovedMinter(_address: `0x${string}`): Promise<boolean>;
|
|
762
|
+
/**
|
|
763
|
+
* maxTokens
|
|
764
|
+
* view
|
|
765
|
+
*/
|
|
766
|
+
maxTokens(): Promise<bigint>;
|
|
767
|
+
/**
|
|
768
|
+
* name
|
|
769
|
+
* view
|
|
770
|
+
*/
|
|
771
|
+
name(): Promise<string>;
|
|
772
|
+
/**
|
|
773
|
+
* owner
|
|
774
|
+
* view
|
|
775
|
+
*/
|
|
776
|
+
owner(): Promise<`0x${string}`>;
|
|
777
|
+
/**
|
|
778
|
+
* ownerOf
|
|
779
|
+
* view
|
|
780
|
+
*/
|
|
781
|
+
ownerOf(tokenId: bigint): Promise<`0x${string}`>;
|
|
782
|
+
/**
|
|
783
|
+
* royaltyInfo
|
|
784
|
+
* view
|
|
785
|
+
*/
|
|
786
|
+
royaltyInfo(_tokenId: bigint, _salePrice: bigint): Promise<[`0x${string}`, bigint]>;
|
|
787
|
+
/**
|
|
788
|
+
* supportsInterface
|
|
789
|
+
* view
|
|
790
|
+
*/
|
|
791
|
+
supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
|
|
792
|
+
/**
|
|
793
|
+
* symbol
|
|
794
|
+
* view
|
|
795
|
+
*/
|
|
796
|
+
symbol(): Promise<string>;
|
|
797
|
+
/**
|
|
798
|
+
* tokenCreator
|
|
799
|
+
* view
|
|
800
|
+
*/
|
|
801
|
+
tokenCreator(_tokenId: bigint): Promise<`0x${string}`>;
|
|
802
|
+
/**
|
|
803
|
+
* tokenURI
|
|
804
|
+
* view
|
|
805
|
+
*/
|
|
806
|
+
tokenURI(_tokenId: bigint): Promise<string>;
|
|
807
|
+
/**
|
|
808
|
+
* totalSupply
|
|
809
|
+
* view
|
|
810
|
+
*/
|
|
811
|
+
totalSupply(): Promise<bigint>;
|
|
812
|
+
/**
|
|
813
|
+
* approve
|
|
814
|
+
* nonpayable
|
|
815
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
816
|
+
*/
|
|
817
|
+
approve(to: `0x${string}`, tokenId: bigint, options?: {
|
|
818
|
+
accessList?: import('viem').AccessList;
|
|
819
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
820
|
+
chain?: import('viem').Chain | null;
|
|
821
|
+
dataSuffix?: `0x${string}`;
|
|
822
|
+
gas?: bigint;
|
|
823
|
+
gasPrice?: bigint;
|
|
824
|
+
maxFeePerGas?: bigint;
|
|
825
|
+
maxPriorityFeePerGas?: bigint;
|
|
826
|
+
nonce?: number;
|
|
827
|
+
value?: bigint;
|
|
828
|
+
}): Promise<`0x${string}`>;
|
|
829
|
+
/**
|
|
830
|
+
* burn
|
|
831
|
+
* nonpayable
|
|
832
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
833
|
+
*/
|
|
834
|
+
burn(tokenId: bigint, options?: {
|
|
835
|
+
accessList?: import('viem').AccessList;
|
|
836
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
837
|
+
chain?: import('viem').Chain | null;
|
|
838
|
+
dataSuffix?: `0x${string}`;
|
|
839
|
+
gas?: bigint;
|
|
840
|
+
gasPrice?: bigint;
|
|
841
|
+
maxFeePerGas?: bigint;
|
|
842
|
+
maxPriorityFeePerGas?: bigint;
|
|
843
|
+
nonce?: number;
|
|
844
|
+
value?: bigint;
|
|
845
|
+
}): Promise<`0x${string}`>;
|
|
846
|
+
/**
|
|
847
|
+
* deleteToken
|
|
848
|
+
* nonpayable
|
|
849
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
850
|
+
*/
|
|
851
|
+
deleteToken(_tokenId: bigint, options?: {
|
|
852
|
+
accessList?: import('viem').AccessList;
|
|
853
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
854
|
+
chain?: import('viem').Chain | null;
|
|
855
|
+
dataSuffix?: `0x${string}`;
|
|
856
|
+
gas?: bigint;
|
|
857
|
+
gasPrice?: bigint;
|
|
858
|
+
maxFeePerGas?: bigint;
|
|
859
|
+
maxPriorityFeePerGas?: bigint;
|
|
860
|
+
nonce?: number;
|
|
861
|
+
value?: bigint;
|
|
862
|
+
}): Promise<`0x${string}`>;
|
|
863
|
+
/**
|
|
864
|
+
* disableContract
|
|
865
|
+
* nonpayable
|
|
866
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
867
|
+
*/
|
|
868
|
+
disableContract(options?: {
|
|
869
|
+
accessList?: import('viem').AccessList;
|
|
870
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
871
|
+
chain?: import('viem').Chain | null;
|
|
872
|
+
dataSuffix?: `0x${string}`;
|
|
873
|
+
gas?: bigint;
|
|
874
|
+
gasPrice?: bigint;
|
|
875
|
+
maxFeePerGas?: bigint;
|
|
876
|
+
maxPriorityFeePerGas?: bigint;
|
|
877
|
+
nonce?: number;
|
|
878
|
+
value?: bigint;
|
|
879
|
+
}): Promise<`0x${string}`>;
|
|
880
|
+
/**
|
|
881
|
+
* init
|
|
882
|
+
* nonpayable
|
|
883
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
884
|
+
*/
|
|
885
|
+
init(_name: string, _symbol: string, _creator: `0x${string}`, _maxTokens: bigint, options?: {
|
|
886
|
+
accessList?: import('viem').AccessList;
|
|
887
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
888
|
+
chain?: import('viem').Chain | null;
|
|
889
|
+
dataSuffix?: `0x${string}`;
|
|
890
|
+
gas?: bigint;
|
|
891
|
+
gasPrice?: bigint;
|
|
892
|
+
maxFeePerGas?: bigint;
|
|
893
|
+
maxPriorityFeePerGas?: bigint;
|
|
894
|
+
nonce?: number;
|
|
895
|
+
value?: bigint;
|
|
896
|
+
}): Promise<`0x${string}`>;
|
|
897
|
+
/**
|
|
898
|
+
* lockBaseURI
|
|
899
|
+
* nonpayable
|
|
900
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
901
|
+
*/
|
|
902
|
+
lockBaseURI(options?: {
|
|
903
|
+
accessList?: import('viem').AccessList;
|
|
904
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
905
|
+
chain?: import('viem').Chain | null;
|
|
906
|
+
dataSuffix?: `0x${string}`;
|
|
907
|
+
gas?: bigint;
|
|
908
|
+
gasPrice?: bigint;
|
|
909
|
+
maxFeePerGas?: bigint;
|
|
910
|
+
maxPriorityFeePerGas?: bigint;
|
|
911
|
+
nonce?: number;
|
|
912
|
+
value?: bigint;
|
|
913
|
+
}): Promise<`0x${string}`>;
|
|
914
|
+
/**
|
|
915
|
+
* mintTo
|
|
916
|
+
* nonpayable
|
|
917
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
918
|
+
*/
|
|
919
|
+
mintTo(_receiver: `0x${string}`, options?: {
|
|
920
|
+
accessList?: import('viem').AccessList;
|
|
921
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
922
|
+
chain?: import('viem').Chain | null;
|
|
923
|
+
dataSuffix?: `0x${string}`;
|
|
924
|
+
gas?: bigint;
|
|
925
|
+
gasPrice?: bigint;
|
|
926
|
+
maxFeePerGas?: bigint;
|
|
927
|
+
maxPriorityFeePerGas?: bigint;
|
|
928
|
+
nonce?: number;
|
|
929
|
+
value?: bigint;
|
|
930
|
+
}): Promise<`0x${string}`>;
|
|
931
|
+
/**
|
|
932
|
+
* prepareMint
|
|
933
|
+
* nonpayable
|
|
934
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
935
|
+
*/
|
|
936
|
+
prepareMint(_baseURI: string, _numberOfTokens: bigint, options?: {
|
|
937
|
+
accessList?: import('viem').AccessList;
|
|
938
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
939
|
+
chain?: import('viem').Chain | null;
|
|
940
|
+
dataSuffix?: `0x${string}`;
|
|
941
|
+
gas?: bigint;
|
|
942
|
+
gasPrice?: bigint;
|
|
943
|
+
maxFeePerGas?: bigint;
|
|
944
|
+
maxPriorityFeePerGas?: bigint;
|
|
945
|
+
nonce?: number;
|
|
946
|
+
value?: bigint;
|
|
947
|
+
}): Promise<`0x${string}`>;
|
|
948
|
+
/**
|
|
949
|
+
* prepareMintWithMinter
|
|
950
|
+
* nonpayable
|
|
951
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
952
|
+
*/
|
|
953
|
+
prepareMintWithMinter(_baseURI: string, _numberOfTokens: bigint, _minter: `0x${string}`, options?: {
|
|
954
|
+
accessList?: import('viem').AccessList;
|
|
955
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
956
|
+
chain?: import('viem').Chain | null;
|
|
957
|
+
dataSuffix?: `0x${string}`;
|
|
958
|
+
gas?: bigint;
|
|
959
|
+
gasPrice?: bigint;
|
|
960
|
+
maxFeePerGas?: bigint;
|
|
961
|
+
maxPriorityFeePerGas?: bigint;
|
|
962
|
+
nonce?: number;
|
|
963
|
+
value?: bigint;
|
|
964
|
+
}): Promise<`0x${string}`>;
|
|
965
|
+
/**
|
|
966
|
+
* renounceOwnership
|
|
967
|
+
* nonpayable
|
|
968
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
969
|
+
*/
|
|
970
|
+
renounceOwnership(options?: {
|
|
971
|
+
accessList?: import('viem').AccessList;
|
|
972
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
973
|
+
chain?: import('viem').Chain | null;
|
|
974
|
+
dataSuffix?: `0x${string}`;
|
|
975
|
+
gas?: bigint;
|
|
976
|
+
gasPrice?: bigint;
|
|
977
|
+
maxFeePerGas?: bigint;
|
|
978
|
+
maxPriorityFeePerGas?: bigint;
|
|
979
|
+
nonce?: number;
|
|
980
|
+
value?: bigint;
|
|
981
|
+
}): Promise<`0x${string}`>;
|
|
982
|
+
safeTransferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
|
|
983
|
+
accessList?: import('viem').AccessList;
|
|
984
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
985
|
+
chain?: import('viem').Chain | null;
|
|
986
|
+
dataSuffix?: `0x${string}`;
|
|
987
|
+
gas?: bigint;
|
|
988
|
+
gasPrice?: bigint;
|
|
989
|
+
maxFeePerGas?: bigint;
|
|
990
|
+
maxPriorityFeePerGas?: bigint;
|
|
991
|
+
nonce?: number;
|
|
992
|
+
value?: bigint;
|
|
993
|
+
}): Promise<`0x${string}`>;
|
|
994
|
+
safeTransferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, _data: `0x${string}`, options?: {
|
|
995
|
+
accessList?: import('viem').AccessList;
|
|
996
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
997
|
+
chain?: import('viem').Chain | null;
|
|
998
|
+
dataSuffix?: `0x${string}`;
|
|
999
|
+
gas?: bigint;
|
|
1000
|
+
gasPrice?: bigint;
|
|
1001
|
+
maxFeePerGas?: bigint;
|
|
1002
|
+
maxPriorityFeePerGas?: bigint;
|
|
1003
|
+
nonce?: number;
|
|
1004
|
+
value?: bigint;
|
|
1005
|
+
}): Promise<`0x${string}`>;
|
|
1006
|
+
/**
|
|
1007
|
+
* setApprovalForAll
|
|
1008
|
+
* nonpayable
|
|
1009
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1010
|
+
*/
|
|
1011
|
+
setApprovalForAll(operator: `0x${string}`, approved: boolean, options?: {
|
|
1012
|
+
accessList?: import('viem').AccessList;
|
|
1013
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1014
|
+
chain?: import('viem').Chain | null;
|
|
1015
|
+
dataSuffix?: `0x${string}`;
|
|
1016
|
+
gas?: bigint;
|
|
1017
|
+
gasPrice?: bigint;
|
|
1018
|
+
maxFeePerGas?: bigint;
|
|
1019
|
+
maxPriorityFeePerGas?: bigint;
|
|
1020
|
+
nonce?: number;
|
|
1021
|
+
value?: bigint;
|
|
1022
|
+
}): Promise<`0x${string}`>;
|
|
1023
|
+
/**
|
|
1024
|
+
* setDefaultRoyaltyReceiver
|
|
1025
|
+
* nonpayable
|
|
1026
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1027
|
+
*/
|
|
1028
|
+
setDefaultRoyaltyReceiver(_receiver: `0x${string}`, options?: {
|
|
1029
|
+
accessList?: import('viem').AccessList;
|
|
1030
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1031
|
+
chain?: import('viem').Chain | null;
|
|
1032
|
+
dataSuffix?: `0x${string}`;
|
|
1033
|
+
gas?: bigint;
|
|
1034
|
+
gasPrice?: bigint;
|
|
1035
|
+
maxFeePerGas?: bigint;
|
|
1036
|
+
maxPriorityFeePerGas?: bigint;
|
|
1037
|
+
nonce?: number;
|
|
1038
|
+
value?: bigint;
|
|
1039
|
+
}): Promise<`0x${string}`>;
|
|
1040
|
+
/**
|
|
1041
|
+
* setMinterApproval
|
|
1042
|
+
* nonpayable
|
|
1043
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1044
|
+
*/
|
|
1045
|
+
setMinterApproval(_minter: `0x${string}`, _isMinter: boolean, options?: {
|
|
1046
|
+
accessList?: import('viem').AccessList;
|
|
1047
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1048
|
+
chain?: import('viem').Chain | null;
|
|
1049
|
+
dataSuffix?: `0x${string}`;
|
|
1050
|
+
gas?: bigint;
|
|
1051
|
+
gasPrice?: bigint;
|
|
1052
|
+
maxFeePerGas?: bigint;
|
|
1053
|
+
maxPriorityFeePerGas?: bigint;
|
|
1054
|
+
nonce?: number;
|
|
1055
|
+
value?: bigint;
|
|
1056
|
+
}): Promise<`0x${string}`>;
|
|
1057
|
+
/**
|
|
1058
|
+
* setRoyaltyReceiverForToken
|
|
1059
|
+
* nonpayable
|
|
1060
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1061
|
+
*/
|
|
1062
|
+
setRoyaltyReceiverForToken(_receiver: `0x${string}`, _tokenId: bigint, options?: {
|
|
1063
|
+
accessList?: import('viem').AccessList;
|
|
1064
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1065
|
+
chain?: import('viem').Chain | null;
|
|
1066
|
+
dataSuffix?: `0x${string}`;
|
|
1067
|
+
gas?: bigint;
|
|
1068
|
+
gasPrice?: bigint;
|
|
1069
|
+
maxFeePerGas?: bigint;
|
|
1070
|
+
maxPriorityFeePerGas?: bigint;
|
|
1071
|
+
nonce?: number;
|
|
1072
|
+
value?: bigint;
|
|
1073
|
+
}): Promise<`0x${string}`>;
|
|
1074
|
+
/**
|
|
1075
|
+
* transferFrom
|
|
1076
|
+
* nonpayable
|
|
1077
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1078
|
+
*/
|
|
1079
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
|
|
1080
|
+
accessList?: import('viem').AccessList;
|
|
1081
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1082
|
+
chain?: import('viem').Chain | null;
|
|
1083
|
+
dataSuffix?: `0x${string}`;
|
|
1084
|
+
gas?: bigint;
|
|
1085
|
+
gasPrice?: bigint;
|
|
1086
|
+
maxFeePerGas?: bigint;
|
|
1087
|
+
maxPriorityFeePerGas?: bigint;
|
|
1088
|
+
nonce?: number;
|
|
1089
|
+
value?: bigint;
|
|
1090
|
+
}): Promise<`0x${string}`>;
|
|
1091
|
+
/**
|
|
1092
|
+
* transferOwnership
|
|
1093
|
+
* nonpayable
|
|
1094
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1095
|
+
*/
|
|
1096
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1097
|
+
accessList?: import('viem').AccessList;
|
|
1098
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1099
|
+
chain?: import('viem').Chain | null;
|
|
1100
|
+
dataSuffix?: `0x${string}`;
|
|
1101
|
+
gas?: bigint;
|
|
1102
|
+
gasPrice?: bigint;
|
|
1103
|
+
maxFeePerGas?: bigint;
|
|
1104
|
+
maxPriorityFeePerGas?: bigint;
|
|
1105
|
+
nonce?: number;
|
|
1106
|
+
value?: bigint;
|
|
1107
|
+
}): Promise<`0x${string}`>;
|
|
1108
|
+
/**
|
|
1109
|
+
* updateBaseURI
|
|
1110
|
+
* nonpayable
|
|
1111
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1112
|
+
*/
|
|
1113
|
+
updateBaseURI(_baseURI: string, options?: {
|
|
1114
|
+
accessList?: import('viem').AccessList;
|
|
1115
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1116
|
+
chain?: import('viem').Chain | null;
|
|
1117
|
+
dataSuffix?: `0x${string}`;
|
|
1118
|
+
gas?: bigint;
|
|
1119
|
+
gasPrice?: bigint;
|
|
1120
|
+
maxFeePerGas?: bigint;
|
|
1121
|
+
maxPriorityFeePerGas?: bigint;
|
|
1122
|
+
nonce?: number;
|
|
1123
|
+
value?: bigint;
|
|
1124
|
+
}): Promise<`0x${string}`>;
|
|
1125
|
+
/**
|
|
1126
|
+
* updateTokenURI
|
|
1127
|
+
* nonpayable
|
|
1128
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1129
|
+
*/
|
|
1130
|
+
updateTokenURI(_tokenId: bigint, _metadataUri: string, options?: {
|
|
1131
|
+
accessList?: import('viem').AccessList;
|
|
1132
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1133
|
+
chain?: import('viem').Chain | null;
|
|
1134
|
+
dataSuffix?: `0x${string}`;
|
|
1135
|
+
gas?: bigint;
|
|
1136
|
+
gasPrice?: bigint;
|
|
1137
|
+
maxFeePerGas?: bigint;
|
|
1138
|
+
maxPriorityFeePerGas?: bigint;
|
|
1139
|
+
nonce?: number;
|
|
1140
|
+
value?: bigint;
|
|
1141
|
+
}): Promise<`0x${string}`>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
1144
|
+
*
|
|
1145
|
+
* @example
|
|
1146
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
1147
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
1148
|
+
* console.log('Would succeed:', result.result);
|
|
1149
|
+
*/
|
|
1150
|
+
get simulate(): {
|
|
1151
|
+
/**
|
|
1152
|
+
* Simulate approve
|
|
1153
|
+
* Returns gas estimate and result without sending transaction
|
|
1154
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1155
|
+
*/
|
|
1156
|
+
approve(to: `0x${string}`, tokenId: bigint, options?: {
|
|
1157
|
+
accessList?: import("viem").AccessList;
|
|
1158
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1159
|
+
chain?: import("viem").Chain | null;
|
|
1160
|
+
dataSuffix?: `0x${string}`;
|
|
1161
|
+
gas?: bigint;
|
|
1162
|
+
gasPrice?: bigint;
|
|
1163
|
+
maxFeePerGas?: bigint;
|
|
1164
|
+
maxPriorityFeePerGas?: bigint;
|
|
1165
|
+
nonce?: number;
|
|
1166
|
+
value?: bigint;
|
|
1167
|
+
}): Promise<void>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Simulate burn
|
|
1170
|
+
* Returns gas estimate and result without sending transaction
|
|
1171
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1172
|
+
*/
|
|
1173
|
+
burn(tokenId: bigint, options?: {
|
|
1174
|
+
accessList?: import("viem").AccessList;
|
|
1175
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1176
|
+
chain?: import("viem").Chain | null;
|
|
1177
|
+
dataSuffix?: `0x${string}`;
|
|
1178
|
+
gas?: bigint;
|
|
1179
|
+
gasPrice?: bigint;
|
|
1180
|
+
maxFeePerGas?: bigint;
|
|
1181
|
+
maxPriorityFeePerGas?: bigint;
|
|
1182
|
+
nonce?: number;
|
|
1183
|
+
value?: bigint;
|
|
1184
|
+
}): Promise<void>;
|
|
1185
|
+
/**
|
|
1186
|
+
* Simulate deleteToken
|
|
1187
|
+
* Returns gas estimate and result without sending transaction
|
|
1188
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1189
|
+
*/
|
|
1190
|
+
deleteToken(_tokenId: bigint, options?: {
|
|
1191
|
+
accessList?: import("viem").AccessList;
|
|
1192
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1193
|
+
chain?: import("viem").Chain | null;
|
|
1194
|
+
dataSuffix?: `0x${string}`;
|
|
1195
|
+
gas?: bigint;
|
|
1196
|
+
gasPrice?: bigint;
|
|
1197
|
+
maxFeePerGas?: bigint;
|
|
1198
|
+
maxPriorityFeePerGas?: bigint;
|
|
1199
|
+
nonce?: number;
|
|
1200
|
+
value?: bigint;
|
|
1201
|
+
}): Promise<void>;
|
|
1202
|
+
/**
|
|
1203
|
+
* Simulate disableContract
|
|
1204
|
+
* Returns gas estimate and result without sending transaction
|
|
1205
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1206
|
+
*/
|
|
1207
|
+
disableContract(options?: {
|
|
1208
|
+
accessList?: import("viem").AccessList;
|
|
1209
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1210
|
+
chain?: import("viem").Chain | null;
|
|
1211
|
+
dataSuffix?: `0x${string}`;
|
|
1212
|
+
gas?: bigint;
|
|
1213
|
+
gasPrice?: bigint;
|
|
1214
|
+
maxFeePerGas?: bigint;
|
|
1215
|
+
maxPriorityFeePerGas?: bigint;
|
|
1216
|
+
nonce?: number;
|
|
1217
|
+
value?: bigint;
|
|
1218
|
+
}): Promise<void>;
|
|
1219
|
+
/**
|
|
1220
|
+
* Simulate init
|
|
1221
|
+
* Returns gas estimate and result without sending transaction
|
|
1222
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1223
|
+
*/
|
|
1224
|
+
init(_name: string, _symbol: string, _creator: `0x${string}`, _maxTokens: bigint, options?: {
|
|
1225
|
+
accessList?: import("viem").AccessList;
|
|
1226
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1227
|
+
chain?: import("viem").Chain | null;
|
|
1228
|
+
dataSuffix?: `0x${string}`;
|
|
1229
|
+
gas?: bigint;
|
|
1230
|
+
gasPrice?: bigint;
|
|
1231
|
+
maxFeePerGas?: bigint;
|
|
1232
|
+
maxPriorityFeePerGas?: bigint;
|
|
1233
|
+
nonce?: number;
|
|
1234
|
+
value?: bigint;
|
|
1235
|
+
}): Promise<void>;
|
|
1236
|
+
/**
|
|
1237
|
+
* Simulate lockBaseURI
|
|
1238
|
+
* Returns gas estimate and result without sending transaction
|
|
1239
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1240
|
+
*/
|
|
1241
|
+
lockBaseURI(options?: {
|
|
1242
|
+
accessList?: import("viem").AccessList;
|
|
1243
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1244
|
+
chain?: import("viem").Chain | null;
|
|
1245
|
+
dataSuffix?: `0x${string}`;
|
|
1246
|
+
gas?: bigint;
|
|
1247
|
+
gasPrice?: bigint;
|
|
1248
|
+
maxFeePerGas?: bigint;
|
|
1249
|
+
maxPriorityFeePerGas?: bigint;
|
|
1250
|
+
nonce?: number;
|
|
1251
|
+
value?: bigint;
|
|
1252
|
+
}): Promise<void>;
|
|
1253
|
+
/**
|
|
1254
|
+
* Simulate mintTo
|
|
1255
|
+
* Returns gas estimate and result without sending transaction
|
|
1256
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1257
|
+
*/
|
|
1258
|
+
mintTo(_receiver: `0x${string}`, options?: {
|
|
1259
|
+
accessList?: import("viem").AccessList;
|
|
1260
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1261
|
+
chain?: import("viem").Chain | null;
|
|
1262
|
+
dataSuffix?: `0x${string}`;
|
|
1263
|
+
gas?: bigint;
|
|
1264
|
+
gasPrice?: bigint;
|
|
1265
|
+
maxFeePerGas?: bigint;
|
|
1266
|
+
maxPriorityFeePerGas?: bigint;
|
|
1267
|
+
nonce?: number;
|
|
1268
|
+
value?: bigint;
|
|
1269
|
+
}): Promise<bigint>;
|
|
1270
|
+
/**
|
|
1271
|
+
* Simulate prepareMint
|
|
1272
|
+
* Returns gas estimate and result without sending transaction
|
|
1273
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1274
|
+
*/
|
|
1275
|
+
prepareMint(_baseURI: string, _numberOfTokens: bigint, options?: {
|
|
1276
|
+
accessList?: import("viem").AccessList;
|
|
1277
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1278
|
+
chain?: import("viem").Chain | null;
|
|
1279
|
+
dataSuffix?: `0x${string}`;
|
|
1280
|
+
gas?: bigint;
|
|
1281
|
+
gasPrice?: bigint;
|
|
1282
|
+
maxFeePerGas?: bigint;
|
|
1283
|
+
maxPriorityFeePerGas?: bigint;
|
|
1284
|
+
nonce?: number;
|
|
1285
|
+
value?: bigint;
|
|
1286
|
+
}): Promise<void>;
|
|
1287
|
+
/**
|
|
1288
|
+
* Simulate prepareMintWithMinter
|
|
1289
|
+
* Returns gas estimate and result without sending transaction
|
|
1290
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1291
|
+
*/
|
|
1292
|
+
prepareMintWithMinter(_baseURI: string, _numberOfTokens: bigint, _minter: `0x${string}`, options?: {
|
|
1293
|
+
accessList?: import("viem").AccessList;
|
|
1294
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1295
|
+
chain?: import("viem").Chain | null;
|
|
1296
|
+
dataSuffix?: `0x${string}`;
|
|
1297
|
+
gas?: bigint;
|
|
1298
|
+
gasPrice?: bigint;
|
|
1299
|
+
maxFeePerGas?: bigint;
|
|
1300
|
+
maxPriorityFeePerGas?: bigint;
|
|
1301
|
+
nonce?: number;
|
|
1302
|
+
value?: bigint;
|
|
1303
|
+
}): Promise<void>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Simulate renounceOwnership
|
|
1306
|
+
* Returns gas estimate and result without sending transaction
|
|
1307
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1308
|
+
*/
|
|
1309
|
+
renounceOwnership(options?: {
|
|
1310
|
+
accessList?: import("viem").AccessList;
|
|
1311
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1312
|
+
chain?: import("viem").Chain | null;
|
|
1313
|
+
dataSuffix?: `0x${string}`;
|
|
1314
|
+
gas?: bigint;
|
|
1315
|
+
gasPrice?: bigint;
|
|
1316
|
+
maxFeePerGas?: bigint;
|
|
1317
|
+
maxPriorityFeePerGas?: bigint;
|
|
1318
|
+
nonce?: number;
|
|
1319
|
+
value?: bigint;
|
|
1320
|
+
}): Promise<void>;
|
|
1321
|
+
/**
|
|
1322
|
+
* Simulate safeTransferFrom
|
|
1323
|
+
* Returns gas estimate and result without sending transaction
|
|
1324
|
+
* Supports multiple overloads: (address, address, uint256), (address, address, uint256, bytes)
|
|
1325
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1326
|
+
*/
|
|
1327
|
+
safeTransferFrom(...args: any[]): Promise<any>;
|
|
1328
|
+
/**
|
|
1329
|
+
* Simulate setApprovalForAll
|
|
1330
|
+
* Returns gas estimate and result without sending transaction
|
|
1331
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1332
|
+
*/
|
|
1333
|
+
setApprovalForAll(operator: `0x${string}`, approved: boolean, options?: {
|
|
1334
|
+
accessList?: import("viem").AccessList;
|
|
1335
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1336
|
+
chain?: import("viem").Chain | null;
|
|
1337
|
+
dataSuffix?: `0x${string}`;
|
|
1338
|
+
gas?: bigint;
|
|
1339
|
+
gasPrice?: bigint;
|
|
1340
|
+
maxFeePerGas?: bigint;
|
|
1341
|
+
maxPriorityFeePerGas?: bigint;
|
|
1342
|
+
nonce?: number;
|
|
1343
|
+
value?: bigint;
|
|
1344
|
+
}): Promise<void>;
|
|
1345
|
+
/**
|
|
1346
|
+
* Simulate setDefaultRoyaltyReceiver
|
|
1347
|
+
* Returns gas estimate and result without sending transaction
|
|
1348
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1349
|
+
*/
|
|
1350
|
+
setDefaultRoyaltyReceiver(_receiver: `0x${string}`, options?: {
|
|
1351
|
+
accessList?: import("viem").AccessList;
|
|
1352
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1353
|
+
chain?: import("viem").Chain | null;
|
|
1354
|
+
dataSuffix?: `0x${string}`;
|
|
1355
|
+
gas?: bigint;
|
|
1356
|
+
gasPrice?: bigint;
|
|
1357
|
+
maxFeePerGas?: bigint;
|
|
1358
|
+
maxPriorityFeePerGas?: bigint;
|
|
1359
|
+
nonce?: number;
|
|
1360
|
+
value?: bigint;
|
|
1361
|
+
}): Promise<void>;
|
|
1362
|
+
/**
|
|
1363
|
+
* Simulate setMinterApproval
|
|
1364
|
+
* Returns gas estimate and result without sending transaction
|
|
1365
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1366
|
+
*/
|
|
1367
|
+
setMinterApproval(_minter: `0x${string}`, _isMinter: boolean, options?: {
|
|
1368
|
+
accessList?: import("viem").AccessList;
|
|
1369
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1370
|
+
chain?: import("viem").Chain | null;
|
|
1371
|
+
dataSuffix?: `0x${string}`;
|
|
1372
|
+
gas?: bigint;
|
|
1373
|
+
gasPrice?: bigint;
|
|
1374
|
+
maxFeePerGas?: bigint;
|
|
1375
|
+
maxPriorityFeePerGas?: bigint;
|
|
1376
|
+
nonce?: number;
|
|
1377
|
+
value?: bigint;
|
|
1378
|
+
}): Promise<void>;
|
|
1379
|
+
/**
|
|
1380
|
+
* Simulate setRoyaltyReceiverForToken
|
|
1381
|
+
* Returns gas estimate and result without sending transaction
|
|
1382
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1383
|
+
*/
|
|
1384
|
+
setRoyaltyReceiverForToken(_receiver: `0x${string}`, _tokenId: bigint, options?: {
|
|
1385
|
+
accessList?: import("viem").AccessList;
|
|
1386
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1387
|
+
chain?: import("viem").Chain | null;
|
|
1388
|
+
dataSuffix?: `0x${string}`;
|
|
1389
|
+
gas?: bigint;
|
|
1390
|
+
gasPrice?: bigint;
|
|
1391
|
+
maxFeePerGas?: bigint;
|
|
1392
|
+
maxPriorityFeePerGas?: bigint;
|
|
1393
|
+
nonce?: number;
|
|
1394
|
+
value?: bigint;
|
|
1395
|
+
}): Promise<void>;
|
|
1396
|
+
/**
|
|
1397
|
+
* Simulate transferFrom
|
|
1398
|
+
* Returns gas estimate and result without sending transaction
|
|
1399
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1400
|
+
*/
|
|
1401
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
|
|
1402
|
+
accessList?: import("viem").AccessList;
|
|
1403
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1404
|
+
chain?: import("viem").Chain | null;
|
|
1405
|
+
dataSuffix?: `0x${string}`;
|
|
1406
|
+
gas?: bigint;
|
|
1407
|
+
gasPrice?: bigint;
|
|
1408
|
+
maxFeePerGas?: bigint;
|
|
1409
|
+
maxPriorityFeePerGas?: bigint;
|
|
1410
|
+
nonce?: number;
|
|
1411
|
+
value?: bigint;
|
|
1412
|
+
}): Promise<void>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Simulate transferOwnership
|
|
1415
|
+
* Returns gas estimate and result without sending transaction
|
|
1416
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1417
|
+
*/
|
|
1418
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1419
|
+
accessList?: import("viem").AccessList;
|
|
1420
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1421
|
+
chain?: import("viem").Chain | null;
|
|
1422
|
+
dataSuffix?: `0x${string}`;
|
|
1423
|
+
gas?: bigint;
|
|
1424
|
+
gasPrice?: bigint;
|
|
1425
|
+
maxFeePerGas?: bigint;
|
|
1426
|
+
maxPriorityFeePerGas?: bigint;
|
|
1427
|
+
nonce?: number;
|
|
1428
|
+
value?: bigint;
|
|
1429
|
+
}): Promise<void>;
|
|
1430
|
+
/**
|
|
1431
|
+
* Simulate updateBaseURI
|
|
1432
|
+
* Returns gas estimate and result without sending transaction
|
|
1433
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1434
|
+
*/
|
|
1435
|
+
updateBaseURI(_baseURI: string, options?: {
|
|
1436
|
+
accessList?: import("viem").AccessList;
|
|
1437
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1438
|
+
chain?: import("viem").Chain | null;
|
|
1439
|
+
dataSuffix?: `0x${string}`;
|
|
1440
|
+
gas?: bigint;
|
|
1441
|
+
gasPrice?: bigint;
|
|
1442
|
+
maxFeePerGas?: bigint;
|
|
1443
|
+
maxPriorityFeePerGas?: bigint;
|
|
1444
|
+
nonce?: number;
|
|
1445
|
+
value?: bigint;
|
|
1446
|
+
}): Promise<void>;
|
|
1447
|
+
/**
|
|
1448
|
+
* Simulate updateTokenURI
|
|
1449
|
+
* Returns gas estimate and result without sending transaction
|
|
1450
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1451
|
+
*/
|
|
1452
|
+
updateTokenURI(_tokenId: bigint, _metadataUri: string, options?: {
|
|
1453
|
+
accessList?: import("viem").AccessList;
|
|
1454
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1455
|
+
chain?: import("viem").Chain | null;
|
|
1456
|
+
dataSuffix?: `0x${string}`;
|
|
1457
|
+
gas?: bigint;
|
|
1458
|
+
gasPrice?: bigint;
|
|
1459
|
+
maxFeePerGas?: bigint;
|
|
1460
|
+
maxPriorityFeePerGas?: bigint;
|
|
1461
|
+
nonce?: number;
|
|
1462
|
+
value?: bigint;
|
|
1463
|
+
}): Promise<void>;
|
|
1464
|
+
};
|
|
1465
|
+
/**
|
|
1466
|
+
* Watch contract events
|
|
1467
|
+
*
|
|
1468
|
+
* @example
|
|
1469
|
+
* // Watch all Transfer events
|
|
1470
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1471
|
+
* console.log('Transfer:', event);
|
|
1472
|
+
* });
|
|
1473
|
+
*
|
|
1474
|
+
* // Stop watching
|
|
1475
|
+
* unwatch();
|
|
1476
|
+
*/
|
|
1477
|
+
get watch(): {
|
|
1478
|
+
/**
|
|
1479
|
+
* Watch Approval events
|
|
1480
|
+
* @param callback Function to call when event is emitted
|
|
1481
|
+
* @param filter Optional filter for indexed parameters
|
|
1482
|
+
* @returns Unwatch function to stop listening
|
|
1483
|
+
*/
|
|
1484
|
+
Approval: (callback: (event: {
|
|
1485
|
+
owner: `0x${string}`;
|
|
1486
|
+
approved: `0x${string}`;
|
|
1487
|
+
tokenId: bigint;
|
|
1488
|
+
}) => void, filter?: {
|
|
1489
|
+
owner: `0x${string}`;
|
|
1490
|
+
approved: `0x${string}`;
|
|
1491
|
+
tokenId: bigint;
|
|
1492
|
+
}) => () => void;
|
|
1493
|
+
/**
|
|
1494
|
+
* Watch ApprovalForAll events
|
|
1495
|
+
* @param callback Function to call when event is emitted
|
|
1496
|
+
* @param filter Optional filter for indexed parameters
|
|
1497
|
+
* @returns Unwatch function to stop listening
|
|
1498
|
+
*/
|
|
1499
|
+
ApprovalForAll: (callback: (event: {
|
|
1500
|
+
owner: `0x${string}`;
|
|
1501
|
+
operator: `0x${string}`;
|
|
1502
|
+
approved: boolean;
|
|
1503
|
+
}) => void, filter?: {
|
|
1504
|
+
owner: `0x${string}`;
|
|
1505
|
+
operator: `0x${string}`;
|
|
1506
|
+
}) => () => void;
|
|
1507
|
+
/**
|
|
1508
|
+
* Watch ContractDisabled events
|
|
1509
|
+
* @param callback Function to call when event is emitted
|
|
1510
|
+
* @param filter Optional filter for indexed parameters
|
|
1511
|
+
* @returns Unwatch function to stop listening
|
|
1512
|
+
*/
|
|
1513
|
+
ContractDisabled: (callback: (event: {
|
|
1514
|
+
user: `0x${string}`;
|
|
1515
|
+
}) => void, filter?: {
|
|
1516
|
+
user: `0x${string}`;
|
|
1517
|
+
}) => () => void;
|
|
1518
|
+
/**
|
|
1519
|
+
* Watch Initialized events
|
|
1520
|
+
* @param callback Function to call when event is emitted
|
|
1521
|
+
* @param filter Optional filter for indexed parameters
|
|
1522
|
+
* @returns Unwatch function to stop listening
|
|
1523
|
+
*/
|
|
1524
|
+
Initialized: (callback: (event: {
|
|
1525
|
+
version: bigint;
|
|
1526
|
+
}) => void) => () => void;
|
|
1527
|
+
/**
|
|
1528
|
+
* Watch MetadataLocked events
|
|
1529
|
+
* @param callback Function to call when event is emitted
|
|
1530
|
+
* @param filter Optional filter for indexed parameters
|
|
1531
|
+
* @returns Unwatch function to stop listening
|
|
1532
|
+
*/
|
|
1533
|
+
MetadataLocked: (callback: (event: {
|
|
1534
|
+
baseURI: string;
|
|
1535
|
+
}) => void) => () => void;
|
|
1536
|
+
/**
|
|
1537
|
+
* Watch MetadataUpdated events
|
|
1538
|
+
* @param callback Function to call when event is emitted
|
|
1539
|
+
* @param filter Optional filter for indexed parameters
|
|
1540
|
+
* @returns Unwatch function to stop listening
|
|
1541
|
+
*/
|
|
1542
|
+
MetadataUpdated: (callback: (event: {
|
|
1543
|
+
baseURI: string;
|
|
1544
|
+
}) => void) => () => void;
|
|
1545
|
+
/**
|
|
1546
|
+
* Watch OwnershipTransferred events
|
|
1547
|
+
* @param callback Function to call when event is emitted
|
|
1548
|
+
* @param filter Optional filter for indexed parameters
|
|
1549
|
+
* @returns Unwatch function to stop listening
|
|
1550
|
+
*/
|
|
1551
|
+
OwnershipTransferred: (callback: (event: {
|
|
1552
|
+
previousOwner: `0x${string}`;
|
|
1553
|
+
newOwner: `0x${string}`;
|
|
1554
|
+
}) => void, filter?: {
|
|
1555
|
+
previousOwner: `0x${string}`;
|
|
1556
|
+
newOwner: `0x${string}`;
|
|
1557
|
+
}) => () => void;
|
|
1558
|
+
/**
|
|
1559
|
+
* Watch PrepareMint events
|
|
1560
|
+
* @param callback Function to call when event is emitted
|
|
1561
|
+
* @param filter Optional filter for indexed parameters
|
|
1562
|
+
* @returns Unwatch function to stop listening
|
|
1563
|
+
*/
|
|
1564
|
+
PrepareMint: (callback: (event: {
|
|
1565
|
+
numberOfTokens: bigint;
|
|
1566
|
+
baseURI: string;
|
|
1567
|
+
}) => void, filter?: {
|
|
1568
|
+
numberOfTokens: bigint;
|
|
1569
|
+
}) => () => void;
|
|
1570
|
+
/**
|
|
1571
|
+
* Watch TokenURIUpdated events
|
|
1572
|
+
* @param callback Function to call when event is emitted
|
|
1573
|
+
* @param filter Optional filter for indexed parameters
|
|
1574
|
+
* @returns Unwatch function to stop listening
|
|
1575
|
+
*/
|
|
1576
|
+
TokenURIUpdated: (callback: (event: {
|
|
1577
|
+
tokenId: bigint;
|
|
1578
|
+
metadataUri: string;
|
|
1579
|
+
}) => void, filter?: {
|
|
1580
|
+
tokenId: bigint;
|
|
1581
|
+
}) => () => void;
|
|
1582
|
+
/**
|
|
1583
|
+
* Watch Transfer events
|
|
1584
|
+
* @param callback Function to call when event is emitted
|
|
1585
|
+
* @param filter Optional filter for indexed parameters
|
|
1586
|
+
* @returns Unwatch function to stop listening
|
|
1587
|
+
*/
|
|
1588
|
+
Transfer: (callback: (event: {
|
|
1589
|
+
from: `0x${string}`;
|
|
1590
|
+
to: `0x${string}`;
|
|
1591
|
+
tokenId: bigint;
|
|
1592
|
+
}) => void, filter?: {
|
|
1593
|
+
from: `0x${string}`;
|
|
1594
|
+
to: `0x${string}`;
|
|
1595
|
+
tokenId: bigint;
|
|
1596
|
+
}) => () => void;
|
|
1597
|
+
};
|
|
1598
|
+
}
|