@lukso/lsp-smart-contracts 0.12.1 → 0.13.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 (121) hide show
  1. package/README.md +2 -2
  2. package/artifacts/LSP0ERC725Account.json +6 -6
  3. package/artifacts/LSP0ERC725AccountInit.json +6 -6
  4. package/artifacts/LSP11BasicSocialRecovery.json +2 -2
  5. package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
  6. package/artifacts/LSP1UniversalReceiverDelegateUP.json +2 -2
  7. package/artifacts/LSP1UniversalReceiverDelegateVault.json +2 -2
  8. package/artifacts/LSP4DigitalAssetMetadata.json +5 -0
  9. package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +5 -0
  10. package/artifacts/LSP6KeyManager.json +2 -2
  11. package/artifacts/LSP6KeyManagerInit.json +2 -2
  12. package/artifacts/LSP7CappedSupply.json +71 -36
  13. package/artifacts/LSP7CappedSupplyInitAbstract.json +71 -36
  14. package/artifacts/LSP7CompatibleERC20.json +71 -36
  15. package/artifacts/LSP7CompatibleERC20InitAbstract.json +71 -36
  16. package/artifacts/LSP7CompatibleERC20Mintable.json +78 -38
  17. package/artifacts/LSP7CompatibleERC20MintableInit.json +78 -38
  18. package/artifacts/LSP7DigitalAsset.json +71 -36
  19. package/artifacts/LSP7DigitalAssetInitAbstract.json +71 -36
  20. package/artifacts/LSP7Mintable.json +78 -38
  21. package/artifacts/LSP7MintableInit.json +78 -38
  22. package/artifacts/LSP8CappedSupply.json +187 -23
  23. package/artifacts/LSP8CappedSupplyInitAbstract.json +200 -36
  24. package/artifacts/LSP8CompatibleERC721.json +187 -23
  25. package/artifacts/LSP8CompatibleERC721InitAbstract.json +200 -36
  26. package/artifacts/LSP8CompatibleERC721Mintable.json +195 -26
  27. package/artifacts/LSP8CompatibleERC721MintableInit.json +208 -39
  28. package/artifacts/LSP8IdentifiableDigitalAsset.json +187 -23
  29. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +200 -36
  30. package/artifacts/LSP8Mintable.json +195 -26
  31. package/artifacts/LSP8MintableInit.json +208 -39
  32. package/artifacts/LSP9Vault.json +6 -6
  33. package/artifacts/LSP9VaultInit.json +6 -6
  34. package/artifacts/UniversalProfile.json +6 -6
  35. package/artifacts/UniversalProfileInit.json +6 -6
  36. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +1 -22
  37. package/contracts/LSP17Extensions/Extension4337.sol +26 -1
  38. package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +9 -0
  39. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +20 -34
  40. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataCore.sol +47 -0
  41. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +19 -31
  42. package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +13 -6
  43. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +1 -1
  44. package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +20 -9
  45. package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -1
  46. package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +7 -5
  47. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +128 -25
  48. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +5 -2
  49. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +6 -0
  50. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +4 -2
  51. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +7 -4
  52. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +4 -2
  53. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +5 -2
  54. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +8 -2
  55. package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +12 -1
  56. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +4 -0
  57. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +4 -0
  58. package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +77 -4
  59. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +15 -12
  60. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +19 -3
  61. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +25 -16
  62. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +223 -19
  63. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +28 -15
  64. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +15 -4
  65. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +8 -4
  66. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +13 -2
  67. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +6 -2
  68. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +4 -2
  69. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +13 -2
  70. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +6 -2
  71. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +6 -2
  72. package/contracts/LSP9Vault/LSP9VaultCore.sol +0 -22
  73. package/contracts/Version.sol +1 -1
  74. package/devdocs/LSP4DigitalAssetMetadata.json +11 -5
  75. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +7 -2
  76. package/devdocs/LSP6KeyManager.json +1 -1
  77. package/devdocs/LSP6KeyManagerInit.json +1 -1
  78. package/devdocs/LSP7CappedSupply.json +22 -2
  79. package/devdocs/LSP7CappedSupplyInitAbstract.json +22 -2
  80. package/devdocs/LSP7CompatibleERC20.json +23 -2
  81. package/devdocs/LSP7CompatibleERC20InitAbstract.json +22 -2
  82. package/devdocs/LSP7CompatibleERC20Mintable.json +23 -2
  83. package/devdocs/LSP7CompatibleERC20MintableInit.json +24 -3
  84. package/devdocs/LSP7DigitalAsset.json +27 -6
  85. package/devdocs/LSP7DigitalAssetInitAbstract.json +22 -2
  86. package/devdocs/LSP7Mintable.json +24 -2
  87. package/devdocs/LSP7MintableInit.json +25 -3
  88. package/devdocs/LSP8CappedSupply.json +66 -4
  89. package/devdocs/LSP8CappedSupplyInitAbstract.json +66 -4
  90. package/devdocs/LSP8CompatibleERC721.json +69 -5
  91. package/devdocs/LSP8CompatibleERC721InitAbstract.json +67 -5
  92. package/devdocs/LSP8CompatibleERC721Mintable.json +69 -5
  93. package/devdocs/LSP8CompatibleERC721MintableInit.json +70 -6
  94. package/devdocs/LSP8IdentifiableDigitalAsset.json +71 -8
  95. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +66 -4
  96. package/devdocs/LSP8Mintable.json +68 -4
  97. package/devdocs/LSP8MintableInit.json +69 -5
  98. package/dist/constants.cjs.js +4406 -1319
  99. package/dist/constants.d.ts +4184 -844
  100. package/dist/constants.es.js +4405 -1319
  101. package/package.json +2 -2
  102. package/userdocs/LSP7CappedSupply.json +8 -0
  103. package/userdocs/LSP7CappedSupplyInitAbstract.json +8 -0
  104. package/userdocs/LSP7CompatibleERC20.json +8 -0
  105. package/userdocs/LSP7CompatibleERC20InitAbstract.json +8 -0
  106. package/userdocs/LSP7CompatibleERC20Mintable.json +8 -0
  107. package/userdocs/LSP7CompatibleERC20MintableInit.json +9 -1
  108. package/userdocs/LSP7DigitalAsset.json +8 -0
  109. package/userdocs/LSP7DigitalAssetInitAbstract.json +8 -0
  110. package/userdocs/LSP7Mintable.json +8 -0
  111. package/userdocs/LSP7MintableInit.json +9 -1
  112. package/userdocs/LSP8CappedSupply.json +20 -0
  113. package/userdocs/LSP8CappedSupplyInitAbstract.json +20 -0
  114. package/userdocs/LSP8CompatibleERC721.json +20 -0
  115. package/userdocs/LSP8CompatibleERC721InitAbstract.json +20 -0
  116. package/userdocs/LSP8CompatibleERC721Mintable.json +20 -0
  117. package/userdocs/LSP8CompatibleERC721MintableInit.json +21 -1
  118. package/userdocs/LSP8IdentifiableDigitalAsset.json +21 -1
  119. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +20 -0
  120. package/userdocs/LSP8Mintable.json +20 -0
  121. package/userdocs/LSP8MintableInit.json +21 -1
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "errors": {
3
+ "LSP8BatchCallFailed(uint256)": [
4
+ {
5
+ "notice": "Batch call failed."
6
+ }
7
+ ],
3
8
  "LSP8TokenContractCannotHoldValue()": [
4
9
  {
5
10
  "notice": "LSP8 contract cannot receive native tokens."
@@ -13,13 +18,22 @@
13
18
  },
14
19
  "kind": "user",
15
20
  "methods": {
21
+ "batchCalls(bytes[])": {
22
+ "notice": "Executing the following batch of abi-encoded function calls on the contract: `data`."
23
+ },
16
24
  "getData(bytes32)": {
17
25
  "notice": "Reading the ERC725Y storage for data key `dataKey` returned the following value: `dataValue`."
18
26
  },
19
27
  "getDataBatch(bytes32[])": {
20
28
  "notice": "Reading the ERC725Y storage for data keys `dataKeys` returned the following values: `dataValues`."
21
29
  },
22
- "initialize(string,string,address,uint256)": {
30
+ "getTokenIdData(bytes32,bytes32)": {
31
+ "notice": "Retrieves data for a specific `tokenId` and `dataKey`."
32
+ },
33
+ "getTokenIdDataBatch(bytes32[],bytes32[])": {
34
+ "notice": "Retrieves data in batch for multiple `tokenId` and `dataKey` pairs."
35
+ },
36
+ "initialize(string,string,address,uint256,uint256)": {
23
37
  "notice": "Initializing a `LSP8MintableInit` token contract with: token name = `name_`, token symbol = `symbol_`, and address `newOwner_` as the token contract owner."
24
38
  },
25
39
  "mint(address,bytes32,bool,bytes)": {
@@ -30,6 +44,12 @@
30
44
  },
31
45
  "setDataBatch(bytes32[],bytes[])": {
32
46
  "notice": "Setting the following data key value pairs in the ERC725Y storage. Data keys: `dataKeys`, data values: `dataValues`."
47
+ },
48
+ "setTokenIdData(bytes32,bytes32,bytes)": {
49
+ "notice": "Sets data for a specific `tokenId` and `dataKey`."
50
+ },
51
+ "setTokenIdDataBatch(bytes32[],bytes32[],bytes[])": {
52
+ "notice": "Sets data in batch for multiple `tokenId` and `dataKey` pairs."
33
53
  }
34
54
  },
35
55
  "version": 1