@lukso/lsp7-contracts 0.15.0-rc.0

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.
Files changed (41) hide show
  1. package/README.md +3 -0
  2. package/artifacts/LSP7CappedSupply.json +828 -0
  3. package/artifacts/LSP7CappedSupplyInitAbstract.json +841 -0
  4. package/artifacts/LSP7DigitalAsset.json +805 -0
  5. package/artifacts/LSP7DigitalAssetInitAbstract.json +818 -0
  6. package/artifacts/LSP7Mintable.json +864 -0
  7. package/artifacts/LSP7MintableInit.json +884 -0
  8. package/contracts/ILSP7DigitalAsset.sol +309 -0
  9. package/contracts/LSP7Constants.sol +16 -0
  10. package/contracts/LSP7DigitalAsset.sol +198 -0
  11. package/contracts/LSP7DigitalAssetCore.sol +744 -0
  12. package/contracts/LSP7DigitalAssetInitAbstract.sol +194 -0
  13. package/contracts/LSP7Errors.sol +103 -0
  14. package/contracts/extensions/LSP7Burnable.sol +26 -0
  15. package/contracts/extensions/LSP7BurnableInitAbstract.sol +27 -0
  16. package/contracts/extensions/LSP7CappedSupply.sol +83 -0
  17. package/contracts/extensions/LSP7CappedSupplyInitAbstract.sol +86 -0
  18. package/contracts/presets/ILSP7Mintable.sol +32 -0
  19. package/contracts/presets/LSP7Mintable.sol +53 -0
  20. package/contracts/presets/LSP7MintableInit.sol +44 -0
  21. package/contracts/presets/LSP7MintableInitAbstract.sol +57 -0
  22. package/dist/index.cjs +14 -0
  23. package/dist/index.d.cts +8 -0
  24. package/dist/index.d.mts +8 -0
  25. package/dist/index.d.ts +8 -0
  26. package/dist/index.mjs +11 -0
  27. package/package.json +54 -0
  28. package/types/LSP7CappedSupply.ts +712 -0
  29. package/types/LSP7CappedSupplyInitAbstract.ts +743 -0
  30. package/types/LSP7DigitalAsset.ts +698 -0
  31. package/types/LSP7DigitalAssetInitAbstract.ts +729 -0
  32. package/types/LSP7Mintable.ts +717 -0
  33. package/types/LSP7MintableInit.ts +779 -0
  34. package/types/common.ts +131 -0
  35. package/types/contracts/LSP7DigitalAsset.ts +698 -0
  36. package/types/contracts/LSP7DigitalAssetInitAbstract.ts +729 -0
  37. package/types/contracts/extensions/LSP7CappedSupply.ts +712 -0
  38. package/types/contracts/extensions/LSP7CappedSupplyInitAbstract.ts +743 -0
  39. package/types/contracts/presets/LSP7Mintable.ts +717 -0
  40. package/types/contracts/presets/LSP7MintableInit.ts +779 -0
  41. package/types/index.ts +16 -0
@@ -0,0 +1,828 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "LSP7CappedSupply",
4
+ "sourceName": "contracts/extensions/LSP7CappedSupply.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "ERC725Y_DataKeysValuesEmptyArray",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
13
+ "name": "ERC725Y_DataKeysValuesLengthMismatch",
14
+ "type": "error"
15
+ },
16
+ {
17
+ "inputs": [],
18
+ "name": "ERC725Y_MsgValueDisallowed",
19
+ "type": "error"
20
+ },
21
+ {
22
+ "inputs": [
23
+ {
24
+ "internalType": "bytes",
25
+ "name": "storedData",
26
+ "type": "bytes"
27
+ }
28
+ ],
29
+ "name": "InvalidExtensionAddress",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "bytes",
36
+ "name": "data",
37
+ "type": "bytes"
38
+ }
39
+ ],
40
+ "name": "InvalidFunctionSelector",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "LSP4TokenNameNotEditable",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "LSP4TokenSymbolNotEditable",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [],
55
+ "name": "LSP4TokenTypeNotEditable",
56
+ "type": "error"
57
+ },
58
+ {
59
+ "inputs": [
60
+ {
61
+ "internalType": "address",
62
+ "name": "tokenOwner",
63
+ "type": "address"
64
+ },
65
+ {
66
+ "internalType": "uint256",
67
+ "name": "authorizedAmount",
68
+ "type": "uint256"
69
+ },
70
+ {
71
+ "internalType": "address",
72
+ "name": "operator",
73
+ "type": "address"
74
+ },
75
+ {
76
+ "internalType": "uint256",
77
+ "name": "amount",
78
+ "type": "uint256"
79
+ }
80
+ ],
81
+ "name": "LSP7AmountExceedsAuthorizedAmount",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [
86
+ {
87
+ "internalType": "uint256",
88
+ "name": "balance",
89
+ "type": "uint256"
90
+ },
91
+ {
92
+ "internalType": "address",
93
+ "name": "tokenOwner",
94
+ "type": "address"
95
+ },
96
+ {
97
+ "internalType": "uint256",
98
+ "name": "amount",
99
+ "type": "uint256"
100
+ }
101
+ ],
102
+ "name": "LSP7AmountExceedsBalance",
103
+ "type": "error"
104
+ },
105
+ {
106
+ "inputs": [
107
+ {
108
+ "internalType": "uint256",
109
+ "name": "callIndex",
110
+ "type": "uint256"
111
+ }
112
+ ],
113
+ "name": "LSP7BatchCallFailed",
114
+ "type": "error"
115
+ },
116
+ {
117
+ "inputs": [],
118
+ "name": "LSP7CannotSendWithAddressZero",
119
+ "type": "error"
120
+ },
121
+ {
122
+ "inputs": [],
123
+ "name": "LSP7CannotUseAddressZeroAsOperator",
124
+ "type": "error"
125
+ },
126
+ {
127
+ "inputs": [],
128
+ "name": "LSP7CappedSupplyCannotMintOverCap",
129
+ "type": "error"
130
+ },
131
+ {
132
+ "inputs": [],
133
+ "name": "LSP7CappedSupplyRequired",
134
+ "type": "error"
135
+ },
136
+ {
137
+ "inputs": [
138
+ {
139
+ "internalType": "address",
140
+ "name": "caller",
141
+ "type": "address"
142
+ },
143
+ {
144
+ "internalType": "address",
145
+ "name": "tokenOwner",
146
+ "type": "address"
147
+ },
148
+ {
149
+ "internalType": "address",
150
+ "name": "operator",
151
+ "type": "address"
152
+ }
153
+ ],
154
+ "name": "LSP7DecreaseAllowanceNotAuthorized",
155
+ "type": "error"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "LSP7DecreasedAllowanceBelowZero",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "LSP7InvalidTransferBatch",
165
+ "type": "error"
166
+ },
167
+ {
168
+ "inputs": [
169
+ {
170
+ "internalType": "address",
171
+ "name": "tokenReceiver",
172
+ "type": "address"
173
+ }
174
+ ],
175
+ "name": "LSP7NotifyTokenReceiverContractMissingLSP1Interface",
176
+ "type": "error"
177
+ },
178
+ {
179
+ "inputs": [
180
+ {
181
+ "internalType": "address",
182
+ "name": "tokenReceiver",
183
+ "type": "address"
184
+ }
185
+ ],
186
+ "name": "LSP7NotifyTokenReceiverIsEOA",
187
+ "type": "error"
188
+ },
189
+ {
190
+ "inputs": [
191
+ {
192
+ "internalType": "address",
193
+ "name": "caller",
194
+ "type": "address"
195
+ },
196
+ {
197
+ "internalType": "address",
198
+ "name": "tokenOwner",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "internalType": "address",
203
+ "name": "operator",
204
+ "type": "address"
205
+ }
206
+ ],
207
+ "name": "LSP7RevokeOperatorNotAuthorized",
208
+ "type": "error"
209
+ },
210
+ {
211
+ "inputs": [],
212
+ "name": "LSP7TokenContractCannotHoldValue",
213
+ "type": "error"
214
+ },
215
+ {
216
+ "inputs": [],
217
+ "name": "LSP7TokenOwnerCannotBeOperator",
218
+ "type": "error"
219
+ },
220
+ {
221
+ "inputs": [
222
+ {
223
+ "internalType": "bytes4",
224
+ "name": "functionSelector",
225
+ "type": "bytes4"
226
+ }
227
+ ],
228
+ "name": "NoExtensionFoundForFunctionSelector",
229
+ "type": "error"
230
+ },
231
+ {
232
+ "inputs": [
233
+ {
234
+ "internalType": "address",
235
+ "name": "operator",
236
+ "type": "address"
237
+ }
238
+ ],
239
+ "name": "OperatorAllowanceCannotBeIncreasedFromZero",
240
+ "type": "error"
241
+ },
242
+ {
243
+ "inputs": [
244
+ {
245
+ "internalType": "address",
246
+ "name": "callerAddress",
247
+ "type": "address"
248
+ }
249
+ ],
250
+ "name": "OwnableCallerNotTheOwner",
251
+ "type": "error"
252
+ },
253
+ {
254
+ "inputs": [],
255
+ "name": "OwnableCannotSetZeroAddressAsOwner",
256
+ "type": "error"
257
+ },
258
+ {
259
+ "anonymous": false,
260
+ "inputs": [
261
+ {
262
+ "indexed": true,
263
+ "internalType": "bytes32",
264
+ "name": "dataKey",
265
+ "type": "bytes32"
266
+ },
267
+ {
268
+ "indexed": false,
269
+ "internalType": "bytes",
270
+ "name": "dataValue",
271
+ "type": "bytes"
272
+ }
273
+ ],
274
+ "name": "DataChanged",
275
+ "type": "event"
276
+ },
277
+ {
278
+ "anonymous": false,
279
+ "inputs": [
280
+ {
281
+ "indexed": true,
282
+ "internalType": "address",
283
+ "name": "operator",
284
+ "type": "address"
285
+ },
286
+ {
287
+ "indexed": true,
288
+ "internalType": "address",
289
+ "name": "tokenOwner",
290
+ "type": "address"
291
+ },
292
+ {
293
+ "indexed": true,
294
+ "internalType": "uint256",
295
+ "name": "amount",
296
+ "type": "uint256"
297
+ },
298
+ {
299
+ "indexed": false,
300
+ "internalType": "bytes",
301
+ "name": "operatorNotificationData",
302
+ "type": "bytes"
303
+ }
304
+ ],
305
+ "name": "OperatorAuthorizationChanged",
306
+ "type": "event"
307
+ },
308
+ {
309
+ "anonymous": false,
310
+ "inputs": [
311
+ {
312
+ "indexed": true,
313
+ "internalType": "address",
314
+ "name": "operator",
315
+ "type": "address"
316
+ },
317
+ {
318
+ "indexed": true,
319
+ "internalType": "address",
320
+ "name": "tokenOwner",
321
+ "type": "address"
322
+ },
323
+ {
324
+ "indexed": true,
325
+ "internalType": "bool",
326
+ "name": "notified",
327
+ "type": "bool"
328
+ },
329
+ {
330
+ "indexed": false,
331
+ "internalType": "bytes",
332
+ "name": "operatorNotificationData",
333
+ "type": "bytes"
334
+ }
335
+ ],
336
+ "name": "OperatorRevoked",
337
+ "type": "event"
338
+ },
339
+ {
340
+ "anonymous": false,
341
+ "inputs": [
342
+ {
343
+ "indexed": true,
344
+ "internalType": "address",
345
+ "name": "previousOwner",
346
+ "type": "address"
347
+ },
348
+ {
349
+ "indexed": true,
350
+ "internalType": "address",
351
+ "name": "newOwner",
352
+ "type": "address"
353
+ }
354
+ ],
355
+ "name": "OwnershipTransferred",
356
+ "type": "event"
357
+ },
358
+ {
359
+ "anonymous": false,
360
+ "inputs": [
361
+ {
362
+ "indexed": true,
363
+ "internalType": "address",
364
+ "name": "operator",
365
+ "type": "address"
366
+ },
367
+ {
368
+ "indexed": true,
369
+ "internalType": "address",
370
+ "name": "from",
371
+ "type": "address"
372
+ },
373
+ {
374
+ "indexed": true,
375
+ "internalType": "address",
376
+ "name": "to",
377
+ "type": "address"
378
+ },
379
+ {
380
+ "indexed": false,
381
+ "internalType": "uint256",
382
+ "name": "amount",
383
+ "type": "uint256"
384
+ },
385
+ {
386
+ "indexed": false,
387
+ "internalType": "bool",
388
+ "name": "force",
389
+ "type": "bool"
390
+ },
391
+ {
392
+ "indexed": false,
393
+ "internalType": "bytes",
394
+ "name": "data",
395
+ "type": "bytes"
396
+ }
397
+ ],
398
+ "name": "Transfer",
399
+ "type": "event"
400
+ },
401
+ {
402
+ "stateMutability": "payable",
403
+ "type": "fallback"
404
+ },
405
+ {
406
+ "inputs": [
407
+ {
408
+ "internalType": "address",
409
+ "name": "operator",
410
+ "type": "address"
411
+ },
412
+ {
413
+ "internalType": "uint256",
414
+ "name": "amount",
415
+ "type": "uint256"
416
+ },
417
+ {
418
+ "internalType": "bytes",
419
+ "name": "operatorNotificationData",
420
+ "type": "bytes"
421
+ }
422
+ ],
423
+ "name": "authorizeOperator",
424
+ "outputs": [],
425
+ "stateMutability": "nonpayable",
426
+ "type": "function"
427
+ },
428
+ {
429
+ "inputs": [
430
+ {
431
+ "internalType": "address",
432
+ "name": "operator",
433
+ "type": "address"
434
+ },
435
+ {
436
+ "internalType": "address",
437
+ "name": "tokenOwner",
438
+ "type": "address"
439
+ }
440
+ ],
441
+ "name": "authorizedAmountFor",
442
+ "outputs": [
443
+ {
444
+ "internalType": "uint256",
445
+ "name": "",
446
+ "type": "uint256"
447
+ }
448
+ ],
449
+ "stateMutability": "view",
450
+ "type": "function"
451
+ },
452
+ {
453
+ "inputs": [
454
+ {
455
+ "internalType": "address",
456
+ "name": "tokenOwner",
457
+ "type": "address"
458
+ }
459
+ ],
460
+ "name": "balanceOf",
461
+ "outputs": [
462
+ {
463
+ "internalType": "uint256",
464
+ "name": "",
465
+ "type": "uint256"
466
+ }
467
+ ],
468
+ "stateMutability": "view",
469
+ "type": "function"
470
+ },
471
+ {
472
+ "inputs": [
473
+ {
474
+ "internalType": "bytes[]",
475
+ "name": "data",
476
+ "type": "bytes[]"
477
+ }
478
+ ],
479
+ "name": "batchCalls",
480
+ "outputs": [
481
+ {
482
+ "internalType": "bytes[]",
483
+ "name": "results",
484
+ "type": "bytes[]"
485
+ }
486
+ ],
487
+ "stateMutability": "nonpayable",
488
+ "type": "function"
489
+ },
490
+ {
491
+ "inputs": [],
492
+ "name": "decimals",
493
+ "outputs": [
494
+ {
495
+ "internalType": "uint8",
496
+ "name": "",
497
+ "type": "uint8"
498
+ }
499
+ ],
500
+ "stateMutability": "view",
501
+ "type": "function"
502
+ },
503
+ {
504
+ "inputs": [
505
+ {
506
+ "internalType": "address",
507
+ "name": "operator",
508
+ "type": "address"
509
+ },
510
+ {
511
+ "internalType": "address",
512
+ "name": "tokenOwner",
513
+ "type": "address"
514
+ },
515
+ {
516
+ "internalType": "uint256",
517
+ "name": "subtractedAmount",
518
+ "type": "uint256"
519
+ },
520
+ {
521
+ "internalType": "bytes",
522
+ "name": "operatorNotificationData",
523
+ "type": "bytes"
524
+ }
525
+ ],
526
+ "name": "decreaseAllowance",
527
+ "outputs": [],
528
+ "stateMutability": "nonpayable",
529
+ "type": "function"
530
+ },
531
+ {
532
+ "inputs": [
533
+ {
534
+ "internalType": "bytes32",
535
+ "name": "dataKey",
536
+ "type": "bytes32"
537
+ }
538
+ ],
539
+ "name": "getData",
540
+ "outputs": [
541
+ {
542
+ "internalType": "bytes",
543
+ "name": "dataValue",
544
+ "type": "bytes"
545
+ }
546
+ ],
547
+ "stateMutability": "view",
548
+ "type": "function"
549
+ },
550
+ {
551
+ "inputs": [
552
+ {
553
+ "internalType": "bytes32[]",
554
+ "name": "dataKeys",
555
+ "type": "bytes32[]"
556
+ }
557
+ ],
558
+ "name": "getDataBatch",
559
+ "outputs": [
560
+ {
561
+ "internalType": "bytes[]",
562
+ "name": "dataValues",
563
+ "type": "bytes[]"
564
+ }
565
+ ],
566
+ "stateMutability": "view",
567
+ "type": "function"
568
+ },
569
+ {
570
+ "inputs": [
571
+ {
572
+ "internalType": "address",
573
+ "name": "tokenOwner",
574
+ "type": "address"
575
+ }
576
+ ],
577
+ "name": "getOperatorsOf",
578
+ "outputs": [
579
+ {
580
+ "internalType": "address[]",
581
+ "name": "",
582
+ "type": "address[]"
583
+ }
584
+ ],
585
+ "stateMutability": "view",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [
590
+ {
591
+ "internalType": "address",
592
+ "name": "operator",
593
+ "type": "address"
594
+ },
595
+ {
596
+ "internalType": "uint256",
597
+ "name": "addedAmount",
598
+ "type": "uint256"
599
+ },
600
+ {
601
+ "internalType": "bytes",
602
+ "name": "operatorNotificationData",
603
+ "type": "bytes"
604
+ }
605
+ ],
606
+ "name": "increaseAllowance",
607
+ "outputs": [],
608
+ "stateMutability": "nonpayable",
609
+ "type": "function"
610
+ },
611
+ {
612
+ "inputs": [],
613
+ "name": "owner",
614
+ "outputs": [
615
+ {
616
+ "internalType": "address",
617
+ "name": "",
618
+ "type": "address"
619
+ }
620
+ ],
621
+ "stateMutability": "view",
622
+ "type": "function"
623
+ },
624
+ {
625
+ "inputs": [],
626
+ "name": "renounceOwnership",
627
+ "outputs": [],
628
+ "stateMutability": "nonpayable",
629
+ "type": "function"
630
+ },
631
+ {
632
+ "inputs": [
633
+ {
634
+ "internalType": "address",
635
+ "name": "operator",
636
+ "type": "address"
637
+ },
638
+ {
639
+ "internalType": "address",
640
+ "name": "tokenOwner",
641
+ "type": "address"
642
+ },
643
+ {
644
+ "internalType": "bool",
645
+ "name": "notify",
646
+ "type": "bool"
647
+ },
648
+ {
649
+ "internalType": "bytes",
650
+ "name": "operatorNotificationData",
651
+ "type": "bytes"
652
+ }
653
+ ],
654
+ "name": "revokeOperator",
655
+ "outputs": [],
656
+ "stateMutability": "nonpayable",
657
+ "type": "function"
658
+ },
659
+ {
660
+ "inputs": [
661
+ {
662
+ "internalType": "bytes32",
663
+ "name": "dataKey",
664
+ "type": "bytes32"
665
+ },
666
+ {
667
+ "internalType": "bytes",
668
+ "name": "dataValue",
669
+ "type": "bytes"
670
+ }
671
+ ],
672
+ "name": "setData",
673
+ "outputs": [],
674
+ "stateMutability": "payable",
675
+ "type": "function"
676
+ },
677
+ {
678
+ "inputs": [
679
+ {
680
+ "internalType": "bytes32[]",
681
+ "name": "dataKeys",
682
+ "type": "bytes32[]"
683
+ },
684
+ {
685
+ "internalType": "bytes[]",
686
+ "name": "dataValues",
687
+ "type": "bytes[]"
688
+ }
689
+ ],
690
+ "name": "setDataBatch",
691
+ "outputs": [],
692
+ "stateMutability": "payable",
693
+ "type": "function"
694
+ },
695
+ {
696
+ "inputs": [
697
+ {
698
+ "internalType": "bytes4",
699
+ "name": "interfaceId",
700
+ "type": "bytes4"
701
+ }
702
+ ],
703
+ "name": "supportsInterface",
704
+ "outputs": [
705
+ {
706
+ "internalType": "bool",
707
+ "name": "",
708
+ "type": "bool"
709
+ }
710
+ ],
711
+ "stateMutability": "view",
712
+ "type": "function"
713
+ },
714
+ {
715
+ "inputs": [],
716
+ "name": "tokenSupplyCap",
717
+ "outputs": [
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "",
721
+ "type": "uint256"
722
+ }
723
+ ],
724
+ "stateMutability": "view",
725
+ "type": "function"
726
+ },
727
+ {
728
+ "inputs": [],
729
+ "name": "totalSupply",
730
+ "outputs": [
731
+ {
732
+ "internalType": "uint256",
733
+ "name": "",
734
+ "type": "uint256"
735
+ }
736
+ ],
737
+ "stateMutability": "view",
738
+ "type": "function"
739
+ },
740
+ {
741
+ "inputs": [
742
+ {
743
+ "internalType": "address",
744
+ "name": "from",
745
+ "type": "address"
746
+ },
747
+ {
748
+ "internalType": "address",
749
+ "name": "to",
750
+ "type": "address"
751
+ },
752
+ {
753
+ "internalType": "uint256",
754
+ "name": "amount",
755
+ "type": "uint256"
756
+ },
757
+ {
758
+ "internalType": "bool",
759
+ "name": "force",
760
+ "type": "bool"
761
+ },
762
+ {
763
+ "internalType": "bytes",
764
+ "name": "data",
765
+ "type": "bytes"
766
+ }
767
+ ],
768
+ "name": "transfer",
769
+ "outputs": [],
770
+ "stateMutability": "nonpayable",
771
+ "type": "function"
772
+ },
773
+ {
774
+ "inputs": [
775
+ {
776
+ "internalType": "address[]",
777
+ "name": "from",
778
+ "type": "address[]"
779
+ },
780
+ {
781
+ "internalType": "address[]",
782
+ "name": "to",
783
+ "type": "address[]"
784
+ },
785
+ {
786
+ "internalType": "uint256[]",
787
+ "name": "amount",
788
+ "type": "uint256[]"
789
+ },
790
+ {
791
+ "internalType": "bool[]",
792
+ "name": "force",
793
+ "type": "bool[]"
794
+ },
795
+ {
796
+ "internalType": "bytes[]",
797
+ "name": "data",
798
+ "type": "bytes[]"
799
+ }
800
+ ],
801
+ "name": "transferBatch",
802
+ "outputs": [],
803
+ "stateMutability": "nonpayable",
804
+ "type": "function"
805
+ },
806
+ {
807
+ "inputs": [
808
+ {
809
+ "internalType": "address",
810
+ "name": "newOwner",
811
+ "type": "address"
812
+ }
813
+ ],
814
+ "name": "transferOwnership",
815
+ "outputs": [],
816
+ "stateMutability": "nonpayable",
817
+ "type": "function"
818
+ },
819
+ {
820
+ "stateMutability": "payable",
821
+ "type": "receive"
822
+ }
823
+ ],
824
+ "bytecode": "0x",
825
+ "deployedBytecode": "0x",
826
+ "linkReferences": {},
827
+ "deployedLinkReferences": {}
828
+ }