@lukso/lsp7-contracts 0.16.3 → 0.16.4

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/abi.mjs ADDED
@@ -0,0 +1,4794 @@
1
+ const ilsp7DigitalAssetAbi = [
2
+ {
3
+ type: "event",
4
+ anonymous: false,
5
+ inputs: [
6
+ {
7
+ name: "operator",
8
+ internalType: "address",
9
+ type: "address",
10
+ indexed: true
11
+ },
12
+ {
13
+ name: "tokenOwner",
14
+ internalType: "address",
15
+ type: "address",
16
+ indexed: true
17
+ },
18
+ {
19
+ name: "amount",
20
+ internalType: "uint256",
21
+ type: "uint256",
22
+ indexed: true
23
+ },
24
+ {
25
+ name: "operatorNotificationData",
26
+ internalType: "bytes",
27
+ type: "bytes",
28
+ indexed: false
29
+ }
30
+ ],
31
+ name: "OperatorAuthorizationChanged"
32
+ },
33
+ {
34
+ type: "event",
35
+ anonymous: false,
36
+ inputs: [
37
+ {
38
+ name: "operator",
39
+ internalType: "address",
40
+ type: "address",
41
+ indexed: true
42
+ },
43
+ {
44
+ name: "tokenOwner",
45
+ internalType: "address",
46
+ type: "address",
47
+ indexed: true
48
+ },
49
+ { name: "notified", internalType: "bool", type: "bool", indexed: true },
50
+ {
51
+ name: "operatorNotificationData",
52
+ internalType: "bytes",
53
+ type: "bytes",
54
+ indexed: false
55
+ }
56
+ ],
57
+ name: "OperatorRevoked"
58
+ },
59
+ {
60
+ type: "event",
61
+ anonymous: false,
62
+ inputs: [
63
+ {
64
+ name: "operator",
65
+ internalType: "address",
66
+ type: "address",
67
+ indexed: true
68
+ },
69
+ { name: "from", internalType: "address", type: "address", indexed: true },
70
+ { name: "to", internalType: "address", type: "address", indexed: true },
71
+ {
72
+ name: "amount",
73
+ internalType: "uint256",
74
+ type: "uint256",
75
+ indexed: false
76
+ },
77
+ { name: "force", internalType: "bool", type: "bool", indexed: false },
78
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
79
+ ],
80
+ name: "Transfer"
81
+ },
82
+ {
83
+ type: "function",
84
+ inputs: [
85
+ { name: "operator", internalType: "address", type: "address" },
86
+ { name: "amount", internalType: "uint256", type: "uint256" },
87
+ {
88
+ name: "operatorNotificationData",
89
+ internalType: "bytes",
90
+ type: "bytes"
91
+ }
92
+ ],
93
+ name: "authorizeOperator",
94
+ outputs: [],
95
+ stateMutability: "nonpayable"
96
+ },
97
+ {
98
+ type: "function",
99
+ inputs: [
100
+ { name: "operator", internalType: "address", type: "address" },
101
+ { name: "tokenOwner", internalType: "address", type: "address" }
102
+ ],
103
+ name: "authorizedAmountFor",
104
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
105
+ stateMutability: "view"
106
+ },
107
+ {
108
+ type: "function",
109
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
110
+ name: "balanceOf",
111
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
112
+ stateMutability: "view"
113
+ },
114
+ {
115
+ type: "function",
116
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
117
+ name: "batchCalls",
118
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
119
+ stateMutability: "nonpayable"
120
+ },
121
+ {
122
+ type: "function",
123
+ inputs: [],
124
+ name: "decimals",
125
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
126
+ stateMutability: "view"
127
+ },
128
+ {
129
+ type: "function",
130
+ inputs: [
131
+ { name: "operator", internalType: "address", type: "address" },
132
+ { name: "tokenOwner", internalType: "address", type: "address" },
133
+ { name: "subtractedAmount", internalType: "uint256", type: "uint256" },
134
+ {
135
+ name: "operatorNotificationData",
136
+ internalType: "bytes",
137
+ type: "bytes"
138
+ }
139
+ ],
140
+ name: "decreaseAllowance",
141
+ outputs: [],
142
+ stateMutability: "nonpayable"
143
+ },
144
+ {
145
+ type: "function",
146
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
147
+ name: "getOperatorsOf",
148
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
149
+ stateMutability: "view"
150
+ },
151
+ {
152
+ type: "function",
153
+ inputs: [
154
+ { name: "operator", internalType: "address", type: "address" },
155
+ { name: "addedAmount", internalType: "uint256", type: "uint256" },
156
+ {
157
+ name: "operatorNotificationData",
158
+ internalType: "bytes",
159
+ type: "bytes"
160
+ }
161
+ ],
162
+ name: "increaseAllowance",
163
+ outputs: [],
164
+ stateMutability: "nonpayable"
165
+ },
166
+ {
167
+ type: "function",
168
+ inputs: [
169
+ { name: "operator", internalType: "address", type: "address" },
170
+ { name: "tokenOwner", internalType: "address", type: "address" },
171
+ { name: "notify", internalType: "bool", type: "bool" },
172
+ {
173
+ name: "operatorNotificationData",
174
+ internalType: "bytes",
175
+ type: "bytes"
176
+ }
177
+ ],
178
+ name: "revokeOperator",
179
+ outputs: [],
180
+ stateMutability: "nonpayable"
181
+ },
182
+ {
183
+ type: "function",
184
+ inputs: [],
185
+ name: "totalSupply",
186
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
187
+ stateMutability: "view"
188
+ },
189
+ {
190
+ type: "function",
191
+ inputs: [
192
+ { name: "from", internalType: "address", type: "address" },
193
+ { name: "to", internalType: "address", type: "address" },
194
+ { name: "amount", internalType: "uint256", type: "uint256" },
195
+ { name: "force", internalType: "bool", type: "bool" },
196
+ { name: "data", internalType: "bytes", type: "bytes" }
197
+ ],
198
+ name: "transfer",
199
+ outputs: [],
200
+ stateMutability: "nonpayable"
201
+ },
202
+ {
203
+ type: "function",
204
+ inputs: [
205
+ { name: "from", internalType: "address[]", type: "address[]" },
206
+ { name: "to", internalType: "address[]", type: "address[]" },
207
+ { name: "amount", internalType: "uint256[]", type: "uint256[]" },
208
+ { name: "force", internalType: "bool[]", type: "bool[]" },
209
+ { name: "data", internalType: "bytes[]", type: "bytes[]" }
210
+ ],
211
+ name: "transferBatch",
212
+ outputs: [],
213
+ stateMutability: "nonpayable"
214
+ }
215
+ ];
216
+ const lsp7BurnableAbi = [
217
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesEmptyArray" },
218
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesLengthMismatch" },
219
+ { type: "error", inputs: [], name: "ERC725Y_MsgValueDisallowed" },
220
+ {
221
+ type: "error",
222
+ inputs: [{ name: "storedData", internalType: "bytes", type: "bytes" }],
223
+ name: "InvalidExtensionAddress"
224
+ },
225
+ {
226
+ type: "error",
227
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
228
+ name: "InvalidFunctionSelector"
229
+ },
230
+ { type: "error", inputs: [], name: "LSP4TokenNameNotEditable" },
231
+ { type: "error", inputs: [], name: "LSP4TokenSymbolNotEditable" },
232
+ { type: "error", inputs: [], name: "LSP4TokenTypeNotEditable" },
233
+ {
234
+ type: "error",
235
+ inputs: [
236
+ { name: "tokenOwner", internalType: "address", type: "address" },
237
+ { name: "authorizedAmount", internalType: "uint256", type: "uint256" },
238
+ { name: "operator", internalType: "address", type: "address" },
239
+ { name: "amount", internalType: "uint256", type: "uint256" }
240
+ ],
241
+ name: "LSP7AmountExceedsAuthorizedAmount"
242
+ },
243
+ {
244
+ type: "error",
245
+ inputs: [
246
+ { name: "balance", internalType: "uint256", type: "uint256" },
247
+ { name: "tokenOwner", internalType: "address", type: "address" },
248
+ { name: "amount", internalType: "uint256", type: "uint256" }
249
+ ],
250
+ name: "LSP7AmountExceedsBalance"
251
+ },
252
+ {
253
+ type: "error",
254
+ inputs: [{ name: "callIndex", internalType: "uint256", type: "uint256" }],
255
+ name: "LSP7BatchCallFailed"
256
+ },
257
+ { type: "error", inputs: [], name: "LSP7CannotSendWithAddressZero" },
258
+ { type: "error", inputs: [], name: "LSP7CannotUseAddressZeroAsOperator" },
259
+ {
260
+ type: "error",
261
+ inputs: [
262
+ { name: "caller", internalType: "address", type: "address" },
263
+ { name: "tokenOwner", internalType: "address", type: "address" },
264
+ { name: "operator", internalType: "address", type: "address" }
265
+ ],
266
+ name: "LSP7DecreaseAllowanceNotAuthorized"
267
+ },
268
+ { type: "error", inputs: [], name: "LSP7DecreasedAllowanceBelowZero" },
269
+ { type: "error", inputs: [], name: "LSP7InvalidTransferBatch" },
270
+ {
271
+ type: "error",
272
+ inputs: [
273
+ { name: "tokenReceiver", internalType: "address", type: "address" }
274
+ ],
275
+ name: "LSP7NotifyTokenReceiverContractMissingLSP1Interface"
276
+ },
277
+ {
278
+ type: "error",
279
+ inputs: [
280
+ { name: "tokenReceiver", internalType: "address", type: "address" }
281
+ ],
282
+ name: "LSP7NotifyTokenReceiverIsEOA"
283
+ },
284
+ {
285
+ type: "error",
286
+ inputs: [
287
+ { name: "caller", internalType: "address", type: "address" },
288
+ { name: "tokenOwner", internalType: "address", type: "address" },
289
+ { name: "operator", internalType: "address", type: "address" }
290
+ ],
291
+ name: "LSP7RevokeOperatorNotAuthorized"
292
+ },
293
+ { type: "error", inputs: [], name: "LSP7TokenContractCannotHoldValue" },
294
+ { type: "error", inputs: [], name: "LSP7TokenOwnerCannotBeOperator" },
295
+ {
296
+ type: "error",
297
+ inputs: [
298
+ { name: "functionSelector", internalType: "bytes4", type: "bytes4" }
299
+ ],
300
+ name: "NoExtensionFoundForFunctionSelector"
301
+ },
302
+ {
303
+ type: "error",
304
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
305
+ name: "OperatorAllowanceCannotBeIncreasedFromZero"
306
+ },
307
+ { type: "error", inputs: [], name: "OwnableCannotSetZeroAddressAsOwner" },
308
+ {
309
+ type: "event",
310
+ anonymous: false,
311
+ inputs: [
312
+ {
313
+ name: "dataKey",
314
+ internalType: "bytes32",
315
+ type: "bytes32",
316
+ indexed: true
317
+ },
318
+ {
319
+ name: "dataValue",
320
+ internalType: "bytes",
321
+ type: "bytes",
322
+ indexed: false
323
+ }
324
+ ],
325
+ name: "DataChanged"
326
+ },
327
+ {
328
+ type: "event",
329
+ anonymous: false,
330
+ inputs: [
331
+ {
332
+ name: "operator",
333
+ internalType: "address",
334
+ type: "address",
335
+ indexed: true
336
+ },
337
+ {
338
+ name: "tokenOwner",
339
+ internalType: "address",
340
+ type: "address",
341
+ indexed: true
342
+ },
343
+ {
344
+ name: "amount",
345
+ internalType: "uint256",
346
+ type: "uint256",
347
+ indexed: true
348
+ },
349
+ {
350
+ name: "operatorNotificationData",
351
+ internalType: "bytes",
352
+ type: "bytes",
353
+ indexed: false
354
+ }
355
+ ],
356
+ name: "OperatorAuthorizationChanged"
357
+ },
358
+ {
359
+ type: "event",
360
+ anonymous: false,
361
+ inputs: [
362
+ {
363
+ name: "operator",
364
+ internalType: "address",
365
+ type: "address",
366
+ indexed: true
367
+ },
368
+ {
369
+ name: "tokenOwner",
370
+ internalType: "address",
371
+ type: "address",
372
+ indexed: true
373
+ },
374
+ { name: "notified", internalType: "bool", type: "bool", indexed: true },
375
+ {
376
+ name: "operatorNotificationData",
377
+ internalType: "bytes",
378
+ type: "bytes",
379
+ indexed: false
380
+ }
381
+ ],
382
+ name: "OperatorRevoked"
383
+ },
384
+ {
385
+ type: "event",
386
+ anonymous: false,
387
+ inputs: [
388
+ {
389
+ name: "previousOwner",
390
+ internalType: "address",
391
+ type: "address",
392
+ indexed: true
393
+ },
394
+ {
395
+ name: "newOwner",
396
+ internalType: "address",
397
+ type: "address",
398
+ indexed: true
399
+ }
400
+ ],
401
+ name: "OwnershipTransferred"
402
+ },
403
+ {
404
+ type: "event",
405
+ anonymous: false,
406
+ inputs: [
407
+ {
408
+ name: "operator",
409
+ internalType: "address",
410
+ type: "address",
411
+ indexed: true
412
+ },
413
+ { name: "from", internalType: "address", type: "address", indexed: true },
414
+ { name: "to", internalType: "address", type: "address", indexed: true },
415
+ {
416
+ name: "amount",
417
+ internalType: "uint256",
418
+ type: "uint256",
419
+ indexed: false
420
+ },
421
+ { name: "force", internalType: "bool", type: "bool", indexed: false },
422
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
423
+ ],
424
+ name: "Transfer"
425
+ },
426
+ { type: "fallback", stateMutability: "payable" },
427
+ {
428
+ type: "function",
429
+ inputs: [
430
+ { name: "operator", internalType: "address", type: "address" },
431
+ { name: "amount", internalType: "uint256", type: "uint256" },
432
+ {
433
+ name: "operatorNotificationData",
434
+ internalType: "bytes",
435
+ type: "bytes"
436
+ }
437
+ ],
438
+ name: "authorizeOperator",
439
+ outputs: [],
440
+ stateMutability: "nonpayable"
441
+ },
442
+ {
443
+ type: "function",
444
+ inputs: [
445
+ { name: "operator", internalType: "address", type: "address" },
446
+ { name: "tokenOwner", internalType: "address", type: "address" }
447
+ ],
448
+ name: "authorizedAmountFor",
449
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
450
+ stateMutability: "view"
451
+ },
452
+ {
453
+ type: "function",
454
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
455
+ name: "balanceOf",
456
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
457
+ stateMutability: "view"
458
+ },
459
+ {
460
+ type: "function",
461
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
462
+ name: "batchCalls",
463
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
464
+ stateMutability: "nonpayable"
465
+ },
466
+ {
467
+ type: "function",
468
+ inputs: [
469
+ { name: "from", internalType: "address", type: "address" },
470
+ { name: "amount", internalType: "uint256", type: "uint256" },
471
+ { name: "data", internalType: "bytes", type: "bytes" }
472
+ ],
473
+ name: "burn",
474
+ outputs: [],
475
+ stateMutability: "nonpayable"
476
+ },
477
+ {
478
+ type: "function",
479
+ inputs: [],
480
+ name: "decimals",
481
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
482
+ stateMutability: "view"
483
+ },
484
+ {
485
+ type: "function",
486
+ inputs: [
487
+ { name: "operator", internalType: "address", type: "address" },
488
+ { name: "tokenOwner", internalType: "address", type: "address" },
489
+ { name: "subtractedAmount", internalType: "uint256", type: "uint256" },
490
+ {
491
+ name: "operatorNotificationData",
492
+ internalType: "bytes",
493
+ type: "bytes"
494
+ }
495
+ ],
496
+ name: "decreaseAllowance",
497
+ outputs: [],
498
+ stateMutability: "nonpayable"
499
+ },
500
+ {
501
+ type: "function",
502
+ inputs: [{ name: "dataKey", internalType: "bytes32", type: "bytes32" }],
503
+ name: "getData",
504
+ outputs: [{ name: "dataValue", internalType: "bytes", type: "bytes" }],
505
+ stateMutability: "view"
506
+ },
507
+ {
508
+ type: "function",
509
+ inputs: [
510
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" }
511
+ ],
512
+ name: "getDataBatch",
513
+ outputs: [{ name: "dataValues", internalType: "bytes[]", type: "bytes[]" }],
514
+ stateMutability: "view"
515
+ },
516
+ {
517
+ type: "function",
518
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
519
+ name: "getOperatorsOf",
520
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
521
+ stateMutability: "view"
522
+ },
523
+ {
524
+ type: "function",
525
+ inputs: [
526
+ { name: "operator", internalType: "address", type: "address" },
527
+ { name: "addedAmount", internalType: "uint256", type: "uint256" },
528
+ {
529
+ name: "operatorNotificationData",
530
+ internalType: "bytes",
531
+ type: "bytes"
532
+ }
533
+ ],
534
+ name: "increaseAllowance",
535
+ outputs: [],
536
+ stateMutability: "nonpayable"
537
+ },
538
+ {
539
+ type: "function",
540
+ inputs: [],
541
+ name: "owner",
542
+ outputs: [{ name: "", internalType: "address", type: "address" }],
543
+ stateMutability: "view"
544
+ },
545
+ {
546
+ type: "function",
547
+ inputs: [],
548
+ name: "renounceOwnership",
549
+ outputs: [],
550
+ stateMutability: "nonpayable"
551
+ },
552
+ {
553
+ type: "function",
554
+ inputs: [
555
+ { name: "operator", internalType: "address", type: "address" },
556
+ { name: "tokenOwner", internalType: "address", type: "address" },
557
+ { name: "notify", internalType: "bool", type: "bool" },
558
+ {
559
+ name: "operatorNotificationData",
560
+ internalType: "bytes",
561
+ type: "bytes"
562
+ }
563
+ ],
564
+ name: "revokeOperator",
565
+ outputs: [],
566
+ stateMutability: "nonpayable"
567
+ },
568
+ {
569
+ type: "function",
570
+ inputs: [
571
+ { name: "dataKey", internalType: "bytes32", type: "bytes32" },
572
+ { name: "dataValue", internalType: "bytes", type: "bytes" }
573
+ ],
574
+ name: "setData",
575
+ outputs: [],
576
+ stateMutability: "payable"
577
+ },
578
+ {
579
+ type: "function",
580
+ inputs: [
581
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" },
582
+ { name: "dataValues", internalType: "bytes[]", type: "bytes[]" }
583
+ ],
584
+ name: "setDataBatch",
585
+ outputs: [],
586
+ stateMutability: "payable"
587
+ },
588
+ {
589
+ type: "function",
590
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
591
+ name: "supportsInterface",
592
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
593
+ stateMutability: "view"
594
+ },
595
+ {
596
+ type: "function",
597
+ inputs: [],
598
+ name: "totalSupply",
599
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
600
+ stateMutability: "view"
601
+ },
602
+ {
603
+ type: "function",
604
+ inputs: [
605
+ { name: "from", internalType: "address", type: "address" },
606
+ { name: "to", internalType: "address", type: "address" },
607
+ { name: "amount", internalType: "uint256", type: "uint256" },
608
+ { name: "force", internalType: "bool", type: "bool" },
609
+ { name: "data", internalType: "bytes", type: "bytes" }
610
+ ],
611
+ name: "transfer",
612
+ outputs: [],
613
+ stateMutability: "nonpayable"
614
+ },
615
+ {
616
+ type: "function",
617
+ inputs: [
618
+ { name: "from", internalType: "address[]", type: "address[]" },
619
+ { name: "to", internalType: "address[]", type: "address[]" },
620
+ { name: "amount", internalType: "uint256[]", type: "uint256[]" },
621
+ { name: "force", internalType: "bool[]", type: "bool[]" },
622
+ { name: "data", internalType: "bytes[]", type: "bytes[]" }
623
+ ],
624
+ name: "transferBatch",
625
+ outputs: [],
626
+ stateMutability: "nonpayable"
627
+ },
628
+ {
629
+ type: "function",
630
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
631
+ name: "transferOwnership",
632
+ outputs: [],
633
+ stateMutability: "nonpayable"
634
+ },
635
+ { type: "receive", stateMutability: "payable" }
636
+ ];
637
+ const lsp7BurnableInitAbstractAbi = [
638
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesEmptyArray" },
639
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesLengthMismatch" },
640
+ { type: "error", inputs: [], name: "ERC725Y_MsgValueDisallowed" },
641
+ {
642
+ type: "error",
643
+ inputs: [{ name: "storedData", internalType: "bytes", type: "bytes" }],
644
+ name: "InvalidExtensionAddress"
645
+ },
646
+ {
647
+ type: "error",
648
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
649
+ name: "InvalidFunctionSelector"
650
+ },
651
+ { type: "error", inputs: [], name: "LSP4TokenNameNotEditable" },
652
+ { type: "error", inputs: [], name: "LSP4TokenSymbolNotEditable" },
653
+ { type: "error", inputs: [], name: "LSP4TokenTypeNotEditable" },
654
+ {
655
+ type: "error",
656
+ inputs: [
657
+ { name: "tokenOwner", internalType: "address", type: "address" },
658
+ { name: "authorizedAmount", internalType: "uint256", type: "uint256" },
659
+ { name: "operator", internalType: "address", type: "address" },
660
+ { name: "amount", internalType: "uint256", type: "uint256" }
661
+ ],
662
+ name: "LSP7AmountExceedsAuthorizedAmount"
663
+ },
664
+ {
665
+ type: "error",
666
+ inputs: [
667
+ { name: "balance", internalType: "uint256", type: "uint256" },
668
+ { name: "tokenOwner", internalType: "address", type: "address" },
669
+ { name: "amount", internalType: "uint256", type: "uint256" }
670
+ ],
671
+ name: "LSP7AmountExceedsBalance"
672
+ },
673
+ {
674
+ type: "error",
675
+ inputs: [{ name: "callIndex", internalType: "uint256", type: "uint256" }],
676
+ name: "LSP7BatchCallFailed"
677
+ },
678
+ { type: "error", inputs: [], name: "LSP7CannotSendWithAddressZero" },
679
+ { type: "error", inputs: [], name: "LSP7CannotUseAddressZeroAsOperator" },
680
+ {
681
+ type: "error",
682
+ inputs: [
683
+ { name: "caller", internalType: "address", type: "address" },
684
+ { name: "tokenOwner", internalType: "address", type: "address" },
685
+ { name: "operator", internalType: "address", type: "address" }
686
+ ],
687
+ name: "LSP7DecreaseAllowanceNotAuthorized"
688
+ },
689
+ { type: "error", inputs: [], name: "LSP7DecreasedAllowanceBelowZero" },
690
+ { type: "error", inputs: [], name: "LSP7InvalidTransferBatch" },
691
+ {
692
+ type: "error",
693
+ inputs: [
694
+ { name: "tokenReceiver", internalType: "address", type: "address" }
695
+ ],
696
+ name: "LSP7NotifyTokenReceiverContractMissingLSP1Interface"
697
+ },
698
+ {
699
+ type: "error",
700
+ inputs: [
701
+ { name: "tokenReceiver", internalType: "address", type: "address" }
702
+ ],
703
+ name: "LSP7NotifyTokenReceiverIsEOA"
704
+ },
705
+ {
706
+ type: "error",
707
+ inputs: [
708
+ { name: "caller", internalType: "address", type: "address" },
709
+ { name: "tokenOwner", internalType: "address", type: "address" },
710
+ { name: "operator", internalType: "address", type: "address" }
711
+ ],
712
+ name: "LSP7RevokeOperatorNotAuthorized"
713
+ },
714
+ { type: "error", inputs: [], name: "LSP7TokenContractCannotHoldValue" },
715
+ { type: "error", inputs: [], name: "LSP7TokenOwnerCannotBeOperator" },
716
+ {
717
+ type: "error",
718
+ inputs: [
719
+ { name: "functionSelector", internalType: "bytes4", type: "bytes4" }
720
+ ],
721
+ name: "NoExtensionFoundForFunctionSelector"
722
+ },
723
+ {
724
+ type: "error",
725
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
726
+ name: "OperatorAllowanceCannotBeIncreasedFromZero"
727
+ },
728
+ {
729
+ type: "event",
730
+ anonymous: false,
731
+ inputs: [
732
+ {
733
+ name: "dataKey",
734
+ internalType: "bytes32",
735
+ type: "bytes32",
736
+ indexed: true
737
+ },
738
+ {
739
+ name: "dataValue",
740
+ internalType: "bytes",
741
+ type: "bytes",
742
+ indexed: false
743
+ }
744
+ ],
745
+ name: "DataChanged"
746
+ },
747
+ {
748
+ type: "event",
749
+ anonymous: false,
750
+ inputs: [
751
+ { name: "version", internalType: "uint8", type: "uint8", indexed: false }
752
+ ],
753
+ name: "Initialized"
754
+ },
755
+ {
756
+ type: "event",
757
+ anonymous: false,
758
+ inputs: [
759
+ {
760
+ name: "operator",
761
+ internalType: "address",
762
+ type: "address",
763
+ indexed: true
764
+ },
765
+ {
766
+ name: "tokenOwner",
767
+ internalType: "address",
768
+ type: "address",
769
+ indexed: true
770
+ },
771
+ {
772
+ name: "amount",
773
+ internalType: "uint256",
774
+ type: "uint256",
775
+ indexed: true
776
+ },
777
+ {
778
+ name: "operatorNotificationData",
779
+ internalType: "bytes",
780
+ type: "bytes",
781
+ indexed: false
782
+ }
783
+ ],
784
+ name: "OperatorAuthorizationChanged"
785
+ },
786
+ {
787
+ type: "event",
788
+ anonymous: false,
789
+ inputs: [
790
+ {
791
+ name: "operator",
792
+ internalType: "address",
793
+ type: "address",
794
+ indexed: true
795
+ },
796
+ {
797
+ name: "tokenOwner",
798
+ internalType: "address",
799
+ type: "address",
800
+ indexed: true
801
+ },
802
+ { name: "notified", internalType: "bool", type: "bool", indexed: true },
803
+ {
804
+ name: "operatorNotificationData",
805
+ internalType: "bytes",
806
+ type: "bytes",
807
+ indexed: false
808
+ }
809
+ ],
810
+ name: "OperatorRevoked"
811
+ },
812
+ {
813
+ type: "event",
814
+ anonymous: false,
815
+ inputs: [
816
+ {
817
+ name: "previousOwner",
818
+ internalType: "address",
819
+ type: "address",
820
+ indexed: true
821
+ },
822
+ {
823
+ name: "newOwner",
824
+ internalType: "address",
825
+ type: "address",
826
+ indexed: true
827
+ }
828
+ ],
829
+ name: "OwnershipTransferred"
830
+ },
831
+ {
832
+ type: "event",
833
+ anonymous: false,
834
+ inputs: [
835
+ {
836
+ name: "operator",
837
+ internalType: "address",
838
+ type: "address",
839
+ indexed: true
840
+ },
841
+ { name: "from", internalType: "address", type: "address", indexed: true },
842
+ { name: "to", internalType: "address", type: "address", indexed: true },
843
+ {
844
+ name: "amount",
845
+ internalType: "uint256",
846
+ type: "uint256",
847
+ indexed: false
848
+ },
849
+ { name: "force", internalType: "bool", type: "bool", indexed: false },
850
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
851
+ ],
852
+ name: "Transfer"
853
+ },
854
+ { type: "fallback", stateMutability: "payable" },
855
+ {
856
+ type: "function",
857
+ inputs: [
858
+ { name: "operator", internalType: "address", type: "address" },
859
+ { name: "amount", internalType: "uint256", type: "uint256" },
860
+ {
861
+ name: "operatorNotificationData",
862
+ internalType: "bytes",
863
+ type: "bytes"
864
+ }
865
+ ],
866
+ name: "authorizeOperator",
867
+ outputs: [],
868
+ stateMutability: "nonpayable"
869
+ },
870
+ {
871
+ type: "function",
872
+ inputs: [
873
+ { name: "operator", internalType: "address", type: "address" },
874
+ { name: "tokenOwner", internalType: "address", type: "address" }
875
+ ],
876
+ name: "authorizedAmountFor",
877
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
878
+ stateMutability: "view"
879
+ },
880
+ {
881
+ type: "function",
882
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
883
+ name: "balanceOf",
884
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
885
+ stateMutability: "view"
886
+ },
887
+ {
888
+ type: "function",
889
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
890
+ name: "batchCalls",
891
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
892
+ stateMutability: "nonpayable"
893
+ },
894
+ {
895
+ type: "function",
896
+ inputs: [
897
+ { name: "from", internalType: "address", type: "address" },
898
+ { name: "amount", internalType: "uint256", type: "uint256" },
899
+ { name: "data", internalType: "bytes", type: "bytes" }
900
+ ],
901
+ name: "burn",
902
+ outputs: [],
903
+ stateMutability: "nonpayable"
904
+ },
905
+ {
906
+ type: "function",
907
+ inputs: [],
908
+ name: "decimals",
909
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
910
+ stateMutability: "view"
911
+ },
912
+ {
913
+ type: "function",
914
+ inputs: [
915
+ { name: "operator", internalType: "address", type: "address" },
916
+ { name: "tokenOwner", internalType: "address", type: "address" },
917
+ { name: "subtractedAmount", internalType: "uint256", type: "uint256" },
918
+ {
919
+ name: "operatorNotificationData",
920
+ internalType: "bytes",
921
+ type: "bytes"
922
+ }
923
+ ],
924
+ name: "decreaseAllowance",
925
+ outputs: [],
926
+ stateMutability: "nonpayable"
927
+ },
928
+ {
929
+ type: "function",
930
+ inputs: [{ name: "dataKey", internalType: "bytes32", type: "bytes32" }],
931
+ name: "getData",
932
+ outputs: [{ name: "dataValue", internalType: "bytes", type: "bytes" }],
933
+ stateMutability: "view"
934
+ },
935
+ {
936
+ type: "function",
937
+ inputs: [
938
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" }
939
+ ],
940
+ name: "getDataBatch",
941
+ outputs: [{ name: "dataValues", internalType: "bytes[]", type: "bytes[]" }],
942
+ stateMutability: "view"
943
+ },
944
+ {
945
+ type: "function",
946
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
947
+ name: "getOperatorsOf",
948
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
949
+ stateMutability: "view"
950
+ },
951
+ {
952
+ type: "function",
953
+ inputs: [
954
+ { name: "operator", internalType: "address", type: "address" },
955
+ { name: "addedAmount", internalType: "uint256", type: "uint256" },
956
+ {
957
+ name: "operatorNotificationData",
958
+ internalType: "bytes",
959
+ type: "bytes"
960
+ }
961
+ ],
962
+ name: "increaseAllowance",
963
+ outputs: [],
964
+ stateMutability: "nonpayable"
965
+ },
966
+ {
967
+ type: "function",
968
+ inputs: [],
969
+ name: "owner",
970
+ outputs: [{ name: "", internalType: "address", type: "address" }],
971
+ stateMutability: "view"
972
+ },
973
+ {
974
+ type: "function",
975
+ inputs: [],
976
+ name: "renounceOwnership",
977
+ outputs: [],
978
+ stateMutability: "nonpayable"
979
+ },
980
+ {
981
+ type: "function",
982
+ inputs: [
983
+ { name: "operator", internalType: "address", type: "address" },
984
+ { name: "tokenOwner", internalType: "address", type: "address" },
985
+ { name: "notify", internalType: "bool", type: "bool" },
986
+ {
987
+ name: "operatorNotificationData",
988
+ internalType: "bytes",
989
+ type: "bytes"
990
+ }
991
+ ],
992
+ name: "revokeOperator",
993
+ outputs: [],
994
+ stateMutability: "nonpayable"
995
+ },
996
+ {
997
+ type: "function",
998
+ inputs: [
999
+ { name: "dataKey", internalType: "bytes32", type: "bytes32" },
1000
+ { name: "dataValue", internalType: "bytes", type: "bytes" }
1001
+ ],
1002
+ name: "setData",
1003
+ outputs: [],
1004
+ stateMutability: "payable"
1005
+ },
1006
+ {
1007
+ type: "function",
1008
+ inputs: [
1009
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" },
1010
+ { name: "dataValues", internalType: "bytes[]", type: "bytes[]" }
1011
+ ],
1012
+ name: "setDataBatch",
1013
+ outputs: [],
1014
+ stateMutability: "payable"
1015
+ },
1016
+ {
1017
+ type: "function",
1018
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
1019
+ name: "supportsInterface",
1020
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1021
+ stateMutability: "view"
1022
+ },
1023
+ {
1024
+ type: "function",
1025
+ inputs: [],
1026
+ name: "totalSupply",
1027
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1028
+ stateMutability: "view"
1029
+ },
1030
+ {
1031
+ type: "function",
1032
+ inputs: [
1033
+ { name: "from", internalType: "address", type: "address" },
1034
+ { name: "to", internalType: "address", type: "address" },
1035
+ { name: "amount", internalType: "uint256", type: "uint256" },
1036
+ { name: "force", internalType: "bool", type: "bool" },
1037
+ { name: "data", internalType: "bytes", type: "bytes" }
1038
+ ],
1039
+ name: "transfer",
1040
+ outputs: [],
1041
+ stateMutability: "nonpayable"
1042
+ },
1043
+ {
1044
+ type: "function",
1045
+ inputs: [
1046
+ { name: "from", internalType: "address[]", type: "address[]" },
1047
+ { name: "to", internalType: "address[]", type: "address[]" },
1048
+ { name: "amount", internalType: "uint256[]", type: "uint256[]" },
1049
+ { name: "force", internalType: "bool[]", type: "bool[]" },
1050
+ { name: "data", internalType: "bytes[]", type: "bytes[]" }
1051
+ ],
1052
+ name: "transferBatch",
1053
+ outputs: [],
1054
+ stateMutability: "nonpayable"
1055
+ },
1056
+ {
1057
+ type: "function",
1058
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
1059
+ name: "transferOwnership",
1060
+ outputs: [],
1061
+ stateMutability: "nonpayable"
1062
+ },
1063
+ { type: "receive", stateMutability: "payable" }
1064
+ ];
1065
+ const lsp7CappedSupplyAbi = [
1066
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesEmptyArray" },
1067
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesLengthMismatch" },
1068
+ { type: "error", inputs: [], name: "ERC725Y_MsgValueDisallowed" },
1069
+ {
1070
+ type: "error",
1071
+ inputs: [{ name: "storedData", internalType: "bytes", type: "bytes" }],
1072
+ name: "InvalidExtensionAddress"
1073
+ },
1074
+ {
1075
+ type: "error",
1076
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
1077
+ name: "InvalidFunctionSelector"
1078
+ },
1079
+ { type: "error", inputs: [], name: "LSP4TokenNameNotEditable" },
1080
+ { type: "error", inputs: [], name: "LSP4TokenSymbolNotEditable" },
1081
+ { type: "error", inputs: [], name: "LSP4TokenTypeNotEditable" },
1082
+ {
1083
+ type: "error",
1084
+ inputs: [
1085
+ { name: "tokenOwner", internalType: "address", type: "address" },
1086
+ { name: "authorizedAmount", internalType: "uint256", type: "uint256" },
1087
+ { name: "operator", internalType: "address", type: "address" },
1088
+ { name: "amount", internalType: "uint256", type: "uint256" }
1089
+ ],
1090
+ name: "LSP7AmountExceedsAuthorizedAmount"
1091
+ },
1092
+ {
1093
+ type: "error",
1094
+ inputs: [
1095
+ { name: "balance", internalType: "uint256", type: "uint256" },
1096
+ { name: "tokenOwner", internalType: "address", type: "address" },
1097
+ { name: "amount", internalType: "uint256", type: "uint256" }
1098
+ ],
1099
+ name: "LSP7AmountExceedsBalance"
1100
+ },
1101
+ {
1102
+ type: "error",
1103
+ inputs: [{ name: "callIndex", internalType: "uint256", type: "uint256" }],
1104
+ name: "LSP7BatchCallFailed"
1105
+ },
1106
+ { type: "error", inputs: [], name: "LSP7CannotSendWithAddressZero" },
1107
+ { type: "error", inputs: [], name: "LSP7CannotUseAddressZeroAsOperator" },
1108
+ { type: "error", inputs: [], name: "LSP7CappedSupplyCannotMintOverCap" },
1109
+ { type: "error", inputs: [], name: "LSP7CappedSupplyRequired" },
1110
+ {
1111
+ type: "error",
1112
+ inputs: [
1113
+ { name: "caller", internalType: "address", type: "address" },
1114
+ { name: "tokenOwner", internalType: "address", type: "address" },
1115
+ { name: "operator", internalType: "address", type: "address" }
1116
+ ],
1117
+ name: "LSP7DecreaseAllowanceNotAuthorized"
1118
+ },
1119
+ { type: "error", inputs: [], name: "LSP7DecreasedAllowanceBelowZero" },
1120
+ { type: "error", inputs: [], name: "LSP7InvalidTransferBatch" },
1121
+ {
1122
+ type: "error",
1123
+ inputs: [
1124
+ { name: "tokenReceiver", internalType: "address", type: "address" }
1125
+ ],
1126
+ name: "LSP7NotifyTokenReceiverContractMissingLSP1Interface"
1127
+ },
1128
+ {
1129
+ type: "error",
1130
+ inputs: [
1131
+ { name: "tokenReceiver", internalType: "address", type: "address" }
1132
+ ],
1133
+ name: "LSP7NotifyTokenReceiverIsEOA"
1134
+ },
1135
+ {
1136
+ type: "error",
1137
+ inputs: [
1138
+ { name: "caller", internalType: "address", type: "address" },
1139
+ { name: "tokenOwner", internalType: "address", type: "address" },
1140
+ { name: "operator", internalType: "address", type: "address" }
1141
+ ],
1142
+ name: "LSP7RevokeOperatorNotAuthorized"
1143
+ },
1144
+ { type: "error", inputs: [], name: "LSP7TokenContractCannotHoldValue" },
1145
+ { type: "error", inputs: [], name: "LSP7TokenOwnerCannotBeOperator" },
1146
+ {
1147
+ type: "error",
1148
+ inputs: [
1149
+ { name: "functionSelector", internalType: "bytes4", type: "bytes4" }
1150
+ ],
1151
+ name: "NoExtensionFoundForFunctionSelector"
1152
+ },
1153
+ {
1154
+ type: "error",
1155
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
1156
+ name: "OperatorAllowanceCannotBeIncreasedFromZero"
1157
+ },
1158
+ { type: "error", inputs: [], name: "OwnableCannotSetZeroAddressAsOwner" },
1159
+ {
1160
+ type: "event",
1161
+ anonymous: false,
1162
+ inputs: [
1163
+ {
1164
+ name: "dataKey",
1165
+ internalType: "bytes32",
1166
+ type: "bytes32",
1167
+ indexed: true
1168
+ },
1169
+ {
1170
+ name: "dataValue",
1171
+ internalType: "bytes",
1172
+ type: "bytes",
1173
+ indexed: false
1174
+ }
1175
+ ],
1176
+ name: "DataChanged"
1177
+ },
1178
+ {
1179
+ type: "event",
1180
+ anonymous: false,
1181
+ inputs: [
1182
+ {
1183
+ name: "operator",
1184
+ internalType: "address",
1185
+ type: "address",
1186
+ indexed: true
1187
+ },
1188
+ {
1189
+ name: "tokenOwner",
1190
+ internalType: "address",
1191
+ type: "address",
1192
+ indexed: true
1193
+ },
1194
+ {
1195
+ name: "amount",
1196
+ internalType: "uint256",
1197
+ type: "uint256",
1198
+ indexed: true
1199
+ },
1200
+ {
1201
+ name: "operatorNotificationData",
1202
+ internalType: "bytes",
1203
+ type: "bytes",
1204
+ indexed: false
1205
+ }
1206
+ ],
1207
+ name: "OperatorAuthorizationChanged"
1208
+ },
1209
+ {
1210
+ type: "event",
1211
+ anonymous: false,
1212
+ inputs: [
1213
+ {
1214
+ name: "operator",
1215
+ internalType: "address",
1216
+ type: "address",
1217
+ indexed: true
1218
+ },
1219
+ {
1220
+ name: "tokenOwner",
1221
+ internalType: "address",
1222
+ type: "address",
1223
+ indexed: true
1224
+ },
1225
+ { name: "notified", internalType: "bool", type: "bool", indexed: true },
1226
+ {
1227
+ name: "operatorNotificationData",
1228
+ internalType: "bytes",
1229
+ type: "bytes",
1230
+ indexed: false
1231
+ }
1232
+ ],
1233
+ name: "OperatorRevoked"
1234
+ },
1235
+ {
1236
+ type: "event",
1237
+ anonymous: false,
1238
+ inputs: [
1239
+ {
1240
+ name: "previousOwner",
1241
+ internalType: "address",
1242
+ type: "address",
1243
+ indexed: true
1244
+ },
1245
+ {
1246
+ name: "newOwner",
1247
+ internalType: "address",
1248
+ type: "address",
1249
+ indexed: true
1250
+ }
1251
+ ],
1252
+ name: "OwnershipTransferred"
1253
+ },
1254
+ {
1255
+ type: "event",
1256
+ anonymous: false,
1257
+ inputs: [
1258
+ {
1259
+ name: "operator",
1260
+ internalType: "address",
1261
+ type: "address",
1262
+ indexed: true
1263
+ },
1264
+ { name: "from", internalType: "address", type: "address", indexed: true },
1265
+ { name: "to", internalType: "address", type: "address", indexed: true },
1266
+ {
1267
+ name: "amount",
1268
+ internalType: "uint256",
1269
+ type: "uint256",
1270
+ indexed: false
1271
+ },
1272
+ { name: "force", internalType: "bool", type: "bool", indexed: false },
1273
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
1274
+ ],
1275
+ name: "Transfer"
1276
+ },
1277
+ { type: "fallback", stateMutability: "payable" },
1278
+ {
1279
+ type: "function",
1280
+ inputs: [
1281
+ { name: "operator", internalType: "address", type: "address" },
1282
+ { name: "amount", internalType: "uint256", type: "uint256" },
1283
+ {
1284
+ name: "operatorNotificationData",
1285
+ internalType: "bytes",
1286
+ type: "bytes"
1287
+ }
1288
+ ],
1289
+ name: "authorizeOperator",
1290
+ outputs: [],
1291
+ stateMutability: "nonpayable"
1292
+ },
1293
+ {
1294
+ type: "function",
1295
+ inputs: [
1296
+ { name: "operator", internalType: "address", type: "address" },
1297
+ { name: "tokenOwner", internalType: "address", type: "address" }
1298
+ ],
1299
+ name: "authorizedAmountFor",
1300
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1301
+ stateMutability: "view"
1302
+ },
1303
+ {
1304
+ type: "function",
1305
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
1306
+ name: "balanceOf",
1307
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1308
+ stateMutability: "view"
1309
+ },
1310
+ {
1311
+ type: "function",
1312
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
1313
+ name: "batchCalls",
1314
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
1315
+ stateMutability: "nonpayable"
1316
+ },
1317
+ {
1318
+ type: "function",
1319
+ inputs: [],
1320
+ name: "decimals",
1321
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
1322
+ stateMutability: "view"
1323
+ },
1324
+ {
1325
+ type: "function",
1326
+ inputs: [
1327
+ { name: "operator", internalType: "address", type: "address" },
1328
+ { name: "tokenOwner", internalType: "address", type: "address" },
1329
+ { name: "subtractedAmount", internalType: "uint256", type: "uint256" },
1330
+ {
1331
+ name: "operatorNotificationData",
1332
+ internalType: "bytes",
1333
+ type: "bytes"
1334
+ }
1335
+ ],
1336
+ name: "decreaseAllowance",
1337
+ outputs: [],
1338
+ stateMutability: "nonpayable"
1339
+ },
1340
+ {
1341
+ type: "function",
1342
+ inputs: [{ name: "dataKey", internalType: "bytes32", type: "bytes32" }],
1343
+ name: "getData",
1344
+ outputs: [{ name: "dataValue", internalType: "bytes", type: "bytes" }],
1345
+ stateMutability: "view"
1346
+ },
1347
+ {
1348
+ type: "function",
1349
+ inputs: [
1350
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" }
1351
+ ],
1352
+ name: "getDataBatch",
1353
+ outputs: [{ name: "dataValues", internalType: "bytes[]", type: "bytes[]" }],
1354
+ stateMutability: "view"
1355
+ },
1356
+ {
1357
+ type: "function",
1358
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
1359
+ name: "getOperatorsOf",
1360
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
1361
+ stateMutability: "view"
1362
+ },
1363
+ {
1364
+ type: "function",
1365
+ inputs: [
1366
+ { name: "operator", internalType: "address", type: "address" },
1367
+ { name: "addedAmount", internalType: "uint256", type: "uint256" },
1368
+ {
1369
+ name: "operatorNotificationData",
1370
+ internalType: "bytes",
1371
+ type: "bytes"
1372
+ }
1373
+ ],
1374
+ name: "increaseAllowance",
1375
+ outputs: [],
1376
+ stateMutability: "nonpayable"
1377
+ },
1378
+ {
1379
+ type: "function",
1380
+ inputs: [],
1381
+ name: "owner",
1382
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1383
+ stateMutability: "view"
1384
+ },
1385
+ {
1386
+ type: "function",
1387
+ inputs: [],
1388
+ name: "renounceOwnership",
1389
+ outputs: [],
1390
+ stateMutability: "nonpayable"
1391
+ },
1392
+ {
1393
+ type: "function",
1394
+ inputs: [
1395
+ { name: "operator", internalType: "address", type: "address" },
1396
+ { name: "tokenOwner", internalType: "address", type: "address" },
1397
+ { name: "notify", internalType: "bool", type: "bool" },
1398
+ {
1399
+ name: "operatorNotificationData",
1400
+ internalType: "bytes",
1401
+ type: "bytes"
1402
+ }
1403
+ ],
1404
+ name: "revokeOperator",
1405
+ outputs: [],
1406
+ stateMutability: "nonpayable"
1407
+ },
1408
+ {
1409
+ type: "function",
1410
+ inputs: [
1411
+ { name: "dataKey", internalType: "bytes32", type: "bytes32" },
1412
+ { name: "dataValue", internalType: "bytes", type: "bytes" }
1413
+ ],
1414
+ name: "setData",
1415
+ outputs: [],
1416
+ stateMutability: "payable"
1417
+ },
1418
+ {
1419
+ type: "function",
1420
+ inputs: [
1421
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" },
1422
+ { name: "dataValues", internalType: "bytes[]", type: "bytes[]" }
1423
+ ],
1424
+ name: "setDataBatch",
1425
+ outputs: [],
1426
+ stateMutability: "payable"
1427
+ },
1428
+ {
1429
+ type: "function",
1430
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
1431
+ name: "supportsInterface",
1432
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1433
+ stateMutability: "view"
1434
+ },
1435
+ {
1436
+ type: "function",
1437
+ inputs: [],
1438
+ name: "tokenSupplyCap",
1439
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1440
+ stateMutability: "view"
1441
+ },
1442
+ {
1443
+ type: "function",
1444
+ inputs: [],
1445
+ name: "totalSupply",
1446
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1447
+ stateMutability: "view"
1448
+ },
1449
+ {
1450
+ type: "function",
1451
+ inputs: [
1452
+ { name: "from", internalType: "address", type: "address" },
1453
+ { name: "to", internalType: "address", type: "address" },
1454
+ { name: "amount", internalType: "uint256", type: "uint256" },
1455
+ { name: "force", internalType: "bool", type: "bool" },
1456
+ { name: "data", internalType: "bytes", type: "bytes" }
1457
+ ],
1458
+ name: "transfer",
1459
+ outputs: [],
1460
+ stateMutability: "nonpayable"
1461
+ },
1462
+ {
1463
+ type: "function",
1464
+ inputs: [
1465
+ { name: "from", internalType: "address[]", type: "address[]" },
1466
+ { name: "to", internalType: "address[]", type: "address[]" },
1467
+ { name: "amount", internalType: "uint256[]", type: "uint256[]" },
1468
+ { name: "force", internalType: "bool[]", type: "bool[]" },
1469
+ { name: "data", internalType: "bytes[]", type: "bytes[]" }
1470
+ ],
1471
+ name: "transferBatch",
1472
+ outputs: [],
1473
+ stateMutability: "nonpayable"
1474
+ },
1475
+ {
1476
+ type: "function",
1477
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
1478
+ name: "transferOwnership",
1479
+ outputs: [],
1480
+ stateMutability: "nonpayable"
1481
+ },
1482
+ { type: "receive", stateMutability: "payable" }
1483
+ ];
1484
+ const lsp7CappedSupplyInitAbstractAbi = [
1485
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesEmptyArray" },
1486
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesLengthMismatch" },
1487
+ { type: "error", inputs: [], name: "ERC725Y_MsgValueDisallowed" },
1488
+ {
1489
+ type: "error",
1490
+ inputs: [{ name: "storedData", internalType: "bytes", type: "bytes" }],
1491
+ name: "InvalidExtensionAddress"
1492
+ },
1493
+ {
1494
+ type: "error",
1495
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
1496
+ name: "InvalidFunctionSelector"
1497
+ },
1498
+ { type: "error", inputs: [], name: "LSP4TokenNameNotEditable" },
1499
+ { type: "error", inputs: [], name: "LSP4TokenSymbolNotEditable" },
1500
+ { type: "error", inputs: [], name: "LSP4TokenTypeNotEditable" },
1501
+ {
1502
+ type: "error",
1503
+ inputs: [
1504
+ { name: "tokenOwner", internalType: "address", type: "address" },
1505
+ { name: "authorizedAmount", internalType: "uint256", type: "uint256" },
1506
+ { name: "operator", internalType: "address", type: "address" },
1507
+ { name: "amount", internalType: "uint256", type: "uint256" }
1508
+ ],
1509
+ name: "LSP7AmountExceedsAuthorizedAmount"
1510
+ },
1511
+ {
1512
+ type: "error",
1513
+ inputs: [
1514
+ { name: "balance", internalType: "uint256", type: "uint256" },
1515
+ { name: "tokenOwner", internalType: "address", type: "address" },
1516
+ { name: "amount", internalType: "uint256", type: "uint256" }
1517
+ ],
1518
+ name: "LSP7AmountExceedsBalance"
1519
+ },
1520
+ {
1521
+ type: "error",
1522
+ inputs: [{ name: "callIndex", internalType: "uint256", type: "uint256" }],
1523
+ name: "LSP7BatchCallFailed"
1524
+ },
1525
+ { type: "error", inputs: [], name: "LSP7CannotSendWithAddressZero" },
1526
+ { type: "error", inputs: [], name: "LSP7CannotUseAddressZeroAsOperator" },
1527
+ { type: "error", inputs: [], name: "LSP7CappedSupplyCannotMintOverCap" },
1528
+ { type: "error", inputs: [], name: "LSP7CappedSupplyRequired" },
1529
+ {
1530
+ type: "error",
1531
+ inputs: [
1532
+ { name: "caller", internalType: "address", type: "address" },
1533
+ { name: "tokenOwner", internalType: "address", type: "address" },
1534
+ { name: "operator", internalType: "address", type: "address" }
1535
+ ],
1536
+ name: "LSP7DecreaseAllowanceNotAuthorized"
1537
+ },
1538
+ { type: "error", inputs: [], name: "LSP7DecreasedAllowanceBelowZero" },
1539
+ { type: "error", inputs: [], name: "LSP7InvalidTransferBatch" },
1540
+ {
1541
+ type: "error",
1542
+ inputs: [
1543
+ { name: "tokenReceiver", internalType: "address", type: "address" }
1544
+ ],
1545
+ name: "LSP7NotifyTokenReceiverContractMissingLSP1Interface"
1546
+ },
1547
+ {
1548
+ type: "error",
1549
+ inputs: [
1550
+ { name: "tokenReceiver", internalType: "address", type: "address" }
1551
+ ],
1552
+ name: "LSP7NotifyTokenReceiverIsEOA"
1553
+ },
1554
+ {
1555
+ type: "error",
1556
+ inputs: [
1557
+ { name: "caller", internalType: "address", type: "address" },
1558
+ { name: "tokenOwner", internalType: "address", type: "address" },
1559
+ { name: "operator", internalType: "address", type: "address" }
1560
+ ],
1561
+ name: "LSP7RevokeOperatorNotAuthorized"
1562
+ },
1563
+ { type: "error", inputs: [], name: "LSP7TokenContractCannotHoldValue" },
1564
+ { type: "error", inputs: [], name: "LSP7TokenOwnerCannotBeOperator" },
1565
+ {
1566
+ type: "error",
1567
+ inputs: [
1568
+ { name: "functionSelector", internalType: "bytes4", type: "bytes4" }
1569
+ ],
1570
+ name: "NoExtensionFoundForFunctionSelector"
1571
+ },
1572
+ {
1573
+ type: "error",
1574
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
1575
+ name: "OperatorAllowanceCannotBeIncreasedFromZero"
1576
+ },
1577
+ {
1578
+ type: "event",
1579
+ anonymous: false,
1580
+ inputs: [
1581
+ {
1582
+ name: "dataKey",
1583
+ internalType: "bytes32",
1584
+ type: "bytes32",
1585
+ indexed: true
1586
+ },
1587
+ {
1588
+ name: "dataValue",
1589
+ internalType: "bytes",
1590
+ type: "bytes",
1591
+ indexed: false
1592
+ }
1593
+ ],
1594
+ name: "DataChanged"
1595
+ },
1596
+ {
1597
+ type: "event",
1598
+ anonymous: false,
1599
+ inputs: [
1600
+ { name: "version", internalType: "uint8", type: "uint8", indexed: false }
1601
+ ],
1602
+ name: "Initialized"
1603
+ },
1604
+ {
1605
+ type: "event",
1606
+ anonymous: false,
1607
+ inputs: [
1608
+ {
1609
+ name: "operator",
1610
+ internalType: "address",
1611
+ type: "address",
1612
+ indexed: true
1613
+ },
1614
+ {
1615
+ name: "tokenOwner",
1616
+ internalType: "address",
1617
+ type: "address",
1618
+ indexed: true
1619
+ },
1620
+ {
1621
+ name: "amount",
1622
+ internalType: "uint256",
1623
+ type: "uint256",
1624
+ indexed: true
1625
+ },
1626
+ {
1627
+ name: "operatorNotificationData",
1628
+ internalType: "bytes",
1629
+ type: "bytes",
1630
+ indexed: false
1631
+ }
1632
+ ],
1633
+ name: "OperatorAuthorizationChanged"
1634
+ },
1635
+ {
1636
+ type: "event",
1637
+ anonymous: false,
1638
+ inputs: [
1639
+ {
1640
+ name: "operator",
1641
+ internalType: "address",
1642
+ type: "address",
1643
+ indexed: true
1644
+ },
1645
+ {
1646
+ name: "tokenOwner",
1647
+ internalType: "address",
1648
+ type: "address",
1649
+ indexed: true
1650
+ },
1651
+ { name: "notified", internalType: "bool", type: "bool", indexed: true },
1652
+ {
1653
+ name: "operatorNotificationData",
1654
+ internalType: "bytes",
1655
+ type: "bytes",
1656
+ indexed: false
1657
+ }
1658
+ ],
1659
+ name: "OperatorRevoked"
1660
+ },
1661
+ {
1662
+ type: "event",
1663
+ anonymous: false,
1664
+ inputs: [
1665
+ {
1666
+ name: "previousOwner",
1667
+ internalType: "address",
1668
+ type: "address",
1669
+ indexed: true
1670
+ },
1671
+ {
1672
+ name: "newOwner",
1673
+ internalType: "address",
1674
+ type: "address",
1675
+ indexed: true
1676
+ }
1677
+ ],
1678
+ name: "OwnershipTransferred"
1679
+ },
1680
+ {
1681
+ type: "event",
1682
+ anonymous: false,
1683
+ inputs: [
1684
+ {
1685
+ name: "operator",
1686
+ internalType: "address",
1687
+ type: "address",
1688
+ indexed: true
1689
+ },
1690
+ { name: "from", internalType: "address", type: "address", indexed: true },
1691
+ { name: "to", internalType: "address", type: "address", indexed: true },
1692
+ {
1693
+ name: "amount",
1694
+ internalType: "uint256",
1695
+ type: "uint256",
1696
+ indexed: false
1697
+ },
1698
+ { name: "force", internalType: "bool", type: "bool", indexed: false },
1699
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
1700
+ ],
1701
+ name: "Transfer"
1702
+ },
1703
+ { type: "fallback", stateMutability: "payable" },
1704
+ {
1705
+ type: "function",
1706
+ inputs: [
1707
+ { name: "operator", internalType: "address", type: "address" },
1708
+ { name: "amount", internalType: "uint256", type: "uint256" },
1709
+ {
1710
+ name: "operatorNotificationData",
1711
+ internalType: "bytes",
1712
+ type: "bytes"
1713
+ }
1714
+ ],
1715
+ name: "authorizeOperator",
1716
+ outputs: [],
1717
+ stateMutability: "nonpayable"
1718
+ },
1719
+ {
1720
+ type: "function",
1721
+ inputs: [
1722
+ { name: "operator", internalType: "address", type: "address" },
1723
+ { name: "tokenOwner", internalType: "address", type: "address" }
1724
+ ],
1725
+ name: "authorizedAmountFor",
1726
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1727
+ stateMutability: "view"
1728
+ },
1729
+ {
1730
+ type: "function",
1731
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
1732
+ name: "balanceOf",
1733
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1734
+ stateMutability: "view"
1735
+ },
1736
+ {
1737
+ type: "function",
1738
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
1739
+ name: "batchCalls",
1740
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
1741
+ stateMutability: "nonpayable"
1742
+ },
1743
+ {
1744
+ type: "function",
1745
+ inputs: [],
1746
+ name: "decimals",
1747
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
1748
+ stateMutability: "view"
1749
+ },
1750
+ {
1751
+ type: "function",
1752
+ inputs: [
1753
+ { name: "operator", internalType: "address", type: "address" },
1754
+ { name: "tokenOwner", internalType: "address", type: "address" },
1755
+ { name: "subtractedAmount", internalType: "uint256", type: "uint256" },
1756
+ {
1757
+ name: "operatorNotificationData",
1758
+ internalType: "bytes",
1759
+ type: "bytes"
1760
+ }
1761
+ ],
1762
+ name: "decreaseAllowance",
1763
+ outputs: [],
1764
+ stateMutability: "nonpayable"
1765
+ },
1766
+ {
1767
+ type: "function",
1768
+ inputs: [{ name: "dataKey", internalType: "bytes32", type: "bytes32" }],
1769
+ name: "getData",
1770
+ outputs: [{ name: "dataValue", internalType: "bytes", type: "bytes" }],
1771
+ stateMutability: "view"
1772
+ },
1773
+ {
1774
+ type: "function",
1775
+ inputs: [
1776
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" }
1777
+ ],
1778
+ name: "getDataBatch",
1779
+ outputs: [{ name: "dataValues", internalType: "bytes[]", type: "bytes[]" }],
1780
+ stateMutability: "view"
1781
+ },
1782
+ {
1783
+ type: "function",
1784
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
1785
+ name: "getOperatorsOf",
1786
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
1787
+ stateMutability: "view"
1788
+ },
1789
+ {
1790
+ type: "function",
1791
+ inputs: [
1792
+ { name: "operator", internalType: "address", type: "address" },
1793
+ { name: "addedAmount", internalType: "uint256", type: "uint256" },
1794
+ {
1795
+ name: "operatorNotificationData",
1796
+ internalType: "bytes",
1797
+ type: "bytes"
1798
+ }
1799
+ ],
1800
+ name: "increaseAllowance",
1801
+ outputs: [],
1802
+ stateMutability: "nonpayable"
1803
+ },
1804
+ {
1805
+ type: "function",
1806
+ inputs: [],
1807
+ name: "owner",
1808
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1809
+ stateMutability: "view"
1810
+ },
1811
+ {
1812
+ type: "function",
1813
+ inputs: [],
1814
+ name: "renounceOwnership",
1815
+ outputs: [],
1816
+ stateMutability: "nonpayable"
1817
+ },
1818
+ {
1819
+ type: "function",
1820
+ inputs: [
1821
+ { name: "operator", internalType: "address", type: "address" },
1822
+ { name: "tokenOwner", internalType: "address", type: "address" },
1823
+ { name: "notify", internalType: "bool", type: "bool" },
1824
+ {
1825
+ name: "operatorNotificationData",
1826
+ internalType: "bytes",
1827
+ type: "bytes"
1828
+ }
1829
+ ],
1830
+ name: "revokeOperator",
1831
+ outputs: [],
1832
+ stateMutability: "nonpayable"
1833
+ },
1834
+ {
1835
+ type: "function",
1836
+ inputs: [
1837
+ { name: "dataKey", internalType: "bytes32", type: "bytes32" },
1838
+ { name: "dataValue", internalType: "bytes", type: "bytes" }
1839
+ ],
1840
+ name: "setData",
1841
+ outputs: [],
1842
+ stateMutability: "payable"
1843
+ },
1844
+ {
1845
+ type: "function",
1846
+ inputs: [
1847
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" },
1848
+ { name: "dataValues", internalType: "bytes[]", type: "bytes[]" }
1849
+ ],
1850
+ name: "setDataBatch",
1851
+ outputs: [],
1852
+ stateMutability: "payable"
1853
+ },
1854
+ {
1855
+ type: "function",
1856
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
1857
+ name: "supportsInterface",
1858
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1859
+ stateMutability: "view"
1860
+ },
1861
+ {
1862
+ type: "function",
1863
+ inputs: [],
1864
+ name: "tokenSupplyCap",
1865
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1866
+ stateMutability: "view"
1867
+ },
1868
+ {
1869
+ type: "function",
1870
+ inputs: [],
1871
+ name: "totalSupply",
1872
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1873
+ stateMutability: "view"
1874
+ },
1875
+ {
1876
+ type: "function",
1877
+ inputs: [
1878
+ { name: "from", internalType: "address", type: "address" },
1879
+ { name: "to", internalType: "address", type: "address" },
1880
+ { name: "amount", internalType: "uint256", type: "uint256" },
1881
+ { name: "force", internalType: "bool", type: "bool" },
1882
+ { name: "data", internalType: "bytes", type: "bytes" }
1883
+ ],
1884
+ name: "transfer",
1885
+ outputs: [],
1886
+ stateMutability: "nonpayable"
1887
+ },
1888
+ {
1889
+ type: "function",
1890
+ inputs: [
1891
+ { name: "from", internalType: "address[]", type: "address[]" },
1892
+ { name: "to", internalType: "address[]", type: "address[]" },
1893
+ { name: "amount", internalType: "uint256[]", type: "uint256[]" },
1894
+ { name: "force", internalType: "bool[]", type: "bool[]" },
1895
+ { name: "data", internalType: "bytes[]", type: "bytes[]" }
1896
+ ],
1897
+ name: "transferBatch",
1898
+ outputs: [],
1899
+ stateMutability: "nonpayable"
1900
+ },
1901
+ {
1902
+ type: "function",
1903
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
1904
+ name: "transferOwnership",
1905
+ outputs: [],
1906
+ stateMutability: "nonpayable"
1907
+ },
1908
+ { type: "receive", stateMutability: "payable" }
1909
+ ];
1910
+ const lsp7DigitalAssetAbi = [
1911
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesEmptyArray" },
1912
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesLengthMismatch" },
1913
+ { type: "error", inputs: [], name: "ERC725Y_MsgValueDisallowed" },
1914
+ {
1915
+ type: "error",
1916
+ inputs: [{ name: "storedData", internalType: "bytes", type: "bytes" }],
1917
+ name: "InvalidExtensionAddress"
1918
+ },
1919
+ {
1920
+ type: "error",
1921
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
1922
+ name: "InvalidFunctionSelector"
1923
+ },
1924
+ { type: "error", inputs: [], name: "LSP4TokenNameNotEditable" },
1925
+ { type: "error", inputs: [], name: "LSP4TokenSymbolNotEditable" },
1926
+ { type: "error", inputs: [], name: "LSP4TokenTypeNotEditable" },
1927
+ {
1928
+ type: "error",
1929
+ inputs: [
1930
+ { name: "tokenOwner", internalType: "address", type: "address" },
1931
+ { name: "authorizedAmount", internalType: "uint256", type: "uint256" },
1932
+ { name: "operator", internalType: "address", type: "address" },
1933
+ { name: "amount", internalType: "uint256", type: "uint256" }
1934
+ ],
1935
+ name: "LSP7AmountExceedsAuthorizedAmount"
1936
+ },
1937
+ {
1938
+ type: "error",
1939
+ inputs: [
1940
+ { name: "balance", internalType: "uint256", type: "uint256" },
1941
+ { name: "tokenOwner", internalType: "address", type: "address" },
1942
+ { name: "amount", internalType: "uint256", type: "uint256" }
1943
+ ],
1944
+ name: "LSP7AmountExceedsBalance"
1945
+ },
1946
+ {
1947
+ type: "error",
1948
+ inputs: [{ name: "callIndex", internalType: "uint256", type: "uint256" }],
1949
+ name: "LSP7BatchCallFailed"
1950
+ },
1951
+ { type: "error", inputs: [], name: "LSP7CannotSendWithAddressZero" },
1952
+ { type: "error", inputs: [], name: "LSP7CannotUseAddressZeroAsOperator" },
1953
+ {
1954
+ type: "error",
1955
+ inputs: [
1956
+ { name: "caller", internalType: "address", type: "address" },
1957
+ { name: "tokenOwner", internalType: "address", type: "address" },
1958
+ { name: "operator", internalType: "address", type: "address" }
1959
+ ],
1960
+ name: "LSP7DecreaseAllowanceNotAuthorized"
1961
+ },
1962
+ { type: "error", inputs: [], name: "LSP7DecreasedAllowanceBelowZero" },
1963
+ { type: "error", inputs: [], name: "LSP7InvalidTransferBatch" },
1964
+ {
1965
+ type: "error",
1966
+ inputs: [
1967
+ { name: "tokenReceiver", internalType: "address", type: "address" }
1968
+ ],
1969
+ name: "LSP7NotifyTokenReceiverContractMissingLSP1Interface"
1970
+ },
1971
+ {
1972
+ type: "error",
1973
+ inputs: [
1974
+ { name: "tokenReceiver", internalType: "address", type: "address" }
1975
+ ],
1976
+ name: "LSP7NotifyTokenReceiverIsEOA"
1977
+ },
1978
+ {
1979
+ type: "error",
1980
+ inputs: [
1981
+ { name: "caller", internalType: "address", type: "address" },
1982
+ { name: "tokenOwner", internalType: "address", type: "address" },
1983
+ { name: "operator", internalType: "address", type: "address" }
1984
+ ],
1985
+ name: "LSP7RevokeOperatorNotAuthorized"
1986
+ },
1987
+ { type: "error", inputs: [], name: "LSP7TokenContractCannotHoldValue" },
1988
+ { type: "error", inputs: [], name: "LSP7TokenOwnerCannotBeOperator" },
1989
+ {
1990
+ type: "error",
1991
+ inputs: [
1992
+ { name: "functionSelector", internalType: "bytes4", type: "bytes4" }
1993
+ ],
1994
+ name: "NoExtensionFoundForFunctionSelector"
1995
+ },
1996
+ {
1997
+ type: "error",
1998
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
1999
+ name: "OperatorAllowanceCannotBeIncreasedFromZero"
2000
+ },
2001
+ { type: "error", inputs: [], name: "OwnableCannotSetZeroAddressAsOwner" },
2002
+ {
2003
+ type: "event",
2004
+ anonymous: false,
2005
+ inputs: [
2006
+ {
2007
+ name: "dataKey",
2008
+ internalType: "bytes32",
2009
+ type: "bytes32",
2010
+ indexed: true
2011
+ },
2012
+ {
2013
+ name: "dataValue",
2014
+ internalType: "bytes",
2015
+ type: "bytes",
2016
+ indexed: false
2017
+ }
2018
+ ],
2019
+ name: "DataChanged"
2020
+ },
2021
+ {
2022
+ type: "event",
2023
+ anonymous: false,
2024
+ inputs: [
2025
+ {
2026
+ name: "operator",
2027
+ internalType: "address",
2028
+ type: "address",
2029
+ indexed: true
2030
+ },
2031
+ {
2032
+ name: "tokenOwner",
2033
+ internalType: "address",
2034
+ type: "address",
2035
+ indexed: true
2036
+ },
2037
+ {
2038
+ name: "amount",
2039
+ internalType: "uint256",
2040
+ type: "uint256",
2041
+ indexed: true
2042
+ },
2043
+ {
2044
+ name: "operatorNotificationData",
2045
+ internalType: "bytes",
2046
+ type: "bytes",
2047
+ indexed: false
2048
+ }
2049
+ ],
2050
+ name: "OperatorAuthorizationChanged"
2051
+ },
2052
+ {
2053
+ type: "event",
2054
+ anonymous: false,
2055
+ inputs: [
2056
+ {
2057
+ name: "operator",
2058
+ internalType: "address",
2059
+ type: "address",
2060
+ indexed: true
2061
+ },
2062
+ {
2063
+ name: "tokenOwner",
2064
+ internalType: "address",
2065
+ type: "address",
2066
+ indexed: true
2067
+ },
2068
+ { name: "notified", internalType: "bool", type: "bool", indexed: true },
2069
+ {
2070
+ name: "operatorNotificationData",
2071
+ internalType: "bytes",
2072
+ type: "bytes",
2073
+ indexed: false
2074
+ }
2075
+ ],
2076
+ name: "OperatorRevoked"
2077
+ },
2078
+ {
2079
+ type: "event",
2080
+ anonymous: false,
2081
+ inputs: [
2082
+ {
2083
+ name: "previousOwner",
2084
+ internalType: "address",
2085
+ type: "address",
2086
+ indexed: true
2087
+ },
2088
+ {
2089
+ name: "newOwner",
2090
+ internalType: "address",
2091
+ type: "address",
2092
+ indexed: true
2093
+ }
2094
+ ],
2095
+ name: "OwnershipTransferred"
2096
+ },
2097
+ {
2098
+ type: "event",
2099
+ anonymous: false,
2100
+ inputs: [
2101
+ {
2102
+ name: "operator",
2103
+ internalType: "address",
2104
+ type: "address",
2105
+ indexed: true
2106
+ },
2107
+ { name: "from", internalType: "address", type: "address", indexed: true },
2108
+ { name: "to", internalType: "address", type: "address", indexed: true },
2109
+ {
2110
+ name: "amount",
2111
+ internalType: "uint256",
2112
+ type: "uint256",
2113
+ indexed: false
2114
+ },
2115
+ { name: "force", internalType: "bool", type: "bool", indexed: false },
2116
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
2117
+ ],
2118
+ name: "Transfer"
2119
+ },
2120
+ { type: "fallback", stateMutability: "payable" },
2121
+ {
2122
+ type: "function",
2123
+ inputs: [
2124
+ { name: "operator", internalType: "address", type: "address" },
2125
+ { name: "amount", internalType: "uint256", type: "uint256" },
2126
+ {
2127
+ name: "operatorNotificationData",
2128
+ internalType: "bytes",
2129
+ type: "bytes"
2130
+ }
2131
+ ],
2132
+ name: "authorizeOperator",
2133
+ outputs: [],
2134
+ stateMutability: "nonpayable"
2135
+ },
2136
+ {
2137
+ type: "function",
2138
+ inputs: [
2139
+ { name: "operator", internalType: "address", type: "address" },
2140
+ { name: "tokenOwner", internalType: "address", type: "address" }
2141
+ ],
2142
+ name: "authorizedAmountFor",
2143
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2144
+ stateMutability: "view"
2145
+ },
2146
+ {
2147
+ type: "function",
2148
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
2149
+ name: "balanceOf",
2150
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2151
+ stateMutability: "view"
2152
+ },
2153
+ {
2154
+ type: "function",
2155
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
2156
+ name: "batchCalls",
2157
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
2158
+ stateMutability: "nonpayable"
2159
+ },
2160
+ {
2161
+ type: "function",
2162
+ inputs: [],
2163
+ name: "decimals",
2164
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
2165
+ stateMutability: "view"
2166
+ },
2167
+ {
2168
+ type: "function",
2169
+ inputs: [
2170
+ { name: "operator", internalType: "address", type: "address" },
2171
+ { name: "tokenOwner", internalType: "address", type: "address" },
2172
+ { name: "subtractedAmount", internalType: "uint256", type: "uint256" },
2173
+ {
2174
+ name: "operatorNotificationData",
2175
+ internalType: "bytes",
2176
+ type: "bytes"
2177
+ }
2178
+ ],
2179
+ name: "decreaseAllowance",
2180
+ outputs: [],
2181
+ stateMutability: "nonpayable"
2182
+ },
2183
+ {
2184
+ type: "function",
2185
+ inputs: [{ name: "dataKey", internalType: "bytes32", type: "bytes32" }],
2186
+ name: "getData",
2187
+ outputs: [{ name: "dataValue", internalType: "bytes", type: "bytes" }],
2188
+ stateMutability: "view"
2189
+ },
2190
+ {
2191
+ type: "function",
2192
+ inputs: [
2193
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" }
2194
+ ],
2195
+ name: "getDataBatch",
2196
+ outputs: [{ name: "dataValues", internalType: "bytes[]", type: "bytes[]" }],
2197
+ stateMutability: "view"
2198
+ },
2199
+ {
2200
+ type: "function",
2201
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
2202
+ name: "getOperatorsOf",
2203
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
2204
+ stateMutability: "view"
2205
+ },
2206
+ {
2207
+ type: "function",
2208
+ inputs: [
2209
+ { name: "operator", internalType: "address", type: "address" },
2210
+ { name: "addedAmount", internalType: "uint256", type: "uint256" },
2211
+ {
2212
+ name: "operatorNotificationData",
2213
+ internalType: "bytes",
2214
+ type: "bytes"
2215
+ }
2216
+ ],
2217
+ name: "increaseAllowance",
2218
+ outputs: [],
2219
+ stateMutability: "nonpayable"
2220
+ },
2221
+ {
2222
+ type: "function",
2223
+ inputs: [],
2224
+ name: "owner",
2225
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2226
+ stateMutability: "view"
2227
+ },
2228
+ {
2229
+ type: "function",
2230
+ inputs: [],
2231
+ name: "renounceOwnership",
2232
+ outputs: [],
2233
+ stateMutability: "nonpayable"
2234
+ },
2235
+ {
2236
+ type: "function",
2237
+ inputs: [
2238
+ { name: "operator", internalType: "address", type: "address" },
2239
+ { name: "tokenOwner", internalType: "address", type: "address" },
2240
+ { name: "notify", internalType: "bool", type: "bool" },
2241
+ {
2242
+ name: "operatorNotificationData",
2243
+ internalType: "bytes",
2244
+ type: "bytes"
2245
+ }
2246
+ ],
2247
+ name: "revokeOperator",
2248
+ outputs: [],
2249
+ stateMutability: "nonpayable"
2250
+ },
2251
+ {
2252
+ type: "function",
2253
+ inputs: [
2254
+ { name: "dataKey", internalType: "bytes32", type: "bytes32" },
2255
+ { name: "dataValue", internalType: "bytes", type: "bytes" }
2256
+ ],
2257
+ name: "setData",
2258
+ outputs: [],
2259
+ stateMutability: "payable"
2260
+ },
2261
+ {
2262
+ type: "function",
2263
+ inputs: [
2264
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" },
2265
+ { name: "dataValues", internalType: "bytes[]", type: "bytes[]" }
2266
+ ],
2267
+ name: "setDataBatch",
2268
+ outputs: [],
2269
+ stateMutability: "payable"
2270
+ },
2271
+ {
2272
+ type: "function",
2273
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
2274
+ name: "supportsInterface",
2275
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2276
+ stateMutability: "view"
2277
+ },
2278
+ {
2279
+ type: "function",
2280
+ inputs: [],
2281
+ name: "totalSupply",
2282
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2283
+ stateMutability: "view"
2284
+ },
2285
+ {
2286
+ type: "function",
2287
+ inputs: [
2288
+ { name: "from", internalType: "address", type: "address" },
2289
+ { name: "to", internalType: "address", type: "address" },
2290
+ { name: "amount", internalType: "uint256", type: "uint256" },
2291
+ { name: "force", internalType: "bool", type: "bool" },
2292
+ { name: "data", internalType: "bytes", type: "bytes" }
2293
+ ],
2294
+ name: "transfer",
2295
+ outputs: [],
2296
+ stateMutability: "nonpayable"
2297
+ },
2298
+ {
2299
+ type: "function",
2300
+ inputs: [
2301
+ { name: "from", internalType: "address[]", type: "address[]" },
2302
+ { name: "to", internalType: "address[]", type: "address[]" },
2303
+ { name: "amount", internalType: "uint256[]", type: "uint256[]" },
2304
+ { name: "force", internalType: "bool[]", type: "bool[]" },
2305
+ { name: "data", internalType: "bytes[]", type: "bytes[]" }
2306
+ ],
2307
+ name: "transferBatch",
2308
+ outputs: [],
2309
+ stateMutability: "nonpayable"
2310
+ },
2311
+ {
2312
+ type: "function",
2313
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
2314
+ name: "transferOwnership",
2315
+ outputs: [],
2316
+ stateMutability: "nonpayable"
2317
+ },
2318
+ { type: "receive", stateMutability: "payable" }
2319
+ ];
2320
+ const lsp7DigitalAssetInitAbstractAbi = [
2321
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesEmptyArray" },
2322
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesLengthMismatch" },
2323
+ { type: "error", inputs: [], name: "ERC725Y_MsgValueDisallowed" },
2324
+ {
2325
+ type: "error",
2326
+ inputs: [{ name: "storedData", internalType: "bytes", type: "bytes" }],
2327
+ name: "InvalidExtensionAddress"
2328
+ },
2329
+ {
2330
+ type: "error",
2331
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
2332
+ name: "InvalidFunctionSelector"
2333
+ },
2334
+ { type: "error", inputs: [], name: "LSP4TokenNameNotEditable" },
2335
+ { type: "error", inputs: [], name: "LSP4TokenSymbolNotEditable" },
2336
+ { type: "error", inputs: [], name: "LSP4TokenTypeNotEditable" },
2337
+ {
2338
+ type: "error",
2339
+ inputs: [
2340
+ { name: "tokenOwner", internalType: "address", type: "address" },
2341
+ { name: "authorizedAmount", internalType: "uint256", type: "uint256" },
2342
+ { name: "operator", internalType: "address", type: "address" },
2343
+ { name: "amount", internalType: "uint256", type: "uint256" }
2344
+ ],
2345
+ name: "LSP7AmountExceedsAuthorizedAmount"
2346
+ },
2347
+ {
2348
+ type: "error",
2349
+ inputs: [
2350
+ { name: "balance", internalType: "uint256", type: "uint256" },
2351
+ { name: "tokenOwner", internalType: "address", type: "address" },
2352
+ { name: "amount", internalType: "uint256", type: "uint256" }
2353
+ ],
2354
+ name: "LSP7AmountExceedsBalance"
2355
+ },
2356
+ {
2357
+ type: "error",
2358
+ inputs: [{ name: "callIndex", internalType: "uint256", type: "uint256" }],
2359
+ name: "LSP7BatchCallFailed"
2360
+ },
2361
+ { type: "error", inputs: [], name: "LSP7CannotSendWithAddressZero" },
2362
+ { type: "error", inputs: [], name: "LSP7CannotUseAddressZeroAsOperator" },
2363
+ {
2364
+ type: "error",
2365
+ inputs: [
2366
+ { name: "caller", internalType: "address", type: "address" },
2367
+ { name: "tokenOwner", internalType: "address", type: "address" },
2368
+ { name: "operator", internalType: "address", type: "address" }
2369
+ ],
2370
+ name: "LSP7DecreaseAllowanceNotAuthorized"
2371
+ },
2372
+ { type: "error", inputs: [], name: "LSP7DecreasedAllowanceBelowZero" },
2373
+ { type: "error", inputs: [], name: "LSP7InvalidTransferBatch" },
2374
+ {
2375
+ type: "error",
2376
+ inputs: [
2377
+ { name: "tokenReceiver", internalType: "address", type: "address" }
2378
+ ],
2379
+ name: "LSP7NotifyTokenReceiverContractMissingLSP1Interface"
2380
+ },
2381
+ {
2382
+ type: "error",
2383
+ inputs: [
2384
+ { name: "tokenReceiver", internalType: "address", type: "address" }
2385
+ ],
2386
+ name: "LSP7NotifyTokenReceiverIsEOA"
2387
+ },
2388
+ {
2389
+ type: "error",
2390
+ inputs: [
2391
+ { name: "caller", internalType: "address", type: "address" },
2392
+ { name: "tokenOwner", internalType: "address", type: "address" },
2393
+ { name: "operator", internalType: "address", type: "address" }
2394
+ ],
2395
+ name: "LSP7RevokeOperatorNotAuthorized"
2396
+ },
2397
+ { type: "error", inputs: [], name: "LSP7TokenContractCannotHoldValue" },
2398
+ { type: "error", inputs: [], name: "LSP7TokenOwnerCannotBeOperator" },
2399
+ {
2400
+ type: "error",
2401
+ inputs: [
2402
+ { name: "functionSelector", internalType: "bytes4", type: "bytes4" }
2403
+ ],
2404
+ name: "NoExtensionFoundForFunctionSelector"
2405
+ },
2406
+ {
2407
+ type: "error",
2408
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
2409
+ name: "OperatorAllowanceCannotBeIncreasedFromZero"
2410
+ },
2411
+ {
2412
+ type: "event",
2413
+ anonymous: false,
2414
+ inputs: [
2415
+ {
2416
+ name: "dataKey",
2417
+ internalType: "bytes32",
2418
+ type: "bytes32",
2419
+ indexed: true
2420
+ },
2421
+ {
2422
+ name: "dataValue",
2423
+ internalType: "bytes",
2424
+ type: "bytes",
2425
+ indexed: false
2426
+ }
2427
+ ],
2428
+ name: "DataChanged"
2429
+ },
2430
+ {
2431
+ type: "event",
2432
+ anonymous: false,
2433
+ inputs: [
2434
+ { name: "version", internalType: "uint8", type: "uint8", indexed: false }
2435
+ ],
2436
+ name: "Initialized"
2437
+ },
2438
+ {
2439
+ type: "event",
2440
+ anonymous: false,
2441
+ inputs: [
2442
+ {
2443
+ name: "operator",
2444
+ internalType: "address",
2445
+ type: "address",
2446
+ indexed: true
2447
+ },
2448
+ {
2449
+ name: "tokenOwner",
2450
+ internalType: "address",
2451
+ type: "address",
2452
+ indexed: true
2453
+ },
2454
+ {
2455
+ name: "amount",
2456
+ internalType: "uint256",
2457
+ type: "uint256",
2458
+ indexed: true
2459
+ },
2460
+ {
2461
+ name: "operatorNotificationData",
2462
+ internalType: "bytes",
2463
+ type: "bytes",
2464
+ indexed: false
2465
+ }
2466
+ ],
2467
+ name: "OperatorAuthorizationChanged"
2468
+ },
2469
+ {
2470
+ type: "event",
2471
+ anonymous: false,
2472
+ inputs: [
2473
+ {
2474
+ name: "operator",
2475
+ internalType: "address",
2476
+ type: "address",
2477
+ indexed: true
2478
+ },
2479
+ {
2480
+ name: "tokenOwner",
2481
+ internalType: "address",
2482
+ type: "address",
2483
+ indexed: true
2484
+ },
2485
+ { name: "notified", internalType: "bool", type: "bool", indexed: true },
2486
+ {
2487
+ name: "operatorNotificationData",
2488
+ internalType: "bytes",
2489
+ type: "bytes",
2490
+ indexed: false
2491
+ }
2492
+ ],
2493
+ name: "OperatorRevoked"
2494
+ },
2495
+ {
2496
+ type: "event",
2497
+ anonymous: false,
2498
+ inputs: [
2499
+ {
2500
+ name: "previousOwner",
2501
+ internalType: "address",
2502
+ type: "address",
2503
+ indexed: true
2504
+ },
2505
+ {
2506
+ name: "newOwner",
2507
+ internalType: "address",
2508
+ type: "address",
2509
+ indexed: true
2510
+ }
2511
+ ],
2512
+ name: "OwnershipTransferred"
2513
+ },
2514
+ {
2515
+ type: "event",
2516
+ anonymous: false,
2517
+ inputs: [
2518
+ {
2519
+ name: "operator",
2520
+ internalType: "address",
2521
+ type: "address",
2522
+ indexed: true
2523
+ },
2524
+ { name: "from", internalType: "address", type: "address", indexed: true },
2525
+ { name: "to", internalType: "address", type: "address", indexed: true },
2526
+ {
2527
+ name: "amount",
2528
+ internalType: "uint256",
2529
+ type: "uint256",
2530
+ indexed: false
2531
+ },
2532
+ { name: "force", internalType: "bool", type: "bool", indexed: false },
2533
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
2534
+ ],
2535
+ name: "Transfer"
2536
+ },
2537
+ { type: "fallback", stateMutability: "payable" },
2538
+ {
2539
+ type: "function",
2540
+ inputs: [
2541
+ { name: "operator", internalType: "address", type: "address" },
2542
+ { name: "amount", internalType: "uint256", type: "uint256" },
2543
+ {
2544
+ name: "operatorNotificationData",
2545
+ internalType: "bytes",
2546
+ type: "bytes"
2547
+ }
2548
+ ],
2549
+ name: "authorizeOperator",
2550
+ outputs: [],
2551
+ stateMutability: "nonpayable"
2552
+ },
2553
+ {
2554
+ type: "function",
2555
+ inputs: [
2556
+ { name: "operator", internalType: "address", type: "address" },
2557
+ { name: "tokenOwner", internalType: "address", type: "address" }
2558
+ ],
2559
+ name: "authorizedAmountFor",
2560
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2561
+ stateMutability: "view"
2562
+ },
2563
+ {
2564
+ type: "function",
2565
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
2566
+ name: "balanceOf",
2567
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2568
+ stateMutability: "view"
2569
+ },
2570
+ {
2571
+ type: "function",
2572
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
2573
+ name: "batchCalls",
2574
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
2575
+ stateMutability: "nonpayable"
2576
+ },
2577
+ {
2578
+ type: "function",
2579
+ inputs: [],
2580
+ name: "decimals",
2581
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
2582
+ stateMutability: "view"
2583
+ },
2584
+ {
2585
+ type: "function",
2586
+ inputs: [
2587
+ { name: "operator", internalType: "address", type: "address" },
2588
+ { name: "tokenOwner", internalType: "address", type: "address" },
2589
+ { name: "subtractedAmount", internalType: "uint256", type: "uint256" },
2590
+ {
2591
+ name: "operatorNotificationData",
2592
+ internalType: "bytes",
2593
+ type: "bytes"
2594
+ }
2595
+ ],
2596
+ name: "decreaseAllowance",
2597
+ outputs: [],
2598
+ stateMutability: "nonpayable"
2599
+ },
2600
+ {
2601
+ type: "function",
2602
+ inputs: [{ name: "dataKey", internalType: "bytes32", type: "bytes32" }],
2603
+ name: "getData",
2604
+ outputs: [{ name: "dataValue", internalType: "bytes", type: "bytes" }],
2605
+ stateMutability: "view"
2606
+ },
2607
+ {
2608
+ type: "function",
2609
+ inputs: [
2610
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" }
2611
+ ],
2612
+ name: "getDataBatch",
2613
+ outputs: [{ name: "dataValues", internalType: "bytes[]", type: "bytes[]" }],
2614
+ stateMutability: "view"
2615
+ },
2616
+ {
2617
+ type: "function",
2618
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
2619
+ name: "getOperatorsOf",
2620
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
2621
+ stateMutability: "view"
2622
+ },
2623
+ {
2624
+ type: "function",
2625
+ inputs: [
2626
+ { name: "operator", internalType: "address", type: "address" },
2627
+ { name: "addedAmount", internalType: "uint256", type: "uint256" },
2628
+ {
2629
+ name: "operatorNotificationData",
2630
+ internalType: "bytes",
2631
+ type: "bytes"
2632
+ }
2633
+ ],
2634
+ name: "increaseAllowance",
2635
+ outputs: [],
2636
+ stateMutability: "nonpayable"
2637
+ },
2638
+ {
2639
+ type: "function",
2640
+ inputs: [],
2641
+ name: "owner",
2642
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2643
+ stateMutability: "view"
2644
+ },
2645
+ {
2646
+ type: "function",
2647
+ inputs: [],
2648
+ name: "renounceOwnership",
2649
+ outputs: [],
2650
+ stateMutability: "nonpayable"
2651
+ },
2652
+ {
2653
+ type: "function",
2654
+ inputs: [
2655
+ { name: "operator", internalType: "address", type: "address" },
2656
+ { name: "tokenOwner", internalType: "address", type: "address" },
2657
+ { name: "notify", internalType: "bool", type: "bool" },
2658
+ {
2659
+ name: "operatorNotificationData",
2660
+ internalType: "bytes",
2661
+ type: "bytes"
2662
+ }
2663
+ ],
2664
+ name: "revokeOperator",
2665
+ outputs: [],
2666
+ stateMutability: "nonpayable"
2667
+ },
2668
+ {
2669
+ type: "function",
2670
+ inputs: [
2671
+ { name: "dataKey", internalType: "bytes32", type: "bytes32" },
2672
+ { name: "dataValue", internalType: "bytes", type: "bytes" }
2673
+ ],
2674
+ name: "setData",
2675
+ outputs: [],
2676
+ stateMutability: "payable"
2677
+ },
2678
+ {
2679
+ type: "function",
2680
+ inputs: [
2681
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" },
2682
+ { name: "dataValues", internalType: "bytes[]", type: "bytes[]" }
2683
+ ],
2684
+ name: "setDataBatch",
2685
+ outputs: [],
2686
+ stateMutability: "payable"
2687
+ },
2688
+ {
2689
+ type: "function",
2690
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
2691
+ name: "supportsInterface",
2692
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2693
+ stateMutability: "view"
2694
+ },
2695
+ {
2696
+ type: "function",
2697
+ inputs: [],
2698
+ name: "totalSupply",
2699
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2700
+ stateMutability: "view"
2701
+ },
2702
+ {
2703
+ type: "function",
2704
+ inputs: [
2705
+ { name: "from", internalType: "address", type: "address" },
2706
+ { name: "to", internalType: "address", type: "address" },
2707
+ { name: "amount", internalType: "uint256", type: "uint256" },
2708
+ { name: "force", internalType: "bool", type: "bool" },
2709
+ { name: "data", internalType: "bytes", type: "bytes" }
2710
+ ],
2711
+ name: "transfer",
2712
+ outputs: [],
2713
+ stateMutability: "nonpayable"
2714
+ },
2715
+ {
2716
+ type: "function",
2717
+ inputs: [
2718
+ { name: "from", internalType: "address[]", type: "address[]" },
2719
+ { name: "to", internalType: "address[]", type: "address[]" },
2720
+ { name: "amount", internalType: "uint256[]", type: "uint256[]" },
2721
+ { name: "force", internalType: "bool[]", type: "bool[]" },
2722
+ { name: "data", internalType: "bytes[]", type: "bytes[]" }
2723
+ ],
2724
+ name: "transferBatch",
2725
+ outputs: [],
2726
+ stateMutability: "nonpayable"
2727
+ },
2728
+ {
2729
+ type: "function",
2730
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
2731
+ name: "transferOwnership",
2732
+ outputs: [],
2733
+ stateMutability: "nonpayable"
2734
+ },
2735
+ { type: "receive", stateMutability: "payable" }
2736
+ ];
2737
+ const lsp7MintableAbi = [
2738
+ {
2739
+ type: "constructor",
2740
+ inputs: [
2741
+ { name: "name_", internalType: "string", type: "string" },
2742
+ { name: "symbol_", internalType: "string", type: "string" },
2743
+ { name: "newOwner_", internalType: "address", type: "address" },
2744
+ { name: "lsp4TokenType_", internalType: "uint256", type: "uint256" },
2745
+ { name: "isNonDivisible_", internalType: "bool", type: "bool" }
2746
+ ],
2747
+ stateMutability: "nonpayable"
2748
+ },
2749
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesEmptyArray" },
2750
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesLengthMismatch" },
2751
+ { type: "error", inputs: [], name: "ERC725Y_MsgValueDisallowed" },
2752
+ {
2753
+ type: "error",
2754
+ inputs: [{ name: "storedData", internalType: "bytes", type: "bytes" }],
2755
+ name: "InvalidExtensionAddress"
2756
+ },
2757
+ {
2758
+ type: "error",
2759
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
2760
+ name: "InvalidFunctionSelector"
2761
+ },
2762
+ { type: "error", inputs: [], name: "LSP4TokenNameNotEditable" },
2763
+ { type: "error", inputs: [], name: "LSP4TokenSymbolNotEditable" },
2764
+ { type: "error", inputs: [], name: "LSP4TokenTypeNotEditable" },
2765
+ {
2766
+ type: "error",
2767
+ inputs: [
2768
+ { name: "tokenOwner", internalType: "address", type: "address" },
2769
+ { name: "authorizedAmount", internalType: "uint256", type: "uint256" },
2770
+ { name: "operator", internalType: "address", type: "address" },
2771
+ { name: "amount", internalType: "uint256", type: "uint256" }
2772
+ ],
2773
+ name: "LSP7AmountExceedsAuthorizedAmount"
2774
+ },
2775
+ {
2776
+ type: "error",
2777
+ inputs: [
2778
+ { name: "balance", internalType: "uint256", type: "uint256" },
2779
+ { name: "tokenOwner", internalType: "address", type: "address" },
2780
+ { name: "amount", internalType: "uint256", type: "uint256" }
2781
+ ],
2782
+ name: "LSP7AmountExceedsBalance"
2783
+ },
2784
+ {
2785
+ type: "error",
2786
+ inputs: [{ name: "callIndex", internalType: "uint256", type: "uint256" }],
2787
+ name: "LSP7BatchCallFailed"
2788
+ },
2789
+ { type: "error", inputs: [], name: "LSP7CannotSendWithAddressZero" },
2790
+ { type: "error", inputs: [], name: "LSP7CannotUseAddressZeroAsOperator" },
2791
+ {
2792
+ type: "error",
2793
+ inputs: [
2794
+ { name: "caller", internalType: "address", type: "address" },
2795
+ { name: "tokenOwner", internalType: "address", type: "address" },
2796
+ { name: "operator", internalType: "address", type: "address" }
2797
+ ],
2798
+ name: "LSP7DecreaseAllowanceNotAuthorized"
2799
+ },
2800
+ { type: "error", inputs: [], name: "LSP7DecreasedAllowanceBelowZero" },
2801
+ { type: "error", inputs: [], name: "LSP7InvalidTransferBatch" },
2802
+ {
2803
+ type: "error",
2804
+ inputs: [
2805
+ { name: "tokenReceiver", internalType: "address", type: "address" }
2806
+ ],
2807
+ name: "LSP7NotifyTokenReceiverContractMissingLSP1Interface"
2808
+ },
2809
+ {
2810
+ type: "error",
2811
+ inputs: [
2812
+ { name: "tokenReceiver", internalType: "address", type: "address" }
2813
+ ],
2814
+ name: "LSP7NotifyTokenReceiverIsEOA"
2815
+ },
2816
+ {
2817
+ type: "error",
2818
+ inputs: [
2819
+ { name: "caller", internalType: "address", type: "address" },
2820
+ { name: "tokenOwner", internalType: "address", type: "address" },
2821
+ { name: "operator", internalType: "address", type: "address" }
2822
+ ],
2823
+ name: "LSP7RevokeOperatorNotAuthorized"
2824
+ },
2825
+ { type: "error", inputs: [], name: "LSP7TokenContractCannotHoldValue" },
2826
+ { type: "error", inputs: [], name: "LSP7TokenOwnerCannotBeOperator" },
2827
+ {
2828
+ type: "error",
2829
+ inputs: [
2830
+ { name: "functionSelector", internalType: "bytes4", type: "bytes4" }
2831
+ ],
2832
+ name: "NoExtensionFoundForFunctionSelector"
2833
+ },
2834
+ {
2835
+ type: "error",
2836
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
2837
+ name: "OperatorAllowanceCannotBeIncreasedFromZero"
2838
+ },
2839
+ { type: "error", inputs: [], name: "OwnableCannotSetZeroAddressAsOwner" },
2840
+ {
2841
+ type: "event",
2842
+ anonymous: false,
2843
+ inputs: [
2844
+ {
2845
+ name: "dataKey",
2846
+ internalType: "bytes32",
2847
+ type: "bytes32",
2848
+ indexed: true
2849
+ },
2850
+ {
2851
+ name: "dataValue",
2852
+ internalType: "bytes",
2853
+ type: "bytes",
2854
+ indexed: false
2855
+ }
2856
+ ],
2857
+ name: "DataChanged"
2858
+ },
2859
+ {
2860
+ type: "event",
2861
+ anonymous: false,
2862
+ inputs: [
2863
+ {
2864
+ name: "operator",
2865
+ internalType: "address",
2866
+ type: "address",
2867
+ indexed: true
2868
+ },
2869
+ {
2870
+ name: "tokenOwner",
2871
+ internalType: "address",
2872
+ type: "address",
2873
+ indexed: true
2874
+ },
2875
+ {
2876
+ name: "amount",
2877
+ internalType: "uint256",
2878
+ type: "uint256",
2879
+ indexed: true
2880
+ },
2881
+ {
2882
+ name: "operatorNotificationData",
2883
+ internalType: "bytes",
2884
+ type: "bytes",
2885
+ indexed: false
2886
+ }
2887
+ ],
2888
+ name: "OperatorAuthorizationChanged"
2889
+ },
2890
+ {
2891
+ type: "event",
2892
+ anonymous: false,
2893
+ inputs: [
2894
+ {
2895
+ name: "operator",
2896
+ internalType: "address",
2897
+ type: "address",
2898
+ indexed: true
2899
+ },
2900
+ {
2901
+ name: "tokenOwner",
2902
+ internalType: "address",
2903
+ type: "address",
2904
+ indexed: true
2905
+ },
2906
+ { name: "notified", internalType: "bool", type: "bool", indexed: true },
2907
+ {
2908
+ name: "operatorNotificationData",
2909
+ internalType: "bytes",
2910
+ type: "bytes",
2911
+ indexed: false
2912
+ }
2913
+ ],
2914
+ name: "OperatorRevoked"
2915
+ },
2916
+ {
2917
+ type: "event",
2918
+ anonymous: false,
2919
+ inputs: [
2920
+ {
2921
+ name: "previousOwner",
2922
+ internalType: "address",
2923
+ type: "address",
2924
+ indexed: true
2925
+ },
2926
+ {
2927
+ name: "newOwner",
2928
+ internalType: "address",
2929
+ type: "address",
2930
+ indexed: true
2931
+ }
2932
+ ],
2933
+ name: "OwnershipTransferred"
2934
+ },
2935
+ {
2936
+ type: "event",
2937
+ anonymous: false,
2938
+ inputs: [
2939
+ {
2940
+ name: "operator",
2941
+ internalType: "address",
2942
+ type: "address",
2943
+ indexed: true
2944
+ },
2945
+ { name: "from", internalType: "address", type: "address", indexed: true },
2946
+ { name: "to", internalType: "address", type: "address", indexed: true },
2947
+ {
2948
+ name: "amount",
2949
+ internalType: "uint256",
2950
+ type: "uint256",
2951
+ indexed: false
2952
+ },
2953
+ { name: "force", internalType: "bool", type: "bool", indexed: false },
2954
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
2955
+ ],
2956
+ name: "Transfer"
2957
+ },
2958
+ { type: "fallback", stateMutability: "payable" },
2959
+ {
2960
+ type: "function",
2961
+ inputs: [
2962
+ { name: "operator", internalType: "address", type: "address" },
2963
+ { name: "amount", internalType: "uint256", type: "uint256" },
2964
+ {
2965
+ name: "operatorNotificationData",
2966
+ internalType: "bytes",
2967
+ type: "bytes"
2968
+ }
2969
+ ],
2970
+ name: "authorizeOperator",
2971
+ outputs: [],
2972
+ stateMutability: "nonpayable"
2973
+ },
2974
+ {
2975
+ type: "function",
2976
+ inputs: [
2977
+ { name: "operator", internalType: "address", type: "address" },
2978
+ { name: "tokenOwner", internalType: "address", type: "address" }
2979
+ ],
2980
+ name: "authorizedAmountFor",
2981
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2982
+ stateMutability: "view"
2983
+ },
2984
+ {
2985
+ type: "function",
2986
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
2987
+ name: "balanceOf",
2988
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2989
+ stateMutability: "view"
2990
+ },
2991
+ {
2992
+ type: "function",
2993
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
2994
+ name: "batchCalls",
2995
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
2996
+ stateMutability: "nonpayable"
2997
+ },
2998
+ {
2999
+ type: "function",
3000
+ inputs: [],
3001
+ name: "decimals",
3002
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
3003
+ stateMutability: "view"
3004
+ },
3005
+ {
3006
+ type: "function",
3007
+ inputs: [
3008
+ { name: "operator", internalType: "address", type: "address" },
3009
+ { name: "tokenOwner", internalType: "address", type: "address" },
3010
+ { name: "subtractedAmount", internalType: "uint256", type: "uint256" },
3011
+ {
3012
+ name: "operatorNotificationData",
3013
+ internalType: "bytes",
3014
+ type: "bytes"
3015
+ }
3016
+ ],
3017
+ name: "decreaseAllowance",
3018
+ outputs: [],
3019
+ stateMutability: "nonpayable"
3020
+ },
3021
+ {
3022
+ type: "function",
3023
+ inputs: [{ name: "dataKey", internalType: "bytes32", type: "bytes32" }],
3024
+ name: "getData",
3025
+ outputs: [{ name: "dataValue", internalType: "bytes", type: "bytes" }],
3026
+ stateMutability: "view"
3027
+ },
3028
+ {
3029
+ type: "function",
3030
+ inputs: [
3031
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" }
3032
+ ],
3033
+ name: "getDataBatch",
3034
+ outputs: [{ name: "dataValues", internalType: "bytes[]", type: "bytes[]" }],
3035
+ stateMutability: "view"
3036
+ },
3037
+ {
3038
+ type: "function",
3039
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
3040
+ name: "getOperatorsOf",
3041
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
3042
+ stateMutability: "view"
3043
+ },
3044
+ {
3045
+ type: "function",
3046
+ inputs: [
3047
+ { name: "operator", internalType: "address", type: "address" },
3048
+ { name: "addedAmount", internalType: "uint256", type: "uint256" },
3049
+ {
3050
+ name: "operatorNotificationData",
3051
+ internalType: "bytes",
3052
+ type: "bytes"
3053
+ }
3054
+ ],
3055
+ name: "increaseAllowance",
3056
+ outputs: [],
3057
+ stateMutability: "nonpayable"
3058
+ },
3059
+ {
3060
+ type: "function",
3061
+ inputs: [
3062
+ { name: "to", internalType: "address", type: "address" },
3063
+ { name: "amount", internalType: "uint256", type: "uint256" },
3064
+ { name: "force", internalType: "bool", type: "bool" },
3065
+ { name: "data", internalType: "bytes", type: "bytes" }
3066
+ ],
3067
+ name: "mint",
3068
+ outputs: [],
3069
+ stateMutability: "nonpayable"
3070
+ },
3071
+ {
3072
+ type: "function",
3073
+ inputs: [],
3074
+ name: "owner",
3075
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3076
+ stateMutability: "view"
3077
+ },
3078
+ {
3079
+ type: "function",
3080
+ inputs: [],
3081
+ name: "renounceOwnership",
3082
+ outputs: [],
3083
+ stateMutability: "nonpayable"
3084
+ },
3085
+ {
3086
+ type: "function",
3087
+ inputs: [
3088
+ { name: "operator", internalType: "address", type: "address" },
3089
+ { name: "tokenOwner", internalType: "address", type: "address" },
3090
+ { name: "notify", internalType: "bool", type: "bool" },
3091
+ {
3092
+ name: "operatorNotificationData",
3093
+ internalType: "bytes",
3094
+ type: "bytes"
3095
+ }
3096
+ ],
3097
+ name: "revokeOperator",
3098
+ outputs: [],
3099
+ stateMutability: "nonpayable"
3100
+ },
3101
+ {
3102
+ type: "function",
3103
+ inputs: [
3104
+ { name: "dataKey", internalType: "bytes32", type: "bytes32" },
3105
+ { name: "dataValue", internalType: "bytes", type: "bytes" }
3106
+ ],
3107
+ name: "setData",
3108
+ outputs: [],
3109
+ stateMutability: "payable"
3110
+ },
3111
+ {
3112
+ type: "function",
3113
+ inputs: [
3114
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" },
3115
+ { name: "dataValues", internalType: "bytes[]", type: "bytes[]" }
3116
+ ],
3117
+ name: "setDataBatch",
3118
+ outputs: [],
3119
+ stateMutability: "payable"
3120
+ },
3121
+ {
3122
+ type: "function",
3123
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
3124
+ name: "supportsInterface",
3125
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3126
+ stateMutability: "view"
3127
+ },
3128
+ {
3129
+ type: "function",
3130
+ inputs: [],
3131
+ name: "totalSupply",
3132
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3133
+ stateMutability: "view"
3134
+ },
3135
+ {
3136
+ type: "function",
3137
+ inputs: [
3138
+ { name: "from", internalType: "address", type: "address" },
3139
+ { name: "to", internalType: "address", type: "address" },
3140
+ { name: "amount", internalType: "uint256", type: "uint256" },
3141
+ { name: "force", internalType: "bool", type: "bool" },
3142
+ { name: "data", internalType: "bytes", type: "bytes" }
3143
+ ],
3144
+ name: "transfer",
3145
+ outputs: [],
3146
+ stateMutability: "nonpayable"
3147
+ },
3148
+ {
3149
+ type: "function",
3150
+ inputs: [
3151
+ { name: "from", internalType: "address[]", type: "address[]" },
3152
+ { name: "to", internalType: "address[]", type: "address[]" },
3153
+ { name: "amount", internalType: "uint256[]", type: "uint256[]" },
3154
+ { name: "force", internalType: "bool[]", type: "bool[]" },
3155
+ { name: "data", internalType: "bytes[]", type: "bytes[]" }
3156
+ ],
3157
+ name: "transferBatch",
3158
+ outputs: [],
3159
+ stateMutability: "nonpayable"
3160
+ },
3161
+ {
3162
+ type: "function",
3163
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
3164
+ name: "transferOwnership",
3165
+ outputs: [],
3166
+ stateMutability: "nonpayable"
3167
+ },
3168
+ { type: "receive", stateMutability: "payable" }
3169
+ ];
3170
+ const lsp7MintableInitAbi = [
3171
+ { type: "constructor", inputs: [], stateMutability: "nonpayable" },
3172
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesEmptyArray" },
3173
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesLengthMismatch" },
3174
+ { type: "error", inputs: [], name: "ERC725Y_MsgValueDisallowed" },
3175
+ {
3176
+ type: "error",
3177
+ inputs: [{ name: "storedData", internalType: "bytes", type: "bytes" }],
3178
+ name: "InvalidExtensionAddress"
3179
+ },
3180
+ {
3181
+ type: "error",
3182
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
3183
+ name: "InvalidFunctionSelector"
3184
+ },
3185
+ { type: "error", inputs: [], name: "LSP4TokenNameNotEditable" },
3186
+ { type: "error", inputs: [], name: "LSP4TokenSymbolNotEditable" },
3187
+ { type: "error", inputs: [], name: "LSP4TokenTypeNotEditable" },
3188
+ {
3189
+ type: "error",
3190
+ inputs: [
3191
+ { name: "tokenOwner", internalType: "address", type: "address" },
3192
+ { name: "authorizedAmount", internalType: "uint256", type: "uint256" },
3193
+ { name: "operator", internalType: "address", type: "address" },
3194
+ { name: "amount", internalType: "uint256", type: "uint256" }
3195
+ ],
3196
+ name: "LSP7AmountExceedsAuthorizedAmount"
3197
+ },
3198
+ {
3199
+ type: "error",
3200
+ inputs: [
3201
+ { name: "balance", internalType: "uint256", type: "uint256" },
3202
+ { name: "tokenOwner", internalType: "address", type: "address" },
3203
+ { name: "amount", internalType: "uint256", type: "uint256" }
3204
+ ],
3205
+ name: "LSP7AmountExceedsBalance"
3206
+ },
3207
+ {
3208
+ type: "error",
3209
+ inputs: [{ name: "callIndex", internalType: "uint256", type: "uint256" }],
3210
+ name: "LSP7BatchCallFailed"
3211
+ },
3212
+ { type: "error", inputs: [], name: "LSP7CannotSendWithAddressZero" },
3213
+ { type: "error", inputs: [], name: "LSP7CannotUseAddressZeroAsOperator" },
3214
+ {
3215
+ type: "error",
3216
+ inputs: [
3217
+ { name: "caller", internalType: "address", type: "address" },
3218
+ { name: "tokenOwner", internalType: "address", type: "address" },
3219
+ { name: "operator", internalType: "address", type: "address" }
3220
+ ],
3221
+ name: "LSP7DecreaseAllowanceNotAuthorized"
3222
+ },
3223
+ { type: "error", inputs: [], name: "LSP7DecreasedAllowanceBelowZero" },
3224
+ { type: "error", inputs: [], name: "LSP7InvalidTransferBatch" },
3225
+ {
3226
+ type: "error",
3227
+ inputs: [
3228
+ { name: "tokenReceiver", internalType: "address", type: "address" }
3229
+ ],
3230
+ name: "LSP7NotifyTokenReceiverContractMissingLSP1Interface"
3231
+ },
3232
+ {
3233
+ type: "error",
3234
+ inputs: [
3235
+ { name: "tokenReceiver", internalType: "address", type: "address" }
3236
+ ],
3237
+ name: "LSP7NotifyTokenReceiverIsEOA"
3238
+ },
3239
+ {
3240
+ type: "error",
3241
+ inputs: [
3242
+ { name: "caller", internalType: "address", type: "address" },
3243
+ { name: "tokenOwner", internalType: "address", type: "address" },
3244
+ { name: "operator", internalType: "address", type: "address" }
3245
+ ],
3246
+ name: "LSP7RevokeOperatorNotAuthorized"
3247
+ },
3248
+ { type: "error", inputs: [], name: "LSP7TokenContractCannotHoldValue" },
3249
+ { type: "error", inputs: [], name: "LSP7TokenOwnerCannotBeOperator" },
3250
+ {
3251
+ type: "error",
3252
+ inputs: [
3253
+ { name: "functionSelector", internalType: "bytes4", type: "bytes4" }
3254
+ ],
3255
+ name: "NoExtensionFoundForFunctionSelector"
3256
+ },
3257
+ {
3258
+ type: "error",
3259
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
3260
+ name: "OperatorAllowanceCannotBeIncreasedFromZero"
3261
+ },
3262
+ { type: "error", inputs: [], name: "OwnableCannotSetZeroAddressAsOwner" },
3263
+ {
3264
+ type: "event",
3265
+ anonymous: false,
3266
+ inputs: [
3267
+ {
3268
+ name: "dataKey",
3269
+ internalType: "bytes32",
3270
+ type: "bytes32",
3271
+ indexed: true
3272
+ },
3273
+ {
3274
+ name: "dataValue",
3275
+ internalType: "bytes",
3276
+ type: "bytes",
3277
+ indexed: false
3278
+ }
3279
+ ],
3280
+ name: "DataChanged"
3281
+ },
3282
+ {
3283
+ type: "event",
3284
+ anonymous: false,
3285
+ inputs: [
3286
+ { name: "version", internalType: "uint8", type: "uint8", indexed: false }
3287
+ ],
3288
+ name: "Initialized"
3289
+ },
3290
+ {
3291
+ type: "event",
3292
+ anonymous: false,
3293
+ inputs: [
3294
+ {
3295
+ name: "operator",
3296
+ internalType: "address",
3297
+ type: "address",
3298
+ indexed: true
3299
+ },
3300
+ {
3301
+ name: "tokenOwner",
3302
+ internalType: "address",
3303
+ type: "address",
3304
+ indexed: true
3305
+ },
3306
+ {
3307
+ name: "amount",
3308
+ internalType: "uint256",
3309
+ type: "uint256",
3310
+ indexed: true
3311
+ },
3312
+ {
3313
+ name: "operatorNotificationData",
3314
+ internalType: "bytes",
3315
+ type: "bytes",
3316
+ indexed: false
3317
+ }
3318
+ ],
3319
+ name: "OperatorAuthorizationChanged"
3320
+ },
3321
+ {
3322
+ type: "event",
3323
+ anonymous: false,
3324
+ inputs: [
3325
+ {
3326
+ name: "operator",
3327
+ internalType: "address",
3328
+ type: "address",
3329
+ indexed: true
3330
+ },
3331
+ {
3332
+ name: "tokenOwner",
3333
+ internalType: "address",
3334
+ type: "address",
3335
+ indexed: true
3336
+ },
3337
+ { name: "notified", internalType: "bool", type: "bool", indexed: true },
3338
+ {
3339
+ name: "operatorNotificationData",
3340
+ internalType: "bytes",
3341
+ type: "bytes",
3342
+ indexed: false
3343
+ }
3344
+ ],
3345
+ name: "OperatorRevoked"
3346
+ },
3347
+ {
3348
+ type: "event",
3349
+ anonymous: false,
3350
+ inputs: [
3351
+ {
3352
+ name: "previousOwner",
3353
+ internalType: "address",
3354
+ type: "address",
3355
+ indexed: true
3356
+ },
3357
+ {
3358
+ name: "newOwner",
3359
+ internalType: "address",
3360
+ type: "address",
3361
+ indexed: true
3362
+ }
3363
+ ],
3364
+ name: "OwnershipTransferred"
3365
+ },
3366
+ {
3367
+ type: "event",
3368
+ anonymous: false,
3369
+ inputs: [
3370
+ {
3371
+ name: "operator",
3372
+ internalType: "address",
3373
+ type: "address",
3374
+ indexed: true
3375
+ },
3376
+ { name: "from", internalType: "address", type: "address", indexed: true },
3377
+ { name: "to", internalType: "address", type: "address", indexed: true },
3378
+ {
3379
+ name: "amount",
3380
+ internalType: "uint256",
3381
+ type: "uint256",
3382
+ indexed: false
3383
+ },
3384
+ { name: "force", internalType: "bool", type: "bool", indexed: false },
3385
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
3386
+ ],
3387
+ name: "Transfer"
3388
+ },
3389
+ { type: "fallback", stateMutability: "payable" },
3390
+ {
3391
+ type: "function",
3392
+ inputs: [
3393
+ { name: "operator", internalType: "address", type: "address" },
3394
+ { name: "amount", internalType: "uint256", type: "uint256" },
3395
+ {
3396
+ name: "operatorNotificationData",
3397
+ internalType: "bytes",
3398
+ type: "bytes"
3399
+ }
3400
+ ],
3401
+ name: "authorizeOperator",
3402
+ outputs: [],
3403
+ stateMutability: "nonpayable"
3404
+ },
3405
+ {
3406
+ type: "function",
3407
+ inputs: [
3408
+ { name: "operator", internalType: "address", type: "address" },
3409
+ { name: "tokenOwner", internalType: "address", type: "address" }
3410
+ ],
3411
+ name: "authorizedAmountFor",
3412
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3413
+ stateMutability: "view"
3414
+ },
3415
+ {
3416
+ type: "function",
3417
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
3418
+ name: "balanceOf",
3419
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3420
+ stateMutability: "view"
3421
+ },
3422
+ {
3423
+ type: "function",
3424
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
3425
+ name: "batchCalls",
3426
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
3427
+ stateMutability: "nonpayable"
3428
+ },
3429
+ {
3430
+ type: "function",
3431
+ inputs: [],
3432
+ name: "decimals",
3433
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
3434
+ stateMutability: "view"
3435
+ },
3436
+ {
3437
+ type: "function",
3438
+ inputs: [
3439
+ { name: "operator", internalType: "address", type: "address" },
3440
+ { name: "tokenOwner", internalType: "address", type: "address" },
3441
+ { name: "subtractedAmount", internalType: "uint256", type: "uint256" },
3442
+ {
3443
+ name: "operatorNotificationData",
3444
+ internalType: "bytes",
3445
+ type: "bytes"
3446
+ }
3447
+ ],
3448
+ name: "decreaseAllowance",
3449
+ outputs: [],
3450
+ stateMutability: "nonpayable"
3451
+ },
3452
+ {
3453
+ type: "function",
3454
+ inputs: [{ name: "dataKey", internalType: "bytes32", type: "bytes32" }],
3455
+ name: "getData",
3456
+ outputs: [{ name: "dataValue", internalType: "bytes", type: "bytes" }],
3457
+ stateMutability: "view"
3458
+ },
3459
+ {
3460
+ type: "function",
3461
+ inputs: [
3462
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" }
3463
+ ],
3464
+ name: "getDataBatch",
3465
+ outputs: [{ name: "dataValues", internalType: "bytes[]", type: "bytes[]" }],
3466
+ stateMutability: "view"
3467
+ },
3468
+ {
3469
+ type: "function",
3470
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
3471
+ name: "getOperatorsOf",
3472
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
3473
+ stateMutability: "view"
3474
+ },
3475
+ {
3476
+ type: "function",
3477
+ inputs: [
3478
+ { name: "operator", internalType: "address", type: "address" },
3479
+ { name: "addedAmount", internalType: "uint256", type: "uint256" },
3480
+ {
3481
+ name: "operatorNotificationData",
3482
+ internalType: "bytes",
3483
+ type: "bytes"
3484
+ }
3485
+ ],
3486
+ name: "increaseAllowance",
3487
+ outputs: [],
3488
+ stateMutability: "nonpayable"
3489
+ },
3490
+ {
3491
+ type: "function",
3492
+ inputs: [
3493
+ { name: "name_", internalType: "string", type: "string" },
3494
+ { name: "symbol_", internalType: "string", type: "string" },
3495
+ { name: "newOwner_", internalType: "address", type: "address" },
3496
+ { name: "lsp4TokenType_", internalType: "uint256", type: "uint256" },
3497
+ { name: "isNonDivisible_", internalType: "bool", type: "bool" }
3498
+ ],
3499
+ name: "initialize",
3500
+ outputs: [],
3501
+ stateMutability: "nonpayable"
3502
+ },
3503
+ {
3504
+ type: "function",
3505
+ inputs: [
3506
+ { name: "to", internalType: "address", type: "address" },
3507
+ { name: "amount", internalType: "uint256", type: "uint256" },
3508
+ { name: "force", internalType: "bool", type: "bool" },
3509
+ { name: "data", internalType: "bytes", type: "bytes" }
3510
+ ],
3511
+ name: "mint",
3512
+ outputs: [],
3513
+ stateMutability: "nonpayable"
3514
+ },
3515
+ {
3516
+ type: "function",
3517
+ inputs: [],
3518
+ name: "owner",
3519
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3520
+ stateMutability: "view"
3521
+ },
3522
+ {
3523
+ type: "function",
3524
+ inputs: [],
3525
+ name: "renounceOwnership",
3526
+ outputs: [],
3527
+ stateMutability: "nonpayable"
3528
+ },
3529
+ {
3530
+ type: "function",
3531
+ inputs: [
3532
+ { name: "operator", internalType: "address", type: "address" },
3533
+ { name: "tokenOwner", internalType: "address", type: "address" },
3534
+ { name: "notify", internalType: "bool", type: "bool" },
3535
+ {
3536
+ name: "operatorNotificationData",
3537
+ internalType: "bytes",
3538
+ type: "bytes"
3539
+ }
3540
+ ],
3541
+ name: "revokeOperator",
3542
+ outputs: [],
3543
+ stateMutability: "nonpayable"
3544
+ },
3545
+ {
3546
+ type: "function",
3547
+ inputs: [
3548
+ { name: "dataKey", internalType: "bytes32", type: "bytes32" },
3549
+ { name: "dataValue", internalType: "bytes", type: "bytes" }
3550
+ ],
3551
+ name: "setData",
3552
+ outputs: [],
3553
+ stateMutability: "payable"
3554
+ },
3555
+ {
3556
+ type: "function",
3557
+ inputs: [
3558
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" },
3559
+ { name: "dataValues", internalType: "bytes[]", type: "bytes[]" }
3560
+ ],
3561
+ name: "setDataBatch",
3562
+ outputs: [],
3563
+ stateMutability: "payable"
3564
+ },
3565
+ {
3566
+ type: "function",
3567
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
3568
+ name: "supportsInterface",
3569
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3570
+ stateMutability: "view"
3571
+ },
3572
+ {
3573
+ type: "function",
3574
+ inputs: [],
3575
+ name: "totalSupply",
3576
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3577
+ stateMutability: "view"
3578
+ },
3579
+ {
3580
+ type: "function",
3581
+ inputs: [
3582
+ { name: "from", internalType: "address", type: "address" },
3583
+ { name: "to", internalType: "address", type: "address" },
3584
+ { name: "amount", internalType: "uint256", type: "uint256" },
3585
+ { name: "force", internalType: "bool", type: "bool" },
3586
+ { name: "data", internalType: "bytes", type: "bytes" }
3587
+ ],
3588
+ name: "transfer",
3589
+ outputs: [],
3590
+ stateMutability: "nonpayable"
3591
+ },
3592
+ {
3593
+ type: "function",
3594
+ inputs: [
3595
+ { name: "from", internalType: "address[]", type: "address[]" },
3596
+ { name: "to", internalType: "address[]", type: "address[]" },
3597
+ { name: "amount", internalType: "uint256[]", type: "uint256[]" },
3598
+ { name: "force", internalType: "bool[]", type: "bool[]" },
3599
+ { name: "data", internalType: "bytes[]", type: "bytes[]" }
3600
+ ],
3601
+ name: "transferBatch",
3602
+ outputs: [],
3603
+ stateMutability: "nonpayable"
3604
+ },
3605
+ {
3606
+ type: "function",
3607
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
3608
+ name: "transferOwnership",
3609
+ outputs: [],
3610
+ stateMutability: "nonpayable"
3611
+ },
3612
+ { type: "receive", stateMutability: "payable" }
3613
+ ];
3614
+ const lsp7VotesAbi = [
3615
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesEmptyArray" },
3616
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesLengthMismatch" },
3617
+ { type: "error", inputs: [], name: "ERC725Y_MsgValueDisallowed" },
3618
+ {
3619
+ type: "error",
3620
+ inputs: [{ name: "storedData", internalType: "bytes", type: "bytes" }],
3621
+ name: "InvalidExtensionAddress"
3622
+ },
3623
+ {
3624
+ type: "error",
3625
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
3626
+ name: "InvalidFunctionSelector"
3627
+ },
3628
+ { type: "error", inputs: [], name: "InvalidShortString" },
3629
+ { type: "error", inputs: [], name: "LSP4TokenNameNotEditable" },
3630
+ { type: "error", inputs: [], name: "LSP4TokenSymbolNotEditable" },
3631
+ { type: "error", inputs: [], name: "LSP4TokenTypeNotEditable" },
3632
+ {
3633
+ type: "error",
3634
+ inputs: [
3635
+ { name: "tokenOwner", internalType: "address", type: "address" },
3636
+ { name: "authorizedAmount", internalType: "uint256", type: "uint256" },
3637
+ { name: "operator", internalType: "address", type: "address" },
3638
+ { name: "amount", internalType: "uint256", type: "uint256" }
3639
+ ],
3640
+ name: "LSP7AmountExceedsAuthorizedAmount"
3641
+ },
3642
+ {
3643
+ type: "error",
3644
+ inputs: [
3645
+ { name: "balance", internalType: "uint256", type: "uint256" },
3646
+ { name: "tokenOwner", internalType: "address", type: "address" },
3647
+ { name: "amount", internalType: "uint256", type: "uint256" }
3648
+ ],
3649
+ name: "LSP7AmountExceedsBalance"
3650
+ },
3651
+ {
3652
+ type: "error",
3653
+ inputs: [{ name: "callIndex", internalType: "uint256", type: "uint256" }],
3654
+ name: "LSP7BatchCallFailed"
3655
+ },
3656
+ { type: "error", inputs: [], name: "LSP7CannotSendWithAddressZero" },
3657
+ { type: "error", inputs: [], name: "LSP7CannotUseAddressZeroAsOperator" },
3658
+ {
3659
+ type: "error",
3660
+ inputs: [
3661
+ { name: "caller", internalType: "address", type: "address" },
3662
+ { name: "tokenOwner", internalType: "address", type: "address" },
3663
+ { name: "operator", internalType: "address", type: "address" }
3664
+ ],
3665
+ name: "LSP7DecreaseAllowanceNotAuthorized"
3666
+ },
3667
+ { type: "error", inputs: [], name: "LSP7DecreasedAllowanceBelowZero" },
3668
+ { type: "error", inputs: [], name: "LSP7InvalidTransferBatch" },
3669
+ {
3670
+ type: "error",
3671
+ inputs: [
3672
+ { name: "tokenReceiver", internalType: "address", type: "address" }
3673
+ ],
3674
+ name: "LSP7NotifyTokenReceiverContractMissingLSP1Interface"
3675
+ },
3676
+ {
3677
+ type: "error",
3678
+ inputs: [
3679
+ { name: "tokenReceiver", internalType: "address", type: "address" }
3680
+ ],
3681
+ name: "LSP7NotifyTokenReceiverIsEOA"
3682
+ },
3683
+ {
3684
+ type: "error",
3685
+ inputs: [
3686
+ { name: "caller", internalType: "address", type: "address" },
3687
+ { name: "tokenOwner", internalType: "address", type: "address" },
3688
+ { name: "operator", internalType: "address", type: "address" }
3689
+ ],
3690
+ name: "LSP7RevokeOperatorNotAuthorized"
3691
+ },
3692
+ { type: "error", inputs: [], name: "LSP7TokenContractCannotHoldValue" },
3693
+ { type: "error", inputs: [], name: "LSP7TokenOwnerCannotBeOperator" },
3694
+ {
3695
+ type: "error",
3696
+ inputs: [
3697
+ { name: "functionSelector", internalType: "bytes4", type: "bytes4" }
3698
+ ],
3699
+ name: "NoExtensionFoundForFunctionSelector"
3700
+ },
3701
+ {
3702
+ type: "error",
3703
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
3704
+ name: "OperatorAllowanceCannotBeIncreasedFromZero"
3705
+ },
3706
+ { type: "error", inputs: [], name: "OwnableCannotSetZeroAddressAsOwner" },
3707
+ {
3708
+ type: "error",
3709
+ inputs: [{ name: "str", internalType: "string", type: "string" }],
3710
+ name: "StringTooLong"
3711
+ },
3712
+ {
3713
+ type: "event",
3714
+ anonymous: false,
3715
+ inputs: [
3716
+ {
3717
+ name: "dataKey",
3718
+ internalType: "bytes32",
3719
+ type: "bytes32",
3720
+ indexed: true
3721
+ },
3722
+ {
3723
+ name: "dataValue",
3724
+ internalType: "bytes",
3725
+ type: "bytes",
3726
+ indexed: false
3727
+ }
3728
+ ],
3729
+ name: "DataChanged"
3730
+ },
3731
+ {
3732
+ type: "event",
3733
+ anonymous: false,
3734
+ inputs: [
3735
+ {
3736
+ name: "delegator",
3737
+ internalType: "address",
3738
+ type: "address",
3739
+ indexed: true
3740
+ },
3741
+ {
3742
+ name: "fromDelegate",
3743
+ internalType: "address",
3744
+ type: "address",
3745
+ indexed: true
3746
+ },
3747
+ {
3748
+ name: "toDelegate",
3749
+ internalType: "address",
3750
+ type: "address",
3751
+ indexed: true
3752
+ }
3753
+ ],
3754
+ name: "DelegateChanged"
3755
+ },
3756
+ {
3757
+ type: "event",
3758
+ anonymous: false,
3759
+ inputs: [
3760
+ {
3761
+ name: "delegate",
3762
+ internalType: "address",
3763
+ type: "address",
3764
+ indexed: true
3765
+ },
3766
+ {
3767
+ name: "previousBalance",
3768
+ internalType: "uint256",
3769
+ type: "uint256",
3770
+ indexed: false
3771
+ },
3772
+ {
3773
+ name: "newBalance",
3774
+ internalType: "uint256",
3775
+ type: "uint256",
3776
+ indexed: false
3777
+ }
3778
+ ],
3779
+ name: "DelegateVotesChanged"
3780
+ },
3781
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
3782
+ {
3783
+ type: "event",
3784
+ anonymous: false,
3785
+ inputs: [
3786
+ {
3787
+ name: "operator",
3788
+ internalType: "address",
3789
+ type: "address",
3790
+ indexed: true
3791
+ },
3792
+ {
3793
+ name: "tokenOwner",
3794
+ internalType: "address",
3795
+ type: "address",
3796
+ indexed: true
3797
+ },
3798
+ {
3799
+ name: "amount",
3800
+ internalType: "uint256",
3801
+ type: "uint256",
3802
+ indexed: true
3803
+ },
3804
+ {
3805
+ name: "operatorNotificationData",
3806
+ internalType: "bytes",
3807
+ type: "bytes",
3808
+ indexed: false
3809
+ }
3810
+ ],
3811
+ name: "OperatorAuthorizationChanged"
3812
+ },
3813
+ {
3814
+ type: "event",
3815
+ anonymous: false,
3816
+ inputs: [
3817
+ {
3818
+ name: "operator",
3819
+ internalType: "address",
3820
+ type: "address",
3821
+ indexed: true
3822
+ },
3823
+ {
3824
+ name: "tokenOwner",
3825
+ internalType: "address",
3826
+ type: "address",
3827
+ indexed: true
3828
+ },
3829
+ { name: "notified", internalType: "bool", type: "bool", indexed: true },
3830
+ {
3831
+ name: "operatorNotificationData",
3832
+ internalType: "bytes",
3833
+ type: "bytes",
3834
+ indexed: false
3835
+ }
3836
+ ],
3837
+ name: "OperatorRevoked"
3838
+ },
3839
+ {
3840
+ type: "event",
3841
+ anonymous: false,
3842
+ inputs: [
3843
+ {
3844
+ name: "previousOwner",
3845
+ internalType: "address",
3846
+ type: "address",
3847
+ indexed: true
3848
+ },
3849
+ {
3850
+ name: "newOwner",
3851
+ internalType: "address",
3852
+ type: "address",
3853
+ indexed: true
3854
+ }
3855
+ ],
3856
+ name: "OwnershipTransferred"
3857
+ },
3858
+ {
3859
+ type: "event",
3860
+ anonymous: false,
3861
+ inputs: [
3862
+ {
3863
+ name: "operator",
3864
+ internalType: "address",
3865
+ type: "address",
3866
+ indexed: true
3867
+ },
3868
+ { name: "from", internalType: "address", type: "address", indexed: true },
3869
+ { name: "to", internalType: "address", type: "address", indexed: true },
3870
+ {
3871
+ name: "amount",
3872
+ internalType: "uint256",
3873
+ type: "uint256",
3874
+ indexed: false
3875
+ },
3876
+ { name: "force", internalType: "bool", type: "bool", indexed: false },
3877
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
3878
+ ],
3879
+ name: "Transfer"
3880
+ },
3881
+ { type: "fallback", stateMutability: "payable" },
3882
+ {
3883
+ type: "function",
3884
+ inputs: [],
3885
+ name: "CLOCK_MODE",
3886
+ outputs: [{ name: "", internalType: "string", type: "string" }],
3887
+ stateMutability: "view"
3888
+ },
3889
+ {
3890
+ type: "function",
3891
+ inputs: [],
3892
+ name: "DOMAIN_SEPARATOR",
3893
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3894
+ stateMutability: "view"
3895
+ },
3896
+ {
3897
+ type: "function",
3898
+ inputs: [
3899
+ { name: "operator", internalType: "address", type: "address" },
3900
+ { name: "amount", internalType: "uint256", type: "uint256" },
3901
+ {
3902
+ name: "operatorNotificationData",
3903
+ internalType: "bytes",
3904
+ type: "bytes"
3905
+ }
3906
+ ],
3907
+ name: "authorizeOperator",
3908
+ outputs: [],
3909
+ stateMutability: "nonpayable"
3910
+ },
3911
+ {
3912
+ type: "function",
3913
+ inputs: [
3914
+ { name: "operator", internalType: "address", type: "address" },
3915
+ { name: "tokenOwner", internalType: "address", type: "address" }
3916
+ ],
3917
+ name: "authorizedAmountFor",
3918
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3919
+ stateMutability: "view"
3920
+ },
3921
+ {
3922
+ type: "function",
3923
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
3924
+ name: "balanceOf",
3925
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3926
+ stateMutability: "view"
3927
+ },
3928
+ {
3929
+ type: "function",
3930
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
3931
+ name: "batchCalls",
3932
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
3933
+ stateMutability: "nonpayable"
3934
+ },
3935
+ {
3936
+ type: "function",
3937
+ inputs: [
3938
+ { name: "account", internalType: "address", type: "address" },
3939
+ { name: "pos", internalType: "uint32", type: "uint32" }
3940
+ ],
3941
+ name: "checkpoints",
3942
+ outputs: [
3943
+ {
3944
+ name: "",
3945
+ internalType: "struct LSP7Votes.Checkpoint",
3946
+ type: "tuple",
3947
+ components: [
3948
+ { name: "fromBlock", internalType: "uint32", type: "uint32" },
3949
+ { name: "votes", internalType: "uint224", type: "uint224" }
3950
+ ]
3951
+ }
3952
+ ],
3953
+ stateMutability: "view"
3954
+ },
3955
+ {
3956
+ type: "function",
3957
+ inputs: [],
3958
+ name: "clock",
3959
+ outputs: [{ name: "", internalType: "uint48", type: "uint48" }],
3960
+ stateMutability: "view"
3961
+ },
3962
+ {
3963
+ type: "function",
3964
+ inputs: [],
3965
+ name: "decimals",
3966
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
3967
+ stateMutability: "view"
3968
+ },
3969
+ {
3970
+ type: "function",
3971
+ inputs: [
3972
+ { name: "operator", internalType: "address", type: "address" },
3973
+ { name: "tokenOwner", internalType: "address", type: "address" },
3974
+ { name: "subtractedAmount", internalType: "uint256", type: "uint256" },
3975
+ {
3976
+ name: "operatorNotificationData",
3977
+ internalType: "bytes",
3978
+ type: "bytes"
3979
+ }
3980
+ ],
3981
+ name: "decreaseAllowance",
3982
+ outputs: [],
3983
+ stateMutability: "nonpayable"
3984
+ },
3985
+ {
3986
+ type: "function",
3987
+ inputs: [{ name: "delegatee", internalType: "address", type: "address" }],
3988
+ name: "delegate",
3989
+ outputs: [],
3990
+ stateMutability: "nonpayable"
3991
+ },
3992
+ {
3993
+ type: "function",
3994
+ inputs: [
3995
+ { name: "delegatee", internalType: "address", type: "address" },
3996
+ { name: "nonce", internalType: "uint256", type: "uint256" },
3997
+ { name: "expiry", internalType: "uint256", type: "uint256" },
3998
+ { name: "v", internalType: "uint8", type: "uint8" },
3999
+ { name: "r", internalType: "bytes32", type: "bytes32" },
4000
+ { name: "s", internalType: "bytes32", type: "bytes32" }
4001
+ ],
4002
+ name: "delegateBySig",
4003
+ outputs: [],
4004
+ stateMutability: "nonpayable"
4005
+ },
4006
+ {
4007
+ type: "function",
4008
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
4009
+ name: "delegates",
4010
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4011
+ stateMutability: "view"
4012
+ },
4013
+ {
4014
+ type: "function",
4015
+ inputs: [],
4016
+ name: "eip712Domain",
4017
+ outputs: [
4018
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
4019
+ { name: "name", internalType: "string", type: "string" },
4020
+ { name: "version", internalType: "string", type: "string" },
4021
+ { name: "chainId", internalType: "uint256", type: "uint256" },
4022
+ { name: "verifyingContract", internalType: "address", type: "address" },
4023
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
4024
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
4025
+ ],
4026
+ stateMutability: "view"
4027
+ },
4028
+ {
4029
+ type: "function",
4030
+ inputs: [{ name: "dataKey", internalType: "bytes32", type: "bytes32" }],
4031
+ name: "getData",
4032
+ outputs: [{ name: "dataValue", internalType: "bytes", type: "bytes" }],
4033
+ stateMutability: "view"
4034
+ },
4035
+ {
4036
+ type: "function",
4037
+ inputs: [
4038
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" }
4039
+ ],
4040
+ name: "getDataBatch",
4041
+ outputs: [{ name: "dataValues", internalType: "bytes[]", type: "bytes[]" }],
4042
+ stateMutability: "view"
4043
+ },
4044
+ {
4045
+ type: "function",
4046
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
4047
+ name: "getOperatorsOf",
4048
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
4049
+ stateMutability: "view"
4050
+ },
4051
+ {
4052
+ type: "function",
4053
+ inputs: [{ name: "timepoint", internalType: "uint256", type: "uint256" }],
4054
+ name: "getPastTotalSupply",
4055
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4056
+ stateMutability: "view"
4057
+ },
4058
+ {
4059
+ type: "function",
4060
+ inputs: [
4061
+ { name: "account", internalType: "address", type: "address" },
4062
+ { name: "timepoint", internalType: "uint256", type: "uint256" }
4063
+ ],
4064
+ name: "getPastVotes",
4065
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4066
+ stateMutability: "view"
4067
+ },
4068
+ {
4069
+ type: "function",
4070
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
4071
+ name: "getVotes",
4072
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4073
+ stateMutability: "view"
4074
+ },
4075
+ {
4076
+ type: "function",
4077
+ inputs: [
4078
+ { name: "operator", internalType: "address", type: "address" },
4079
+ { name: "addedAmount", internalType: "uint256", type: "uint256" },
4080
+ {
4081
+ name: "operatorNotificationData",
4082
+ internalType: "bytes",
4083
+ type: "bytes"
4084
+ }
4085
+ ],
4086
+ name: "increaseAllowance",
4087
+ outputs: [],
4088
+ stateMutability: "nonpayable"
4089
+ },
4090
+ {
4091
+ type: "function",
4092
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
4093
+ name: "nonces",
4094
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4095
+ stateMutability: "view"
4096
+ },
4097
+ {
4098
+ type: "function",
4099
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
4100
+ name: "numCheckpoints",
4101
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
4102
+ stateMutability: "view"
4103
+ },
4104
+ {
4105
+ type: "function",
4106
+ inputs: [],
4107
+ name: "owner",
4108
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4109
+ stateMutability: "view"
4110
+ },
4111
+ {
4112
+ type: "function",
4113
+ inputs: [],
4114
+ name: "renounceOwnership",
4115
+ outputs: [],
4116
+ stateMutability: "nonpayable"
4117
+ },
4118
+ {
4119
+ type: "function",
4120
+ inputs: [
4121
+ { name: "operator", internalType: "address", type: "address" },
4122
+ { name: "tokenOwner", internalType: "address", type: "address" },
4123
+ { name: "notify", internalType: "bool", type: "bool" },
4124
+ {
4125
+ name: "operatorNotificationData",
4126
+ internalType: "bytes",
4127
+ type: "bytes"
4128
+ }
4129
+ ],
4130
+ name: "revokeOperator",
4131
+ outputs: [],
4132
+ stateMutability: "nonpayable"
4133
+ },
4134
+ {
4135
+ type: "function",
4136
+ inputs: [
4137
+ { name: "dataKey", internalType: "bytes32", type: "bytes32" },
4138
+ { name: "dataValue", internalType: "bytes", type: "bytes" }
4139
+ ],
4140
+ name: "setData",
4141
+ outputs: [],
4142
+ stateMutability: "payable"
4143
+ },
4144
+ {
4145
+ type: "function",
4146
+ inputs: [
4147
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" },
4148
+ { name: "dataValues", internalType: "bytes[]", type: "bytes[]" }
4149
+ ],
4150
+ name: "setDataBatch",
4151
+ outputs: [],
4152
+ stateMutability: "payable"
4153
+ },
4154
+ {
4155
+ type: "function",
4156
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
4157
+ name: "supportsInterface",
4158
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
4159
+ stateMutability: "view"
4160
+ },
4161
+ {
4162
+ type: "function",
4163
+ inputs: [],
4164
+ name: "totalSupply",
4165
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4166
+ stateMutability: "view"
4167
+ },
4168
+ {
4169
+ type: "function",
4170
+ inputs: [
4171
+ { name: "from", internalType: "address", type: "address" },
4172
+ { name: "to", internalType: "address", type: "address" },
4173
+ { name: "amount", internalType: "uint256", type: "uint256" },
4174
+ { name: "force", internalType: "bool", type: "bool" },
4175
+ { name: "data", internalType: "bytes", type: "bytes" }
4176
+ ],
4177
+ name: "transfer",
4178
+ outputs: [],
4179
+ stateMutability: "nonpayable"
4180
+ },
4181
+ {
4182
+ type: "function",
4183
+ inputs: [
4184
+ { name: "from", internalType: "address[]", type: "address[]" },
4185
+ { name: "to", internalType: "address[]", type: "address[]" },
4186
+ { name: "amount", internalType: "uint256[]", type: "uint256[]" },
4187
+ { name: "force", internalType: "bool[]", type: "bool[]" },
4188
+ { name: "data", internalType: "bytes[]", type: "bytes[]" }
4189
+ ],
4190
+ name: "transferBatch",
4191
+ outputs: [],
4192
+ stateMutability: "nonpayable"
4193
+ },
4194
+ {
4195
+ type: "function",
4196
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
4197
+ name: "transferOwnership",
4198
+ outputs: [],
4199
+ stateMutability: "nonpayable"
4200
+ },
4201
+ { type: "receive", stateMutability: "payable" }
4202
+ ];
4203
+ const lsp7VotesInitAbstractAbi = [
4204
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesEmptyArray" },
4205
+ { type: "error", inputs: [], name: "ERC725Y_DataKeysValuesLengthMismatch" },
4206
+ { type: "error", inputs: [], name: "ERC725Y_MsgValueDisallowed" },
4207
+ {
4208
+ type: "error",
4209
+ inputs: [{ name: "storedData", internalType: "bytes", type: "bytes" }],
4210
+ name: "InvalidExtensionAddress"
4211
+ },
4212
+ {
4213
+ type: "error",
4214
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
4215
+ name: "InvalidFunctionSelector"
4216
+ },
4217
+ { type: "error", inputs: [], name: "LSP4TokenNameNotEditable" },
4218
+ { type: "error", inputs: [], name: "LSP4TokenSymbolNotEditable" },
4219
+ { type: "error", inputs: [], name: "LSP4TokenTypeNotEditable" },
4220
+ {
4221
+ type: "error",
4222
+ inputs: [
4223
+ { name: "tokenOwner", internalType: "address", type: "address" },
4224
+ { name: "authorizedAmount", internalType: "uint256", type: "uint256" },
4225
+ { name: "operator", internalType: "address", type: "address" },
4226
+ { name: "amount", internalType: "uint256", type: "uint256" }
4227
+ ],
4228
+ name: "LSP7AmountExceedsAuthorizedAmount"
4229
+ },
4230
+ {
4231
+ type: "error",
4232
+ inputs: [
4233
+ { name: "balance", internalType: "uint256", type: "uint256" },
4234
+ { name: "tokenOwner", internalType: "address", type: "address" },
4235
+ { name: "amount", internalType: "uint256", type: "uint256" }
4236
+ ],
4237
+ name: "LSP7AmountExceedsBalance"
4238
+ },
4239
+ {
4240
+ type: "error",
4241
+ inputs: [{ name: "callIndex", internalType: "uint256", type: "uint256" }],
4242
+ name: "LSP7BatchCallFailed"
4243
+ },
4244
+ { type: "error", inputs: [], name: "LSP7CannotSendWithAddressZero" },
4245
+ { type: "error", inputs: [], name: "LSP7CannotUseAddressZeroAsOperator" },
4246
+ {
4247
+ type: "error",
4248
+ inputs: [
4249
+ { name: "caller", internalType: "address", type: "address" },
4250
+ { name: "tokenOwner", internalType: "address", type: "address" },
4251
+ { name: "operator", internalType: "address", type: "address" }
4252
+ ],
4253
+ name: "LSP7DecreaseAllowanceNotAuthorized"
4254
+ },
4255
+ { type: "error", inputs: [], name: "LSP7DecreasedAllowanceBelowZero" },
4256
+ { type: "error", inputs: [], name: "LSP7InvalidTransferBatch" },
4257
+ {
4258
+ type: "error",
4259
+ inputs: [
4260
+ { name: "tokenReceiver", internalType: "address", type: "address" }
4261
+ ],
4262
+ name: "LSP7NotifyTokenReceiverContractMissingLSP1Interface"
4263
+ },
4264
+ {
4265
+ type: "error",
4266
+ inputs: [
4267
+ { name: "tokenReceiver", internalType: "address", type: "address" }
4268
+ ],
4269
+ name: "LSP7NotifyTokenReceiverIsEOA"
4270
+ },
4271
+ {
4272
+ type: "error",
4273
+ inputs: [
4274
+ { name: "caller", internalType: "address", type: "address" },
4275
+ { name: "tokenOwner", internalType: "address", type: "address" },
4276
+ { name: "operator", internalType: "address", type: "address" }
4277
+ ],
4278
+ name: "LSP7RevokeOperatorNotAuthorized"
4279
+ },
4280
+ { type: "error", inputs: [], name: "LSP7TokenContractCannotHoldValue" },
4281
+ { type: "error", inputs: [], name: "LSP7TokenOwnerCannotBeOperator" },
4282
+ {
4283
+ type: "error",
4284
+ inputs: [
4285
+ { name: "functionSelector", internalType: "bytes4", type: "bytes4" }
4286
+ ],
4287
+ name: "NoExtensionFoundForFunctionSelector"
4288
+ },
4289
+ {
4290
+ type: "error",
4291
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
4292
+ name: "OperatorAllowanceCannotBeIncreasedFromZero"
4293
+ },
4294
+ {
4295
+ type: "event",
4296
+ anonymous: false,
4297
+ inputs: [
4298
+ {
4299
+ name: "dataKey",
4300
+ internalType: "bytes32",
4301
+ type: "bytes32",
4302
+ indexed: true
4303
+ },
4304
+ {
4305
+ name: "dataValue",
4306
+ internalType: "bytes",
4307
+ type: "bytes",
4308
+ indexed: false
4309
+ }
4310
+ ],
4311
+ name: "DataChanged"
4312
+ },
4313
+ {
4314
+ type: "event",
4315
+ anonymous: false,
4316
+ inputs: [
4317
+ {
4318
+ name: "delegator",
4319
+ internalType: "address",
4320
+ type: "address",
4321
+ indexed: true
4322
+ },
4323
+ {
4324
+ name: "fromDelegate",
4325
+ internalType: "address",
4326
+ type: "address",
4327
+ indexed: true
4328
+ },
4329
+ {
4330
+ name: "toDelegate",
4331
+ internalType: "address",
4332
+ type: "address",
4333
+ indexed: true
4334
+ }
4335
+ ],
4336
+ name: "DelegateChanged"
4337
+ },
4338
+ {
4339
+ type: "event",
4340
+ anonymous: false,
4341
+ inputs: [
4342
+ {
4343
+ name: "delegate",
4344
+ internalType: "address",
4345
+ type: "address",
4346
+ indexed: true
4347
+ },
4348
+ {
4349
+ name: "previousBalance",
4350
+ internalType: "uint256",
4351
+ type: "uint256",
4352
+ indexed: false
4353
+ },
4354
+ {
4355
+ name: "newBalance",
4356
+ internalType: "uint256",
4357
+ type: "uint256",
4358
+ indexed: false
4359
+ }
4360
+ ],
4361
+ name: "DelegateVotesChanged"
4362
+ },
4363
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
4364
+ {
4365
+ type: "event",
4366
+ anonymous: false,
4367
+ inputs: [
4368
+ { name: "version", internalType: "uint8", type: "uint8", indexed: false }
4369
+ ],
4370
+ name: "Initialized"
4371
+ },
4372
+ {
4373
+ type: "event",
4374
+ anonymous: false,
4375
+ inputs: [
4376
+ {
4377
+ name: "operator",
4378
+ internalType: "address",
4379
+ type: "address",
4380
+ indexed: true
4381
+ },
4382
+ {
4383
+ name: "tokenOwner",
4384
+ internalType: "address",
4385
+ type: "address",
4386
+ indexed: true
4387
+ },
4388
+ {
4389
+ name: "amount",
4390
+ internalType: "uint256",
4391
+ type: "uint256",
4392
+ indexed: true
4393
+ },
4394
+ {
4395
+ name: "operatorNotificationData",
4396
+ internalType: "bytes",
4397
+ type: "bytes",
4398
+ indexed: false
4399
+ }
4400
+ ],
4401
+ name: "OperatorAuthorizationChanged"
4402
+ },
4403
+ {
4404
+ type: "event",
4405
+ anonymous: false,
4406
+ inputs: [
4407
+ {
4408
+ name: "operator",
4409
+ internalType: "address",
4410
+ type: "address",
4411
+ indexed: true
4412
+ },
4413
+ {
4414
+ name: "tokenOwner",
4415
+ internalType: "address",
4416
+ type: "address",
4417
+ indexed: true
4418
+ },
4419
+ { name: "notified", internalType: "bool", type: "bool", indexed: true },
4420
+ {
4421
+ name: "operatorNotificationData",
4422
+ internalType: "bytes",
4423
+ type: "bytes",
4424
+ indexed: false
4425
+ }
4426
+ ],
4427
+ name: "OperatorRevoked"
4428
+ },
4429
+ {
4430
+ type: "event",
4431
+ anonymous: false,
4432
+ inputs: [
4433
+ {
4434
+ name: "previousOwner",
4435
+ internalType: "address",
4436
+ type: "address",
4437
+ indexed: true
4438
+ },
4439
+ {
4440
+ name: "newOwner",
4441
+ internalType: "address",
4442
+ type: "address",
4443
+ indexed: true
4444
+ }
4445
+ ],
4446
+ name: "OwnershipTransferred"
4447
+ },
4448
+ {
4449
+ type: "event",
4450
+ anonymous: false,
4451
+ inputs: [
4452
+ {
4453
+ name: "operator",
4454
+ internalType: "address",
4455
+ type: "address",
4456
+ indexed: true
4457
+ },
4458
+ { name: "from", internalType: "address", type: "address", indexed: true },
4459
+ { name: "to", internalType: "address", type: "address", indexed: true },
4460
+ {
4461
+ name: "amount",
4462
+ internalType: "uint256",
4463
+ type: "uint256",
4464
+ indexed: false
4465
+ },
4466
+ { name: "force", internalType: "bool", type: "bool", indexed: false },
4467
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
4468
+ ],
4469
+ name: "Transfer"
4470
+ },
4471
+ { type: "fallback", stateMutability: "payable" },
4472
+ {
4473
+ type: "function",
4474
+ inputs: [],
4475
+ name: "CLOCK_MODE",
4476
+ outputs: [{ name: "", internalType: "string", type: "string" }],
4477
+ stateMutability: "view"
4478
+ },
4479
+ {
4480
+ type: "function",
4481
+ inputs: [],
4482
+ name: "DOMAIN_SEPARATOR",
4483
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
4484
+ stateMutability: "view"
4485
+ },
4486
+ {
4487
+ type: "function",
4488
+ inputs: [
4489
+ { name: "operator", internalType: "address", type: "address" },
4490
+ { name: "amount", internalType: "uint256", type: "uint256" },
4491
+ {
4492
+ name: "operatorNotificationData",
4493
+ internalType: "bytes",
4494
+ type: "bytes"
4495
+ }
4496
+ ],
4497
+ name: "authorizeOperator",
4498
+ outputs: [],
4499
+ stateMutability: "nonpayable"
4500
+ },
4501
+ {
4502
+ type: "function",
4503
+ inputs: [
4504
+ { name: "operator", internalType: "address", type: "address" },
4505
+ { name: "tokenOwner", internalType: "address", type: "address" }
4506
+ ],
4507
+ name: "authorizedAmountFor",
4508
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4509
+ stateMutability: "view"
4510
+ },
4511
+ {
4512
+ type: "function",
4513
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
4514
+ name: "balanceOf",
4515
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4516
+ stateMutability: "view"
4517
+ },
4518
+ {
4519
+ type: "function",
4520
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
4521
+ name: "batchCalls",
4522
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
4523
+ stateMutability: "nonpayable"
4524
+ },
4525
+ {
4526
+ type: "function",
4527
+ inputs: [
4528
+ { name: "account", internalType: "address", type: "address" },
4529
+ { name: "pos", internalType: "uint32", type: "uint32" }
4530
+ ],
4531
+ name: "checkpoints",
4532
+ outputs: [
4533
+ {
4534
+ name: "",
4535
+ internalType: "struct LSP7VotesInitAbstract.Checkpoint",
4536
+ type: "tuple",
4537
+ components: [
4538
+ { name: "fromBlock", internalType: "uint32", type: "uint32" },
4539
+ { name: "votes", internalType: "uint224", type: "uint224" }
4540
+ ]
4541
+ }
4542
+ ],
4543
+ stateMutability: "view"
4544
+ },
4545
+ {
4546
+ type: "function",
4547
+ inputs: [],
4548
+ name: "clock",
4549
+ outputs: [{ name: "", internalType: "uint48", type: "uint48" }],
4550
+ stateMutability: "view"
4551
+ },
4552
+ {
4553
+ type: "function",
4554
+ inputs: [],
4555
+ name: "decimals",
4556
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
4557
+ stateMutability: "view"
4558
+ },
4559
+ {
4560
+ type: "function",
4561
+ inputs: [
4562
+ { name: "operator", internalType: "address", type: "address" },
4563
+ { name: "tokenOwner", internalType: "address", type: "address" },
4564
+ { name: "subtractedAmount", internalType: "uint256", type: "uint256" },
4565
+ {
4566
+ name: "operatorNotificationData",
4567
+ internalType: "bytes",
4568
+ type: "bytes"
4569
+ }
4570
+ ],
4571
+ name: "decreaseAllowance",
4572
+ outputs: [],
4573
+ stateMutability: "nonpayable"
4574
+ },
4575
+ {
4576
+ type: "function",
4577
+ inputs: [{ name: "delegatee", internalType: "address", type: "address" }],
4578
+ name: "delegate",
4579
+ outputs: [],
4580
+ stateMutability: "nonpayable"
4581
+ },
4582
+ {
4583
+ type: "function",
4584
+ inputs: [
4585
+ { name: "delegatee", internalType: "address", type: "address" },
4586
+ { name: "nonce", internalType: "uint256", type: "uint256" },
4587
+ { name: "expiry", internalType: "uint256", type: "uint256" },
4588
+ { name: "v", internalType: "uint8", type: "uint8" },
4589
+ { name: "r", internalType: "bytes32", type: "bytes32" },
4590
+ { name: "s", internalType: "bytes32", type: "bytes32" }
4591
+ ],
4592
+ name: "delegateBySig",
4593
+ outputs: [],
4594
+ stateMutability: "nonpayable"
4595
+ },
4596
+ {
4597
+ type: "function",
4598
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
4599
+ name: "delegates",
4600
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4601
+ stateMutability: "view"
4602
+ },
4603
+ {
4604
+ type: "function",
4605
+ inputs: [],
4606
+ name: "eip712Domain",
4607
+ outputs: [
4608
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
4609
+ { name: "name", internalType: "string", type: "string" },
4610
+ { name: "version", internalType: "string", type: "string" },
4611
+ { name: "chainId", internalType: "uint256", type: "uint256" },
4612
+ { name: "verifyingContract", internalType: "address", type: "address" },
4613
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
4614
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
4615
+ ],
4616
+ stateMutability: "view"
4617
+ },
4618
+ {
4619
+ type: "function",
4620
+ inputs: [{ name: "dataKey", internalType: "bytes32", type: "bytes32" }],
4621
+ name: "getData",
4622
+ outputs: [{ name: "dataValue", internalType: "bytes", type: "bytes" }],
4623
+ stateMutability: "view"
4624
+ },
4625
+ {
4626
+ type: "function",
4627
+ inputs: [
4628
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" }
4629
+ ],
4630
+ name: "getDataBatch",
4631
+ outputs: [{ name: "dataValues", internalType: "bytes[]", type: "bytes[]" }],
4632
+ stateMutability: "view"
4633
+ },
4634
+ {
4635
+ type: "function",
4636
+ inputs: [{ name: "tokenOwner", internalType: "address", type: "address" }],
4637
+ name: "getOperatorsOf",
4638
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
4639
+ stateMutability: "view"
4640
+ },
4641
+ {
4642
+ type: "function",
4643
+ inputs: [{ name: "timepoint", internalType: "uint256", type: "uint256" }],
4644
+ name: "getPastTotalSupply",
4645
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4646
+ stateMutability: "view"
4647
+ },
4648
+ {
4649
+ type: "function",
4650
+ inputs: [
4651
+ { name: "account", internalType: "address", type: "address" },
4652
+ { name: "timepoint", internalType: "uint256", type: "uint256" }
4653
+ ],
4654
+ name: "getPastVotes",
4655
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4656
+ stateMutability: "view"
4657
+ },
4658
+ {
4659
+ type: "function",
4660
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
4661
+ name: "getVotes",
4662
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4663
+ stateMutability: "view"
4664
+ },
4665
+ {
4666
+ type: "function",
4667
+ inputs: [
4668
+ { name: "operator", internalType: "address", type: "address" },
4669
+ { name: "addedAmount", internalType: "uint256", type: "uint256" },
4670
+ {
4671
+ name: "operatorNotificationData",
4672
+ internalType: "bytes",
4673
+ type: "bytes"
4674
+ }
4675
+ ],
4676
+ name: "increaseAllowance",
4677
+ outputs: [],
4678
+ stateMutability: "nonpayable"
4679
+ },
4680
+ {
4681
+ type: "function",
4682
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
4683
+ name: "nonces",
4684
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4685
+ stateMutability: "view"
4686
+ },
4687
+ {
4688
+ type: "function",
4689
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
4690
+ name: "numCheckpoints",
4691
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
4692
+ stateMutability: "view"
4693
+ },
4694
+ {
4695
+ type: "function",
4696
+ inputs: [],
4697
+ name: "owner",
4698
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4699
+ stateMutability: "view"
4700
+ },
4701
+ {
4702
+ type: "function",
4703
+ inputs: [],
4704
+ name: "renounceOwnership",
4705
+ outputs: [],
4706
+ stateMutability: "nonpayable"
4707
+ },
4708
+ {
4709
+ type: "function",
4710
+ inputs: [
4711
+ { name: "operator", internalType: "address", type: "address" },
4712
+ { name: "tokenOwner", internalType: "address", type: "address" },
4713
+ { name: "notify", internalType: "bool", type: "bool" },
4714
+ {
4715
+ name: "operatorNotificationData",
4716
+ internalType: "bytes",
4717
+ type: "bytes"
4718
+ }
4719
+ ],
4720
+ name: "revokeOperator",
4721
+ outputs: [],
4722
+ stateMutability: "nonpayable"
4723
+ },
4724
+ {
4725
+ type: "function",
4726
+ inputs: [
4727
+ { name: "dataKey", internalType: "bytes32", type: "bytes32" },
4728
+ { name: "dataValue", internalType: "bytes", type: "bytes" }
4729
+ ],
4730
+ name: "setData",
4731
+ outputs: [],
4732
+ stateMutability: "payable"
4733
+ },
4734
+ {
4735
+ type: "function",
4736
+ inputs: [
4737
+ { name: "dataKeys", internalType: "bytes32[]", type: "bytes32[]" },
4738
+ { name: "dataValues", internalType: "bytes[]", type: "bytes[]" }
4739
+ ],
4740
+ name: "setDataBatch",
4741
+ outputs: [],
4742
+ stateMutability: "payable"
4743
+ },
4744
+ {
4745
+ type: "function",
4746
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
4747
+ name: "supportsInterface",
4748
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
4749
+ stateMutability: "view"
4750
+ },
4751
+ {
4752
+ type: "function",
4753
+ inputs: [],
4754
+ name: "totalSupply",
4755
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4756
+ stateMutability: "view"
4757
+ },
4758
+ {
4759
+ type: "function",
4760
+ inputs: [
4761
+ { name: "from", internalType: "address", type: "address" },
4762
+ { name: "to", internalType: "address", type: "address" },
4763
+ { name: "amount", internalType: "uint256", type: "uint256" },
4764
+ { name: "force", internalType: "bool", type: "bool" },
4765
+ { name: "data", internalType: "bytes", type: "bytes" }
4766
+ ],
4767
+ name: "transfer",
4768
+ outputs: [],
4769
+ stateMutability: "nonpayable"
4770
+ },
4771
+ {
4772
+ type: "function",
4773
+ inputs: [
4774
+ { name: "from", internalType: "address[]", type: "address[]" },
4775
+ { name: "to", internalType: "address[]", type: "address[]" },
4776
+ { name: "amount", internalType: "uint256[]", type: "uint256[]" },
4777
+ { name: "force", internalType: "bool[]", type: "bool[]" },
4778
+ { name: "data", internalType: "bytes[]", type: "bytes[]" }
4779
+ ],
4780
+ name: "transferBatch",
4781
+ outputs: [],
4782
+ stateMutability: "nonpayable"
4783
+ },
4784
+ {
4785
+ type: "function",
4786
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
4787
+ name: "transferOwnership",
4788
+ outputs: [],
4789
+ stateMutability: "nonpayable"
4790
+ },
4791
+ { type: "receive", stateMutability: "payable" }
4792
+ ];
4793
+
4794
+ export { ilsp7DigitalAssetAbi, lsp7BurnableAbi, lsp7BurnableInitAbstractAbi, lsp7CappedSupplyAbi, lsp7CappedSupplyInitAbstractAbi, lsp7DigitalAssetAbi, lsp7DigitalAssetInitAbstractAbi, lsp7MintableAbi, lsp7MintableInitAbi, lsp7VotesAbi, lsp7VotesInitAbstractAbi };