@gitmyabi/rari 1.0.0 → 1.0.1
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 +3 -3
- package/contracts/{MintableToken_json.d.ts → RaribleToken_json.d.ts} +406 -256
- package/contracts/{MintableToken_json.js → RaribleToken_json.js} +442 -295
- package/contracts/{MintableToken_json.ts → RaribleToken_json.ts} +517 -328
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
|
@@ -3,33 +3,33 @@ import { getContract } from 'viem';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* ERC1155Base.Fee struct type
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
8
|
+
export type ERC1155Base_Fee = {
|
|
9
9
|
recipient: `0x${string}`;
|
|
10
10
|
value: bigint;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* RaribleToken_json ABI
|
|
14
14
|
*
|
|
15
15
|
* This ABI is typed using viem's type system for full type safety.
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
17
|
+
export const RaribleToken_jsonAbi = [
|
|
18
18
|
{
|
|
19
19
|
"inputs": [
|
|
20
20
|
{
|
|
21
21
|
"internalType": "string",
|
|
22
|
-
"name": "
|
|
22
|
+
"name": "_name",
|
|
23
23
|
"type": "string"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"internalType": "string",
|
|
27
|
-
"name": "
|
|
27
|
+
"name": "_symbol",
|
|
28
28
|
"type": "string"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"internalType": "address",
|
|
32
|
-
"name": "
|
|
32
|
+
"name": "signer",
|
|
33
33
|
"type": "address"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -53,23 +53,23 @@ export const MintableToken_jsonAbi = [
|
|
|
53
53
|
{
|
|
54
54
|
"indexed": true,
|
|
55
55
|
"internalType": "address",
|
|
56
|
-
"name": "
|
|
56
|
+
"name": "_owner",
|
|
57
57
|
"type": "address"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"indexed": true,
|
|
61
61
|
"internalType": "address",
|
|
62
|
-
"name": "
|
|
62
|
+
"name": "_operator",
|
|
63
63
|
"type": "address"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
"indexed":
|
|
67
|
-
"internalType": "
|
|
68
|
-
"name": "
|
|
69
|
-
"type": "
|
|
66
|
+
"indexed": false,
|
|
67
|
+
"internalType": "bool",
|
|
68
|
+
"name": "_approved",
|
|
69
|
+
"type": "bool"
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
|
-
"name": "
|
|
72
|
+
"name": "ApprovalForAll",
|
|
73
73
|
"type": "event"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
@@ -78,23 +78,42 @@ export const MintableToken_jsonAbi = [
|
|
|
78
78
|
{
|
|
79
79
|
"indexed": true,
|
|
80
80
|
"internalType": "address",
|
|
81
|
-
"name": "
|
|
81
|
+
"name": "previousOwner",
|
|
82
82
|
"type": "address"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"indexed": true,
|
|
86
86
|
"internalType": "address",
|
|
87
|
-
"name": "
|
|
87
|
+
"name": "newOwner",
|
|
88
88
|
"type": "address"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"name": "OwnershipTransferred",
|
|
92
|
+
"type": "event"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"anonymous": false,
|
|
96
|
+
"inputs": [
|
|
97
|
+
{
|
|
98
|
+
"indexed": false,
|
|
99
|
+
"internalType": "uint256",
|
|
100
|
+
"name": "tokenId",
|
|
101
|
+
"type": "uint256"
|
|
89
102
|
},
|
|
90
103
|
{
|
|
91
104
|
"indexed": false,
|
|
92
|
-
"internalType": "
|
|
93
|
-
"name": "
|
|
94
|
-
"type": "
|
|
105
|
+
"internalType": "address[]",
|
|
106
|
+
"name": "recipients",
|
|
107
|
+
"type": "address[]"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"indexed": false,
|
|
111
|
+
"internalType": "uint256[]",
|
|
112
|
+
"name": "bps",
|
|
113
|
+
"type": "uint256[]"
|
|
95
114
|
}
|
|
96
115
|
],
|
|
97
|
-
"name": "
|
|
116
|
+
"name": "SecondarySaleFees",
|
|
98
117
|
"type": "event"
|
|
99
118
|
},
|
|
100
119
|
{
|
|
@@ -103,42 +122,61 @@ export const MintableToken_jsonAbi = [
|
|
|
103
122
|
{
|
|
104
123
|
"indexed": true,
|
|
105
124
|
"internalType": "address",
|
|
106
|
-
"name": "
|
|
125
|
+
"name": "account",
|
|
107
126
|
"type": "address"
|
|
108
|
-
}
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"name": "SignerAdded",
|
|
130
|
+
"type": "event"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"anonymous": false,
|
|
134
|
+
"inputs": [
|
|
109
135
|
{
|
|
110
136
|
"indexed": true,
|
|
111
137
|
"internalType": "address",
|
|
112
|
-
"name": "
|
|
138
|
+
"name": "account",
|
|
113
139
|
"type": "address"
|
|
114
140
|
}
|
|
115
141
|
],
|
|
116
|
-
"name": "
|
|
142
|
+
"name": "SignerRemoved",
|
|
117
143
|
"type": "event"
|
|
118
144
|
},
|
|
119
145
|
{
|
|
120
146
|
"anonymous": false,
|
|
121
147
|
"inputs": [
|
|
122
148
|
{
|
|
123
|
-
"indexed":
|
|
124
|
-
"internalType": "
|
|
125
|
-
"name": "
|
|
126
|
-
"type": "
|
|
149
|
+
"indexed": true,
|
|
150
|
+
"internalType": "address",
|
|
151
|
+
"name": "_operator",
|
|
152
|
+
"type": "address"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"indexed": true,
|
|
156
|
+
"internalType": "address",
|
|
157
|
+
"name": "_from",
|
|
158
|
+
"type": "address"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"indexed": true,
|
|
162
|
+
"internalType": "address",
|
|
163
|
+
"name": "_to",
|
|
164
|
+
"type": "address"
|
|
127
165
|
},
|
|
128
166
|
{
|
|
129
167
|
"indexed": false,
|
|
130
|
-
"internalType": "
|
|
131
|
-
"name": "
|
|
132
|
-
"type": "
|
|
168
|
+
"internalType": "uint256[]",
|
|
169
|
+
"name": "_ids",
|
|
170
|
+
"type": "uint256[]"
|
|
133
171
|
},
|
|
134
172
|
{
|
|
135
173
|
"indexed": false,
|
|
136
174
|
"internalType": "uint256[]",
|
|
137
|
-
"name": "
|
|
175
|
+
"name": "_values",
|
|
138
176
|
"type": "uint256[]"
|
|
139
177
|
}
|
|
140
178
|
],
|
|
141
|
-
"name": "
|
|
179
|
+
"name": "TransferBatch",
|
|
142
180
|
"type": "event"
|
|
143
181
|
},
|
|
144
182
|
{
|
|
@@ -147,40 +185,66 @@ export const MintableToken_jsonAbi = [
|
|
|
147
185
|
{
|
|
148
186
|
"indexed": true,
|
|
149
187
|
"internalType": "address",
|
|
150
|
-
"name": "
|
|
188
|
+
"name": "_operator",
|
|
151
189
|
"type": "address"
|
|
152
190
|
},
|
|
153
191
|
{
|
|
154
192
|
"indexed": true,
|
|
155
193
|
"internalType": "address",
|
|
156
|
-
"name": "
|
|
194
|
+
"name": "_from",
|
|
157
195
|
"type": "address"
|
|
158
196
|
},
|
|
159
197
|
{
|
|
160
198
|
"indexed": true,
|
|
199
|
+
"internalType": "address",
|
|
200
|
+
"name": "_to",
|
|
201
|
+
"type": "address"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"indexed": false,
|
|
161
205
|
"internalType": "uint256",
|
|
162
|
-
"name": "
|
|
206
|
+
"name": "_id",
|
|
207
|
+
"type": "uint256"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"indexed": false,
|
|
211
|
+
"internalType": "uint256",
|
|
212
|
+
"name": "_value",
|
|
163
213
|
"type": "uint256"
|
|
164
214
|
}
|
|
165
215
|
],
|
|
166
|
-
"name": "
|
|
216
|
+
"name": "TransferSingle",
|
|
167
217
|
"type": "event"
|
|
168
218
|
},
|
|
169
219
|
{
|
|
170
|
-
"
|
|
220
|
+
"anonymous": false,
|
|
171
221
|
"inputs": [
|
|
172
222
|
{
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
223
|
+
"indexed": false,
|
|
224
|
+
"internalType": "string",
|
|
225
|
+
"name": "_value",
|
|
226
|
+
"type": "string"
|
|
176
227
|
},
|
|
177
228
|
{
|
|
229
|
+
"indexed": true,
|
|
178
230
|
"internalType": "uint256",
|
|
179
|
-
"name": "
|
|
231
|
+
"name": "_id",
|
|
180
232
|
"type": "uint256"
|
|
181
233
|
}
|
|
182
234
|
],
|
|
183
|
-
"name": "
|
|
235
|
+
"name": "URI",
|
|
236
|
+
"type": "event"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"constant": false,
|
|
240
|
+
"inputs": [
|
|
241
|
+
{
|
|
242
|
+
"internalType": "address",
|
|
243
|
+
"name": "account",
|
|
244
|
+
"type": "address"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"name": "addSigner",
|
|
184
248
|
"outputs": [],
|
|
185
249
|
"payable": false,
|
|
186
250
|
"stateMutability": "nonpayable",
|
|
@@ -191,8 +255,13 @@ export const MintableToken_jsonAbi = [
|
|
|
191
255
|
"inputs": [
|
|
192
256
|
{
|
|
193
257
|
"internalType": "address",
|
|
194
|
-
"name": "
|
|
258
|
+
"name": "_owner",
|
|
195
259
|
"type": "address"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"internalType": "uint256",
|
|
263
|
+
"name": "_id",
|
|
264
|
+
"type": "uint256"
|
|
196
265
|
}
|
|
197
266
|
],
|
|
198
267
|
"name": "balanceOf",
|
|
@@ -207,12 +276,48 @@ export const MintableToken_jsonAbi = [
|
|
|
207
276
|
"stateMutability": "view",
|
|
208
277
|
"type": "function"
|
|
209
278
|
},
|
|
279
|
+
{
|
|
280
|
+
"constant": true,
|
|
281
|
+
"inputs": [
|
|
282
|
+
{
|
|
283
|
+
"internalType": "address[]",
|
|
284
|
+
"name": "_owners",
|
|
285
|
+
"type": "address[]"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"internalType": "uint256[]",
|
|
289
|
+
"name": "_ids",
|
|
290
|
+
"type": "uint256[]"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"name": "balanceOfBatch",
|
|
294
|
+
"outputs": [
|
|
295
|
+
{
|
|
296
|
+
"internalType": "uint256[]",
|
|
297
|
+
"name": "",
|
|
298
|
+
"type": "uint256[]"
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"payable": false,
|
|
302
|
+
"stateMutability": "view",
|
|
303
|
+
"type": "function"
|
|
304
|
+
},
|
|
210
305
|
{
|
|
211
306
|
"constant": false,
|
|
212
307
|
"inputs": [
|
|
308
|
+
{
|
|
309
|
+
"internalType": "address",
|
|
310
|
+
"name": "_owner",
|
|
311
|
+
"type": "address"
|
|
312
|
+
},
|
|
213
313
|
{
|
|
214
314
|
"internalType": "uint256",
|
|
215
|
-
"name": "
|
|
315
|
+
"name": "_id",
|
|
316
|
+
"type": "uint256"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"internalType": "uint256",
|
|
320
|
+
"name": "_value",
|
|
216
321
|
"type": "uint256"
|
|
217
322
|
}
|
|
218
323
|
],
|
|
@@ -240,28 +345,18 @@ export const MintableToken_jsonAbi = [
|
|
|
240
345
|
{
|
|
241
346
|
"constant": true,
|
|
242
347
|
"inputs": [
|
|
243
|
-
{
|
|
244
|
-
"internalType": "uint256",
|
|
245
|
-
"name": "",
|
|
246
|
-
"type": "uint256"
|
|
247
|
-
},
|
|
248
348
|
{
|
|
249
349
|
"internalType": "uint256",
|
|
250
350
|
"name": "",
|
|
251
351
|
"type": "uint256"
|
|
252
352
|
}
|
|
253
353
|
],
|
|
254
|
-
"name": "
|
|
354
|
+
"name": "creators",
|
|
255
355
|
"outputs": [
|
|
256
356
|
{
|
|
257
|
-
"internalType": "address
|
|
258
|
-
"name": "
|
|
357
|
+
"internalType": "address",
|
|
358
|
+
"name": "",
|
|
259
359
|
"type": "address"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"internalType": "uint256",
|
|
263
|
-
"name": "value",
|
|
264
|
-
"type": "uint256"
|
|
265
360
|
}
|
|
266
361
|
],
|
|
267
362
|
"payable": false,
|
|
@@ -273,16 +368,26 @@ export const MintableToken_jsonAbi = [
|
|
|
273
368
|
"inputs": [
|
|
274
369
|
{
|
|
275
370
|
"internalType": "uint256",
|
|
276
|
-
"name": "
|
|
371
|
+
"name": "",
|
|
372
|
+
"type": "uint256"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"internalType": "uint256",
|
|
376
|
+
"name": "",
|
|
277
377
|
"type": "uint256"
|
|
278
378
|
}
|
|
279
379
|
],
|
|
280
|
-
"name": "
|
|
380
|
+
"name": "fees",
|
|
281
381
|
"outputs": [
|
|
282
382
|
{
|
|
283
|
-
"internalType": "address",
|
|
284
|
-
"name": "",
|
|
383
|
+
"internalType": "address payable",
|
|
384
|
+
"name": "recipient",
|
|
285
385
|
"type": "address"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"internalType": "uint256",
|
|
389
|
+
"name": "value",
|
|
390
|
+
"type": "uint256"
|
|
286
391
|
}
|
|
287
392
|
],
|
|
288
393
|
"payable": false,
|
|
@@ -336,12 +441,12 @@ export const MintableToken_jsonAbi = [
|
|
|
336
441
|
"inputs": [
|
|
337
442
|
{
|
|
338
443
|
"internalType": "address",
|
|
339
|
-
"name": "
|
|
444
|
+
"name": "_owner",
|
|
340
445
|
"type": "address"
|
|
341
446
|
},
|
|
342
447
|
{
|
|
343
448
|
"internalType": "address",
|
|
344
|
-
"name": "
|
|
449
|
+
"name": "_operator",
|
|
345
450
|
"type": "address"
|
|
346
451
|
}
|
|
347
452
|
],
|
|
@@ -372,12 +477,33 @@ export const MintableToken_jsonAbi = [
|
|
|
372
477
|
"stateMutability": "view",
|
|
373
478
|
"type": "function"
|
|
374
479
|
},
|
|
480
|
+
{
|
|
481
|
+
"constant": true,
|
|
482
|
+
"inputs": [
|
|
483
|
+
{
|
|
484
|
+
"internalType": "address",
|
|
485
|
+
"name": "account",
|
|
486
|
+
"type": "address"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"name": "isSigner",
|
|
490
|
+
"outputs": [
|
|
491
|
+
{
|
|
492
|
+
"internalType": "bool",
|
|
493
|
+
"name": "",
|
|
494
|
+
"type": "bool"
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
"payable": false,
|
|
498
|
+
"stateMutability": "view",
|
|
499
|
+
"type": "function"
|
|
500
|
+
},
|
|
375
501
|
{
|
|
376
502
|
"constant": false,
|
|
377
503
|
"inputs": [
|
|
378
504
|
{
|
|
379
505
|
"internalType": "uint256",
|
|
380
|
-
"name": "
|
|
506
|
+
"name": "id",
|
|
381
507
|
"type": "uint256"
|
|
382
508
|
},
|
|
383
509
|
{
|
|
@@ -408,13 +534,18 @@ export const MintableToken_jsonAbi = [
|
|
|
408
534
|
"type": "uint256"
|
|
409
535
|
}
|
|
410
536
|
],
|
|
411
|
-
"internalType": "struct
|
|
412
|
-
"name": "
|
|
537
|
+
"internalType": "struct ERC1155Base.Fee[]",
|
|
538
|
+
"name": "fees",
|
|
413
539
|
"type": "tuple[]"
|
|
414
540
|
},
|
|
541
|
+
{
|
|
542
|
+
"internalType": "uint256",
|
|
543
|
+
"name": "supply",
|
|
544
|
+
"type": "uint256"
|
|
545
|
+
},
|
|
415
546
|
{
|
|
416
547
|
"internalType": "string",
|
|
417
|
-
"name": "
|
|
548
|
+
"name": "uri",
|
|
418
549
|
"type": "string"
|
|
419
550
|
}
|
|
420
551
|
],
|
|
@@ -455,24 +586,18 @@ export const MintableToken_jsonAbi = [
|
|
|
455
586
|
"type": "function"
|
|
456
587
|
},
|
|
457
588
|
{
|
|
458
|
-
"constant":
|
|
589
|
+
"constant": false,
|
|
459
590
|
"inputs": [
|
|
460
|
-
{
|
|
461
|
-
"internalType": "uint256",
|
|
462
|
-
"name": "tokenId",
|
|
463
|
-
"type": "uint256"
|
|
464
|
-
}
|
|
465
|
-
],
|
|
466
|
-
"name": "ownerOf",
|
|
467
|
-
"outputs": [
|
|
468
591
|
{
|
|
469
592
|
"internalType": "address",
|
|
470
|
-
"name": "",
|
|
593
|
+
"name": "account",
|
|
471
594
|
"type": "address"
|
|
472
595
|
}
|
|
473
596
|
],
|
|
597
|
+
"name": "removeSigner",
|
|
598
|
+
"outputs": [],
|
|
474
599
|
"payable": false,
|
|
475
|
-
"stateMutability": "
|
|
600
|
+
"stateMutability": "nonpayable",
|
|
476
601
|
"type": "function"
|
|
477
602
|
},
|
|
478
603
|
{
|
|
@@ -484,26 +609,45 @@ export const MintableToken_jsonAbi = [
|
|
|
484
609
|
"stateMutability": "nonpayable",
|
|
485
610
|
"type": "function"
|
|
486
611
|
},
|
|
612
|
+
{
|
|
613
|
+
"constant": false,
|
|
614
|
+
"inputs": [],
|
|
615
|
+
"name": "renounceSigner",
|
|
616
|
+
"outputs": [],
|
|
617
|
+
"payable": false,
|
|
618
|
+
"stateMutability": "nonpayable",
|
|
619
|
+
"type": "function"
|
|
620
|
+
},
|
|
487
621
|
{
|
|
488
622
|
"constant": false,
|
|
489
623
|
"inputs": [
|
|
490
624
|
{
|
|
491
625
|
"internalType": "address",
|
|
492
|
-
"name": "
|
|
626
|
+
"name": "_from",
|
|
493
627
|
"type": "address"
|
|
494
628
|
},
|
|
495
629
|
{
|
|
496
630
|
"internalType": "address",
|
|
497
|
-
"name": "
|
|
631
|
+
"name": "_to",
|
|
498
632
|
"type": "address"
|
|
499
633
|
},
|
|
500
634
|
{
|
|
501
|
-
"internalType": "uint256",
|
|
502
|
-
"name": "
|
|
503
|
-
"type": "uint256"
|
|
635
|
+
"internalType": "uint256[]",
|
|
636
|
+
"name": "_ids",
|
|
637
|
+
"type": "uint256[]"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"internalType": "uint256[]",
|
|
641
|
+
"name": "_values",
|
|
642
|
+
"type": "uint256[]"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"internalType": "bytes",
|
|
646
|
+
"name": "_data",
|
|
647
|
+
"type": "bytes"
|
|
504
648
|
}
|
|
505
649
|
],
|
|
506
|
-
"name": "
|
|
650
|
+
"name": "safeBatchTransferFrom",
|
|
507
651
|
"outputs": [],
|
|
508
652
|
"payable": false,
|
|
509
653
|
"stateMutability": "nonpayable",
|
|
@@ -514,17 +658,22 @@ export const MintableToken_jsonAbi = [
|
|
|
514
658
|
"inputs": [
|
|
515
659
|
{
|
|
516
660
|
"internalType": "address",
|
|
517
|
-
"name": "
|
|
661
|
+
"name": "_from",
|
|
518
662
|
"type": "address"
|
|
519
663
|
},
|
|
520
664
|
{
|
|
521
665
|
"internalType": "address",
|
|
522
|
-
"name": "
|
|
666
|
+
"name": "_to",
|
|
523
667
|
"type": "address"
|
|
524
668
|
},
|
|
525
669
|
{
|
|
526
670
|
"internalType": "uint256",
|
|
527
|
-
"name": "
|
|
671
|
+
"name": "_id",
|
|
672
|
+
"type": "uint256"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"internalType": "uint256",
|
|
676
|
+
"name": "_value",
|
|
528
677
|
"type": "uint256"
|
|
529
678
|
},
|
|
530
679
|
{
|
|
@@ -544,12 +693,12 @@ export const MintableToken_jsonAbi = [
|
|
|
544
693
|
"inputs": [
|
|
545
694
|
{
|
|
546
695
|
"internalType": "address",
|
|
547
|
-
"name": "
|
|
696
|
+
"name": "_operator",
|
|
548
697
|
"type": "address"
|
|
549
698
|
},
|
|
550
699
|
{
|
|
551
700
|
"internalType": "bool",
|
|
552
|
-
"name": "
|
|
701
|
+
"name": "_approved",
|
|
553
702
|
"type": "bool"
|
|
554
703
|
}
|
|
555
704
|
],
|
|
@@ -586,107 +735,24 @@ export const MintableToken_jsonAbi = [
|
|
|
586
735
|
"name": "setTokenURIPrefix",
|
|
587
736
|
"outputs": [],
|
|
588
737
|
"payable": false,
|
|
589
|
-
"stateMutability": "nonpayable",
|
|
590
|
-
"type": "function"
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
"constant": true,
|
|
594
|
-
"inputs": [
|
|
595
|
-
{
|
|
596
|
-
"internalType": "bytes4",
|
|
597
|
-
"name": "interfaceId",
|
|
598
|
-
"type": "bytes4"
|
|
599
|
-
}
|
|
600
|
-
],
|
|
601
|
-
"name": "supportsInterface",
|
|
602
|
-
"outputs": [
|
|
603
|
-
{
|
|
604
|
-
"internalType": "bool",
|
|
605
|
-
"name": "",
|
|
606
|
-
"type": "bool"
|
|
607
|
-
}
|
|
608
|
-
],
|
|
609
|
-
"payable": false,
|
|
610
|
-
"stateMutability": "view",
|
|
611
|
-
"type": "function"
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
"constant": true,
|
|
615
|
-
"inputs": [],
|
|
616
|
-
"name": "symbol",
|
|
617
|
-
"outputs": [
|
|
618
|
-
{
|
|
619
|
-
"internalType": "string",
|
|
620
|
-
"name": "",
|
|
621
|
-
"type": "string"
|
|
622
|
-
}
|
|
623
|
-
],
|
|
624
|
-
"payable": false,
|
|
625
|
-
"stateMutability": "view",
|
|
626
|
-
"type": "function"
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
"constant": true,
|
|
630
|
-
"inputs": [
|
|
631
|
-
{
|
|
632
|
-
"internalType": "uint256",
|
|
633
|
-
"name": "index",
|
|
634
|
-
"type": "uint256"
|
|
635
|
-
}
|
|
636
|
-
],
|
|
637
|
-
"name": "tokenByIndex",
|
|
638
|
-
"outputs": [
|
|
639
|
-
{
|
|
640
|
-
"internalType": "uint256",
|
|
641
|
-
"name": "",
|
|
642
|
-
"type": "uint256"
|
|
643
|
-
}
|
|
644
|
-
],
|
|
645
|
-
"payable": false,
|
|
646
|
-
"stateMutability": "view",
|
|
647
|
-
"type": "function"
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
"constant": true,
|
|
651
|
-
"inputs": [
|
|
652
|
-
{
|
|
653
|
-
"internalType": "address",
|
|
654
|
-
"name": "owner",
|
|
655
|
-
"type": "address"
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"internalType": "uint256",
|
|
659
|
-
"name": "index",
|
|
660
|
-
"type": "uint256"
|
|
661
|
-
}
|
|
662
|
-
],
|
|
663
|
-
"name": "tokenOfOwnerByIndex",
|
|
664
|
-
"outputs": [
|
|
665
|
-
{
|
|
666
|
-
"internalType": "uint256",
|
|
667
|
-
"name": "",
|
|
668
|
-
"type": "uint256"
|
|
669
|
-
}
|
|
670
|
-
],
|
|
671
|
-
"payable": false,
|
|
672
|
-
"stateMutability": "view",
|
|
738
|
+
"stateMutability": "nonpayable",
|
|
673
739
|
"type": "function"
|
|
674
740
|
},
|
|
675
741
|
{
|
|
676
742
|
"constant": true,
|
|
677
743
|
"inputs": [
|
|
678
744
|
{
|
|
679
|
-
"internalType": "
|
|
680
|
-
"name": "
|
|
681
|
-
"type": "
|
|
745
|
+
"internalType": "bytes4",
|
|
746
|
+
"name": "interfaceId",
|
|
747
|
+
"type": "bytes4"
|
|
682
748
|
}
|
|
683
749
|
],
|
|
684
|
-
"name": "
|
|
750
|
+
"name": "supportsInterface",
|
|
685
751
|
"outputs": [
|
|
686
752
|
{
|
|
687
|
-
"internalType": "
|
|
753
|
+
"internalType": "bool",
|
|
688
754
|
"name": "",
|
|
689
|
-
"type": "
|
|
755
|
+
"type": "bool"
|
|
690
756
|
}
|
|
691
757
|
],
|
|
692
758
|
"payable": false,
|
|
@@ -696,7 +762,7 @@ export const MintableToken_jsonAbi = [
|
|
|
696
762
|
{
|
|
697
763
|
"constant": true,
|
|
698
764
|
"inputs": [],
|
|
699
|
-
"name": "
|
|
765
|
+
"name": "symbol",
|
|
700
766
|
"outputs": [
|
|
701
767
|
{
|
|
702
768
|
"internalType": "string",
|
|
@@ -711,12 +777,12 @@ export const MintableToken_jsonAbi = [
|
|
|
711
777
|
{
|
|
712
778
|
"constant": true,
|
|
713
779
|
"inputs": [],
|
|
714
|
-
"name": "
|
|
780
|
+
"name": "tokenURIPrefix",
|
|
715
781
|
"outputs": [
|
|
716
782
|
{
|
|
717
|
-
"internalType": "
|
|
783
|
+
"internalType": "string",
|
|
718
784
|
"name": "",
|
|
719
|
-
"type": "
|
|
785
|
+
"type": "string"
|
|
720
786
|
}
|
|
721
787
|
],
|
|
722
788
|
"payable": false,
|
|
@@ -728,57 +794,53 @@ export const MintableToken_jsonAbi = [
|
|
|
728
794
|
"inputs": [
|
|
729
795
|
{
|
|
730
796
|
"internalType": "address",
|
|
731
|
-
"name": "
|
|
732
|
-
"type": "address"
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
"internalType": "address",
|
|
736
|
-
"name": "to",
|
|
797
|
+
"name": "newOwner",
|
|
737
798
|
"type": "address"
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
"internalType": "uint256",
|
|
741
|
-
"name": "tokenId",
|
|
742
|
-
"type": "uint256"
|
|
743
799
|
}
|
|
744
800
|
],
|
|
745
|
-
"name": "
|
|
801
|
+
"name": "transferOwnership",
|
|
746
802
|
"outputs": [],
|
|
747
803
|
"payable": false,
|
|
748
804
|
"stateMutability": "nonpayable",
|
|
749
805
|
"type": "function"
|
|
750
806
|
},
|
|
751
807
|
{
|
|
752
|
-
"constant":
|
|
808
|
+
"constant": true,
|
|
753
809
|
"inputs": [
|
|
754
810
|
{
|
|
755
|
-
"internalType": "
|
|
756
|
-
"name": "
|
|
757
|
-
"type": "
|
|
811
|
+
"internalType": "uint256",
|
|
812
|
+
"name": "_id",
|
|
813
|
+
"type": "uint256"
|
|
814
|
+
}
|
|
815
|
+
],
|
|
816
|
+
"name": "uri",
|
|
817
|
+
"outputs": [
|
|
818
|
+
{
|
|
819
|
+
"internalType": "string",
|
|
820
|
+
"name": "",
|
|
821
|
+
"type": "string"
|
|
758
822
|
}
|
|
759
823
|
],
|
|
760
|
-
"name": "transferOwnership",
|
|
761
|
-
"outputs": [],
|
|
762
824
|
"payable": false,
|
|
763
|
-
"stateMutability": "
|
|
825
|
+
"stateMutability": "view",
|
|
764
826
|
"type": "function"
|
|
765
827
|
}
|
|
766
828
|
] as const satisfies Abi;
|
|
767
829
|
|
|
768
830
|
/**
|
|
769
|
-
* Type-safe ABI for
|
|
831
|
+
* Type-safe ABI for RaribleToken_json
|
|
770
832
|
*/
|
|
771
|
-
export type
|
|
833
|
+
export type RaribleToken_jsonAbi = typeof RaribleToken_jsonAbi;
|
|
772
834
|
|
|
773
835
|
/**
|
|
774
|
-
* Contract instance type for
|
|
836
|
+
* Contract instance type for RaribleToken_json
|
|
775
837
|
*/
|
|
776
838
|
// Use any for contract type to avoid complex viem type issues
|
|
777
839
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
778
|
-
export type
|
|
840
|
+
export type RaribleToken_jsonContract = any;
|
|
779
841
|
|
|
780
842
|
/**
|
|
781
|
-
*
|
|
843
|
+
* RaribleToken_json Contract Class
|
|
782
844
|
*
|
|
783
845
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
784
846
|
*
|
|
@@ -786,12 +848,12 @@ export type MintableToken_jsonContract = any;
|
|
|
786
848
|
* ```typescript
|
|
787
849
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
788
850
|
* import { mainnet } from 'viem/chains';
|
|
789
|
-
* import {
|
|
851
|
+
* import { RaribleToken_json } from 'RaribleToken_json';
|
|
790
852
|
*
|
|
791
853
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
792
854
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
793
855
|
*
|
|
794
|
-
* const contract = new
|
|
856
|
+
* const contract = new RaribleToken_json('0x...', { publicClient, walletClient });
|
|
795
857
|
*
|
|
796
858
|
* // Read functions
|
|
797
859
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -809,8 +871,8 @@ export type MintableToken_jsonContract = any;
|
|
|
809
871
|
* });
|
|
810
872
|
* ```
|
|
811
873
|
*/
|
|
812
|
-
export class
|
|
813
|
-
private contract:
|
|
874
|
+
export class RaribleToken_json {
|
|
875
|
+
private contract: RaribleToken_jsonContract;
|
|
814
876
|
private contractAddress: Address;
|
|
815
877
|
private publicClient: PublicClient;
|
|
816
878
|
|
|
@@ -825,7 +887,7 @@ export class MintableToken_json {
|
|
|
825
887
|
this.publicClient = clients.publicClient;
|
|
826
888
|
this.contract = getContract({
|
|
827
889
|
address,
|
|
828
|
-
abi:
|
|
890
|
+
abi: RaribleToken_jsonAbi,
|
|
829
891
|
client: {
|
|
830
892
|
public: clients.publicClient,
|
|
831
893
|
wallet: clients.walletClient,
|
|
@@ -843,7 +905,7 @@ export class MintableToken_json {
|
|
|
843
905
|
/**
|
|
844
906
|
* Get the underlying viem contract instance
|
|
845
907
|
*/
|
|
846
|
-
getContract():
|
|
908
|
+
getContract(): RaribleToken_jsonContract {
|
|
847
909
|
return this.contract;
|
|
848
910
|
}
|
|
849
911
|
|
|
@@ -851,8 +913,16 @@ export class MintableToken_json {
|
|
|
851
913
|
* balanceOf
|
|
852
914
|
* view
|
|
853
915
|
*/
|
|
854
|
-
async balanceOf(
|
|
855
|
-
return this.contract.read.balanceOf([
|
|
916
|
+
async balanceOf(_owner: `0x${string}`, _id: bigint): Promise<bigint> {
|
|
917
|
+
return this.contract.read.balanceOf([_owner, _id] as const) as Promise<bigint>;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* balanceOfBatch
|
|
922
|
+
* view
|
|
923
|
+
*/
|
|
924
|
+
async balanceOfBatch(_owners: `0x${string}`[], _ids: bigint[]): Promise<bigint[]> {
|
|
925
|
+
return this.contract.read.balanceOfBatch([_owners, _ids] as const) as Promise<bigint[]>;
|
|
856
926
|
}
|
|
857
927
|
|
|
858
928
|
/**
|
|
@@ -864,19 +934,19 @@ export class MintableToken_json {
|
|
|
864
934
|
}
|
|
865
935
|
|
|
866
936
|
/**
|
|
867
|
-
*
|
|
937
|
+
* creators
|
|
868
938
|
* view
|
|
869
939
|
*/
|
|
870
|
-
async
|
|
871
|
-
return this.contract.read.
|
|
940
|
+
async creators(arg0: bigint): Promise<`0x${string}`> {
|
|
941
|
+
return this.contract.read.creators([arg0] as const) as Promise<`0x${string}`>;
|
|
872
942
|
}
|
|
873
943
|
|
|
874
944
|
/**
|
|
875
|
-
*
|
|
945
|
+
* fees
|
|
876
946
|
* view
|
|
877
947
|
*/
|
|
878
|
-
async
|
|
879
|
-
return this.contract.read.
|
|
948
|
+
async fees(arg0: bigint, arg1: bigint): Promise<[`0x${string}`, bigint]> {
|
|
949
|
+
return this.contract.read.fees([arg0, arg1] as const) as Promise<[`0x${string}`, bigint]>;
|
|
880
950
|
}
|
|
881
951
|
|
|
882
952
|
/**
|
|
@@ -899,8 +969,8 @@ export class MintableToken_json {
|
|
|
899
969
|
* isApprovedForAll
|
|
900
970
|
* view
|
|
901
971
|
*/
|
|
902
|
-
async isApprovedForAll(
|
|
903
|
-
return this.contract.read.isApprovedForAll([
|
|
972
|
+
async isApprovedForAll(_owner: `0x${string}`, _operator: `0x${string}`): Promise<boolean> {
|
|
973
|
+
return this.contract.read.isApprovedForAll([_owner, _operator] as const) as Promise<boolean>;
|
|
904
974
|
}
|
|
905
975
|
|
|
906
976
|
/**
|
|
@@ -911,6 +981,14 @@ export class MintableToken_json {
|
|
|
911
981
|
return this.contract.read.isOwner() as Promise<boolean>;
|
|
912
982
|
}
|
|
913
983
|
|
|
984
|
+
/**
|
|
985
|
+
* isSigner
|
|
986
|
+
* view
|
|
987
|
+
*/
|
|
988
|
+
async isSigner(account: `0x${string}`): Promise<boolean> {
|
|
989
|
+
return this.contract.read.isSigner([account] as const) as Promise<boolean>;
|
|
990
|
+
}
|
|
991
|
+
|
|
914
992
|
/**
|
|
915
993
|
* name
|
|
916
994
|
* view
|
|
@@ -927,14 +1005,6 @@ export class MintableToken_json {
|
|
|
927
1005
|
return this.contract.read.owner() as Promise<`0x${string}`>;
|
|
928
1006
|
}
|
|
929
1007
|
|
|
930
|
-
/**
|
|
931
|
-
* ownerOf
|
|
932
|
-
* view
|
|
933
|
-
*/
|
|
934
|
-
async ownerOf(tokenId: bigint): Promise<`0x${string}`> {
|
|
935
|
-
return this.contract.read.ownerOf([tokenId] as const) as Promise<`0x${string}`>;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
1008
|
/**
|
|
939
1009
|
* supportsInterface
|
|
940
1010
|
* view
|
|
@@ -951,30 +1021,6 @@ export class MintableToken_json {
|
|
|
951
1021
|
return this.contract.read.symbol() as Promise<string>;
|
|
952
1022
|
}
|
|
953
1023
|
|
|
954
|
-
/**
|
|
955
|
-
* tokenByIndex
|
|
956
|
-
* view
|
|
957
|
-
*/
|
|
958
|
-
async tokenByIndex(index: bigint): Promise<bigint> {
|
|
959
|
-
return this.contract.read.tokenByIndex([index] as const) as Promise<bigint>;
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
/**
|
|
963
|
-
* tokenOfOwnerByIndex
|
|
964
|
-
* view
|
|
965
|
-
*/
|
|
966
|
-
async tokenOfOwnerByIndex(owner: `0x${string}`, index: bigint): Promise<bigint> {
|
|
967
|
-
return this.contract.read.tokenOfOwnerByIndex([owner, index] as const) as Promise<bigint>;
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* tokenURI
|
|
972
|
-
* view
|
|
973
|
-
*/
|
|
974
|
-
async tokenURI(tokenId: bigint): Promise<string> {
|
|
975
|
-
return this.contract.read.tokenURI([tokenId] as const) as Promise<string>;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
1024
|
/**
|
|
979
1025
|
* tokenURIPrefix
|
|
980
1026
|
* view
|
|
@@ -984,19 +1030,19 @@ export class MintableToken_json {
|
|
|
984
1030
|
}
|
|
985
1031
|
|
|
986
1032
|
/**
|
|
987
|
-
*
|
|
1033
|
+
* uri
|
|
988
1034
|
* view
|
|
989
1035
|
*/
|
|
990
|
-
async
|
|
991
|
-
return this.contract.read.
|
|
1036
|
+
async uri(_id: bigint): Promise<string> {
|
|
1037
|
+
return this.contract.read.uri([_id] as const) as Promise<string>;
|
|
992
1038
|
}
|
|
993
1039
|
|
|
994
1040
|
/**
|
|
995
|
-
*
|
|
1041
|
+
* addSigner
|
|
996
1042
|
* nonpayable
|
|
997
1043
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
998
1044
|
*/
|
|
999
|
-
async
|
|
1045
|
+
async addSigner(account: `0x${string}`, options?: {
|
|
1000
1046
|
accessList?: import('viem').AccessList;
|
|
1001
1047
|
authorizationList?: import('viem').AuthorizationList;
|
|
1002
1048
|
chain?: import('viem').Chain | null;
|
|
@@ -1011,7 +1057,7 @@ export class MintableToken_json {
|
|
|
1011
1057
|
if (!this.contract.write) {
|
|
1012
1058
|
throw new Error('Wallet client is required for write operations');
|
|
1013
1059
|
}
|
|
1014
|
-
return this.contract.write.
|
|
1060
|
+
return this.contract.write.addSigner([account] as const, options) as Promise<`0x${string}`>;
|
|
1015
1061
|
}
|
|
1016
1062
|
|
|
1017
1063
|
/**
|
|
@@ -1019,7 +1065,7 @@ export class MintableToken_json {
|
|
|
1019
1065
|
* nonpayable
|
|
1020
1066
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1021
1067
|
*/
|
|
1022
|
-
async burn(
|
|
1068
|
+
async burn(_owner: `0x${string}`, _id: bigint, _value: bigint, options?: {
|
|
1023
1069
|
accessList?: import('viem').AccessList;
|
|
1024
1070
|
authorizationList?: import('viem').AuthorizationList;
|
|
1025
1071
|
chain?: import('viem').Chain | null;
|
|
@@ -1034,7 +1080,7 @@ export class MintableToken_json {
|
|
|
1034
1080
|
if (!this.contract.write) {
|
|
1035
1081
|
throw new Error('Wallet client is required for write operations');
|
|
1036
1082
|
}
|
|
1037
|
-
return this.contract.write.burn([
|
|
1083
|
+
return this.contract.write.burn([_owner, _id, _value] as const, options) as Promise<`0x${string}`>;
|
|
1038
1084
|
}
|
|
1039
1085
|
|
|
1040
1086
|
/**
|
|
@@ -1042,7 +1088,30 @@ export class MintableToken_json {
|
|
|
1042
1088
|
* nonpayable
|
|
1043
1089
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1044
1090
|
*/
|
|
1045
|
-
async mint(
|
|
1091
|
+
async mint(id: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, fees: ERC1155Base_Fee[], supply: bigint, uri: string, options?: {
|
|
1092
|
+
accessList?: import('viem').AccessList;
|
|
1093
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1094
|
+
chain?: import('viem').Chain | null;
|
|
1095
|
+
dataSuffix?: `0x${string}`;
|
|
1096
|
+
gas?: bigint;
|
|
1097
|
+
gasPrice?: bigint;
|
|
1098
|
+
maxFeePerGas?: bigint;
|
|
1099
|
+
maxPriorityFeePerGas?: bigint;
|
|
1100
|
+
nonce?: number;
|
|
1101
|
+
value?: bigint;
|
|
1102
|
+
}): Promise<`0x${string}`> {
|
|
1103
|
+
if (!this.contract.write) {
|
|
1104
|
+
throw new Error('Wallet client is required for write operations');
|
|
1105
|
+
}
|
|
1106
|
+
return this.contract.write.mint([id, v, r, s, fees, supply, uri] as const, options) as Promise<`0x${string}`>;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* removeSigner
|
|
1111
|
+
* nonpayable
|
|
1112
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1113
|
+
*/
|
|
1114
|
+
async removeSigner(account: `0x${string}`, options?: {
|
|
1046
1115
|
accessList?: import('viem').AccessList;
|
|
1047
1116
|
authorizationList?: import('viem').AuthorizationList;
|
|
1048
1117
|
chain?: import('viem').Chain | null;
|
|
@@ -1057,7 +1126,7 @@ export class MintableToken_json {
|
|
|
1057
1126
|
if (!this.contract.write) {
|
|
1058
1127
|
throw new Error('Wallet client is required for write operations');
|
|
1059
1128
|
}
|
|
1060
|
-
return this.contract.write.
|
|
1129
|
+
return this.contract.write.removeSigner([account] as const, options) as Promise<`0x${string}`>;
|
|
1061
1130
|
}
|
|
1062
1131
|
|
|
1063
1132
|
/**
|
|
@@ -1083,7 +1152,12 @@ export class MintableToken_json {
|
|
|
1083
1152
|
return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
|
|
1084
1153
|
}
|
|
1085
1154
|
|
|
1086
|
-
|
|
1155
|
+
/**
|
|
1156
|
+
* renounceSigner
|
|
1157
|
+
* nonpayable
|
|
1158
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1159
|
+
*/
|
|
1160
|
+
async renounceSigner(options?: {
|
|
1087
1161
|
accessList?: import('viem').AccessList;
|
|
1088
1162
|
authorizationList?: import('viem').AuthorizationList;
|
|
1089
1163
|
chain?: import('viem').Chain | null;
|
|
@@ -1094,8 +1168,19 @@ export class MintableToken_json {
|
|
|
1094
1168
|
maxPriorityFeePerGas?: bigint;
|
|
1095
1169
|
nonce?: number;
|
|
1096
1170
|
value?: bigint;
|
|
1097
|
-
}): Promise<`0x${string}
|
|
1098
|
-
|
|
1171
|
+
}): Promise<`0x${string}`> {
|
|
1172
|
+
if (!this.contract.write) {
|
|
1173
|
+
throw new Error('Wallet client is required for write operations');
|
|
1174
|
+
}
|
|
1175
|
+
return this.contract.write.renounceSigner(options) as Promise<`0x${string}`>;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* safeBatchTransferFrom
|
|
1180
|
+
* nonpayable
|
|
1181
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1182
|
+
*/
|
|
1183
|
+
async safeBatchTransferFrom(_from: `0x${string}`, _to: `0x${string}`, _ids: bigint[], _values: bigint[], _data: `0x${string}`, options?: {
|
|
1099
1184
|
accessList?: import('viem').AccessList;
|
|
1100
1185
|
authorizationList?: import('viem').AuthorizationList;
|
|
1101
1186
|
chain?: import('viem').Chain | null;
|
|
@@ -1106,20 +1191,19 @@ export class MintableToken_json {
|
|
|
1106
1191
|
maxPriorityFeePerGas?: bigint;
|
|
1107
1192
|
nonce?: number;
|
|
1108
1193
|
value?: bigint;
|
|
1109
|
-
}): Promise<`0x${string}
|
|
1110
|
-
async safeTransferFrom(...args: any[]): Promise<`0x${string}`> {
|
|
1194
|
+
}): Promise<`0x${string}`> {
|
|
1111
1195
|
if (!this.contract.write) {
|
|
1112
1196
|
throw new Error('Wallet client is required for write operations');
|
|
1113
1197
|
}
|
|
1114
|
-
return this.contract.write.
|
|
1198
|
+
return this.contract.write.safeBatchTransferFrom([_from, _to, _ids, _values, _data] as const, options) as Promise<`0x${string}`>;
|
|
1115
1199
|
}
|
|
1116
1200
|
|
|
1117
1201
|
/**
|
|
1118
|
-
*
|
|
1202
|
+
* safeTransferFrom
|
|
1119
1203
|
* nonpayable
|
|
1120
1204
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1121
1205
|
*/
|
|
1122
|
-
async
|
|
1206
|
+
async safeTransferFrom(_from: `0x${string}`, _to: `0x${string}`, _id: bigint, _value: bigint, _data: `0x${string}`, options?: {
|
|
1123
1207
|
accessList?: import('viem').AccessList;
|
|
1124
1208
|
authorizationList?: import('viem').AuthorizationList;
|
|
1125
1209
|
chain?: import('viem').Chain | null;
|
|
@@ -1134,15 +1218,15 @@ export class MintableToken_json {
|
|
|
1134
1218
|
if (!this.contract.write) {
|
|
1135
1219
|
throw new Error('Wallet client is required for write operations');
|
|
1136
1220
|
}
|
|
1137
|
-
return this.contract.write.
|
|
1221
|
+
return this.contract.write.safeTransferFrom([_from, _to, _id, _value, _data] as const, options) as Promise<`0x${string}`>;
|
|
1138
1222
|
}
|
|
1139
1223
|
|
|
1140
1224
|
/**
|
|
1141
|
-
*
|
|
1225
|
+
* setApprovalForAll
|
|
1142
1226
|
* nonpayable
|
|
1143
1227
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1144
1228
|
*/
|
|
1145
|
-
async
|
|
1229
|
+
async setApprovalForAll(_operator: `0x${string}`, _approved: boolean, options?: {
|
|
1146
1230
|
accessList?: import('viem').AccessList;
|
|
1147
1231
|
authorizationList?: import('viem').AuthorizationList;
|
|
1148
1232
|
chain?: import('viem').Chain | null;
|
|
@@ -1157,15 +1241,15 @@ export class MintableToken_json {
|
|
|
1157
1241
|
if (!this.contract.write) {
|
|
1158
1242
|
throw new Error('Wallet client is required for write operations');
|
|
1159
1243
|
}
|
|
1160
|
-
return this.contract.write.
|
|
1244
|
+
return this.contract.write.setApprovalForAll([_operator, _approved] as const, options) as Promise<`0x${string}`>;
|
|
1161
1245
|
}
|
|
1162
1246
|
|
|
1163
1247
|
/**
|
|
1164
|
-
*
|
|
1248
|
+
* setContractURI
|
|
1165
1249
|
* nonpayable
|
|
1166
1250
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1167
1251
|
*/
|
|
1168
|
-
async
|
|
1252
|
+
async setContractURI(contractURI: string, options?: {
|
|
1169
1253
|
accessList?: import('viem').AccessList;
|
|
1170
1254
|
authorizationList?: import('viem').AuthorizationList;
|
|
1171
1255
|
chain?: import('viem').Chain | null;
|
|
@@ -1180,15 +1264,15 @@ export class MintableToken_json {
|
|
|
1180
1264
|
if (!this.contract.write) {
|
|
1181
1265
|
throw new Error('Wallet client is required for write operations');
|
|
1182
1266
|
}
|
|
1183
|
-
return this.contract.write.
|
|
1267
|
+
return this.contract.write.setContractURI([contractURI] as const, options) as Promise<`0x${string}`>;
|
|
1184
1268
|
}
|
|
1185
1269
|
|
|
1186
1270
|
/**
|
|
1187
|
-
*
|
|
1271
|
+
* setTokenURIPrefix
|
|
1188
1272
|
* nonpayable
|
|
1189
1273
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1190
1274
|
*/
|
|
1191
|
-
async
|
|
1275
|
+
async setTokenURIPrefix(tokenURIPrefix: string, options?: {
|
|
1192
1276
|
accessList?: import('viem').AccessList;
|
|
1193
1277
|
authorizationList?: import('viem').AuthorizationList;
|
|
1194
1278
|
chain?: import('viem').Chain | null;
|
|
@@ -1203,7 +1287,7 @@ export class MintableToken_json {
|
|
|
1203
1287
|
if (!this.contract.write) {
|
|
1204
1288
|
throw new Error('Wallet client is required for write operations');
|
|
1205
1289
|
}
|
|
1206
|
-
return this.contract.write.
|
|
1290
|
+
return this.contract.write.setTokenURIPrefix([tokenURIPrefix] as const, options) as Promise<`0x${string}`>;
|
|
1207
1291
|
}
|
|
1208
1292
|
|
|
1209
1293
|
/**
|
|
@@ -1246,11 +1330,11 @@ export class MintableToken_json {
|
|
|
1246
1330
|
}
|
|
1247
1331
|
return {
|
|
1248
1332
|
/**
|
|
1249
|
-
* Simulate
|
|
1333
|
+
* Simulate addSigner
|
|
1250
1334
|
* Returns gas estimate and result without sending transaction
|
|
1251
1335
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1252
1336
|
*/
|
|
1253
|
-
async
|
|
1337
|
+
async addSigner(account: `0x${string}`, options?: {
|
|
1254
1338
|
accessList?: import('viem').AccessList;
|
|
1255
1339
|
authorizationList?: import('viem').AuthorizationList;
|
|
1256
1340
|
chain?: import('viem').Chain | null;
|
|
@@ -1262,14 +1346,14 @@ export class MintableToken_json {
|
|
|
1262
1346
|
nonce?: number;
|
|
1263
1347
|
value?: bigint;
|
|
1264
1348
|
}): Promise<void> {
|
|
1265
|
-
return contract.simulate.
|
|
1349
|
+
return contract.simulate.addSigner([account] as const, options) as Promise<void>;
|
|
1266
1350
|
},
|
|
1267
1351
|
/**
|
|
1268
1352
|
* Simulate burn
|
|
1269
1353
|
* Returns gas estimate and result without sending transaction
|
|
1270
1354
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1271
1355
|
*/
|
|
1272
|
-
async burn(
|
|
1356
|
+
async burn(_owner: `0x${string}`, _id: bigint, _value: bigint, options?: {
|
|
1273
1357
|
accessList?: import('viem').AccessList;
|
|
1274
1358
|
authorizationList?: import('viem').AuthorizationList;
|
|
1275
1359
|
chain?: import('viem').Chain | null;
|
|
@@ -1281,14 +1365,33 @@ export class MintableToken_json {
|
|
|
1281
1365
|
nonce?: number;
|
|
1282
1366
|
value?: bigint;
|
|
1283
1367
|
}): Promise<void> {
|
|
1284
|
-
return contract.simulate.burn([
|
|
1368
|
+
return contract.simulate.burn([_owner, _id, _value] as const, options) as Promise<void>;
|
|
1285
1369
|
},
|
|
1286
1370
|
/**
|
|
1287
1371
|
* Simulate mint
|
|
1288
1372
|
* Returns gas estimate and result without sending transaction
|
|
1289
1373
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1290
1374
|
*/
|
|
1291
|
-
async mint(
|
|
1375
|
+
async mint(id: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, fees: ERC1155Base_Fee[], supply: bigint, uri: string, options?: {
|
|
1376
|
+
accessList?: import('viem').AccessList;
|
|
1377
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1378
|
+
chain?: import('viem').Chain | null;
|
|
1379
|
+
dataSuffix?: `0x${string}`;
|
|
1380
|
+
gas?: bigint;
|
|
1381
|
+
gasPrice?: bigint;
|
|
1382
|
+
maxFeePerGas?: bigint;
|
|
1383
|
+
maxPriorityFeePerGas?: bigint;
|
|
1384
|
+
nonce?: number;
|
|
1385
|
+
value?: bigint;
|
|
1386
|
+
}): Promise<void> {
|
|
1387
|
+
return contract.simulate.mint([id, v, r, s, fees, supply, uri] as const, options) as Promise<void>;
|
|
1388
|
+
},
|
|
1389
|
+
/**
|
|
1390
|
+
* Simulate removeSigner
|
|
1391
|
+
* Returns gas estimate and result without sending transaction
|
|
1392
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1393
|
+
*/
|
|
1394
|
+
async removeSigner(account: `0x${string}`, options?: {
|
|
1292
1395
|
accessList?: import('viem').AccessList;
|
|
1293
1396
|
authorizationList?: import('viem').AuthorizationList;
|
|
1294
1397
|
chain?: import('viem').Chain | null;
|
|
@@ -1300,7 +1403,7 @@ export class MintableToken_json {
|
|
|
1300
1403
|
nonce?: number;
|
|
1301
1404
|
value?: bigint;
|
|
1302
1405
|
}): Promise<void> {
|
|
1303
|
-
return contract.simulate.
|
|
1406
|
+
return contract.simulate.removeSigner([account] as const, options) as Promise<void>;
|
|
1304
1407
|
},
|
|
1305
1408
|
/**
|
|
1306
1409
|
* Simulate renounceOwnership
|
|
@@ -1322,20 +1425,49 @@ export class MintableToken_json {
|
|
|
1322
1425
|
return contract.simulate.renounceOwnership(options) as Promise<void>;
|
|
1323
1426
|
},
|
|
1324
1427
|
/**
|
|
1325
|
-
* Simulate
|
|
1428
|
+
* Simulate renounceSigner
|
|
1429
|
+
* Returns gas estimate and result without sending transaction
|
|
1430
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1431
|
+
*/
|
|
1432
|
+
async renounceSigner(options?: {
|
|
1433
|
+
accessList?: import('viem').AccessList;
|
|
1434
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1435
|
+
chain?: import('viem').Chain | null;
|
|
1436
|
+
dataSuffix?: `0x${string}`;
|
|
1437
|
+
gas?: bigint;
|
|
1438
|
+
gasPrice?: bigint;
|
|
1439
|
+
maxFeePerGas?: bigint;
|
|
1440
|
+
maxPriorityFeePerGas?: bigint;
|
|
1441
|
+
nonce?: number;
|
|
1442
|
+
value?: bigint;
|
|
1443
|
+
}): Promise<void> {
|
|
1444
|
+
return contract.simulate.renounceSigner(options) as Promise<void>;
|
|
1445
|
+
},
|
|
1446
|
+
/**
|
|
1447
|
+
* Simulate safeBatchTransferFrom
|
|
1326
1448
|
* Returns gas estimate and result without sending transaction
|
|
1327
|
-
* Supports multiple overloads: (address, address, uint256), (address, address, uint256, bytes)
|
|
1328
1449
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1329
1450
|
*/
|
|
1330
|
-
async
|
|
1331
|
-
|
|
1451
|
+
async safeBatchTransferFrom(_from: `0x${string}`, _to: `0x${string}`, _ids: bigint[], _values: bigint[], _data: `0x${string}`, options?: {
|
|
1452
|
+
accessList?: import('viem').AccessList;
|
|
1453
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1454
|
+
chain?: import('viem').Chain | null;
|
|
1455
|
+
dataSuffix?: `0x${string}`;
|
|
1456
|
+
gas?: bigint;
|
|
1457
|
+
gasPrice?: bigint;
|
|
1458
|
+
maxFeePerGas?: bigint;
|
|
1459
|
+
maxPriorityFeePerGas?: bigint;
|
|
1460
|
+
nonce?: number;
|
|
1461
|
+
value?: bigint;
|
|
1462
|
+
}): Promise<void> {
|
|
1463
|
+
return contract.simulate.safeBatchTransferFrom([_from, _to, _ids, _values, _data] as const, options) as Promise<void>;
|
|
1332
1464
|
},
|
|
1333
1465
|
/**
|
|
1334
|
-
* Simulate
|
|
1466
|
+
* Simulate safeTransferFrom
|
|
1335
1467
|
* Returns gas estimate and result without sending transaction
|
|
1336
1468
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1337
1469
|
*/
|
|
1338
|
-
async
|
|
1470
|
+
async safeTransferFrom(_from: `0x${string}`, _to: `0x${string}`, _id: bigint, _value: bigint, _data: `0x${string}`, options?: {
|
|
1339
1471
|
accessList?: import('viem').AccessList;
|
|
1340
1472
|
authorizationList?: import('viem').AuthorizationList;
|
|
1341
1473
|
chain?: import('viem').Chain | null;
|
|
@@ -1347,14 +1479,14 @@ export class MintableToken_json {
|
|
|
1347
1479
|
nonce?: number;
|
|
1348
1480
|
value?: bigint;
|
|
1349
1481
|
}): Promise<void> {
|
|
1350
|
-
return contract.simulate.
|
|
1482
|
+
return contract.simulate.safeTransferFrom([_from, _to, _id, _value, _data] as const, options) as Promise<void>;
|
|
1351
1483
|
},
|
|
1352
1484
|
/**
|
|
1353
|
-
* Simulate
|
|
1485
|
+
* Simulate setApprovalForAll
|
|
1354
1486
|
* Returns gas estimate and result without sending transaction
|
|
1355
1487
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1356
1488
|
*/
|
|
1357
|
-
async
|
|
1489
|
+
async setApprovalForAll(_operator: `0x${string}`, _approved: boolean, options?: {
|
|
1358
1490
|
accessList?: import('viem').AccessList;
|
|
1359
1491
|
authorizationList?: import('viem').AuthorizationList;
|
|
1360
1492
|
chain?: import('viem').Chain | null;
|
|
@@ -1366,14 +1498,14 @@ export class MintableToken_json {
|
|
|
1366
1498
|
nonce?: number;
|
|
1367
1499
|
value?: bigint;
|
|
1368
1500
|
}): Promise<void> {
|
|
1369
|
-
return contract.simulate.
|
|
1501
|
+
return contract.simulate.setApprovalForAll([_operator, _approved] as const, options) as Promise<void>;
|
|
1370
1502
|
},
|
|
1371
1503
|
/**
|
|
1372
|
-
* Simulate
|
|
1504
|
+
* Simulate setContractURI
|
|
1373
1505
|
* Returns gas estimate and result without sending transaction
|
|
1374
1506
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1375
1507
|
*/
|
|
1376
|
-
async
|
|
1508
|
+
async setContractURI(contractURI: string, options?: {
|
|
1377
1509
|
accessList?: import('viem').AccessList;
|
|
1378
1510
|
authorizationList?: import('viem').AuthorizationList;
|
|
1379
1511
|
chain?: import('viem').Chain | null;
|
|
@@ -1385,14 +1517,14 @@ export class MintableToken_json {
|
|
|
1385
1517
|
nonce?: number;
|
|
1386
1518
|
value?: bigint;
|
|
1387
1519
|
}): Promise<void> {
|
|
1388
|
-
return contract.simulate.
|
|
1520
|
+
return contract.simulate.setContractURI([contractURI] as const, options) as Promise<void>;
|
|
1389
1521
|
},
|
|
1390
1522
|
/**
|
|
1391
|
-
* Simulate
|
|
1523
|
+
* Simulate setTokenURIPrefix
|
|
1392
1524
|
* Returns gas estimate and result without sending transaction
|
|
1393
1525
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1394
1526
|
*/
|
|
1395
|
-
async
|
|
1527
|
+
async setTokenURIPrefix(tokenURIPrefix: string, options?: {
|
|
1396
1528
|
accessList?: import('viem').AccessList;
|
|
1397
1529
|
authorizationList?: import('viem').AuthorizationList;
|
|
1398
1530
|
chain?: import('viem').Chain | null;
|
|
@@ -1404,7 +1536,7 @@ export class MintableToken_json {
|
|
|
1404
1536
|
nonce?: number;
|
|
1405
1537
|
value?: bigint;
|
|
1406
1538
|
}): Promise<void> {
|
|
1407
|
-
return contract.simulate.
|
|
1539
|
+
return contract.simulate.setTokenURIPrefix([tokenURIPrefix] as const, options) as Promise<void>;
|
|
1408
1540
|
},
|
|
1409
1541
|
/**
|
|
1410
1542
|
* Simulate transferOwnership
|
|
@@ -1443,16 +1575,16 @@ export class MintableToken_json {
|
|
|
1443
1575
|
get watch() {
|
|
1444
1576
|
return {
|
|
1445
1577
|
/**
|
|
1446
|
-
* Watch
|
|
1578
|
+
* Watch ApprovalForAll events
|
|
1447
1579
|
* @param callback Function to call when event is emitted
|
|
1448
1580
|
* @param filter Optional filter for indexed parameters
|
|
1449
1581
|
* @returns Unwatch function to stop listening
|
|
1450
1582
|
*/
|
|
1451
|
-
|
|
1583
|
+
ApprovalForAll: (callback: (event: { _owner: `0x${string}`; _operator: `0x${string}`; _approved: boolean }) => void, filter?: { _owner: `0x${string}`; _operator: `0x${string}` }) => {
|
|
1452
1584
|
return this.publicClient.watchContractEvent({
|
|
1453
1585
|
address: this.contractAddress,
|
|
1454
|
-
abi:
|
|
1455
|
-
eventName: '
|
|
1586
|
+
abi: RaribleToken_jsonAbi,
|
|
1587
|
+
eventName: 'ApprovalForAll',
|
|
1456
1588
|
args: filter,
|
|
1457
1589
|
onLogs: (logs: any[]) => {
|
|
1458
1590
|
logs.forEach((log: any) => {
|
|
@@ -1462,16 +1594,16 @@ export class MintableToken_json {
|
|
|
1462
1594
|
}) as () => void;
|
|
1463
1595
|
},
|
|
1464
1596
|
/**
|
|
1465
|
-
* Watch
|
|
1597
|
+
* Watch OwnershipTransferred events
|
|
1466
1598
|
* @param callback Function to call when event is emitted
|
|
1467
1599
|
* @param filter Optional filter for indexed parameters
|
|
1468
1600
|
* @returns Unwatch function to stop listening
|
|
1469
1601
|
*/
|
|
1470
|
-
|
|
1602
|
+
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
1471
1603
|
return this.publicClient.watchContractEvent({
|
|
1472
1604
|
address: this.contractAddress,
|
|
1473
|
-
abi:
|
|
1474
|
-
eventName: '
|
|
1605
|
+
abi: RaribleToken_jsonAbi,
|
|
1606
|
+
eventName: 'OwnershipTransferred',
|
|
1475
1607
|
args: filter,
|
|
1476
1608
|
onLogs: (logs: any[]) => {
|
|
1477
1609
|
logs.forEach((log: any) => {
|
|
@@ -1481,16 +1613,35 @@ export class MintableToken_json {
|
|
|
1481
1613
|
}) as () => void;
|
|
1482
1614
|
},
|
|
1483
1615
|
/**
|
|
1484
|
-
* Watch
|
|
1616
|
+
* Watch SecondarySaleFees events
|
|
1485
1617
|
* @param callback Function to call when event is emitted
|
|
1486
1618
|
* @param filter Optional filter for indexed parameters
|
|
1487
1619
|
* @returns Unwatch function to stop listening
|
|
1488
1620
|
*/
|
|
1489
|
-
|
|
1621
|
+
SecondarySaleFees: (callback: (event: { tokenId: bigint; recipients: `0x${string}`[]; bps: bigint[] }) => void) => {
|
|
1490
1622
|
return this.publicClient.watchContractEvent({
|
|
1491
1623
|
address: this.contractAddress,
|
|
1492
|
-
abi:
|
|
1493
|
-
eventName: '
|
|
1624
|
+
abi: RaribleToken_jsonAbi,
|
|
1625
|
+
eventName: 'SecondarySaleFees',
|
|
1626
|
+
|
|
1627
|
+
onLogs: (logs: any[]) => {
|
|
1628
|
+
logs.forEach((log: any) => {
|
|
1629
|
+
callback(log.args as any);
|
|
1630
|
+
});
|
|
1631
|
+
},
|
|
1632
|
+
}) as () => void;
|
|
1633
|
+
},
|
|
1634
|
+
/**
|
|
1635
|
+
* Watch SignerAdded events
|
|
1636
|
+
* @param callback Function to call when event is emitted
|
|
1637
|
+
* @param filter Optional filter for indexed parameters
|
|
1638
|
+
* @returns Unwatch function to stop listening
|
|
1639
|
+
*/
|
|
1640
|
+
SignerAdded: (callback: (event: { account: `0x${string}` }) => void, filter?: { account: `0x${string}` }) => {
|
|
1641
|
+
return this.publicClient.watchContractEvent({
|
|
1642
|
+
address: this.contractAddress,
|
|
1643
|
+
abi: RaribleToken_jsonAbi,
|
|
1644
|
+
eventName: 'SignerAdded',
|
|
1494
1645
|
args: filter,
|
|
1495
1646
|
onLogs: (logs: any[]) => {
|
|
1496
1647
|
logs.forEach((log: any) => {
|
|
@@ -1500,17 +1651,55 @@ export class MintableToken_json {
|
|
|
1500
1651
|
}) as () => void;
|
|
1501
1652
|
},
|
|
1502
1653
|
/**
|
|
1503
|
-
* Watch
|
|
1654
|
+
* Watch SignerRemoved events
|
|
1504
1655
|
* @param callback Function to call when event is emitted
|
|
1505
1656
|
* @param filter Optional filter for indexed parameters
|
|
1506
1657
|
* @returns Unwatch function to stop listening
|
|
1507
1658
|
*/
|
|
1508
|
-
|
|
1659
|
+
SignerRemoved: (callback: (event: { account: `0x${string}` }) => void, filter?: { account: `0x${string}` }) => {
|
|
1509
1660
|
return this.publicClient.watchContractEvent({
|
|
1510
1661
|
address: this.contractAddress,
|
|
1511
|
-
abi:
|
|
1512
|
-
eventName: '
|
|
1513
|
-
|
|
1662
|
+
abi: RaribleToken_jsonAbi,
|
|
1663
|
+
eventName: 'SignerRemoved',
|
|
1664
|
+
args: filter,
|
|
1665
|
+
onLogs: (logs: any[]) => {
|
|
1666
|
+
logs.forEach((log: any) => {
|
|
1667
|
+
callback(log.args as any);
|
|
1668
|
+
});
|
|
1669
|
+
},
|
|
1670
|
+
}) as () => void;
|
|
1671
|
+
},
|
|
1672
|
+
/**
|
|
1673
|
+
* Watch TransferBatch events
|
|
1674
|
+
* @param callback Function to call when event is emitted
|
|
1675
|
+
* @param filter Optional filter for indexed parameters
|
|
1676
|
+
* @returns Unwatch function to stop listening
|
|
1677
|
+
*/
|
|
1678
|
+
TransferBatch: (callback: (event: { _operator: `0x${string}`; _from: `0x${string}`; _to: `0x${string}`; _ids: bigint[]; _values: bigint[] }) => void, filter?: { _operator: `0x${string}`; _from: `0x${string}`; _to: `0x${string}` }) => {
|
|
1679
|
+
return this.publicClient.watchContractEvent({
|
|
1680
|
+
address: this.contractAddress,
|
|
1681
|
+
abi: RaribleToken_jsonAbi,
|
|
1682
|
+
eventName: 'TransferBatch',
|
|
1683
|
+
args: filter,
|
|
1684
|
+
onLogs: (logs: any[]) => {
|
|
1685
|
+
logs.forEach((log: any) => {
|
|
1686
|
+
callback(log.args as any);
|
|
1687
|
+
});
|
|
1688
|
+
},
|
|
1689
|
+
}) as () => void;
|
|
1690
|
+
},
|
|
1691
|
+
/**
|
|
1692
|
+
* Watch TransferSingle events
|
|
1693
|
+
* @param callback Function to call when event is emitted
|
|
1694
|
+
* @param filter Optional filter for indexed parameters
|
|
1695
|
+
* @returns Unwatch function to stop listening
|
|
1696
|
+
*/
|
|
1697
|
+
TransferSingle: (callback: (event: { _operator: `0x${string}`; _from: `0x${string}`; _to: `0x${string}`; _id: bigint; _value: bigint }) => void, filter?: { _operator: `0x${string}`; _from: `0x${string}`; _to: `0x${string}` }) => {
|
|
1698
|
+
return this.publicClient.watchContractEvent({
|
|
1699
|
+
address: this.contractAddress,
|
|
1700
|
+
abi: RaribleToken_jsonAbi,
|
|
1701
|
+
eventName: 'TransferSingle',
|
|
1702
|
+
args: filter,
|
|
1514
1703
|
onLogs: (logs: any[]) => {
|
|
1515
1704
|
logs.forEach((log: any) => {
|
|
1516
1705
|
callback(log.args as any);
|
|
@@ -1519,16 +1708,16 @@ export class MintableToken_json {
|
|
|
1519
1708
|
}) as () => void;
|
|
1520
1709
|
},
|
|
1521
1710
|
/**
|
|
1522
|
-
* Watch
|
|
1711
|
+
* Watch URI events
|
|
1523
1712
|
* @param callback Function to call when event is emitted
|
|
1524
1713
|
* @param filter Optional filter for indexed parameters
|
|
1525
1714
|
* @returns Unwatch function to stop listening
|
|
1526
1715
|
*/
|
|
1527
|
-
|
|
1716
|
+
URI: (callback: (event: { _id: bigint; _value: string }) => void, filter?: { _id: bigint }) => {
|
|
1528
1717
|
return this.publicClient.watchContractEvent({
|
|
1529
1718
|
address: this.contractAddress,
|
|
1530
|
-
abi:
|
|
1531
|
-
eventName: '
|
|
1719
|
+
abi: RaribleToken_jsonAbi,
|
|
1720
|
+
eventName: 'URI',
|
|
1532
1721
|
args: filter,
|
|
1533
1722
|
onLogs: (logs: any[]) => {
|
|
1534
1723
|
logs.forEach((log: any) => {
|