@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
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.RaribleToken_json = exports.RaribleToken_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* RaribleToken_json ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.RaribleToken_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [
|
|
13
13
|
{
|
|
14
14
|
"internalType": "string",
|
|
15
|
-
"name": "
|
|
15
|
+
"name": "_name",
|
|
16
16
|
"type": "string"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"internalType": "string",
|
|
20
|
-
"name": "
|
|
20
|
+
"name": "_symbol",
|
|
21
21
|
"type": "string"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"internalType": "address",
|
|
25
|
-
"name": "
|
|
25
|
+
"name": "signer",
|
|
26
26
|
"type": "address"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
@@ -46,23 +46,23 @@ exports.MintableToken_jsonAbi = [
|
|
|
46
46
|
{
|
|
47
47
|
"indexed": true,
|
|
48
48
|
"internalType": "address",
|
|
49
|
-
"name": "
|
|
49
|
+
"name": "_owner",
|
|
50
50
|
"type": "address"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"indexed": true,
|
|
54
54
|
"internalType": "address",
|
|
55
|
-
"name": "
|
|
55
|
+
"name": "_operator",
|
|
56
56
|
"type": "address"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
"indexed":
|
|
60
|
-
"internalType": "
|
|
61
|
-
"name": "
|
|
62
|
-
"type": "
|
|
59
|
+
"indexed": false,
|
|
60
|
+
"internalType": "bool",
|
|
61
|
+
"name": "_approved",
|
|
62
|
+
"type": "bool"
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
|
-
"name": "
|
|
65
|
+
"name": "ApprovalForAll",
|
|
66
66
|
"type": "event"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
@@ -71,23 +71,42 @@ exports.MintableToken_jsonAbi = [
|
|
|
71
71
|
{
|
|
72
72
|
"indexed": true,
|
|
73
73
|
"internalType": "address",
|
|
74
|
-
"name": "
|
|
74
|
+
"name": "previousOwner",
|
|
75
75
|
"type": "address"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"indexed": true,
|
|
79
79
|
"internalType": "address",
|
|
80
|
-
"name": "
|
|
80
|
+
"name": "newOwner",
|
|
81
81
|
"type": "address"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"name": "OwnershipTransferred",
|
|
85
|
+
"type": "event"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"anonymous": false,
|
|
89
|
+
"inputs": [
|
|
90
|
+
{
|
|
91
|
+
"indexed": false,
|
|
92
|
+
"internalType": "uint256",
|
|
93
|
+
"name": "tokenId",
|
|
94
|
+
"type": "uint256"
|
|
82
95
|
},
|
|
83
96
|
{
|
|
84
97
|
"indexed": false,
|
|
85
|
-
"internalType": "
|
|
86
|
-
"name": "
|
|
87
|
-
"type": "
|
|
98
|
+
"internalType": "address[]",
|
|
99
|
+
"name": "recipients",
|
|
100
|
+
"type": "address[]"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"indexed": false,
|
|
104
|
+
"internalType": "uint256[]",
|
|
105
|
+
"name": "bps",
|
|
106
|
+
"type": "uint256[]"
|
|
88
107
|
}
|
|
89
108
|
],
|
|
90
|
-
"name": "
|
|
109
|
+
"name": "SecondarySaleFees",
|
|
91
110
|
"type": "event"
|
|
92
111
|
},
|
|
93
112
|
{
|
|
@@ -96,42 +115,61 @@ exports.MintableToken_jsonAbi = [
|
|
|
96
115
|
{
|
|
97
116
|
"indexed": true,
|
|
98
117
|
"internalType": "address",
|
|
99
|
-
"name": "
|
|
118
|
+
"name": "account",
|
|
100
119
|
"type": "address"
|
|
101
|
-
}
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"name": "SignerAdded",
|
|
123
|
+
"type": "event"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"anonymous": false,
|
|
127
|
+
"inputs": [
|
|
102
128
|
{
|
|
103
129
|
"indexed": true,
|
|
104
130
|
"internalType": "address",
|
|
105
|
-
"name": "
|
|
131
|
+
"name": "account",
|
|
106
132
|
"type": "address"
|
|
107
133
|
}
|
|
108
134
|
],
|
|
109
|
-
"name": "
|
|
135
|
+
"name": "SignerRemoved",
|
|
110
136
|
"type": "event"
|
|
111
137
|
},
|
|
112
138
|
{
|
|
113
139
|
"anonymous": false,
|
|
114
140
|
"inputs": [
|
|
115
141
|
{
|
|
116
|
-
"indexed":
|
|
117
|
-
"internalType": "
|
|
118
|
-
"name": "
|
|
119
|
-
"type": "
|
|
142
|
+
"indexed": true,
|
|
143
|
+
"internalType": "address",
|
|
144
|
+
"name": "_operator",
|
|
145
|
+
"type": "address"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"indexed": true,
|
|
149
|
+
"internalType": "address",
|
|
150
|
+
"name": "_from",
|
|
151
|
+
"type": "address"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"indexed": true,
|
|
155
|
+
"internalType": "address",
|
|
156
|
+
"name": "_to",
|
|
157
|
+
"type": "address"
|
|
120
158
|
},
|
|
121
159
|
{
|
|
122
160
|
"indexed": false,
|
|
123
|
-
"internalType": "
|
|
124
|
-
"name": "
|
|
125
|
-
"type": "
|
|
161
|
+
"internalType": "uint256[]",
|
|
162
|
+
"name": "_ids",
|
|
163
|
+
"type": "uint256[]"
|
|
126
164
|
},
|
|
127
165
|
{
|
|
128
166
|
"indexed": false,
|
|
129
167
|
"internalType": "uint256[]",
|
|
130
|
-
"name": "
|
|
168
|
+
"name": "_values",
|
|
131
169
|
"type": "uint256[]"
|
|
132
170
|
}
|
|
133
171
|
],
|
|
134
|
-
"name": "
|
|
172
|
+
"name": "TransferBatch",
|
|
135
173
|
"type": "event"
|
|
136
174
|
},
|
|
137
175
|
{
|
|
@@ -140,40 +178,66 @@ exports.MintableToken_jsonAbi = [
|
|
|
140
178
|
{
|
|
141
179
|
"indexed": true,
|
|
142
180
|
"internalType": "address",
|
|
143
|
-
"name": "
|
|
181
|
+
"name": "_operator",
|
|
144
182
|
"type": "address"
|
|
145
183
|
},
|
|
146
184
|
{
|
|
147
185
|
"indexed": true,
|
|
148
186
|
"internalType": "address",
|
|
149
|
-
"name": "
|
|
187
|
+
"name": "_from",
|
|
150
188
|
"type": "address"
|
|
151
189
|
},
|
|
152
190
|
{
|
|
153
191
|
"indexed": true,
|
|
192
|
+
"internalType": "address",
|
|
193
|
+
"name": "_to",
|
|
194
|
+
"type": "address"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"indexed": false,
|
|
154
198
|
"internalType": "uint256",
|
|
155
|
-
"name": "
|
|
199
|
+
"name": "_id",
|
|
200
|
+
"type": "uint256"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"indexed": false,
|
|
204
|
+
"internalType": "uint256",
|
|
205
|
+
"name": "_value",
|
|
156
206
|
"type": "uint256"
|
|
157
207
|
}
|
|
158
208
|
],
|
|
159
|
-
"name": "
|
|
209
|
+
"name": "TransferSingle",
|
|
160
210
|
"type": "event"
|
|
161
211
|
},
|
|
162
212
|
{
|
|
163
|
-
"
|
|
213
|
+
"anonymous": false,
|
|
164
214
|
"inputs": [
|
|
165
215
|
{
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
216
|
+
"indexed": false,
|
|
217
|
+
"internalType": "string",
|
|
218
|
+
"name": "_value",
|
|
219
|
+
"type": "string"
|
|
169
220
|
},
|
|
170
221
|
{
|
|
222
|
+
"indexed": true,
|
|
171
223
|
"internalType": "uint256",
|
|
172
|
-
"name": "
|
|
224
|
+
"name": "_id",
|
|
173
225
|
"type": "uint256"
|
|
174
226
|
}
|
|
175
227
|
],
|
|
176
|
-
"name": "
|
|
228
|
+
"name": "URI",
|
|
229
|
+
"type": "event"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"constant": false,
|
|
233
|
+
"inputs": [
|
|
234
|
+
{
|
|
235
|
+
"internalType": "address",
|
|
236
|
+
"name": "account",
|
|
237
|
+
"type": "address"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"name": "addSigner",
|
|
177
241
|
"outputs": [],
|
|
178
242
|
"payable": false,
|
|
179
243
|
"stateMutability": "nonpayable",
|
|
@@ -184,8 +248,13 @@ exports.MintableToken_jsonAbi = [
|
|
|
184
248
|
"inputs": [
|
|
185
249
|
{
|
|
186
250
|
"internalType": "address",
|
|
187
|
-
"name": "
|
|
251
|
+
"name": "_owner",
|
|
188
252
|
"type": "address"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"internalType": "uint256",
|
|
256
|
+
"name": "_id",
|
|
257
|
+
"type": "uint256"
|
|
189
258
|
}
|
|
190
259
|
],
|
|
191
260
|
"name": "balanceOf",
|
|
@@ -200,12 +269,48 @@ exports.MintableToken_jsonAbi = [
|
|
|
200
269
|
"stateMutability": "view",
|
|
201
270
|
"type": "function"
|
|
202
271
|
},
|
|
272
|
+
{
|
|
273
|
+
"constant": true,
|
|
274
|
+
"inputs": [
|
|
275
|
+
{
|
|
276
|
+
"internalType": "address[]",
|
|
277
|
+
"name": "_owners",
|
|
278
|
+
"type": "address[]"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"internalType": "uint256[]",
|
|
282
|
+
"name": "_ids",
|
|
283
|
+
"type": "uint256[]"
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"name": "balanceOfBatch",
|
|
287
|
+
"outputs": [
|
|
288
|
+
{
|
|
289
|
+
"internalType": "uint256[]",
|
|
290
|
+
"name": "",
|
|
291
|
+
"type": "uint256[]"
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"payable": false,
|
|
295
|
+
"stateMutability": "view",
|
|
296
|
+
"type": "function"
|
|
297
|
+
},
|
|
203
298
|
{
|
|
204
299
|
"constant": false,
|
|
205
300
|
"inputs": [
|
|
301
|
+
{
|
|
302
|
+
"internalType": "address",
|
|
303
|
+
"name": "_owner",
|
|
304
|
+
"type": "address"
|
|
305
|
+
},
|
|
206
306
|
{
|
|
207
307
|
"internalType": "uint256",
|
|
208
|
-
"name": "
|
|
308
|
+
"name": "_id",
|
|
309
|
+
"type": "uint256"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"internalType": "uint256",
|
|
313
|
+
"name": "_value",
|
|
209
314
|
"type": "uint256"
|
|
210
315
|
}
|
|
211
316
|
],
|
|
@@ -233,28 +338,18 @@ exports.MintableToken_jsonAbi = [
|
|
|
233
338
|
{
|
|
234
339
|
"constant": true,
|
|
235
340
|
"inputs": [
|
|
236
|
-
{
|
|
237
|
-
"internalType": "uint256",
|
|
238
|
-
"name": "",
|
|
239
|
-
"type": "uint256"
|
|
240
|
-
},
|
|
241
341
|
{
|
|
242
342
|
"internalType": "uint256",
|
|
243
343
|
"name": "",
|
|
244
344
|
"type": "uint256"
|
|
245
345
|
}
|
|
246
346
|
],
|
|
247
|
-
"name": "
|
|
347
|
+
"name": "creators",
|
|
248
348
|
"outputs": [
|
|
249
349
|
{
|
|
250
|
-
"internalType": "address
|
|
251
|
-
"name": "
|
|
350
|
+
"internalType": "address",
|
|
351
|
+
"name": "",
|
|
252
352
|
"type": "address"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"internalType": "uint256",
|
|
256
|
-
"name": "value",
|
|
257
|
-
"type": "uint256"
|
|
258
353
|
}
|
|
259
354
|
],
|
|
260
355
|
"payable": false,
|
|
@@ -266,16 +361,26 @@ exports.MintableToken_jsonAbi = [
|
|
|
266
361
|
"inputs": [
|
|
267
362
|
{
|
|
268
363
|
"internalType": "uint256",
|
|
269
|
-
"name": "
|
|
364
|
+
"name": "",
|
|
365
|
+
"type": "uint256"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"internalType": "uint256",
|
|
369
|
+
"name": "",
|
|
270
370
|
"type": "uint256"
|
|
271
371
|
}
|
|
272
372
|
],
|
|
273
|
-
"name": "
|
|
373
|
+
"name": "fees",
|
|
274
374
|
"outputs": [
|
|
275
375
|
{
|
|
276
|
-
"internalType": "address",
|
|
277
|
-
"name": "",
|
|
376
|
+
"internalType": "address payable",
|
|
377
|
+
"name": "recipient",
|
|
278
378
|
"type": "address"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"internalType": "uint256",
|
|
382
|
+
"name": "value",
|
|
383
|
+
"type": "uint256"
|
|
279
384
|
}
|
|
280
385
|
],
|
|
281
386
|
"payable": false,
|
|
@@ -329,12 +434,12 @@ exports.MintableToken_jsonAbi = [
|
|
|
329
434
|
"inputs": [
|
|
330
435
|
{
|
|
331
436
|
"internalType": "address",
|
|
332
|
-
"name": "
|
|
437
|
+
"name": "_owner",
|
|
333
438
|
"type": "address"
|
|
334
439
|
},
|
|
335
440
|
{
|
|
336
441
|
"internalType": "address",
|
|
337
|
-
"name": "
|
|
442
|
+
"name": "_operator",
|
|
338
443
|
"type": "address"
|
|
339
444
|
}
|
|
340
445
|
],
|
|
@@ -365,12 +470,33 @@ exports.MintableToken_jsonAbi = [
|
|
|
365
470
|
"stateMutability": "view",
|
|
366
471
|
"type": "function"
|
|
367
472
|
},
|
|
473
|
+
{
|
|
474
|
+
"constant": true,
|
|
475
|
+
"inputs": [
|
|
476
|
+
{
|
|
477
|
+
"internalType": "address",
|
|
478
|
+
"name": "account",
|
|
479
|
+
"type": "address"
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
"name": "isSigner",
|
|
483
|
+
"outputs": [
|
|
484
|
+
{
|
|
485
|
+
"internalType": "bool",
|
|
486
|
+
"name": "",
|
|
487
|
+
"type": "bool"
|
|
488
|
+
}
|
|
489
|
+
],
|
|
490
|
+
"payable": false,
|
|
491
|
+
"stateMutability": "view",
|
|
492
|
+
"type": "function"
|
|
493
|
+
},
|
|
368
494
|
{
|
|
369
495
|
"constant": false,
|
|
370
496
|
"inputs": [
|
|
371
497
|
{
|
|
372
498
|
"internalType": "uint256",
|
|
373
|
-
"name": "
|
|
499
|
+
"name": "id",
|
|
374
500
|
"type": "uint256"
|
|
375
501
|
},
|
|
376
502
|
{
|
|
@@ -401,13 +527,18 @@ exports.MintableToken_jsonAbi = [
|
|
|
401
527
|
"type": "uint256"
|
|
402
528
|
}
|
|
403
529
|
],
|
|
404
|
-
"internalType": "struct
|
|
405
|
-
"name": "
|
|
530
|
+
"internalType": "struct ERC1155Base.Fee[]",
|
|
531
|
+
"name": "fees",
|
|
406
532
|
"type": "tuple[]"
|
|
407
533
|
},
|
|
534
|
+
{
|
|
535
|
+
"internalType": "uint256",
|
|
536
|
+
"name": "supply",
|
|
537
|
+
"type": "uint256"
|
|
538
|
+
},
|
|
408
539
|
{
|
|
409
540
|
"internalType": "string",
|
|
410
|
-
"name": "
|
|
541
|
+
"name": "uri",
|
|
411
542
|
"type": "string"
|
|
412
543
|
}
|
|
413
544
|
],
|
|
@@ -448,24 +579,18 @@ exports.MintableToken_jsonAbi = [
|
|
|
448
579
|
"type": "function"
|
|
449
580
|
},
|
|
450
581
|
{
|
|
451
|
-
"constant":
|
|
582
|
+
"constant": false,
|
|
452
583
|
"inputs": [
|
|
453
|
-
{
|
|
454
|
-
"internalType": "uint256",
|
|
455
|
-
"name": "tokenId",
|
|
456
|
-
"type": "uint256"
|
|
457
|
-
}
|
|
458
|
-
],
|
|
459
|
-
"name": "ownerOf",
|
|
460
|
-
"outputs": [
|
|
461
584
|
{
|
|
462
585
|
"internalType": "address",
|
|
463
|
-
"name": "",
|
|
586
|
+
"name": "account",
|
|
464
587
|
"type": "address"
|
|
465
588
|
}
|
|
466
589
|
],
|
|
590
|
+
"name": "removeSigner",
|
|
591
|
+
"outputs": [],
|
|
467
592
|
"payable": false,
|
|
468
|
-
"stateMutability": "
|
|
593
|
+
"stateMutability": "nonpayable",
|
|
469
594
|
"type": "function"
|
|
470
595
|
},
|
|
471
596
|
{
|
|
@@ -477,26 +602,45 @@ exports.MintableToken_jsonAbi = [
|
|
|
477
602
|
"stateMutability": "nonpayable",
|
|
478
603
|
"type": "function"
|
|
479
604
|
},
|
|
605
|
+
{
|
|
606
|
+
"constant": false,
|
|
607
|
+
"inputs": [],
|
|
608
|
+
"name": "renounceSigner",
|
|
609
|
+
"outputs": [],
|
|
610
|
+
"payable": false,
|
|
611
|
+
"stateMutability": "nonpayable",
|
|
612
|
+
"type": "function"
|
|
613
|
+
},
|
|
480
614
|
{
|
|
481
615
|
"constant": false,
|
|
482
616
|
"inputs": [
|
|
483
617
|
{
|
|
484
618
|
"internalType": "address",
|
|
485
|
-
"name": "
|
|
619
|
+
"name": "_from",
|
|
486
620
|
"type": "address"
|
|
487
621
|
},
|
|
488
622
|
{
|
|
489
623
|
"internalType": "address",
|
|
490
|
-
"name": "
|
|
624
|
+
"name": "_to",
|
|
491
625
|
"type": "address"
|
|
492
626
|
},
|
|
493
627
|
{
|
|
494
|
-
"internalType": "uint256",
|
|
495
|
-
"name": "
|
|
496
|
-
"type": "uint256"
|
|
628
|
+
"internalType": "uint256[]",
|
|
629
|
+
"name": "_ids",
|
|
630
|
+
"type": "uint256[]"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"internalType": "uint256[]",
|
|
634
|
+
"name": "_values",
|
|
635
|
+
"type": "uint256[]"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"internalType": "bytes",
|
|
639
|
+
"name": "_data",
|
|
640
|
+
"type": "bytes"
|
|
497
641
|
}
|
|
498
642
|
],
|
|
499
|
-
"name": "
|
|
643
|
+
"name": "safeBatchTransferFrom",
|
|
500
644
|
"outputs": [],
|
|
501
645
|
"payable": false,
|
|
502
646
|
"stateMutability": "nonpayable",
|
|
@@ -507,17 +651,22 @@ exports.MintableToken_jsonAbi = [
|
|
|
507
651
|
"inputs": [
|
|
508
652
|
{
|
|
509
653
|
"internalType": "address",
|
|
510
|
-
"name": "
|
|
654
|
+
"name": "_from",
|
|
511
655
|
"type": "address"
|
|
512
656
|
},
|
|
513
657
|
{
|
|
514
658
|
"internalType": "address",
|
|
515
|
-
"name": "
|
|
659
|
+
"name": "_to",
|
|
516
660
|
"type": "address"
|
|
517
661
|
},
|
|
518
662
|
{
|
|
519
663
|
"internalType": "uint256",
|
|
520
|
-
"name": "
|
|
664
|
+
"name": "_id",
|
|
665
|
+
"type": "uint256"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"internalType": "uint256",
|
|
669
|
+
"name": "_value",
|
|
521
670
|
"type": "uint256"
|
|
522
671
|
},
|
|
523
672
|
{
|
|
@@ -537,12 +686,12 @@ exports.MintableToken_jsonAbi = [
|
|
|
537
686
|
"inputs": [
|
|
538
687
|
{
|
|
539
688
|
"internalType": "address",
|
|
540
|
-
"name": "
|
|
689
|
+
"name": "_operator",
|
|
541
690
|
"type": "address"
|
|
542
691
|
},
|
|
543
692
|
{
|
|
544
693
|
"internalType": "bool",
|
|
545
|
-
"name": "
|
|
694
|
+
"name": "_approved",
|
|
546
695
|
"type": "bool"
|
|
547
696
|
}
|
|
548
697
|
],
|
|
@@ -620,19 +769,13 @@ exports.MintableToken_jsonAbi = [
|
|
|
620
769
|
},
|
|
621
770
|
{
|
|
622
771
|
"constant": true,
|
|
623
|
-
"inputs": [
|
|
624
|
-
|
|
625
|
-
"internalType": "uint256",
|
|
626
|
-
"name": "index",
|
|
627
|
-
"type": "uint256"
|
|
628
|
-
}
|
|
629
|
-
],
|
|
630
|
-
"name": "tokenByIndex",
|
|
772
|
+
"inputs": [],
|
|
773
|
+
"name": "tokenURIPrefix",
|
|
631
774
|
"outputs": [
|
|
632
775
|
{
|
|
633
|
-
"internalType": "
|
|
776
|
+
"internalType": "string",
|
|
634
777
|
"name": "",
|
|
635
|
-
"type": "
|
|
778
|
+
"type": "string"
|
|
636
779
|
}
|
|
637
780
|
],
|
|
638
781
|
"payable": false,
|
|
@@ -640,29 +783,18 @@ exports.MintableToken_jsonAbi = [
|
|
|
640
783
|
"type": "function"
|
|
641
784
|
},
|
|
642
785
|
{
|
|
643
|
-
"constant":
|
|
786
|
+
"constant": false,
|
|
644
787
|
"inputs": [
|
|
645
788
|
{
|
|
646
789
|
"internalType": "address",
|
|
647
|
-
"name": "
|
|
790
|
+
"name": "newOwner",
|
|
648
791
|
"type": "address"
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
"internalType": "uint256",
|
|
652
|
-
"name": "index",
|
|
653
|
-
"type": "uint256"
|
|
654
|
-
}
|
|
655
|
-
],
|
|
656
|
-
"name": "tokenOfOwnerByIndex",
|
|
657
|
-
"outputs": [
|
|
658
|
-
{
|
|
659
|
-
"internalType": "uint256",
|
|
660
|
-
"name": "",
|
|
661
|
-
"type": "uint256"
|
|
662
792
|
}
|
|
663
793
|
],
|
|
794
|
+
"name": "transferOwnership",
|
|
795
|
+
"outputs": [],
|
|
664
796
|
"payable": false,
|
|
665
|
-
"stateMutability": "
|
|
797
|
+
"stateMutability": "nonpayable",
|
|
666
798
|
"type": "function"
|
|
667
799
|
},
|
|
668
800
|
{
|
|
@@ -670,26 +802,11 @@ exports.MintableToken_jsonAbi = [
|
|
|
670
802
|
"inputs": [
|
|
671
803
|
{
|
|
672
804
|
"internalType": "uint256",
|
|
673
|
-
"name": "
|
|
805
|
+
"name": "_id",
|
|
674
806
|
"type": "uint256"
|
|
675
807
|
}
|
|
676
808
|
],
|
|
677
|
-
"name": "
|
|
678
|
-
"outputs": [
|
|
679
|
-
{
|
|
680
|
-
"internalType": "string",
|
|
681
|
-
"name": "",
|
|
682
|
-
"type": "string"
|
|
683
|
-
}
|
|
684
|
-
],
|
|
685
|
-
"payable": false,
|
|
686
|
-
"stateMutability": "view",
|
|
687
|
-
"type": "function"
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
"constant": true,
|
|
691
|
-
"inputs": [],
|
|
692
|
-
"name": "tokenURIPrefix",
|
|
809
|
+
"name": "uri",
|
|
693
810
|
"outputs": [
|
|
694
811
|
{
|
|
695
812
|
"internalType": "string",
|
|
@@ -700,65 +817,10 @@ exports.MintableToken_jsonAbi = [
|
|
|
700
817
|
"payable": false,
|
|
701
818
|
"stateMutability": "view",
|
|
702
819
|
"type": "function"
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
"constant": true,
|
|
706
|
-
"inputs": [],
|
|
707
|
-
"name": "totalSupply",
|
|
708
|
-
"outputs": [
|
|
709
|
-
{
|
|
710
|
-
"internalType": "uint256",
|
|
711
|
-
"name": "",
|
|
712
|
-
"type": "uint256"
|
|
713
|
-
}
|
|
714
|
-
],
|
|
715
|
-
"payable": false,
|
|
716
|
-
"stateMutability": "view",
|
|
717
|
-
"type": "function"
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
"constant": false,
|
|
721
|
-
"inputs": [
|
|
722
|
-
{
|
|
723
|
-
"internalType": "address",
|
|
724
|
-
"name": "from",
|
|
725
|
-
"type": "address"
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
"internalType": "address",
|
|
729
|
-
"name": "to",
|
|
730
|
-
"type": "address"
|
|
731
|
-
},
|
|
732
|
-
{
|
|
733
|
-
"internalType": "uint256",
|
|
734
|
-
"name": "tokenId",
|
|
735
|
-
"type": "uint256"
|
|
736
|
-
}
|
|
737
|
-
],
|
|
738
|
-
"name": "transferFrom",
|
|
739
|
-
"outputs": [],
|
|
740
|
-
"payable": false,
|
|
741
|
-
"stateMutability": "nonpayable",
|
|
742
|
-
"type": "function"
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
"constant": false,
|
|
746
|
-
"inputs": [
|
|
747
|
-
{
|
|
748
|
-
"internalType": "address",
|
|
749
|
-
"name": "newOwner",
|
|
750
|
-
"type": "address"
|
|
751
|
-
}
|
|
752
|
-
],
|
|
753
|
-
"name": "transferOwnership",
|
|
754
|
-
"outputs": [],
|
|
755
|
-
"payable": false,
|
|
756
|
-
"stateMutability": "nonpayable",
|
|
757
|
-
"type": "function"
|
|
758
820
|
}
|
|
759
821
|
];
|
|
760
822
|
/**
|
|
761
|
-
*
|
|
823
|
+
* RaribleToken_json Contract Class
|
|
762
824
|
*
|
|
763
825
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
764
826
|
*
|
|
@@ -766,12 +828,12 @@ exports.MintableToken_jsonAbi = [
|
|
|
766
828
|
* ```typescript
|
|
767
829
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
768
830
|
* import { mainnet } from 'viem/chains';
|
|
769
|
-
* import {
|
|
831
|
+
* import { RaribleToken_json } from 'RaribleToken_json';
|
|
770
832
|
*
|
|
771
833
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
772
834
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
773
835
|
*
|
|
774
|
-
* const contract = new
|
|
836
|
+
* const contract = new RaribleToken_json('0x...', { publicClient, walletClient });
|
|
775
837
|
*
|
|
776
838
|
* // Read functions
|
|
777
839
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -789,13 +851,13 @@ exports.MintableToken_jsonAbi = [
|
|
|
789
851
|
* });
|
|
790
852
|
* ```
|
|
791
853
|
*/
|
|
792
|
-
class
|
|
854
|
+
class RaribleToken_json {
|
|
793
855
|
constructor(address, clients) {
|
|
794
856
|
this.contractAddress = address;
|
|
795
857
|
this.publicClient = clients.publicClient;
|
|
796
858
|
this.contract = (0, viem_1.getContract)({
|
|
797
859
|
address,
|
|
798
|
-
abi: exports.
|
|
860
|
+
abi: exports.RaribleToken_jsonAbi,
|
|
799
861
|
client: {
|
|
800
862
|
public: clients.publicClient,
|
|
801
863
|
wallet: clients.walletClient,
|
|
@@ -818,8 +880,15 @@ class MintableToken_json {
|
|
|
818
880
|
* balanceOf
|
|
819
881
|
* view
|
|
820
882
|
*/
|
|
821
|
-
async balanceOf(
|
|
822
|
-
return this.contract.read.balanceOf([
|
|
883
|
+
async balanceOf(_owner, _id) {
|
|
884
|
+
return this.contract.read.balanceOf([_owner, _id]);
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* balanceOfBatch
|
|
888
|
+
* view
|
|
889
|
+
*/
|
|
890
|
+
async balanceOfBatch(_owners, _ids) {
|
|
891
|
+
return this.contract.read.balanceOfBatch([_owners, _ids]);
|
|
823
892
|
}
|
|
824
893
|
/**
|
|
825
894
|
* contractURI
|
|
@@ -829,18 +898,18 @@ class MintableToken_json {
|
|
|
829
898
|
return this.contract.read.contractURI();
|
|
830
899
|
}
|
|
831
900
|
/**
|
|
832
|
-
*
|
|
901
|
+
* creators
|
|
833
902
|
* view
|
|
834
903
|
*/
|
|
835
|
-
async
|
|
836
|
-
return this.contract.read.
|
|
904
|
+
async creators(arg0) {
|
|
905
|
+
return this.contract.read.creators([arg0]);
|
|
837
906
|
}
|
|
838
907
|
/**
|
|
839
|
-
*
|
|
908
|
+
* fees
|
|
840
909
|
* view
|
|
841
910
|
*/
|
|
842
|
-
async
|
|
843
|
-
return this.contract.read.
|
|
911
|
+
async fees(arg0, arg1) {
|
|
912
|
+
return this.contract.read.fees([arg0, arg1]);
|
|
844
913
|
}
|
|
845
914
|
/**
|
|
846
915
|
* getFeeBps
|
|
@@ -860,8 +929,8 @@ class MintableToken_json {
|
|
|
860
929
|
* isApprovedForAll
|
|
861
930
|
* view
|
|
862
931
|
*/
|
|
863
|
-
async isApprovedForAll(
|
|
864
|
-
return this.contract.read.isApprovedForAll([
|
|
932
|
+
async isApprovedForAll(_owner, _operator) {
|
|
933
|
+
return this.contract.read.isApprovedForAll([_owner, _operator]);
|
|
865
934
|
}
|
|
866
935
|
/**
|
|
867
936
|
* isOwner
|
|
@@ -870,6 +939,13 @@ class MintableToken_json {
|
|
|
870
939
|
async isOwner() {
|
|
871
940
|
return this.contract.read.isOwner();
|
|
872
941
|
}
|
|
942
|
+
/**
|
|
943
|
+
* isSigner
|
|
944
|
+
* view
|
|
945
|
+
*/
|
|
946
|
+
async isSigner(account) {
|
|
947
|
+
return this.contract.read.isSigner([account]);
|
|
948
|
+
}
|
|
873
949
|
/**
|
|
874
950
|
* name
|
|
875
951
|
* view
|
|
@@ -884,13 +960,6 @@ class MintableToken_json {
|
|
|
884
960
|
async owner() {
|
|
885
961
|
return this.contract.read.owner();
|
|
886
962
|
}
|
|
887
|
-
/**
|
|
888
|
-
* ownerOf
|
|
889
|
-
* view
|
|
890
|
-
*/
|
|
891
|
-
async ownerOf(tokenId) {
|
|
892
|
-
return this.contract.read.ownerOf([tokenId]);
|
|
893
|
-
}
|
|
894
963
|
/**
|
|
895
964
|
* supportsInterface
|
|
896
965
|
* view
|
|
@@ -905,27 +974,6 @@ class MintableToken_json {
|
|
|
905
974
|
async symbol() {
|
|
906
975
|
return this.contract.read.symbol();
|
|
907
976
|
}
|
|
908
|
-
/**
|
|
909
|
-
* tokenByIndex
|
|
910
|
-
* view
|
|
911
|
-
*/
|
|
912
|
-
async tokenByIndex(index) {
|
|
913
|
-
return this.contract.read.tokenByIndex([index]);
|
|
914
|
-
}
|
|
915
|
-
/**
|
|
916
|
-
* tokenOfOwnerByIndex
|
|
917
|
-
* view
|
|
918
|
-
*/
|
|
919
|
-
async tokenOfOwnerByIndex(owner, index) {
|
|
920
|
-
return this.contract.read.tokenOfOwnerByIndex([owner, index]);
|
|
921
|
-
}
|
|
922
|
-
/**
|
|
923
|
-
* tokenURI
|
|
924
|
-
* view
|
|
925
|
-
*/
|
|
926
|
-
async tokenURI(tokenId) {
|
|
927
|
-
return this.contract.read.tokenURI([tokenId]);
|
|
928
|
-
}
|
|
929
977
|
/**
|
|
930
978
|
* tokenURIPrefix
|
|
931
979
|
* view
|
|
@@ -934,44 +982,55 @@ class MintableToken_json {
|
|
|
934
982
|
return this.contract.read.tokenURIPrefix();
|
|
935
983
|
}
|
|
936
984
|
/**
|
|
937
|
-
*
|
|
985
|
+
* uri
|
|
938
986
|
* view
|
|
939
987
|
*/
|
|
940
|
-
async
|
|
941
|
-
return this.contract.read.
|
|
988
|
+
async uri(_id) {
|
|
989
|
+
return this.contract.read.uri([_id]);
|
|
942
990
|
}
|
|
943
991
|
/**
|
|
944
|
-
*
|
|
992
|
+
* addSigner
|
|
945
993
|
* nonpayable
|
|
946
994
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
947
995
|
*/
|
|
948
|
-
async
|
|
996
|
+
async addSigner(account, options) {
|
|
949
997
|
if (!this.contract.write) {
|
|
950
998
|
throw new Error('Wallet client is required for write operations');
|
|
951
999
|
}
|
|
952
|
-
return this.contract.write.
|
|
1000
|
+
return this.contract.write.addSigner([account], options);
|
|
953
1001
|
}
|
|
954
1002
|
/**
|
|
955
1003
|
* burn
|
|
956
1004
|
* nonpayable
|
|
957
1005
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
958
1006
|
*/
|
|
959
|
-
async burn(
|
|
1007
|
+
async burn(_owner, _id, _value, options) {
|
|
960
1008
|
if (!this.contract.write) {
|
|
961
1009
|
throw new Error('Wallet client is required for write operations');
|
|
962
1010
|
}
|
|
963
|
-
return this.contract.write.burn([
|
|
1011
|
+
return this.contract.write.burn([_owner, _id, _value], options);
|
|
964
1012
|
}
|
|
965
1013
|
/**
|
|
966
1014
|
* mint
|
|
967
1015
|
* nonpayable
|
|
968
1016
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
969
1017
|
*/
|
|
970
|
-
async mint(
|
|
1018
|
+
async mint(id, v, r, s, fees, supply, uri, options) {
|
|
971
1019
|
if (!this.contract.write) {
|
|
972
1020
|
throw new Error('Wallet client is required for write operations');
|
|
973
1021
|
}
|
|
974
|
-
return this.contract.write.mint([
|
|
1022
|
+
return this.contract.write.mint([id, v, r, s, fees, supply, uri], options);
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
* removeSigner
|
|
1026
|
+
* nonpayable
|
|
1027
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1028
|
+
*/
|
|
1029
|
+
async removeSigner(account, options) {
|
|
1030
|
+
if (!this.contract.write) {
|
|
1031
|
+
throw new Error('Wallet client is required for write operations');
|
|
1032
|
+
}
|
|
1033
|
+
return this.contract.write.removeSigner([account], options);
|
|
975
1034
|
}
|
|
976
1035
|
/**
|
|
977
1036
|
* renounceOwnership
|
|
@@ -984,55 +1043,71 @@ class MintableToken_json {
|
|
|
984
1043
|
}
|
|
985
1044
|
return this.contract.write.renounceOwnership(options);
|
|
986
1045
|
}
|
|
987
|
-
|
|
1046
|
+
/**
|
|
1047
|
+
* renounceSigner
|
|
1048
|
+
* nonpayable
|
|
1049
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1050
|
+
*/
|
|
1051
|
+
async renounceSigner(options) {
|
|
988
1052
|
if (!this.contract.write) {
|
|
989
1053
|
throw new Error('Wallet client is required for write operations');
|
|
990
1054
|
}
|
|
991
|
-
return this.contract.write.
|
|
1055
|
+
return this.contract.write.renounceSigner(options);
|
|
992
1056
|
}
|
|
993
1057
|
/**
|
|
994
|
-
*
|
|
1058
|
+
* safeBatchTransferFrom
|
|
995
1059
|
* nonpayable
|
|
996
1060
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
997
1061
|
*/
|
|
998
|
-
async
|
|
1062
|
+
async safeBatchTransferFrom(_from, _to, _ids, _values, _data, options) {
|
|
999
1063
|
if (!this.contract.write) {
|
|
1000
1064
|
throw new Error('Wallet client is required for write operations');
|
|
1001
1065
|
}
|
|
1002
|
-
return this.contract.write.
|
|
1066
|
+
return this.contract.write.safeBatchTransferFrom([_from, _to, _ids, _values, _data], options);
|
|
1003
1067
|
}
|
|
1004
1068
|
/**
|
|
1005
|
-
*
|
|
1069
|
+
* safeTransferFrom
|
|
1006
1070
|
* nonpayable
|
|
1007
1071
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1008
1072
|
*/
|
|
1009
|
-
async
|
|
1073
|
+
async safeTransferFrom(_from, _to, _id, _value, _data, options) {
|
|
1010
1074
|
if (!this.contract.write) {
|
|
1011
1075
|
throw new Error('Wallet client is required for write operations');
|
|
1012
1076
|
}
|
|
1013
|
-
return this.contract.write.
|
|
1077
|
+
return this.contract.write.safeTransferFrom([_from, _to, _id, _value, _data], options);
|
|
1014
1078
|
}
|
|
1015
1079
|
/**
|
|
1016
|
-
*
|
|
1080
|
+
* setApprovalForAll
|
|
1017
1081
|
* nonpayable
|
|
1018
1082
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1019
1083
|
*/
|
|
1020
|
-
async
|
|
1084
|
+
async setApprovalForAll(_operator, _approved, options) {
|
|
1021
1085
|
if (!this.contract.write) {
|
|
1022
1086
|
throw new Error('Wallet client is required for write operations');
|
|
1023
1087
|
}
|
|
1024
|
-
return this.contract.write.
|
|
1088
|
+
return this.contract.write.setApprovalForAll([_operator, _approved], options);
|
|
1089
|
+
}
|
|
1090
|
+
/**
|
|
1091
|
+
* setContractURI
|
|
1092
|
+
* nonpayable
|
|
1093
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1094
|
+
*/
|
|
1095
|
+
async setContractURI(contractURI, options) {
|
|
1096
|
+
if (!this.contract.write) {
|
|
1097
|
+
throw new Error('Wallet client is required for write operations');
|
|
1098
|
+
}
|
|
1099
|
+
return this.contract.write.setContractURI([contractURI], options);
|
|
1025
1100
|
}
|
|
1026
1101
|
/**
|
|
1027
|
-
*
|
|
1102
|
+
* setTokenURIPrefix
|
|
1028
1103
|
* nonpayable
|
|
1029
1104
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1030
1105
|
*/
|
|
1031
|
-
async
|
|
1106
|
+
async setTokenURIPrefix(tokenURIPrefix, options) {
|
|
1032
1107
|
if (!this.contract.write) {
|
|
1033
1108
|
throw new Error('Wallet client is required for write operations');
|
|
1034
1109
|
}
|
|
1035
|
-
return this.contract.write.
|
|
1110
|
+
return this.contract.write.setTokenURIPrefix([tokenURIPrefix], options);
|
|
1036
1111
|
}
|
|
1037
1112
|
/**
|
|
1038
1113
|
* transferOwnership
|
|
@@ -1060,28 +1135,36 @@ class MintableToken_json {
|
|
|
1060
1135
|
}
|
|
1061
1136
|
return {
|
|
1062
1137
|
/**
|
|
1063
|
-
* Simulate
|
|
1138
|
+
* Simulate addSigner
|
|
1064
1139
|
* Returns gas estimate and result without sending transaction
|
|
1065
1140
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1066
1141
|
*/
|
|
1067
|
-
async
|
|
1068
|
-
return contract.simulate.
|
|
1142
|
+
async addSigner(account, options) {
|
|
1143
|
+
return contract.simulate.addSigner([account], options);
|
|
1069
1144
|
},
|
|
1070
1145
|
/**
|
|
1071
1146
|
* Simulate burn
|
|
1072
1147
|
* Returns gas estimate and result without sending transaction
|
|
1073
1148
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1074
1149
|
*/
|
|
1075
|
-
async burn(
|
|
1076
|
-
return contract.simulate.burn([
|
|
1150
|
+
async burn(_owner, _id, _value, options) {
|
|
1151
|
+
return contract.simulate.burn([_owner, _id, _value], options);
|
|
1077
1152
|
},
|
|
1078
1153
|
/**
|
|
1079
1154
|
* Simulate mint
|
|
1080
1155
|
* Returns gas estimate and result without sending transaction
|
|
1081
1156
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1082
1157
|
*/
|
|
1083
|
-
async mint(
|
|
1084
|
-
return contract.simulate.mint([
|
|
1158
|
+
async mint(id, v, r, s, fees, supply, uri, options) {
|
|
1159
|
+
return contract.simulate.mint([id, v, r, s, fees, supply, uri], options);
|
|
1160
|
+
},
|
|
1161
|
+
/**
|
|
1162
|
+
* Simulate removeSigner
|
|
1163
|
+
* Returns gas estimate and result without sending transaction
|
|
1164
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1165
|
+
*/
|
|
1166
|
+
async removeSigner(account, options) {
|
|
1167
|
+
return contract.simulate.removeSigner([account], options);
|
|
1085
1168
|
},
|
|
1086
1169
|
/**
|
|
1087
1170
|
* Simulate renounceOwnership
|
|
@@ -1091,22 +1174,37 @@ class MintableToken_json {
|
|
|
1091
1174
|
async renounceOwnership(options) {
|
|
1092
1175
|
return contract.simulate.renounceOwnership(options);
|
|
1093
1176
|
},
|
|
1177
|
+
/**
|
|
1178
|
+
* Simulate renounceSigner
|
|
1179
|
+
* Returns gas estimate and result without sending transaction
|
|
1180
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1181
|
+
*/
|
|
1182
|
+
async renounceSigner(options) {
|
|
1183
|
+
return contract.simulate.renounceSigner(options);
|
|
1184
|
+
},
|
|
1185
|
+
/**
|
|
1186
|
+
* Simulate safeBatchTransferFrom
|
|
1187
|
+
* Returns gas estimate and result without sending transaction
|
|
1188
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1189
|
+
*/
|
|
1190
|
+
async safeBatchTransferFrom(_from, _to, _ids, _values, _data, options) {
|
|
1191
|
+
return contract.simulate.safeBatchTransferFrom([_from, _to, _ids, _values, _data], options);
|
|
1192
|
+
},
|
|
1094
1193
|
/**
|
|
1095
1194
|
* Simulate safeTransferFrom
|
|
1096
1195
|
* Returns gas estimate and result without sending transaction
|
|
1097
|
-
* Supports multiple overloads: (address, address, uint256), (address, address, uint256, bytes)
|
|
1098
1196
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1099
1197
|
*/
|
|
1100
|
-
async safeTransferFrom(
|
|
1101
|
-
return contract.simulate.safeTransferFrom(
|
|
1198
|
+
async safeTransferFrom(_from, _to, _id, _value, _data, options) {
|
|
1199
|
+
return contract.simulate.safeTransferFrom([_from, _to, _id, _value, _data], options);
|
|
1102
1200
|
},
|
|
1103
1201
|
/**
|
|
1104
1202
|
* Simulate setApprovalForAll
|
|
1105
1203
|
* Returns gas estimate and result without sending transaction
|
|
1106
1204
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1107
1205
|
*/
|
|
1108
|
-
async setApprovalForAll(
|
|
1109
|
-
return contract.simulate.setApprovalForAll([
|
|
1206
|
+
async setApprovalForAll(_operator, _approved, options) {
|
|
1207
|
+
return contract.simulate.setApprovalForAll([_operator, _approved], options);
|
|
1110
1208
|
},
|
|
1111
1209
|
/**
|
|
1112
1210
|
* Simulate setContractURI
|
|
@@ -1124,14 +1222,6 @@ class MintableToken_json {
|
|
|
1124
1222
|
async setTokenURIPrefix(tokenURIPrefix, options) {
|
|
1125
1223
|
return contract.simulate.setTokenURIPrefix([tokenURIPrefix], options);
|
|
1126
1224
|
},
|
|
1127
|
-
/**
|
|
1128
|
-
* Simulate transferFrom
|
|
1129
|
-
* Returns gas estimate and result without sending transaction
|
|
1130
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1131
|
-
*/
|
|
1132
|
-
async transferFrom(from, to, tokenId, options) {
|
|
1133
|
-
return contract.simulate.transferFrom([from, to, tokenId], options);
|
|
1134
|
-
},
|
|
1135
1225
|
/**
|
|
1136
1226
|
* Simulate transferOwnership
|
|
1137
1227
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1157,16 +1247,35 @@ class MintableToken_json {
|
|
|
1157
1247
|
get watch() {
|
|
1158
1248
|
return {
|
|
1159
1249
|
/**
|
|
1160
|
-
* Watch
|
|
1250
|
+
* Watch ApprovalForAll events
|
|
1251
|
+
* @param callback Function to call when event is emitted
|
|
1252
|
+
* @param filter Optional filter for indexed parameters
|
|
1253
|
+
* @returns Unwatch function to stop listening
|
|
1254
|
+
*/
|
|
1255
|
+
ApprovalForAll: (callback, filter) => {
|
|
1256
|
+
return this.publicClient.watchContractEvent({
|
|
1257
|
+
address: this.contractAddress,
|
|
1258
|
+
abi: exports.RaribleToken_jsonAbi,
|
|
1259
|
+
eventName: 'ApprovalForAll',
|
|
1260
|
+
args: filter,
|
|
1261
|
+
onLogs: (logs) => {
|
|
1262
|
+
logs.forEach((log) => {
|
|
1263
|
+
callback(log.args);
|
|
1264
|
+
});
|
|
1265
|
+
},
|
|
1266
|
+
});
|
|
1267
|
+
},
|
|
1268
|
+
/**
|
|
1269
|
+
* Watch OwnershipTransferred events
|
|
1161
1270
|
* @param callback Function to call when event is emitted
|
|
1162
1271
|
* @param filter Optional filter for indexed parameters
|
|
1163
1272
|
* @returns Unwatch function to stop listening
|
|
1164
1273
|
*/
|
|
1165
|
-
|
|
1274
|
+
OwnershipTransferred: (callback, filter) => {
|
|
1166
1275
|
return this.publicClient.watchContractEvent({
|
|
1167
1276
|
address: this.contractAddress,
|
|
1168
|
-
abi: exports.
|
|
1169
|
-
eventName: '
|
|
1277
|
+
abi: exports.RaribleToken_jsonAbi,
|
|
1278
|
+
eventName: 'OwnershipTransferred',
|
|
1170
1279
|
args: filter,
|
|
1171
1280
|
onLogs: (logs) => {
|
|
1172
1281
|
logs.forEach((log) => {
|
|
@@ -1176,16 +1285,34 @@ class MintableToken_json {
|
|
|
1176
1285
|
});
|
|
1177
1286
|
},
|
|
1178
1287
|
/**
|
|
1179
|
-
* Watch
|
|
1288
|
+
* Watch SecondarySaleFees events
|
|
1180
1289
|
* @param callback Function to call when event is emitted
|
|
1181
1290
|
* @param filter Optional filter for indexed parameters
|
|
1182
1291
|
* @returns Unwatch function to stop listening
|
|
1183
1292
|
*/
|
|
1184
|
-
|
|
1293
|
+
SecondarySaleFees: (callback) => {
|
|
1185
1294
|
return this.publicClient.watchContractEvent({
|
|
1186
1295
|
address: this.contractAddress,
|
|
1187
|
-
abi: exports.
|
|
1188
|
-
eventName: '
|
|
1296
|
+
abi: exports.RaribleToken_jsonAbi,
|
|
1297
|
+
eventName: 'SecondarySaleFees',
|
|
1298
|
+
onLogs: (logs) => {
|
|
1299
|
+
logs.forEach((log) => {
|
|
1300
|
+
callback(log.args);
|
|
1301
|
+
});
|
|
1302
|
+
},
|
|
1303
|
+
});
|
|
1304
|
+
},
|
|
1305
|
+
/**
|
|
1306
|
+
* Watch SignerAdded events
|
|
1307
|
+
* @param callback Function to call when event is emitted
|
|
1308
|
+
* @param filter Optional filter for indexed parameters
|
|
1309
|
+
* @returns Unwatch function to stop listening
|
|
1310
|
+
*/
|
|
1311
|
+
SignerAdded: (callback, filter) => {
|
|
1312
|
+
return this.publicClient.watchContractEvent({
|
|
1313
|
+
address: this.contractAddress,
|
|
1314
|
+
abi: exports.RaribleToken_jsonAbi,
|
|
1315
|
+
eventName: 'SignerAdded',
|
|
1189
1316
|
args: filter,
|
|
1190
1317
|
onLogs: (logs) => {
|
|
1191
1318
|
logs.forEach((log) => {
|
|
@@ -1195,16 +1322,16 @@ class MintableToken_json {
|
|
|
1195
1322
|
});
|
|
1196
1323
|
},
|
|
1197
1324
|
/**
|
|
1198
|
-
* Watch
|
|
1325
|
+
* Watch SignerRemoved events
|
|
1199
1326
|
* @param callback Function to call when event is emitted
|
|
1200
1327
|
* @param filter Optional filter for indexed parameters
|
|
1201
1328
|
* @returns Unwatch function to stop listening
|
|
1202
1329
|
*/
|
|
1203
|
-
|
|
1330
|
+
SignerRemoved: (callback, filter) => {
|
|
1204
1331
|
return this.publicClient.watchContractEvent({
|
|
1205
1332
|
address: this.contractAddress,
|
|
1206
|
-
abi: exports.
|
|
1207
|
-
eventName: '
|
|
1333
|
+
abi: exports.RaribleToken_jsonAbi,
|
|
1334
|
+
eventName: 'SignerRemoved',
|
|
1208
1335
|
args: filter,
|
|
1209
1336
|
onLogs: (logs) => {
|
|
1210
1337
|
logs.forEach((log) => {
|
|
@@ -1214,16 +1341,36 @@ class MintableToken_json {
|
|
|
1214
1341
|
});
|
|
1215
1342
|
},
|
|
1216
1343
|
/**
|
|
1217
|
-
* Watch
|
|
1344
|
+
* Watch TransferBatch events
|
|
1218
1345
|
* @param callback Function to call when event is emitted
|
|
1219
1346
|
* @param filter Optional filter for indexed parameters
|
|
1220
1347
|
* @returns Unwatch function to stop listening
|
|
1221
1348
|
*/
|
|
1222
|
-
|
|
1349
|
+
TransferBatch: (callback, filter) => {
|
|
1223
1350
|
return this.publicClient.watchContractEvent({
|
|
1224
1351
|
address: this.contractAddress,
|
|
1225
|
-
abi: exports.
|
|
1226
|
-
eventName: '
|
|
1352
|
+
abi: exports.RaribleToken_jsonAbi,
|
|
1353
|
+
eventName: 'TransferBatch',
|
|
1354
|
+
args: filter,
|
|
1355
|
+
onLogs: (logs) => {
|
|
1356
|
+
logs.forEach((log) => {
|
|
1357
|
+
callback(log.args);
|
|
1358
|
+
});
|
|
1359
|
+
},
|
|
1360
|
+
});
|
|
1361
|
+
},
|
|
1362
|
+
/**
|
|
1363
|
+
* Watch TransferSingle events
|
|
1364
|
+
* @param callback Function to call when event is emitted
|
|
1365
|
+
* @param filter Optional filter for indexed parameters
|
|
1366
|
+
* @returns Unwatch function to stop listening
|
|
1367
|
+
*/
|
|
1368
|
+
TransferSingle: (callback, filter) => {
|
|
1369
|
+
return this.publicClient.watchContractEvent({
|
|
1370
|
+
address: this.contractAddress,
|
|
1371
|
+
abi: exports.RaribleToken_jsonAbi,
|
|
1372
|
+
eventName: 'TransferSingle',
|
|
1373
|
+
args: filter,
|
|
1227
1374
|
onLogs: (logs) => {
|
|
1228
1375
|
logs.forEach((log) => {
|
|
1229
1376
|
callback(log.args);
|
|
@@ -1232,16 +1379,16 @@ class MintableToken_json {
|
|
|
1232
1379
|
});
|
|
1233
1380
|
},
|
|
1234
1381
|
/**
|
|
1235
|
-
* Watch
|
|
1382
|
+
* Watch URI events
|
|
1236
1383
|
* @param callback Function to call when event is emitted
|
|
1237
1384
|
* @param filter Optional filter for indexed parameters
|
|
1238
1385
|
* @returns Unwatch function to stop listening
|
|
1239
1386
|
*/
|
|
1240
|
-
|
|
1387
|
+
URI: (callback, filter) => {
|
|
1241
1388
|
return this.publicClient.watchContractEvent({
|
|
1242
1389
|
address: this.contractAddress,
|
|
1243
|
-
abi: exports.
|
|
1244
|
-
eventName: '
|
|
1390
|
+
abi: exports.RaribleToken_jsonAbi,
|
|
1391
|
+
eventName: 'URI',
|
|
1245
1392
|
args: filter,
|
|
1246
1393
|
onLogs: (logs) => {
|
|
1247
1394
|
logs.forEach((log) => {
|
|
@@ -1253,4 +1400,4 @@ class MintableToken_json {
|
|
|
1253
1400
|
};
|
|
1254
1401
|
}
|
|
1255
1402
|
}
|
|
1256
|
-
exports.
|
|
1403
|
+
exports.RaribleToken_json = RaribleToken_json;
|