@gitmyabi/rari 1.0.1 → 1.0.3
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 +6 -6
- package/contracts/{RaribleToken_json.d.ts → ERC721RaribleMinimal.d.ts} +712 -420
- package/contracts/{RaribleToken_json.js → ERC721RaribleMinimal.js} +771 -470
- package/contracts/{RaribleToken_json.ts → ERC721RaribleMinimal.ts} +884 -475
- package/contracts/TransparentUpgradeableProxy.d.ts +401 -0
- package/contracts/TransparentUpgradeableProxy.js +398 -0
- package/contracts/TransparentUpgradeableProxy.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 +4 -4
|
@@ -3,49 +3,53 @@ 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
|
+
* LibERC721LazyMint.Mint721Data struct type
|
|
15
|
+
*/
|
|
16
|
+
export type LibERC721LazyMint_Mint721Data = {
|
|
17
|
+
tokenId: bigint;
|
|
18
|
+
tokenURI: string;
|
|
19
|
+
creators: LibPart_Part[];
|
|
20
|
+
royalties: LibPart_Part[];
|
|
21
|
+
signatures: `0x${string}`[];
|
|
22
|
+
};
|
|
12
23
|
/**
|
|
13
|
-
*
|
|
24
|
+
* ERC721RaribleMinimal ABI
|
|
14
25
|
*
|
|
15
26
|
* This ABI is typed using viem's type system for full type safety.
|
|
16
27
|
*/
|
|
17
|
-
export const
|
|
28
|
+
export const ERC721RaribleMinimalAbi = [
|
|
18
29
|
{
|
|
30
|
+
"anonymous": false,
|
|
19
31
|
"inputs": [
|
|
20
32
|
{
|
|
21
|
-
"
|
|
22
|
-
"name": "_name",
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"internalType": "string",
|
|
27
|
-
"name": "_symbol",
|
|
28
|
-
"type": "string"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
33
|
+
"indexed": true,
|
|
31
34
|
"internalType": "address",
|
|
32
|
-
"name": "
|
|
35
|
+
"name": "owner",
|
|
33
36
|
"type": "address"
|
|
34
37
|
},
|
|
35
38
|
{
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
+
"indexed": true,
|
|
40
|
+
"internalType": "address",
|
|
41
|
+
"name": "approved",
|
|
42
|
+
"type": "address"
|
|
39
43
|
},
|
|
40
44
|
{
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
45
|
+
"indexed": true,
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "tokenId",
|
|
48
|
+
"type": "uint256"
|
|
44
49
|
}
|
|
45
50
|
],
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"type": "constructor"
|
|
51
|
+
"name": "Approval",
|
|
52
|
+
"type": "event"
|
|
49
53
|
},
|
|
50
54
|
{
|
|
51
55
|
"anonymous": false,
|
|
@@ -53,19 +57,19 @@ export const RaribleToken_jsonAbi = [
|
|
|
53
57
|
{
|
|
54
58
|
"indexed": true,
|
|
55
59
|
"internalType": "address",
|
|
56
|
-
"name": "
|
|
60
|
+
"name": "owner",
|
|
57
61
|
"type": "address"
|
|
58
62
|
},
|
|
59
63
|
{
|
|
60
64
|
"indexed": true,
|
|
61
65
|
"internalType": "address",
|
|
62
|
-
"name": "
|
|
66
|
+
"name": "operator",
|
|
63
67
|
"type": "address"
|
|
64
68
|
},
|
|
65
69
|
{
|
|
66
70
|
"indexed": false,
|
|
67
71
|
"internalType": "bool",
|
|
68
|
-
"name": "
|
|
72
|
+
"name": "approved",
|
|
69
73
|
"type": "bool"
|
|
70
74
|
}
|
|
71
75
|
],
|
|
@@ -76,19 +80,38 @@ export const RaribleToken_jsonAbi = [
|
|
|
76
80
|
"anonymous": false,
|
|
77
81
|
"inputs": [
|
|
78
82
|
{
|
|
79
|
-
"indexed":
|
|
83
|
+
"indexed": false,
|
|
84
|
+
"internalType": "string",
|
|
85
|
+
"name": "newBaseURI",
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"name": "BaseUriChanged",
|
|
90
|
+
"type": "event"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"anonymous": false,
|
|
94
|
+
"inputs": [
|
|
95
|
+
{
|
|
96
|
+
"indexed": false,
|
|
80
97
|
"internalType": "address",
|
|
81
|
-
"name": "
|
|
98
|
+
"name": "owner",
|
|
82
99
|
"type": "address"
|
|
83
100
|
},
|
|
84
101
|
{
|
|
85
|
-
"indexed":
|
|
86
|
-
"internalType": "
|
|
87
|
-
"name": "
|
|
88
|
-
"type": "
|
|
102
|
+
"indexed": false,
|
|
103
|
+
"internalType": "string",
|
|
104
|
+
"name": "name",
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"indexed": false,
|
|
109
|
+
"internalType": "string",
|
|
110
|
+
"name": "symbol",
|
|
111
|
+
"type": "string"
|
|
89
112
|
}
|
|
90
113
|
],
|
|
91
|
-
"name": "
|
|
114
|
+
"name": "CreateERC721Rarible",
|
|
92
115
|
"type": "event"
|
|
93
116
|
},
|
|
94
117
|
{
|
|
@@ -96,37 +119,55 @@ export const RaribleToken_jsonAbi = [
|
|
|
96
119
|
"inputs": [
|
|
97
120
|
{
|
|
98
121
|
"indexed": false,
|
|
99
|
-
"internalType": "
|
|
100
|
-
"name": "
|
|
101
|
-
"type": "
|
|
122
|
+
"internalType": "address",
|
|
123
|
+
"name": "owner",
|
|
124
|
+
"type": "address"
|
|
102
125
|
},
|
|
103
126
|
{
|
|
104
127
|
"indexed": false,
|
|
105
|
-
"internalType": "
|
|
106
|
-
"name": "
|
|
107
|
-
"type": "
|
|
128
|
+
"internalType": "string",
|
|
129
|
+
"name": "name",
|
|
130
|
+
"type": "string"
|
|
108
131
|
},
|
|
109
132
|
{
|
|
110
133
|
"indexed": false,
|
|
111
|
-
"internalType": "
|
|
112
|
-
"name": "
|
|
113
|
-
"type": "
|
|
134
|
+
"internalType": "string",
|
|
135
|
+
"name": "symbol",
|
|
136
|
+
"type": "string"
|
|
114
137
|
}
|
|
115
138
|
],
|
|
116
|
-
"name": "
|
|
139
|
+
"name": "CreateERC721RaribleUser",
|
|
117
140
|
"type": "event"
|
|
118
141
|
},
|
|
119
142
|
{
|
|
120
143
|
"anonymous": false,
|
|
121
144
|
"inputs": [
|
|
122
145
|
{
|
|
123
|
-
"indexed":
|
|
124
|
-
"internalType": "
|
|
125
|
-
"name": "
|
|
126
|
-
"type": "
|
|
146
|
+
"indexed": false,
|
|
147
|
+
"internalType": "uint256",
|
|
148
|
+
"name": "tokenId",
|
|
149
|
+
"type": "uint256"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"components": [
|
|
153
|
+
{
|
|
154
|
+
"internalType": "address payable",
|
|
155
|
+
"name": "account",
|
|
156
|
+
"type": "address"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"internalType": "uint96",
|
|
160
|
+
"name": "value",
|
|
161
|
+
"type": "uint96"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"indexed": false,
|
|
165
|
+
"internalType": "struct LibPart.Part[]",
|
|
166
|
+
"name": "creators",
|
|
167
|
+
"type": "tuple[]"
|
|
127
168
|
}
|
|
128
169
|
],
|
|
129
|
-
"name": "
|
|
170
|
+
"name": "Creators",
|
|
130
171
|
"type": "event"
|
|
131
172
|
},
|
|
132
173
|
{
|
|
@@ -135,11 +176,17 @@ export const RaribleToken_jsonAbi = [
|
|
|
135
176
|
{
|
|
136
177
|
"indexed": true,
|
|
137
178
|
"internalType": "address",
|
|
138
|
-
"name": "
|
|
179
|
+
"name": "operator",
|
|
139
180
|
"type": "address"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"indexed": false,
|
|
184
|
+
"internalType": "bool",
|
|
185
|
+
"name": "hasApproval",
|
|
186
|
+
"type": "bool"
|
|
140
187
|
}
|
|
141
188
|
],
|
|
142
|
-
"name": "
|
|
189
|
+
"name": "DefaultApproval",
|
|
143
190
|
"type": "event"
|
|
144
191
|
},
|
|
145
192
|
{
|
|
@@ -148,35 +195,67 @@ export const RaribleToken_jsonAbi = [
|
|
|
148
195
|
{
|
|
149
196
|
"indexed": true,
|
|
150
197
|
"internalType": "address",
|
|
151
|
-
"name": "
|
|
198
|
+
"name": "minter",
|
|
152
199
|
"type": "address"
|
|
153
200
|
},
|
|
201
|
+
{
|
|
202
|
+
"indexed": true,
|
|
203
|
+
"internalType": "bool",
|
|
204
|
+
"name": "status",
|
|
205
|
+
"type": "bool"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"name": "MinterStatusChanged",
|
|
209
|
+
"type": "event"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"anonymous": false,
|
|
213
|
+
"inputs": [
|
|
154
214
|
{
|
|
155
215
|
"indexed": true,
|
|
156
216
|
"internalType": "address",
|
|
157
|
-
"name": "
|
|
217
|
+
"name": "previousOwner",
|
|
158
218
|
"type": "address"
|
|
159
219
|
},
|
|
160
220
|
{
|
|
161
221
|
"indexed": true,
|
|
162
222
|
"internalType": "address",
|
|
163
|
-
"name": "
|
|
223
|
+
"name": "newOwner",
|
|
164
224
|
"type": "address"
|
|
165
|
-
}
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"name": "OwnershipTransferred",
|
|
228
|
+
"type": "event"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"anonymous": false,
|
|
232
|
+
"inputs": [
|
|
166
233
|
{
|
|
167
234
|
"indexed": false,
|
|
168
|
-
"internalType": "uint256
|
|
169
|
-
"name": "
|
|
170
|
-
"type": "uint256
|
|
235
|
+
"internalType": "uint256",
|
|
236
|
+
"name": "tokenId",
|
|
237
|
+
"type": "uint256"
|
|
171
238
|
},
|
|
172
239
|
{
|
|
240
|
+
"components": [
|
|
241
|
+
{
|
|
242
|
+
"internalType": "address payable",
|
|
243
|
+
"name": "account",
|
|
244
|
+
"type": "address"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"internalType": "uint96",
|
|
248
|
+
"name": "value",
|
|
249
|
+
"type": "uint96"
|
|
250
|
+
}
|
|
251
|
+
],
|
|
173
252
|
"indexed": false,
|
|
174
|
-
"internalType": "
|
|
175
|
-
"name": "
|
|
176
|
-
"type": "
|
|
253
|
+
"internalType": "struct LibPart.Part[]",
|
|
254
|
+
"name": "royalties",
|
|
255
|
+
"type": "tuple[]"
|
|
177
256
|
}
|
|
178
257
|
],
|
|
179
|
-
"name": "
|
|
258
|
+
"name": "RoyaltiesSet",
|
|
180
259
|
"type": "event"
|
|
181
260
|
},
|
|
182
261
|
{
|
|
@@ -185,152 +264,172 @@ export const RaribleToken_jsonAbi = [
|
|
|
185
264
|
{
|
|
186
265
|
"indexed": true,
|
|
187
266
|
"internalType": "address",
|
|
188
|
-
"name": "
|
|
267
|
+
"name": "from",
|
|
189
268
|
"type": "address"
|
|
190
269
|
},
|
|
191
270
|
{
|
|
192
271
|
"indexed": true,
|
|
193
272
|
"internalType": "address",
|
|
194
|
-
"name": "
|
|
273
|
+
"name": "to",
|
|
195
274
|
"type": "address"
|
|
196
275
|
},
|
|
197
276
|
{
|
|
198
277
|
"indexed": true,
|
|
199
|
-
"internalType": "address",
|
|
200
|
-
"name": "_to",
|
|
201
|
-
"type": "address"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"indexed": false,
|
|
205
278
|
"internalType": "uint256",
|
|
206
|
-
"name": "
|
|
207
|
-
"type": "uint256"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"indexed": false,
|
|
211
|
-
"internalType": "uint256",
|
|
212
|
-
"name": "_value",
|
|
279
|
+
"name": "tokenId",
|
|
213
280
|
"type": "uint256"
|
|
214
281
|
}
|
|
215
282
|
],
|
|
216
|
-
"name": "
|
|
283
|
+
"name": "Transfer",
|
|
217
284
|
"type": "event"
|
|
218
285
|
},
|
|
219
286
|
{
|
|
220
|
-
"anonymous": false,
|
|
221
287
|
"inputs": [
|
|
222
288
|
{
|
|
223
|
-
"indexed": false,
|
|
224
289
|
"internalType": "string",
|
|
225
|
-
"name": "
|
|
290
|
+
"name": "_name",
|
|
226
291
|
"type": "string"
|
|
227
292
|
},
|
|
228
293
|
{
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
"
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
294
|
+
"internalType": "string",
|
|
295
|
+
"name": "_symbol",
|
|
296
|
+
"type": "string"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"internalType": "string",
|
|
300
|
+
"name": "baseURI",
|
|
301
|
+
"type": "string"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"internalType": "string",
|
|
305
|
+
"name": "contractURI",
|
|
306
|
+
"type": "string"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"internalType": "address[]",
|
|
310
|
+
"name": "operators",
|
|
311
|
+
"type": "address[]"
|
|
312
|
+
},
|
|
241
313
|
{
|
|
242
314
|
"internalType": "address",
|
|
243
|
-
"name": "
|
|
315
|
+
"name": "transferProxy",
|
|
316
|
+
"type": "address"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"internalType": "address",
|
|
320
|
+
"name": "lazyTransferProxy",
|
|
244
321
|
"type": "address"
|
|
245
322
|
}
|
|
246
323
|
],
|
|
247
|
-
"name": "
|
|
324
|
+
"name": "__ERC721RaribleUser_init",
|
|
248
325
|
"outputs": [],
|
|
249
|
-
"payable": false,
|
|
250
326
|
"stateMutability": "nonpayable",
|
|
251
327
|
"type": "function"
|
|
252
328
|
},
|
|
253
329
|
{
|
|
254
|
-
"constant": true,
|
|
255
330
|
"inputs": [
|
|
331
|
+
{
|
|
332
|
+
"internalType": "string",
|
|
333
|
+
"name": "_name",
|
|
334
|
+
"type": "string"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"internalType": "string",
|
|
338
|
+
"name": "_symbol",
|
|
339
|
+
"type": "string"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"internalType": "string",
|
|
343
|
+
"name": "baseURI",
|
|
344
|
+
"type": "string"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"internalType": "string",
|
|
348
|
+
"name": "contractURI",
|
|
349
|
+
"type": "string"
|
|
350
|
+
},
|
|
256
351
|
{
|
|
257
352
|
"internalType": "address",
|
|
258
|
-
"name": "
|
|
353
|
+
"name": "transferProxy",
|
|
259
354
|
"type": "address"
|
|
260
355
|
},
|
|
261
356
|
{
|
|
262
|
-
"internalType": "
|
|
263
|
-
"name": "
|
|
264
|
-
"type": "
|
|
357
|
+
"internalType": "address",
|
|
358
|
+
"name": "lazyTransferProxy",
|
|
359
|
+
"type": "address"
|
|
265
360
|
}
|
|
266
361
|
],
|
|
267
|
-
"name": "
|
|
268
|
-
"outputs": [
|
|
362
|
+
"name": "__ERC721Rarible_init",
|
|
363
|
+
"outputs": [],
|
|
364
|
+
"stateMutability": "nonpayable",
|
|
365
|
+
"type": "function"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"inputs": [
|
|
269
369
|
{
|
|
270
|
-
"internalType": "
|
|
271
|
-
"name": "",
|
|
272
|
-
"type": "
|
|
370
|
+
"internalType": "address",
|
|
371
|
+
"name": "minter",
|
|
372
|
+
"type": "address"
|
|
273
373
|
}
|
|
274
374
|
],
|
|
275
|
-
"
|
|
276
|
-
"
|
|
375
|
+
"name": "addMinter",
|
|
376
|
+
"outputs": [],
|
|
377
|
+
"stateMutability": "nonpayable",
|
|
277
378
|
"type": "function"
|
|
278
379
|
},
|
|
279
380
|
{
|
|
280
|
-
"constant": true,
|
|
281
381
|
"inputs": [
|
|
282
382
|
{
|
|
283
383
|
"internalType": "address[]",
|
|
284
|
-
"name": "
|
|
384
|
+
"name": "minters",
|
|
285
385
|
"type": "address[]"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"internalType": "uint256[]",
|
|
289
|
-
"name": "_ids",
|
|
290
|
-
"type": "uint256[]"
|
|
291
386
|
}
|
|
292
387
|
],
|
|
293
|
-
"name": "
|
|
294
|
-
"outputs": [
|
|
295
|
-
|
|
296
|
-
"internalType": "uint256[]",
|
|
297
|
-
"name": "",
|
|
298
|
-
"type": "uint256[]"
|
|
299
|
-
}
|
|
300
|
-
],
|
|
301
|
-
"payable": false,
|
|
302
|
-
"stateMutability": "view",
|
|
388
|
+
"name": "addMinters",
|
|
389
|
+
"outputs": [],
|
|
390
|
+
"stateMutability": "nonpayable",
|
|
303
391
|
"type": "function"
|
|
304
392
|
},
|
|
305
393
|
{
|
|
306
|
-
"constant": false,
|
|
307
394
|
"inputs": [
|
|
308
395
|
{
|
|
309
396
|
"internalType": "address",
|
|
310
|
-
"name": "
|
|
397
|
+
"name": "to",
|
|
311
398
|
"type": "address"
|
|
312
399
|
},
|
|
313
400
|
{
|
|
314
401
|
"internalType": "uint256",
|
|
315
|
-
"name": "
|
|
402
|
+
"name": "tokenId",
|
|
316
403
|
"type": "uint256"
|
|
317
|
-
}
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"name": "approve",
|
|
407
|
+
"outputs": [],
|
|
408
|
+
"stateMutability": "nonpayable",
|
|
409
|
+
"type": "function"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"inputs": [
|
|
413
|
+
{
|
|
414
|
+
"internalType": "address",
|
|
415
|
+
"name": "owner",
|
|
416
|
+
"type": "address"
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
"name": "balanceOf",
|
|
420
|
+
"outputs": [
|
|
318
421
|
{
|
|
319
422
|
"internalType": "uint256",
|
|
320
|
-
"name": "
|
|
423
|
+
"name": "",
|
|
321
424
|
"type": "uint256"
|
|
322
425
|
}
|
|
323
426
|
],
|
|
324
|
-
"
|
|
325
|
-
"outputs": [],
|
|
326
|
-
"payable": false,
|
|
327
|
-
"stateMutability": "nonpayable",
|
|
427
|
+
"stateMutability": "view",
|
|
328
428
|
"type": "function"
|
|
329
429
|
},
|
|
330
430
|
{
|
|
331
|
-
"constant": true,
|
|
332
431
|
"inputs": [],
|
|
333
|
-
"name": "
|
|
432
|
+
"name": "baseURI",
|
|
334
433
|
"outputs": [
|
|
335
434
|
{
|
|
336
435
|
"internalType": "string",
|
|
@@ -338,85 +437,86 @@ export const RaribleToken_jsonAbi = [
|
|
|
338
437
|
"type": "string"
|
|
339
438
|
}
|
|
340
439
|
],
|
|
341
|
-
"payable": false,
|
|
342
440
|
"stateMutability": "view",
|
|
343
441
|
"type": "function"
|
|
344
442
|
},
|
|
345
443
|
{
|
|
346
|
-
"constant": true,
|
|
347
444
|
"inputs": [
|
|
348
445
|
{
|
|
349
446
|
"internalType": "uint256",
|
|
350
|
-
"name": "",
|
|
447
|
+
"name": "tokenId",
|
|
351
448
|
"type": "uint256"
|
|
352
449
|
}
|
|
353
450
|
],
|
|
354
|
-
"name": "
|
|
451
|
+
"name": "burn",
|
|
452
|
+
"outputs": [],
|
|
453
|
+
"stateMutability": "nonpayable",
|
|
454
|
+
"type": "function"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"inputs": [],
|
|
458
|
+
"name": "contractURI",
|
|
355
459
|
"outputs": [
|
|
356
460
|
{
|
|
357
|
-
"internalType": "
|
|
461
|
+
"internalType": "string",
|
|
358
462
|
"name": "",
|
|
359
|
-
"type": "
|
|
463
|
+
"type": "string"
|
|
360
464
|
}
|
|
361
465
|
],
|
|
362
|
-
"payable": false,
|
|
363
466
|
"stateMutability": "view",
|
|
364
467
|
"type": "function"
|
|
365
468
|
},
|
|
366
469
|
{
|
|
367
|
-
"constant": true,
|
|
368
470
|
"inputs": [
|
|
369
471
|
{
|
|
370
472
|
"internalType": "uint256",
|
|
371
|
-
"name": "",
|
|
372
|
-
"type": "uint256"
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"internalType": "uint256",
|
|
376
|
-
"name": "",
|
|
473
|
+
"name": "tokenId",
|
|
377
474
|
"type": "uint256"
|
|
378
475
|
}
|
|
379
476
|
],
|
|
380
|
-
"name": "
|
|
477
|
+
"name": "getApproved",
|
|
381
478
|
"outputs": [
|
|
382
479
|
{
|
|
383
|
-
"internalType": "address
|
|
384
|
-
"name": "
|
|
480
|
+
"internalType": "address",
|
|
481
|
+
"name": "",
|
|
385
482
|
"type": "address"
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
"internalType": "uint256",
|
|
389
|
-
"name": "value",
|
|
390
|
-
"type": "uint256"
|
|
391
483
|
}
|
|
392
484
|
],
|
|
393
|
-
"payable": false,
|
|
394
485
|
"stateMutability": "view",
|
|
395
486
|
"type": "function"
|
|
396
487
|
},
|
|
397
488
|
{
|
|
398
|
-
"constant": true,
|
|
399
489
|
"inputs": [
|
|
400
490
|
{
|
|
401
491
|
"internalType": "uint256",
|
|
402
|
-
"name": "
|
|
492
|
+
"name": "_id",
|
|
403
493
|
"type": "uint256"
|
|
404
494
|
}
|
|
405
495
|
],
|
|
406
|
-
"name": "
|
|
496
|
+
"name": "getCreators",
|
|
407
497
|
"outputs": [
|
|
408
498
|
{
|
|
409
|
-
"
|
|
499
|
+
"components": [
|
|
500
|
+
{
|
|
501
|
+
"internalType": "address payable",
|
|
502
|
+
"name": "account",
|
|
503
|
+
"type": "address"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"internalType": "uint96",
|
|
507
|
+
"name": "value",
|
|
508
|
+
"type": "uint96"
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
"internalType": "struct LibPart.Part[]",
|
|
410
512
|
"name": "",
|
|
411
|
-
"type": "
|
|
513
|
+
"type": "tuple[]"
|
|
412
514
|
}
|
|
413
515
|
],
|
|
414
|
-
"payable": false,
|
|
415
516
|
"stateMutability": "view",
|
|
416
517
|
"type": "function"
|
|
417
518
|
},
|
|
418
519
|
{
|
|
419
|
-
"constant": true,
|
|
420
520
|
"inputs": [
|
|
421
521
|
{
|
|
422
522
|
"internalType": "uint256",
|
|
@@ -424,29 +524,39 @@ export const RaribleToken_jsonAbi = [
|
|
|
424
524
|
"type": "uint256"
|
|
425
525
|
}
|
|
426
526
|
],
|
|
427
|
-
"name": "
|
|
527
|
+
"name": "getRaribleV2Royalties",
|
|
428
528
|
"outputs": [
|
|
429
529
|
{
|
|
430
|
-
"
|
|
530
|
+
"components": [
|
|
531
|
+
{
|
|
532
|
+
"internalType": "address payable",
|
|
533
|
+
"name": "account",
|
|
534
|
+
"type": "address"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"internalType": "uint96",
|
|
538
|
+
"name": "value",
|
|
539
|
+
"type": "uint96"
|
|
540
|
+
}
|
|
541
|
+
],
|
|
542
|
+
"internalType": "struct LibPart.Part[]",
|
|
431
543
|
"name": "",
|
|
432
|
-
"type": "
|
|
544
|
+
"type": "tuple[]"
|
|
433
545
|
}
|
|
434
546
|
],
|
|
435
|
-
"payable": false,
|
|
436
547
|
"stateMutability": "view",
|
|
437
548
|
"type": "function"
|
|
438
549
|
},
|
|
439
550
|
{
|
|
440
|
-
"constant": true,
|
|
441
551
|
"inputs": [
|
|
442
552
|
{
|
|
443
553
|
"internalType": "address",
|
|
444
|
-
"name": "
|
|
554
|
+
"name": "owner",
|
|
445
555
|
"type": "address"
|
|
446
556
|
},
|
|
447
557
|
{
|
|
448
558
|
"internalType": "address",
|
|
449
|
-
"name": "
|
|
559
|
+
"name": "operator",
|
|
450
560
|
"type": "address"
|
|
451
561
|
}
|
|
452
562
|
],
|
|
@@ -458,27 +568,10 @@ export const RaribleToken_jsonAbi = [
|
|
|
458
568
|
"type": "bool"
|
|
459
569
|
}
|
|
460
570
|
],
|
|
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
571
|
"stateMutability": "view",
|
|
478
572
|
"type": "function"
|
|
479
573
|
},
|
|
480
574
|
{
|
|
481
|
-
"constant": true,
|
|
482
575
|
"inputs": [
|
|
483
576
|
{
|
|
484
577
|
"internalType": "address",
|
|
@@ -486,7 +579,7 @@ export const RaribleToken_jsonAbi = [
|
|
|
486
579
|
"type": "address"
|
|
487
580
|
}
|
|
488
581
|
],
|
|
489
|
-
"name": "
|
|
582
|
+
"name": "isMinter",
|
|
490
583
|
"outputs": [
|
|
491
584
|
{
|
|
492
585
|
"internalType": "bool",
|
|
@@ -494,69 +587,79 @@ export const RaribleToken_jsonAbi = [
|
|
|
494
587
|
"type": "bool"
|
|
495
588
|
}
|
|
496
589
|
],
|
|
497
|
-
"payable": false,
|
|
498
590
|
"stateMutability": "view",
|
|
499
591
|
"type": "function"
|
|
500
592
|
},
|
|
501
593
|
{
|
|
502
|
-
"constant": false,
|
|
503
594
|
"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
595
|
{
|
|
525
596
|
"components": [
|
|
526
|
-
{
|
|
527
|
-
"internalType": "address payable",
|
|
528
|
-
"name": "recipient",
|
|
529
|
-
"type": "address"
|
|
530
|
-
},
|
|
531
597
|
{
|
|
532
598
|
"internalType": "uint256",
|
|
533
|
-
"name": "
|
|
599
|
+
"name": "tokenId",
|
|
534
600
|
"type": "uint256"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"internalType": "string",
|
|
604
|
+
"name": "tokenURI",
|
|
605
|
+
"type": "string"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"components": [
|
|
609
|
+
{
|
|
610
|
+
"internalType": "address payable",
|
|
611
|
+
"name": "account",
|
|
612
|
+
"type": "address"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"internalType": "uint96",
|
|
616
|
+
"name": "value",
|
|
617
|
+
"type": "uint96"
|
|
618
|
+
}
|
|
619
|
+
],
|
|
620
|
+
"internalType": "struct LibPart.Part[]",
|
|
621
|
+
"name": "creators",
|
|
622
|
+
"type": "tuple[]"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"components": [
|
|
626
|
+
{
|
|
627
|
+
"internalType": "address payable",
|
|
628
|
+
"name": "account",
|
|
629
|
+
"type": "address"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"internalType": "uint96",
|
|
633
|
+
"name": "value",
|
|
634
|
+
"type": "uint96"
|
|
635
|
+
}
|
|
636
|
+
],
|
|
637
|
+
"internalType": "struct LibPart.Part[]",
|
|
638
|
+
"name": "royalties",
|
|
639
|
+
"type": "tuple[]"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"internalType": "bytes[]",
|
|
643
|
+
"name": "signatures",
|
|
644
|
+
"type": "bytes[]"
|
|
535
645
|
}
|
|
536
646
|
],
|
|
537
|
-
"internalType": "struct
|
|
538
|
-
"name": "
|
|
539
|
-
"type": "tuple
|
|
647
|
+
"internalType": "struct LibERC721LazyMint.Mint721Data",
|
|
648
|
+
"name": "data",
|
|
649
|
+
"type": "tuple"
|
|
540
650
|
},
|
|
541
651
|
{
|
|
542
|
-
"internalType": "
|
|
543
|
-
"name": "
|
|
544
|
-
"type": "
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
"internalType": "string",
|
|
548
|
-
"name": "uri",
|
|
549
|
-
"type": "string"
|
|
652
|
+
"internalType": "address",
|
|
653
|
+
"name": "to",
|
|
654
|
+
"type": "address"
|
|
550
655
|
}
|
|
551
656
|
],
|
|
552
|
-
"name": "
|
|
657
|
+
"name": "mintAndTransfer",
|
|
553
658
|
"outputs": [],
|
|
554
|
-
"payable": false,
|
|
555
659
|
"stateMutability": "nonpayable",
|
|
556
660
|
"type": "function"
|
|
557
661
|
},
|
|
558
662
|
{
|
|
559
|
-
"constant": true,
|
|
560
663
|
"inputs": [],
|
|
561
664
|
"name": "name",
|
|
562
665
|
"outputs": [
|
|
@@ -566,12 +669,10 @@ export const RaribleToken_jsonAbi = [
|
|
|
566
669
|
"type": "string"
|
|
567
670
|
}
|
|
568
671
|
],
|
|
569
|
-
"payable": false,
|
|
570
672
|
"stateMutability": "view",
|
|
571
673
|
"type": "function"
|
|
572
674
|
},
|
|
573
675
|
{
|
|
574
|
-
"constant": true,
|
|
575
676
|
"inputs": [],
|
|
576
677
|
"name": "owner",
|
|
577
678
|
"outputs": [
|
|
@@ -581,99 +682,115 @@ export const RaribleToken_jsonAbi = [
|
|
|
581
682
|
"type": "address"
|
|
582
683
|
}
|
|
583
684
|
],
|
|
584
|
-
"payable": false,
|
|
585
685
|
"stateMutability": "view",
|
|
586
686
|
"type": "function"
|
|
587
687
|
},
|
|
588
688
|
{
|
|
589
|
-
"constant": false,
|
|
590
689
|
"inputs": [
|
|
690
|
+
{
|
|
691
|
+
"internalType": "uint256",
|
|
692
|
+
"name": "tokenId",
|
|
693
|
+
"type": "uint256"
|
|
694
|
+
}
|
|
695
|
+
],
|
|
696
|
+
"name": "ownerOf",
|
|
697
|
+
"outputs": [
|
|
591
698
|
{
|
|
592
699
|
"internalType": "address",
|
|
593
|
-
"name": "
|
|
700
|
+
"name": "",
|
|
594
701
|
"type": "address"
|
|
595
702
|
}
|
|
596
703
|
],
|
|
597
|
-
"
|
|
598
|
-
"outputs": [],
|
|
599
|
-
"payable": false,
|
|
600
|
-
"stateMutability": "nonpayable",
|
|
704
|
+
"stateMutability": "view",
|
|
601
705
|
"type": "function"
|
|
602
706
|
},
|
|
603
707
|
{
|
|
604
|
-
"
|
|
605
|
-
|
|
606
|
-
|
|
708
|
+
"inputs": [
|
|
709
|
+
{
|
|
710
|
+
"internalType": "address",
|
|
711
|
+
"name": "_minter",
|
|
712
|
+
"type": "address"
|
|
713
|
+
}
|
|
714
|
+
],
|
|
715
|
+
"name": "removeMinter",
|
|
607
716
|
"outputs": [],
|
|
608
|
-
"payable": false,
|
|
609
717
|
"stateMutability": "nonpayable",
|
|
610
718
|
"type": "function"
|
|
611
719
|
},
|
|
612
720
|
{
|
|
613
|
-
"constant": false,
|
|
614
721
|
"inputs": [],
|
|
615
|
-
"name": "
|
|
722
|
+
"name": "renounceOwnership",
|
|
616
723
|
"outputs": [],
|
|
617
|
-
"payable": false,
|
|
618
724
|
"stateMutability": "nonpayable",
|
|
619
725
|
"type": "function"
|
|
620
726
|
},
|
|
621
727
|
{
|
|
622
|
-
"constant": false,
|
|
623
728
|
"inputs": [
|
|
624
729
|
{
|
|
625
|
-
"internalType": "
|
|
626
|
-
"name": "
|
|
627
|
-
"type": "
|
|
730
|
+
"internalType": "uint256",
|
|
731
|
+
"name": "id",
|
|
732
|
+
"type": "uint256"
|
|
628
733
|
},
|
|
734
|
+
{
|
|
735
|
+
"internalType": "uint256",
|
|
736
|
+
"name": "_salePrice",
|
|
737
|
+
"type": "uint256"
|
|
738
|
+
}
|
|
739
|
+
],
|
|
740
|
+
"name": "royaltyInfo",
|
|
741
|
+
"outputs": [
|
|
629
742
|
{
|
|
630
743
|
"internalType": "address",
|
|
631
|
-
"name": "
|
|
744
|
+
"name": "receiver",
|
|
632
745
|
"type": "address"
|
|
633
746
|
},
|
|
634
747
|
{
|
|
635
|
-
"internalType": "uint256
|
|
636
|
-
"name": "
|
|
637
|
-
"type": "uint256
|
|
748
|
+
"internalType": "uint256",
|
|
749
|
+
"name": "royaltyAmount",
|
|
750
|
+
"type": "uint256"
|
|
751
|
+
}
|
|
752
|
+
],
|
|
753
|
+
"stateMutability": "view",
|
|
754
|
+
"type": "function"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"inputs": [
|
|
758
|
+
{
|
|
759
|
+
"internalType": "address",
|
|
760
|
+
"name": "from",
|
|
761
|
+
"type": "address"
|
|
638
762
|
},
|
|
639
763
|
{
|
|
640
|
-
"internalType": "
|
|
641
|
-
"name": "
|
|
642
|
-
"type": "
|
|
764
|
+
"internalType": "address",
|
|
765
|
+
"name": "to",
|
|
766
|
+
"type": "address"
|
|
643
767
|
},
|
|
644
768
|
{
|
|
645
|
-
"internalType": "
|
|
646
|
-
"name": "
|
|
647
|
-
"type": "
|
|
769
|
+
"internalType": "uint256",
|
|
770
|
+
"name": "tokenId",
|
|
771
|
+
"type": "uint256"
|
|
648
772
|
}
|
|
649
773
|
],
|
|
650
|
-
"name": "
|
|
774
|
+
"name": "safeTransferFrom",
|
|
651
775
|
"outputs": [],
|
|
652
|
-
"payable": false,
|
|
653
776
|
"stateMutability": "nonpayable",
|
|
654
777
|
"type": "function"
|
|
655
778
|
},
|
|
656
779
|
{
|
|
657
|
-
"constant": false,
|
|
658
780
|
"inputs": [
|
|
659
781
|
{
|
|
660
782
|
"internalType": "address",
|
|
661
|
-
"name": "
|
|
783
|
+
"name": "from",
|
|
662
784
|
"type": "address"
|
|
663
785
|
},
|
|
664
786
|
{
|
|
665
787
|
"internalType": "address",
|
|
666
|
-
"name": "
|
|
788
|
+
"name": "to",
|
|
667
789
|
"type": "address"
|
|
668
790
|
},
|
|
669
791
|
{
|
|
670
792
|
"internalType": "uint256",
|
|
671
|
-
"name": "
|
|
672
|
-
"type": "uint256"
|
|
673
|
-
},
|
|
674
|
-
{
|
|
675
|
-
"internalType": "uint256",
|
|
676
|
-
"name": "_value",
|
|
793
|
+
"name": "tokenId",
|
|
677
794
|
"type": "uint256"
|
|
678
795
|
},
|
|
679
796
|
{
|
|
@@ -684,62 +801,41 @@ export const RaribleToken_jsonAbi = [
|
|
|
684
801
|
],
|
|
685
802
|
"name": "safeTransferFrom",
|
|
686
803
|
"outputs": [],
|
|
687
|
-
"payable": false,
|
|
688
804
|
"stateMutability": "nonpayable",
|
|
689
805
|
"type": "function"
|
|
690
806
|
},
|
|
691
807
|
{
|
|
692
|
-
"constant": false,
|
|
693
808
|
"inputs": [
|
|
694
809
|
{
|
|
695
810
|
"internalType": "address",
|
|
696
|
-
"name": "
|
|
811
|
+
"name": "operator",
|
|
697
812
|
"type": "address"
|
|
698
813
|
},
|
|
699
814
|
{
|
|
700
815
|
"internalType": "bool",
|
|
701
|
-
"name": "
|
|
816
|
+
"name": "approved",
|
|
702
817
|
"type": "bool"
|
|
703
818
|
}
|
|
704
819
|
],
|
|
705
820
|
"name": "setApprovalForAll",
|
|
706
821
|
"outputs": [],
|
|
707
|
-
"payable": false,
|
|
708
822
|
"stateMutability": "nonpayable",
|
|
709
823
|
"type": "function"
|
|
710
824
|
},
|
|
711
825
|
{
|
|
712
|
-
"constant": false,
|
|
713
826
|
"inputs": [
|
|
714
827
|
{
|
|
715
828
|
"internalType": "string",
|
|
716
|
-
"name": "
|
|
829
|
+
"name": "newBaseURI",
|
|
717
830
|
"type": "string"
|
|
718
831
|
}
|
|
719
832
|
],
|
|
720
|
-
"name": "
|
|
833
|
+
"name": "setBaseURI",
|
|
721
834
|
"outputs": [],
|
|
722
|
-
"payable": false,
|
|
723
835
|
"stateMutability": "nonpayable",
|
|
724
836
|
"type": "function"
|
|
725
837
|
},
|
|
726
838
|
{
|
|
727
|
-
"constant": false,
|
|
728
|
-
"inputs": [
|
|
729
|
-
{
|
|
730
|
-
"internalType": "string",
|
|
731
|
-
"name": "tokenURIPrefix",
|
|
732
|
-
"type": "string"
|
|
733
|
-
}
|
|
734
|
-
],
|
|
735
|
-
"name": "setTokenURIPrefix",
|
|
736
|
-
"outputs": [],
|
|
737
|
-
"payable": false,
|
|
738
|
-
"stateMutability": "nonpayable",
|
|
739
|
-
"type": "function"
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
"constant": true,
|
|
743
839
|
"inputs": [
|
|
744
840
|
{
|
|
745
841
|
"internalType": "bytes4",
|
|
@@ -755,12 +851,10 @@ export const RaribleToken_jsonAbi = [
|
|
|
755
851
|
"type": "bool"
|
|
756
852
|
}
|
|
757
853
|
],
|
|
758
|
-
"payable": false,
|
|
759
854
|
"stateMutability": "view",
|
|
760
855
|
"type": "function"
|
|
761
856
|
},
|
|
762
857
|
{
|
|
763
|
-
"constant": true,
|
|
764
858
|
"inputs": [],
|
|
765
859
|
"name": "symbol",
|
|
766
860
|
"outputs": [
|
|
@@ -770,27 +864,126 @@ export const RaribleToken_jsonAbi = [
|
|
|
770
864
|
"type": "string"
|
|
771
865
|
}
|
|
772
866
|
],
|
|
773
|
-
"payable": false,
|
|
774
867
|
"stateMutability": "view",
|
|
775
868
|
"type": "function"
|
|
776
869
|
},
|
|
777
870
|
{
|
|
778
|
-
"
|
|
779
|
-
|
|
780
|
-
|
|
871
|
+
"inputs": [
|
|
872
|
+
{
|
|
873
|
+
"internalType": "uint256",
|
|
874
|
+
"name": "tokenId",
|
|
875
|
+
"type": "uint256"
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"name": "tokenURI",
|
|
781
879
|
"outputs": [
|
|
782
880
|
{
|
|
783
|
-
"internalType": "string",
|
|
784
|
-
"name": "",
|
|
785
|
-
"type": "string"
|
|
881
|
+
"internalType": "string",
|
|
882
|
+
"name": "",
|
|
883
|
+
"type": "string"
|
|
884
|
+
}
|
|
885
|
+
],
|
|
886
|
+
"stateMutability": "view",
|
|
887
|
+
"type": "function"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"inputs": [
|
|
891
|
+
{
|
|
892
|
+
"internalType": "address",
|
|
893
|
+
"name": "from",
|
|
894
|
+
"type": "address"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"internalType": "address",
|
|
898
|
+
"name": "to",
|
|
899
|
+
"type": "address"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"internalType": "uint256",
|
|
903
|
+
"name": "tokenId",
|
|
904
|
+
"type": "uint256"
|
|
905
|
+
}
|
|
906
|
+
],
|
|
907
|
+
"name": "transferFrom",
|
|
908
|
+
"outputs": [],
|
|
909
|
+
"stateMutability": "nonpayable",
|
|
910
|
+
"type": "function"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"inputs": [
|
|
914
|
+
{
|
|
915
|
+
"components": [
|
|
916
|
+
{
|
|
917
|
+
"internalType": "uint256",
|
|
918
|
+
"name": "tokenId",
|
|
919
|
+
"type": "uint256"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"internalType": "string",
|
|
923
|
+
"name": "tokenURI",
|
|
924
|
+
"type": "string"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"components": [
|
|
928
|
+
{
|
|
929
|
+
"internalType": "address payable",
|
|
930
|
+
"name": "account",
|
|
931
|
+
"type": "address"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"internalType": "uint96",
|
|
935
|
+
"name": "value",
|
|
936
|
+
"type": "uint96"
|
|
937
|
+
}
|
|
938
|
+
],
|
|
939
|
+
"internalType": "struct LibPart.Part[]",
|
|
940
|
+
"name": "creators",
|
|
941
|
+
"type": "tuple[]"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"components": [
|
|
945
|
+
{
|
|
946
|
+
"internalType": "address payable",
|
|
947
|
+
"name": "account",
|
|
948
|
+
"type": "address"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"internalType": "uint96",
|
|
952
|
+
"name": "value",
|
|
953
|
+
"type": "uint96"
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
"internalType": "struct LibPart.Part[]",
|
|
957
|
+
"name": "royalties",
|
|
958
|
+
"type": "tuple[]"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"internalType": "bytes[]",
|
|
962
|
+
"name": "signatures",
|
|
963
|
+
"type": "bytes[]"
|
|
964
|
+
}
|
|
965
|
+
],
|
|
966
|
+
"internalType": "struct LibERC721LazyMint.Mint721Data",
|
|
967
|
+
"name": "data",
|
|
968
|
+
"type": "tuple"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"internalType": "address",
|
|
972
|
+
"name": "from",
|
|
973
|
+
"type": "address"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"internalType": "address",
|
|
977
|
+
"name": "to",
|
|
978
|
+
"type": "address"
|
|
786
979
|
}
|
|
787
980
|
],
|
|
788
|
-
"
|
|
789
|
-
"
|
|
981
|
+
"name": "transferFromOrMint",
|
|
982
|
+
"outputs": [],
|
|
983
|
+
"stateMutability": "nonpayable",
|
|
790
984
|
"type": "function"
|
|
791
985
|
},
|
|
792
986
|
{
|
|
793
|
-
"constant": false,
|
|
794
987
|
"inputs": [
|
|
795
988
|
{
|
|
796
989
|
"internalType": "address",
|
|
@@ -800,47 +993,48 @@ export const RaribleToken_jsonAbi = [
|
|
|
800
993
|
],
|
|
801
994
|
"name": "transferOwnership",
|
|
802
995
|
"outputs": [],
|
|
803
|
-
"payable": false,
|
|
804
996
|
"stateMutability": "nonpayable",
|
|
805
997
|
"type": "function"
|
|
806
998
|
},
|
|
807
999
|
{
|
|
808
|
-
"constant": true,
|
|
809
1000
|
"inputs": [
|
|
810
1001
|
{
|
|
811
1002
|
"internalType": "uint256",
|
|
812
1003
|
"name": "_id",
|
|
813
1004
|
"type": "uint256"
|
|
814
|
-
}
|
|
815
|
-
],
|
|
816
|
-
"name": "uri",
|
|
817
|
-
"outputs": [
|
|
1005
|
+
},
|
|
818
1006
|
{
|
|
819
|
-
"internalType": "
|
|
820
|
-
"name": "",
|
|
821
|
-
"type": "
|
|
1007
|
+
"internalType": "address",
|
|
1008
|
+
"name": "_from",
|
|
1009
|
+
"type": "address"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"internalType": "address",
|
|
1013
|
+
"name": "_to",
|
|
1014
|
+
"type": "address"
|
|
822
1015
|
}
|
|
823
1016
|
],
|
|
824
|
-
"
|
|
825
|
-
"
|
|
1017
|
+
"name": "updateAccount",
|
|
1018
|
+
"outputs": [],
|
|
1019
|
+
"stateMutability": "nonpayable",
|
|
826
1020
|
"type": "function"
|
|
827
1021
|
}
|
|
828
1022
|
] as const satisfies Abi;
|
|
829
1023
|
|
|
830
1024
|
/**
|
|
831
|
-
* Type-safe ABI for
|
|
1025
|
+
* Type-safe ABI for ERC721RaribleMinimal
|
|
832
1026
|
*/
|
|
833
|
-
export type
|
|
1027
|
+
export type ERC721RaribleMinimalAbi = typeof ERC721RaribleMinimalAbi;
|
|
834
1028
|
|
|
835
1029
|
/**
|
|
836
|
-
* Contract instance type for
|
|
1030
|
+
* Contract instance type for ERC721RaribleMinimal
|
|
837
1031
|
*/
|
|
838
1032
|
// Use any for contract type to avoid complex viem type issues
|
|
839
1033
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
840
|
-
export type
|
|
1034
|
+
export type ERC721RaribleMinimalContract = any;
|
|
841
1035
|
|
|
842
1036
|
/**
|
|
843
|
-
*
|
|
1037
|
+
* ERC721RaribleMinimal Contract Class
|
|
844
1038
|
*
|
|
845
1039
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
846
1040
|
*
|
|
@@ -848,12 +1042,12 @@ export type RaribleToken_jsonContract = any;
|
|
|
848
1042
|
* ```typescript
|
|
849
1043
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
850
1044
|
* import { mainnet } from 'viem/chains';
|
|
851
|
-
* import {
|
|
1045
|
+
* import { ERC721RaribleMinimal } from 'ERC721RaribleMinimal';
|
|
852
1046
|
*
|
|
853
1047
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
854
1048
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
855
1049
|
*
|
|
856
|
-
* const contract = new
|
|
1050
|
+
* const contract = new ERC721RaribleMinimal('0x...', { publicClient, walletClient });
|
|
857
1051
|
*
|
|
858
1052
|
* // Read functions
|
|
859
1053
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -871,8 +1065,8 @@ export type RaribleToken_jsonContract = any;
|
|
|
871
1065
|
* });
|
|
872
1066
|
* ```
|
|
873
1067
|
*/
|
|
874
|
-
export class
|
|
875
|
-
private contract:
|
|
1068
|
+
export class ERC721RaribleMinimal {
|
|
1069
|
+
private contract: ERC721RaribleMinimalContract;
|
|
876
1070
|
private contractAddress: Address;
|
|
877
1071
|
private publicClient: PublicClient;
|
|
878
1072
|
|
|
@@ -887,7 +1081,7 @@ export class RaribleToken_json {
|
|
|
887
1081
|
this.publicClient = clients.publicClient;
|
|
888
1082
|
this.contract = getContract({
|
|
889
1083
|
address,
|
|
890
|
-
abi:
|
|
1084
|
+
abi: ERC721RaribleMinimalAbi,
|
|
891
1085
|
client: {
|
|
892
1086
|
public: clients.publicClient,
|
|
893
1087
|
wallet: clients.walletClient,
|
|
@@ -903,9 +1097,9 @@ export class RaribleToken_json {
|
|
|
903
1097
|
}
|
|
904
1098
|
|
|
905
1099
|
/**
|
|
906
|
-
* Get the underlying viem contract instance
|
|
1100
|
+
* Get the underlying viem contract instance.
|
|
907
1101
|
*/
|
|
908
|
-
getContract():
|
|
1102
|
+
getContract(): ERC721RaribleMinimalContract {
|
|
909
1103
|
return this.contract;
|
|
910
1104
|
}
|
|
911
1105
|
|
|
@@ -913,16 +1107,16 @@ export class RaribleToken_json {
|
|
|
913
1107
|
* balanceOf
|
|
914
1108
|
* view
|
|
915
1109
|
*/
|
|
916
|
-
async balanceOf(
|
|
917
|
-
return this.contract.read.balanceOf([
|
|
1110
|
+
async balanceOf(owner: `0x${string}`): Promise<bigint> {
|
|
1111
|
+
return this.contract.read.balanceOf([owner] as const) as Promise<bigint>;
|
|
918
1112
|
}
|
|
919
1113
|
|
|
920
1114
|
/**
|
|
921
|
-
*
|
|
1115
|
+
* baseURI
|
|
922
1116
|
* view
|
|
923
1117
|
*/
|
|
924
|
-
async
|
|
925
|
-
return this.contract.read.
|
|
1118
|
+
async baseURI(): Promise<string> {
|
|
1119
|
+
return this.contract.read.baseURI() as Promise<string>;
|
|
926
1120
|
}
|
|
927
1121
|
|
|
928
1122
|
/**
|
|
@@ -934,75 +1128,75 @@ export class RaribleToken_json {
|
|
|
934
1128
|
}
|
|
935
1129
|
|
|
936
1130
|
/**
|
|
937
|
-
*
|
|
1131
|
+
* getApproved
|
|
938
1132
|
* view
|
|
939
1133
|
*/
|
|
940
|
-
async
|
|
941
|
-
return this.contract.read.
|
|
1134
|
+
async getApproved(tokenId: bigint): Promise<`0x${string}`> {
|
|
1135
|
+
return this.contract.read.getApproved([tokenId] as const) as Promise<`0x${string}`>;
|
|
942
1136
|
}
|
|
943
1137
|
|
|
944
1138
|
/**
|
|
945
|
-
*
|
|
1139
|
+
* getCreators
|
|
946
1140
|
* view
|
|
947
1141
|
*/
|
|
948
|
-
async
|
|
949
|
-
return this.contract.read.
|
|
1142
|
+
async getCreators(_id: bigint): Promise<LibPart_Part[]> {
|
|
1143
|
+
return this.contract.read.getCreators([_id] as const) as Promise<LibPart_Part[]>;
|
|
950
1144
|
}
|
|
951
1145
|
|
|
952
1146
|
/**
|
|
953
|
-
*
|
|
1147
|
+
* getRaribleV2Royalties
|
|
954
1148
|
* view
|
|
955
1149
|
*/
|
|
956
|
-
async
|
|
957
|
-
return this.contract.read.
|
|
1150
|
+
async getRaribleV2Royalties(id: bigint): Promise<LibPart_Part[]> {
|
|
1151
|
+
return this.contract.read.getRaribleV2Royalties([id] as const) as Promise<LibPart_Part[]>;
|
|
958
1152
|
}
|
|
959
1153
|
|
|
960
1154
|
/**
|
|
961
|
-
*
|
|
1155
|
+
* isApprovedForAll
|
|
962
1156
|
* view
|
|
963
1157
|
*/
|
|
964
|
-
async
|
|
965
|
-
return this.contract.read.
|
|
1158
|
+
async isApprovedForAll(owner: `0x${string}`, operator: `0x${string}`): Promise<boolean> {
|
|
1159
|
+
return this.contract.read.isApprovedForAll([owner, operator] as const) as Promise<boolean>;
|
|
966
1160
|
}
|
|
967
1161
|
|
|
968
1162
|
/**
|
|
969
|
-
*
|
|
1163
|
+
* isMinter
|
|
970
1164
|
* view
|
|
971
1165
|
*/
|
|
972
|
-
async
|
|
973
|
-
return this.contract.read.
|
|
1166
|
+
async isMinter(account: `0x${string}`): Promise<boolean> {
|
|
1167
|
+
return this.contract.read.isMinter([account] as const) as Promise<boolean>;
|
|
974
1168
|
}
|
|
975
1169
|
|
|
976
1170
|
/**
|
|
977
|
-
*
|
|
1171
|
+
* name
|
|
978
1172
|
* view
|
|
979
1173
|
*/
|
|
980
|
-
async
|
|
981
|
-
return this.contract.read.
|
|
1174
|
+
async name(): Promise<string> {
|
|
1175
|
+
return this.contract.read.name() as Promise<string>;
|
|
982
1176
|
}
|
|
983
1177
|
|
|
984
1178
|
/**
|
|
985
|
-
*
|
|
1179
|
+
* owner
|
|
986
1180
|
* view
|
|
987
1181
|
*/
|
|
988
|
-
async
|
|
989
|
-
return this.contract.read.
|
|
1182
|
+
async owner(): Promise<`0x${string}`> {
|
|
1183
|
+
return this.contract.read.owner() as Promise<`0x${string}`>;
|
|
990
1184
|
}
|
|
991
1185
|
|
|
992
1186
|
/**
|
|
993
|
-
*
|
|
1187
|
+
* ownerOf
|
|
994
1188
|
* view
|
|
995
1189
|
*/
|
|
996
|
-
async
|
|
997
|
-
return this.contract.read.
|
|
1190
|
+
async ownerOf(tokenId: bigint): Promise<`0x${string}`> {
|
|
1191
|
+
return this.contract.read.ownerOf([tokenId] as const) as Promise<`0x${string}`>;
|
|
998
1192
|
}
|
|
999
1193
|
|
|
1000
1194
|
/**
|
|
1001
|
-
*
|
|
1195
|
+
* royaltyInfo
|
|
1002
1196
|
* view
|
|
1003
1197
|
*/
|
|
1004
|
-
async
|
|
1005
|
-
return this.contract.read.
|
|
1198
|
+
async royaltyInfo(id: bigint, _salePrice: bigint): Promise<[`0x${string}`, bigint]> {
|
|
1199
|
+
return this.contract.read.royaltyInfo([id, _salePrice] as const) as Promise<[`0x${string}`, bigint]>;
|
|
1006
1200
|
}
|
|
1007
1201
|
|
|
1008
1202
|
/**
|
|
@@ -1022,27 +1216,42 @@ export class RaribleToken_json {
|
|
|
1022
1216
|
}
|
|
1023
1217
|
|
|
1024
1218
|
/**
|
|
1025
|
-
*
|
|
1219
|
+
* tokenURI
|
|
1026
1220
|
* view
|
|
1027
1221
|
*/
|
|
1028
|
-
async
|
|
1029
|
-
return this.contract.read.
|
|
1222
|
+
async tokenURI(tokenId: bigint): Promise<string> {
|
|
1223
|
+
return this.contract.read.tokenURI([tokenId] as const) as Promise<string>;
|
|
1030
1224
|
}
|
|
1031
1225
|
|
|
1032
1226
|
/**
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1227
|
+
* __ERC721RaribleUser_init
|
|
1228
|
+
* nonpayable
|
|
1229
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1035
1230
|
*/
|
|
1036
|
-
async
|
|
1037
|
-
|
|
1231
|
+
async __ERC721RaribleUser_init(_name: string, _symbol: string, baseURI: string, contractURI: string, operators: `0x${string}`[], transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1232
|
+
accessList?: import('viem').AccessList;
|
|
1233
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1234
|
+
chain?: import('viem').Chain | null;
|
|
1235
|
+
dataSuffix?: `0x${string}`;
|
|
1236
|
+
gas?: bigint;
|
|
1237
|
+
gasPrice?: bigint;
|
|
1238
|
+
maxFeePerGas?: bigint;
|
|
1239
|
+
maxPriorityFeePerGas?: bigint;
|
|
1240
|
+
nonce?: number;
|
|
1241
|
+
value?: bigint;
|
|
1242
|
+
}): Promise<`0x${string}`> {
|
|
1243
|
+
if (!this.contract.write) {
|
|
1244
|
+
throw new Error('Wallet client is required for write operations');
|
|
1245
|
+
}
|
|
1246
|
+
return this.contract.write.__ERC721RaribleUser_init([_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy] as const, options) as Promise<`0x${string}`>;
|
|
1038
1247
|
}
|
|
1039
1248
|
|
|
1040
1249
|
/**
|
|
1041
|
-
*
|
|
1250
|
+
* __ERC721Rarible_init
|
|
1042
1251
|
* nonpayable
|
|
1043
1252
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1044
1253
|
*/
|
|
1045
|
-
async
|
|
1254
|
+
async __ERC721Rarible_init(_name: string, _symbol: string, baseURI: string, contractURI: string, transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1046
1255
|
accessList?: import('viem').AccessList;
|
|
1047
1256
|
authorizationList?: import('viem').AuthorizationList;
|
|
1048
1257
|
chain?: import('viem').Chain | null;
|
|
@@ -1057,15 +1266,15 @@ export class RaribleToken_json {
|
|
|
1057
1266
|
if (!this.contract.write) {
|
|
1058
1267
|
throw new Error('Wallet client is required for write operations');
|
|
1059
1268
|
}
|
|
1060
|
-
return this.contract.write.
|
|
1269
|
+
return this.contract.write.__ERC721Rarible_init([_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy] as const, options) as Promise<`0x${string}`>;
|
|
1061
1270
|
}
|
|
1062
1271
|
|
|
1063
1272
|
/**
|
|
1064
|
-
*
|
|
1273
|
+
* addMinter
|
|
1065
1274
|
* nonpayable
|
|
1066
1275
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1067
1276
|
*/
|
|
1068
|
-
async
|
|
1277
|
+
async addMinter(minter: `0x${string}`, options?: {
|
|
1069
1278
|
accessList?: import('viem').AccessList;
|
|
1070
1279
|
authorizationList?: import('viem').AuthorizationList;
|
|
1071
1280
|
chain?: import('viem').Chain | null;
|
|
@@ -1080,15 +1289,15 @@ export class RaribleToken_json {
|
|
|
1080
1289
|
if (!this.contract.write) {
|
|
1081
1290
|
throw new Error('Wallet client is required for write operations');
|
|
1082
1291
|
}
|
|
1083
|
-
return this.contract.write.
|
|
1292
|
+
return this.contract.write.addMinter([minter] as const, options) as Promise<`0x${string}`>;
|
|
1084
1293
|
}
|
|
1085
1294
|
|
|
1086
1295
|
/**
|
|
1087
|
-
*
|
|
1296
|
+
* addMinters
|
|
1088
1297
|
* nonpayable
|
|
1089
1298
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1090
1299
|
*/
|
|
1091
|
-
async
|
|
1300
|
+
async addMinters(minters: `0x${string}`[], options?: {
|
|
1092
1301
|
accessList?: import('viem').AccessList;
|
|
1093
1302
|
authorizationList?: import('viem').AuthorizationList;
|
|
1094
1303
|
chain?: import('viem').Chain | null;
|
|
@@ -1103,15 +1312,15 @@ export class RaribleToken_json {
|
|
|
1103
1312
|
if (!this.contract.write) {
|
|
1104
1313
|
throw new Error('Wallet client is required for write operations');
|
|
1105
1314
|
}
|
|
1106
|
-
return this.contract.write.
|
|
1315
|
+
return this.contract.write.addMinters([minters] as const, options) as Promise<`0x${string}`>;
|
|
1107
1316
|
}
|
|
1108
1317
|
|
|
1109
1318
|
/**
|
|
1110
|
-
*
|
|
1319
|
+
* approve
|
|
1111
1320
|
* nonpayable
|
|
1112
1321
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1113
1322
|
*/
|
|
1114
|
-
async
|
|
1323
|
+
async approve(to: `0x${string}`, tokenId: bigint, options?: {
|
|
1115
1324
|
accessList?: import('viem').AccessList;
|
|
1116
1325
|
authorizationList?: import('viem').AuthorizationList;
|
|
1117
1326
|
chain?: import('viem').Chain | null;
|
|
@@ -1126,15 +1335,15 @@ export class RaribleToken_json {
|
|
|
1126
1335
|
if (!this.contract.write) {
|
|
1127
1336
|
throw new Error('Wallet client is required for write operations');
|
|
1128
1337
|
}
|
|
1129
|
-
return this.contract.write.
|
|
1338
|
+
return this.contract.write.approve([to, tokenId] as const, options) as Promise<`0x${string}`>;
|
|
1130
1339
|
}
|
|
1131
1340
|
|
|
1132
1341
|
/**
|
|
1133
|
-
*
|
|
1342
|
+
* burn
|
|
1134
1343
|
* nonpayable
|
|
1135
1344
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1136
1345
|
*/
|
|
1137
|
-
async
|
|
1346
|
+
async burn(tokenId: bigint, options?: {
|
|
1138
1347
|
accessList?: import('viem').AccessList;
|
|
1139
1348
|
authorizationList?: import('viem').AuthorizationList;
|
|
1140
1349
|
chain?: import('viem').Chain | null;
|
|
@@ -1149,15 +1358,15 @@ export class RaribleToken_json {
|
|
|
1149
1358
|
if (!this.contract.write) {
|
|
1150
1359
|
throw new Error('Wallet client is required for write operations');
|
|
1151
1360
|
}
|
|
1152
|
-
return this.contract.write.
|
|
1361
|
+
return this.contract.write.burn([tokenId] as const, options) as Promise<`0x${string}`>;
|
|
1153
1362
|
}
|
|
1154
1363
|
|
|
1155
1364
|
/**
|
|
1156
|
-
*
|
|
1365
|
+
* mintAndTransfer
|
|
1157
1366
|
* nonpayable
|
|
1158
1367
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1159
1368
|
*/
|
|
1160
|
-
async
|
|
1369
|
+
async mintAndTransfer(data: LibERC721LazyMint_Mint721Data, to: `0x${string}`, options?: {
|
|
1161
1370
|
accessList?: import('viem').AccessList;
|
|
1162
1371
|
authorizationList?: import('viem').AuthorizationList;
|
|
1163
1372
|
chain?: import('viem').Chain | null;
|
|
@@ -1172,15 +1381,15 @@ export class RaribleToken_json {
|
|
|
1172
1381
|
if (!this.contract.write) {
|
|
1173
1382
|
throw new Error('Wallet client is required for write operations');
|
|
1174
1383
|
}
|
|
1175
|
-
return this.contract.write.
|
|
1384
|
+
return this.contract.write.mintAndTransfer([data, to] as const, options) as Promise<`0x${string}`>;
|
|
1176
1385
|
}
|
|
1177
1386
|
|
|
1178
1387
|
/**
|
|
1179
|
-
*
|
|
1388
|
+
* removeMinter
|
|
1180
1389
|
* nonpayable
|
|
1181
1390
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1182
1391
|
*/
|
|
1183
|
-
async
|
|
1392
|
+
async removeMinter(_minter: `0x${string}`, options?: {
|
|
1184
1393
|
accessList?: import('viem').AccessList;
|
|
1185
1394
|
authorizationList?: import('viem').AuthorizationList;
|
|
1186
1395
|
chain?: import('viem').Chain | null;
|
|
@@ -1195,15 +1404,15 @@ export class RaribleToken_json {
|
|
|
1195
1404
|
if (!this.contract.write) {
|
|
1196
1405
|
throw new Error('Wallet client is required for write operations');
|
|
1197
1406
|
}
|
|
1198
|
-
return this.contract.write.
|
|
1407
|
+
return this.contract.write.removeMinter([_minter] as const, options) as Promise<`0x${string}`>;
|
|
1199
1408
|
}
|
|
1200
1409
|
|
|
1201
1410
|
/**
|
|
1202
|
-
*
|
|
1411
|
+
* renounceOwnership
|
|
1203
1412
|
* nonpayable
|
|
1204
1413
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1205
1414
|
*/
|
|
1206
|
-
async
|
|
1415
|
+
async renounceOwnership(options?: {
|
|
1207
1416
|
accessList?: import('viem').AccessList;
|
|
1208
1417
|
authorizationList?: import('viem').AuthorizationList;
|
|
1209
1418
|
chain?: import('viem').Chain | null;
|
|
@@ -1218,7 +1427,38 @@ export class RaribleToken_json {
|
|
|
1218
1427
|
if (!this.contract.write) {
|
|
1219
1428
|
throw new Error('Wallet client is required for write operations');
|
|
1220
1429
|
}
|
|
1221
|
-
return this.contract.write.
|
|
1430
|
+
return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
async safeTransferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
|
|
1434
|
+
accessList?: import('viem').AccessList;
|
|
1435
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1436
|
+
chain?: import('viem').Chain | null;
|
|
1437
|
+
dataSuffix?: `0x${string}`;
|
|
1438
|
+
gas?: bigint;
|
|
1439
|
+
gasPrice?: bigint;
|
|
1440
|
+
maxFeePerGas?: bigint;
|
|
1441
|
+
maxPriorityFeePerGas?: bigint;
|
|
1442
|
+
nonce?: number;
|
|
1443
|
+
value?: bigint;
|
|
1444
|
+
}): Promise<`0x${string}`>;
|
|
1445
|
+
async safeTransferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, _data: `0x${string}`, options?: {
|
|
1446
|
+
accessList?: import('viem').AccessList;
|
|
1447
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1448
|
+
chain?: import('viem').Chain | null;
|
|
1449
|
+
dataSuffix?: `0x${string}`;
|
|
1450
|
+
gas?: bigint;
|
|
1451
|
+
gasPrice?: bigint;
|
|
1452
|
+
maxFeePerGas?: bigint;
|
|
1453
|
+
maxPriorityFeePerGas?: bigint;
|
|
1454
|
+
nonce?: number;
|
|
1455
|
+
value?: bigint;
|
|
1456
|
+
}): Promise<`0x${string}`>;
|
|
1457
|
+
async safeTransferFrom(...args: any[]): Promise<`0x${string}`> {
|
|
1458
|
+
if (!this.contract.write) {
|
|
1459
|
+
throw new Error('Wallet client is required for write operations');
|
|
1460
|
+
}
|
|
1461
|
+
return this.contract.write.safeTransferFrom(args as any) as Promise<`0x${string}`>;
|
|
1222
1462
|
}
|
|
1223
1463
|
|
|
1224
1464
|
/**
|
|
@@ -1226,7 +1466,30 @@ export class RaribleToken_json {
|
|
|
1226
1466
|
* nonpayable
|
|
1227
1467
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1228
1468
|
*/
|
|
1229
|
-
async setApprovalForAll(
|
|
1469
|
+
async setApprovalForAll(operator: `0x${string}`, approved: boolean, options?: {
|
|
1470
|
+
accessList?: import('viem').AccessList;
|
|
1471
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1472
|
+
chain?: import('viem').Chain | null;
|
|
1473
|
+
dataSuffix?: `0x${string}`;
|
|
1474
|
+
gas?: bigint;
|
|
1475
|
+
gasPrice?: bigint;
|
|
1476
|
+
maxFeePerGas?: bigint;
|
|
1477
|
+
maxPriorityFeePerGas?: bigint;
|
|
1478
|
+
nonce?: number;
|
|
1479
|
+
value?: bigint;
|
|
1480
|
+
}): Promise<`0x${string}`> {
|
|
1481
|
+
if (!this.contract.write) {
|
|
1482
|
+
throw new Error('Wallet client is required for write operations');
|
|
1483
|
+
}
|
|
1484
|
+
return this.contract.write.setApprovalForAll([operator, approved] as const, options) as Promise<`0x${string}`>;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* setBaseURI
|
|
1489
|
+
* nonpayable
|
|
1490
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1491
|
+
*/
|
|
1492
|
+
async setBaseURI(newBaseURI: string, options?: {
|
|
1230
1493
|
accessList?: import('viem').AccessList;
|
|
1231
1494
|
authorizationList?: import('viem').AuthorizationList;
|
|
1232
1495
|
chain?: import('viem').Chain | null;
|
|
@@ -1241,15 +1504,15 @@ export class RaribleToken_json {
|
|
|
1241
1504
|
if (!this.contract.write) {
|
|
1242
1505
|
throw new Error('Wallet client is required for write operations');
|
|
1243
1506
|
}
|
|
1244
|
-
return this.contract.write.
|
|
1507
|
+
return this.contract.write.setBaseURI([newBaseURI] as const, options) as Promise<`0x${string}`>;
|
|
1245
1508
|
}
|
|
1246
1509
|
|
|
1247
1510
|
/**
|
|
1248
|
-
*
|
|
1511
|
+
* transferFrom
|
|
1249
1512
|
* nonpayable
|
|
1250
1513
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1251
1514
|
*/
|
|
1252
|
-
async
|
|
1515
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
|
|
1253
1516
|
accessList?: import('viem').AccessList;
|
|
1254
1517
|
authorizationList?: import('viem').AuthorizationList;
|
|
1255
1518
|
chain?: import('viem').Chain | null;
|
|
@@ -1264,15 +1527,15 @@ export class RaribleToken_json {
|
|
|
1264
1527
|
if (!this.contract.write) {
|
|
1265
1528
|
throw new Error('Wallet client is required for write operations');
|
|
1266
1529
|
}
|
|
1267
|
-
return this.contract.write.
|
|
1530
|
+
return this.contract.write.transferFrom([from, to, tokenId] as const, options) as Promise<`0x${string}`>;
|
|
1268
1531
|
}
|
|
1269
1532
|
|
|
1270
1533
|
/**
|
|
1271
|
-
*
|
|
1534
|
+
* transferFromOrMint
|
|
1272
1535
|
* nonpayable
|
|
1273
1536
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1274
1537
|
*/
|
|
1275
|
-
async
|
|
1538
|
+
async transferFromOrMint(data: LibERC721LazyMint_Mint721Data, from: `0x${string}`, to: `0x${string}`, options?: {
|
|
1276
1539
|
accessList?: import('viem').AccessList;
|
|
1277
1540
|
authorizationList?: import('viem').AuthorizationList;
|
|
1278
1541
|
chain?: import('viem').Chain | null;
|
|
@@ -1287,7 +1550,7 @@ export class RaribleToken_json {
|
|
|
1287
1550
|
if (!this.contract.write) {
|
|
1288
1551
|
throw new Error('Wallet client is required for write operations');
|
|
1289
1552
|
}
|
|
1290
|
-
return this.contract.write.
|
|
1553
|
+
return this.contract.write.transferFromOrMint([data, from, to] as const, options) as Promise<`0x${string}`>;
|
|
1291
1554
|
}
|
|
1292
1555
|
|
|
1293
1556
|
/**
|
|
@@ -1313,6 +1576,29 @@ export class RaribleToken_json {
|
|
|
1313
1576
|
return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
|
|
1314
1577
|
}
|
|
1315
1578
|
|
|
1579
|
+
/**
|
|
1580
|
+
* updateAccount
|
|
1581
|
+
* nonpayable
|
|
1582
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1583
|
+
*/
|
|
1584
|
+
async updateAccount(_id: bigint, _from: `0x${string}`, _to: `0x${string}`, options?: {
|
|
1585
|
+
accessList?: import('viem').AccessList;
|
|
1586
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1587
|
+
chain?: import('viem').Chain | null;
|
|
1588
|
+
dataSuffix?: `0x${string}`;
|
|
1589
|
+
gas?: bigint;
|
|
1590
|
+
gasPrice?: bigint;
|
|
1591
|
+
maxFeePerGas?: bigint;
|
|
1592
|
+
maxPriorityFeePerGas?: bigint;
|
|
1593
|
+
nonce?: number;
|
|
1594
|
+
value?: bigint;
|
|
1595
|
+
}): Promise<`0x${string}`> {
|
|
1596
|
+
if (!this.contract.write) {
|
|
1597
|
+
throw new Error('Wallet client is required for write operations');
|
|
1598
|
+
}
|
|
1599
|
+
return this.contract.write.updateAccount([_id, _from, _to] as const, options) as Promise<`0x${string}`>;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1316
1602
|
|
|
1317
1603
|
|
|
1318
1604
|
/**
|
|
@@ -1330,11 +1616,11 @@ export class RaribleToken_json {
|
|
|
1330
1616
|
}
|
|
1331
1617
|
return {
|
|
1332
1618
|
/**
|
|
1333
|
-
* Simulate
|
|
1619
|
+
* Simulate __ERC721RaribleUser_init
|
|
1334
1620
|
* Returns gas estimate and result without sending transaction
|
|
1335
1621
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1336
1622
|
*/
|
|
1337
|
-
async
|
|
1623
|
+
async __ERC721RaribleUser_init(_name: string, _symbol: string, baseURI: string, contractURI: string, operators: `0x${string}`[], transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1338
1624
|
accessList?: import('viem').AccessList;
|
|
1339
1625
|
authorizationList?: import('viem').AuthorizationList;
|
|
1340
1626
|
chain?: import('viem').Chain | null;
|
|
@@ -1346,14 +1632,14 @@ export class RaribleToken_json {
|
|
|
1346
1632
|
nonce?: number;
|
|
1347
1633
|
value?: bigint;
|
|
1348
1634
|
}): Promise<void> {
|
|
1349
|
-
return contract.simulate.
|
|
1635
|
+
return contract.simulate.__ERC721RaribleUser_init([_name, _symbol, baseURI, contractURI, operators, transferProxy, lazyTransferProxy] as const, options) as Promise<void>;
|
|
1350
1636
|
},
|
|
1351
1637
|
/**
|
|
1352
|
-
* Simulate
|
|
1638
|
+
* Simulate __ERC721Rarible_init
|
|
1353
1639
|
* Returns gas estimate and result without sending transaction
|
|
1354
1640
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1355
1641
|
*/
|
|
1356
|
-
async
|
|
1642
|
+
async __ERC721Rarible_init(_name: string, _symbol: string, baseURI: string, contractURI: string, transferProxy: `0x${string}`, lazyTransferProxy: `0x${string}`, options?: {
|
|
1357
1643
|
accessList?: import('viem').AccessList;
|
|
1358
1644
|
authorizationList?: import('viem').AuthorizationList;
|
|
1359
1645
|
chain?: import('viem').Chain | null;
|
|
@@ -1365,14 +1651,14 @@ export class RaribleToken_json {
|
|
|
1365
1651
|
nonce?: number;
|
|
1366
1652
|
value?: bigint;
|
|
1367
1653
|
}): Promise<void> {
|
|
1368
|
-
return contract.simulate.
|
|
1654
|
+
return contract.simulate.__ERC721Rarible_init([_name, _symbol, baseURI, contractURI, transferProxy, lazyTransferProxy] as const, options) as Promise<void>;
|
|
1369
1655
|
},
|
|
1370
1656
|
/**
|
|
1371
|
-
* Simulate
|
|
1657
|
+
* Simulate addMinter
|
|
1372
1658
|
* Returns gas estimate and result without sending transaction
|
|
1373
1659
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1374
1660
|
*/
|
|
1375
|
-
async
|
|
1661
|
+
async addMinter(minter: `0x${string}`, options?: {
|
|
1376
1662
|
accessList?: import('viem').AccessList;
|
|
1377
1663
|
authorizationList?: import('viem').AuthorizationList;
|
|
1378
1664
|
chain?: import('viem').Chain | null;
|
|
@@ -1384,14 +1670,14 @@ export class RaribleToken_json {
|
|
|
1384
1670
|
nonce?: number;
|
|
1385
1671
|
value?: bigint;
|
|
1386
1672
|
}): Promise<void> {
|
|
1387
|
-
return contract.simulate.
|
|
1673
|
+
return contract.simulate.addMinter([minter] as const, options) as Promise<void>;
|
|
1388
1674
|
},
|
|
1389
1675
|
/**
|
|
1390
|
-
* Simulate
|
|
1676
|
+
* Simulate addMinters
|
|
1391
1677
|
* Returns gas estimate and result without sending transaction
|
|
1392
1678
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1393
1679
|
*/
|
|
1394
|
-
async
|
|
1680
|
+
async addMinters(minters: `0x${string}`[], options?: {
|
|
1395
1681
|
accessList?: import('viem').AccessList;
|
|
1396
1682
|
authorizationList?: import('viem').AuthorizationList;
|
|
1397
1683
|
chain?: import('viem').Chain | null;
|
|
@@ -1403,14 +1689,14 @@ export class RaribleToken_json {
|
|
|
1403
1689
|
nonce?: number;
|
|
1404
1690
|
value?: bigint;
|
|
1405
1691
|
}): Promise<void> {
|
|
1406
|
-
return contract.simulate.
|
|
1692
|
+
return contract.simulate.addMinters([minters] as const, options) as Promise<void>;
|
|
1407
1693
|
},
|
|
1408
1694
|
/**
|
|
1409
|
-
* Simulate
|
|
1695
|
+
* Simulate approve
|
|
1410
1696
|
* Returns gas estimate and result without sending transaction
|
|
1411
1697
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1412
1698
|
*/
|
|
1413
|
-
async
|
|
1699
|
+
async approve(to: `0x${string}`, tokenId: bigint, options?: {
|
|
1414
1700
|
accessList?: import('viem').AccessList;
|
|
1415
1701
|
authorizationList?: import('viem').AuthorizationList;
|
|
1416
1702
|
chain?: import('viem').Chain | null;
|
|
@@ -1422,14 +1708,14 @@ export class RaribleToken_json {
|
|
|
1422
1708
|
nonce?: number;
|
|
1423
1709
|
value?: bigint;
|
|
1424
1710
|
}): Promise<void> {
|
|
1425
|
-
return contract.simulate.
|
|
1711
|
+
return contract.simulate.approve([to, tokenId] as const, options) as Promise<void>;
|
|
1426
1712
|
},
|
|
1427
1713
|
/**
|
|
1428
|
-
* Simulate
|
|
1714
|
+
* Simulate burn
|
|
1429
1715
|
* Returns gas estimate and result without sending transaction
|
|
1430
1716
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1431
1717
|
*/
|
|
1432
|
-
async
|
|
1718
|
+
async burn(tokenId: bigint, options?: {
|
|
1433
1719
|
accessList?: import('viem').AccessList;
|
|
1434
1720
|
authorizationList?: import('viem').AuthorizationList;
|
|
1435
1721
|
chain?: import('viem').Chain | null;
|
|
@@ -1441,14 +1727,14 @@ export class RaribleToken_json {
|
|
|
1441
1727
|
nonce?: number;
|
|
1442
1728
|
value?: bigint;
|
|
1443
1729
|
}): Promise<void> {
|
|
1444
|
-
return contract.simulate.
|
|
1730
|
+
return contract.simulate.burn([tokenId] as const, options) as Promise<void>;
|
|
1445
1731
|
},
|
|
1446
1732
|
/**
|
|
1447
|
-
* Simulate
|
|
1733
|
+
* Simulate mintAndTransfer
|
|
1448
1734
|
* Returns gas estimate and result without sending transaction
|
|
1449
1735
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1450
1736
|
*/
|
|
1451
|
-
async
|
|
1737
|
+
async mintAndTransfer(data: LibERC721LazyMint_Mint721Data, to: `0x${string}`, options?: {
|
|
1452
1738
|
accessList?: import('viem').AccessList;
|
|
1453
1739
|
authorizationList?: import('viem').AuthorizationList;
|
|
1454
1740
|
chain?: import('viem').Chain | null;
|
|
@@ -1460,14 +1746,33 @@ export class RaribleToken_json {
|
|
|
1460
1746
|
nonce?: number;
|
|
1461
1747
|
value?: bigint;
|
|
1462
1748
|
}): Promise<void> {
|
|
1463
|
-
return contract.simulate.
|
|
1749
|
+
return contract.simulate.mintAndTransfer([data, to] as const, options) as Promise<void>;
|
|
1464
1750
|
},
|
|
1465
1751
|
/**
|
|
1466
|
-
* Simulate
|
|
1752
|
+
* Simulate removeMinter
|
|
1753
|
+
* Returns gas estimate and result without sending transaction
|
|
1754
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1755
|
+
*/
|
|
1756
|
+
async removeMinter(_minter: `0x${string}`, options?: {
|
|
1757
|
+
accessList?: import('viem').AccessList;
|
|
1758
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1759
|
+
chain?: import('viem').Chain | null;
|
|
1760
|
+
dataSuffix?: `0x${string}`;
|
|
1761
|
+
gas?: bigint;
|
|
1762
|
+
gasPrice?: bigint;
|
|
1763
|
+
maxFeePerGas?: bigint;
|
|
1764
|
+
maxPriorityFeePerGas?: bigint;
|
|
1765
|
+
nonce?: number;
|
|
1766
|
+
value?: bigint;
|
|
1767
|
+
}): Promise<void> {
|
|
1768
|
+
return contract.simulate.removeMinter([_minter] as const, options) as Promise<void>;
|
|
1769
|
+
},
|
|
1770
|
+
/**
|
|
1771
|
+
* Simulate renounceOwnership
|
|
1467
1772
|
* Returns gas estimate and result without sending transaction
|
|
1468
1773
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1469
1774
|
*/
|
|
1470
|
-
async
|
|
1775
|
+
async renounceOwnership(options?: {
|
|
1471
1776
|
accessList?: import('viem').AccessList;
|
|
1472
1777
|
authorizationList?: import('viem').AuthorizationList;
|
|
1473
1778
|
chain?: import('viem').Chain | null;
|
|
@@ -1479,14 +1784,42 @@ export class RaribleToken_json {
|
|
|
1479
1784
|
nonce?: number;
|
|
1480
1785
|
value?: bigint;
|
|
1481
1786
|
}): Promise<void> {
|
|
1482
|
-
return contract.simulate.
|
|
1787
|
+
return contract.simulate.renounceOwnership(options) as Promise<void>;
|
|
1788
|
+
},
|
|
1789
|
+
/**
|
|
1790
|
+
* Simulate safeTransferFrom
|
|
1791
|
+
* Returns gas estimate and result without sending transaction
|
|
1792
|
+
* Supports multiple overloads: (address, address, uint256), (address, address, uint256, bytes)
|
|
1793
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1794
|
+
*/
|
|
1795
|
+
async safeTransferFrom(...args: any[]): Promise<any> {
|
|
1796
|
+
return contract.simulate.safeTransferFrom(args as any) as Promise<any>;
|
|
1483
1797
|
},
|
|
1484
1798
|
/**
|
|
1485
1799
|
* Simulate setApprovalForAll
|
|
1486
1800
|
* Returns gas estimate and result without sending transaction
|
|
1487
1801
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1488
1802
|
*/
|
|
1489
|
-
async setApprovalForAll(
|
|
1803
|
+
async setApprovalForAll(operator: `0x${string}`, approved: boolean, options?: {
|
|
1804
|
+
accessList?: import('viem').AccessList;
|
|
1805
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1806
|
+
chain?: import('viem').Chain | null;
|
|
1807
|
+
dataSuffix?: `0x${string}`;
|
|
1808
|
+
gas?: bigint;
|
|
1809
|
+
gasPrice?: bigint;
|
|
1810
|
+
maxFeePerGas?: bigint;
|
|
1811
|
+
maxPriorityFeePerGas?: bigint;
|
|
1812
|
+
nonce?: number;
|
|
1813
|
+
value?: bigint;
|
|
1814
|
+
}): Promise<void> {
|
|
1815
|
+
return contract.simulate.setApprovalForAll([operator, approved] as const, options) as Promise<void>;
|
|
1816
|
+
},
|
|
1817
|
+
/**
|
|
1818
|
+
* Simulate setBaseURI
|
|
1819
|
+
* Returns gas estimate and result without sending transaction
|
|
1820
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1821
|
+
*/
|
|
1822
|
+
async setBaseURI(newBaseURI: string, options?: {
|
|
1490
1823
|
accessList?: import('viem').AccessList;
|
|
1491
1824
|
authorizationList?: import('viem').AuthorizationList;
|
|
1492
1825
|
chain?: import('viem').Chain | null;
|
|
@@ -1498,14 +1831,14 @@ export class RaribleToken_json {
|
|
|
1498
1831
|
nonce?: number;
|
|
1499
1832
|
value?: bigint;
|
|
1500
1833
|
}): Promise<void> {
|
|
1501
|
-
return contract.simulate.
|
|
1834
|
+
return contract.simulate.setBaseURI([newBaseURI] as const, options) as Promise<void>;
|
|
1502
1835
|
},
|
|
1503
1836
|
/**
|
|
1504
|
-
* Simulate
|
|
1837
|
+
* Simulate transferFrom
|
|
1505
1838
|
* Returns gas estimate and result without sending transaction
|
|
1506
1839
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1507
1840
|
*/
|
|
1508
|
-
async
|
|
1841
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
|
|
1509
1842
|
accessList?: import('viem').AccessList;
|
|
1510
1843
|
authorizationList?: import('viem').AuthorizationList;
|
|
1511
1844
|
chain?: import('viem').Chain | null;
|
|
@@ -1517,14 +1850,14 @@ export class RaribleToken_json {
|
|
|
1517
1850
|
nonce?: number;
|
|
1518
1851
|
value?: bigint;
|
|
1519
1852
|
}): Promise<void> {
|
|
1520
|
-
return contract.simulate.
|
|
1853
|
+
return contract.simulate.transferFrom([from, to, tokenId] as const, options) as Promise<void>;
|
|
1521
1854
|
},
|
|
1522
1855
|
/**
|
|
1523
|
-
* Simulate
|
|
1856
|
+
* Simulate transferFromOrMint
|
|
1524
1857
|
* Returns gas estimate and result without sending transaction
|
|
1525
1858
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1526
1859
|
*/
|
|
1527
|
-
async
|
|
1860
|
+
async transferFromOrMint(data: LibERC721LazyMint_Mint721Data, from: `0x${string}`, to: `0x${string}`, options?: {
|
|
1528
1861
|
accessList?: import('viem').AccessList;
|
|
1529
1862
|
authorizationList?: import('viem').AuthorizationList;
|
|
1530
1863
|
chain?: import('viem').Chain | null;
|
|
@@ -1536,7 +1869,7 @@ export class RaribleToken_json {
|
|
|
1536
1869
|
nonce?: number;
|
|
1537
1870
|
value?: bigint;
|
|
1538
1871
|
}): Promise<void> {
|
|
1539
|
-
return contract.simulate.
|
|
1872
|
+
return contract.simulate.transferFromOrMint([data, from, to] as const, options) as Promise<void>;
|
|
1540
1873
|
},
|
|
1541
1874
|
/**
|
|
1542
1875
|
* Simulate transferOwnership
|
|
@@ -1556,6 +1889,25 @@ export class RaribleToken_json {
|
|
|
1556
1889
|
value?: bigint;
|
|
1557
1890
|
}): Promise<void> {
|
|
1558
1891
|
return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
|
|
1892
|
+
},
|
|
1893
|
+
/**
|
|
1894
|
+
* Simulate updateAccount
|
|
1895
|
+
* Returns gas estimate and result without sending transaction
|
|
1896
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1897
|
+
*/
|
|
1898
|
+
async updateAccount(_id: bigint, _from: `0x${string}`, _to: `0x${string}`, options?: {
|
|
1899
|
+
accessList?: import('viem').AccessList;
|
|
1900
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1901
|
+
chain?: import('viem').Chain | null;
|
|
1902
|
+
dataSuffix?: `0x${string}`;
|
|
1903
|
+
gas?: bigint;
|
|
1904
|
+
gasPrice?: bigint;
|
|
1905
|
+
maxFeePerGas?: bigint;
|
|
1906
|
+
maxPriorityFeePerGas?: bigint;
|
|
1907
|
+
nonce?: number;
|
|
1908
|
+
value?: bigint;
|
|
1909
|
+
}): Promise<void> {
|
|
1910
|
+
return contract.simulate.updateAccount([_id, _from, _to] as const, options) as Promise<void>;
|
|
1559
1911
|
}
|
|
1560
1912
|
};
|
|
1561
1913
|
}
|
|
@@ -1574,18 +1926,37 @@ export class RaribleToken_json {
|
|
|
1574
1926
|
*/
|
|
1575
1927
|
get watch() {
|
|
1576
1928
|
return {
|
|
1929
|
+
/**
|
|
1930
|
+
* Watch Approval events
|
|
1931
|
+
* @param callback Function to call when event is emitted
|
|
1932
|
+
* @param filter Optional filter for indexed parameters
|
|
1933
|
+
* @returns Unwatch function to stop listening
|
|
1934
|
+
*/
|
|
1935
|
+
Approval: (callback: (event: { owner: `0x${string}`; approved: `0x${string}`; tokenId: bigint }) => void, filter?: { owner?: `0x${string}` | `0x${string}`[] | null; approved?: `0x${string}` | `0x${string}`[] | null; tokenId?: bigint | bigint[] | null }) => {
|
|
1936
|
+
return this.publicClient.watchContractEvent({
|
|
1937
|
+
address: this.contractAddress,
|
|
1938
|
+
abi: ERC721RaribleMinimalAbi,
|
|
1939
|
+
eventName: 'Approval',
|
|
1940
|
+
args: filter as any,
|
|
1941
|
+
onLogs: (logs: any[]) => {
|
|
1942
|
+
logs.forEach((log: any) => {
|
|
1943
|
+
callback(log.args as any);
|
|
1944
|
+
});
|
|
1945
|
+
},
|
|
1946
|
+
}) as () => void;
|
|
1947
|
+
},
|
|
1577
1948
|
/**
|
|
1578
1949
|
* Watch ApprovalForAll events
|
|
1579
1950
|
* @param callback Function to call when event is emitted
|
|
1580
1951
|
* @param filter Optional filter for indexed parameters
|
|
1581
1952
|
* @returns Unwatch function to stop listening
|
|
1582
1953
|
*/
|
|
1583
|
-
ApprovalForAll: (callback: (event: {
|
|
1954
|
+
ApprovalForAll: (callback: (event: { owner: `0x${string}`; operator: `0x${string}`; approved: boolean }) => void, filter?: { owner?: `0x${string}` | `0x${string}`[] | null; operator?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
1584
1955
|
return this.publicClient.watchContractEvent({
|
|
1585
1956
|
address: this.contractAddress,
|
|
1586
|
-
abi:
|
|
1957
|
+
abi: ERC721RaribleMinimalAbi,
|
|
1587
1958
|
eventName: 'ApprovalForAll',
|
|
1588
|
-
args: filter,
|
|
1959
|
+
args: filter as any,
|
|
1589
1960
|
onLogs: (logs: any[]) => {
|
|
1590
1961
|
logs.forEach((log: any) => {
|
|
1591
1962
|
callback(log.args as any);
|
|
@@ -1594,17 +1965,55 @@ export class RaribleToken_json {
|
|
|
1594
1965
|
}) as () => void;
|
|
1595
1966
|
},
|
|
1596
1967
|
/**
|
|
1597
|
-
* Watch
|
|
1968
|
+
* Watch BaseUriChanged events
|
|
1598
1969
|
* @param callback Function to call when event is emitted
|
|
1599
1970
|
* @param filter Optional filter for indexed parameters
|
|
1600
1971
|
* @returns Unwatch function to stop listening
|
|
1601
1972
|
*/
|
|
1602
|
-
|
|
1973
|
+
BaseUriChanged: (callback: (event: { newBaseURI: string }) => void) => {
|
|
1603
1974
|
return this.publicClient.watchContractEvent({
|
|
1604
1975
|
address: this.contractAddress,
|
|
1605
|
-
abi:
|
|
1606
|
-
eventName: '
|
|
1607
|
-
|
|
1976
|
+
abi: ERC721RaribleMinimalAbi,
|
|
1977
|
+
eventName: 'BaseUriChanged',
|
|
1978
|
+
|
|
1979
|
+
onLogs: (logs: any[]) => {
|
|
1980
|
+
logs.forEach((log: any) => {
|
|
1981
|
+
callback(log.args as any);
|
|
1982
|
+
});
|
|
1983
|
+
},
|
|
1984
|
+
}) as () => void;
|
|
1985
|
+
},
|
|
1986
|
+
/**
|
|
1987
|
+
* Watch CreateERC721Rarible events
|
|
1988
|
+
* @param callback Function to call when event is emitted
|
|
1989
|
+
* @param filter Optional filter for indexed parameters
|
|
1990
|
+
* @returns Unwatch function to stop listening
|
|
1991
|
+
*/
|
|
1992
|
+
CreateERC721Rarible: (callback: (event: { owner: `0x${string}`; name: string; symbol: string }) => void) => {
|
|
1993
|
+
return this.publicClient.watchContractEvent({
|
|
1994
|
+
address: this.contractAddress,
|
|
1995
|
+
abi: ERC721RaribleMinimalAbi,
|
|
1996
|
+
eventName: 'CreateERC721Rarible',
|
|
1997
|
+
|
|
1998
|
+
onLogs: (logs: any[]) => {
|
|
1999
|
+
logs.forEach((log: any) => {
|
|
2000
|
+
callback(log.args as any);
|
|
2001
|
+
});
|
|
2002
|
+
},
|
|
2003
|
+
}) as () => void;
|
|
2004
|
+
},
|
|
2005
|
+
/**
|
|
2006
|
+
* Watch CreateERC721RaribleUser events
|
|
2007
|
+
* @param callback Function to call when event is emitted
|
|
2008
|
+
* @param filter Optional filter for indexed parameters
|
|
2009
|
+
* @returns Unwatch function to stop listening
|
|
2010
|
+
*/
|
|
2011
|
+
CreateERC721RaribleUser: (callback: (event: { owner: `0x${string}`; name: string; symbol: string }) => void) => {
|
|
2012
|
+
return this.publicClient.watchContractEvent({
|
|
2013
|
+
address: this.contractAddress,
|
|
2014
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2015
|
+
eventName: 'CreateERC721RaribleUser',
|
|
2016
|
+
|
|
1608
2017
|
onLogs: (logs: any[]) => {
|
|
1609
2018
|
logs.forEach((log: any) => {
|
|
1610
2019
|
callback(log.args as any);
|
|
@@ -1613,16 +2022,16 @@ export class RaribleToken_json {
|
|
|
1613
2022
|
}) as () => void;
|
|
1614
2023
|
},
|
|
1615
2024
|
/**
|
|
1616
|
-
* Watch
|
|
2025
|
+
* Watch Creators events
|
|
1617
2026
|
* @param callback Function to call when event is emitted
|
|
1618
2027
|
* @param filter Optional filter for indexed parameters
|
|
1619
2028
|
* @returns Unwatch function to stop listening
|
|
1620
2029
|
*/
|
|
1621
|
-
|
|
2030
|
+
Creators: (callback: (event: { tokenId: bigint; creators: LibPart_Part[] }) => void) => {
|
|
1622
2031
|
return this.publicClient.watchContractEvent({
|
|
1623
2032
|
address: this.contractAddress,
|
|
1624
|
-
abi:
|
|
1625
|
-
eventName: '
|
|
2033
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2034
|
+
eventName: 'Creators',
|
|
1626
2035
|
|
|
1627
2036
|
onLogs: (logs: any[]) => {
|
|
1628
2037
|
logs.forEach((log: any) => {
|
|
@@ -1632,17 +2041,17 @@ export class RaribleToken_json {
|
|
|
1632
2041
|
}) as () => void;
|
|
1633
2042
|
},
|
|
1634
2043
|
/**
|
|
1635
|
-
* Watch
|
|
2044
|
+
* Watch DefaultApproval events
|
|
1636
2045
|
* @param callback Function to call when event is emitted
|
|
1637
2046
|
* @param filter Optional filter for indexed parameters
|
|
1638
2047
|
* @returns Unwatch function to stop listening
|
|
1639
2048
|
*/
|
|
1640
|
-
|
|
2049
|
+
DefaultApproval: (callback: (event: { operator: `0x${string}`; hasApproval: boolean }) => void, filter?: { operator?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
1641
2050
|
return this.publicClient.watchContractEvent({
|
|
1642
2051
|
address: this.contractAddress,
|
|
1643
|
-
abi:
|
|
1644
|
-
eventName: '
|
|
1645
|
-
args: filter,
|
|
2052
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2053
|
+
eventName: 'DefaultApproval',
|
|
2054
|
+
args: filter as any,
|
|
1646
2055
|
onLogs: (logs: any[]) => {
|
|
1647
2056
|
logs.forEach((log: any) => {
|
|
1648
2057
|
callback(log.args as any);
|
|
@@ -1651,17 +2060,17 @@ export class RaribleToken_json {
|
|
|
1651
2060
|
}) as () => void;
|
|
1652
2061
|
},
|
|
1653
2062
|
/**
|
|
1654
|
-
* Watch
|
|
2063
|
+
* Watch MinterStatusChanged events
|
|
1655
2064
|
* @param callback Function to call when event is emitted
|
|
1656
2065
|
* @param filter Optional filter for indexed parameters
|
|
1657
2066
|
* @returns Unwatch function to stop listening
|
|
1658
2067
|
*/
|
|
1659
|
-
|
|
2068
|
+
MinterStatusChanged: (callback: (event: { minter: `0x${string}`; status: boolean }) => void, filter?: { minter?: `0x${string}` | `0x${string}`[] | null; status?: boolean | boolean[] | null }) => {
|
|
1660
2069
|
return this.publicClient.watchContractEvent({
|
|
1661
2070
|
address: this.contractAddress,
|
|
1662
|
-
abi:
|
|
1663
|
-
eventName: '
|
|
1664
|
-
args: filter,
|
|
2071
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2072
|
+
eventName: 'MinterStatusChanged',
|
|
2073
|
+
args: filter as any,
|
|
1665
2074
|
onLogs: (logs: any[]) => {
|
|
1666
2075
|
logs.forEach((log: any) => {
|
|
1667
2076
|
callback(log.args as any);
|
|
@@ -1670,17 +2079,17 @@ export class RaribleToken_json {
|
|
|
1670
2079
|
}) as () => void;
|
|
1671
2080
|
},
|
|
1672
2081
|
/**
|
|
1673
|
-
* Watch
|
|
2082
|
+
* Watch OwnershipTransferred events
|
|
1674
2083
|
* @param callback Function to call when event is emitted
|
|
1675
2084
|
* @param filter Optional filter for indexed parameters
|
|
1676
2085
|
* @returns Unwatch function to stop listening
|
|
1677
2086
|
*/
|
|
1678
|
-
|
|
2087
|
+
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner?: `0x${string}` | `0x${string}`[] | null; newOwner?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
1679
2088
|
return this.publicClient.watchContractEvent({
|
|
1680
2089
|
address: this.contractAddress,
|
|
1681
|
-
abi:
|
|
1682
|
-
eventName: '
|
|
1683
|
-
args: filter,
|
|
2090
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2091
|
+
eventName: 'OwnershipTransferred',
|
|
2092
|
+
args: filter as any,
|
|
1684
2093
|
onLogs: (logs: any[]) => {
|
|
1685
2094
|
logs.forEach((log: any) => {
|
|
1686
2095
|
callback(log.args as any);
|
|
@@ -1689,17 +2098,17 @@ export class RaribleToken_json {
|
|
|
1689
2098
|
}) as () => void;
|
|
1690
2099
|
},
|
|
1691
2100
|
/**
|
|
1692
|
-
* Watch
|
|
2101
|
+
* Watch RoyaltiesSet events
|
|
1693
2102
|
* @param callback Function to call when event is emitted
|
|
1694
2103
|
* @param filter Optional filter for indexed parameters
|
|
1695
2104
|
* @returns Unwatch function to stop listening
|
|
1696
2105
|
*/
|
|
1697
|
-
|
|
2106
|
+
RoyaltiesSet: (callback: (event: { tokenId: bigint; royalties: LibPart_Part[] }) => void) => {
|
|
1698
2107
|
return this.publicClient.watchContractEvent({
|
|
1699
2108
|
address: this.contractAddress,
|
|
1700
|
-
abi:
|
|
1701
|
-
eventName: '
|
|
1702
|
-
|
|
2109
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2110
|
+
eventName: 'RoyaltiesSet',
|
|
2111
|
+
|
|
1703
2112
|
onLogs: (logs: any[]) => {
|
|
1704
2113
|
logs.forEach((log: any) => {
|
|
1705
2114
|
callback(log.args as any);
|
|
@@ -1708,17 +2117,17 @@ export class RaribleToken_json {
|
|
|
1708
2117
|
}) as () => void;
|
|
1709
2118
|
},
|
|
1710
2119
|
/**
|
|
1711
|
-
* Watch
|
|
2120
|
+
* Watch Transfer events
|
|
1712
2121
|
* @param callback Function to call when event is emitted
|
|
1713
2122
|
* @param filter Optional filter for indexed parameters
|
|
1714
2123
|
* @returns Unwatch function to stop listening
|
|
1715
2124
|
*/
|
|
1716
|
-
|
|
2125
|
+
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; tokenId: bigint }) => void, filter?: { from?: `0x${string}` | `0x${string}`[] | null; to?: `0x${string}` | `0x${string}`[] | null; tokenId?: bigint | bigint[] | null }) => {
|
|
1717
2126
|
return this.publicClient.watchContractEvent({
|
|
1718
2127
|
address: this.contractAddress,
|
|
1719
|
-
abi:
|
|
1720
|
-
eventName: '
|
|
1721
|
-
args: filter,
|
|
2128
|
+
abi: ERC721RaribleMinimalAbi,
|
|
2129
|
+
eventName: 'Transfer',
|
|
2130
|
+
args: filter as any,
|
|
1722
2131
|
onLogs: (logs: any[]) => {
|
|
1723
2132
|
logs.forEach((log: any) => {
|
|
1724
2133
|
callback(log.args as any);
|