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