@lukso/lsp8-contracts 0.17.3 → 0.19.1

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 (63) hide show
  1. package/README.md +69 -24
  2. package/artifacts/IAccessControlExtended.json +1 -1
  3. package/artifacts/ILSP8CappedBalance.json +1 -1
  4. package/artifacts/ILSP8CappedSupply.json +1 -1
  5. package/artifacts/ILSP8IdentifiableDigitalAsset.json +1 -1
  6. package/artifacts/ILSP8Mintable.json +1 -1
  7. package/artifacts/ILSP8NonTransferable.json +8 -2
  8. package/artifacts/ILSP8Revokable.json +38 -1
  9. package/artifacts/LSP8Burnable.json +1 -1
  10. package/artifacts/LSP8BurnableInitAbstract.json +1 -1
  11. package/artifacts/LSP8CappedBalanceAbstract.json +1 -1
  12. package/artifacts/LSP8CappedBalanceInitAbstract.json +1 -1
  13. package/artifacts/LSP8CappedSupplyAbstract.json +1 -1
  14. package/artifacts/LSP8CappedSupplyInitAbstract.json +1 -1
  15. package/artifacts/LSP8CustomizableToken.json +64 -21
  16. package/artifacts/LSP8CustomizableTokenInit.json +59 -16
  17. package/artifacts/LSP8Enumerable.json +1 -1
  18. package/artifacts/LSP8EnumerableInitAbstract.json +1 -1
  19. package/artifacts/LSP8IdentifiableDigitalAsset.json +1 -1
  20. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +1 -1
  21. package/artifacts/LSP8Mintable.json +21 -3
  22. package/artifacts/LSP8MintableAbstract.json +1 -1
  23. package/artifacts/LSP8MintableInit.json +21 -3
  24. package/artifacts/LSP8MintableInitAbstract.json +1 -1
  25. package/artifacts/LSP8NonTransferableAbstract.json +20 -14
  26. package/artifacts/LSP8NonTransferableInitAbstract.json +20 -14
  27. package/artifacts/LSP8RevokableAbstract.json +38 -1
  28. package/artifacts/LSP8RevokableInitAbstract.json +38 -1
  29. package/artifacts/LSP8Votes.json +1 -1
  30. package/artifacts/LSP8VotesInitAbstract.json +1 -1
  31. package/contracts/extensions/AccessControlExtended/AccessControlExtendedAbstract.sol +3 -9
  32. package/contracts/extensions/AccessControlExtended/AccessControlExtendedInitAbstract.sol +4 -12
  33. package/contracts/extensions/AccessControlExtended/IAccessControlExtended.sol +1 -3
  34. package/contracts/extensions/LSP8Burnable/LSP8Burnable.sol +1 -3
  35. package/contracts/extensions/LSP8Burnable/LSP8BurnableInitAbstract.sol +1 -3
  36. package/contracts/extensions/LSP8CappedBalance/LSP8CappedBalanceAbstract.sol +2 -6
  37. package/contracts/extensions/LSP8CappedBalance/LSP8CappedBalanceInitAbstract.sol +3 -9
  38. package/contracts/extensions/LSP8CappedSupply/LSP8CappedSupplyAbstract.sol +1 -3
  39. package/contracts/extensions/LSP8CappedSupply/LSP8CappedSupplyInitAbstract.sol +1 -3
  40. package/contracts/extensions/LSP8Enumerable/LSP8Enumerable.sol +1 -3
  41. package/contracts/extensions/LSP8Enumerable/LSP8EnumerableInitAbstract.sol +1 -3
  42. package/contracts/extensions/LSP8Mintable/LSP8MintableAbstract.sol +2 -6
  43. package/contracts/extensions/LSP8Mintable/LSP8MintableInitAbstract.sol +3 -9
  44. package/contracts/extensions/LSP8MusicNFT/LSP8MusicNFTAbstract.sol +30 -0
  45. package/contracts/extensions/LSP8MusicNFT/LSP8MusicNFTConstants.sol +13 -0
  46. package/contracts/extensions/LSP8NonTransferable/ILSP8NonTransferable.sol +9 -3
  47. package/contracts/extensions/LSP8NonTransferable/LSP8NonTransferableAbstract.sol +22 -14
  48. package/contracts/extensions/LSP8NonTransferable/LSP8NonTransferableInitAbstract.sol +23 -17
  49. package/contracts/extensions/LSP8Revokable/ILSP8Revokable.sol +15 -1
  50. package/contracts/extensions/LSP8Revokable/LSP8RevokableAbstract.sol +11 -9
  51. package/contracts/extensions/LSP8Revokable/LSP8RevokableInitAbstract.sol +19 -13
  52. package/contracts/extensions/LSP8Votes/LSP8Votes.sol +1 -3
  53. package/contracts/extensions/LSP8Votes/LSP8VotesInitAbstract.sol +2 -6
  54. package/contracts/presets/LSP8CustomizableToken.sol +9 -27
  55. package/contracts/presets/LSP8CustomizableTokenInit.sol +10 -30
  56. package/contracts/presets/LSP8Mintable.sol +47 -11
  57. package/contracts/presets/LSP8MintableInit.sol +55 -8
  58. package/dist/abi.cjs +189 -29
  59. package/dist/abi.d.cts +244 -41
  60. package/dist/abi.d.mts +244 -41
  61. package/dist/abi.d.ts +244 -41
  62. package/dist/abi.mjs +189 -29
  63. package/package.json +5 -1
package/dist/abi.d.cts CHANGED
@@ -645,6 +645,11 @@ declare const ilsp8NonTransferableAbi: readonly [{
645
645
  readonly type: "event";
646
646
  readonly anonymous: false;
647
647
  readonly inputs: readonly [{
648
+ readonly name: "nonTransferabilityEnabled";
649
+ readonly internalType: "bool";
650
+ readonly type: "bool";
651
+ readonly indexed: true;
652
+ }, {
648
653
  readonly name: "start";
649
654
  readonly internalType: "uint256";
650
655
  readonly type: "uint256";
@@ -675,7 +680,7 @@ declare const ilsp8NonTransferableAbi: readonly [{
675
680
  }, {
676
681
  readonly type: "function";
677
682
  readonly inputs: readonly [];
678
- readonly name: "transferLockEnabled";
683
+ readonly name: "nonTransferabilityEnabled";
679
684
  readonly outputs: readonly [{
680
685
  readonly name: "";
681
686
  readonly internalType: "bool";
@@ -727,6 +732,36 @@ declare const ilsp8RevokableAbi: readonly [{
727
732
  readonly indexed: true;
728
733
  }];
729
734
  readonly name: "RevokableStatusChanged";
735
+ }, {
736
+ readonly type: "event";
737
+ readonly anonymous: false;
738
+ readonly inputs: readonly [{
739
+ readonly name: "revoker";
740
+ readonly internalType: "address";
741
+ readonly type: "address";
742
+ readonly indexed: true;
743
+ }, {
744
+ readonly name: "from";
745
+ readonly internalType: "address";
746
+ readonly type: "address";
747
+ readonly indexed: true;
748
+ }, {
749
+ readonly name: "to";
750
+ readonly internalType: "address";
751
+ readonly type: "address";
752
+ readonly indexed: true;
753
+ }, {
754
+ readonly name: "tokenId";
755
+ readonly internalType: "bytes32";
756
+ readonly type: "bytes32";
757
+ readonly indexed: false;
758
+ }, {
759
+ readonly name: "data";
760
+ readonly internalType: "bytes";
761
+ readonly type: "bytes";
762
+ readonly indexed: false;
763
+ }];
764
+ readonly name: "TokenRevoked";
730
765
  }, {
731
766
  readonly type: "function";
732
767
  readonly inputs: readonly [];
@@ -6139,6 +6174,36 @@ declare const lsp8CustomizableTokenAbi: readonly [{
6139
6174
  readonly indexed: false;
6140
6175
  }];
6141
6176
  readonly name: "TokenIdDataChanged";
6177
+ }, {
6178
+ readonly type: "event";
6179
+ readonly anonymous: false;
6180
+ readonly inputs: readonly [{
6181
+ readonly name: "revoker";
6182
+ readonly internalType: "address";
6183
+ readonly type: "address";
6184
+ readonly indexed: true;
6185
+ }, {
6186
+ readonly name: "from";
6187
+ readonly internalType: "address";
6188
+ readonly type: "address";
6189
+ readonly indexed: true;
6190
+ }, {
6191
+ readonly name: "to";
6192
+ readonly internalType: "address";
6193
+ readonly type: "address";
6194
+ readonly indexed: true;
6195
+ }, {
6196
+ readonly name: "tokenId";
6197
+ readonly internalType: "bytes32";
6198
+ readonly type: "bytes32";
6199
+ readonly indexed: false;
6200
+ }, {
6201
+ readonly name: "data";
6202
+ readonly internalType: "bytes";
6203
+ readonly type: "bytes";
6204
+ readonly indexed: false;
6205
+ }];
6206
+ readonly name: "TokenRevoked";
6142
6207
  }, {
6143
6208
  readonly type: "event";
6144
6209
  readonly anonymous: false;
@@ -6178,6 +6243,11 @@ declare const lsp8CustomizableTokenAbi: readonly [{
6178
6243
  readonly type: "event";
6179
6244
  readonly anonymous: false;
6180
6245
  readonly inputs: readonly [{
6246
+ readonly name: "nonTransferabilityEnabled";
6247
+ readonly internalType: "bool";
6248
+ readonly type: "bool";
6249
+ readonly indexed: true;
6250
+ }, {
6181
6251
  readonly name: "start";
6182
6252
  readonly internalType: "uint256";
6183
6253
  readonly type: "uint256";
@@ -6560,6 +6630,16 @@ declare const lsp8CustomizableTokenAbi: readonly [{
6560
6630
  readonly name: "mint";
6561
6631
  readonly outputs: readonly [];
6562
6632
  readonly stateMutability: "nonpayable";
6633
+ }, {
6634
+ readonly type: "function";
6635
+ readonly inputs: readonly [];
6636
+ readonly name: "nonTransferabilityEnabled";
6637
+ readonly outputs: readonly [{
6638
+ readonly name: "";
6639
+ readonly internalType: "bool";
6640
+ readonly type: "bool";
6641
+ }];
6642
+ readonly stateMutability: "view";
6563
6643
  }, {
6564
6644
  readonly type: "function";
6565
6645
  readonly inputs: readonly [];
@@ -6864,16 +6944,6 @@ declare const lsp8CustomizableTokenAbi: readonly [{
6864
6944
  readonly name: "transferBatch";
6865
6945
  readonly outputs: readonly [];
6866
6946
  readonly stateMutability: "nonpayable";
6867
- }, {
6868
- readonly type: "function";
6869
- readonly inputs: readonly [];
6870
- readonly name: "transferLockEnabled";
6871
- readonly outputs: readonly [{
6872
- readonly name: "";
6873
- readonly internalType: "bool";
6874
- readonly type: "bool";
6875
- }];
6876
- readonly stateMutability: "view";
6877
6947
  }, {
6878
6948
  readonly type: "function";
6879
6949
  readonly inputs: readonly [];
@@ -7393,6 +7463,36 @@ declare const lsp8CustomizableTokenInitAbi: readonly [{
7393
7463
  readonly indexed: false;
7394
7464
  }];
7395
7465
  readonly name: "TokenIdDataChanged";
7466
+ }, {
7467
+ readonly type: "event";
7468
+ readonly anonymous: false;
7469
+ readonly inputs: readonly [{
7470
+ readonly name: "revoker";
7471
+ readonly internalType: "address";
7472
+ readonly type: "address";
7473
+ readonly indexed: true;
7474
+ }, {
7475
+ readonly name: "from";
7476
+ readonly internalType: "address";
7477
+ readonly type: "address";
7478
+ readonly indexed: true;
7479
+ }, {
7480
+ readonly name: "to";
7481
+ readonly internalType: "address";
7482
+ readonly type: "address";
7483
+ readonly indexed: true;
7484
+ }, {
7485
+ readonly name: "tokenId";
7486
+ readonly internalType: "bytes32";
7487
+ readonly type: "bytes32";
7488
+ readonly indexed: false;
7489
+ }, {
7490
+ readonly name: "data";
7491
+ readonly internalType: "bytes";
7492
+ readonly type: "bytes";
7493
+ readonly indexed: false;
7494
+ }];
7495
+ readonly name: "TokenRevoked";
7396
7496
  }, {
7397
7497
  readonly type: "event";
7398
7498
  readonly anonymous: false;
@@ -7432,6 +7532,11 @@ declare const lsp8CustomizableTokenInitAbi: readonly [{
7432
7532
  readonly type: "event";
7433
7533
  readonly anonymous: false;
7434
7534
  readonly inputs: readonly [{
7535
+ readonly name: "nonTransferabilityEnabled";
7536
+ readonly internalType: "bool";
7537
+ readonly type: "bool";
7538
+ readonly indexed: true;
7539
+ }, {
7435
7540
  readonly name: "start";
7436
7541
  readonly internalType: "uint256";
7437
7542
  readonly type: "uint256";
@@ -7888,6 +7993,16 @@ declare const lsp8CustomizableTokenInitAbi: readonly [{
7888
7993
  readonly name: "mint";
7889
7994
  readonly outputs: readonly [];
7890
7995
  readonly stateMutability: "nonpayable";
7996
+ }, {
7997
+ readonly type: "function";
7998
+ readonly inputs: readonly [];
7999
+ readonly name: "nonTransferabilityEnabled";
8000
+ readonly outputs: readonly [{
8001
+ readonly name: "";
8002
+ readonly internalType: "bool";
8003
+ readonly type: "bool";
8004
+ }];
8005
+ readonly stateMutability: "view";
7891
8006
  }, {
7892
8007
  readonly type: "function";
7893
8008
  readonly inputs: readonly [];
@@ -8192,16 +8307,6 @@ declare const lsp8CustomizableTokenInitAbi: readonly [{
8192
8307
  readonly name: "transferBatch";
8193
8308
  readonly outputs: readonly [];
8194
8309
  readonly stateMutability: "nonpayable";
8195
- }, {
8196
- readonly type: "function";
8197
- readonly inputs: readonly [];
8198
- readonly name: "transferLockEnabled";
8199
- readonly outputs: readonly [{
8200
- readonly name: "";
8201
- readonly internalType: "bool";
8202
- readonly type: "bool";
8203
- }];
8204
- readonly stateMutability: "view";
8205
8310
  }, {
8206
8311
  readonly type: "function";
8207
8312
  readonly inputs: readonly [];
@@ -11645,6 +11750,20 @@ declare const lsp8MintableAbi: readonly [{
11645
11750
  readonly type: "bytes[]";
11646
11751
  }];
11647
11752
  readonly stateMutability: "nonpayable";
11753
+ }, {
11754
+ readonly type: "function";
11755
+ readonly inputs: readonly [{
11756
+ readonly name: "tokenId";
11757
+ readonly internalType: "bytes32";
11758
+ readonly type: "bytes32";
11759
+ }, {
11760
+ readonly name: "data";
11761
+ readonly internalType: "bytes";
11762
+ readonly type: "bytes";
11763
+ }];
11764
+ readonly name: "burn";
11765
+ readonly outputs: readonly [];
11766
+ readonly stateMutability: "nonpayable";
11648
11767
  }, {
11649
11768
  readonly type: "function";
11650
11769
  readonly inputs: readonly [];
@@ -13685,6 +13804,20 @@ declare const lsp8MintableInitAbi: readonly [{
13685
13804
  readonly type: "bytes[]";
13686
13805
  }];
13687
13806
  readonly stateMutability: "nonpayable";
13807
+ }, {
13808
+ readonly type: "function";
13809
+ readonly inputs: readonly [{
13810
+ readonly name: "tokenId";
13811
+ readonly internalType: "bytes32";
13812
+ readonly type: "bytes32";
13813
+ }, {
13814
+ readonly name: "data";
13815
+ readonly internalType: "bytes";
13816
+ readonly type: "bytes";
13817
+ }];
13818
+ readonly name: "burn";
13819
+ readonly outputs: readonly [];
13820
+ readonly stateMutability: "nonpayable";
13688
13821
  }, {
13689
13822
  readonly type: "function";
13690
13823
  readonly inputs: readonly [];
@@ -15672,6 +15805,11 @@ declare const lsp8NonTransferableAbstractAbi: readonly [{
15672
15805
  readonly type: "event";
15673
15806
  readonly anonymous: false;
15674
15807
  readonly inputs: readonly [{
15808
+ readonly name: "nonTransferabilityEnabled";
15809
+ readonly internalType: "bool";
15810
+ readonly type: "bool";
15811
+ readonly indexed: true;
15812
+ }, {
15675
15813
  readonly name: "start";
15676
15814
  readonly internalType: "uint256";
15677
15815
  readonly type: "uint256";
@@ -15956,6 +16094,16 @@ declare const lsp8NonTransferableAbstractAbi: readonly [{
15956
16094
  readonly name: "makeTransferable";
15957
16095
  readonly outputs: readonly [];
15958
16096
  readonly stateMutability: "nonpayable";
16097
+ }, {
16098
+ readonly type: "function";
16099
+ readonly inputs: readonly [];
16100
+ readonly name: "nonTransferabilityEnabled";
16101
+ readonly outputs: readonly [{
16102
+ readonly name: "";
16103
+ readonly internalType: "bool";
16104
+ readonly type: "bool";
16105
+ }];
16106
+ readonly stateMutability: "view";
15959
16107
  }, {
15960
16108
  readonly type: "function";
15961
16109
  readonly inputs: readonly [];
@@ -16218,16 +16366,6 @@ declare const lsp8NonTransferableAbstractAbi: readonly [{
16218
16366
  readonly name: "transferBatch";
16219
16367
  readonly outputs: readonly [];
16220
16368
  readonly stateMutability: "nonpayable";
16221
- }, {
16222
- readonly type: "function";
16223
- readonly inputs: readonly [];
16224
- readonly name: "transferLockEnabled";
16225
- readonly outputs: readonly [{
16226
- readonly name: "";
16227
- readonly internalType: "bool";
16228
- readonly type: "bool";
16229
- }];
16230
- readonly stateMutability: "view";
16231
16369
  }, {
16232
16370
  readonly type: "function";
16233
16371
  readonly inputs: readonly [];
@@ -16722,6 +16860,11 @@ declare const lsp8NonTransferableInitAbstractAbi: readonly [{
16722
16860
  readonly type: "event";
16723
16861
  readonly anonymous: false;
16724
16862
  readonly inputs: readonly [{
16863
+ readonly name: "nonTransferabilityEnabled";
16864
+ readonly internalType: "bool";
16865
+ readonly type: "bool";
16866
+ readonly indexed: true;
16867
+ }, {
16725
16868
  readonly name: "start";
16726
16869
  readonly internalType: "uint256";
16727
16870
  readonly type: "uint256";
@@ -17006,6 +17149,16 @@ declare const lsp8NonTransferableInitAbstractAbi: readonly [{
17006
17149
  readonly name: "makeTransferable";
17007
17150
  readonly outputs: readonly [];
17008
17151
  readonly stateMutability: "nonpayable";
17152
+ }, {
17153
+ readonly type: "function";
17154
+ readonly inputs: readonly [];
17155
+ readonly name: "nonTransferabilityEnabled";
17156
+ readonly outputs: readonly [{
17157
+ readonly name: "";
17158
+ readonly internalType: "bool";
17159
+ readonly type: "bool";
17160
+ }];
17161
+ readonly stateMutability: "view";
17009
17162
  }, {
17010
17163
  readonly type: "function";
17011
17164
  readonly inputs: readonly [];
@@ -17268,16 +17421,6 @@ declare const lsp8NonTransferableInitAbstractAbi: readonly [{
17268
17421
  readonly name: "transferBatch";
17269
17422
  readonly outputs: readonly [];
17270
17423
  readonly stateMutability: "nonpayable";
17271
- }, {
17272
- readonly type: "function";
17273
- readonly inputs: readonly [];
17274
- readonly name: "transferLockEnabled";
17275
- readonly outputs: readonly [{
17276
- readonly name: "";
17277
- readonly internalType: "bool";
17278
- readonly type: "bool";
17279
- }];
17280
- readonly stateMutability: "view";
17281
17424
  }, {
17282
17425
  readonly type: "function";
17283
17426
  readonly inputs: readonly [];
@@ -17725,6 +17868,36 @@ declare const lsp8RevokableAbstractAbi: readonly [{
17725
17868
  readonly indexed: false;
17726
17869
  }];
17727
17870
  readonly name: "TokenIdDataChanged";
17871
+ }, {
17872
+ readonly type: "event";
17873
+ readonly anonymous: false;
17874
+ readonly inputs: readonly [{
17875
+ readonly name: "revoker";
17876
+ readonly internalType: "address";
17877
+ readonly type: "address";
17878
+ readonly indexed: true;
17879
+ }, {
17880
+ readonly name: "from";
17881
+ readonly internalType: "address";
17882
+ readonly type: "address";
17883
+ readonly indexed: true;
17884
+ }, {
17885
+ readonly name: "to";
17886
+ readonly internalType: "address";
17887
+ readonly type: "address";
17888
+ readonly indexed: true;
17889
+ }, {
17890
+ readonly name: "tokenId";
17891
+ readonly internalType: "bytes32";
17892
+ readonly type: "bytes32";
17893
+ readonly indexed: false;
17894
+ }, {
17895
+ readonly name: "data";
17896
+ readonly internalType: "bytes";
17897
+ readonly type: "bytes";
17898
+ readonly indexed: false;
17899
+ }];
17900
+ readonly name: "TokenRevoked";
17728
17901
  }, {
17729
17902
  readonly type: "event";
17730
17903
  readonly anonymous: false;
@@ -18736,6 +18909,36 @@ declare const lsp8RevokableInitAbstractAbi: readonly [{
18736
18909
  readonly indexed: false;
18737
18910
  }];
18738
18911
  readonly name: "TokenIdDataChanged";
18912
+ }, {
18913
+ readonly type: "event";
18914
+ readonly anonymous: false;
18915
+ readonly inputs: readonly [{
18916
+ readonly name: "revoker";
18917
+ readonly internalType: "address";
18918
+ readonly type: "address";
18919
+ readonly indexed: true;
18920
+ }, {
18921
+ readonly name: "from";
18922
+ readonly internalType: "address";
18923
+ readonly type: "address";
18924
+ readonly indexed: true;
18925
+ }, {
18926
+ readonly name: "to";
18927
+ readonly internalType: "address";
18928
+ readonly type: "address";
18929
+ readonly indexed: true;
18930
+ }, {
18931
+ readonly name: "tokenId";
18932
+ readonly internalType: "bytes32";
18933
+ readonly type: "bytes32";
18934
+ readonly indexed: false;
18935
+ }, {
18936
+ readonly name: "data";
18937
+ readonly internalType: "bytes";
18938
+ readonly type: "bytes";
18939
+ readonly indexed: false;
18940
+ }];
18941
+ readonly name: "TokenRevoked";
18739
18942
  }, {
18740
18943
  readonly type: "event";
18741
18944
  readonly anonymous: false;