@gitmyabi/rari 1.0.1 → 1.0.2
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 +5 -5
- package/contracts/{RaribleToken_json.d.ts → ERC1155Rarible_json.d.ts} +814 -351
- package/contracts/{RaribleToken_json.js → ERC1155Rarible_json.js} +898 -383
- package/contracts/{RaribleToken_json.ts → ERC1155Rarible_json.ts} +1020 -398
- package/contracts/TransparentUpgradeableProxy_json.d.ts +401 -0
- package/contracts/TransparentUpgradeableProxy_json.js +398 -0
- package/contracts/TransparentUpgradeableProxy_json.ts +542 -0
- package/contracts/index.d.ts +4 -2
- package/contracts/index.js +7 -4
- package/contracts/index.ts +4 -2
- package/package.json +3 -3
|
@@ -3,49 +3,98 @@ import { getContract } from 'viem';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* LibPart.Part struct type
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
9
|
-
|
|
8
|
+
export type LibPart_Part = {
|
|
9
|
+
account: `0x${string}`;
|
|
10
10
|
value: bigint;
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* LibERC1155LazyMint.Mint1155Data struct type
|
|
15
|
+
*/
|
|
16
|
+
export type LibERC1155LazyMint_Mint1155Data = {
|
|
17
|
+
tokenId: bigint;
|
|
18
|
+
tokenURI: string;
|
|
19
|
+
supply: bigint;
|
|
20
|
+
creators: LibPart_Part[];
|
|
21
|
+
royalties: LibPart_Part[];
|
|
22
|
+
signatures: `0x${string}`[];
|
|
23
|
+
};
|
|
12
24
|
/**
|
|
13
|
-
*
|
|
25
|
+
* ERC1155Rarible_json ABI
|
|
14
26
|
*
|
|
15
27
|
* This ABI is typed using viem's type system for full type safety.
|
|
16
28
|
*/
|
|
17
|
-
export const
|
|
29
|
+
export const ERC1155Rarible_jsonAbi = [
|
|
18
30
|
{
|
|
31
|
+
"anonymous": false,
|
|
19
32
|
"inputs": [
|
|
20
33
|
{
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
34
|
+
"indexed": true,
|
|
35
|
+
"internalType": "address",
|
|
36
|
+
"name": "account",
|
|
37
|
+
"type": "address"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"indexed": true,
|
|
41
|
+
"internalType": "address",
|
|
42
|
+
"name": "operator",
|
|
43
|
+
"type": "address"
|
|
24
44
|
},
|
|
25
45
|
{
|
|
46
|
+
"indexed": false,
|
|
47
|
+
"internalType": "bool",
|
|
48
|
+
"name": "approved",
|
|
49
|
+
"type": "bool"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"name": "ApprovalForAll",
|
|
53
|
+
"type": "event"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"anonymous": false,
|
|
57
|
+
"inputs": [
|
|
58
|
+
{
|
|
59
|
+
"indexed": false,
|
|
26
60
|
"internalType": "string",
|
|
27
|
-
"name": "
|
|
61
|
+
"name": "newBaseURI",
|
|
28
62
|
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"name": "BaseUriChanged",
|
|
66
|
+
"type": "event"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"anonymous": false,
|
|
70
|
+
"inputs": [
|
|
71
|
+
{
|
|
72
|
+
"indexed": true,
|
|
73
|
+
"internalType": "address",
|
|
74
|
+
"name": "operator",
|
|
75
|
+
"type": "address"
|
|
29
76
|
},
|
|
30
77
|
{
|
|
78
|
+
"indexed": true,
|
|
31
79
|
"internalType": "address",
|
|
32
|
-
"name": "
|
|
80
|
+
"name": "account",
|
|
33
81
|
"type": "address"
|
|
34
82
|
},
|
|
35
83
|
{
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
84
|
+
"indexed": false,
|
|
85
|
+
"internalType": "uint256",
|
|
86
|
+
"name": "id",
|
|
87
|
+
"type": "uint256"
|
|
39
88
|
},
|
|
40
89
|
{
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
90
|
+
"indexed": false,
|
|
91
|
+
"internalType": "uint256",
|
|
92
|
+
"name": "amount",
|
|
93
|
+
"type": "uint256"
|
|
44
94
|
}
|
|
45
95
|
],
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"type": "constructor"
|
|
96
|
+
"name": "BurnLazy",
|
|
97
|
+
"type": "event"
|
|
49
98
|
},
|
|
50
99
|
{
|
|
51
100
|
"anonymous": false,
|
|
@@ -53,42 +102,79 @@ export const RaribleToken_jsonAbi = [
|
|
|
53
102
|
{
|
|
54
103
|
"indexed": true,
|
|
55
104
|
"internalType": "address",
|
|
56
|
-
"name": "
|
|
105
|
+
"name": "operator",
|
|
57
106
|
"type": "address"
|
|
58
107
|
},
|
|
59
108
|
{
|
|
60
109
|
"indexed": true,
|
|
61
110
|
"internalType": "address",
|
|
62
|
-
"name": "
|
|
111
|
+
"name": "account",
|
|
63
112
|
"type": "address"
|
|
64
113
|
},
|
|
65
114
|
{
|
|
66
115
|
"indexed": false,
|
|
67
|
-
"internalType": "
|
|
68
|
-
"name": "
|
|
69
|
-
"type": "
|
|
116
|
+
"internalType": "uint256[]",
|
|
117
|
+
"name": "ids",
|
|
118
|
+
"type": "uint256[]"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"indexed": false,
|
|
122
|
+
"internalType": "uint256[]",
|
|
123
|
+
"name": "amounts",
|
|
124
|
+
"type": "uint256[]"
|
|
70
125
|
}
|
|
71
126
|
],
|
|
72
|
-
"name": "
|
|
127
|
+
"name": "BurnLazyBatch",
|
|
73
128
|
"type": "event"
|
|
74
129
|
},
|
|
75
130
|
{
|
|
76
131
|
"anonymous": false,
|
|
77
132
|
"inputs": [
|
|
78
133
|
{
|
|
79
|
-
"indexed":
|
|
134
|
+
"indexed": false,
|
|
80
135
|
"internalType": "address",
|
|
81
|
-
"name": "
|
|
136
|
+
"name": "owner",
|
|
82
137
|
"type": "address"
|
|
83
138
|
},
|
|
84
139
|
{
|
|
85
|
-
"indexed":
|
|
140
|
+
"indexed": false,
|
|
141
|
+
"internalType": "string",
|
|
142
|
+
"name": "name",
|
|
143
|
+
"type": "string"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"indexed": false,
|
|
147
|
+
"internalType": "string",
|
|
148
|
+
"name": "symbol",
|
|
149
|
+
"type": "string"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"name": "CreateERC1155Rarible",
|
|
153
|
+
"type": "event"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"anonymous": false,
|
|
157
|
+
"inputs": [
|
|
158
|
+
{
|
|
159
|
+
"indexed": false,
|
|
86
160
|
"internalType": "address",
|
|
87
|
-
"name": "
|
|
161
|
+
"name": "owner",
|
|
88
162
|
"type": "address"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"indexed": false,
|
|
166
|
+
"internalType": "string",
|
|
167
|
+
"name": "name",
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"indexed": false,
|
|
172
|
+
"internalType": "string",
|
|
173
|
+
"name": "symbol",
|
|
174
|
+
"type": "string"
|
|
89
175
|
}
|
|
90
176
|
],
|
|
91
|
-
"name": "
|
|
177
|
+
"name": "CreateERC1155RaribleUser",
|
|
92
178
|
"type": "event"
|
|
93
179
|
},
|
|
94
180
|
{
|
|
@@ -101,19 +187,44 @@ export const RaribleToken_jsonAbi = [
|
|
|
101
187
|
"type": "uint256"
|
|
102
188
|
},
|
|
103
189
|
{
|
|
190
|
+
"components": [
|
|
191
|
+
{
|
|
192
|
+
"internalType": "address payable",
|
|
193
|
+
"name": "account",
|
|
194
|
+
"type": "address"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"internalType": "uint96",
|
|
198
|
+
"name": "value",
|
|
199
|
+
"type": "uint96"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
104
202
|
"indexed": false,
|
|
105
|
-
"internalType": "
|
|
106
|
-
"name": "
|
|
107
|
-
"type": "
|
|
203
|
+
"internalType": "struct LibPart.Part[]",
|
|
204
|
+
"name": "creators",
|
|
205
|
+
"type": "tuple[]"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"name": "Creators",
|
|
209
|
+
"type": "event"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"anonymous": false,
|
|
213
|
+
"inputs": [
|
|
214
|
+
{
|
|
215
|
+
"indexed": true,
|
|
216
|
+
"internalType": "address",
|
|
217
|
+
"name": "operator",
|
|
218
|
+
"type": "address"
|
|
108
219
|
},
|
|
109
220
|
{
|
|
110
221
|
"indexed": false,
|
|
111
|
-
"internalType": "
|
|
112
|
-
"name": "
|
|
113
|
-
"type": "
|
|
222
|
+
"internalType": "bool",
|
|
223
|
+
"name": "hasApproval",
|
|
224
|
+
"type": "bool"
|
|
114
225
|
}
|
|
115
226
|
],
|
|
116
|
-
"name": "
|
|
227
|
+
"name": "DefaultApproval",
|
|
117
228
|
"type": "event"
|
|
118
229
|
},
|
|
119
230
|
{
|
|
@@ -122,11 +233,17 @@ export const RaribleToken_jsonAbi = [
|
|
|
122
233
|
{
|
|
123
234
|
"indexed": true,
|
|
124
235
|
"internalType": "address",
|
|
125
|
-
"name": "
|
|
236
|
+
"name": "minter",
|
|
126
237
|
"type": "address"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"indexed": true,
|
|
241
|
+
"internalType": "bool",
|
|
242
|
+
"name": "status",
|
|
243
|
+
"type": "bool"
|
|
127
244
|
}
|
|
128
245
|
],
|
|
129
|
-
"name": "
|
|
246
|
+
"name": "MinterStatusChanged",
|
|
130
247
|
"type": "event"
|
|
131
248
|
},
|
|
132
249
|
{
|
|
@@ -135,11 +252,67 @@ export const RaribleToken_jsonAbi = [
|
|
|
135
252
|
{
|
|
136
253
|
"indexed": true,
|
|
137
254
|
"internalType": "address",
|
|
138
|
-
"name": "
|
|
255
|
+
"name": "previousOwner",
|
|
256
|
+
"type": "address"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"indexed": true,
|
|
260
|
+
"internalType": "address",
|
|
261
|
+
"name": "newOwner",
|
|
139
262
|
"type": "address"
|
|
140
263
|
}
|
|
141
264
|
],
|
|
142
|
-
"name": "
|
|
265
|
+
"name": "OwnershipTransferred",
|
|
266
|
+
"type": "event"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"anonymous": false,
|
|
270
|
+
"inputs": [
|
|
271
|
+
{
|
|
272
|
+
"indexed": false,
|
|
273
|
+
"internalType": "uint256",
|
|
274
|
+
"name": "tokenId",
|
|
275
|
+
"type": "uint256"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"components": [
|
|
279
|
+
{
|
|
280
|
+
"internalType": "address payable",
|
|
281
|
+
"name": "account",
|
|
282
|
+
"type": "address"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"internalType": "uint96",
|
|
286
|
+
"name": "value",
|
|
287
|
+
"type": "uint96"
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"indexed": false,
|
|
291
|
+
"internalType": "struct LibPart.Part[]",
|
|
292
|
+
"name": "royalties",
|
|
293
|
+
"type": "tuple[]"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"name": "RoyaltiesSet",
|
|
297
|
+
"type": "event"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"anonymous": false,
|
|
301
|
+
"inputs": [
|
|
302
|
+
{
|
|
303
|
+
"indexed": false,
|
|
304
|
+
"internalType": "uint256",
|
|
305
|
+
"name": "tokenId",
|
|
306
|
+
"type": "uint256"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"indexed": false,
|
|
310
|
+
"internalType": "uint256",
|
|
311
|
+
"name": "value",
|
|
312
|
+
"type": "uint256"
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"name": "Supply",
|
|
143
316
|
"type": "event"
|
|
144
317
|
},
|
|
145
318
|
{
|
|
@@ -148,31 +321,31 @@ export const RaribleToken_jsonAbi = [
|
|
|
148
321
|
{
|
|
149
322
|
"indexed": true,
|
|
150
323
|
"internalType": "address",
|
|
151
|
-
"name": "
|
|
324
|
+
"name": "operator",
|
|
152
325
|
"type": "address"
|
|
153
326
|
},
|
|
154
327
|
{
|
|
155
328
|
"indexed": true,
|
|
156
329
|
"internalType": "address",
|
|
157
|
-
"name": "
|
|
330
|
+
"name": "from",
|
|
158
331
|
"type": "address"
|
|
159
332
|
},
|
|
160
333
|
{
|
|
161
334
|
"indexed": true,
|
|
162
335
|
"internalType": "address",
|
|
163
|
-
"name": "
|
|
336
|
+
"name": "to",
|
|
164
337
|
"type": "address"
|
|
165
338
|
},
|
|
166
339
|
{
|
|
167
340
|
"indexed": false,
|
|
168
341
|
"internalType": "uint256[]",
|
|
169
|
-
"name": "
|
|
342
|
+
"name": "ids",
|
|
170
343
|
"type": "uint256[]"
|
|
171
344
|
},
|
|
172
345
|
{
|
|
173
346
|
"indexed": false,
|
|
174
347
|
"internalType": "uint256[]",
|
|
175
|
-
"name": "
|
|
348
|
+
"name": "values",
|
|
176
349
|
"type": "uint256[]"
|
|
177
350
|
}
|
|
178
351
|
],
|
|
@@ -185,31 +358,31 @@ export const RaribleToken_jsonAbi = [
|
|
|
185
358
|
{
|
|
186
359
|
"indexed": true,
|
|
187
360
|
"internalType": "address",
|
|
188
|
-
"name": "
|
|
361
|
+
"name": "operator",
|
|
189
362
|
"type": "address"
|
|
190
363
|
},
|
|
191
364
|
{
|
|
192
365
|
"indexed": true,
|
|
193
366
|
"internalType": "address",
|
|
194
|
-
"name": "
|
|
367
|
+
"name": "from",
|
|
195
368
|
"type": "address"
|
|
196
369
|
},
|
|
197
370
|
{
|
|
198
371
|
"indexed": true,
|
|
199
372
|
"internalType": "address",
|
|
200
|
-
"name": "
|
|
373
|
+
"name": "to",
|
|
201
374
|
"type": "address"
|
|
202
375
|
},
|
|
203
376
|
{
|
|
204
377
|
"indexed": false,
|
|
205
378
|
"internalType": "uint256",
|
|
206
|
-
"name": "
|
|
379
|
+
"name": "id",
|
|
207
380
|
"type": "uint256"
|
|
208
381
|
},
|
|
209
382
|
{
|
|
210
383
|
"indexed": false,
|
|
211
384
|
"internalType": "uint256",
|
|
212
|
-
"name": "
|
|
385
|
+
"name": "value",
|
|
213
386
|
"type": "uint256"
|
|
214
387
|
}
|
|
215
388
|
],
|
|
@@ -222,13 +395,13 @@ export const RaribleToken_jsonAbi = [
|
|
|
222
395
|
{
|
|
223
396
|
"indexed": false,
|
|
224
397
|
"internalType": "string",
|
|
225
|
-
"name": "
|
|
398
|
+
"name": "value",
|
|
226
399
|
"type": "string"
|
|
227
400
|
},
|
|
228
401
|
{
|
|
229
402
|
"indexed": true,
|
|
230
403
|
"internalType": "uint256",
|
|
231
|
-
"name": "
|
|
404
|
+
"name": "id",
|
|
232
405
|
"type": "uint256"
|
|
233
406
|
}
|
|
234
407
|
],
|
|
@@ -236,187 +409,264 @@ export const RaribleToken_jsonAbi = [
|
|
|
236
409
|
"type": "event"
|
|
237
410
|
},
|
|
238
411
|
{
|
|
239
|
-
"constant": false,
|
|
240
412
|
"inputs": [
|
|
413
|
+
{
|
|
414
|
+
"internalType": "string",
|
|
415
|
+
"name": "_name",
|
|
416
|
+
"type": "string"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"internalType": "string",
|
|
420
|
+
"name": "_symbol",
|
|
421
|
+
"type": "string"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"internalType": "string",
|
|
425
|
+
"name": "baseURI",
|
|
426
|
+
"type": "string"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"internalType": "string",
|
|
430
|
+
"name": "contractURI",
|
|
431
|
+
"type": "string"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"internalType": "address[]",
|
|
435
|
+
"name": "operators",
|
|
436
|
+
"type": "address[]"
|
|
437
|
+
},
|
|
241
438
|
{
|
|
242
439
|
"internalType": "address",
|
|
243
|
-
"name": "
|
|
440
|
+
"name": "transferProxy",
|
|
441
|
+
"type": "address"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"internalType": "address",
|
|
445
|
+
"name": "lazyTransferProxy",
|
|
244
446
|
"type": "address"
|
|
245
447
|
}
|
|
246
448
|
],
|
|
247
|
-
"name": "
|
|
449
|
+
"name": "__ERC1155RaribleUser_init",
|
|
248
450
|
"outputs": [],
|
|
249
|
-
"payable": false,
|
|
250
451
|
"stateMutability": "nonpayable",
|
|
251
452
|
"type": "function"
|
|
252
453
|
},
|
|
253
454
|
{
|
|
254
|
-
"constant": true,
|
|
255
455
|
"inputs": [
|
|
456
|
+
{
|
|
457
|
+
"internalType": "string",
|
|
458
|
+
"name": "_name",
|
|
459
|
+
"type": "string"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"internalType": "string",
|
|
463
|
+
"name": "_symbol",
|
|
464
|
+
"type": "string"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"internalType": "string",
|
|
468
|
+
"name": "baseURI",
|
|
469
|
+
"type": "string"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"internalType": "string",
|
|
473
|
+
"name": "contractURI",
|
|
474
|
+
"type": "string"
|
|
475
|
+
},
|
|
256
476
|
{
|
|
257
477
|
"internalType": "address",
|
|
258
|
-
"name": "
|
|
478
|
+
"name": "transferProxy",
|
|
259
479
|
"type": "address"
|
|
260
480
|
},
|
|
261
481
|
{
|
|
262
|
-
"internalType": "
|
|
263
|
-
"name": "
|
|
264
|
-
"type": "
|
|
482
|
+
"internalType": "address",
|
|
483
|
+
"name": "lazyTransferProxy",
|
|
484
|
+
"type": "address"
|
|
265
485
|
}
|
|
266
486
|
],
|
|
267
|
-
"name": "
|
|
268
|
-
"outputs": [
|
|
487
|
+
"name": "__ERC1155Rarible_init",
|
|
488
|
+
"outputs": [],
|
|
489
|
+
"stateMutability": "nonpayable",
|
|
490
|
+
"type": "function"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"inputs": [
|
|
269
494
|
{
|
|
270
|
-
"internalType": "
|
|
271
|
-
"name": "",
|
|
272
|
-
"type": "
|
|
495
|
+
"internalType": "address",
|
|
496
|
+
"name": "minter",
|
|
497
|
+
"type": "address"
|
|
273
498
|
}
|
|
274
499
|
],
|
|
275
|
-
"
|
|
276
|
-
"
|
|
500
|
+
"name": "addMinter",
|
|
501
|
+
"outputs": [],
|
|
502
|
+
"stateMutability": "nonpayable",
|
|
277
503
|
"type": "function"
|
|
278
504
|
},
|
|
279
505
|
{
|
|
280
|
-
"constant": true,
|
|
281
506
|
"inputs": [
|
|
282
507
|
{
|
|
283
508
|
"internalType": "address[]",
|
|
284
|
-
"name": "
|
|
509
|
+
"name": "minters",
|
|
285
510
|
"type": "address[]"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"internalType": "uint256[]",
|
|
289
|
-
"name": "_ids",
|
|
290
|
-
"type": "uint256[]"
|
|
291
511
|
}
|
|
292
512
|
],
|
|
293
|
-
"name": "
|
|
294
|
-
"outputs": [
|
|
295
|
-
|
|
296
|
-
"internalType": "uint256[]",
|
|
297
|
-
"name": "",
|
|
298
|
-
"type": "uint256[]"
|
|
299
|
-
}
|
|
300
|
-
],
|
|
301
|
-
"payable": false,
|
|
302
|
-
"stateMutability": "view",
|
|
513
|
+
"name": "addMinters",
|
|
514
|
+
"outputs": [],
|
|
515
|
+
"stateMutability": "nonpayable",
|
|
303
516
|
"type": "function"
|
|
304
517
|
},
|
|
305
518
|
{
|
|
306
|
-
"constant": false,
|
|
307
519
|
"inputs": [
|
|
308
520
|
{
|
|
309
521
|
"internalType": "address",
|
|
310
|
-
"name": "
|
|
522
|
+
"name": "account",
|
|
311
523
|
"type": "address"
|
|
312
524
|
},
|
|
313
525
|
{
|
|
314
526
|
"internalType": "uint256",
|
|
315
|
-
"name": "
|
|
316
|
-
"type": "uint256"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"internalType": "uint256",
|
|
320
|
-
"name": "_value",
|
|
527
|
+
"name": "id",
|
|
321
528
|
"type": "uint256"
|
|
322
529
|
}
|
|
323
530
|
],
|
|
324
|
-
"name": "
|
|
325
|
-
"outputs": [],
|
|
326
|
-
"payable": false,
|
|
327
|
-
"stateMutability": "nonpayable",
|
|
328
|
-
"type": "function"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"constant": true,
|
|
332
|
-
"inputs": [],
|
|
333
|
-
"name": "contractURI",
|
|
531
|
+
"name": "balanceOf",
|
|
334
532
|
"outputs": [
|
|
335
533
|
{
|
|
336
|
-
"internalType": "
|
|
534
|
+
"internalType": "uint256",
|
|
337
535
|
"name": "",
|
|
338
|
-
"type": "
|
|
536
|
+
"type": "uint256"
|
|
339
537
|
}
|
|
340
538
|
],
|
|
341
|
-
"payable": false,
|
|
342
539
|
"stateMutability": "view",
|
|
343
540
|
"type": "function"
|
|
344
541
|
},
|
|
345
542
|
{
|
|
346
|
-
"constant": true,
|
|
347
543
|
"inputs": [
|
|
348
544
|
{
|
|
349
|
-
"internalType": "
|
|
545
|
+
"internalType": "address[]",
|
|
546
|
+
"name": "accounts",
|
|
547
|
+
"type": "address[]"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"internalType": "uint256[]",
|
|
551
|
+
"name": "ids",
|
|
552
|
+
"type": "uint256[]"
|
|
553
|
+
}
|
|
554
|
+
],
|
|
555
|
+
"name": "balanceOfBatch",
|
|
556
|
+
"outputs": [
|
|
557
|
+
{
|
|
558
|
+
"internalType": "uint256[]",
|
|
350
559
|
"name": "",
|
|
351
|
-
"type": "uint256"
|
|
560
|
+
"type": "uint256[]"
|
|
352
561
|
}
|
|
353
562
|
],
|
|
354
|
-
"
|
|
563
|
+
"stateMutability": "view",
|
|
564
|
+
"type": "function"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"inputs": [],
|
|
568
|
+
"name": "baseURI",
|
|
355
569
|
"outputs": [
|
|
356
570
|
{
|
|
357
|
-
"internalType": "
|
|
571
|
+
"internalType": "string",
|
|
358
572
|
"name": "",
|
|
359
|
-
"type": "
|
|
573
|
+
"type": "string"
|
|
360
574
|
}
|
|
361
575
|
],
|
|
362
|
-
"payable": false,
|
|
363
576
|
"stateMutability": "view",
|
|
364
577
|
"type": "function"
|
|
365
578
|
},
|
|
366
579
|
{
|
|
367
|
-
"constant": true,
|
|
368
580
|
"inputs": [
|
|
581
|
+
{
|
|
582
|
+
"internalType": "address",
|
|
583
|
+
"name": "account",
|
|
584
|
+
"type": "address"
|
|
585
|
+
},
|
|
369
586
|
{
|
|
370
587
|
"internalType": "uint256",
|
|
371
|
-
"name": "",
|
|
588
|
+
"name": "id",
|
|
372
589
|
"type": "uint256"
|
|
373
590
|
},
|
|
374
591
|
{
|
|
375
592
|
"internalType": "uint256",
|
|
376
|
-
"name": "",
|
|
593
|
+
"name": "amount",
|
|
377
594
|
"type": "uint256"
|
|
378
595
|
}
|
|
379
596
|
],
|
|
380
|
-
"name": "
|
|
381
|
-
"outputs": [
|
|
597
|
+
"name": "burn",
|
|
598
|
+
"outputs": [],
|
|
599
|
+
"stateMutability": "nonpayable",
|
|
600
|
+
"type": "function"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"inputs": [
|
|
382
604
|
{
|
|
383
|
-
"internalType": "address
|
|
384
|
-
"name": "
|
|
605
|
+
"internalType": "address",
|
|
606
|
+
"name": "account",
|
|
385
607
|
"type": "address"
|
|
386
608
|
},
|
|
387
609
|
{
|
|
388
|
-
"internalType": "uint256",
|
|
389
|
-
"name": "
|
|
390
|
-
"type": "uint256"
|
|
610
|
+
"internalType": "uint256[]",
|
|
611
|
+
"name": "ids",
|
|
612
|
+
"type": "uint256[]"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"internalType": "uint256[]",
|
|
616
|
+
"name": "amounts",
|
|
617
|
+
"type": "uint256[]"
|
|
618
|
+
}
|
|
619
|
+
],
|
|
620
|
+
"name": "burnBatch",
|
|
621
|
+
"outputs": [],
|
|
622
|
+
"stateMutability": "nonpayable",
|
|
623
|
+
"type": "function"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"inputs": [],
|
|
627
|
+
"name": "contractURI",
|
|
628
|
+
"outputs": [
|
|
629
|
+
{
|
|
630
|
+
"internalType": "string",
|
|
631
|
+
"name": "",
|
|
632
|
+
"type": "string"
|
|
391
633
|
}
|
|
392
634
|
],
|
|
393
|
-
"payable": false,
|
|
394
635
|
"stateMutability": "view",
|
|
395
636
|
"type": "function"
|
|
396
637
|
},
|
|
397
638
|
{
|
|
398
|
-
"constant": true,
|
|
399
639
|
"inputs": [
|
|
400
640
|
{
|
|
401
641
|
"internalType": "uint256",
|
|
402
|
-
"name": "
|
|
642
|
+
"name": "_id",
|
|
403
643
|
"type": "uint256"
|
|
404
644
|
}
|
|
405
645
|
],
|
|
406
|
-
"name": "
|
|
646
|
+
"name": "getCreators",
|
|
407
647
|
"outputs": [
|
|
408
648
|
{
|
|
409
|
-
"
|
|
649
|
+
"components": [
|
|
650
|
+
{
|
|
651
|
+
"internalType": "address payable",
|
|
652
|
+
"name": "account",
|
|
653
|
+
"type": "address"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"internalType": "uint96",
|
|
657
|
+
"name": "value",
|
|
658
|
+
"type": "uint96"
|
|
659
|
+
}
|
|
660
|
+
],
|
|
661
|
+
"internalType": "struct LibPart.Part[]",
|
|
410
662
|
"name": "",
|
|
411
|
-
"type": "
|
|
663
|
+
"type": "tuple[]"
|
|
412
664
|
}
|
|
413
665
|
],
|
|
414
|
-
"payable": false,
|
|
415
666
|
"stateMutability": "view",
|
|
416
667
|
"type": "function"
|
|
417
668
|
},
|
|
418
669
|
{
|
|
419
|
-
"constant": true,
|
|
420
670
|
"inputs": [
|
|
421
671
|
{
|
|
422
672
|
"internalType": "uint256",
|
|
@@ -424,20 +674,30 @@ export const RaribleToken_jsonAbi = [
|
|
|
424
674
|
"type": "uint256"
|
|
425
675
|
}
|
|
426
676
|
],
|
|
427
|
-
"name": "
|
|
677
|
+
"name": "getRaribleV2Royalties",
|
|
428
678
|
"outputs": [
|
|
429
679
|
{
|
|
430
|
-
"
|
|
680
|
+
"components": [
|
|
681
|
+
{
|
|
682
|
+
"internalType": "address payable",
|
|
683
|
+
"name": "account",
|
|
684
|
+
"type": "address"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"internalType": "uint96",
|
|
688
|
+
"name": "value",
|
|
689
|
+
"type": "uint96"
|
|
690
|
+
}
|
|
691
|
+
],
|
|
692
|
+
"internalType": "struct LibPart.Part[]",
|
|
431
693
|
"name": "",
|
|
432
|
-
"type": "
|
|
694
|
+
"type": "tuple[]"
|
|
433
695
|
}
|
|
434
696
|
],
|
|
435
|
-
"payable": false,
|
|
436
697
|
"stateMutability": "view",
|
|
437
698
|
"type": "function"
|
|
438
699
|
},
|
|
439
700
|
{
|
|
440
|
-
"constant": true,
|
|
441
701
|
"inputs": [
|
|
442
702
|
{
|
|
443
703
|
"internalType": "address",
|
|
@@ -458,27 +718,10 @@ export const RaribleToken_jsonAbi = [
|
|
|
458
718
|
"type": "bool"
|
|
459
719
|
}
|
|
460
720
|
],
|
|
461
|
-
"payable": false,
|
|
462
|
-
"stateMutability": "view",
|
|
463
|
-
"type": "function"
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"constant": true,
|
|
467
|
-
"inputs": [],
|
|
468
|
-
"name": "isOwner",
|
|
469
|
-
"outputs": [
|
|
470
|
-
{
|
|
471
|
-
"internalType": "bool",
|
|
472
|
-
"name": "",
|
|
473
|
-
"type": "bool"
|
|
474
|
-
}
|
|
475
|
-
],
|
|
476
|
-
"payable": false,
|
|
477
721
|
"stateMutability": "view",
|
|
478
722
|
"type": "function"
|
|
479
723
|
},
|
|
480
724
|
{
|
|
481
|
-
"constant": true,
|
|
482
725
|
"inputs": [
|
|
483
726
|
{
|
|
484
727
|
"internalType": "address",
|
|
@@ -486,7 +729,7 @@ export const RaribleToken_jsonAbi = [
|
|
|
486
729
|
"type": "address"
|
|
487
730
|
}
|
|
488
731
|
],
|
|
489
|
-
"name": "
|
|
732
|
+
"name": "isMinter",
|
|
490
733
|
"outputs": [
|
|
491
734
|
{
|
|
492
735
|
"internalType": "bool",
|
|
@@ -494,69 +737,89 @@ export const RaribleToken_jsonAbi = [
|
|
|
494
737
|
"type": "bool"
|
|
495
738
|
}
|
|
496
739
|
],
|
|
497
|
-
"payable": false,
|
|
498
740
|
"stateMutability": "view",
|
|
499
741
|
"type": "function"
|
|
500
742
|
},
|
|
501
743
|
{
|
|
502
|
-
"constant": false,
|
|
503
744
|
"inputs": [
|
|
504
|
-
{
|
|
505
|
-
"internalType": "uint256",
|
|
506
|
-
"name": "id",
|
|
507
|
-
"type": "uint256"
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
"internalType": "uint8",
|
|
511
|
-
"name": "v",
|
|
512
|
-
"type": "uint8"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"internalType": "bytes32",
|
|
516
|
-
"name": "r",
|
|
517
|
-
"type": "bytes32"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"internalType": "bytes32",
|
|
521
|
-
"name": "s",
|
|
522
|
-
"type": "bytes32"
|
|
523
|
-
},
|
|
524
745
|
{
|
|
525
746
|
"components": [
|
|
526
747
|
{
|
|
527
|
-
"internalType": "
|
|
528
|
-
"name": "
|
|
529
|
-
"type": "
|
|
748
|
+
"internalType": "uint256",
|
|
749
|
+
"name": "tokenId",
|
|
750
|
+
"type": "uint256"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"internalType": "string",
|
|
754
|
+
"name": "tokenURI",
|
|
755
|
+
"type": "string"
|
|
530
756
|
},
|
|
531
757
|
{
|
|
532
758
|
"internalType": "uint256",
|
|
533
|
-
"name": "
|
|
759
|
+
"name": "supply",
|
|
534
760
|
"type": "uint256"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"components": [
|
|
764
|
+
{
|
|
765
|
+
"internalType": "address payable",
|
|
766
|
+
"name": "account",
|
|
767
|
+
"type": "address"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"internalType": "uint96",
|
|
771
|
+
"name": "value",
|
|
772
|
+
"type": "uint96"
|
|
773
|
+
}
|
|
774
|
+
],
|
|
775
|
+
"internalType": "struct LibPart.Part[]",
|
|
776
|
+
"name": "creators",
|
|
777
|
+
"type": "tuple[]"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"components": [
|
|
781
|
+
{
|
|
782
|
+
"internalType": "address payable",
|
|
783
|
+
"name": "account",
|
|
784
|
+
"type": "address"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"internalType": "uint96",
|
|
788
|
+
"name": "value",
|
|
789
|
+
"type": "uint96"
|
|
790
|
+
}
|
|
791
|
+
],
|
|
792
|
+
"internalType": "struct LibPart.Part[]",
|
|
793
|
+
"name": "royalties",
|
|
794
|
+
"type": "tuple[]"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"internalType": "bytes[]",
|
|
798
|
+
"name": "signatures",
|
|
799
|
+
"type": "bytes[]"
|
|
535
800
|
}
|
|
536
801
|
],
|
|
537
|
-
"internalType": "struct
|
|
538
|
-
"name": "
|
|
539
|
-
"type": "tuple
|
|
802
|
+
"internalType": "struct LibERC1155LazyMint.Mint1155Data",
|
|
803
|
+
"name": "data",
|
|
804
|
+
"type": "tuple"
|
|
540
805
|
},
|
|
541
806
|
{
|
|
542
|
-
"internalType": "
|
|
543
|
-
"name": "
|
|
544
|
-
"type": "
|
|
807
|
+
"internalType": "address",
|
|
808
|
+
"name": "to",
|
|
809
|
+
"type": "address"
|
|
545
810
|
},
|
|
546
811
|
{
|
|
547
|
-
"internalType": "
|
|
548
|
-
"name": "
|
|
549
|
-
"type": "
|
|
812
|
+
"internalType": "uint256",
|
|
813
|
+
"name": "_amount",
|
|
814
|
+
"type": "uint256"
|
|
550
815
|
}
|
|
551
816
|
],
|
|
552
|
-
"name": "
|
|
817
|
+
"name": "mintAndTransfer",
|
|
553
818
|
"outputs": [],
|
|
554
|
-
"payable": false,
|
|
555
819
|
"stateMutability": "nonpayable",
|
|
556
820
|
"type": "function"
|
|
557
821
|
},
|
|
558
822
|
{
|
|
559
|
-
"constant": true,
|
|
560
823
|
"inputs": [],
|
|
561
824
|
"name": "name",
|
|
562
825
|
"outputs": [
|
|
@@ -566,12 +829,10 @@ export const RaribleToken_jsonAbi = [
|
|
|
566
829
|
"type": "string"
|
|
567
830
|
}
|
|
568
831
|
],
|
|
569
|
-
"payable": false,
|
|
570
832
|
"stateMutability": "view",
|
|
571
833
|
"type": "function"
|
|
572
834
|
},
|
|
573
835
|
{
|
|
574
|
-
"constant": true,
|
|
575
836
|
"inputs": [],
|
|
576
837
|
"name": "owner",
|
|
577
838
|
"outputs": [
|
|
@@ -581,165 +842,156 @@ export const RaribleToken_jsonAbi = [
|
|
|
581
842
|
"type": "address"
|
|
582
843
|
}
|
|
583
844
|
],
|
|
584
|
-
"payable": false,
|
|
585
845
|
"stateMutability": "view",
|
|
586
846
|
"type": "function"
|
|
587
847
|
},
|
|
588
848
|
{
|
|
589
|
-
"constant": false,
|
|
590
849
|
"inputs": [
|
|
591
850
|
{
|
|
592
851
|
"internalType": "address",
|
|
593
|
-
"name": "
|
|
852
|
+
"name": "_minter",
|
|
594
853
|
"type": "address"
|
|
595
854
|
}
|
|
596
855
|
],
|
|
597
|
-
"name": "
|
|
856
|
+
"name": "removeMinter",
|
|
598
857
|
"outputs": [],
|
|
599
|
-
"payable": false,
|
|
600
858
|
"stateMutability": "nonpayable",
|
|
601
859
|
"type": "function"
|
|
602
860
|
},
|
|
603
861
|
{
|
|
604
|
-
"constant": false,
|
|
605
862
|
"inputs": [],
|
|
606
863
|
"name": "renounceOwnership",
|
|
607
864
|
"outputs": [],
|
|
608
|
-
"payable": false,
|
|
609
865
|
"stateMutability": "nonpayable",
|
|
610
866
|
"type": "function"
|
|
611
867
|
},
|
|
612
868
|
{
|
|
613
|
-
"
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
869
|
+
"inputs": [
|
|
870
|
+
{
|
|
871
|
+
"internalType": "uint256",
|
|
872
|
+
"name": "id",
|
|
873
|
+
"type": "uint256"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"internalType": "uint256",
|
|
877
|
+
"name": "_salePrice",
|
|
878
|
+
"type": "uint256"
|
|
879
|
+
}
|
|
880
|
+
],
|
|
881
|
+
"name": "royaltyInfo",
|
|
882
|
+
"outputs": [
|
|
883
|
+
{
|
|
884
|
+
"internalType": "address",
|
|
885
|
+
"name": "receiver",
|
|
886
|
+
"type": "address"
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"internalType": "uint256",
|
|
890
|
+
"name": "royaltyAmount",
|
|
891
|
+
"type": "uint256"
|
|
892
|
+
}
|
|
893
|
+
],
|
|
894
|
+
"stateMutability": "view",
|
|
619
895
|
"type": "function"
|
|
620
896
|
},
|
|
621
897
|
{
|
|
622
|
-
"constant": false,
|
|
623
898
|
"inputs": [
|
|
624
899
|
{
|
|
625
900
|
"internalType": "address",
|
|
626
|
-
"name": "
|
|
901
|
+
"name": "from",
|
|
627
902
|
"type": "address"
|
|
628
903
|
},
|
|
629
904
|
{
|
|
630
905
|
"internalType": "address",
|
|
631
|
-
"name": "
|
|
906
|
+
"name": "to",
|
|
632
907
|
"type": "address"
|
|
633
908
|
},
|
|
634
909
|
{
|
|
635
910
|
"internalType": "uint256[]",
|
|
636
|
-
"name": "
|
|
911
|
+
"name": "ids",
|
|
637
912
|
"type": "uint256[]"
|
|
638
913
|
},
|
|
639
914
|
{
|
|
640
915
|
"internalType": "uint256[]",
|
|
641
|
-
"name": "
|
|
916
|
+
"name": "amounts",
|
|
642
917
|
"type": "uint256[]"
|
|
643
918
|
},
|
|
644
919
|
{
|
|
645
920
|
"internalType": "bytes",
|
|
646
|
-
"name": "
|
|
921
|
+
"name": "data",
|
|
647
922
|
"type": "bytes"
|
|
648
923
|
}
|
|
649
924
|
],
|
|
650
925
|
"name": "safeBatchTransferFrom",
|
|
651
926
|
"outputs": [],
|
|
652
|
-
"payable": false,
|
|
653
927
|
"stateMutability": "nonpayable",
|
|
654
928
|
"type": "function"
|
|
655
929
|
},
|
|
656
930
|
{
|
|
657
|
-
"constant": false,
|
|
658
931
|
"inputs": [
|
|
659
932
|
{
|
|
660
933
|
"internalType": "address",
|
|
661
|
-
"name": "
|
|
934
|
+
"name": "from",
|
|
662
935
|
"type": "address"
|
|
663
936
|
},
|
|
664
937
|
{
|
|
665
938
|
"internalType": "address",
|
|
666
|
-
"name": "
|
|
939
|
+
"name": "to",
|
|
667
940
|
"type": "address"
|
|
668
941
|
},
|
|
669
942
|
{
|
|
670
943
|
"internalType": "uint256",
|
|
671
|
-
"name": "
|
|
944
|
+
"name": "id",
|
|
672
945
|
"type": "uint256"
|
|
673
946
|
},
|
|
674
947
|
{
|
|
675
948
|
"internalType": "uint256",
|
|
676
|
-
"name": "
|
|
949
|
+
"name": "amount",
|
|
677
950
|
"type": "uint256"
|
|
678
951
|
},
|
|
679
952
|
{
|
|
680
953
|
"internalType": "bytes",
|
|
681
|
-
"name": "
|
|
954
|
+
"name": "data",
|
|
682
955
|
"type": "bytes"
|
|
683
956
|
}
|
|
684
957
|
],
|
|
685
958
|
"name": "safeTransferFrom",
|
|
686
959
|
"outputs": [],
|
|
687
|
-
"payable": false,
|
|
688
960
|
"stateMutability": "nonpayable",
|
|
689
961
|
"type": "function"
|
|
690
962
|
},
|
|
691
963
|
{
|
|
692
|
-
"constant": false,
|
|
693
964
|
"inputs": [
|
|
694
965
|
{
|
|
695
966
|
"internalType": "address",
|
|
696
|
-
"name": "
|
|
967
|
+
"name": "operator",
|
|
697
968
|
"type": "address"
|
|
698
969
|
},
|
|
699
970
|
{
|
|
700
971
|
"internalType": "bool",
|
|
701
|
-
"name": "
|
|
972
|
+
"name": "approved",
|
|
702
973
|
"type": "bool"
|
|
703
974
|
}
|
|
704
975
|
],
|
|
705
976
|
"name": "setApprovalForAll",
|
|
706
977
|
"outputs": [],
|
|
707
|
-
"payable": false,
|
|
708
|
-
"stateMutability": "nonpayable",
|
|
709
|
-
"type": "function"
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
"constant": false,
|
|
713
|
-
"inputs": [
|
|
714
|
-
{
|
|
715
|
-
"internalType": "string",
|
|
716
|
-
"name": "contractURI",
|
|
717
|
-
"type": "string"
|
|
718
|
-
}
|
|
719
|
-
],
|
|
720
|
-
"name": "setContractURI",
|
|
721
|
-
"outputs": [],
|
|
722
|
-
"payable": false,
|
|
723
978
|
"stateMutability": "nonpayable",
|
|
724
979
|
"type": "function"
|
|
725
980
|
},
|
|
726
981
|
{
|
|
727
|
-
"constant": false,
|
|
728
982
|
"inputs": [
|
|
729
983
|
{
|
|
730
984
|
"internalType": "string",
|
|
731
|
-
"name": "
|
|
985
|
+
"name": "newBaseURI",
|
|
732
986
|
"type": "string"
|
|
733
987
|
}
|
|
734
988
|
],
|
|
735
|
-
"name": "
|
|
989
|
+
"name": "setBaseURI",
|
|
736
990
|
"outputs": [],
|
|
737
|
-
"payable": false,
|
|
738
991
|
"stateMutability": "nonpayable",
|
|
739
992
|
"type": "function"
|
|
740
993
|
},
|
|
741
994
|
{
|
|
742
|
-
"constant": true,
|
|
743
995
|
"inputs": [
|
|
744
996
|
{
|
|
745
997
|
"internalType": "bytes4",
|
|
@@ -755,12 +1007,10 @@ export const RaribleToken_jsonAbi = [
|
|
|
755
1007
|
"type": "bool"
|
|
756
1008
|
}
|
|
757
1009
|
],
|
|
758
|
-
"payable": false,
|
|
759
1010
|
"stateMutability": "view",
|
|
760
1011
|
"type": "function"
|
|
761
1012
|
},
|
|
762
1013
|
{
|
|
763
|
-
"constant": true,
|
|
764
1014
|
"inputs": [],
|
|
765
1015
|
"name": "symbol",
|
|
766
1016
|
"outputs": [
|
|
@@ -770,27 +1020,94 @@ export const RaribleToken_jsonAbi = [
|
|
|
770
1020
|
"type": "string"
|
|
771
1021
|
}
|
|
772
1022
|
],
|
|
773
|
-
"payable": false,
|
|
774
1023
|
"stateMutability": "view",
|
|
775
1024
|
"type": "function"
|
|
776
1025
|
},
|
|
777
1026
|
{
|
|
778
|
-
"
|
|
779
|
-
"inputs": [],
|
|
780
|
-
"name": "tokenURIPrefix",
|
|
781
|
-
"outputs": [
|
|
1027
|
+
"inputs": [
|
|
782
1028
|
{
|
|
783
|
-
"
|
|
784
|
-
|
|
785
|
-
|
|
1029
|
+
"components": [
|
|
1030
|
+
{
|
|
1031
|
+
"internalType": "uint256",
|
|
1032
|
+
"name": "tokenId",
|
|
1033
|
+
"type": "uint256"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"internalType": "string",
|
|
1037
|
+
"name": "tokenURI",
|
|
1038
|
+
"type": "string"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"internalType": "uint256",
|
|
1042
|
+
"name": "supply",
|
|
1043
|
+
"type": "uint256"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"components": [
|
|
1047
|
+
{
|
|
1048
|
+
"internalType": "address payable",
|
|
1049
|
+
"name": "account",
|
|
1050
|
+
"type": "address"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"internalType": "uint96",
|
|
1054
|
+
"name": "value",
|
|
1055
|
+
"type": "uint96"
|
|
1056
|
+
}
|
|
1057
|
+
],
|
|
1058
|
+
"internalType": "struct LibPart.Part[]",
|
|
1059
|
+
"name": "creators",
|
|
1060
|
+
"type": "tuple[]"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"components": [
|
|
1064
|
+
{
|
|
1065
|
+
"internalType": "address payable",
|
|
1066
|
+
"name": "account",
|
|
1067
|
+
"type": "address"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"internalType": "uint96",
|
|
1071
|
+
"name": "value",
|
|
1072
|
+
"type": "uint96"
|
|
1073
|
+
}
|
|
1074
|
+
],
|
|
1075
|
+
"internalType": "struct LibPart.Part[]",
|
|
1076
|
+
"name": "royalties",
|
|
1077
|
+
"type": "tuple[]"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"internalType": "bytes[]",
|
|
1081
|
+
"name": "signatures",
|
|
1082
|
+
"type": "bytes[]"
|
|
1083
|
+
}
|
|
1084
|
+
],
|
|
1085
|
+
"internalType": "struct LibERC1155LazyMint.Mint1155Data",
|
|
1086
|
+
"name": "data",
|
|
1087
|
+
"type": "tuple"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"internalType": "address",
|
|
1091
|
+
"name": "from",
|
|
1092
|
+
"type": "address"
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"internalType": "address",
|
|
1096
|
+
"name": "to",
|
|
1097
|
+
"type": "address"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"internalType": "uint256",
|
|
1101
|
+
"name": "amount",
|
|
1102
|
+
"type": "uint256"
|
|
786
1103
|
}
|
|
787
1104
|
],
|
|
788
|
-
"
|
|
789
|
-
"
|
|
1105
|
+
"name": "transferFromOrMint",
|
|
1106
|
+
"outputs": [],
|
|
1107
|
+
"stateMutability": "nonpayable",
|
|
790
1108
|
"type": "function"
|
|
791
1109
|
},
|
|
792
1110
|
{
|
|
793
|
-
"constant": false,
|
|
794
1111
|
"inputs": [
|
|
795
1112
|
{
|
|
796
1113
|
"internalType": "address",
|
|
@@ -800,17 +1117,38 @@ export const RaribleToken_jsonAbi = [
|
|
|
800
1117
|
],
|
|
801
1118
|
"name": "transferOwnership",
|
|
802
1119
|
"outputs": [],
|
|
803
|
-
"payable": false,
|
|
804
1120
|
"stateMutability": "nonpayable",
|
|
805
1121
|
"type": "function"
|
|
806
1122
|
},
|
|
807
1123
|
{
|
|
808
|
-
"constant": true,
|
|
809
1124
|
"inputs": [
|
|
810
1125
|
{
|
|
811
1126
|
"internalType": "uint256",
|
|
812
1127
|
"name": "_id",
|
|
813
1128
|
"type": "uint256"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"internalType": "address",
|
|
1132
|
+
"name": "_from",
|
|
1133
|
+
"type": "address"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"internalType": "address",
|
|
1137
|
+
"name": "_to",
|
|
1138
|
+
"type": "address"
|
|
1139
|
+
}
|
|
1140
|
+
],
|
|
1141
|
+
"name": "updateAccount",
|
|
1142
|
+
"outputs": [],
|
|
1143
|
+
"stateMutability": "nonpayable",
|
|
1144
|
+
"type": "function"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"inputs": [
|
|
1148
|
+
{
|
|
1149
|
+
"internalType": "uint256",
|
|
1150
|
+
"name": "id",
|
|
1151
|
+
"type": "uint256"
|
|
814
1152
|
}
|
|
815
1153
|
],
|
|
816
1154
|
"name": "uri",
|
|
@@ -821,26 +1159,25 @@ export const RaribleToken_jsonAbi = [
|
|
|
821
1159
|
"type": "string"
|
|
822
1160
|
}
|
|
823
1161
|
],
|
|
824
|
-
"payable": false,
|
|
825
1162
|
"stateMutability": "view",
|
|
826
1163
|
"type": "function"
|
|
827
1164
|
}
|
|
828
1165
|
] as const satisfies Abi;
|
|
829
1166
|
|
|
830
1167
|
/**
|
|
831
|
-
* Type-safe ABI for
|
|
1168
|
+
* Type-safe ABI for ERC1155Rarible_json
|
|
832
1169
|
*/
|
|
833
|
-
export type
|
|
1170
|
+
export type ERC1155Rarible_jsonAbi = typeof ERC1155Rarible_jsonAbi;
|
|
834
1171
|
|
|
835
1172
|
/**
|
|
836
|
-
* Contract instance type for
|
|
1173
|
+
* Contract instance type for ERC1155Rarible_json
|
|
837
1174
|
*/
|
|
838
1175
|
// Use any for contract type to avoid complex viem type issues
|
|
839
1176
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
840
|
-
export type
|
|
1177
|
+
export type ERC1155Rarible_jsonContract = any;
|
|
841
1178
|
|
|
842
1179
|
/**
|
|
843
|
-
*
|
|
1180
|
+
* ERC1155Rarible_json Contract Class
|
|
844
1181
|
*
|
|
845
1182
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
846
1183
|
*
|
|
@@ -848,12 +1185,12 @@ export type RaribleToken_jsonContract = any;
|
|
|
848
1185
|
* ```typescript
|
|
849
1186
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
850
1187
|
* import { mainnet } from 'viem/chains';
|
|
851
|
-
* import {
|
|
1188
|
+
* import { ERC1155Rarible_json } from 'ERC1155Rarible_json';
|
|
852
1189
|
*
|
|
853
1190
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
854
1191
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
855
1192
|
*
|
|
856
|
-
* const contract = new
|
|
1193
|
+
* const contract = new ERC1155Rarible_json('0x...', { publicClient, walletClient });
|
|
857
1194
|
*
|
|
858
1195
|
* // Read functions
|
|
859
1196
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -871,8 +1208,8 @@ export type RaribleToken_jsonContract = any;
|
|
|
871
1208
|
* });
|
|
872
1209
|
* ```
|
|
873
1210
|
*/
|
|
874
|
-
export class
|
|
875
|
-
private contract:
|
|
1211
|
+
export class ERC1155Rarible_json {
|
|
1212
|
+
private contract: ERC1155Rarible_jsonContract;
|
|
876
1213
|
private contractAddress: Address;
|
|
877
1214
|
private publicClient: PublicClient;
|
|
878
1215
|
|
|
@@ -887,7 +1224,7 @@ export class RaribleToken_json {
|
|
|
887
1224
|
this.publicClient = clients.publicClient;
|
|
888
1225
|
this.contract = getContract({
|
|
889
1226
|
address,
|
|
890
|
-
abi:
|
|
1227
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
891
1228
|
client: {
|
|
892
1229
|
public: clients.publicClient,
|
|
893
1230
|
wallet: clients.walletClient,
|
|
@@ -905,7 +1242,7 @@ export class RaribleToken_json {
|
|
|
905
1242
|
/**
|
|
906
1243
|
* Get the underlying viem contract instance
|
|
907
1244
|
*/
|
|
908
|
-
getContract():
|
|
1245
|
+
getContract(): ERC1155Rarible_jsonContract {
|
|
909
1246
|
return this.contract;
|
|
910
1247
|
}
|
|
911
1248
|
|
|
@@ -913,56 +1250,48 @@ export class RaribleToken_json {
|
|
|
913
1250
|
* balanceOf
|
|
914
1251
|
* view
|
|
915
1252
|
*/
|
|
916
|
-
async balanceOf(
|
|
917
|
-
return this.contract.read.balanceOf([
|
|
1253
|
+
async balanceOf(account: `0x${string}`, id: bigint): Promise<bigint> {
|
|
1254
|
+
return this.contract.read.balanceOf([account, id] as const) as Promise<bigint>;
|
|
918
1255
|
}
|
|
919
1256
|
|
|
920
1257
|
/**
|
|
921
1258
|
* balanceOfBatch
|
|
922
1259
|
* view
|
|
923
1260
|
*/
|
|
924
|
-
async balanceOfBatch(
|
|
925
|
-
return this.contract.read.balanceOfBatch([
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
* contractURI
|
|
930
|
-
* view
|
|
931
|
-
*/
|
|
932
|
-
async contractURI(): Promise<string> {
|
|
933
|
-
return this.contract.read.contractURI() as Promise<string>;
|
|
1261
|
+
async balanceOfBatch(accounts: `0x${string}`[], ids: bigint[]): Promise<bigint[]> {
|
|
1262
|
+
return this.contract.read.balanceOfBatch([accounts, ids] as const) as Promise<bigint[]>;
|
|
934
1263
|
}
|
|
935
1264
|
|
|
936
1265
|
/**
|
|
937
|
-
*
|
|
1266
|
+
* baseURI
|
|
938
1267
|
* view
|
|
939
1268
|
*/
|
|
940
|
-
async
|
|
941
|
-
return this.contract.read.
|
|
1269
|
+
async baseURI(): Promise<string> {
|
|
1270
|
+
return this.contract.read.baseURI() as Promise<string>;
|
|
942
1271
|
}
|
|
943
1272
|
|
|
944
1273
|
/**
|
|
945
|
-
*
|
|
1274
|
+
* contractURI
|
|
946
1275
|
* view
|
|
947
1276
|
*/
|
|
948
|
-
async
|
|
949
|
-
return this.contract.read.
|
|
1277
|
+
async contractURI(): Promise<string> {
|
|
1278
|
+
return this.contract.read.contractURI() as Promise<string>;
|
|
950
1279
|
}
|
|
951
1280
|
|
|
952
1281
|
/**
|
|
953
|
-
*
|
|
1282
|
+
* getCreators
|
|
954
1283
|
* view
|
|
955
1284
|
*/
|
|
956
|
-
async
|
|
957
|
-
return this.contract.read.
|
|
1285
|
+
async getCreators(_id: bigint): Promise<LibPart_Part[]> {
|
|
1286
|
+
return this.contract.read.getCreators([_id] as const) as Promise<LibPart_Part[]>;
|
|
958
1287
|
}
|
|
959
1288
|
|
|
960
1289
|
/**
|
|
961
|
-
*
|
|
1290
|
+
* getRaribleV2Royalties
|
|
962
1291
|
* view
|
|
963
1292
|
*/
|
|
964
|
-
async
|
|
965
|
-
return this.contract.read.
|
|
1293
|
+
async getRaribleV2Royalties(id: bigint): Promise<LibPart_Part[]> {
|
|
1294
|
+
return this.contract.read.getRaribleV2Royalties([id] as const) as Promise<LibPart_Part[]>;
|
|
966
1295
|
}
|
|
967
1296
|
|
|
968
1297
|
/**
|
|
@@ -974,19 +1303,11 @@ export class RaribleToken_json {
|
|
|
974
1303
|
}
|
|
975
1304
|
|
|
976
1305
|
/**
|
|
977
|
-
*
|
|
978
|
-
* view
|
|
979
|
-
*/
|
|
980
|
-
async isOwner(): Promise<boolean> {
|
|
981
|
-
return this.contract.read.isOwner() as Promise<boolean>;
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
/**
|
|
985
|
-
* isSigner
|
|
1306
|
+
* isMinter
|
|
986
1307
|
* view
|
|
987
1308
|
*/
|
|
988
|
-
async
|
|
989
|
-
return this.contract.read.
|
|
1309
|
+
async isMinter(account: `0x${string}`): Promise<boolean> {
|
|
1310
|
+
return this.contract.read.isMinter([account] as const) as Promise<boolean>;
|
|
990
1311
|
}
|
|
991
1312
|
|
|
992
1313
|
/**
|
|
@@ -1005,6 +1326,14 @@ export class RaribleToken_json {
|
|
|
1005
1326
|
return this.contract.read.owner() as Promise<`0x${string}`>;
|
|
1006
1327
|
}
|
|
1007
1328
|
|
|
1329
|
+
/**
|
|
1330
|
+
* royaltyInfo
|
|
1331
|
+
* view
|
|
1332
|
+
*/
|
|
1333
|
+
async royaltyInfo(id: bigint, _salePrice: bigint): Promise<[`0x${string}`, bigint]> {
|
|
1334
|
+
return this.contract.read.royaltyInfo([id, _salePrice] as const) as Promise<[`0x${string}`, bigint]>;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1008
1337
|
/**
|
|
1009
1338
|
* supportsInterface
|
|
1010
1339
|
* view
|
|
@@ -1022,27 +1351,88 @@ export class RaribleToken_json {
|
|
|
1022
1351
|
}
|
|
1023
1352
|
|
|
1024
1353
|
/**
|
|
1025
|
-
*
|
|
1026
|
-
* view
|
|
1354
|
+
* uri
|
|
1355
|
+
* view
|
|
1356
|
+
*/
|
|
1357
|
+
async uri(id: bigint): Promise<string> {
|
|
1358
|
+
return this.contract.read.uri([id] as const) as Promise<string>;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* __ERC1155RaribleUser_init
|
|
1363
|
+
* nonpayable
|
|
1364
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1365
|
+
*/
|
|
1366
|
+
async __ERC1155RaribleUser_init(_name: string, _symbol: string, baseURI: string, contractURI: string, operators: `0x${string}`[], transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1367
|
+
accessList?: import('viem').AccessList;
|
|
1368
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1369
|
+
chain?: import('viem').Chain | null;
|
|
1370
|
+
dataSuffix?: `0x${string}`;
|
|
1371
|
+
gas?: bigint;
|
|
1372
|
+
gasPrice?: bigint;
|
|
1373
|
+
maxFeePerGas?: bigint;
|
|
1374
|
+
maxPriorityFeePerGas?: bigint;
|
|
1375
|
+
nonce?: number;
|
|
1376
|
+
value?: bigint;
|
|
1377
|
+
}): Promise<`0x${string}`> {
|
|
1378
|
+
if (!this.contract.write) {
|
|
1379
|
+
throw new Error('Wallet client is required for write operations');
|
|
1380
|
+
}
|
|
1381
|
+
return this.contract.write.__ERC1155RaribleUser_init([_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy] as const, options) as Promise<`0x${string}`>;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* __ERC1155Rarible_init
|
|
1386
|
+
* nonpayable
|
|
1387
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1027
1388
|
*/
|
|
1028
|
-
async
|
|
1029
|
-
|
|
1389
|
+
async __ERC1155Rarible_init(_name: string, _symbol: string, baseURI: string, contractURI: string, transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1390
|
+
accessList?: import('viem').AccessList;
|
|
1391
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1392
|
+
chain?: import('viem').Chain | null;
|
|
1393
|
+
dataSuffix?: `0x${string}`;
|
|
1394
|
+
gas?: bigint;
|
|
1395
|
+
gasPrice?: bigint;
|
|
1396
|
+
maxFeePerGas?: bigint;
|
|
1397
|
+
maxPriorityFeePerGas?: bigint;
|
|
1398
|
+
nonce?: number;
|
|
1399
|
+
value?: bigint;
|
|
1400
|
+
}): Promise<`0x${string}`> {
|
|
1401
|
+
if (!this.contract.write) {
|
|
1402
|
+
throw new Error('Wallet client is required for write operations');
|
|
1403
|
+
}
|
|
1404
|
+
return this.contract.write.__ERC1155Rarible_init([_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy] as const, options) as Promise<`0x${string}`>;
|
|
1030
1405
|
}
|
|
1031
1406
|
|
|
1032
1407
|
/**
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1408
|
+
* addMinter
|
|
1409
|
+
* nonpayable
|
|
1410
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1035
1411
|
*/
|
|
1036
|
-
async
|
|
1037
|
-
|
|
1412
|
+
async addMinter(minter: `0x${string}`, options?: {
|
|
1413
|
+
accessList?: import('viem').AccessList;
|
|
1414
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1415
|
+
chain?: import('viem').Chain | null;
|
|
1416
|
+
dataSuffix?: `0x${string}`;
|
|
1417
|
+
gas?: bigint;
|
|
1418
|
+
gasPrice?: bigint;
|
|
1419
|
+
maxFeePerGas?: bigint;
|
|
1420
|
+
maxPriorityFeePerGas?: bigint;
|
|
1421
|
+
nonce?: number;
|
|
1422
|
+
value?: bigint;
|
|
1423
|
+
}): Promise<`0x${string}`> {
|
|
1424
|
+
if (!this.contract.write) {
|
|
1425
|
+
throw new Error('Wallet client is required for write operations');
|
|
1426
|
+
}
|
|
1427
|
+
return this.contract.write.addMinter([minter] as const, options) as Promise<`0x${string}`>;
|
|
1038
1428
|
}
|
|
1039
1429
|
|
|
1040
1430
|
/**
|
|
1041
|
-
*
|
|
1431
|
+
* addMinters
|
|
1042
1432
|
* nonpayable
|
|
1043
1433
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1044
1434
|
*/
|
|
1045
|
-
async
|
|
1435
|
+
async addMinters(minters: `0x${string}`[], options?: {
|
|
1046
1436
|
accessList?: import('viem').AccessList;
|
|
1047
1437
|
authorizationList?: import('viem').AuthorizationList;
|
|
1048
1438
|
chain?: import('viem').Chain | null;
|
|
@@ -1057,7 +1447,7 @@ export class RaribleToken_json {
|
|
|
1057
1447
|
if (!this.contract.write) {
|
|
1058
1448
|
throw new Error('Wallet client is required for write operations');
|
|
1059
1449
|
}
|
|
1060
|
-
return this.contract.write.
|
|
1450
|
+
return this.contract.write.addMinters([minters] as const, options) as Promise<`0x${string}`>;
|
|
1061
1451
|
}
|
|
1062
1452
|
|
|
1063
1453
|
/**
|
|
@@ -1065,7 +1455,7 @@ export class RaribleToken_json {
|
|
|
1065
1455
|
* nonpayable
|
|
1066
1456
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1067
1457
|
*/
|
|
1068
|
-
async burn(
|
|
1458
|
+
async burn(account: `0x${string}`, id: bigint, amount: bigint, options?: {
|
|
1069
1459
|
accessList?: import('viem').AccessList;
|
|
1070
1460
|
authorizationList?: import('viem').AuthorizationList;
|
|
1071
1461
|
chain?: import('viem').Chain | null;
|
|
@@ -1080,15 +1470,15 @@ export class RaribleToken_json {
|
|
|
1080
1470
|
if (!this.contract.write) {
|
|
1081
1471
|
throw new Error('Wallet client is required for write operations');
|
|
1082
1472
|
}
|
|
1083
|
-
return this.contract.write.burn([
|
|
1473
|
+
return this.contract.write.burn([account, id, amount] as const, options) as Promise<`0x${string}`>;
|
|
1084
1474
|
}
|
|
1085
1475
|
|
|
1086
1476
|
/**
|
|
1087
|
-
*
|
|
1477
|
+
* burnBatch
|
|
1088
1478
|
* nonpayable
|
|
1089
1479
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1090
1480
|
*/
|
|
1091
|
-
async
|
|
1481
|
+
async burnBatch(account: `0x${string}`, ids: bigint[], amounts: bigint[], options?: {
|
|
1092
1482
|
accessList?: import('viem').AccessList;
|
|
1093
1483
|
authorizationList?: import('viem').AuthorizationList;
|
|
1094
1484
|
chain?: import('viem').Chain | null;
|
|
@@ -1103,15 +1493,15 @@ export class RaribleToken_json {
|
|
|
1103
1493
|
if (!this.contract.write) {
|
|
1104
1494
|
throw new Error('Wallet client is required for write operations');
|
|
1105
1495
|
}
|
|
1106
|
-
return this.contract.write.
|
|
1496
|
+
return this.contract.write.burnBatch([account, ids, amounts] as const, options) as Promise<`0x${string}`>;
|
|
1107
1497
|
}
|
|
1108
1498
|
|
|
1109
1499
|
/**
|
|
1110
|
-
*
|
|
1500
|
+
* mintAndTransfer
|
|
1111
1501
|
* nonpayable
|
|
1112
1502
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1113
1503
|
*/
|
|
1114
|
-
async
|
|
1504
|
+
async mintAndTransfer(data: LibERC1155LazyMint_Mint1155Data, to: `0x${string}`, _amount: bigint, options?: {
|
|
1115
1505
|
accessList?: import('viem').AccessList;
|
|
1116
1506
|
authorizationList?: import('viem').AuthorizationList;
|
|
1117
1507
|
chain?: import('viem').Chain | null;
|
|
@@ -1126,15 +1516,15 @@ export class RaribleToken_json {
|
|
|
1126
1516
|
if (!this.contract.write) {
|
|
1127
1517
|
throw new Error('Wallet client is required for write operations');
|
|
1128
1518
|
}
|
|
1129
|
-
return this.contract.write.
|
|
1519
|
+
return this.contract.write.mintAndTransfer([data, to, _amount] as const, options) as Promise<`0x${string}`>;
|
|
1130
1520
|
}
|
|
1131
1521
|
|
|
1132
1522
|
/**
|
|
1133
|
-
*
|
|
1523
|
+
* removeMinter
|
|
1134
1524
|
* nonpayable
|
|
1135
1525
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1136
1526
|
*/
|
|
1137
|
-
async
|
|
1527
|
+
async removeMinter(_minter: `0x${string}`, options?: {
|
|
1138
1528
|
accessList?: import('viem').AccessList;
|
|
1139
1529
|
authorizationList?: import('viem').AuthorizationList;
|
|
1140
1530
|
chain?: import('viem').Chain | null;
|
|
@@ -1149,15 +1539,15 @@ export class RaribleToken_json {
|
|
|
1149
1539
|
if (!this.contract.write) {
|
|
1150
1540
|
throw new Error('Wallet client is required for write operations');
|
|
1151
1541
|
}
|
|
1152
|
-
return this.contract.write.
|
|
1542
|
+
return this.contract.write.removeMinter([_minter] as const, options) as Promise<`0x${string}`>;
|
|
1153
1543
|
}
|
|
1154
1544
|
|
|
1155
1545
|
/**
|
|
1156
|
-
*
|
|
1546
|
+
* renounceOwnership
|
|
1157
1547
|
* nonpayable
|
|
1158
1548
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1159
1549
|
*/
|
|
1160
|
-
async
|
|
1550
|
+
async renounceOwnership(options?: {
|
|
1161
1551
|
accessList?: import('viem').AccessList;
|
|
1162
1552
|
authorizationList?: import('viem').AuthorizationList;
|
|
1163
1553
|
chain?: import('viem').Chain | null;
|
|
@@ -1172,7 +1562,7 @@ export class RaribleToken_json {
|
|
|
1172
1562
|
if (!this.contract.write) {
|
|
1173
1563
|
throw new Error('Wallet client is required for write operations');
|
|
1174
1564
|
}
|
|
1175
|
-
return this.contract.write.
|
|
1565
|
+
return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
|
|
1176
1566
|
}
|
|
1177
1567
|
|
|
1178
1568
|
/**
|
|
@@ -1180,7 +1570,7 @@ export class RaribleToken_json {
|
|
|
1180
1570
|
* nonpayable
|
|
1181
1571
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1182
1572
|
*/
|
|
1183
|
-
async safeBatchTransferFrom(
|
|
1573
|
+
async safeBatchTransferFrom(from: `0x${string}`, to: `0x${string}`, ids: bigint[], amounts: bigint[], data: `0x${string}`, options?: {
|
|
1184
1574
|
accessList?: import('viem').AccessList;
|
|
1185
1575
|
authorizationList?: import('viem').AuthorizationList;
|
|
1186
1576
|
chain?: import('viem').Chain | null;
|
|
@@ -1195,7 +1585,7 @@ export class RaribleToken_json {
|
|
|
1195
1585
|
if (!this.contract.write) {
|
|
1196
1586
|
throw new Error('Wallet client is required for write operations');
|
|
1197
1587
|
}
|
|
1198
|
-
return this.contract.write.safeBatchTransferFrom([
|
|
1588
|
+
return this.contract.write.safeBatchTransferFrom([from, to, ids, amounts, data] as const, options) as Promise<`0x${string}`>;
|
|
1199
1589
|
}
|
|
1200
1590
|
|
|
1201
1591
|
/**
|
|
@@ -1203,7 +1593,7 @@ export class RaribleToken_json {
|
|
|
1203
1593
|
* nonpayable
|
|
1204
1594
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1205
1595
|
*/
|
|
1206
|
-
async safeTransferFrom(
|
|
1596
|
+
async safeTransferFrom(from: `0x${string}`, to: `0x${string}`, id: bigint, amount: bigint, data: `0x${string}`, options?: {
|
|
1207
1597
|
accessList?: import('viem').AccessList;
|
|
1208
1598
|
authorizationList?: import('viem').AuthorizationList;
|
|
1209
1599
|
chain?: import('viem').Chain | null;
|
|
@@ -1218,7 +1608,7 @@ export class RaribleToken_json {
|
|
|
1218
1608
|
if (!this.contract.write) {
|
|
1219
1609
|
throw new Error('Wallet client is required for write operations');
|
|
1220
1610
|
}
|
|
1221
|
-
return this.contract.write.safeTransferFrom([
|
|
1611
|
+
return this.contract.write.safeTransferFrom([from, to, id, amount, data] as const, options) as Promise<`0x${string}`>;
|
|
1222
1612
|
}
|
|
1223
1613
|
|
|
1224
1614
|
/**
|
|
@@ -1226,7 +1616,7 @@ export class RaribleToken_json {
|
|
|
1226
1616
|
* nonpayable
|
|
1227
1617
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1228
1618
|
*/
|
|
1229
|
-
async setApprovalForAll(
|
|
1619
|
+
async setApprovalForAll(operator: `0x${string}`, approved: boolean, options?: {
|
|
1230
1620
|
accessList?: import('viem').AccessList;
|
|
1231
1621
|
authorizationList?: import('viem').AuthorizationList;
|
|
1232
1622
|
chain?: import('viem').Chain | null;
|
|
@@ -1241,15 +1631,15 @@ export class RaribleToken_json {
|
|
|
1241
1631
|
if (!this.contract.write) {
|
|
1242
1632
|
throw new Error('Wallet client is required for write operations');
|
|
1243
1633
|
}
|
|
1244
|
-
return this.contract.write.setApprovalForAll([
|
|
1634
|
+
return this.contract.write.setApprovalForAll([operator, approved] as const, options) as Promise<`0x${string}`>;
|
|
1245
1635
|
}
|
|
1246
1636
|
|
|
1247
1637
|
/**
|
|
1248
|
-
*
|
|
1638
|
+
* setBaseURI
|
|
1249
1639
|
* nonpayable
|
|
1250
1640
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1251
1641
|
*/
|
|
1252
|
-
async
|
|
1642
|
+
async setBaseURI(newBaseURI: string, options?: {
|
|
1253
1643
|
accessList?: import('viem').AccessList;
|
|
1254
1644
|
authorizationList?: import('viem').AuthorizationList;
|
|
1255
1645
|
chain?: import('viem').Chain | null;
|
|
@@ -1264,15 +1654,15 @@ export class RaribleToken_json {
|
|
|
1264
1654
|
if (!this.contract.write) {
|
|
1265
1655
|
throw new Error('Wallet client is required for write operations');
|
|
1266
1656
|
}
|
|
1267
|
-
return this.contract.write.
|
|
1657
|
+
return this.contract.write.setBaseURI([newBaseURI] as const, options) as Promise<`0x${string}`>;
|
|
1268
1658
|
}
|
|
1269
1659
|
|
|
1270
1660
|
/**
|
|
1271
|
-
*
|
|
1661
|
+
* transferFromOrMint
|
|
1272
1662
|
* nonpayable
|
|
1273
1663
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1274
1664
|
*/
|
|
1275
|
-
async
|
|
1665
|
+
async transferFromOrMint(data: LibERC1155LazyMint_Mint1155Data, from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
1276
1666
|
accessList?: import('viem').AccessList;
|
|
1277
1667
|
authorizationList?: import('viem').AuthorizationList;
|
|
1278
1668
|
chain?: import('viem').Chain | null;
|
|
@@ -1287,7 +1677,7 @@ export class RaribleToken_json {
|
|
|
1287
1677
|
if (!this.contract.write) {
|
|
1288
1678
|
throw new Error('Wallet client is required for write operations');
|
|
1289
1679
|
}
|
|
1290
|
-
return this.contract.write.
|
|
1680
|
+
return this.contract.write.transferFromOrMint([data, from, to, amount] as const, options) as Promise<`0x${string}`>;
|
|
1291
1681
|
}
|
|
1292
1682
|
|
|
1293
1683
|
/**
|
|
@@ -1313,6 +1703,29 @@ export class RaribleToken_json {
|
|
|
1313
1703
|
return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
|
|
1314
1704
|
}
|
|
1315
1705
|
|
|
1706
|
+
/**
|
|
1707
|
+
* updateAccount
|
|
1708
|
+
* nonpayable
|
|
1709
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1710
|
+
*/
|
|
1711
|
+
async updateAccount(_id: bigint, _from: `0x${string}`, _to: `0x${string}`, options?: {
|
|
1712
|
+
accessList?: import('viem').AccessList;
|
|
1713
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1714
|
+
chain?: import('viem').Chain | null;
|
|
1715
|
+
dataSuffix?: `0x${string}`;
|
|
1716
|
+
gas?: bigint;
|
|
1717
|
+
gasPrice?: bigint;
|
|
1718
|
+
maxFeePerGas?: bigint;
|
|
1719
|
+
maxPriorityFeePerGas?: bigint;
|
|
1720
|
+
nonce?: number;
|
|
1721
|
+
value?: bigint;
|
|
1722
|
+
}): Promise<`0x${string}`> {
|
|
1723
|
+
if (!this.contract.write) {
|
|
1724
|
+
throw new Error('Wallet client is required for write operations');
|
|
1725
|
+
}
|
|
1726
|
+
return this.contract.write.updateAccount([_id, _from, _to] as const, options) as Promise<`0x${string}`>;
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1316
1729
|
|
|
1317
1730
|
|
|
1318
1731
|
/**
|
|
@@ -1330,11 +1743,68 @@ export class RaribleToken_json {
|
|
|
1330
1743
|
}
|
|
1331
1744
|
return {
|
|
1332
1745
|
/**
|
|
1333
|
-
* Simulate
|
|
1746
|
+
* Simulate __ERC1155RaribleUser_init
|
|
1747
|
+
* Returns gas estimate and result without sending transaction
|
|
1748
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1749
|
+
*/
|
|
1750
|
+
async __ERC1155RaribleUser_init(_name: string, _symbol: string, baseURI: string, contractURI: string, operators: `0x${string}`[], transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1751
|
+
accessList?: import('viem').AccessList;
|
|
1752
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1753
|
+
chain?: import('viem').Chain | null;
|
|
1754
|
+
dataSuffix?: `0x${string}`;
|
|
1755
|
+
gas?: bigint;
|
|
1756
|
+
gasPrice?: bigint;
|
|
1757
|
+
maxFeePerGas?: bigint;
|
|
1758
|
+
maxPriorityFeePerGas?: bigint;
|
|
1759
|
+
nonce?: number;
|
|
1760
|
+
value?: bigint;
|
|
1761
|
+
}): Promise<void> {
|
|
1762
|
+
return contract.simulate.__ERC1155RaribleUser_init([_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy] as const, options) as Promise<void>;
|
|
1763
|
+
},
|
|
1764
|
+
/**
|
|
1765
|
+
* Simulate __ERC1155Rarible_init
|
|
1766
|
+
* Returns gas estimate and result without sending transaction
|
|
1767
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1768
|
+
*/
|
|
1769
|
+
async __ERC1155Rarible_init(_name: string, _symbol: string, baseURI: string, contractURI: string, transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1770
|
+
accessList?: import('viem').AccessList;
|
|
1771
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1772
|
+
chain?: import('viem').Chain | null;
|
|
1773
|
+
dataSuffix?: `0x${string}`;
|
|
1774
|
+
gas?: bigint;
|
|
1775
|
+
gasPrice?: bigint;
|
|
1776
|
+
maxFeePerGas?: bigint;
|
|
1777
|
+
maxPriorityFeePerGas?: bigint;
|
|
1778
|
+
nonce?: number;
|
|
1779
|
+
value?: bigint;
|
|
1780
|
+
}): Promise<void> {
|
|
1781
|
+
return contract.simulate.__ERC1155Rarible_init([_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy] as const, options) as Promise<void>;
|
|
1782
|
+
},
|
|
1783
|
+
/**
|
|
1784
|
+
* Simulate addMinter
|
|
1785
|
+
* Returns gas estimate and result without sending transaction
|
|
1786
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1787
|
+
*/
|
|
1788
|
+
async addMinter(minter: `0x${string}`, options?: {
|
|
1789
|
+
accessList?: import('viem').AccessList;
|
|
1790
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1791
|
+
chain?: import('viem').Chain | null;
|
|
1792
|
+
dataSuffix?: `0x${string}`;
|
|
1793
|
+
gas?: bigint;
|
|
1794
|
+
gasPrice?: bigint;
|
|
1795
|
+
maxFeePerGas?: bigint;
|
|
1796
|
+
maxPriorityFeePerGas?: bigint;
|
|
1797
|
+
nonce?: number;
|
|
1798
|
+
value?: bigint;
|
|
1799
|
+
}): Promise<void> {
|
|
1800
|
+
return contract.simulate.addMinter([minter] as const, options) as Promise<void>;
|
|
1801
|
+
},
|
|
1802
|
+
/**
|
|
1803
|
+
* Simulate addMinters
|
|
1334
1804
|
* Returns gas estimate and result without sending transaction
|
|
1335
1805
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1336
1806
|
*/
|
|
1337
|
-
async
|
|
1807
|
+
async addMinters(minters: `0x${string}`[], options?: {
|
|
1338
1808
|
accessList?: import('viem').AccessList;
|
|
1339
1809
|
authorizationList?: import('viem').AuthorizationList;
|
|
1340
1810
|
chain?: import('viem').Chain | null;
|
|
@@ -1346,14 +1816,14 @@ export class RaribleToken_json {
|
|
|
1346
1816
|
nonce?: number;
|
|
1347
1817
|
value?: bigint;
|
|
1348
1818
|
}): Promise<void> {
|
|
1349
|
-
return contract.simulate.
|
|
1819
|
+
return contract.simulate.addMinters([minters] as const, options) as Promise<void>;
|
|
1350
1820
|
},
|
|
1351
1821
|
/**
|
|
1352
1822
|
* Simulate burn
|
|
1353
1823
|
* Returns gas estimate and result without sending transaction
|
|
1354
1824
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1355
1825
|
*/
|
|
1356
|
-
async burn(
|
|
1826
|
+
async burn(account: `0x${string}`, id: bigint, amount: bigint, options?: {
|
|
1357
1827
|
accessList?: import('viem').AccessList;
|
|
1358
1828
|
authorizationList?: import('viem').AuthorizationList;
|
|
1359
1829
|
chain?: import('viem').Chain | null;
|
|
@@ -1365,14 +1835,14 @@ export class RaribleToken_json {
|
|
|
1365
1835
|
nonce?: number;
|
|
1366
1836
|
value?: bigint;
|
|
1367
1837
|
}): Promise<void> {
|
|
1368
|
-
return contract.simulate.burn([
|
|
1838
|
+
return contract.simulate.burn([account, id, amount] as const, options) as Promise<void>;
|
|
1369
1839
|
},
|
|
1370
1840
|
/**
|
|
1371
|
-
* Simulate
|
|
1841
|
+
* Simulate burnBatch
|
|
1372
1842
|
* Returns gas estimate and result without sending transaction
|
|
1373
1843
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1374
1844
|
*/
|
|
1375
|
-
async
|
|
1845
|
+
async burnBatch(account: `0x${string}`, ids: bigint[], amounts: bigint[], options?: {
|
|
1376
1846
|
accessList?: import('viem').AccessList;
|
|
1377
1847
|
authorizationList?: import('viem').AuthorizationList;
|
|
1378
1848
|
chain?: import('viem').Chain | null;
|
|
@@ -1384,14 +1854,14 @@ export class RaribleToken_json {
|
|
|
1384
1854
|
nonce?: number;
|
|
1385
1855
|
value?: bigint;
|
|
1386
1856
|
}): Promise<void> {
|
|
1387
|
-
return contract.simulate.
|
|
1857
|
+
return contract.simulate.burnBatch([account, ids, amounts] as const, options) as Promise<void>;
|
|
1388
1858
|
},
|
|
1389
1859
|
/**
|
|
1390
|
-
* Simulate
|
|
1860
|
+
* Simulate mintAndTransfer
|
|
1391
1861
|
* Returns gas estimate and result without sending transaction
|
|
1392
1862
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1393
1863
|
*/
|
|
1394
|
-
async
|
|
1864
|
+
async mintAndTransfer(data: LibERC1155LazyMint_Mint1155Data, to: `0x${string}`, _amount: bigint, options?: {
|
|
1395
1865
|
accessList?: import('viem').AccessList;
|
|
1396
1866
|
authorizationList?: import('viem').AuthorizationList;
|
|
1397
1867
|
chain?: import('viem').Chain | null;
|
|
@@ -1403,14 +1873,14 @@ export class RaribleToken_json {
|
|
|
1403
1873
|
nonce?: number;
|
|
1404
1874
|
value?: bigint;
|
|
1405
1875
|
}): Promise<void> {
|
|
1406
|
-
return contract.simulate.
|
|
1876
|
+
return contract.simulate.mintAndTransfer([data, to, _amount] as const, options) as Promise<void>;
|
|
1407
1877
|
},
|
|
1408
1878
|
/**
|
|
1409
|
-
* Simulate
|
|
1879
|
+
* Simulate removeMinter
|
|
1410
1880
|
* Returns gas estimate and result without sending transaction
|
|
1411
1881
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1412
1882
|
*/
|
|
1413
|
-
async
|
|
1883
|
+
async removeMinter(_minter: `0x${string}`, options?: {
|
|
1414
1884
|
accessList?: import('viem').AccessList;
|
|
1415
1885
|
authorizationList?: import('viem').AuthorizationList;
|
|
1416
1886
|
chain?: import('viem').Chain | null;
|
|
@@ -1422,14 +1892,14 @@ export class RaribleToken_json {
|
|
|
1422
1892
|
nonce?: number;
|
|
1423
1893
|
value?: bigint;
|
|
1424
1894
|
}): Promise<void> {
|
|
1425
|
-
return contract.simulate.
|
|
1895
|
+
return contract.simulate.removeMinter([_minter] as const, options) as Promise<void>;
|
|
1426
1896
|
},
|
|
1427
1897
|
/**
|
|
1428
|
-
* Simulate
|
|
1898
|
+
* Simulate renounceOwnership
|
|
1429
1899
|
* Returns gas estimate and result without sending transaction
|
|
1430
1900
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1431
1901
|
*/
|
|
1432
|
-
async
|
|
1902
|
+
async renounceOwnership(options?: {
|
|
1433
1903
|
accessList?: import('viem').AccessList;
|
|
1434
1904
|
authorizationList?: import('viem').AuthorizationList;
|
|
1435
1905
|
chain?: import('viem').Chain | null;
|
|
@@ -1441,14 +1911,14 @@ export class RaribleToken_json {
|
|
|
1441
1911
|
nonce?: number;
|
|
1442
1912
|
value?: bigint;
|
|
1443
1913
|
}): Promise<void> {
|
|
1444
|
-
return contract.simulate.
|
|
1914
|
+
return contract.simulate.renounceOwnership(options) as Promise<void>;
|
|
1445
1915
|
},
|
|
1446
1916
|
/**
|
|
1447
1917
|
* Simulate safeBatchTransferFrom
|
|
1448
1918
|
* Returns gas estimate and result without sending transaction
|
|
1449
1919
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1450
1920
|
*/
|
|
1451
|
-
async safeBatchTransferFrom(
|
|
1921
|
+
async safeBatchTransferFrom(from: `0x${string}`, to: `0x${string}`, ids: bigint[], amounts: bigint[], data: `0x${string}`, options?: {
|
|
1452
1922
|
accessList?: import('viem').AccessList;
|
|
1453
1923
|
authorizationList?: import('viem').AuthorizationList;
|
|
1454
1924
|
chain?: import('viem').Chain | null;
|
|
@@ -1460,14 +1930,14 @@ export class RaribleToken_json {
|
|
|
1460
1930
|
nonce?: number;
|
|
1461
1931
|
value?: bigint;
|
|
1462
1932
|
}): Promise<void> {
|
|
1463
|
-
return contract.simulate.safeBatchTransferFrom([
|
|
1933
|
+
return contract.simulate.safeBatchTransferFrom([from, to, ids, amounts, data] as const, options) as Promise<void>;
|
|
1464
1934
|
},
|
|
1465
1935
|
/**
|
|
1466
1936
|
* Simulate safeTransferFrom
|
|
1467
1937
|
* Returns gas estimate and result without sending transaction
|
|
1468
1938
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1469
1939
|
*/
|
|
1470
|
-
async safeTransferFrom(
|
|
1940
|
+
async safeTransferFrom(from: `0x${string}`, to: `0x${string}`, id: bigint, amount: bigint, data: `0x${string}`, options?: {
|
|
1471
1941
|
accessList?: import('viem').AccessList;
|
|
1472
1942
|
authorizationList?: import('viem').AuthorizationList;
|
|
1473
1943
|
chain?: import('viem').Chain | null;
|
|
@@ -1479,14 +1949,14 @@ export class RaribleToken_json {
|
|
|
1479
1949
|
nonce?: number;
|
|
1480
1950
|
value?: bigint;
|
|
1481
1951
|
}): Promise<void> {
|
|
1482
|
-
return contract.simulate.safeTransferFrom([
|
|
1952
|
+
return contract.simulate.safeTransferFrom([from, to, id, amount, data] as const, options) as Promise<void>;
|
|
1483
1953
|
},
|
|
1484
1954
|
/**
|
|
1485
1955
|
* Simulate setApprovalForAll
|
|
1486
1956
|
* Returns gas estimate and result without sending transaction
|
|
1487
1957
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1488
1958
|
*/
|
|
1489
|
-
async setApprovalForAll(
|
|
1959
|
+
async setApprovalForAll(operator: `0x${string}`, approved: boolean, options?: {
|
|
1490
1960
|
accessList?: import('viem').AccessList;
|
|
1491
1961
|
authorizationList?: import('viem').AuthorizationList;
|
|
1492
1962
|
chain?: import('viem').Chain | null;
|
|
@@ -1498,14 +1968,14 @@ export class RaribleToken_json {
|
|
|
1498
1968
|
nonce?: number;
|
|
1499
1969
|
value?: bigint;
|
|
1500
1970
|
}): Promise<void> {
|
|
1501
|
-
return contract.simulate.setApprovalForAll([
|
|
1971
|
+
return contract.simulate.setApprovalForAll([operator, approved] as const, options) as Promise<void>;
|
|
1502
1972
|
},
|
|
1503
1973
|
/**
|
|
1504
|
-
* Simulate
|
|
1974
|
+
* Simulate setBaseURI
|
|
1505
1975
|
* Returns gas estimate and result without sending transaction
|
|
1506
1976
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1507
1977
|
*/
|
|
1508
|
-
async
|
|
1978
|
+
async setBaseURI(newBaseURI: string, options?: {
|
|
1509
1979
|
accessList?: import('viem').AccessList;
|
|
1510
1980
|
authorizationList?: import('viem').AuthorizationList;
|
|
1511
1981
|
chain?: import('viem').Chain | null;
|
|
@@ -1517,14 +1987,14 @@ export class RaribleToken_json {
|
|
|
1517
1987
|
nonce?: number;
|
|
1518
1988
|
value?: bigint;
|
|
1519
1989
|
}): Promise<void> {
|
|
1520
|
-
return contract.simulate.
|
|
1990
|
+
return contract.simulate.setBaseURI([newBaseURI] as const, options) as Promise<void>;
|
|
1521
1991
|
},
|
|
1522
1992
|
/**
|
|
1523
|
-
* Simulate
|
|
1993
|
+
* Simulate transferFromOrMint
|
|
1524
1994
|
* Returns gas estimate and result without sending transaction
|
|
1525
1995
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1526
1996
|
*/
|
|
1527
|
-
async
|
|
1997
|
+
async transferFromOrMint(data: LibERC1155LazyMint_Mint1155Data, from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
1528
1998
|
accessList?: import('viem').AccessList;
|
|
1529
1999
|
authorizationList?: import('viem').AuthorizationList;
|
|
1530
2000
|
chain?: import('viem').Chain | null;
|
|
@@ -1536,7 +2006,7 @@ export class RaribleToken_json {
|
|
|
1536
2006
|
nonce?: number;
|
|
1537
2007
|
value?: bigint;
|
|
1538
2008
|
}): Promise<void> {
|
|
1539
|
-
return contract.simulate.
|
|
2009
|
+
return contract.simulate.transferFromOrMint([data, from, to, amount] as const, options) as Promise<void>;
|
|
1540
2010
|
},
|
|
1541
2011
|
/**
|
|
1542
2012
|
* Simulate transferOwnership
|
|
@@ -1556,6 +2026,25 @@ export class RaribleToken_json {
|
|
|
1556
2026
|
value?: bigint;
|
|
1557
2027
|
}): Promise<void> {
|
|
1558
2028
|
return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
|
|
2029
|
+
},
|
|
2030
|
+
/**
|
|
2031
|
+
* Simulate updateAccount
|
|
2032
|
+
* Returns gas estimate and result without sending transaction
|
|
2033
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2034
|
+
*/
|
|
2035
|
+
async updateAccount(_id: bigint, _from: `0x${string}`, _to: `0x${string}`, options?: {
|
|
2036
|
+
accessList?: import('viem').AccessList;
|
|
2037
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2038
|
+
chain?: import('viem').Chain | null;
|
|
2039
|
+
dataSuffix?: `0x${string}`;
|
|
2040
|
+
gas?: bigint;
|
|
2041
|
+
gasPrice?: bigint;
|
|
2042
|
+
maxFeePerGas?: bigint;
|
|
2043
|
+
maxPriorityFeePerGas?: bigint;
|
|
2044
|
+
nonce?: number;
|
|
2045
|
+
value?: bigint;
|
|
2046
|
+
}): Promise<void> {
|
|
2047
|
+
return contract.simulate.updateAccount([_id, _from, _to] as const, options) as Promise<void>;
|
|
1559
2048
|
}
|
|
1560
2049
|
};
|
|
1561
2050
|
}
|
|
@@ -1580,10 +2069,10 @@ export class RaribleToken_json {
|
|
|
1580
2069
|
* @param filter Optional filter for indexed parameters
|
|
1581
2070
|
* @returns Unwatch function to stop listening
|
|
1582
2071
|
*/
|
|
1583
|
-
ApprovalForAll: (callback: (event: {
|
|
2072
|
+
ApprovalForAll: (callback: (event: { account: `0x${string}`; operator: `0x${string}`; approved: boolean }) => void, filter?: { account: `0x${string}`; operator: `0x${string}` }) => {
|
|
1584
2073
|
return this.publicClient.watchContractEvent({
|
|
1585
2074
|
address: this.contractAddress,
|
|
1586
|
-
abi:
|
|
2075
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
1587
2076
|
eventName: 'ApprovalForAll',
|
|
1588
2077
|
args: filter,
|
|
1589
2078
|
onLogs: (logs: any[]) => {
|
|
@@ -1594,16 +2083,54 @@ export class RaribleToken_json {
|
|
|
1594
2083
|
}) as () => void;
|
|
1595
2084
|
},
|
|
1596
2085
|
/**
|
|
1597
|
-
* Watch
|
|
2086
|
+
* Watch BaseUriChanged events
|
|
1598
2087
|
* @param callback Function to call when event is emitted
|
|
1599
2088
|
* @param filter Optional filter for indexed parameters
|
|
1600
2089
|
* @returns Unwatch function to stop listening
|
|
1601
2090
|
*/
|
|
1602
|
-
|
|
2091
|
+
BaseUriChanged: (callback: (event: { newBaseURI: string }) => void) => {
|
|
1603
2092
|
return this.publicClient.watchContractEvent({
|
|
1604
2093
|
address: this.contractAddress,
|
|
1605
|
-
abi:
|
|
1606
|
-
eventName: '
|
|
2094
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
2095
|
+
eventName: 'BaseUriChanged',
|
|
2096
|
+
|
|
2097
|
+
onLogs: (logs: any[]) => {
|
|
2098
|
+
logs.forEach((log: any) => {
|
|
2099
|
+
callback(log.args as any);
|
|
2100
|
+
});
|
|
2101
|
+
},
|
|
2102
|
+
}) as () => void;
|
|
2103
|
+
},
|
|
2104
|
+
/**
|
|
2105
|
+
* Watch BurnLazy events
|
|
2106
|
+
* @param callback Function to call when event is emitted
|
|
2107
|
+
* @param filter Optional filter for indexed parameters
|
|
2108
|
+
* @returns Unwatch function to stop listening
|
|
2109
|
+
*/
|
|
2110
|
+
BurnLazy: (callback: (event: { operator: `0x${string}`; account: `0x${string}`; id: bigint; amount: bigint }) => void, filter?: { operator: `0x${string}`; account: `0x${string}` }) => {
|
|
2111
|
+
return this.publicClient.watchContractEvent({
|
|
2112
|
+
address: this.contractAddress,
|
|
2113
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
2114
|
+
eventName: 'BurnLazy',
|
|
2115
|
+
args: filter,
|
|
2116
|
+
onLogs: (logs: any[]) => {
|
|
2117
|
+
logs.forEach((log: any) => {
|
|
2118
|
+
callback(log.args as any);
|
|
2119
|
+
});
|
|
2120
|
+
},
|
|
2121
|
+
}) as () => void;
|
|
2122
|
+
},
|
|
2123
|
+
/**
|
|
2124
|
+
* Watch BurnLazyBatch events
|
|
2125
|
+
* @param callback Function to call when event is emitted
|
|
2126
|
+
* @param filter Optional filter for indexed parameters
|
|
2127
|
+
* @returns Unwatch function to stop listening
|
|
2128
|
+
*/
|
|
2129
|
+
BurnLazyBatch: (callback: (event: { operator: `0x${string}`; account: `0x${string}`; ids: bigint[]; amounts: bigint[] }) => void, filter?: { operator: `0x${string}`; account: `0x${string}` }) => {
|
|
2130
|
+
return this.publicClient.watchContractEvent({
|
|
2131
|
+
address: this.contractAddress,
|
|
2132
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
2133
|
+
eventName: 'BurnLazyBatch',
|
|
1607
2134
|
args: filter,
|
|
1608
2135
|
onLogs: (logs: any[]) => {
|
|
1609
2136
|
logs.forEach((log: any) => {
|
|
@@ -1613,16 +2140,54 @@ export class RaribleToken_json {
|
|
|
1613
2140
|
}) as () => void;
|
|
1614
2141
|
},
|
|
1615
2142
|
/**
|
|
1616
|
-
* Watch
|
|
2143
|
+
* Watch CreateERC1155Rarible events
|
|
2144
|
+
* @param callback Function to call when event is emitted
|
|
2145
|
+
* @param filter Optional filter for indexed parameters
|
|
2146
|
+
* @returns Unwatch function to stop listening
|
|
2147
|
+
*/
|
|
2148
|
+
CreateERC1155Rarible: (callback: (event: { owner: `0x${string}`; name: string; symbol: string }) => void) => {
|
|
2149
|
+
return this.publicClient.watchContractEvent({
|
|
2150
|
+
address: this.contractAddress,
|
|
2151
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
2152
|
+
eventName: 'CreateERC1155Rarible',
|
|
2153
|
+
|
|
2154
|
+
onLogs: (logs: any[]) => {
|
|
2155
|
+
logs.forEach((log: any) => {
|
|
2156
|
+
callback(log.args as any);
|
|
2157
|
+
});
|
|
2158
|
+
},
|
|
2159
|
+
}) as () => void;
|
|
2160
|
+
},
|
|
2161
|
+
/**
|
|
2162
|
+
* Watch CreateERC1155RaribleUser events
|
|
2163
|
+
* @param callback Function to call when event is emitted
|
|
2164
|
+
* @param filter Optional filter for indexed parameters
|
|
2165
|
+
* @returns Unwatch function to stop listening
|
|
2166
|
+
*/
|
|
2167
|
+
CreateERC1155RaribleUser: (callback: (event: { owner: `0x${string}`; name: string; symbol: string }) => void) => {
|
|
2168
|
+
return this.publicClient.watchContractEvent({
|
|
2169
|
+
address: this.contractAddress,
|
|
2170
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
2171
|
+
eventName: 'CreateERC1155RaribleUser',
|
|
2172
|
+
|
|
2173
|
+
onLogs: (logs: any[]) => {
|
|
2174
|
+
logs.forEach((log: any) => {
|
|
2175
|
+
callback(log.args as any);
|
|
2176
|
+
});
|
|
2177
|
+
},
|
|
2178
|
+
}) as () => void;
|
|
2179
|
+
},
|
|
2180
|
+
/**
|
|
2181
|
+
* Watch Creators events
|
|
1617
2182
|
* @param callback Function to call when event is emitted
|
|
1618
2183
|
* @param filter Optional filter for indexed parameters
|
|
1619
2184
|
* @returns Unwatch function to stop listening
|
|
1620
2185
|
*/
|
|
1621
|
-
|
|
2186
|
+
Creators: (callback: (event: { tokenId: bigint; creators: LibPart_Part[] }) => void) => {
|
|
1622
2187
|
return this.publicClient.watchContractEvent({
|
|
1623
2188
|
address: this.contractAddress,
|
|
1624
|
-
abi:
|
|
1625
|
-
eventName: '
|
|
2189
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
2190
|
+
eventName: 'Creators',
|
|
1626
2191
|
|
|
1627
2192
|
onLogs: (logs: any[]) => {
|
|
1628
2193
|
logs.forEach((log: any) => {
|
|
@@ -1632,16 +2197,16 @@ export class RaribleToken_json {
|
|
|
1632
2197
|
}) as () => void;
|
|
1633
2198
|
},
|
|
1634
2199
|
/**
|
|
1635
|
-
* Watch
|
|
2200
|
+
* Watch DefaultApproval events
|
|
1636
2201
|
* @param callback Function to call when event is emitted
|
|
1637
2202
|
* @param filter Optional filter for indexed parameters
|
|
1638
2203
|
* @returns Unwatch function to stop listening
|
|
1639
2204
|
*/
|
|
1640
|
-
|
|
2205
|
+
DefaultApproval: (callback: (event: { operator: `0x${string}`; hasApproval: boolean }) => void, filter?: { operator: `0x${string}` }) => {
|
|
1641
2206
|
return this.publicClient.watchContractEvent({
|
|
1642
2207
|
address: this.contractAddress,
|
|
1643
|
-
abi:
|
|
1644
|
-
eventName: '
|
|
2208
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
2209
|
+
eventName: 'DefaultApproval',
|
|
1645
2210
|
args: filter,
|
|
1646
2211
|
onLogs: (logs: any[]) => {
|
|
1647
2212
|
logs.forEach((log: any) => {
|
|
@@ -1651,16 +2216,35 @@ export class RaribleToken_json {
|
|
|
1651
2216
|
}) as () => void;
|
|
1652
2217
|
},
|
|
1653
2218
|
/**
|
|
1654
|
-
* Watch
|
|
2219
|
+
* Watch MinterStatusChanged events
|
|
2220
|
+
* @param callback Function to call when event is emitted
|
|
2221
|
+
* @param filter Optional filter for indexed parameters
|
|
2222
|
+
* @returns Unwatch function to stop listening
|
|
2223
|
+
*/
|
|
2224
|
+
MinterStatusChanged: (callback: (event: { minter: `0x${string}`; status: boolean }) => void, filter?: { minter: `0x${string}`; status: boolean }) => {
|
|
2225
|
+
return this.publicClient.watchContractEvent({
|
|
2226
|
+
address: this.contractAddress,
|
|
2227
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
2228
|
+
eventName: 'MinterStatusChanged',
|
|
2229
|
+
args: filter,
|
|
2230
|
+
onLogs: (logs: any[]) => {
|
|
2231
|
+
logs.forEach((log: any) => {
|
|
2232
|
+
callback(log.args as any);
|
|
2233
|
+
});
|
|
2234
|
+
},
|
|
2235
|
+
}) as () => void;
|
|
2236
|
+
},
|
|
2237
|
+
/**
|
|
2238
|
+
* Watch OwnershipTransferred events
|
|
1655
2239
|
* @param callback Function to call when event is emitted
|
|
1656
2240
|
* @param filter Optional filter for indexed parameters
|
|
1657
2241
|
* @returns Unwatch function to stop listening
|
|
1658
2242
|
*/
|
|
1659
|
-
|
|
2243
|
+
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
|
|
1660
2244
|
return this.publicClient.watchContractEvent({
|
|
1661
2245
|
address: this.contractAddress,
|
|
1662
|
-
abi:
|
|
1663
|
-
eventName: '
|
|
2246
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
2247
|
+
eventName: 'OwnershipTransferred',
|
|
1664
2248
|
args: filter,
|
|
1665
2249
|
onLogs: (logs: any[]) => {
|
|
1666
2250
|
logs.forEach((log: any) => {
|
|
@@ -1669,16 +2253,54 @@ export class RaribleToken_json {
|
|
|
1669
2253
|
},
|
|
1670
2254
|
}) as () => void;
|
|
1671
2255
|
},
|
|
2256
|
+
/**
|
|
2257
|
+
* Watch RoyaltiesSet events
|
|
2258
|
+
* @param callback Function to call when event is emitted
|
|
2259
|
+
* @param filter Optional filter for indexed parameters
|
|
2260
|
+
* @returns Unwatch function to stop listening
|
|
2261
|
+
*/
|
|
2262
|
+
RoyaltiesSet: (callback: (event: { tokenId: bigint; royalties: LibPart_Part[] }) => void) => {
|
|
2263
|
+
return this.publicClient.watchContractEvent({
|
|
2264
|
+
address: this.contractAddress,
|
|
2265
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
2266
|
+
eventName: 'RoyaltiesSet',
|
|
2267
|
+
|
|
2268
|
+
onLogs: (logs: any[]) => {
|
|
2269
|
+
logs.forEach((log: any) => {
|
|
2270
|
+
callback(log.args as any);
|
|
2271
|
+
});
|
|
2272
|
+
},
|
|
2273
|
+
}) as () => void;
|
|
2274
|
+
},
|
|
2275
|
+
/**
|
|
2276
|
+
* Watch Supply events
|
|
2277
|
+
* @param callback Function to call when event is emitted
|
|
2278
|
+
* @param filter Optional filter for indexed parameters
|
|
2279
|
+
* @returns Unwatch function to stop listening
|
|
2280
|
+
*/
|
|
2281
|
+
Supply: (callback: (event: { tokenId: bigint; value: bigint }) => void) => {
|
|
2282
|
+
return this.publicClient.watchContractEvent({
|
|
2283
|
+
address: this.contractAddress,
|
|
2284
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
2285
|
+
eventName: 'Supply',
|
|
2286
|
+
|
|
2287
|
+
onLogs: (logs: any[]) => {
|
|
2288
|
+
logs.forEach((log: any) => {
|
|
2289
|
+
callback(log.args as any);
|
|
2290
|
+
});
|
|
2291
|
+
},
|
|
2292
|
+
}) as () => void;
|
|
2293
|
+
},
|
|
1672
2294
|
/**
|
|
1673
2295
|
* Watch TransferBatch events
|
|
1674
2296
|
* @param callback Function to call when event is emitted
|
|
1675
2297
|
* @param filter Optional filter for indexed parameters
|
|
1676
2298
|
* @returns Unwatch function to stop listening
|
|
1677
2299
|
*/
|
|
1678
|
-
TransferBatch: (callback: (event: {
|
|
2300
|
+
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
2301
|
return this.publicClient.watchContractEvent({
|
|
1680
2302
|
address: this.contractAddress,
|
|
1681
|
-
abi:
|
|
2303
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
1682
2304
|
eventName: 'TransferBatch',
|
|
1683
2305
|
args: filter,
|
|
1684
2306
|
onLogs: (logs: any[]) => {
|
|
@@ -1694,10 +2316,10 @@ export class RaribleToken_json {
|
|
|
1694
2316
|
* @param filter Optional filter for indexed parameters
|
|
1695
2317
|
* @returns Unwatch function to stop listening
|
|
1696
2318
|
*/
|
|
1697
|
-
TransferSingle: (callback: (event: {
|
|
2319
|
+
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
2320
|
return this.publicClient.watchContractEvent({
|
|
1699
2321
|
address: this.contractAddress,
|
|
1700
|
-
abi:
|
|
2322
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
1701
2323
|
eventName: 'TransferSingle',
|
|
1702
2324
|
args: filter,
|
|
1703
2325
|
onLogs: (logs: any[]) => {
|
|
@@ -1713,10 +2335,10 @@ export class RaribleToken_json {
|
|
|
1713
2335
|
* @param filter Optional filter for indexed parameters
|
|
1714
2336
|
* @returns Unwatch function to stop listening
|
|
1715
2337
|
*/
|
|
1716
|
-
URI: (callback: (event: {
|
|
2338
|
+
URI: (callback: (event: { id: bigint; value: string }) => void, filter?: { id: bigint }) => {
|
|
1717
2339
|
return this.publicClient.watchContractEvent({
|
|
1718
2340
|
address: this.contractAddress,
|
|
1719
|
-
abi:
|
|
2341
|
+
abi: ERC1155Rarible_jsonAbi,
|
|
1720
2342
|
eventName: 'URI',
|
|
1721
2343
|
args: filter,
|
|
1722
2344
|
onLogs: (logs: any[]) => {
|