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