@campnetwork/origin 1.1.0 → 1.2.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/dist/core.cjs +102 -73
- package/dist/core.d.ts +36 -14
- package/dist/core.esm.d.ts +36 -14
- package/dist/core.esm.js +123 -94
- package/dist/react/index.esm.d.ts +36 -14
- package/dist/react/index.esm.js +2111 -1514
- package/package.json +1 -1
package/dist/react/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import React, { createContext, useState, useContext, useEffect, useLayoutEffect, useRef, useSyncExternalStore } from 'react';
|
|
3
|
-
import { custom, createWalletClient, createPublicClient, http, erc20Abi, getAbiItem, zeroAddress, formatEther, formatUnits, checksumAddress, parseEther } from 'viem';
|
|
3
|
+
import { custom, createWalletClient, createPublicClient, http, erc20Abi, getAbiItem, zeroAddress, formatEther, formatUnits, encodeFunctionData, checksumAddress, parseEther } from 'viem';
|
|
4
4
|
import { toAccount } from 'viem/accounts';
|
|
5
5
|
import { createSiweMessage } from 'viem/siwe';
|
|
6
6
|
import axios from 'axios';
|
|
@@ -175,2237 +175,2627 @@ const setChain = (chain) => {
|
|
|
175
175
|
|
|
176
176
|
var ipnftMainnetAbi = [
|
|
177
177
|
{
|
|
178
|
+
type: "function",
|
|
179
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
178
180
|
inputs: [
|
|
181
|
+
],
|
|
182
|
+
outputs: [
|
|
179
183
|
{
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
internalType: "string",
|
|
186
|
-
name: "symbol_",
|
|
187
|
-
type: "string"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
internalType: "uint256",
|
|
191
|
-
name: "maxTermDuration_",
|
|
192
|
-
type: "uint256"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
internalType: "address",
|
|
196
|
-
name: "signer_",
|
|
197
|
-
type: "address"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
internalType: "address",
|
|
201
|
-
name: "wCAMP_",
|
|
202
|
-
type: "address"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
internalType: "uint256",
|
|
206
|
-
name: "minTermDuration_",
|
|
207
|
-
type: "uint256"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
internalType: "uint256",
|
|
211
|
-
name: "minPrice_",
|
|
212
|
-
type: "uint256"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
internalType: "uint256",
|
|
216
|
-
name: "maxRoyaltyBps_",
|
|
217
|
-
type: "uint256"
|
|
184
|
+
name: "",
|
|
185
|
+
type: "string",
|
|
186
|
+
internalType: "string"
|
|
218
187
|
}
|
|
219
188
|
],
|
|
220
|
-
stateMutability: "
|
|
221
|
-
type: "constructor"
|
|
189
|
+
stateMutability: "view"
|
|
222
190
|
},
|
|
223
191
|
{
|
|
192
|
+
type: "function",
|
|
193
|
+
name: "approve",
|
|
224
194
|
inputs: [
|
|
225
195
|
{
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
196
|
+
name: "to",
|
|
197
|
+
type: "address",
|
|
198
|
+
internalType: "address"
|
|
229
199
|
},
|
|
230
200
|
{
|
|
231
|
-
internalType: "uint256",
|
|
232
201
|
name: "tokenId",
|
|
233
|
-
type: "uint256"
|
|
234
|
-
|
|
235
|
-
{
|
|
236
|
-
internalType: "address",
|
|
237
|
-
name: "owner",
|
|
238
|
-
type: "address"
|
|
202
|
+
type: "uint256",
|
|
203
|
+
internalType: "uint256"
|
|
239
204
|
}
|
|
240
205
|
],
|
|
241
|
-
|
|
242
|
-
|
|
206
|
+
outputs: [
|
|
207
|
+
],
|
|
208
|
+
stateMutability: "nonpayable"
|
|
243
209
|
},
|
|
244
210
|
{
|
|
211
|
+
type: "function",
|
|
212
|
+
name: "balanceOf",
|
|
245
213
|
inputs: [
|
|
246
214
|
{
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
215
|
+
name: "owner",
|
|
216
|
+
type: "address",
|
|
217
|
+
internalType: "address"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
outputs: [
|
|
251
221
|
{
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
222
|
+
name: "",
|
|
223
|
+
type: "uint256",
|
|
224
|
+
internalType: "uint256"
|
|
255
225
|
}
|
|
256
226
|
],
|
|
257
|
-
|
|
258
|
-
type: "error"
|
|
227
|
+
stateMutability: "view"
|
|
259
228
|
},
|
|
260
229
|
{
|
|
230
|
+
type: "function",
|
|
231
|
+
name: "dataStatus",
|
|
261
232
|
inputs: [
|
|
262
233
|
{
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
234
|
+
name: "tokenId",
|
|
235
|
+
type: "uint256",
|
|
236
|
+
internalType: "uint256"
|
|
266
237
|
}
|
|
267
238
|
],
|
|
268
|
-
|
|
269
|
-
type: "error"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
inputs: [
|
|
239
|
+
outputs: [
|
|
273
240
|
{
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
241
|
+
name: "",
|
|
242
|
+
type: "uint8",
|
|
243
|
+
internalType: "enum IIpNFT.DataStatus"
|
|
277
244
|
}
|
|
278
245
|
],
|
|
279
|
-
|
|
280
|
-
type: "error"
|
|
246
|
+
stateMutability: "view"
|
|
281
247
|
},
|
|
282
248
|
{
|
|
249
|
+
type: "function",
|
|
250
|
+
name: "disputeModule",
|
|
283
251
|
inputs: [
|
|
252
|
+
],
|
|
253
|
+
outputs: [
|
|
284
254
|
{
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
255
|
+
name: "",
|
|
256
|
+
type: "address",
|
|
257
|
+
internalType: "address"
|
|
288
258
|
}
|
|
289
259
|
],
|
|
290
|
-
|
|
291
|
-
type: "error"
|
|
260
|
+
stateMutability: "view"
|
|
292
261
|
},
|
|
293
262
|
{
|
|
263
|
+
type: "function",
|
|
264
|
+
name: "erc6551Account",
|
|
294
265
|
inputs: [
|
|
266
|
+
],
|
|
267
|
+
outputs: [
|
|
295
268
|
{
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
269
|
+
name: "",
|
|
270
|
+
type: "address",
|
|
271
|
+
internalType: "contract IERC6551Account"
|
|
299
272
|
}
|
|
300
273
|
],
|
|
301
|
-
|
|
302
|
-
type: "error"
|
|
274
|
+
stateMutability: "view"
|
|
303
275
|
},
|
|
304
276
|
{
|
|
277
|
+
type: "function",
|
|
278
|
+
name: "erc6551Registry",
|
|
305
279
|
inputs: [
|
|
280
|
+
],
|
|
281
|
+
outputs: [
|
|
306
282
|
{
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
283
|
+
name: "",
|
|
284
|
+
type: "address",
|
|
285
|
+
internalType: "contract IERC6551Registry"
|
|
310
286
|
}
|
|
311
287
|
],
|
|
312
|
-
|
|
313
|
-
type: "error"
|
|
288
|
+
stateMutability: "view"
|
|
314
289
|
},
|
|
315
290
|
{
|
|
291
|
+
type: "function",
|
|
292
|
+
name: "finalizeDelete",
|
|
316
293
|
inputs: [
|
|
317
294
|
{
|
|
318
|
-
internalType: "uint256",
|
|
319
295
|
name: "tokenId",
|
|
320
|
-
type: "uint256"
|
|
296
|
+
type: "uint256",
|
|
297
|
+
internalType: "uint256"
|
|
321
298
|
}
|
|
322
299
|
],
|
|
323
|
-
|
|
324
|
-
type: "error"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
inputs: [
|
|
328
|
-
],
|
|
329
|
-
name: "EnforcedPause",
|
|
330
|
-
type: "error"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
inputs: [
|
|
334
|
-
],
|
|
335
|
-
name: "ExpectedPause",
|
|
336
|
-
type: "error"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
inputs: [
|
|
340
|
-
],
|
|
341
|
-
name: "InvalidDeadline",
|
|
342
|
-
type: "error"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
inputs: [
|
|
346
|
-
],
|
|
347
|
-
name: "InvalidDuration",
|
|
348
|
-
type: "error"
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
inputs: [
|
|
352
|
-
],
|
|
353
|
-
name: "InvalidPaymentToken",
|
|
354
|
-
type: "error"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
inputs: [
|
|
358
|
-
],
|
|
359
|
-
name: "InvalidPrice",
|
|
360
|
-
type: "error"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
inputs: [
|
|
300
|
+
outputs: [
|
|
364
301
|
],
|
|
365
|
-
|
|
366
|
-
type: "error"
|
|
302
|
+
stateMutability: "nonpayable"
|
|
367
303
|
},
|
|
368
304
|
{
|
|
305
|
+
type: "function",
|
|
306
|
+
name: "getAccount",
|
|
369
307
|
inputs: [
|
|
308
|
+
{
|
|
309
|
+
name: "tokenId",
|
|
310
|
+
type: "uint256",
|
|
311
|
+
internalType: "uint256"
|
|
312
|
+
}
|
|
370
313
|
],
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
314
|
+
outputs: [
|
|
315
|
+
{
|
|
316
|
+
name: "account",
|
|
317
|
+
type: "address",
|
|
318
|
+
internalType: "address"
|
|
319
|
+
}
|
|
376
320
|
],
|
|
377
|
-
|
|
378
|
-
type: "error"
|
|
321
|
+
stateMutability: "nonpayable"
|
|
379
322
|
},
|
|
380
323
|
{
|
|
324
|
+
type: "function",
|
|
325
|
+
name: "getApproved",
|
|
381
326
|
inputs: [
|
|
382
327
|
{
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
328
|
+
name: "tokenId",
|
|
329
|
+
type: "uint256",
|
|
330
|
+
internalType: "uint256"
|
|
386
331
|
}
|
|
387
332
|
],
|
|
388
|
-
|
|
389
|
-
type: "error"
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
inputs: [
|
|
333
|
+
outputs: [
|
|
393
334
|
{
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
335
|
+
name: "",
|
|
336
|
+
type: "address",
|
|
337
|
+
internalType: "address"
|
|
397
338
|
}
|
|
398
339
|
],
|
|
399
|
-
|
|
400
|
-
type: "error"
|
|
340
|
+
stateMutability: "view"
|
|
401
341
|
},
|
|
402
342
|
{
|
|
343
|
+
type: "function",
|
|
344
|
+
name: "getTerms",
|
|
403
345
|
inputs: [
|
|
346
|
+
{
|
|
347
|
+
name: "tokenId",
|
|
348
|
+
type: "uint256",
|
|
349
|
+
internalType: "uint256"
|
|
350
|
+
}
|
|
404
351
|
],
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
352
|
+
outputs: [
|
|
353
|
+
{
|
|
354
|
+
name: "",
|
|
355
|
+
type: "tuple",
|
|
356
|
+
internalType: "struct IIpNFT.LicenseTerms",
|
|
357
|
+
components: [
|
|
358
|
+
{
|
|
359
|
+
name: "price",
|
|
360
|
+
type: "uint128",
|
|
361
|
+
internalType: "uint128"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: "duration",
|
|
365
|
+
type: "uint32",
|
|
366
|
+
internalType: "uint32"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: "royaltyBps",
|
|
370
|
+
type: "uint16",
|
|
371
|
+
internalType: "uint16"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
name: "paymentToken",
|
|
375
|
+
type: "address",
|
|
376
|
+
internalType: "address"
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
}
|
|
410
380
|
],
|
|
411
|
-
|
|
412
|
-
type: "error"
|
|
381
|
+
stateMutability: "view"
|
|
413
382
|
},
|
|
414
383
|
{
|
|
415
|
-
|
|
384
|
+
type: "function",
|
|
385
|
+
name: "initialize",
|
|
416
386
|
inputs: [
|
|
417
387
|
{
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
type: "uint256"
|
|
388
|
+
name: "name_",
|
|
389
|
+
type: "string",
|
|
390
|
+
internalType: "string"
|
|
422
391
|
},
|
|
423
392
|
{
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
type: "address"
|
|
393
|
+
name: "symbol_",
|
|
394
|
+
type: "string",
|
|
395
|
+
internalType: "string"
|
|
428
396
|
},
|
|
429
397
|
{
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
type: "uint32"
|
|
398
|
+
name: "maxTermDuration_",
|
|
399
|
+
type: "uint256",
|
|
400
|
+
internalType: "uint256"
|
|
434
401
|
},
|
|
435
402
|
{
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
type: "uint256"
|
|
403
|
+
name: "signer_",
|
|
404
|
+
type: "address",
|
|
405
|
+
internalType: "address"
|
|
440
406
|
},
|
|
441
407
|
{
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}
|
|
447
|
-
],
|
|
448
|
-
name: "AccessPurchased",
|
|
449
|
-
type: "event"
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
anonymous: false,
|
|
453
|
-
inputs: [
|
|
408
|
+
name: "wCAMP_",
|
|
409
|
+
type: "address",
|
|
410
|
+
internalType: "address"
|
|
411
|
+
},
|
|
454
412
|
{
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
type: "address"
|
|
413
|
+
name: "minTermDuration_",
|
|
414
|
+
type: "uint256",
|
|
415
|
+
internalType: "uint256"
|
|
459
416
|
},
|
|
460
417
|
{
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
type: "address"
|
|
418
|
+
name: "minPrice_",
|
|
419
|
+
type: "uint256",
|
|
420
|
+
internalType: "uint256"
|
|
465
421
|
},
|
|
466
422
|
{
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
423
|
+
name: "maxRoyaltyBps_",
|
|
424
|
+
type: "uint256",
|
|
425
|
+
internalType: "uint256"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
name: "registry_",
|
|
429
|
+
type: "address",
|
|
430
|
+
internalType: "contract IERC6551Registry"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
name: "implementation_",
|
|
434
|
+
type: "address",
|
|
435
|
+
internalType: "contract IERC6551Account"
|
|
471
436
|
}
|
|
472
437
|
],
|
|
473
|
-
|
|
474
|
-
|
|
438
|
+
outputs: [
|
|
439
|
+
],
|
|
440
|
+
stateMutability: "nonpayable"
|
|
475
441
|
},
|
|
476
442
|
{
|
|
477
|
-
|
|
443
|
+
type: "function",
|
|
444
|
+
name: "isApprovedForAll",
|
|
478
445
|
inputs: [
|
|
479
446
|
{
|
|
480
|
-
indexed: true,
|
|
481
|
-
internalType: "address",
|
|
482
447
|
name: "owner",
|
|
483
|
-
type: "address"
|
|
448
|
+
type: "address",
|
|
449
|
+
internalType: "address"
|
|
484
450
|
},
|
|
485
451
|
{
|
|
486
|
-
indexed: true,
|
|
487
|
-
internalType: "address",
|
|
488
452
|
name: "operator",
|
|
489
|
-
type: "address"
|
|
490
|
-
|
|
453
|
+
type: "address",
|
|
454
|
+
internalType: "address"
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
outputs: [
|
|
491
458
|
{
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
type: "bool"
|
|
459
|
+
name: "",
|
|
460
|
+
type: "bool",
|
|
461
|
+
internalType: "bool"
|
|
496
462
|
}
|
|
497
463
|
],
|
|
498
|
-
|
|
499
|
-
type: "event"
|
|
464
|
+
stateMutability: "view"
|
|
500
465
|
},
|
|
501
466
|
{
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
{
|
|
505
|
-
indexed: true,
|
|
506
|
-
internalType: "uint256",
|
|
507
|
-
name: "id",
|
|
508
|
-
type: "uint256"
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
indexed: true,
|
|
512
|
-
internalType: "uint256",
|
|
513
|
-
name: "childIp",
|
|
514
|
-
type: "uint256"
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
indexed: false,
|
|
518
|
-
internalType: "uint256",
|
|
519
|
-
name: "parentIp",
|
|
520
|
-
type: "uint256"
|
|
521
|
-
}
|
|
522
|
-
],
|
|
523
|
-
name: "ChildIpTagged",
|
|
524
|
-
type: "event"
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
anonymous: false,
|
|
467
|
+
type: "function",
|
|
468
|
+
name: "markDisputed",
|
|
528
469
|
inputs: [
|
|
529
470
|
{
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
type: "uint256"
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
indexed: true,
|
|
537
|
-
internalType: "address",
|
|
538
|
-
name: "creator",
|
|
539
|
-
type: "address"
|
|
471
|
+
name: "_tokenId",
|
|
472
|
+
type: "uint256",
|
|
473
|
+
internalType: "uint256"
|
|
540
474
|
}
|
|
541
475
|
],
|
|
542
|
-
|
|
543
|
-
|
|
476
|
+
outputs: [
|
|
477
|
+
],
|
|
478
|
+
stateMutability: "nonpayable"
|
|
544
479
|
},
|
|
545
480
|
{
|
|
546
|
-
|
|
481
|
+
type: "function",
|
|
482
|
+
name: "marketPlace",
|
|
547
483
|
inputs: [
|
|
484
|
+
],
|
|
485
|
+
outputs: [
|
|
548
486
|
{
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
type: "uint256"
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
indexed: true,
|
|
556
|
-
internalType: "address",
|
|
557
|
-
name: "creator",
|
|
558
|
-
type: "address"
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
indexed: false,
|
|
562
|
-
internalType: "bytes32",
|
|
563
|
-
name: "contentHash",
|
|
564
|
-
type: "bytes32"
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
indexed: false,
|
|
568
|
-
internalType: "uint256[]",
|
|
569
|
-
name: "parents",
|
|
570
|
-
type: "uint256[]"
|
|
487
|
+
name: "",
|
|
488
|
+
type: "address",
|
|
489
|
+
internalType: "contract IMarketplace"
|
|
571
490
|
}
|
|
572
491
|
],
|
|
573
|
-
|
|
574
|
-
type: "event"
|
|
492
|
+
stateMutability: "view"
|
|
575
493
|
},
|
|
576
494
|
{
|
|
577
|
-
|
|
495
|
+
type: "function",
|
|
496
|
+
name: "maxRoyaltyBps",
|
|
578
497
|
inputs: [
|
|
498
|
+
],
|
|
499
|
+
outputs: [
|
|
579
500
|
{
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
type: "uint256"
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
indexed: false,
|
|
587
|
-
internalType: "bytes32",
|
|
588
|
-
name: "counterEvidenceHash",
|
|
589
|
-
type: "bytes32"
|
|
501
|
+
name: "",
|
|
502
|
+
type: "uint256",
|
|
503
|
+
internalType: "uint256"
|
|
590
504
|
}
|
|
591
505
|
],
|
|
592
|
-
|
|
593
|
-
type: "event"
|
|
506
|
+
stateMutability: "view"
|
|
594
507
|
},
|
|
595
508
|
{
|
|
596
|
-
|
|
509
|
+
type: "function",
|
|
510
|
+
name: "maxTermDuration",
|
|
597
511
|
inputs: [
|
|
512
|
+
],
|
|
513
|
+
outputs: [
|
|
598
514
|
{
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
type: "uint256"
|
|
515
|
+
name: "",
|
|
516
|
+
type: "uint256",
|
|
517
|
+
internalType: "uint256"
|
|
603
518
|
}
|
|
604
519
|
],
|
|
605
|
-
|
|
606
|
-
type: "event"
|
|
520
|
+
stateMutability: "view"
|
|
607
521
|
},
|
|
608
522
|
{
|
|
609
|
-
|
|
523
|
+
type: "function",
|
|
524
|
+
name: "minPrice",
|
|
610
525
|
inputs: [
|
|
526
|
+
],
|
|
527
|
+
outputs: [
|
|
611
528
|
{
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
type: "uint256"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
indexed: false,
|
|
619
|
-
internalType: "bool",
|
|
620
|
-
name: "judgement",
|
|
621
|
-
type: "bool"
|
|
529
|
+
name: "",
|
|
530
|
+
type: "uint256",
|
|
531
|
+
internalType: "uint256"
|
|
622
532
|
}
|
|
623
533
|
],
|
|
624
|
-
|
|
625
|
-
type: "event"
|
|
534
|
+
stateMutability: "view"
|
|
626
535
|
},
|
|
627
536
|
{
|
|
628
|
-
|
|
537
|
+
type: "function",
|
|
538
|
+
name: "minTermDuration",
|
|
629
539
|
inputs: [
|
|
540
|
+
],
|
|
541
|
+
outputs: [
|
|
630
542
|
{
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
type: "address"
|
|
543
|
+
name: "",
|
|
544
|
+
type: "uint256",
|
|
545
|
+
internalType: "uint256"
|
|
635
546
|
}
|
|
636
547
|
],
|
|
637
|
-
|
|
638
|
-
type: "event"
|
|
548
|
+
stateMutability: "view"
|
|
639
549
|
},
|
|
640
550
|
{
|
|
641
|
-
|
|
551
|
+
type: "function",
|
|
552
|
+
name: "mintWithSignature",
|
|
642
553
|
inputs: [
|
|
643
554
|
{
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
type: "uint256"
|
|
555
|
+
name: "to",
|
|
556
|
+
type: "address",
|
|
557
|
+
internalType: "address"
|
|
648
558
|
},
|
|
649
559
|
{
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
type: "address"
|
|
560
|
+
name: "tokenId",
|
|
561
|
+
type: "uint256",
|
|
562
|
+
internalType: "uint256"
|
|
654
563
|
},
|
|
655
564
|
{
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
type: "uint256"
|
|
565
|
+
name: "creatorContentHash",
|
|
566
|
+
type: "bytes32",
|
|
567
|
+
internalType: "bytes32"
|
|
660
568
|
},
|
|
661
569
|
{
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
570
|
+
name: "uri",
|
|
571
|
+
type: "string",
|
|
572
|
+
internalType: "string"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
name: "licenseTerms",
|
|
576
|
+
type: "tuple",
|
|
577
|
+
internalType: "struct IIpNFT.LicenseTerms",
|
|
578
|
+
components: [
|
|
579
|
+
{
|
|
580
|
+
name: "price",
|
|
581
|
+
type: "uint128",
|
|
582
|
+
internalType: "uint128"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
name: "duration",
|
|
586
|
+
type: "uint32",
|
|
587
|
+
internalType: "uint32"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
name: "royaltyBps",
|
|
591
|
+
type: "uint16",
|
|
592
|
+
internalType: "uint16"
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
name: "paymentToken",
|
|
596
|
+
type: "address",
|
|
597
|
+
internalType: "address"
|
|
598
|
+
}
|
|
599
|
+
]
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
name: "deadline",
|
|
603
|
+
type: "uint256",
|
|
604
|
+
internalType: "uint256"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
name: "parents",
|
|
608
|
+
type: "uint256[]",
|
|
609
|
+
internalType: "uint256[]"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
name: "isIP",
|
|
613
|
+
type: "bool",
|
|
614
|
+
internalType: "bool"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
name: "signature",
|
|
618
|
+
type: "bytes",
|
|
619
|
+
internalType: "bytes"
|
|
666
620
|
}
|
|
667
621
|
],
|
|
668
|
-
|
|
669
|
-
|
|
622
|
+
outputs: [
|
|
623
|
+
],
|
|
624
|
+
stateMutability: "nonpayable"
|
|
670
625
|
},
|
|
671
626
|
{
|
|
672
|
-
|
|
627
|
+
type: "function",
|
|
628
|
+
name: "name",
|
|
673
629
|
inputs: [
|
|
630
|
+
],
|
|
631
|
+
outputs: [
|
|
674
632
|
{
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
type: "address"
|
|
633
|
+
name: "",
|
|
634
|
+
type: "string",
|
|
635
|
+
internalType: "string"
|
|
679
636
|
}
|
|
680
637
|
],
|
|
681
|
-
|
|
682
|
-
type: "event"
|
|
638
|
+
stateMutability: "view"
|
|
683
639
|
},
|
|
684
640
|
{
|
|
685
|
-
|
|
641
|
+
type: "function",
|
|
642
|
+
name: "owner",
|
|
686
643
|
inputs: [
|
|
644
|
+
],
|
|
645
|
+
outputs: [
|
|
687
646
|
{
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
type: "address"
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
indexed: true,
|
|
695
|
-
internalType: "address",
|
|
696
|
-
name: "newOwner",
|
|
697
|
-
type: "address"
|
|
647
|
+
name: "",
|
|
648
|
+
type: "address",
|
|
649
|
+
internalType: "address"
|
|
698
650
|
}
|
|
699
651
|
],
|
|
700
|
-
|
|
701
|
-
type: "event"
|
|
652
|
+
stateMutability: "view"
|
|
702
653
|
},
|
|
703
654
|
{
|
|
704
|
-
|
|
655
|
+
type: "function",
|
|
656
|
+
name: "ownerOf",
|
|
705
657
|
inputs: [
|
|
706
658
|
{
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
type: "address"
|
|
659
|
+
name: "tokenId",
|
|
660
|
+
type: "uint256",
|
|
661
|
+
internalType: "uint256"
|
|
711
662
|
}
|
|
712
663
|
],
|
|
713
|
-
|
|
714
|
-
|
|
664
|
+
outputs: [
|
|
665
|
+
{
|
|
666
|
+
name: "",
|
|
667
|
+
type: "address",
|
|
668
|
+
internalType: "address"
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
stateMutability: "view"
|
|
715
672
|
},
|
|
716
673
|
{
|
|
717
|
-
|
|
674
|
+
type: "function",
|
|
675
|
+
name: "pause",
|
|
718
676
|
inputs: [
|
|
719
|
-
{
|
|
720
|
-
indexed: true,
|
|
721
|
-
internalType: "uint256",
|
|
722
|
-
name: "tokenId",
|
|
723
|
-
type: "uint256"
|
|
724
|
-
},
|
|
725
|
-
{
|
|
726
|
-
indexed: false,
|
|
727
|
-
internalType: "uint256",
|
|
728
|
-
name: "royaltyAmount",
|
|
729
|
-
type: "uint256"
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
indexed: false,
|
|
733
|
-
internalType: "address",
|
|
734
|
-
name: "creator",
|
|
735
|
-
type: "address"
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
indexed: false,
|
|
739
|
-
internalType: "uint256",
|
|
740
|
-
name: "protocolAmount",
|
|
741
|
-
type: "uint256"
|
|
742
|
-
}
|
|
743
677
|
],
|
|
744
|
-
|
|
745
|
-
|
|
678
|
+
outputs: [
|
|
679
|
+
],
|
|
680
|
+
stateMutability: "nonpayable"
|
|
746
681
|
},
|
|
747
682
|
{
|
|
748
|
-
|
|
683
|
+
type: "function",
|
|
684
|
+
name: "paused",
|
|
749
685
|
inputs: [
|
|
686
|
+
],
|
|
687
|
+
outputs: [
|
|
750
688
|
{
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
type: "address"
|
|
689
|
+
name: "",
|
|
690
|
+
type: "bool",
|
|
691
|
+
internalType: "bool"
|
|
755
692
|
}
|
|
756
693
|
],
|
|
757
|
-
|
|
758
|
-
type: "event"
|
|
694
|
+
stateMutability: "view"
|
|
759
695
|
},
|
|
760
696
|
{
|
|
761
|
-
|
|
697
|
+
type: "function",
|
|
698
|
+
name: "proxiableUUID",
|
|
762
699
|
inputs: [
|
|
700
|
+
],
|
|
701
|
+
outputs: [
|
|
763
702
|
{
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
type: "uint256"
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
indexed: false,
|
|
771
|
-
internalType: "enum IIpNFT.DataStatus",
|
|
772
|
-
name: "status",
|
|
773
|
-
type: "uint8"
|
|
703
|
+
name: "",
|
|
704
|
+
type: "bytes32",
|
|
705
|
+
internalType: "bytes32"
|
|
774
706
|
}
|
|
775
707
|
],
|
|
776
|
-
|
|
777
|
-
type: "event"
|
|
708
|
+
stateMutability: "view"
|
|
778
709
|
},
|
|
779
710
|
{
|
|
780
|
-
|
|
711
|
+
type: "function",
|
|
712
|
+
name: "renounceOwnership",
|
|
781
713
|
inputs: [
|
|
782
|
-
{
|
|
783
|
-
indexed: true,
|
|
784
|
-
internalType: "uint256",
|
|
785
|
-
name: "tokenId",
|
|
786
|
-
type: "uint256"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
indexed: false,
|
|
790
|
-
internalType: "uint128",
|
|
791
|
-
name: "newPrice",
|
|
792
|
-
type: "uint128"
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
indexed: false,
|
|
796
|
-
internalType: "uint32",
|
|
797
|
-
name: "newDuration",
|
|
798
|
-
type: "uint32"
|
|
799
|
-
},
|
|
800
|
-
{
|
|
801
|
-
indexed: false,
|
|
802
|
-
internalType: "uint16",
|
|
803
|
-
name: "newRoyaltyBps",
|
|
804
|
-
type: "uint16"
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
indexed: false,
|
|
808
|
-
internalType: "address",
|
|
809
|
-
name: "paymentToken",
|
|
810
|
-
type: "address"
|
|
811
|
-
}
|
|
812
714
|
],
|
|
813
|
-
|
|
814
|
-
|
|
715
|
+
outputs: [
|
|
716
|
+
],
|
|
717
|
+
stateMutability: "nonpayable"
|
|
815
718
|
},
|
|
816
719
|
{
|
|
817
|
-
|
|
720
|
+
type: "function",
|
|
721
|
+
name: "safeTransferFrom",
|
|
818
722
|
inputs: [
|
|
819
723
|
{
|
|
820
|
-
indexed: true,
|
|
821
|
-
internalType: "address",
|
|
822
724
|
name: "from",
|
|
823
|
-
type: "address"
|
|
725
|
+
type: "address",
|
|
726
|
+
internalType: "address"
|
|
824
727
|
},
|
|
825
728
|
{
|
|
826
|
-
indexed: true,
|
|
827
|
-
internalType: "address",
|
|
828
729
|
name: "to",
|
|
829
|
-
type: "address"
|
|
730
|
+
type: "address",
|
|
731
|
+
internalType: "address"
|
|
830
732
|
},
|
|
831
733
|
{
|
|
832
|
-
indexed: true,
|
|
833
|
-
internalType: "uint256",
|
|
834
734
|
name: "tokenId",
|
|
835
|
-
type: "uint256"
|
|
735
|
+
type: "uint256",
|
|
736
|
+
internalType: "uint256"
|
|
836
737
|
}
|
|
837
738
|
],
|
|
838
|
-
|
|
839
|
-
|
|
739
|
+
outputs: [
|
|
740
|
+
],
|
|
741
|
+
stateMutability: "nonpayable"
|
|
840
742
|
},
|
|
841
743
|
{
|
|
842
|
-
|
|
744
|
+
type: "function",
|
|
745
|
+
name: "safeTransferFrom",
|
|
843
746
|
inputs: [
|
|
844
747
|
{
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
748
|
+
name: "from",
|
|
749
|
+
type: "address",
|
|
750
|
+
internalType: "address"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
name: "to",
|
|
754
|
+
type: "address",
|
|
755
|
+
internalType: "address"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
name: "tokenId",
|
|
759
|
+
type: "uint256",
|
|
760
|
+
internalType: "uint256"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
name: "data",
|
|
764
|
+
type: "bytes",
|
|
765
|
+
internalType: "bytes"
|
|
849
766
|
}
|
|
850
767
|
],
|
|
851
|
-
|
|
852
|
-
|
|
768
|
+
outputs: [
|
|
769
|
+
],
|
|
770
|
+
stateMutability: "nonpayable"
|
|
853
771
|
},
|
|
854
772
|
{
|
|
773
|
+
type: "function",
|
|
774
|
+
name: "setApprovalForAll",
|
|
855
775
|
inputs: [
|
|
856
776
|
{
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
777
|
+
name: "operator",
|
|
778
|
+
type: "address",
|
|
779
|
+
internalType: "address"
|
|
860
780
|
},
|
|
861
781
|
{
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
782
|
+
name: "approved",
|
|
783
|
+
type: "bool",
|
|
784
|
+
internalType: "bool"
|
|
865
785
|
}
|
|
866
786
|
],
|
|
867
|
-
name: "approve",
|
|
868
787
|
outputs: [
|
|
869
788
|
],
|
|
870
|
-
stateMutability: "nonpayable"
|
|
871
|
-
type: "function"
|
|
789
|
+
stateMutability: "nonpayable"
|
|
872
790
|
},
|
|
873
791
|
{
|
|
792
|
+
type: "function",
|
|
793
|
+
name: "setDisputeModule",
|
|
874
794
|
inputs: [
|
|
875
795
|
{
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
796
|
+
name: "_disputeModule",
|
|
797
|
+
type: "address",
|
|
798
|
+
internalType: "address"
|
|
879
799
|
}
|
|
880
800
|
],
|
|
881
|
-
name: "balanceOf",
|
|
882
801
|
outputs: [
|
|
883
|
-
{
|
|
884
|
-
internalType: "uint256",
|
|
885
|
-
name: "",
|
|
886
|
-
type: "uint256"
|
|
887
|
-
}
|
|
888
802
|
],
|
|
889
|
-
stateMutability: "
|
|
890
|
-
type: "function"
|
|
803
|
+
stateMutability: "nonpayable"
|
|
891
804
|
},
|
|
892
805
|
{
|
|
806
|
+
type: "function",
|
|
807
|
+
name: "setMarketPlace",
|
|
893
808
|
inputs: [
|
|
894
809
|
{
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
810
|
+
name: "_marketPlace",
|
|
811
|
+
type: "address",
|
|
812
|
+
internalType: "address"
|
|
898
813
|
}
|
|
899
814
|
],
|
|
900
|
-
name: "dataStatus",
|
|
901
815
|
outputs: [
|
|
902
|
-
{
|
|
903
|
-
internalType: "enum IIpNFT.DataStatus",
|
|
904
|
-
name: "",
|
|
905
|
-
type: "uint8"
|
|
906
|
-
}
|
|
907
816
|
],
|
|
908
|
-
stateMutability: "
|
|
909
|
-
type: "function"
|
|
817
|
+
stateMutability: "nonpayable"
|
|
910
818
|
},
|
|
911
819
|
{
|
|
820
|
+
type: "function",
|
|
821
|
+
name: "setSigner",
|
|
912
822
|
inputs: [
|
|
913
|
-
],
|
|
914
|
-
name: "disputeModule",
|
|
915
|
-
outputs: [
|
|
916
823
|
{
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
824
|
+
name: "_signer",
|
|
825
|
+
type: "address",
|
|
826
|
+
internalType: "address"
|
|
920
827
|
}
|
|
921
828
|
],
|
|
922
|
-
|
|
923
|
-
|
|
829
|
+
outputs: [
|
|
830
|
+
],
|
|
831
|
+
stateMutability: "nonpayable"
|
|
924
832
|
},
|
|
925
833
|
{
|
|
834
|
+
type: "function",
|
|
835
|
+
name: "signer",
|
|
926
836
|
inputs: [
|
|
927
|
-
{
|
|
928
|
-
internalType: "uint256",
|
|
929
|
-
name: "tokenId",
|
|
930
|
-
type: "uint256"
|
|
931
|
-
}
|
|
932
837
|
],
|
|
933
|
-
name: "finalizeDelete",
|
|
934
838
|
outputs: [
|
|
839
|
+
{
|
|
840
|
+
name: "",
|
|
841
|
+
type: "address",
|
|
842
|
+
internalType: "address"
|
|
843
|
+
}
|
|
935
844
|
],
|
|
936
|
-
stateMutability: "
|
|
937
|
-
type: "function"
|
|
845
|
+
stateMutability: "view"
|
|
938
846
|
},
|
|
939
847
|
{
|
|
848
|
+
type: "function",
|
|
849
|
+
name: "supportsInterface",
|
|
940
850
|
inputs: [
|
|
941
851
|
{
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
852
|
+
name: "interfaceId",
|
|
853
|
+
type: "bytes4",
|
|
854
|
+
internalType: "bytes4"
|
|
945
855
|
}
|
|
946
856
|
],
|
|
947
|
-
name: "getApproved",
|
|
948
857
|
outputs: [
|
|
949
858
|
{
|
|
950
|
-
internalType: "address",
|
|
951
859
|
name: "",
|
|
952
|
-
type: "
|
|
860
|
+
type: "bool",
|
|
861
|
+
internalType: "bool"
|
|
953
862
|
}
|
|
954
863
|
],
|
|
955
|
-
stateMutability: "view"
|
|
956
|
-
type: "function"
|
|
864
|
+
stateMutability: "view"
|
|
957
865
|
},
|
|
958
866
|
{
|
|
867
|
+
type: "function",
|
|
868
|
+
name: "symbol",
|
|
959
869
|
inputs: [
|
|
960
|
-
{
|
|
961
|
-
internalType: "address",
|
|
962
|
-
name: "tokenOwner",
|
|
963
|
-
type: "address"
|
|
964
|
-
}
|
|
965
870
|
],
|
|
966
|
-
name: "getOrCreateRoyaltyVault",
|
|
967
871
|
outputs: [
|
|
968
872
|
{
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
873
|
+
name: "",
|
|
874
|
+
type: "string",
|
|
875
|
+
internalType: "string"
|
|
972
876
|
}
|
|
973
877
|
],
|
|
974
|
-
stateMutability: "
|
|
975
|
-
type: "function"
|
|
878
|
+
stateMutability: "view"
|
|
976
879
|
},
|
|
977
880
|
{
|
|
881
|
+
type: "function",
|
|
882
|
+
name: "tokenInfo",
|
|
978
883
|
inputs: [
|
|
979
884
|
{
|
|
980
|
-
internalType: "uint256",
|
|
981
885
|
name: "tokenId",
|
|
982
|
-
type: "uint256"
|
|
886
|
+
type: "uint256",
|
|
887
|
+
internalType: "uint256"
|
|
983
888
|
}
|
|
984
889
|
],
|
|
985
|
-
name: "getTerms",
|
|
986
890
|
outputs: [
|
|
987
891
|
{
|
|
892
|
+
name: "",
|
|
893
|
+
type: "tuple",
|
|
894
|
+
internalType: "struct IIpNFT.TokenInfo",
|
|
988
895
|
components: [
|
|
989
896
|
{
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
897
|
+
name: "tokenURI",
|
|
898
|
+
type: "string",
|
|
899
|
+
internalType: "string"
|
|
993
900
|
},
|
|
994
901
|
{
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
902
|
+
name: "isIP",
|
|
903
|
+
type: "bool",
|
|
904
|
+
internalType: "bool"
|
|
998
905
|
},
|
|
999
906
|
{
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
907
|
+
name: "contentHash",
|
|
908
|
+
type: "bytes32",
|
|
909
|
+
internalType: "bytes32"
|
|
1003
910
|
},
|
|
1004
911
|
{
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
912
|
+
name: "terms",
|
|
913
|
+
type: "tuple",
|
|
914
|
+
internalType: "struct IIpNFT.LicenseTerms",
|
|
915
|
+
components: [
|
|
916
|
+
{
|
|
917
|
+
name: "price",
|
|
918
|
+
type: "uint128",
|
|
919
|
+
internalType: "uint128"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
name: "duration",
|
|
923
|
+
type: "uint32",
|
|
924
|
+
internalType: "uint32"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
name: "royaltyBps",
|
|
928
|
+
type: "uint16",
|
|
929
|
+
internalType: "uint16"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
name: "paymentToken",
|
|
933
|
+
type: "address",
|
|
934
|
+
internalType: "address"
|
|
935
|
+
}
|
|
936
|
+
]
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
name: "status",
|
|
940
|
+
type: "uint8",
|
|
941
|
+
internalType: "enum IIpNFT.DataStatus"
|
|
1008
942
|
}
|
|
1009
|
-
]
|
|
1010
|
-
internalType: "struct IIpNFT.LicenseTerms",
|
|
1011
|
-
name: "",
|
|
1012
|
-
type: "tuple"
|
|
943
|
+
]
|
|
1013
944
|
}
|
|
1014
945
|
],
|
|
1015
|
-
stateMutability: "view"
|
|
1016
|
-
type: "function"
|
|
946
|
+
stateMutability: "view"
|
|
1017
947
|
},
|
|
1018
948
|
{
|
|
949
|
+
type: "function",
|
|
950
|
+
name: "tokenURI",
|
|
1019
951
|
inputs: [
|
|
1020
952
|
{
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
},
|
|
1025
|
-
{
|
|
1026
|
-
internalType: "address",
|
|
1027
|
-
name: "operator",
|
|
1028
|
-
type: "address"
|
|
953
|
+
name: "_tokenId",
|
|
954
|
+
type: "uint256",
|
|
955
|
+
internalType: "uint256"
|
|
1029
956
|
}
|
|
1030
957
|
],
|
|
1031
|
-
name: "isApprovedForAll",
|
|
1032
958
|
outputs: [
|
|
1033
959
|
{
|
|
1034
|
-
internalType: "bool",
|
|
1035
960
|
name: "",
|
|
1036
|
-
type: "
|
|
961
|
+
type: "string",
|
|
962
|
+
internalType: "string"
|
|
1037
963
|
}
|
|
1038
964
|
],
|
|
1039
|
-
stateMutability: "view"
|
|
1040
|
-
type: "function"
|
|
965
|
+
stateMutability: "view"
|
|
1041
966
|
},
|
|
1042
967
|
{
|
|
968
|
+
type: "function",
|
|
969
|
+
name: "transferFrom",
|
|
1043
970
|
inputs: [
|
|
1044
971
|
{
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
}
|
|
1049
|
-
],
|
|
1050
|
-
name: "markDisputed",
|
|
1051
|
-
outputs: [
|
|
1052
|
-
],
|
|
1053
|
-
stateMutability: "nonpayable",
|
|
1054
|
-
type: "function"
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
inputs: [
|
|
1058
|
-
],
|
|
1059
|
-
name: "marketPlace",
|
|
1060
|
-
outputs: [
|
|
972
|
+
name: "from",
|
|
973
|
+
type: "address",
|
|
974
|
+
internalType: "address"
|
|
975
|
+
},
|
|
1061
976
|
{
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
977
|
+
name: "to",
|
|
978
|
+
type: "address",
|
|
979
|
+
internalType: "address"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
name: "tokenId",
|
|
983
|
+
type: "uint256",
|
|
984
|
+
internalType: "uint256"
|
|
1065
985
|
}
|
|
1066
986
|
],
|
|
1067
|
-
stateMutability: "view",
|
|
1068
|
-
type: "function"
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
inputs: [
|
|
1072
|
-
],
|
|
1073
|
-
name: "maxRoyaltyBps",
|
|
1074
987
|
outputs: [
|
|
1075
|
-
{
|
|
1076
|
-
internalType: "uint256",
|
|
1077
|
-
name: "",
|
|
1078
|
-
type: "uint256"
|
|
1079
|
-
}
|
|
1080
988
|
],
|
|
1081
|
-
stateMutability: "
|
|
1082
|
-
type: "function"
|
|
989
|
+
stateMutability: "nonpayable"
|
|
1083
990
|
},
|
|
1084
991
|
{
|
|
992
|
+
type: "function",
|
|
993
|
+
name: "transferOwnership",
|
|
1085
994
|
inputs: [
|
|
1086
|
-
],
|
|
1087
|
-
name: "maxTermDuration",
|
|
1088
|
-
outputs: [
|
|
1089
995
|
{
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
996
|
+
name: "newOwner",
|
|
997
|
+
type: "address",
|
|
998
|
+
internalType: "address"
|
|
1093
999
|
}
|
|
1094
1000
|
],
|
|
1095
|
-
stateMutability: "view",
|
|
1096
|
-
type: "function"
|
|
1097
|
-
},
|
|
1098
|
-
{
|
|
1099
|
-
inputs: [
|
|
1100
|
-
],
|
|
1101
|
-
name: "minPrice",
|
|
1102
1001
|
outputs: [
|
|
1103
|
-
{
|
|
1104
|
-
internalType: "uint256",
|
|
1105
|
-
name: "",
|
|
1106
|
-
type: "uint256"
|
|
1107
|
-
}
|
|
1108
1002
|
],
|
|
1109
|
-
stateMutability: "
|
|
1110
|
-
type: "function"
|
|
1003
|
+
stateMutability: "nonpayable"
|
|
1111
1004
|
},
|
|
1112
1005
|
{
|
|
1006
|
+
type: "function",
|
|
1007
|
+
name: "unpause",
|
|
1113
1008
|
inputs: [
|
|
1114
1009
|
],
|
|
1115
|
-
name: "minTermDuration",
|
|
1116
1010
|
outputs: [
|
|
1117
|
-
{
|
|
1118
|
-
internalType: "uint256",
|
|
1119
|
-
name: "",
|
|
1120
|
-
type: "uint256"
|
|
1121
|
-
}
|
|
1122
1011
|
],
|
|
1123
|
-
stateMutability: "
|
|
1124
|
-
type: "function"
|
|
1012
|
+
stateMutability: "nonpayable"
|
|
1125
1013
|
},
|
|
1126
1014
|
{
|
|
1015
|
+
type: "function",
|
|
1016
|
+
name: "updateTerms",
|
|
1127
1017
|
inputs: [
|
|
1128
1018
|
{
|
|
1129
|
-
internalType: "address",
|
|
1130
|
-
name: "to",
|
|
1131
|
-
type: "address"
|
|
1132
|
-
},
|
|
1133
|
-
{
|
|
1134
|
-
internalType: "uint256",
|
|
1135
1019
|
name: "tokenId",
|
|
1136
|
-
type: "uint256"
|
|
1137
|
-
|
|
1138
|
-
{
|
|
1139
|
-
internalType: "bytes32",
|
|
1140
|
-
name: "creatorContentHash",
|
|
1141
|
-
type: "bytes32"
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
internalType: "string",
|
|
1145
|
-
name: "uri",
|
|
1146
|
-
type: "string"
|
|
1020
|
+
type: "uint256",
|
|
1021
|
+
internalType: "uint256"
|
|
1147
1022
|
},
|
|
1148
1023
|
{
|
|
1024
|
+
name: "newTerms",
|
|
1025
|
+
type: "tuple",
|
|
1026
|
+
internalType: "struct IIpNFT.LicenseTerms",
|
|
1149
1027
|
components: [
|
|
1150
1028
|
{
|
|
1151
|
-
internalType: "uint128",
|
|
1152
1029
|
name: "price",
|
|
1153
|
-
type: "uint128"
|
|
1030
|
+
type: "uint128",
|
|
1031
|
+
internalType: "uint128"
|
|
1154
1032
|
},
|
|
1155
1033
|
{
|
|
1156
|
-
internalType: "uint32",
|
|
1157
1034
|
name: "duration",
|
|
1158
|
-
type: "uint32"
|
|
1035
|
+
type: "uint32",
|
|
1036
|
+
internalType: "uint32"
|
|
1159
1037
|
},
|
|
1160
1038
|
{
|
|
1161
|
-
internalType: "uint16",
|
|
1162
1039
|
name: "royaltyBps",
|
|
1163
|
-
type: "uint16"
|
|
1040
|
+
type: "uint16",
|
|
1041
|
+
internalType: "uint16"
|
|
1164
1042
|
},
|
|
1165
1043
|
{
|
|
1166
|
-
internalType: "address",
|
|
1167
1044
|
name: "paymentToken",
|
|
1168
|
-
type: "address"
|
|
1045
|
+
type: "address",
|
|
1046
|
+
internalType: "address"
|
|
1169
1047
|
}
|
|
1170
|
-
]
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
internalType: "uint256[]",
|
|
1182
|
-
name: "parents",
|
|
1183
|
-
type: "uint256[]"
|
|
1184
|
-
},
|
|
1048
|
+
]
|
|
1049
|
+
}
|
|
1050
|
+
],
|
|
1051
|
+
outputs: [
|
|
1052
|
+
],
|
|
1053
|
+
stateMutability: "nonpayable"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
type: "function",
|
|
1057
|
+
name: "upgradeToAndCall",
|
|
1058
|
+
inputs: [
|
|
1185
1059
|
{
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1060
|
+
name: "newImplementation",
|
|
1061
|
+
type: "address",
|
|
1062
|
+
internalType: "address"
|
|
1189
1063
|
},
|
|
1190
1064
|
{
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1065
|
+
name: "data",
|
|
1066
|
+
type: "bytes",
|
|
1067
|
+
internalType: "bytes"
|
|
1194
1068
|
}
|
|
1195
1069
|
],
|
|
1196
|
-
name: "mintWithSignature",
|
|
1197
1070
|
outputs: [
|
|
1198
1071
|
],
|
|
1199
|
-
stateMutability: "
|
|
1200
|
-
type: "function"
|
|
1072
|
+
stateMutability: "payable"
|
|
1201
1073
|
},
|
|
1202
1074
|
{
|
|
1075
|
+
type: "function",
|
|
1076
|
+
name: "wCAMP",
|
|
1203
1077
|
inputs: [
|
|
1204
1078
|
],
|
|
1205
|
-
name: "name",
|
|
1206
1079
|
outputs: [
|
|
1207
1080
|
{
|
|
1208
|
-
internalType: "string",
|
|
1209
1081
|
name: "",
|
|
1210
|
-
type: "
|
|
1082
|
+
type: "address",
|
|
1083
|
+
internalType: "address"
|
|
1211
1084
|
}
|
|
1212
1085
|
],
|
|
1213
|
-
stateMutability: "view"
|
|
1214
|
-
type: "function"
|
|
1086
|
+
stateMutability: "view"
|
|
1215
1087
|
},
|
|
1216
1088
|
{
|
|
1089
|
+
type: "event",
|
|
1090
|
+
name: "AccessPurchased",
|
|
1217
1091
|
inputs: [
|
|
1218
|
-
],
|
|
1219
|
-
name: "owner",
|
|
1220
|
-
outputs: [
|
|
1221
1092
|
{
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1093
|
+
name: "tokenId",
|
|
1094
|
+
type: "uint256",
|
|
1095
|
+
indexed: true,
|
|
1096
|
+
internalType: "uint256"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
name: "buyer",
|
|
1100
|
+
type: "address",
|
|
1101
|
+
indexed: true,
|
|
1102
|
+
internalType: "address"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
name: "periods",
|
|
1106
|
+
type: "uint32",
|
|
1107
|
+
indexed: false,
|
|
1108
|
+
internalType: "uint32"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
name: "newExpiry",
|
|
1112
|
+
type: "uint256",
|
|
1113
|
+
indexed: false,
|
|
1114
|
+
internalType: "uint256"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
name: "amountPaid",
|
|
1118
|
+
type: "uint256",
|
|
1119
|
+
indexed: false,
|
|
1120
|
+
internalType: "uint256"
|
|
1225
1121
|
}
|
|
1226
1122
|
],
|
|
1227
|
-
|
|
1228
|
-
|
|
1123
|
+
anonymous: false
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
type: "event",
|
|
1127
|
+
name: "AgentRegistered",
|
|
1128
|
+
inputs: [
|
|
1129
|
+
{
|
|
1130
|
+
name: "agentId",
|
|
1131
|
+
type: "uint256",
|
|
1132
|
+
indexed: true,
|
|
1133
|
+
internalType: "uint256"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
name: "ipNftId",
|
|
1137
|
+
type: "uint256",
|
|
1138
|
+
indexed: true,
|
|
1139
|
+
internalType: "uint256"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
name: "agentAddress",
|
|
1143
|
+
type: "address",
|
|
1144
|
+
indexed: false,
|
|
1145
|
+
internalType: "address"
|
|
1146
|
+
}
|
|
1147
|
+
],
|
|
1148
|
+
anonymous: false
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
type: "event",
|
|
1152
|
+
name: "Approval",
|
|
1153
|
+
inputs: [
|
|
1154
|
+
{
|
|
1155
|
+
name: "owner",
|
|
1156
|
+
type: "address",
|
|
1157
|
+
indexed: true,
|
|
1158
|
+
internalType: "address"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
name: "approved",
|
|
1162
|
+
type: "address",
|
|
1163
|
+
indexed: true,
|
|
1164
|
+
internalType: "address"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
name: "tokenId",
|
|
1168
|
+
type: "uint256",
|
|
1169
|
+
indexed: true,
|
|
1170
|
+
internalType: "uint256"
|
|
1171
|
+
}
|
|
1172
|
+
],
|
|
1173
|
+
anonymous: false
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
type: "event",
|
|
1177
|
+
name: "ApprovalForAll",
|
|
1178
|
+
inputs: [
|
|
1179
|
+
{
|
|
1180
|
+
name: "owner",
|
|
1181
|
+
type: "address",
|
|
1182
|
+
indexed: true,
|
|
1183
|
+
internalType: "address"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
name: "operator",
|
|
1187
|
+
type: "address",
|
|
1188
|
+
indexed: true,
|
|
1189
|
+
internalType: "address"
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
name: "approved",
|
|
1193
|
+
type: "bool",
|
|
1194
|
+
indexed: false,
|
|
1195
|
+
internalType: "bool"
|
|
1196
|
+
}
|
|
1197
|
+
],
|
|
1198
|
+
anonymous: false
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
type: "event",
|
|
1202
|
+
name: "ChildIpTagged",
|
|
1203
|
+
inputs: [
|
|
1204
|
+
{
|
|
1205
|
+
name: "id",
|
|
1206
|
+
type: "uint256",
|
|
1207
|
+
indexed: true,
|
|
1208
|
+
internalType: "uint256"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
name: "childIp",
|
|
1212
|
+
type: "uint256",
|
|
1213
|
+
indexed: true,
|
|
1214
|
+
internalType: "uint256"
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
name: "parentIp",
|
|
1218
|
+
type: "uint256",
|
|
1219
|
+
indexed: false,
|
|
1220
|
+
internalType: "uint256"
|
|
1221
|
+
}
|
|
1222
|
+
],
|
|
1223
|
+
anonymous: false
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
type: "event",
|
|
1227
|
+
name: "DataDeleted",
|
|
1228
|
+
inputs: [
|
|
1229
|
+
{
|
|
1230
|
+
name: "tokenId",
|
|
1231
|
+
type: "uint256",
|
|
1232
|
+
indexed: true,
|
|
1233
|
+
internalType: "uint256"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
name: "creator",
|
|
1237
|
+
type: "address",
|
|
1238
|
+
indexed: true,
|
|
1239
|
+
internalType: "address"
|
|
1240
|
+
}
|
|
1241
|
+
],
|
|
1242
|
+
anonymous: false
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
type: "event",
|
|
1246
|
+
name: "DataMinted",
|
|
1247
|
+
inputs: [
|
|
1248
|
+
{
|
|
1249
|
+
name: "tokenId",
|
|
1250
|
+
type: "uint256",
|
|
1251
|
+
indexed: true,
|
|
1252
|
+
internalType: "uint256"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
name: "creator",
|
|
1256
|
+
type: "address",
|
|
1257
|
+
indexed: true,
|
|
1258
|
+
internalType: "address"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
name: "contentHash",
|
|
1262
|
+
type: "bytes32",
|
|
1263
|
+
indexed: false,
|
|
1264
|
+
internalType: "bytes32"
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
name: "parents",
|
|
1268
|
+
type: "uint256[]",
|
|
1269
|
+
indexed: false,
|
|
1270
|
+
internalType: "uint256[]"
|
|
1271
|
+
}
|
|
1272
|
+
],
|
|
1273
|
+
anonymous: false
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
type: "event",
|
|
1277
|
+
name: "DisputeAssertion",
|
|
1278
|
+
inputs: [
|
|
1279
|
+
{
|
|
1280
|
+
name: "id",
|
|
1281
|
+
type: "uint256",
|
|
1282
|
+
indexed: true,
|
|
1283
|
+
internalType: "uint256"
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
name: "counterEvidenceHash",
|
|
1287
|
+
type: "bytes32",
|
|
1288
|
+
indexed: false,
|
|
1289
|
+
internalType: "bytes32"
|
|
1290
|
+
}
|
|
1291
|
+
],
|
|
1292
|
+
anonymous: false
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
type: "event",
|
|
1296
|
+
name: "DisputeCancelled",
|
|
1297
|
+
inputs: [
|
|
1298
|
+
{
|
|
1299
|
+
name: "id",
|
|
1300
|
+
type: "uint256",
|
|
1301
|
+
indexed: true,
|
|
1302
|
+
internalType: "uint256"
|
|
1303
|
+
}
|
|
1304
|
+
],
|
|
1305
|
+
anonymous: false
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
type: "event",
|
|
1309
|
+
name: "DisputeJudged",
|
|
1310
|
+
inputs: [
|
|
1311
|
+
{
|
|
1312
|
+
name: "id",
|
|
1313
|
+
type: "uint256",
|
|
1314
|
+
indexed: true,
|
|
1315
|
+
internalType: "uint256"
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
name: "judgement",
|
|
1319
|
+
type: "bool",
|
|
1320
|
+
indexed: false,
|
|
1321
|
+
internalType: "bool"
|
|
1322
|
+
}
|
|
1323
|
+
],
|
|
1324
|
+
anonymous: false
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
type: "event",
|
|
1328
|
+
name: "DisputeModuleUpdated",
|
|
1329
|
+
inputs: [
|
|
1330
|
+
{
|
|
1331
|
+
name: "disputeModule",
|
|
1332
|
+
type: "address",
|
|
1333
|
+
indexed: true,
|
|
1334
|
+
internalType: "address"
|
|
1335
|
+
}
|
|
1336
|
+
],
|
|
1337
|
+
anonymous: false
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
type: "event",
|
|
1341
|
+
name: "DisputeRaised",
|
|
1342
|
+
inputs: [
|
|
1343
|
+
{
|
|
1344
|
+
name: "id",
|
|
1345
|
+
type: "uint256",
|
|
1346
|
+
indexed: true,
|
|
1347
|
+
internalType: "uint256"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
name: "initiator",
|
|
1351
|
+
type: "address",
|
|
1352
|
+
indexed: true,
|
|
1353
|
+
internalType: "address"
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
name: "targetId",
|
|
1357
|
+
type: "uint256",
|
|
1358
|
+
indexed: true,
|
|
1359
|
+
internalType: "uint256"
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
name: "disputeTag",
|
|
1363
|
+
type: "bytes32",
|
|
1364
|
+
indexed: false,
|
|
1365
|
+
internalType: "bytes32"
|
|
1366
|
+
}
|
|
1367
|
+
],
|
|
1368
|
+
anonymous: false
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
type: "event",
|
|
1372
|
+
name: "Initialized",
|
|
1373
|
+
inputs: [
|
|
1374
|
+
{
|
|
1375
|
+
name: "version",
|
|
1376
|
+
type: "uint64",
|
|
1377
|
+
indexed: false,
|
|
1378
|
+
internalType: "uint64"
|
|
1379
|
+
}
|
|
1380
|
+
],
|
|
1381
|
+
anonymous: false
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
type: "event",
|
|
1385
|
+
name: "MarketPlaceUpdated",
|
|
1386
|
+
inputs: [
|
|
1387
|
+
{
|
|
1388
|
+
name: "marketPlace",
|
|
1389
|
+
type: "address",
|
|
1390
|
+
indexed: true,
|
|
1391
|
+
internalType: "address"
|
|
1392
|
+
}
|
|
1393
|
+
],
|
|
1394
|
+
anonymous: false
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
type: "event",
|
|
1398
|
+
name: "OwnershipTransferred",
|
|
1399
|
+
inputs: [
|
|
1400
|
+
{
|
|
1401
|
+
name: "previousOwner",
|
|
1402
|
+
type: "address",
|
|
1403
|
+
indexed: true,
|
|
1404
|
+
internalType: "address"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
name: "newOwner",
|
|
1408
|
+
type: "address",
|
|
1409
|
+
indexed: true,
|
|
1410
|
+
internalType: "address"
|
|
1411
|
+
}
|
|
1412
|
+
],
|
|
1413
|
+
anonymous: false
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
type: "event",
|
|
1417
|
+
name: "Paused",
|
|
1418
|
+
inputs: [
|
|
1419
|
+
{
|
|
1420
|
+
name: "account",
|
|
1421
|
+
type: "address",
|
|
1422
|
+
indexed: false,
|
|
1423
|
+
internalType: "address"
|
|
1424
|
+
}
|
|
1425
|
+
],
|
|
1426
|
+
anonymous: false
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
type: "event",
|
|
1430
|
+
name: "RoyaltyPaid",
|
|
1431
|
+
inputs: [
|
|
1432
|
+
{
|
|
1433
|
+
name: "tokenId",
|
|
1434
|
+
type: "uint256",
|
|
1435
|
+
indexed: true,
|
|
1436
|
+
internalType: "uint256"
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
name: "royaltyAmount",
|
|
1440
|
+
type: "uint256",
|
|
1441
|
+
indexed: false,
|
|
1442
|
+
internalType: "uint256"
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
name: "creator",
|
|
1446
|
+
type: "address",
|
|
1447
|
+
indexed: false,
|
|
1448
|
+
internalType: "address"
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
name: "protocolAmount",
|
|
1452
|
+
type: "uint256",
|
|
1453
|
+
indexed: false,
|
|
1454
|
+
internalType: "uint256"
|
|
1455
|
+
}
|
|
1456
|
+
],
|
|
1457
|
+
anonymous: false
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
type: "event",
|
|
1461
|
+
name: "SignerUpdated",
|
|
1462
|
+
inputs: [
|
|
1463
|
+
{
|
|
1464
|
+
name: "signer",
|
|
1465
|
+
type: "address",
|
|
1466
|
+
indexed: true,
|
|
1467
|
+
internalType: "address"
|
|
1468
|
+
}
|
|
1469
|
+
],
|
|
1470
|
+
anonymous: false
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
type: "event",
|
|
1474
|
+
name: "StatusUpdated",
|
|
1475
|
+
inputs: [
|
|
1476
|
+
{
|
|
1477
|
+
name: "tokenId",
|
|
1478
|
+
type: "uint256",
|
|
1479
|
+
indexed: true,
|
|
1480
|
+
internalType: "uint256"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
name: "status",
|
|
1484
|
+
type: "uint8",
|
|
1485
|
+
indexed: false,
|
|
1486
|
+
internalType: "enum IIpNFT.DataStatus"
|
|
1487
|
+
}
|
|
1488
|
+
],
|
|
1489
|
+
anonymous: false
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
type: "event",
|
|
1493
|
+
name: "TermsUpdated",
|
|
1494
|
+
inputs: [
|
|
1495
|
+
{
|
|
1496
|
+
name: "tokenId",
|
|
1497
|
+
type: "uint256",
|
|
1498
|
+
indexed: true,
|
|
1499
|
+
internalType: "uint256"
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
name: "newPrice",
|
|
1503
|
+
type: "uint128",
|
|
1504
|
+
indexed: false,
|
|
1505
|
+
internalType: "uint128"
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
name: "newDuration",
|
|
1509
|
+
type: "uint32",
|
|
1510
|
+
indexed: false,
|
|
1511
|
+
internalType: "uint32"
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
name: "newRoyaltyBps",
|
|
1515
|
+
type: "uint16",
|
|
1516
|
+
indexed: false,
|
|
1517
|
+
internalType: "uint16"
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
name: "paymentToken",
|
|
1521
|
+
type: "address",
|
|
1522
|
+
indexed: false,
|
|
1523
|
+
internalType: "address"
|
|
1524
|
+
}
|
|
1525
|
+
],
|
|
1526
|
+
anonymous: false
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
type: "event",
|
|
1530
|
+
name: "Transfer",
|
|
1531
|
+
inputs: [
|
|
1532
|
+
{
|
|
1533
|
+
name: "from",
|
|
1534
|
+
type: "address",
|
|
1535
|
+
indexed: true,
|
|
1536
|
+
internalType: "address"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
name: "to",
|
|
1540
|
+
type: "address",
|
|
1541
|
+
indexed: true,
|
|
1542
|
+
internalType: "address"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
name: "tokenId",
|
|
1546
|
+
type: "uint256",
|
|
1547
|
+
indexed: true,
|
|
1548
|
+
internalType: "uint256"
|
|
1549
|
+
}
|
|
1550
|
+
],
|
|
1551
|
+
anonymous: false
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
type: "event",
|
|
1555
|
+
name: "Unpaused",
|
|
1556
|
+
inputs: [
|
|
1557
|
+
{
|
|
1558
|
+
name: "account",
|
|
1559
|
+
type: "address",
|
|
1560
|
+
indexed: false,
|
|
1561
|
+
internalType: "address"
|
|
1562
|
+
}
|
|
1563
|
+
],
|
|
1564
|
+
anonymous: false
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
type: "event",
|
|
1568
|
+
name: "Upgraded",
|
|
1569
|
+
inputs: [
|
|
1570
|
+
{
|
|
1571
|
+
name: "implementation",
|
|
1572
|
+
type: "address",
|
|
1573
|
+
indexed: true,
|
|
1574
|
+
internalType: "address"
|
|
1575
|
+
}
|
|
1576
|
+
],
|
|
1577
|
+
anonymous: false
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
type: "error",
|
|
1581
|
+
name: "AddressEmptyCode",
|
|
1582
|
+
inputs: [
|
|
1583
|
+
{
|
|
1584
|
+
name: "target",
|
|
1585
|
+
type: "address",
|
|
1586
|
+
internalType: "address"
|
|
1587
|
+
}
|
|
1588
|
+
]
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
type: "error",
|
|
1592
|
+
name: "ERC1967InvalidImplementation",
|
|
1593
|
+
inputs: [
|
|
1594
|
+
{
|
|
1595
|
+
name: "implementation",
|
|
1596
|
+
type: "address",
|
|
1597
|
+
internalType: "address"
|
|
1598
|
+
}
|
|
1599
|
+
]
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
type: "error",
|
|
1603
|
+
name: "ERC1967NonPayable",
|
|
1604
|
+
inputs: [
|
|
1605
|
+
]
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
type: "error",
|
|
1609
|
+
name: "ERC721IncorrectOwner",
|
|
1610
|
+
inputs: [
|
|
1611
|
+
{
|
|
1612
|
+
name: "sender",
|
|
1613
|
+
type: "address",
|
|
1614
|
+
internalType: "address"
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
name: "tokenId",
|
|
1618
|
+
type: "uint256",
|
|
1619
|
+
internalType: "uint256"
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
name: "owner",
|
|
1623
|
+
type: "address",
|
|
1624
|
+
internalType: "address"
|
|
1625
|
+
}
|
|
1626
|
+
]
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
type: "error",
|
|
1630
|
+
name: "ERC721InsufficientApproval",
|
|
1631
|
+
inputs: [
|
|
1632
|
+
{
|
|
1633
|
+
name: "operator",
|
|
1634
|
+
type: "address",
|
|
1635
|
+
internalType: "address"
|
|
1636
|
+
},
|
|
1637
|
+
{
|
|
1638
|
+
name: "tokenId",
|
|
1639
|
+
type: "uint256",
|
|
1640
|
+
internalType: "uint256"
|
|
1641
|
+
}
|
|
1642
|
+
]
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
type: "error",
|
|
1646
|
+
name: "ERC721InvalidApprover",
|
|
1647
|
+
inputs: [
|
|
1648
|
+
{
|
|
1649
|
+
name: "approver",
|
|
1650
|
+
type: "address",
|
|
1651
|
+
internalType: "address"
|
|
1652
|
+
}
|
|
1653
|
+
]
|
|
1654
|
+
},
|
|
1655
|
+
{
|
|
1656
|
+
type: "error",
|
|
1657
|
+
name: "ERC721InvalidOperator",
|
|
1658
|
+
inputs: [
|
|
1659
|
+
{
|
|
1660
|
+
name: "operator",
|
|
1661
|
+
type: "address",
|
|
1662
|
+
internalType: "address"
|
|
1663
|
+
}
|
|
1664
|
+
]
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
type: "error",
|
|
1668
|
+
name: "ERC721InvalidOwner",
|
|
1669
|
+
inputs: [
|
|
1670
|
+
{
|
|
1671
|
+
name: "owner",
|
|
1672
|
+
type: "address",
|
|
1673
|
+
internalType: "address"
|
|
1674
|
+
}
|
|
1675
|
+
]
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
type: "error",
|
|
1679
|
+
name: "ERC721InvalidReceiver",
|
|
1680
|
+
inputs: [
|
|
1681
|
+
{
|
|
1682
|
+
name: "receiver",
|
|
1683
|
+
type: "address",
|
|
1684
|
+
internalType: "address"
|
|
1685
|
+
}
|
|
1686
|
+
]
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
type: "error",
|
|
1690
|
+
name: "ERC721InvalidSender",
|
|
1691
|
+
inputs: [
|
|
1692
|
+
{
|
|
1693
|
+
name: "sender",
|
|
1694
|
+
type: "address",
|
|
1695
|
+
internalType: "address"
|
|
1696
|
+
}
|
|
1697
|
+
]
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
type: "error",
|
|
1701
|
+
name: "ERC721NonexistentToken",
|
|
1702
|
+
inputs: [
|
|
1703
|
+
{
|
|
1704
|
+
name: "tokenId",
|
|
1705
|
+
type: "uint256",
|
|
1706
|
+
internalType: "uint256"
|
|
1707
|
+
}
|
|
1708
|
+
]
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
type: "error",
|
|
1712
|
+
name: "EnforcedPause",
|
|
1713
|
+
inputs: [
|
|
1714
|
+
]
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
type: "error",
|
|
1718
|
+
name: "ExpectedPause",
|
|
1719
|
+
inputs: [
|
|
1720
|
+
]
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
type: "error",
|
|
1724
|
+
name: "FailedCall",
|
|
1725
|
+
inputs: [
|
|
1726
|
+
]
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
type: "error",
|
|
1730
|
+
name: "InvalidDeadline",
|
|
1731
|
+
inputs: [
|
|
1732
|
+
]
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
type: "error",
|
|
1736
|
+
name: "InvalidDuration",
|
|
1737
|
+
inputs: [
|
|
1738
|
+
]
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
type: "error",
|
|
1742
|
+
name: "InvalidInitialization",
|
|
1743
|
+
inputs: [
|
|
1744
|
+
]
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
type: "error",
|
|
1748
|
+
name: "InvalidPaymentToken",
|
|
1749
|
+
inputs: [
|
|
1750
|
+
]
|
|
1229
1751
|
},
|
|
1230
1752
|
{
|
|
1753
|
+
type: "error",
|
|
1754
|
+
name: "InvalidPrice",
|
|
1231
1755
|
inputs: [
|
|
1232
|
-
|
|
1233
|
-
internalType: "uint256",
|
|
1234
|
-
name: "tokenId",
|
|
1235
|
-
type: "uint256"
|
|
1236
|
-
}
|
|
1237
|
-
],
|
|
1238
|
-
name: "ownerOf",
|
|
1239
|
-
outputs: [
|
|
1240
|
-
{
|
|
1241
|
-
internalType: "address",
|
|
1242
|
-
name: "",
|
|
1243
|
-
type: "address"
|
|
1244
|
-
}
|
|
1245
|
-
],
|
|
1246
|
-
stateMutability: "view",
|
|
1247
|
-
type: "function"
|
|
1756
|
+
]
|
|
1248
1757
|
},
|
|
1249
1758
|
{
|
|
1759
|
+
type: "error",
|
|
1760
|
+
name: "InvalidRoyalty",
|
|
1250
1761
|
inputs: [
|
|
1251
|
-
]
|
|
1252
|
-
name: "pause",
|
|
1253
|
-
outputs: [
|
|
1254
|
-
],
|
|
1255
|
-
stateMutability: "nonpayable",
|
|
1256
|
-
type: "function"
|
|
1762
|
+
]
|
|
1257
1763
|
},
|
|
1258
1764
|
{
|
|
1765
|
+
type: "error",
|
|
1766
|
+
name: "InvalidSignature",
|
|
1259
1767
|
inputs: [
|
|
1260
|
-
]
|
|
1261
|
-
name: "paused",
|
|
1262
|
-
outputs: [
|
|
1263
|
-
{
|
|
1264
|
-
internalType: "bool",
|
|
1265
|
-
name: "",
|
|
1266
|
-
type: "bool"
|
|
1267
|
-
}
|
|
1268
|
-
],
|
|
1269
|
-
stateMutability: "view",
|
|
1270
|
-
type: "function"
|
|
1768
|
+
]
|
|
1271
1769
|
},
|
|
1272
1770
|
{
|
|
1771
|
+
type: "error",
|
|
1772
|
+
name: "NotInitializing",
|
|
1273
1773
|
inputs: [
|
|
1274
|
-
]
|
|
1275
|
-
name: "renounceOwnership",
|
|
1276
|
-
outputs: [
|
|
1277
|
-
],
|
|
1278
|
-
stateMutability: "nonpayable",
|
|
1279
|
-
type: "function"
|
|
1774
|
+
]
|
|
1280
1775
|
},
|
|
1281
1776
|
{
|
|
1777
|
+
type: "error",
|
|
1778
|
+
name: "NotTokenOwner",
|
|
1282
1779
|
inputs: [
|
|
1283
|
-
|
|
1284
|
-
internalType: "address",
|
|
1285
|
-
name: "from",
|
|
1286
|
-
type: "address"
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
internalType: "address",
|
|
1290
|
-
name: "to",
|
|
1291
|
-
type: "address"
|
|
1292
|
-
},
|
|
1293
|
-
{
|
|
1294
|
-
internalType: "uint256",
|
|
1295
|
-
name: "tokenId",
|
|
1296
|
-
type: "uint256"
|
|
1297
|
-
}
|
|
1298
|
-
],
|
|
1299
|
-
name: "safeTransferFrom",
|
|
1300
|
-
outputs: [
|
|
1301
|
-
],
|
|
1302
|
-
stateMutability: "nonpayable",
|
|
1303
|
-
type: "function"
|
|
1780
|
+
]
|
|
1304
1781
|
},
|
|
1305
1782
|
{
|
|
1783
|
+
type: "error",
|
|
1784
|
+
name: "OwnableInvalidOwner",
|
|
1306
1785
|
inputs: [
|
|
1307
1786
|
{
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
},
|
|
1312
|
-
{
|
|
1313
|
-
internalType: "address",
|
|
1314
|
-
name: "to",
|
|
1315
|
-
type: "address"
|
|
1316
|
-
},
|
|
1317
|
-
{
|
|
1318
|
-
internalType: "uint256",
|
|
1319
|
-
name: "tokenId",
|
|
1320
|
-
type: "uint256"
|
|
1321
|
-
},
|
|
1322
|
-
{
|
|
1323
|
-
internalType: "bytes",
|
|
1324
|
-
name: "data",
|
|
1325
|
-
type: "bytes"
|
|
1787
|
+
name: "owner",
|
|
1788
|
+
type: "address",
|
|
1789
|
+
internalType: "address"
|
|
1326
1790
|
}
|
|
1327
|
-
]
|
|
1328
|
-
name: "safeTransferFrom",
|
|
1329
|
-
outputs: [
|
|
1330
|
-
],
|
|
1331
|
-
stateMutability: "nonpayable",
|
|
1332
|
-
type: "function"
|
|
1791
|
+
]
|
|
1333
1792
|
},
|
|
1334
1793
|
{
|
|
1794
|
+
type: "error",
|
|
1795
|
+
name: "OwnableUnauthorizedAccount",
|
|
1335
1796
|
inputs: [
|
|
1336
1797
|
{
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
internalType: "bool",
|
|
1343
|
-
name: "approved",
|
|
1344
|
-
type: "bool"
|
|
1798
|
+
name: "account",
|
|
1799
|
+
type: "address",
|
|
1800
|
+
internalType: "address"
|
|
1345
1801
|
}
|
|
1346
|
-
]
|
|
1347
|
-
name: "setApprovalForAll",
|
|
1348
|
-
outputs: [
|
|
1349
|
-
],
|
|
1350
|
-
stateMutability: "nonpayable",
|
|
1351
|
-
type: "function"
|
|
1802
|
+
]
|
|
1352
1803
|
},
|
|
1353
1804
|
{
|
|
1805
|
+
type: "error",
|
|
1806
|
+
name: "TokenAlreadyExists",
|
|
1354
1807
|
inputs: [
|
|
1355
|
-
|
|
1356
|
-
internalType: "address",
|
|
1357
|
-
name: "_disputeModule",
|
|
1358
|
-
type: "address"
|
|
1359
|
-
}
|
|
1360
|
-
],
|
|
1361
|
-
name: "setDisputeModule",
|
|
1362
|
-
outputs: [
|
|
1363
|
-
],
|
|
1364
|
-
stateMutability: "nonpayable",
|
|
1365
|
-
type: "function"
|
|
1808
|
+
]
|
|
1366
1809
|
},
|
|
1367
1810
|
{
|
|
1811
|
+
type: "error",
|
|
1812
|
+
name: "UUPSUnauthorizedCallContext",
|
|
1368
1813
|
inputs: [
|
|
1369
|
-
|
|
1370
|
-
internalType: "address",
|
|
1371
|
-
name: "_marketPlace",
|
|
1372
|
-
type: "address"
|
|
1373
|
-
}
|
|
1374
|
-
],
|
|
1375
|
-
name: "setMarketPlace",
|
|
1376
|
-
outputs: [
|
|
1377
|
-
],
|
|
1378
|
-
stateMutability: "nonpayable",
|
|
1379
|
-
type: "function"
|
|
1814
|
+
]
|
|
1380
1815
|
},
|
|
1381
1816
|
{
|
|
1817
|
+
type: "error",
|
|
1818
|
+
name: "UUPSUnsupportedProxiableUUID",
|
|
1382
1819
|
inputs: [
|
|
1383
1820
|
{
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1821
|
+
name: "slot",
|
|
1822
|
+
type: "bytes32",
|
|
1823
|
+
internalType: "bytes32"
|
|
1387
1824
|
}
|
|
1388
|
-
]
|
|
1389
|
-
name: "setSigner",
|
|
1390
|
-
outputs: [
|
|
1391
|
-
],
|
|
1392
|
-
stateMutability: "nonpayable",
|
|
1393
|
-
type: "function"
|
|
1825
|
+
]
|
|
1394
1826
|
},
|
|
1395
1827
|
{
|
|
1828
|
+
type: "error",
|
|
1829
|
+
name: "Unauthorized",
|
|
1396
1830
|
inputs: [
|
|
1397
|
-
]
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
name: "",
|
|
1403
|
-
type: "address"
|
|
1404
|
-
}
|
|
1405
|
-
],
|
|
1406
|
-
stateMutability: "view",
|
|
1407
|
-
type: "function"
|
|
1408
|
-
},
|
|
1831
|
+
]
|
|
1832
|
+
}
|
|
1833
|
+
];
|
|
1834
|
+
|
|
1835
|
+
var marketplaceMainnetAbi = [
|
|
1409
1836
|
{
|
|
1837
|
+
type: "function",
|
|
1838
|
+
name: "MAX_PARENTS",
|
|
1410
1839
|
inputs: [
|
|
1411
|
-
{
|
|
1412
|
-
internalType: "bytes4",
|
|
1413
|
-
name: "interfaceId",
|
|
1414
|
-
type: "bytes4"
|
|
1415
|
-
}
|
|
1416
1840
|
],
|
|
1417
|
-
name: "supportsInterface",
|
|
1418
1841
|
outputs: [
|
|
1419
1842
|
{
|
|
1420
|
-
internalType: "bool",
|
|
1421
1843
|
name: "",
|
|
1422
|
-
type: "
|
|
1844
|
+
type: "uint256",
|
|
1845
|
+
internalType: "uint256"
|
|
1423
1846
|
}
|
|
1424
1847
|
],
|
|
1425
|
-
stateMutability: "view"
|
|
1426
|
-
type: "function"
|
|
1848
|
+
stateMutability: "view"
|
|
1427
1849
|
},
|
|
1428
1850
|
{
|
|
1851
|
+
type: "function",
|
|
1852
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
1429
1853
|
inputs: [
|
|
1430
1854
|
],
|
|
1431
|
-
name: "symbol",
|
|
1432
1855
|
outputs: [
|
|
1433
1856
|
{
|
|
1434
|
-
internalType: "string",
|
|
1435
1857
|
name: "",
|
|
1436
|
-
type: "string"
|
|
1858
|
+
type: "string",
|
|
1859
|
+
internalType: "string"
|
|
1437
1860
|
}
|
|
1438
1861
|
],
|
|
1439
|
-
stateMutability: "view"
|
|
1440
|
-
type: "function"
|
|
1862
|
+
stateMutability: "view"
|
|
1441
1863
|
},
|
|
1442
1864
|
{
|
|
1865
|
+
type: "function",
|
|
1866
|
+
name: "buyAccess",
|
|
1443
1867
|
inputs: [
|
|
1444
1868
|
{
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
}
|
|
1449
|
-
],
|
|
1450
|
-
name: "tokenInfo",
|
|
1451
|
-
outputs: [
|
|
1869
|
+
name: "buyer",
|
|
1870
|
+
type: "address",
|
|
1871
|
+
internalType: "address"
|
|
1872
|
+
},
|
|
1452
1873
|
{
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1874
|
+
name: "tokenId",
|
|
1875
|
+
type: "uint256",
|
|
1876
|
+
internalType: "uint256"
|
|
1456
1877
|
},
|
|
1457
1878
|
{
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1879
|
+
name: "expectedPrice",
|
|
1880
|
+
type: "uint256",
|
|
1881
|
+
internalType: "uint256"
|
|
1461
1882
|
},
|
|
1462
1883
|
{
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
name: "price",
|
|
1467
|
-
type: "uint128"
|
|
1468
|
-
},
|
|
1469
|
-
{
|
|
1470
|
-
internalType: "uint32",
|
|
1471
|
-
name: "duration",
|
|
1472
|
-
type: "uint32"
|
|
1473
|
-
},
|
|
1474
|
-
{
|
|
1475
|
-
internalType: "uint16",
|
|
1476
|
-
name: "royaltyBps",
|
|
1477
|
-
type: "uint16"
|
|
1478
|
-
},
|
|
1479
|
-
{
|
|
1480
|
-
internalType: "address",
|
|
1481
|
-
name: "paymentToken",
|
|
1482
|
-
type: "address"
|
|
1483
|
-
}
|
|
1484
|
-
],
|
|
1485
|
-
internalType: "struct IIpNFT.LicenseTerms",
|
|
1486
|
-
name: "terms",
|
|
1487
|
-
type: "tuple"
|
|
1884
|
+
name: "expectedDuration",
|
|
1885
|
+
type: "uint32",
|
|
1886
|
+
internalType: "uint32"
|
|
1488
1887
|
},
|
|
1489
1888
|
{
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1889
|
+
name: "expectedPaymentToken",
|
|
1890
|
+
type: "address",
|
|
1891
|
+
internalType: "address"
|
|
1493
1892
|
}
|
|
1494
1893
|
],
|
|
1495
|
-
|
|
1496
|
-
|
|
1894
|
+
outputs: [
|
|
1895
|
+
],
|
|
1896
|
+
stateMutability: "payable"
|
|
1497
1897
|
},
|
|
1498
1898
|
{
|
|
1899
|
+
type: "function",
|
|
1900
|
+
name: "hasParentIp",
|
|
1499
1901
|
inputs: [
|
|
1500
1902
|
{
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1903
|
+
name: "ipId",
|
|
1904
|
+
type: "uint256",
|
|
1905
|
+
internalType: "uint256"
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
name: "parent",
|
|
1909
|
+
type: "uint256",
|
|
1910
|
+
internalType: "uint256"
|
|
1504
1911
|
}
|
|
1505
1912
|
],
|
|
1506
|
-
name: "tokenURI",
|
|
1507
1913
|
outputs: [
|
|
1508
1914
|
{
|
|
1509
|
-
internalType: "string",
|
|
1510
1915
|
name: "",
|
|
1511
|
-
type: "
|
|
1916
|
+
type: "bool",
|
|
1917
|
+
internalType: "bool"
|
|
1512
1918
|
}
|
|
1513
1919
|
],
|
|
1514
|
-
stateMutability: "view"
|
|
1515
|
-
type: "function"
|
|
1920
|
+
stateMutability: "view"
|
|
1516
1921
|
},
|
|
1517
1922
|
{
|
|
1923
|
+
type: "function",
|
|
1924
|
+
name: "initialize",
|
|
1518
1925
|
inputs: [
|
|
1519
1926
|
{
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1927
|
+
name: "dataNFT_",
|
|
1928
|
+
type: "address",
|
|
1929
|
+
internalType: "address"
|
|
1523
1930
|
},
|
|
1524
1931
|
{
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1932
|
+
name: "protocolFeeBps_",
|
|
1933
|
+
type: "uint16",
|
|
1934
|
+
internalType: "uint16"
|
|
1528
1935
|
},
|
|
1529
1936
|
{
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
}
|
|
1534
|
-
],
|
|
1535
|
-
name: "transferFrom",
|
|
1536
|
-
outputs: [
|
|
1537
|
-
],
|
|
1538
|
-
stateMutability: "nonpayable",
|
|
1539
|
-
type: "function"
|
|
1540
|
-
},
|
|
1541
|
-
{
|
|
1542
|
-
inputs: [
|
|
1543
|
-
{
|
|
1544
|
-
internalType: "address",
|
|
1545
|
-
name: "newOwner",
|
|
1546
|
-
type: "address"
|
|
1937
|
+
name: "treasury_",
|
|
1938
|
+
type: "address",
|
|
1939
|
+
internalType: "address"
|
|
1547
1940
|
}
|
|
1548
1941
|
],
|
|
1549
|
-
name: "transferOwnership",
|
|
1550
1942
|
outputs: [
|
|
1551
1943
|
],
|
|
1552
|
-
stateMutability: "nonpayable"
|
|
1553
|
-
type: "function"
|
|
1944
|
+
stateMutability: "nonpayable"
|
|
1554
1945
|
},
|
|
1555
1946
|
{
|
|
1947
|
+
type: "function",
|
|
1948
|
+
name: "ipToken",
|
|
1556
1949
|
inputs: [
|
|
1557
1950
|
],
|
|
1558
|
-
name: "unpause",
|
|
1559
1951
|
outputs: [
|
|
1560
|
-
],
|
|
1561
|
-
stateMutability: "nonpayable",
|
|
1562
|
-
type: "function"
|
|
1563
|
-
},
|
|
1564
|
-
{
|
|
1565
|
-
inputs: [
|
|
1566
1952
|
{
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
},
|
|
1571
|
-
{
|
|
1572
|
-
components: [
|
|
1573
|
-
{
|
|
1574
|
-
internalType: "uint128",
|
|
1575
|
-
name: "price",
|
|
1576
|
-
type: "uint128"
|
|
1577
|
-
},
|
|
1578
|
-
{
|
|
1579
|
-
internalType: "uint32",
|
|
1580
|
-
name: "duration",
|
|
1581
|
-
type: "uint32"
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
internalType: "uint16",
|
|
1585
|
-
name: "royaltyBps",
|
|
1586
|
-
type: "uint16"
|
|
1587
|
-
},
|
|
1588
|
-
{
|
|
1589
|
-
internalType: "address",
|
|
1590
|
-
name: "paymentToken",
|
|
1591
|
-
type: "address"
|
|
1592
|
-
}
|
|
1593
|
-
],
|
|
1594
|
-
internalType: "struct IIpNFT.LicenseTerms",
|
|
1595
|
-
name: "newTerms",
|
|
1596
|
-
type: "tuple"
|
|
1953
|
+
name: "",
|
|
1954
|
+
type: "address",
|
|
1955
|
+
internalType: "contract IIpNFT"
|
|
1597
1956
|
}
|
|
1598
1957
|
],
|
|
1599
|
-
|
|
1600
|
-
outputs: [
|
|
1601
|
-
],
|
|
1602
|
-
stateMutability: "nonpayable",
|
|
1603
|
-
type: "function"
|
|
1958
|
+
stateMutability: "view"
|
|
1604
1959
|
},
|
|
1605
1960
|
{
|
|
1961
|
+
type: "function",
|
|
1962
|
+
name: "owner",
|
|
1606
1963
|
inputs: [
|
|
1607
1964
|
],
|
|
1608
|
-
name: "wCAMP",
|
|
1609
1965
|
outputs: [
|
|
1610
1966
|
{
|
|
1611
|
-
internalType: "address",
|
|
1612
1967
|
name: "",
|
|
1613
|
-
type: "address"
|
|
1968
|
+
type: "address",
|
|
1969
|
+
internalType: "address"
|
|
1614
1970
|
}
|
|
1615
1971
|
],
|
|
1616
|
-
stateMutability: "view"
|
|
1617
|
-
|
|
1618
|
-
}
|
|
1619
|
-
];
|
|
1620
|
-
|
|
1621
|
-
var marketplaceMainnetAbi = [
|
|
1972
|
+
stateMutability: "view"
|
|
1973
|
+
},
|
|
1622
1974
|
{
|
|
1975
|
+
type: "function",
|
|
1976
|
+
name: "parentRoyaltyPercent",
|
|
1623
1977
|
inputs: [
|
|
1624
1978
|
{
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1979
|
+
name: "",
|
|
1980
|
+
type: "uint256",
|
|
1981
|
+
internalType: "uint256"
|
|
1628
1982
|
},
|
|
1629
1983
|
{
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
}
|
|
1984
|
+
name: "",
|
|
1985
|
+
type: "uint256",
|
|
1986
|
+
internalType: "uint256"
|
|
1987
|
+
}
|
|
1988
|
+
],
|
|
1989
|
+
outputs: [
|
|
1634
1990
|
{
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1991
|
+
name: "",
|
|
1992
|
+
type: "uint16",
|
|
1993
|
+
internalType: "uint16"
|
|
1638
1994
|
}
|
|
1639
1995
|
],
|
|
1640
|
-
stateMutability: "
|
|
1641
|
-
type: "constructor"
|
|
1996
|
+
stateMutability: "view"
|
|
1642
1997
|
},
|
|
1643
1998
|
{
|
|
1999
|
+
type: "function",
|
|
2000
|
+
name: "pause",
|
|
1644
2001
|
inputs: [
|
|
1645
2002
|
],
|
|
1646
|
-
|
|
1647
|
-
type: "error"
|
|
1648
|
-
},
|
|
1649
|
-
{
|
|
1650
|
-
inputs: [
|
|
2003
|
+
outputs: [
|
|
1651
2004
|
],
|
|
1652
|
-
|
|
1653
|
-
type: "error"
|
|
2005
|
+
stateMutability: "nonpayable"
|
|
1654
2006
|
},
|
|
1655
2007
|
{
|
|
2008
|
+
type: "function",
|
|
2009
|
+
name: "paused",
|
|
1656
2010
|
inputs: [
|
|
1657
2011
|
],
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
2012
|
+
outputs: [
|
|
2013
|
+
{
|
|
2014
|
+
name: "",
|
|
2015
|
+
type: "bool",
|
|
2016
|
+
internalType: "bool"
|
|
2017
|
+
}
|
|
1663
2018
|
],
|
|
1664
|
-
|
|
1665
|
-
type: "error"
|
|
2019
|
+
stateMutability: "view"
|
|
1666
2020
|
},
|
|
1667
2021
|
{
|
|
2022
|
+
type: "function",
|
|
2023
|
+
name: "protocolFeeBps",
|
|
1668
2024
|
inputs: [
|
|
1669
2025
|
],
|
|
1670
|
-
|
|
1671
|
-
|
|
2026
|
+
outputs: [
|
|
2027
|
+
{
|
|
2028
|
+
name: "",
|
|
2029
|
+
type: "uint16",
|
|
2030
|
+
internalType: "uint16"
|
|
2031
|
+
}
|
|
2032
|
+
],
|
|
2033
|
+
stateMutability: "view"
|
|
1672
2034
|
},
|
|
1673
2035
|
{
|
|
2036
|
+
type: "function",
|
|
2037
|
+
name: "proxiableUUID",
|
|
1674
2038
|
inputs: [
|
|
1675
2039
|
],
|
|
1676
|
-
|
|
1677
|
-
|
|
2040
|
+
outputs: [
|
|
2041
|
+
{
|
|
2042
|
+
name: "",
|
|
2043
|
+
type: "bytes32",
|
|
2044
|
+
internalType: "bytes32"
|
|
2045
|
+
}
|
|
2046
|
+
],
|
|
2047
|
+
stateMutability: "view"
|
|
1678
2048
|
},
|
|
1679
2049
|
{
|
|
2050
|
+
type: "function",
|
|
2051
|
+
name: "renounceOwnership",
|
|
1680
2052
|
inputs: [
|
|
1681
2053
|
],
|
|
1682
|
-
|
|
1683
|
-
|
|
2054
|
+
outputs: [
|
|
2055
|
+
],
|
|
2056
|
+
stateMutability: "nonpayable"
|
|
1684
2057
|
},
|
|
1685
2058
|
{
|
|
2059
|
+
type: "function",
|
|
2060
|
+
name: "royaltyStack",
|
|
1686
2061
|
inputs: [
|
|
2062
|
+
{
|
|
2063
|
+
name: "",
|
|
2064
|
+
type: "uint256",
|
|
2065
|
+
internalType: "uint256"
|
|
2066
|
+
}
|
|
1687
2067
|
],
|
|
1688
|
-
|
|
1689
|
-
|
|
2068
|
+
outputs: [
|
|
2069
|
+
{
|
|
2070
|
+
name: "",
|
|
2071
|
+
type: "uint16",
|
|
2072
|
+
internalType: "uint16"
|
|
2073
|
+
}
|
|
2074
|
+
],
|
|
2075
|
+
stateMutability: "view"
|
|
1690
2076
|
},
|
|
1691
2077
|
{
|
|
2078
|
+
type: "function",
|
|
2079
|
+
name: "setParentIpsAndRoyaltyPercents",
|
|
1692
2080
|
inputs: [
|
|
1693
2081
|
{
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
2082
|
+
name: "childIpId",
|
|
2083
|
+
type: "uint256",
|
|
2084
|
+
internalType: "uint256"
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
name: "parents",
|
|
2088
|
+
type: "uint256[]",
|
|
2089
|
+
internalType: "uint256[]"
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
name: "creator",
|
|
2093
|
+
type: "address",
|
|
2094
|
+
internalType: "address"
|
|
1697
2095
|
}
|
|
1698
2096
|
],
|
|
1699
|
-
|
|
1700
|
-
|
|
2097
|
+
outputs: [
|
|
2098
|
+
],
|
|
2099
|
+
stateMutability: "nonpayable"
|
|
1701
2100
|
},
|
|
1702
2101
|
{
|
|
2102
|
+
type: "function",
|
|
2103
|
+
name: "subscriptionExpiry",
|
|
1703
2104
|
inputs: [
|
|
1704
2105
|
{
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
2106
|
+
name: "",
|
|
2107
|
+
type: "uint256",
|
|
2108
|
+
internalType: "uint256"
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
name: "",
|
|
2112
|
+
type: "address",
|
|
2113
|
+
internalType: "address"
|
|
1708
2114
|
}
|
|
1709
2115
|
],
|
|
1710
|
-
|
|
1711
|
-
|
|
2116
|
+
outputs: [
|
|
2117
|
+
{
|
|
2118
|
+
name: "",
|
|
2119
|
+
type: "uint256",
|
|
2120
|
+
internalType: "uint256"
|
|
2121
|
+
}
|
|
2122
|
+
],
|
|
2123
|
+
stateMutability: "view"
|
|
1712
2124
|
},
|
|
1713
2125
|
{
|
|
2126
|
+
type: "function",
|
|
2127
|
+
name: "transferOwnership",
|
|
1714
2128
|
inputs: [
|
|
2129
|
+
{
|
|
2130
|
+
name: "newOwner",
|
|
2131
|
+
type: "address",
|
|
2132
|
+
internalType: "address"
|
|
2133
|
+
}
|
|
1715
2134
|
],
|
|
1716
|
-
|
|
1717
|
-
|
|
2135
|
+
outputs: [
|
|
2136
|
+
],
|
|
2137
|
+
stateMutability: "nonpayable"
|
|
1718
2138
|
},
|
|
1719
2139
|
{
|
|
2140
|
+
type: "function",
|
|
2141
|
+
name: "treasury",
|
|
1720
2142
|
inputs: [
|
|
1721
2143
|
],
|
|
1722
|
-
|
|
1723
|
-
|
|
2144
|
+
outputs: [
|
|
2145
|
+
{
|
|
2146
|
+
name: "",
|
|
2147
|
+
type: "address",
|
|
2148
|
+
internalType: "address"
|
|
2149
|
+
}
|
|
2150
|
+
],
|
|
2151
|
+
stateMutability: "view"
|
|
1724
2152
|
},
|
|
1725
2153
|
{
|
|
2154
|
+
type: "function",
|
|
2155
|
+
name: "unpause",
|
|
1726
2156
|
inputs: [
|
|
1727
2157
|
],
|
|
1728
|
-
|
|
1729
|
-
|
|
2158
|
+
outputs: [
|
|
2159
|
+
],
|
|
2160
|
+
stateMutability: "nonpayable"
|
|
1730
2161
|
},
|
|
1731
2162
|
{
|
|
2163
|
+
type: "function",
|
|
2164
|
+
name: "updateProtocolFee",
|
|
1732
2165
|
inputs: [
|
|
2166
|
+
{
|
|
2167
|
+
name: "newFeeBps",
|
|
2168
|
+
type: "uint16",
|
|
2169
|
+
internalType: "uint16"
|
|
2170
|
+
}
|
|
1733
2171
|
],
|
|
1734
|
-
|
|
1735
|
-
|
|
2172
|
+
outputs: [
|
|
2173
|
+
],
|
|
2174
|
+
stateMutability: "nonpayable"
|
|
1736
2175
|
},
|
|
1737
2176
|
{
|
|
2177
|
+
type: "function",
|
|
2178
|
+
name: "updateTreasury",
|
|
1738
2179
|
inputs: [
|
|
2180
|
+
{
|
|
2181
|
+
name: "newTreasury",
|
|
2182
|
+
type: "address",
|
|
2183
|
+
internalType: "address"
|
|
2184
|
+
}
|
|
1739
2185
|
],
|
|
1740
|
-
|
|
1741
|
-
|
|
2186
|
+
outputs: [
|
|
2187
|
+
],
|
|
2188
|
+
stateMutability: "nonpayable"
|
|
1742
2189
|
},
|
|
1743
2190
|
{
|
|
2191
|
+
type: "function",
|
|
2192
|
+
name: "upgradeToAndCall",
|
|
1744
2193
|
inputs: [
|
|
2194
|
+
{
|
|
2195
|
+
name: "newImplementation",
|
|
2196
|
+
type: "address",
|
|
2197
|
+
internalType: "address"
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
name: "data",
|
|
2201
|
+
type: "bytes",
|
|
2202
|
+
internalType: "bytes"
|
|
2203
|
+
}
|
|
1745
2204
|
],
|
|
1746
|
-
|
|
1747
|
-
|
|
2205
|
+
outputs: [
|
|
2206
|
+
],
|
|
2207
|
+
stateMutability: "payable"
|
|
1748
2208
|
},
|
|
1749
2209
|
{
|
|
1750
|
-
|
|
2210
|
+
type: "event",
|
|
2211
|
+
name: "AccessPurchased",
|
|
1751
2212
|
inputs: [
|
|
1752
2213
|
{
|
|
1753
|
-
indexed: true,
|
|
1754
|
-
internalType: "uint256",
|
|
1755
2214
|
name: "tokenId",
|
|
1756
|
-
type: "uint256"
|
|
2215
|
+
type: "uint256",
|
|
2216
|
+
indexed: true,
|
|
2217
|
+
internalType: "uint256"
|
|
1757
2218
|
},
|
|
1758
2219
|
{
|
|
1759
|
-
indexed: true,
|
|
1760
|
-
internalType: "address",
|
|
1761
2220
|
name: "buyer",
|
|
1762
|
-
type: "address"
|
|
2221
|
+
type: "address",
|
|
2222
|
+
indexed: true,
|
|
2223
|
+
internalType: "address"
|
|
1763
2224
|
},
|
|
1764
2225
|
{
|
|
1765
|
-
indexed: false,
|
|
1766
|
-
internalType: "uint32",
|
|
1767
2226
|
name: "periods",
|
|
1768
|
-
type: "uint32"
|
|
2227
|
+
type: "uint32",
|
|
2228
|
+
indexed: false,
|
|
2229
|
+
internalType: "uint32"
|
|
1769
2230
|
},
|
|
1770
2231
|
{
|
|
1771
|
-
indexed: false,
|
|
1772
|
-
internalType: "uint256",
|
|
1773
2232
|
name: "newExpiry",
|
|
1774
|
-
type: "uint256"
|
|
2233
|
+
type: "uint256",
|
|
2234
|
+
indexed: false,
|
|
2235
|
+
internalType: "uint256"
|
|
1775
2236
|
},
|
|
1776
2237
|
{
|
|
1777
|
-
indexed: false,
|
|
1778
|
-
internalType: "uint256",
|
|
1779
2238
|
name: "amountPaid",
|
|
1780
|
-
type: "uint256"
|
|
2239
|
+
type: "uint256",
|
|
2240
|
+
indexed: false,
|
|
2241
|
+
internalType: "uint256"
|
|
1781
2242
|
}
|
|
1782
2243
|
],
|
|
1783
|
-
|
|
1784
|
-
type: "event"
|
|
2244
|
+
anonymous: false
|
|
1785
2245
|
},
|
|
1786
2246
|
{
|
|
1787
|
-
|
|
2247
|
+
type: "event",
|
|
2248
|
+
name: "AgentRegistered",
|
|
1788
2249
|
inputs: [
|
|
1789
2250
|
{
|
|
2251
|
+
name: "agentId",
|
|
2252
|
+
type: "uint256",
|
|
1790
2253
|
indexed: true,
|
|
1791
|
-
internalType: "uint256"
|
|
1792
|
-
name: "id",
|
|
1793
|
-
type: "uint256"
|
|
2254
|
+
internalType: "uint256"
|
|
1794
2255
|
},
|
|
1795
2256
|
{
|
|
2257
|
+
name: "ipNftId",
|
|
2258
|
+
type: "uint256",
|
|
1796
2259
|
indexed: true,
|
|
1797
|
-
internalType: "uint256"
|
|
1798
|
-
name: "childIp",
|
|
1799
|
-
type: "uint256"
|
|
2260
|
+
internalType: "uint256"
|
|
1800
2261
|
},
|
|
1801
2262
|
{
|
|
2263
|
+
name: "agentAddress",
|
|
2264
|
+
type: "address",
|
|
1802
2265
|
indexed: false,
|
|
1803
|
-
internalType: "
|
|
1804
|
-
name: "parentIp",
|
|
1805
|
-
type: "uint256"
|
|
2266
|
+
internalType: "address"
|
|
1806
2267
|
}
|
|
1807
2268
|
],
|
|
1808
|
-
|
|
1809
|
-
type: "event"
|
|
2269
|
+
anonymous: false
|
|
1810
2270
|
},
|
|
1811
2271
|
{
|
|
1812
|
-
|
|
2272
|
+
type: "event",
|
|
2273
|
+
name: "ChildIpTagged",
|
|
1813
2274
|
inputs: [
|
|
1814
2275
|
{
|
|
2276
|
+
name: "id",
|
|
2277
|
+
type: "uint256",
|
|
1815
2278
|
indexed: true,
|
|
1816
|
-
internalType: "uint256"
|
|
1817
|
-
name: "tokenId",
|
|
1818
|
-
type: "uint256"
|
|
2279
|
+
internalType: "uint256"
|
|
1819
2280
|
},
|
|
1820
2281
|
{
|
|
2282
|
+
name: "childIp",
|
|
2283
|
+
type: "uint256",
|
|
1821
2284
|
indexed: true,
|
|
1822
|
-
internalType: "
|
|
1823
|
-
|
|
1824
|
-
|
|
2285
|
+
internalType: "uint256"
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
name: "parentIp",
|
|
2289
|
+
type: "uint256",
|
|
2290
|
+
indexed: false,
|
|
2291
|
+
internalType: "uint256"
|
|
1825
2292
|
}
|
|
1826
2293
|
],
|
|
1827
|
-
|
|
1828
|
-
type: "event"
|
|
2294
|
+
anonymous: false
|
|
1829
2295
|
},
|
|
1830
2296
|
{
|
|
1831
|
-
|
|
2297
|
+
type: "event",
|
|
2298
|
+
name: "DataDeleted",
|
|
1832
2299
|
inputs: [
|
|
1833
2300
|
{
|
|
1834
|
-
indexed: true,
|
|
1835
|
-
internalType: "uint256",
|
|
1836
2301
|
name: "tokenId",
|
|
1837
|
-
type: "uint256"
|
|
2302
|
+
type: "uint256",
|
|
2303
|
+
indexed: true,
|
|
2304
|
+
internalType: "uint256"
|
|
1838
2305
|
},
|
|
1839
2306
|
{
|
|
2307
|
+
name: "creator",
|
|
2308
|
+
type: "address",
|
|
2309
|
+
indexed: true,
|
|
2310
|
+
internalType: "address"
|
|
2311
|
+
}
|
|
2312
|
+
],
|
|
2313
|
+
anonymous: false
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
type: "event",
|
|
2317
|
+
name: "DataMinted",
|
|
2318
|
+
inputs: [
|
|
2319
|
+
{
|
|
2320
|
+
name: "tokenId",
|
|
2321
|
+
type: "uint256",
|
|
1840
2322
|
indexed: true,
|
|
1841
|
-
internalType: "
|
|
2323
|
+
internalType: "uint256"
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
1842
2326
|
name: "creator",
|
|
1843
|
-
type: "address"
|
|
2327
|
+
type: "address",
|
|
2328
|
+
indexed: true,
|
|
2329
|
+
internalType: "address"
|
|
1844
2330
|
},
|
|
1845
2331
|
{
|
|
1846
|
-
indexed: false,
|
|
1847
|
-
internalType: "bytes32",
|
|
1848
2332
|
name: "contentHash",
|
|
1849
|
-
type: "bytes32"
|
|
2333
|
+
type: "bytes32",
|
|
2334
|
+
indexed: false,
|
|
2335
|
+
internalType: "bytes32"
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
name: "parents",
|
|
2339
|
+
type: "uint256[]",
|
|
2340
|
+
indexed: false,
|
|
2341
|
+
internalType: "uint256[]"
|
|
1850
2342
|
}
|
|
1851
2343
|
],
|
|
1852
|
-
|
|
1853
|
-
type: "event"
|
|
2344
|
+
anonymous: false
|
|
1854
2345
|
},
|
|
1855
2346
|
{
|
|
1856
|
-
|
|
2347
|
+
type: "event",
|
|
2348
|
+
name: "DisputeAssertion",
|
|
1857
2349
|
inputs: [
|
|
1858
2350
|
{
|
|
1859
|
-
indexed: true,
|
|
1860
|
-
internalType: "uint256",
|
|
1861
2351
|
name: "id",
|
|
1862
|
-
type: "uint256"
|
|
2352
|
+
type: "uint256",
|
|
2353
|
+
indexed: true,
|
|
2354
|
+
internalType: "uint256"
|
|
1863
2355
|
},
|
|
1864
2356
|
{
|
|
1865
|
-
indexed: false,
|
|
1866
|
-
internalType: "bytes32",
|
|
1867
2357
|
name: "counterEvidenceHash",
|
|
1868
|
-
type: "bytes32"
|
|
2358
|
+
type: "bytes32",
|
|
2359
|
+
indexed: false,
|
|
2360
|
+
internalType: "bytes32"
|
|
1869
2361
|
}
|
|
1870
2362
|
],
|
|
1871
|
-
|
|
1872
|
-
type: "event"
|
|
2363
|
+
anonymous: false
|
|
1873
2364
|
},
|
|
1874
2365
|
{
|
|
1875
|
-
|
|
2366
|
+
type: "event",
|
|
2367
|
+
name: "DisputeCancelled",
|
|
1876
2368
|
inputs: [
|
|
1877
2369
|
{
|
|
1878
|
-
indexed: true,
|
|
1879
|
-
internalType: "uint256",
|
|
1880
2370
|
name: "id",
|
|
1881
|
-
type: "uint256"
|
|
2371
|
+
type: "uint256",
|
|
2372
|
+
indexed: true,
|
|
2373
|
+
internalType: "uint256"
|
|
1882
2374
|
}
|
|
1883
2375
|
],
|
|
1884
|
-
|
|
1885
|
-
type: "event"
|
|
2376
|
+
anonymous: false
|
|
1886
2377
|
},
|
|
1887
2378
|
{
|
|
1888
|
-
|
|
2379
|
+
type: "event",
|
|
2380
|
+
name: "DisputeJudged",
|
|
1889
2381
|
inputs: [
|
|
1890
2382
|
{
|
|
1891
|
-
indexed: true,
|
|
1892
|
-
internalType: "uint256",
|
|
1893
2383
|
name: "id",
|
|
1894
|
-
type: "uint256"
|
|
2384
|
+
type: "uint256",
|
|
2385
|
+
indexed: true,
|
|
2386
|
+
internalType: "uint256"
|
|
1895
2387
|
},
|
|
1896
2388
|
{
|
|
1897
|
-
indexed: false,
|
|
1898
|
-
internalType: "bool",
|
|
1899
2389
|
name: "judgement",
|
|
1900
|
-
type: "bool"
|
|
2390
|
+
type: "bool",
|
|
2391
|
+
indexed: false,
|
|
2392
|
+
internalType: "bool"
|
|
1901
2393
|
}
|
|
1902
2394
|
],
|
|
1903
|
-
|
|
1904
|
-
type: "event"
|
|
2395
|
+
anonymous: false
|
|
1905
2396
|
},
|
|
1906
2397
|
{
|
|
1907
|
-
|
|
2398
|
+
type: "event",
|
|
2399
|
+
name: "DisputeModuleUpdated",
|
|
1908
2400
|
inputs: [
|
|
1909
2401
|
{
|
|
1910
|
-
indexed: true,
|
|
1911
|
-
internalType: "address",
|
|
1912
2402
|
name: "disputeModule",
|
|
1913
|
-
type: "address"
|
|
2403
|
+
type: "address",
|
|
2404
|
+
indexed: true,
|
|
2405
|
+
internalType: "address"
|
|
1914
2406
|
}
|
|
1915
2407
|
],
|
|
1916
|
-
|
|
1917
|
-
type: "event"
|
|
2408
|
+
anonymous: false
|
|
1918
2409
|
},
|
|
1919
2410
|
{
|
|
1920
|
-
|
|
2411
|
+
type: "event",
|
|
2412
|
+
name: "DisputeRaised",
|
|
1921
2413
|
inputs: [
|
|
1922
2414
|
{
|
|
1923
|
-
indexed: true,
|
|
1924
|
-
internalType: "uint256",
|
|
1925
2415
|
name: "id",
|
|
1926
|
-
type: "uint256"
|
|
2416
|
+
type: "uint256",
|
|
2417
|
+
indexed: true,
|
|
2418
|
+
internalType: "uint256"
|
|
1927
2419
|
},
|
|
1928
2420
|
{
|
|
1929
|
-
indexed: true,
|
|
1930
|
-
internalType: "address",
|
|
1931
2421
|
name: "initiator",
|
|
1932
|
-
type: "address"
|
|
2422
|
+
type: "address",
|
|
2423
|
+
indexed: true,
|
|
2424
|
+
internalType: "address"
|
|
1933
2425
|
},
|
|
1934
2426
|
{
|
|
1935
|
-
indexed: true,
|
|
1936
|
-
internalType: "uint256",
|
|
1937
2427
|
name: "targetId",
|
|
1938
|
-
type: "uint256"
|
|
2428
|
+
type: "uint256",
|
|
2429
|
+
indexed: true,
|
|
2430
|
+
internalType: "uint256"
|
|
1939
2431
|
},
|
|
1940
2432
|
{
|
|
1941
|
-
indexed: false,
|
|
1942
|
-
internalType: "bytes32",
|
|
1943
2433
|
name: "disputeTag",
|
|
1944
|
-
type: "bytes32"
|
|
2434
|
+
type: "bytes32",
|
|
2435
|
+
indexed: false,
|
|
2436
|
+
internalType: "bytes32"
|
|
1945
2437
|
}
|
|
1946
2438
|
],
|
|
1947
|
-
|
|
1948
|
-
type: "event"
|
|
2439
|
+
anonymous: false
|
|
1949
2440
|
},
|
|
1950
2441
|
{
|
|
1951
|
-
|
|
2442
|
+
type: "event",
|
|
2443
|
+
name: "Initialized",
|
|
1952
2444
|
inputs: [
|
|
1953
2445
|
{
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
2446
|
+
name: "version",
|
|
2447
|
+
type: "uint64",
|
|
2448
|
+
indexed: false,
|
|
2449
|
+
internalType: "uint64"
|
|
1958
2450
|
}
|
|
1959
2451
|
],
|
|
1960
|
-
|
|
1961
|
-
type: "event"
|
|
2452
|
+
anonymous: false
|
|
1962
2453
|
},
|
|
1963
2454
|
{
|
|
1964
|
-
|
|
2455
|
+
type: "event",
|
|
2456
|
+
name: "MarketPlaceUpdated",
|
|
1965
2457
|
inputs: [
|
|
1966
2458
|
{
|
|
2459
|
+
name: "marketPlace",
|
|
2460
|
+
type: "address",
|
|
1967
2461
|
indexed: true,
|
|
1968
|
-
internalType: "address"
|
|
2462
|
+
internalType: "address"
|
|
2463
|
+
}
|
|
2464
|
+
],
|
|
2465
|
+
anonymous: false
|
|
2466
|
+
},
|
|
2467
|
+
{
|
|
2468
|
+
type: "event",
|
|
2469
|
+
name: "OwnershipTransferred",
|
|
2470
|
+
inputs: [
|
|
2471
|
+
{
|
|
1969
2472
|
name: "previousOwner",
|
|
1970
|
-
type: "address"
|
|
2473
|
+
type: "address",
|
|
2474
|
+
indexed: true,
|
|
2475
|
+
internalType: "address"
|
|
1971
2476
|
},
|
|
1972
2477
|
{
|
|
1973
|
-
indexed: true,
|
|
1974
|
-
internalType: "address",
|
|
1975
2478
|
name: "newOwner",
|
|
1976
|
-
type: "address"
|
|
2479
|
+
type: "address",
|
|
2480
|
+
indexed: true,
|
|
2481
|
+
internalType: "address"
|
|
1977
2482
|
}
|
|
1978
2483
|
],
|
|
1979
|
-
|
|
1980
|
-
type: "event"
|
|
2484
|
+
anonymous: false
|
|
1981
2485
|
},
|
|
1982
2486
|
{
|
|
1983
|
-
|
|
2487
|
+
type: "event",
|
|
2488
|
+
name: "Paused",
|
|
1984
2489
|
inputs: [
|
|
1985
2490
|
{
|
|
1986
|
-
indexed: false,
|
|
1987
|
-
internalType: "address",
|
|
1988
2491
|
name: "account",
|
|
1989
|
-
type: "address"
|
|
2492
|
+
type: "address",
|
|
2493
|
+
indexed: false,
|
|
2494
|
+
internalType: "address"
|
|
1990
2495
|
}
|
|
1991
2496
|
],
|
|
1992
|
-
|
|
1993
|
-
type: "event"
|
|
2497
|
+
anonymous: false
|
|
1994
2498
|
},
|
|
1995
2499
|
{
|
|
1996
|
-
|
|
2500
|
+
type: "event",
|
|
2501
|
+
name: "RoyaltyPaid",
|
|
1997
2502
|
inputs: [
|
|
1998
2503
|
{
|
|
1999
|
-
indexed: true,
|
|
2000
|
-
internalType: "uint256",
|
|
2001
2504
|
name: "tokenId",
|
|
2002
|
-
type: "uint256"
|
|
2505
|
+
type: "uint256",
|
|
2506
|
+
indexed: true,
|
|
2507
|
+
internalType: "uint256"
|
|
2003
2508
|
},
|
|
2004
2509
|
{
|
|
2005
|
-
indexed: false,
|
|
2006
|
-
internalType: "uint256",
|
|
2007
2510
|
name: "royaltyAmount",
|
|
2008
|
-
type: "uint256"
|
|
2511
|
+
type: "uint256",
|
|
2512
|
+
indexed: false,
|
|
2513
|
+
internalType: "uint256"
|
|
2009
2514
|
},
|
|
2010
2515
|
{
|
|
2011
|
-
indexed: false,
|
|
2012
|
-
internalType: "address",
|
|
2013
2516
|
name: "creator",
|
|
2014
|
-
type: "address"
|
|
2517
|
+
type: "address",
|
|
2518
|
+
indexed: false,
|
|
2519
|
+
internalType: "address"
|
|
2015
2520
|
},
|
|
2016
2521
|
{
|
|
2017
|
-
indexed: false,
|
|
2018
|
-
internalType: "uint256",
|
|
2019
2522
|
name: "protocolAmount",
|
|
2020
|
-
type: "uint256"
|
|
2523
|
+
type: "uint256",
|
|
2524
|
+
indexed: false,
|
|
2525
|
+
internalType: "uint256"
|
|
2021
2526
|
}
|
|
2022
2527
|
],
|
|
2023
|
-
|
|
2024
|
-
type: "event"
|
|
2528
|
+
anonymous: false
|
|
2025
2529
|
},
|
|
2026
2530
|
{
|
|
2027
|
-
|
|
2531
|
+
type: "event",
|
|
2532
|
+
name: "SignerUpdated",
|
|
2028
2533
|
inputs: [
|
|
2029
2534
|
{
|
|
2030
|
-
indexed: true,
|
|
2031
|
-
internalType: "address",
|
|
2032
2535
|
name: "signer",
|
|
2033
|
-
type: "address"
|
|
2536
|
+
type: "address",
|
|
2537
|
+
indexed: true,
|
|
2538
|
+
internalType: "address"
|
|
2034
2539
|
}
|
|
2035
2540
|
],
|
|
2036
|
-
|
|
2037
|
-
type: "event"
|
|
2541
|
+
anonymous: false
|
|
2038
2542
|
},
|
|
2039
2543
|
{
|
|
2040
|
-
|
|
2544
|
+
type: "event",
|
|
2545
|
+
name: "StatusUpdated",
|
|
2041
2546
|
inputs: [
|
|
2042
2547
|
{
|
|
2043
|
-
indexed: true,
|
|
2044
|
-
internalType: "uint256",
|
|
2045
2548
|
name: "tokenId",
|
|
2046
|
-
type: "uint256"
|
|
2549
|
+
type: "uint256",
|
|
2550
|
+
indexed: true,
|
|
2551
|
+
internalType: "uint256"
|
|
2047
2552
|
},
|
|
2048
2553
|
{
|
|
2049
|
-
indexed: false,
|
|
2050
|
-
internalType: "enum IIpNFT.DataStatus",
|
|
2051
2554
|
name: "status",
|
|
2052
|
-
type: "uint8"
|
|
2555
|
+
type: "uint8",
|
|
2556
|
+
indexed: false,
|
|
2557
|
+
internalType: "enum IIpNFT.DataStatus"
|
|
2053
2558
|
}
|
|
2054
2559
|
],
|
|
2055
|
-
|
|
2056
|
-
type: "event"
|
|
2560
|
+
anonymous: false
|
|
2057
2561
|
},
|
|
2058
2562
|
{
|
|
2059
|
-
|
|
2563
|
+
type: "event",
|
|
2564
|
+
name: "TermsUpdated",
|
|
2060
2565
|
inputs: [
|
|
2061
2566
|
{
|
|
2062
|
-
indexed: true,
|
|
2063
|
-
internalType: "uint256",
|
|
2064
2567
|
name: "tokenId",
|
|
2065
|
-
type: "uint256"
|
|
2568
|
+
type: "uint256",
|
|
2569
|
+
indexed: true,
|
|
2570
|
+
internalType: "uint256"
|
|
2066
2571
|
},
|
|
2067
2572
|
{
|
|
2068
|
-
indexed: false,
|
|
2069
|
-
internalType: "uint128",
|
|
2070
2573
|
name: "newPrice",
|
|
2071
|
-
type: "uint128"
|
|
2574
|
+
type: "uint128",
|
|
2575
|
+
indexed: false,
|
|
2576
|
+
internalType: "uint128"
|
|
2072
2577
|
},
|
|
2073
2578
|
{
|
|
2074
|
-
indexed: false,
|
|
2075
|
-
internalType: "uint32",
|
|
2076
2579
|
name: "newDuration",
|
|
2077
|
-
type: "uint32"
|
|
2580
|
+
type: "uint32",
|
|
2581
|
+
indexed: false,
|
|
2582
|
+
internalType: "uint32"
|
|
2078
2583
|
},
|
|
2079
2584
|
{
|
|
2080
|
-
indexed: false,
|
|
2081
|
-
internalType: "uint16",
|
|
2082
2585
|
name: "newRoyaltyBps",
|
|
2083
|
-
type: "uint16"
|
|
2586
|
+
type: "uint16",
|
|
2587
|
+
indexed: false,
|
|
2588
|
+
internalType: "uint16"
|
|
2084
2589
|
},
|
|
2085
2590
|
{
|
|
2086
|
-
indexed: false,
|
|
2087
|
-
internalType: "address",
|
|
2088
2591
|
name: "paymentToken",
|
|
2089
|
-
type: "address"
|
|
2592
|
+
type: "address",
|
|
2593
|
+
indexed: false,
|
|
2594
|
+
internalType: "address"
|
|
2090
2595
|
}
|
|
2091
2596
|
],
|
|
2092
|
-
|
|
2093
|
-
type: "event"
|
|
2597
|
+
anonymous: false
|
|
2094
2598
|
},
|
|
2095
2599
|
{
|
|
2096
|
-
|
|
2600
|
+
type: "event",
|
|
2601
|
+
name: "Unpaused",
|
|
2097
2602
|
inputs: [
|
|
2098
2603
|
{
|
|
2099
|
-
indexed: false,
|
|
2100
|
-
internalType: "address",
|
|
2101
2604
|
name: "account",
|
|
2102
|
-
type: "address"
|
|
2605
|
+
type: "address",
|
|
2606
|
+
indexed: false,
|
|
2607
|
+
internalType: "address"
|
|
2103
2608
|
}
|
|
2104
2609
|
],
|
|
2105
|
-
|
|
2106
|
-
type: "event"
|
|
2610
|
+
anonymous: false
|
|
2107
2611
|
},
|
|
2108
2612
|
{
|
|
2613
|
+
type: "event",
|
|
2614
|
+
name: "Upgraded",
|
|
2109
2615
|
inputs: [
|
|
2110
|
-
],
|
|
2111
|
-
name: "MAX_PARENTS",
|
|
2112
|
-
outputs: [
|
|
2113
2616
|
{
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2617
|
+
name: "implementation",
|
|
2618
|
+
type: "address",
|
|
2619
|
+
indexed: true,
|
|
2620
|
+
internalType: "address"
|
|
2117
2621
|
}
|
|
2118
2622
|
],
|
|
2119
|
-
|
|
2120
|
-
type: "function"
|
|
2623
|
+
anonymous: false
|
|
2121
2624
|
},
|
|
2122
2625
|
{
|
|
2626
|
+
type: "error",
|
|
2627
|
+
name: "AddressEmptyCode",
|
|
2123
2628
|
inputs: [
|
|
2124
2629
|
{
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
},
|
|
2129
|
-
{
|
|
2130
|
-
internalType: "uint256",
|
|
2131
|
-
name: "tokenId",
|
|
2132
|
-
type: "uint256"
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
internalType: "uint256",
|
|
2136
|
-
name: "expectedPrice",
|
|
2137
|
-
type: "uint256"
|
|
2138
|
-
},
|
|
2139
|
-
{
|
|
2140
|
-
internalType: "uint32",
|
|
2141
|
-
name: "expectedDuration",
|
|
2142
|
-
type: "uint32"
|
|
2143
|
-
},
|
|
2144
|
-
{
|
|
2145
|
-
internalType: "address",
|
|
2146
|
-
name: "expectedPaymentToken",
|
|
2147
|
-
type: "address"
|
|
2630
|
+
name: "target",
|
|
2631
|
+
type: "address",
|
|
2632
|
+
internalType: "address"
|
|
2148
2633
|
}
|
|
2149
|
-
]
|
|
2150
|
-
name: "buyAccess",
|
|
2151
|
-
outputs: [
|
|
2152
|
-
],
|
|
2153
|
-
stateMutability: "payable",
|
|
2154
|
-
type: "function"
|
|
2634
|
+
]
|
|
2155
2635
|
},
|
|
2156
2636
|
{
|
|
2637
|
+
type: "error",
|
|
2638
|
+
name: "ERC1967InvalidImplementation",
|
|
2157
2639
|
inputs: [
|
|
2158
2640
|
{
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
},
|
|
2163
|
-
{
|
|
2164
|
-
internalType: "uint256",
|
|
2165
|
-
name: "parent",
|
|
2166
|
-
type: "uint256"
|
|
2167
|
-
}
|
|
2168
|
-
],
|
|
2169
|
-
name: "hasParentIp",
|
|
2170
|
-
outputs: [
|
|
2171
|
-
{
|
|
2172
|
-
internalType: "bool",
|
|
2173
|
-
name: "",
|
|
2174
|
-
type: "bool"
|
|
2641
|
+
name: "implementation",
|
|
2642
|
+
type: "address",
|
|
2643
|
+
internalType: "address"
|
|
2175
2644
|
}
|
|
2176
|
-
]
|
|
2177
|
-
stateMutability: "view",
|
|
2178
|
-
type: "function"
|
|
2645
|
+
]
|
|
2179
2646
|
},
|
|
2180
2647
|
{
|
|
2648
|
+
type: "error",
|
|
2649
|
+
name: "ERC1967NonPayable",
|
|
2181
2650
|
inputs: [
|
|
2182
|
-
]
|
|
2183
|
-
name: "ipToken",
|
|
2184
|
-
outputs: [
|
|
2185
|
-
{
|
|
2186
|
-
internalType: "contract IIpNFT",
|
|
2187
|
-
name: "",
|
|
2188
|
-
type: "address"
|
|
2189
|
-
}
|
|
2190
|
-
],
|
|
2191
|
-
stateMutability: "view",
|
|
2192
|
-
type: "function"
|
|
2651
|
+
]
|
|
2193
2652
|
},
|
|
2194
2653
|
{
|
|
2654
|
+
type: "error",
|
|
2655
|
+
name: "EnforcedPause",
|
|
2195
2656
|
inputs: [
|
|
2196
|
-
]
|
|
2197
|
-
name: "owner",
|
|
2198
|
-
outputs: [
|
|
2199
|
-
{
|
|
2200
|
-
internalType: "address",
|
|
2201
|
-
name: "",
|
|
2202
|
-
type: "address"
|
|
2203
|
-
}
|
|
2204
|
-
],
|
|
2205
|
-
stateMutability: "view",
|
|
2206
|
-
type: "function"
|
|
2657
|
+
]
|
|
2207
2658
|
},
|
|
2208
2659
|
{
|
|
2660
|
+
type: "error",
|
|
2661
|
+
name: "ExpectedPause",
|
|
2209
2662
|
inputs: [
|
|
2210
|
-
|
|
2211
|
-
internalType: "uint256",
|
|
2212
|
-
name: "",
|
|
2213
|
-
type: "uint256"
|
|
2214
|
-
},
|
|
2215
|
-
{
|
|
2216
|
-
internalType: "uint256",
|
|
2217
|
-
name: "",
|
|
2218
|
-
type: "uint256"
|
|
2219
|
-
}
|
|
2220
|
-
],
|
|
2221
|
-
name: "parentRoyaltyPercent",
|
|
2222
|
-
outputs: [
|
|
2223
|
-
{
|
|
2224
|
-
internalType: "uint16",
|
|
2225
|
-
name: "",
|
|
2226
|
-
type: "uint16"
|
|
2227
|
-
}
|
|
2228
|
-
],
|
|
2229
|
-
stateMutability: "view",
|
|
2230
|
-
type: "function"
|
|
2663
|
+
]
|
|
2231
2664
|
},
|
|
2232
2665
|
{
|
|
2666
|
+
type: "error",
|
|
2667
|
+
name: "FailedCall",
|
|
2233
2668
|
inputs: [
|
|
2234
|
-
]
|
|
2235
|
-
name: "pause",
|
|
2236
|
-
outputs: [
|
|
2237
|
-
],
|
|
2238
|
-
stateMutability: "nonpayable",
|
|
2239
|
-
type: "function"
|
|
2669
|
+
]
|
|
2240
2670
|
},
|
|
2241
2671
|
{
|
|
2672
|
+
type: "error",
|
|
2673
|
+
name: "InvalidInitialization",
|
|
2242
2674
|
inputs: [
|
|
2243
|
-
]
|
|
2244
|
-
name: "paused",
|
|
2245
|
-
outputs: [
|
|
2246
|
-
{
|
|
2247
|
-
internalType: "bool",
|
|
2248
|
-
name: "",
|
|
2249
|
-
type: "bool"
|
|
2250
|
-
}
|
|
2251
|
-
],
|
|
2252
|
-
stateMutability: "view",
|
|
2253
|
-
type: "function"
|
|
2675
|
+
]
|
|
2254
2676
|
},
|
|
2255
2677
|
{
|
|
2678
|
+
type: "error",
|
|
2679
|
+
name: "InvalidParentIp",
|
|
2680
|
+
inputs: [
|
|
2681
|
+
]
|
|
2682
|
+
},
|
|
2683
|
+
{
|
|
2684
|
+
type: "error",
|
|
2685
|
+
name: "InvalidPayment",
|
|
2686
|
+
inputs: [
|
|
2687
|
+
]
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
type: "error",
|
|
2691
|
+
name: "InvalidRoyalty",
|
|
2692
|
+
inputs: [
|
|
2693
|
+
]
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
type: "error",
|
|
2697
|
+
name: "MaxParentsExceeded",
|
|
2698
|
+
inputs: [
|
|
2699
|
+
]
|
|
2700
|
+
},
|
|
2701
|
+
{
|
|
2702
|
+
type: "error",
|
|
2703
|
+
name: "MaxRoyaltyExceeded",
|
|
2704
|
+
inputs: [
|
|
2705
|
+
]
|
|
2706
|
+
},
|
|
2707
|
+
{
|
|
2708
|
+
type: "error",
|
|
2709
|
+
name: "NoSubscriptionFound",
|
|
2710
|
+
inputs: [
|
|
2711
|
+
]
|
|
2712
|
+
},
|
|
2713
|
+
{
|
|
2714
|
+
type: "error",
|
|
2715
|
+
name: "NotInitializing",
|
|
2716
|
+
inputs: [
|
|
2717
|
+
]
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
type: "error",
|
|
2721
|
+
name: "OwnableInvalidOwner",
|
|
2256
2722
|
inputs: [
|
|
2257
|
-
],
|
|
2258
|
-
name: "protocolFeeBps",
|
|
2259
|
-
outputs: [
|
|
2260
2723
|
{
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2724
|
+
name: "owner",
|
|
2725
|
+
type: "address",
|
|
2726
|
+
internalType: "address"
|
|
2264
2727
|
}
|
|
2265
|
-
]
|
|
2266
|
-
stateMutability: "view",
|
|
2267
|
-
type: "function"
|
|
2728
|
+
]
|
|
2268
2729
|
},
|
|
2269
2730
|
{
|
|
2731
|
+
type: "error",
|
|
2732
|
+
name: "OwnableUnauthorizedAccount",
|
|
2270
2733
|
inputs: [
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2734
|
+
{
|
|
2735
|
+
name: "account",
|
|
2736
|
+
type: "address",
|
|
2737
|
+
internalType: "address"
|
|
2738
|
+
}
|
|
2739
|
+
]
|
|
2277
2740
|
},
|
|
2278
2741
|
{
|
|
2742
|
+
type: "error",
|
|
2743
|
+
name: "ParentAlreadyExists",
|
|
2279
2744
|
inputs: [
|
|
2280
|
-
|
|
2281
|
-
internalType: "uint256",
|
|
2282
|
-
name: "",
|
|
2283
|
-
type: "uint256"
|
|
2284
|
-
}
|
|
2285
|
-
],
|
|
2286
|
-
name: "royaltyStack",
|
|
2287
|
-
outputs: [
|
|
2288
|
-
{
|
|
2289
|
-
internalType: "uint16",
|
|
2290
|
-
name: "",
|
|
2291
|
-
type: "uint16"
|
|
2292
|
-
}
|
|
2293
|
-
],
|
|
2294
|
-
stateMutability: "view",
|
|
2295
|
-
type: "function"
|
|
2745
|
+
]
|
|
2296
2746
|
},
|
|
2297
2747
|
{
|
|
2748
|
+
type: "error",
|
|
2749
|
+
name: "ParentIpAlreadyDeleted",
|
|
2298
2750
|
inputs: [
|
|
2299
|
-
|
|
2300
|
-
internalType: "uint256",
|
|
2301
|
-
name: "childIpId",
|
|
2302
|
-
type: "uint256"
|
|
2303
|
-
},
|
|
2304
|
-
{
|
|
2305
|
-
internalType: "uint256[]",
|
|
2306
|
-
name: "parents",
|
|
2307
|
-
type: "uint256[]"
|
|
2308
|
-
},
|
|
2309
|
-
{
|
|
2310
|
-
internalType: "address",
|
|
2311
|
-
name: "creator",
|
|
2312
|
-
type: "address"
|
|
2313
|
-
}
|
|
2314
|
-
],
|
|
2315
|
-
name: "setParentIpsAndRoyaltyPercents",
|
|
2316
|
-
outputs: [
|
|
2317
|
-
],
|
|
2318
|
-
stateMutability: "nonpayable",
|
|
2319
|
-
type: "function"
|
|
2751
|
+
]
|
|
2320
2752
|
},
|
|
2321
2753
|
{
|
|
2754
|
+
type: "error",
|
|
2755
|
+
name: "ParentIpAlreadyDisputed",
|
|
2322
2756
|
inputs: [
|
|
2323
|
-
|
|
2324
|
-
internalType: "uint256",
|
|
2325
|
-
name: "",
|
|
2326
|
-
type: "uint256"
|
|
2327
|
-
},
|
|
2328
|
-
{
|
|
2329
|
-
internalType: "address",
|
|
2330
|
-
name: "",
|
|
2331
|
-
type: "address"
|
|
2332
|
-
}
|
|
2333
|
-
],
|
|
2334
|
-
name: "subscriptionExpiry",
|
|
2335
|
-
outputs: [
|
|
2336
|
-
{
|
|
2337
|
-
internalType: "uint256",
|
|
2338
|
-
name: "",
|
|
2339
|
-
type: "uint256"
|
|
2340
|
-
}
|
|
2341
|
-
],
|
|
2342
|
-
stateMutability: "view",
|
|
2343
|
-
type: "function"
|
|
2757
|
+
]
|
|
2344
2758
|
},
|
|
2345
2759
|
{
|
|
2760
|
+
type: "error",
|
|
2761
|
+
name: "SubscriptionNotAllowed",
|
|
2346
2762
|
inputs: [
|
|
2347
|
-
|
|
2348
|
-
internalType: "address",
|
|
2349
|
-
name: "newOwner",
|
|
2350
|
-
type: "address"
|
|
2351
|
-
}
|
|
2352
|
-
],
|
|
2353
|
-
name: "transferOwnership",
|
|
2354
|
-
outputs: [
|
|
2355
|
-
],
|
|
2356
|
-
stateMutability: "nonpayable",
|
|
2357
|
-
type: "function"
|
|
2763
|
+
]
|
|
2358
2764
|
},
|
|
2359
2765
|
{
|
|
2766
|
+
type: "error",
|
|
2767
|
+
name: "TermsMismatch",
|
|
2360
2768
|
inputs: [
|
|
2361
|
-
]
|
|
2362
|
-
name: "treasury",
|
|
2363
|
-
outputs: [
|
|
2364
|
-
{
|
|
2365
|
-
internalType: "address",
|
|
2366
|
-
name: "",
|
|
2367
|
-
type: "address"
|
|
2368
|
-
}
|
|
2369
|
-
],
|
|
2370
|
-
stateMutability: "view",
|
|
2371
|
-
type: "function"
|
|
2769
|
+
]
|
|
2372
2770
|
},
|
|
2373
2771
|
{
|
|
2772
|
+
type: "error",
|
|
2773
|
+
name: "UUPSUnauthorizedCallContext",
|
|
2374
2774
|
inputs: [
|
|
2375
|
-
]
|
|
2376
|
-
name: "unpause",
|
|
2377
|
-
outputs: [
|
|
2378
|
-
],
|
|
2379
|
-
stateMutability: "nonpayable",
|
|
2380
|
-
type: "function"
|
|
2775
|
+
]
|
|
2381
2776
|
},
|
|
2382
2777
|
{
|
|
2778
|
+
type: "error",
|
|
2779
|
+
name: "UUPSUnsupportedProxiableUUID",
|
|
2383
2780
|
inputs: [
|
|
2384
2781
|
{
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2782
|
+
name: "slot",
|
|
2783
|
+
type: "bytes32",
|
|
2784
|
+
internalType: "bytes32"
|
|
2388
2785
|
}
|
|
2389
|
-
]
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2786
|
+
]
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
type: "error",
|
|
2790
|
+
name: "Unauthorized",
|
|
2791
|
+
inputs: [
|
|
2792
|
+
]
|
|
2395
2793
|
},
|
|
2396
2794
|
{
|
|
2795
|
+
type: "error",
|
|
2796
|
+
name: "ZeroAddress",
|
|
2397
2797
|
inputs: [
|
|
2398
|
-
|
|
2399
|
-
internalType: "address",
|
|
2400
|
-
name: "newTreasury",
|
|
2401
|
-
type: "address"
|
|
2402
|
-
}
|
|
2403
|
-
],
|
|
2404
|
-
name: "updateTreasury",
|
|
2405
|
-
outputs: [
|
|
2406
|
-
],
|
|
2407
|
-
stateMutability: "nonpayable",
|
|
2408
|
-
type: "function"
|
|
2798
|
+
]
|
|
2409
2799
|
}
|
|
2410
2800
|
];
|
|
2411
2801
|
|
|
@@ -2519,6 +2909,166 @@ var royaltyVaultAbi = [
|
|
|
2519
2909
|
}
|
|
2520
2910
|
];
|
|
2521
2911
|
|
|
2912
|
+
var tbaAbi = [
|
|
2913
|
+
{
|
|
2914
|
+
type: "receive",
|
|
2915
|
+
stateMutability: "payable"
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
type: "function",
|
|
2919
|
+
name: "execute",
|
|
2920
|
+
inputs: [
|
|
2921
|
+
{
|
|
2922
|
+
name: "to",
|
|
2923
|
+
type: "address",
|
|
2924
|
+
internalType: "address"
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
name: "value",
|
|
2928
|
+
type: "uint256",
|
|
2929
|
+
internalType: "uint256"
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
name: "data",
|
|
2933
|
+
type: "bytes",
|
|
2934
|
+
internalType: "bytes"
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
name: "operation",
|
|
2938
|
+
type: "uint8",
|
|
2939
|
+
internalType: "uint8"
|
|
2940
|
+
}
|
|
2941
|
+
],
|
|
2942
|
+
outputs: [
|
|
2943
|
+
{
|
|
2944
|
+
name: "result",
|
|
2945
|
+
type: "bytes",
|
|
2946
|
+
internalType: "bytes"
|
|
2947
|
+
}
|
|
2948
|
+
],
|
|
2949
|
+
stateMutability: "payable"
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
type: "function",
|
|
2953
|
+
name: "isValidSignature",
|
|
2954
|
+
inputs: [
|
|
2955
|
+
{
|
|
2956
|
+
name: "hash",
|
|
2957
|
+
type: "bytes32",
|
|
2958
|
+
internalType: "bytes32"
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
name: "signature",
|
|
2962
|
+
type: "bytes",
|
|
2963
|
+
internalType: "bytes"
|
|
2964
|
+
}
|
|
2965
|
+
],
|
|
2966
|
+
outputs: [
|
|
2967
|
+
{
|
|
2968
|
+
name: "magicValue",
|
|
2969
|
+
type: "bytes4",
|
|
2970
|
+
internalType: "bytes4"
|
|
2971
|
+
}
|
|
2972
|
+
],
|
|
2973
|
+
stateMutability: "view"
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
type: "function",
|
|
2977
|
+
name: "isValidSigner",
|
|
2978
|
+
inputs: [
|
|
2979
|
+
{
|
|
2980
|
+
name: "signer",
|
|
2981
|
+
type: "address",
|
|
2982
|
+
internalType: "address"
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
name: "",
|
|
2986
|
+
type: "bytes",
|
|
2987
|
+
internalType: "bytes"
|
|
2988
|
+
}
|
|
2989
|
+
],
|
|
2990
|
+
outputs: [
|
|
2991
|
+
{
|
|
2992
|
+
name: "",
|
|
2993
|
+
type: "bytes4",
|
|
2994
|
+
internalType: "bytes4"
|
|
2995
|
+
}
|
|
2996
|
+
],
|
|
2997
|
+
stateMutability: "view"
|
|
2998
|
+
},
|
|
2999
|
+
{
|
|
3000
|
+
type: "function",
|
|
3001
|
+
name: "owner",
|
|
3002
|
+
inputs: [
|
|
3003
|
+
],
|
|
3004
|
+
outputs: [
|
|
3005
|
+
{
|
|
3006
|
+
name: "",
|
|
3007
|
+
type: "address",
|
|
3008
|
+
internalType: "address"
|
|
3009
|
+
}
|
|
3010
|
+
],
|
|
3011
|
+
stateMutability: "view"
|
|
3012
|
+
},
|
|
3013
|
+
{
|
|
3014
|
+
type: "function",
|
|
3015
|
+
name: "state",
|
|
3016
|
+
inputs: [
|
|
3017
|
+
],
|
|
3018
|
+
outputs: [
|
|
3019
|
+
{
|
|
3020
|
+
name: "",
|
|
3021
|
+
type: "uint256",
|
|
3022
|
+
internalType: "uint256"
|
|
3023
|
+
}
|
|
3024
|
+
],
|
|
3025
|
+
stateMutability: "view"
|
|
3026
|
+
},
|
|
3027
|
+
{
|
|
3028
|
+
type: "function",
|
|
3029
|
+
name: "supportsInterface",
|
|
3030
|
+
inputs: [
|
|
3031
|
+
{
|
|
3032
|
+
name: "interfaceId",
|
|
3033
|
+
type: "bytes4",
|
|
3034
|
+
internalType: "bytes4"
|
|
3035
|
+
}
|
|
3036
|
+
],
|
|
3037
|
+
outputs: [
|
|
3038
|
+
{
|
|
3039
|
+
name: "",
|
|
3040
|
+
type: "bool",
|
|
3041
|
+
internalType: "bool"
|
|
3042
|
+
}
|
|
3043
|
+
],
|
|
3044
|
+
stateMutability: "view"
|
|
3045
|
+
},
|
|
3046
|
+
{
|
|
3047
|
+
type: "function",
|
|
3048
|
+
name: "token",
|
|
3049
|
+
inputs: [
|
|
3050
|
+
],
|
|
3051
|
+
outputs: [
|
|
3052
|
+
{
|
|
3053
|
+
name: "",
|
|
3054
|
+
type: "uint256",
|
|
3055
|
+
internalType: "uint256"
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
name: "",
|
|
3059
|
+
type: "address",
|
|
3060
|
+
internalType: "address"
|
|
3061
|
+
},
|
|
3062
|
+
{
|
|
3063
|
+
name: "",
|
|
3064
|
+
type: "uint256",
|
|
3065
|
+
internalType: "uint256"
|
|
3066
|
+
}
|
|
3067
|
+
],
|
|
3068
|
+
stateMutability: "view"
|
|
3069
|
+
}
|
|
3070
|
+
];
|
|
3071
|
+
|
|
2522
3072
|
var constants = {
|
|
2523
3073
|
SIWE_MESSAGE_STATEMENT: "Connect with Camp Network",
|
|
2524
3074
|
ORIGIN_DASHBOARD: "https://origin.campnetwork.xyz",
|
|
@@ -2544,24 +3094,26 @@ const ENVIRONMENTS = {
|
|
|
2544
3094
|
AUTH_HUB_BASE_API: "https://wv2h4to5qa.execute-api.us-east-2.amazonaws.com/dev",
|
|
2545
3095
|
AUTH_ENDPOINT: "auth-testnet",
|
|
2546
3096
|
ORIGIN_DASHBOARD: "https://origin.campnetwork.xyz",
|
|
2547
|
-
DATANFT_CONTRACT_ADDRESS: "
|
|
2548
|
-
MARKETPLACE_CONTRACT_ADDRESS: "
|
|
3097
|
+
DATANFT_CONTRACT_ADDRESS: "0xB53F5723Dd4E46da32e1769Bd36A5aD880e707A5",
|
|
3098
|
+
MARKETPLACE_CONTRACT_ADDRESS: "0x97b0A18B2888e904940fFd19E480a28aeec3F055",
|
|
2549
3099
|
CHAIN: testnet,
|
|
2550
3100
|
IPNFT_ABI: ipnftMainnetAbi,
|
|
2551
3101
|
MARKETPLACE_ABI: marketplaceMainnetAbi,
|
|
2552
3102
|
ROYALTY_VAULT_ABI: royaltyVaultAbi,
|
|
3103
|
+
TBA_ABI: tbaAbi,
|
|
2553
3104
|
},
|
|
2554
3105
|
PRODUCTION: {
|
|
2555
3106
|
NAME: "PRODUCTION",
|
|
2556
3107
|
AUTH_HUB_BASE_API: "https://wv2h4to5qa.execute-api.us-east-2.amazonaws.com/dev",
|
|
2557
3108
|
AUTH_ENDPOINT: "auth-mainnet",
|
|
2558
3109
|
ORIGIN_DASHBOARD: "https://origin.campnetwork.xyz",
|
|
2559
|
-
DATANFT_CONTRACT_ADDRESS: "
|
|
2560
|
-
MARKETPLACE_CONTRACT_ADDRESS: "
|
|
3110
|
+
DATANFT_CONTRACT_ADDRESS: "0x39EeE1C3989f0dD543Dee60f8582F7F81F522C38",
|
|
3111
|
+
MARKETPLACE_CONTRACT_ADDRESS: "0xc69BAa987757d054455fC0f2d9797684E9FB8b9C",
|
|
2561
3112
|
CHAIN: mainnet,
|
|
2562
3113
|
IPNFT_ABI: ipnftMainnetAbi,
|
|
2563
3114
|
MARKETPLACE_ABI: marketplaceMainnetAbi,
|
|
2564
3115
|
ROYALTY_VAULT_ABI: royaltyVaultAbi,
|
|
3116
|
+
TBA_ABI: tbaAbi,
|
|
2565
3117
|
},
|
|
2566
3118
|
};
|
|
2567
3119
|
|
|
@@ -2600,20 +3152,6 @@ const formatAddress = (address, n = 8) => {
|
|
|
2600
3152
|
const capitalize = (str) => {
|
|
2601
3153
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
2602
3154
|
};
|
|
2603
|
-
/**
|
|
2604
|
-
* Formats a Camp amount to a human-readable string.
|
|
2605
|
-
* @param {number} amount - The Camp amount to format.
|
|
2606
|
-
* @returns {string} - The formatted Camp amount.
|
|
2607
|
-
*/
|
|
2608
|
-
const formatCampAmount = (amount) => {
|
|
2609
|
-
if (amount >= 1000) {
|
|
2610
|
-
const formatted = (amount / 1000).toFixed(1);
|
|
2611
|
-
return formatted.endsWith(".0")
|
|
2612
|
-
? formatted.slice(0, -2) + "k"
|
|
2613
|
-
: formatted + "k";
|
|
2614
|
-
}
|
|
2615
|
-
return amount.toString();
|
|
2616
|
-
};
|
|
2617
3155
|
const SECONDS_IN_HOUR = 3600;
|
|
2618
3156
|
const SECONDS_IN_DAY = 86400;
|
|
2619
3157
|
const SECONDS_IN_WEEK = 604800;
|
|
@@ -3291,31 +3829,52 @@ class Origin {
|
|
|
3291
3829
|
});
|
|
3292
3830
|
}
|
|
3293
3831
|
/**
|
|
3294
|
-
* Get
|
|
3832
|
+
* Get the Token Bound Account (TBA) address for a specific token ID.
|
|
3833
|
+
* @param {bigint} tokenId - The token ID to get the TBA address for.
|
|
3834
|
+
* @returns {Promise<Address>} A promise that resolves with the TBA address.
|
|
3835
|
+
* @throws {Error} Throws an error if the TBA address cannot be retrieved.
|
|
3836
|
+
* @example
|
|
3837
|
+
* ```typescript
|
|
3838
|
+
* const tbaAddress = await origin.getTokenBoundAccount(1n);
|
|
3839
|
+
* console.log(`TBA Address: ${tbaAddress}`);
|
|
3840
|
+
* ```
|
|
3841
|
+
*/
|
|
3842
|
+
getTokenBoundAccount(tokenId) {
|
|
3843
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3844
|
+
try {
|
|
3845
|
+
const tbaAddress = yield this.callContractMethod(this.environment.DATANFT_CONTRACT_ADDRESS, this.environment.IPNFT_ABI, "getAccount", [tokenId], { simulate: true });
|
|
3846
|
+
return tbaAddress;
|
|
3847
|
+
}
|
|
3848
|
+
catch (error) {
|
|
3849
|
+
throw new Error(`Failed to get Token Bound Account for token ${tokenId}: ${error instanceof Error ? error.message : String(error)}`);
|
|
3850
|
+
}
|
|
3851
|
+
});
|
|
3852
|
+
}
|
|
3853
|
+
/**
|
|
3854
|
+
* Get royalty information for a token ID, including the token bound account address and its balance.
|
|
3855
|
+
* @param {bigint} tokenId - The token ID to check royalties for.
|
|
3295
3856
|
* @param {Address} [token] - Optional token address to check royalties for. If not provided, checks for native token.
|
|
3296
|
-
* @
|
|
3297
|
-
* @
|
|
3298
|
-
* @throws {Error} Throws an error if no wallet is connected and no owner address is provided.
|
|
3857
|
+
* @returns {Promise<RoyaltyInfo>} A promise that resolves with the token bound account address and balance information.
|
|
3858
|
+
* @throws {Error} Throws an error if the token bound account cannot be retrieved.
|
|
3299
3859
|
* @example
|
|
3300
3860
|
* ```typescript
|
|
3301
|
-
* // Get royalties for
|
|
3302
|
-
* const royalties = await origin.getRoyalties();
|
|
3861
|
+
* // Get royalties for a specific token
|
|
3862
|
+
* const royalties = await origin.getRoyalties(1n);
|
|
3303
3863
|
*
|
|
3304
|
-
* // Get royalties for specific
|
|
3305
|
-
* const royalties = await origin.getRoyalties("0x1234...");
|
|
3864
|
+
* // Get ERC20 token royalties for a specific token
|
|
3865
|
+
* const royalties = await origin.getRoyalties(1n, "0x1234...");
|
|
3306
3866
|
* ```
|
|
3307
3867
|
*/
|
|
3308
|
-
getRoyalties(
|
|
3868
|
+
getRoyalties(tokenId, token) {
|
|
3309
3869
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3310
|
-
const walletAddress = yield __classPrivateFieldGet(this, _Origin_instances, "m", _Origin_resolveWalletAddress).call(this, owner);
|
|
3311
3870
|
try {
|
|
3312
|
-
const
|
|
3871
|
+
const tokenBoundAccount = yield this.getTokenBoundAccount(tokenId);
|
|
3313
3872
|
const publicClient = getPublicClient();
|
|
3314
3873
|
let balance;
|
|
3315
3874
|
let balanceFormatted;
|
|
3316
3875
|
if (!token || token === zeroAddress) {
|
|
3317
3876
|
balance = yield publicClient.getBalance({
|
|
3318
|
-
address:
|
|
3877
|
+
address: tokenBoundAccount,
|
|
3319
3878
|
});
|
|
3320
3879
|
balanceFormatted = formatEther(balance);
|
|
3321
3880
|
}
|
|
@@ -3338,34 +3897,82 @@ class Origin {
|
|
|
3338
3897
|
},
|
|
3339
3898
|
];
|
|
3340
3899
|
balance = yield this.callContractMethod(token, erc20Abi, "balanceOf", [
|
|
3341
|
-
|
|
3900
|
+
tokenBoundAccount,
|
|
3342
3901
|
]);
|
|
3343
3902
|
const decimals = yield this.callContractMethod(token, erc20Abi, "decimals", []);
|
|
3344
3903
|
balanceFormatted = formatUnits(balance, decimals);
|
|
3345
3904
|
}
|
|
3346
3905
|
return {
|
|
3347
|
-
|
|
3906
|
+
tokenBoundAccount,
|
|
3348
3907
|
balance,
|
|
3349
3908
|
balanceFormatted,
|
|
3350
3909
|
};
|
|
3351
3910
|
}
|
|
3352
3911
|
catch (error) {
|
|
3353
|
-
throw new Error(`Failed to retrieve royalties for
|
|
3912
|
+
throw new Error(`Failed to retrieve royalties for token ${tokenId}: ${error instanceof Error ? error.message : String(error)}`);
|
|
3354
3913
|
}
|
|
3355
3914
|
});
|
|
3356
3915
|
}
|
|
3357
3916
|
/**
|
|
3358
|
-
* Claim royalties from
|
|
3917
|
+
* Claim royalties from a token's Token Bound Account (TBA).
|
|
3918
|
+
* @param {bigint} tokenId - The token ID to claim royalties from.
|
|
3919
|
+
* @param {Address} [recipient] - Optional recipient address. If not provided, uses the connected wallet.
|
|
3359
3920
|
* @param {Address} [token] - Optional token address to claim royalties in. If not provided, claims in native token.
|
|
3360
|
-
* @param {Address} [owner] - Optional wallet address to claim royalties for. If not provided, uses the connected wallet.
|
|
3361
3921
|
* @returns {Promise<any>} A promise that resolves when the claim transaction is confirmed.
|
|
3362
|
-
* @throws {Error} Throws an error if no wallet is connected and no
|
|
3922
|
+
* @throws {Error} Throws an error if no wallet is connected and no recipient address is provided.
|
|
3923
|
+
* @example
|
|
3924
|
+
* ```typescript
|
|
3925
|
+
* // Claim native token royalties for token #1 to connected wallet
|
|
3926
|
+
* await origin.claimRoyalties(1n);
|
|
3927
|
+
*
|
|
3928
|
+
* // Claim ERC20 token royalties to a specific address
|
|
3929
|
+
* await origin.claimRoyalties(1n, "0xRecipient...", "0xToken...");
|
|
3930
|
+
* ```
|
|
3363
3931
|
*/
|
|
3364
|
-
claimRoyalties(
|
|
3932
|
+
claimRoyalties(tokenId, recipient, token) {
|
|
3365
3933
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3366
|
-
const
|
|
3367
|
-
const
|
|
3368
|
-
|
|
3934
|
+
const recipientAddress = yield __classPrivateFieldGet(this, _Origin_instances, "m", _Origin_resolveWalletAddress).call(this, recipient);
|
|
3935
|
+
const tokenBoundAccount = yield this.getTokenBoundAccount(tokenId);
|
|
3936
|
+
// Get the balance to transfer
|
|
3937
|
+
const royaltyInfo = yield this.getRoyalties(tokenId, token);
|
|
3938
|
+
const balance = royaltyInfo.balance;
|
|
3939
|
+
if (balance === BigInt(0)) {
|
|
3940
|
+
throw new Error("No royalties available to claim");
|
|
3941
|
+
}
|
|
3942
|
+
let to;
|
|
3943
|
+
let value;
|
|
3944
|
+
let data;
|
|
3945
|
+
if (!token || token === zeroAddress) {
|
|
3946
|
+
// Native token transfer
|
|
3947
|
+
to = recipientAddress;
|
|
3948
|
+
value = balance;
|
|
3949
|
+
data = "0x";
|
|
3950
|
+
}
|
|
3951
|
+
else {
|
|
3952
|
+
// ERC20 token transfer
|
|
3953
|
+
to = token;
|
|
3954
|
+
value = BigInt(0);
|
|
3955
|
+
// Encode ERC20 transfer call: transfer(address to, uint256 amount)
|
|
3956
|
+
data = encodeFunctionData({
|
|
3957
|
+
abi: [
|
|
3958
|
+
{
|
|
3959
|
+
inputs: [
|
|
3960
|
+
{ name: "to", type: "address" },
|
|
3961
|
+
{ name: "amount", type: "uint256" },
|
|
3962
|
+
],
|
|
3963
|
+
name: "transfer",
|
|
3964
|
+
outputs: [{ name: "", type: "bool" }],
|
|
3965
|
+
stateMutability: "nonpayable",
|
|
3966
|
+
type: "function",
|
|
3967
|
+
},
|
|
3968
|
+
],
|
|
3969
|
+
functionName: "transfer",
|
|
3970
|
+
args: [recipientAddress, balance],
|
|
3971
|
+
});
|
|
3972
|
+
}
|
|
3973
|
+
// Call execute on the TBA
|
|
3974
|
+
return this.callContractMethod(tokenBoundAccount, this.environment.TBA_ABI, "execute", [to, value, data, 0], // operation: 0 = CALL
|
|
3975
|
+
{ waitForReceipt: true, value: BigInt(0) });
|
|
3369
3976
|
});
|
|
3370
3977
|
}
|
|
3371
3978
|
}
|
|
@@ -5774,41 +6381,37 @@ const LinkingModal = () => {
|
|
|
5774
6381
|
*/
|
|
5775
6382
|
const OriginSection = () => {
|
|
5776
6383
|
// const { stats, uploads } = useOrigin();
|
|
5777
|
-
const [royaltiesToClaim, setRoyaltiesToClaim] = useState(null);
|
|
5778
|
-
const [isClaiming, setIsClaiming] = useState(false);
|
|
6384
|
+
// const [royaltiesToClaim, setRoyaltiesToClaim] = useState<null | string>(null);
|
|
6385
|
+
// const [isClaiming, setIsClaiming] = useState(false);
|
|
5779
6386
|
const { environment, auth } = useContext(CampContext);
|
|
5780
|
-
|
|
6387
|
+
useToast();
|
|
5781
6388
|
// const [uploadedImages, setUploadedImages] = useState(0);
|
|
5782
6389
|
// const [uploadedVideos, setUploadedVideos] = useState(0);
|
|
5783
6390
|
// const [uploadedAudio, setUploadedAudio] = useState(0);
|
|
5784
6391
|
// const [uploadedText, setUploadedText] = useState(0);
|
|
5785
|
-
useEffect(() => {
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
finally {
|
|
5809
|
-
setIsClaiming(false);
|
|
5810
|
-
}
|
|
5811
|
-
});
|
|
6392
|
+
// useEffect(() => {
|
|
6393
|
+
// const fetchRoyalties = async () => {
|
|
6394
|
+
// if (!auth || !auth.origin) return;
|
|
6395
|
+
// const royalties = await auth?.origin.getRoyalties();
|
|
6396
|
+
// const bal = formatEther(royalties.balance);
|
|
6397
|
+
// setRoyaltiesToClaim(bal !== "0" ? formatCampAmount(Number(bal)) : null);
|
|
6398
|
+
// };
|
|
6399
|
+
// fetchRoyalties();
|
|
6400
|
+
// }, [auth]);
|
|
6401
|
+
// const handleClaimRoyalties = async () => {
|
|
6402
|
+
// if (!auth || !auth.origin || !royaltiesToClaim) return;
|
|
6403
|
+
// setIsClaiming(true);
|
|
6404
|
+
// try {
|
|
6405
|
+
// await auth.origin.claimRoyalties();
|
|
6406
|
+
// setRoyaltiesToClaim(null);
|
|
6407
|
+
// toast("Royalties claimed successfully!", "success", 5000);
|
|
6408
|
+
// } catch (error) {
|
|
6409
|
+
// console.error("Error claiming royalties:", error);
|
|
6410
|
+
// toast("Error claiming royalties. Please try again.", "error", 5000);
|
|
6411
|
+
// } finally {
|
|
6412
|
+
// setIsClaiming(false);
|
|
6413
|
+
// }
|
|
6414
|
+
// };
|
|
5812
6415
|
// useEffect(() => {
|
|
5813
6416
|
// if (uploads.data) {
|
|
5814
6417
|
// let imagesCount = 0;
|
|
@@ -5849,13 +6452,7 @@ const OriginSection = () => {
|
|
|
5849
6452
|
React.createElement(Tooltip, { content: environment.MARKETPLACE_CONTRACT_ADDRESS, position: "top", containerStyle: { width: "100%" } },
|
|
5850
6453
|
React.createElement("div", { className: styles["origin-container"] },
|
|
5851
6454
|
React.createElement("span", null, formatAddress(environment.MARKETPLACE_CONTRACT_ADDRESS, 4)),
|
|
5852
|
-
React.createElement("span", { className: styles["origin-label"] }, "Marketplace"))))
|
|
5853
|
-
React.createElement("div", { className: styles["claim-section"] },
|
|
5854
|
-
React.createElement(Button, { style: { margin: 0 }, onClick: handleClaimRoyalties, disabled: !royaltiesToClaim || isClaiming }, royaltiesToClaim
|
|
5855
|
-
? isClaiming
|
|
5856
|
-
? "Claiming..."
|
|
5857
|
-
: `Claim ${royaltiesToClaim} $CAMP`
|
|
5858
|
-
: "No Royalties to claim"))));
|
|
6455
|
+
React.createElement("span", { className: styles["origin-label"] }, "Marketplace"))))));
|
|
5859
6456
|
};
|
|
5860
6457
|
/**
|
|
5861
6458
|
* The MyCampModal component.
|