@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,805 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "LSP7DigitalAsset",
4
+ "sourceName": "contracts/LSP7DigitalAsset.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": true,
272
+ "internalType": "address",
273
+ "name": "operator",
274
+ "type": "address"
275
+ },
276
+ {
277
+ "indexed": true,
278
+ "internalType": "address",
279
+ "name": "tokenOwner",
280
+ "type": "address"
281
+ },
282
+ {
283
+ "indexed": true,
284
+ "internalType": "uint256",
285
+ "name": "amount",
286
+ "type": "uint256"
287
+ },
288
+ {
289
+ "indexed": false,
290
+ "internalType": "bytes",
291
+ "name": "operatorNotificationData",
292
+ "type": "bytes"
293
+ }
294
+ ],
295
+ "name": "OperatorAuthorizationChanged",
296
+ "type": "event"
297
+ },
298
+ {
299
+ "anonymous": false,
300
+ "inputs": [
301
+ {
302
+ "indexed": true,
303
+ "internalType": "address",
304
+ "name": "operator",
305
+ "type": "address"
306
+ },
307
+ {
308
+ "indexed": true,
309
+ "internalType": "address",
310
+ "name": "tokenOwner",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "indexed": true,
315
+ "internalType": "bool",
316
+ "name": "notified",
317
+ "type": "bool"
318
+ },
319
+ {
320
+ "indexed": false,
321
+ "internalType": "bytes",
322
+ "name": "operatorNotificationData",
323
+ "type": "bytes"
324
+ }
325
+ ],
326
+ "name": "OperatorRevoked",
327
+ "type": "event"
328
+ },
329
+ {
330
+ "anonymous": false,
331
+ "inputs": [
332
+ {
333
+ "indexed": true,
334
+ "internalType": "address",
335
+ "name": "previousOwner",
336
+ "type": "address"
337
+ },
338
+ {
339
+ "indexed": true,
340
+ "internalType": "address",
341
+ "name": "newOwner",
342
+ "type": "address"
343
+ }
344
+ ],
345
+ "name": "OwnershipTransferred",
346
+ "type": "event"
347
+ },
348
+ {
349
+ "anonymous": false,
350
+ "inputs": [
351
+ {
352
+ "indexed": true,
353
+ "internalType": "address",
354
+ "name": "operator",
355
+ "type": "address"
356
+ },
357
+ {
358
+ "indexed": true,
359
+ "internalType": "address",
360
+ "name": "from",
361
+ "type": "address"
362
+ },
363
+ {
364
+ "indexed": true,
365
+ "internalType": "address",
366
+ "name": "to",
367
+ "type": "address"
368
+ },
369
+ {
370
+ "indexed": false,
371
+ "internalType": "uint256",
372
+ "name": "amount",
373
+ "type": "uint256"
374
+ },
375
+ {
376
+ "indexed": false,
377
+ "internalType": "bool",
378
+ "name": "force",
379
+ "type": "bool"
380
+ },
381
+ {
382
+ "indexed": false,
383
+ "internalType": "bytes",
384
+ "name": "data",
385
+ "type": "bytes"
386
+ }
387
+ ],
388
+ "name": "Transfer",
389
+ "type": "event"
390
+ },
391
+ {
392
+ "stateMutability": "payable",
393
+ "type": "fallback"
394
+ },
395
+ {
396
+ "inputs": [
397
+ {
398
+ "internalType": "address",
399
+ "name": "operator",
400
+ "type": "address"
401
+ },
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "amount",
405
+ "type": "uint256"
406
+ },
407
+ {
408
+ "internalType": "bytes",
409
+ "name": "operatorNotificationData",
410
+ "type": "bytes"
411
+ }
412
+ ],
413
+ "name": "authorizeOperator",
414
+ "outputs": [],
415
+ "stateMutability": "nonpayable",
416
+ "type": "function"
417
+ },
418
+ {
419
+ "inputs": [
420
+ {
421
+ "internalType": "address",
422
+ "name": "operator",
423
+ "type": "address"
424
+ },
425
+ {
426
+ "internalType": "address",
427
+ "name": "tokenOwner",
428
+ "type": "address"
429
+ }
430
+ ],
431
+ "name": "authorizedAmountFor",
432
+ "outputs": [
433
+ {
434
+ "internalType": "uint256",
435
+ "name": "",
436
+ "type": "uint256"
437
+ }
438
+ ],
439
+ "stateMutability": "view",
440
+ "type": "function"
441
+ },
442
+ {
443
+ "inputs": [
444
+ {
445
+ "internalType": "address",
446
+ "name": "tokenOwner",
447
+ "type": "address"
448
+ }
449
+ ],
450
+ "name": "balanceOf",
451
+ "outputs": [
452
+ {
453
+ "internalType": "uint256",
454
+ "name": "",
455
+ "type": "uint256"
456
+ }
457
+ ],
458
+ "stateMutability": "view",
459
+ "type": "function"
460
+ },
461
+ {
462
+ "inputs": [
463
+ {
464
+ "internalType": "bytes[]",
465
+ "name": "data",
466
+ "type": "bytes[]"
467
+ }
468
+ ],
469
+ "name": "batchCalls",
470
+ "outputs": [
471
+ {
472
+ "internalType": "bytes[]",
473
+ "name": "results",
474
+ "type": "bytes[]"
475
+ }
476
+ ],
477
+ "stateMutability": "nonpayable",
478
+ "type": "function"
479
+ },
480
+ {
481
+ "inputs": [],
482
+ "name": "decimals",
483
+ "outputs": [
484
+ {
485
+ "internalType": "uint8",
486
+ "name": "",
487
+ "type": "uint8"
488
+ }
489
+ ],
490
+ "stateMutability": "view",
491
+ "type": "function"
492
+ },
493
+ {
494
+ "inputs": [
495
+ {
496
+ "internalType": "address",
497
+ "name": "operator",
498
+ "type": "address"
499
+ },
500
+ {
501
+ "internalType": "address",
502
+ "name": "tokenOwner",
503
+ "type": "address"
504
+ },
505
+ {
506
+ "internalType": "uint256",
507
+ "name": "subtractedAmount",
508
+ "type": "uint256"
509
+ },
510
+ {
511
+ "internalType": "bytes",
512
+ "name": "operatorNotificationData",
513
+ "type": "bytes"
514
+ }
515
+ ],
516
+ "name": "decreaseAllowance",
517
+ "outputs": [],
518
+ "stateMutability": "nonpayable",
519
+ "type": "function"
520
+ },
521
+ {
522
+ "inputs": [
523
+ {
524
+ "internalType": "bytes32",
525
+ "name": "dataKey",
526
+ "type": "bytes32"
527
+ }
528
+ ],
529
+ "name": "getData",
530
+ "outputs": [
531
+ {
532
+ "internalType": "bytes",
533
+ "name": "dataValue",
534
+ "type": "bytes"
535
+ }
536
+ ],
537
+ "stateMutability": "view",
538
+ "type": "function"
539
+ },
540
+ {
541
+ "inputs": [
542
+ {
543
+ "internalType": "bytes32[]",
544
+ "name": "dataKeys",
545
+ "type": "bytes32[]"
546
+ }
547
+ ],
548
+ "name": "getDataBatch",
549
+ "outputs": [
550
+ {
551
+ "internalType": "bytes[]",
552
+ "name": "dataValues",
553
+ "type": "bytes[]"
554
+ }
555
+ ],
556
+ "stateMutability": "view",
557
+ "type": "function"
558
+ },
559
+ {
560
+ "inputs": [
561
+ {
562
+ "internalType": "address",
563
+ "name": "tokenOwner",
564
+ "type": "address"
565
+ }
566
+ ],
567
+ "name": "getOperatorsOf",
568
+ "outputs": [
569
+ {
570
+ "internalType": "address[]",
571
+ "name": "",
572
+ "type": "address[]"
573
+ }
574
+ ],
575
+ "stateMutability": "view",
576
+ "type": "function"
577
+ },
578
+ {
579
+ "inputs": [
580
+ {
581
+ "internalType": "address",
582
+ "name": "operator",
583
+ "type": "address"
584
+ },
585
+ {
586
+ "internalType": "uint256",
587
+ "name": "addedAmount",
588
+ "type": "uint256"
589
+ },
590
+ {
591
+ "internalType": "bytes",
592
+ "name": "operatorNotificationData",
593
+ "type": "bytes"
594
+ }
595
+ ],
596
+ "name": "increaseAllowance",
597
+ "outputs": [],
598
+ "stateMutability": "nonpayable",
599
+ "type": "function"
600
+ },
601
+ {
602
+ "inputs": [],
603
+ "name": "owner",
604
+ "outputs": [
605
+ {
606
+ "internalType": "address",
607
+ "name": "",
608
+ "type": "address"
609
+ }
610
+ ],
611
+ "stateMutability": "view",
612
+ "type": "function"
613
+ },
614
+ {
615
+ "inputs": [],
616
+ "name": "renounceOwnership",
617
+ "outputs": [],
618
+ "stateMutability": "nonpayable",
619
+ "type": "function"
620
+ },
621
+ {
622
+ "inputs": [
623
+ {
624
+ "internalType": "address",
625
+ "name": "operator",
626
+ "type": "address"
627
+ },
628
+ {
629
+ "internalType": "address",
630
+ "name": "tokenOwner",
631
+ "type": "address"
632
+ },
633
+ {
634
+ "internalType": "bool",
635
+ "name": "notify",
636
+ "type": "bool"
637
+ },
638
+ {
639
+ "internalType": "bytes",
640
+ "name": "operatorNotificationData",
641
+ "type": "bytes"
642
+ }
643
+ ],
644
+ "name": "revokeOperator",
645
+ "outputs": [],
646
+ "stateMutability": "nonpayable",
647
+ "type": "function"
648
+ },
649
+ {
650
+ "inputs": [
651
+ {
652
+ "internalType": "bytes32",
653
+ "name": "dataKey",
654
+ "type": "bytes32"
655
+ },
656
+ {
657
+ "internalType": "bytes",
658
+ "name": "dataValue",
659
+ "type": "bytes"
660
+ }
661
+ ],
662
+ "name": "setData",
663
+ "outputs": [],
664
+ "stateMutability": "payable",
665
+ "type": "function"
666
+ },
667
+ {
668
+ "inputs": [
669
+ {
670
+ "internalType": "bytes32[]",
671
+ "name": "dataKeys",
672
+ "type": "bytes32[]"
673
+ },
674
+ {
675
+ "internalType": "bytes[]",
676
+ "name": "dataValues",
677
+ "type": "bytes[]"
678
+ }
679
+ ],
680
+ "name": "setDataBatch",
681
+ "outputs": [],
682
+ "stateMutability": "payable",
683
+ "type": "function"
684
+ },
685
+ {
686
+ "inputs": [
687
+ {
688
+ "internalType": "bytes4",
689
+ "name": "interfaceId",
690
+ "type": "bytes4"
691
+ }
692
+ ],
693
+ "name": "supportsInterface",
694
+ "outputs": [
695
+ {
696
+ "internalType": "bool",
697
+ "name": "",
698
+ "type": "bool"
699
+ }
700
+ ],
701
+ "stateMutability": "view",
702
+ "type": "function"
703
+ },
704
+ {
705
+ "inputs": [],
706
+ "name": "totalSupply",
707
+ "outputs": [
708
+ {
709
+ "internalType": "uint256",
710
+ "name": "",
711
+ "type": "uint256"
712
+ }
713
+ ],
714
+ "stateMutability": "view",
715
+ "type": "function"
716
+ },
717
+ {
718
+ "inputs": [
719
+ {
720
+ "internalType": "address",
721
+ "name": "from",
722
+ "type": "address"
723
+ },
724
+ {
725
+ "internalType": "address",
726
+ "name": "to",
727
+ "type": "address"
728
+ },
729
+ {
730
+ "internalType": "uint256",
731
+ "name": "amount",
732
+ "type": "uint256"
733
+ },
734
+ {
735
+ "internalType": "bool",
736
+ "name": "force",
737
+ "type": "bool"
738
+ },
739
+ {
740
+ "internalType": "bytes",
741
+ "name": "data",
742
+ "type": "bytes"
743
+ }
744
+ ],
745
+ "name": "transfer",
746
+ "outputs": [],
747
+ "stateMutability": "nonpayable",
748
+ "type": "function"
749
+ },
750
+ {
751
+ "inputs": [
752
+ {
753
+ "internalType": "address[]",
754
+ "name": "from",
755
+ "type": "address[]"
756
+ },
757
+ {
758
+ "internalType": "address[]",
759
+ "name": "to",
760
+ "type": "address[]"
761
+ },
762
+ {
763
+ "internalType": "uint256[]",
764
+ "name": "amount",
765
+ "type": "uint256[]"
766
+ },
767
+ {
768
+ "internalType": "bool[]",
769
+ "name": "force",
770
+ "type": "bool[]"
771
+ },
772
+ {
773
+ "internalType": "bytes[]",
774
+ "name": "data",
775
+ "type": "bytes[]"
776
+ }
777
+ ],
778
+ "name": "transferBatch",
779
+ "outputs": [],
780
+ "stateMutability": "nonpayable",
781
+ "type": "function"
782
+ },
783
+ {
784
+ "inputs": [
785
+ {
786
+ "internalType": "address",
787
+ "name": "newOwner",
788
+ "type": "address"
789
+ }
790
+ ],
791
+ "name": "transferOwnership",
792
+ "outputs": [],
793
+ "stateMutability": "nonpayable",
794
+ "type": "function"
795
+ },
796
+ {
797
+ "stateMutability": "payable",
798
+ "type": "receive"
799
+ }
800
+ ],
801
+ "bytecode": "0x",
802
+ "deployedBytecode": "0x",
803
+ "linkReferences": {},
804
+ "deployedLinkReferences": {}
805
+ }