@lukso/lsp-smart-contracts 0.11.1 → 0.12.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 (224) hide show
  1. package/README.md +10 -2
  2. package/artifacts/Create2Factory.json +2 -2
  3. package/artifacts/LSP0ERC725Account.json +68 -47
  4. package/artifacts/LSP0ERC725AccountInit.json +68 -47
  5. package/artifacts/LSP11BasicSocialRecovery.json +18 -2
  6. package/artifacts/LSP11BasicSocialRecoveryInit.json +18 -2
  7. package/artifacts/LSP16UniversalFactory.json +3 -3
  8. package/artifacts/LSP1UniversalReceiverDelegateUP.json +27 -46
  9. package/artifacts/LSP1UniversalReceiverDelegateVault.json +27 -46
  10. package/artifacts/LSP23LinkedContractsFactory.json +3 -3
  11. package/artifacts/LSP4DigitalAssetMetadata.json +16 -0
  12. package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +16 -0
  13. package/artifacts/LSP6KeyManager.json +34 -6
  14. package/artifacts/LSP6KeyManagerInit.json +34 -6
  15. package/artifacts/LSP7CappedSupply.json +64 -4
  16. package/artifacts/LSP7CappedSupplyInitAbstract.json +64 -4
  17. package/artifacts/LSP7CompatibleERC20.json +83 -23
  18. package/artifacts/LSP7CompatibleERC20InitAbstract.json +83 -23
  19. package/artifacts/LSP7CompatibleERC20Mintable.json +86 -26
  20. package/artifacts/LSP7CompatibleERC20MintableInit.json +86 -26
  21. package/artifacts/LSP7DigitalAsset.json +64 -4
  22. package/artifacts/LSP7DigitalAssetInitAbstract.json +64 -4
  23. package/artifacts/LSP7Mintable.json +67 -7
  24. package/artifacts/LSP7MintableInit.json +67 -7
  25. package/artifacts/LSP8CappedSupply.json +57 -3
  26. package/artifacts/LSP8CappedSupplyInitAbstract.json +57 -3
  27. package/artifacts/LSP8CompatibleERC721.json +79 -25
  28. package/artifacts/LSP8CompatibleERC721InitAbstract.json +79 -25
  29. package/artifacts/LSP8CompatibleERC721Mintable.json +87 -28
  30. package/artifacts/LSP8CompatibleERC721MintableInit.json +87 -28
  31. package/artifacts/LSP8IdentifiableDigitalAsset.json +57 -3
  32. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +57 -3
  33. package/artifacts/LSP8Mintable.json +65 -6
  34. package/artifacts/LSP8MintableInit.json +65 -6
  35. package/artifacts/LSP9Vault.json +51 -35
  36. package/artifacts/LSP9VaultInit.json +51 -35
  37. package/artifacts/UniversalProfile.json +68 -47
  38. package/artifacts/UniversalProfileInit.json +68 -47
  39. package/contracts/Factories/Create2Factory.sol +1 -1
  40. package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +0 -22
  41. package/contracts/LSP0ERC725Account/LSP0Constants.sol +6 -1
  42. package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +12 -2
  43. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +196 -123
  44. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +1 -1
  45. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +11 -2
  46. package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +5 -3
  47. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +54 -14
  48. package/contracts/LSP11BasicSocialRecovery/LSP11Constants.sol +1 -1
  49. package/contracts/LSP11BasicSocialRecovery/LSP11Errors.sol +1 -1
  50. package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +2 -2
  51. package/contracts/LSP14Ownable2Step/LSP14Constants.sol +1 -1
  52. package/contracts/LSP14Ownable2Step/LSP14Errors.sol +9 -3
  53. package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +16 -12
  54. package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +65 -96
  55. package/contracts/LSP17ContractExtension/LSP17Errors.sol +1 -1
  56. package/contracts/LSP17ContractExtension/LSP17Extendable.sol +22 -15
  57. package/contracts/LSP17ContractExtension/LSP17Extension.sol +6 -5
  58. package/contracts/LSP17Extensions/Extension4337.sol +101 -0
  59. package/contracts/LSP17Extensions/OnERC721ReceivedExtension.sol +15 -0
  60. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +1 -2
  61. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiverDelegate.sol +24 -0
  62. package/contracts/LSP1UniversalReceiver/LSP1Constants.sol +1 -0
  63. package/contracts/LSP1UniversalReceiver/LSP1Errors.sol +0 -6
  64. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +49 -33
  65. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +33 -27
  66. package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +5 -48
  67. package/contracts/LSP20CallVerification/ILSP20CallVerifier.sol +13 -9
  68. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +64 -45
  69. package/contracts/LSP20CallVerification/LSP20Constants.sol +6 -6
  70. package/contracts/LSP20CallVerification/LSP20Errors.sol +10 -4
  71. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/ILSP23LinkedContractsFactory.sol +1 -1
  72. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/IPostDeploymentModule.sol +1 -1
  73. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/LSP23Errors.sol +1 -1
  74. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/LSP23LinkedContractsFactory.sol +5 -1
  75. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/modules/UniversalProfileInitPostDeploymentModule.sol +1 -1
  76. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/modules/UniversalProfilePostDeploymentModule.sol +1 -1
  77. package/contracts/LSP25ExecuteRelayCall/LSP25Constants.sol +1 -1
  78. package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +8 -3
  79. package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +1 -97
  80. package/contracts/LSP3ProfileMetadata/LSP3Constants.sol +1 -1
  81. package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +1 -1
  82. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +8 -3
  83. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +8 -3
  84. package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +4 -3
  85. package/contracts/LSP6KeyManager/LSP6Constants.sol +4 -3
  86. package/contracts/LSP6KeyManager/LSP6Errors.sol +2 -23
  87. package/contracts/LSP6KeyManager/LSP6KeyManager.sol +0 -1
  88. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +176 -101
  89. package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +0 -1
  90. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +1 -2
  91. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteRelayCallModule.sol +27 -0
  92. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +34 -28
  93. package/contracts/LSP6KeyManager/LSP6Utils.sol +29 -2
  94. package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +70 -10
  95. package/contracts/LSP7DigitalAsset/LSP7Constants.sol +2 -2
  96. package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +29 -13
  97. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +273 -265
  98. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +28 -12
  99. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +17 -3
  100. package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +5 -1
  101. package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +4 -1
  102. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +7 -7
  103. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +3 -3
  104. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +128 -54
  105. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +129 -54
  106. package/contracts/LSP7DigitalAsset/presets/ILSP7Mintable.sol +3 -3
  107. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +4 -4
  108. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +2 -2
  109. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +4 -4
  110. package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +4 -4
  111. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +1 -1
  112. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +4 -4
  113. package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +16 -11
  114. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +20 -6
  115. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +32 -16
  116. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +67 -16
  117. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +143 -137
  118. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +69 -15
  119. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +1 -1
  120. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +1 -1
  121. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +7 -7
  122. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +3 -3
  123. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +172 -80
  124. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +178 -91
  125. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +7 -7
  126. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +7 -7
  127. package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +3 -3
  128. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +8 -7
  129. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +5 -3
  130. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +13 -7
  131. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +9 -8
  132. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +9 -3
  133. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +10 -8
  134. package/contracts/LSP9Vault/ILSP9Vault.sol +0 -21
  135. package/contracts/LSP9Vault/LSP9Constants.sol +6 -1
  136. package/contracts/LSP9Vault/LSP9Errors.sol +1 -1
  137. package/contracts/LSP9Vault/LSP9Vault.sol +11 -2
  138. package/contracts/LSP9Vault/LSP9VaultCore.sol +119 -66
  139. package/contracts/LSP9Vault/LSP9VaultInit.sol +1 -1
  140. package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +11 -2
  141. package/contracts/UniversalProfile.sol +1 -1
  142. package/contracts/UniversalProfileInit.sol +1 -1
  143. package/contracts/UniversalProfileInitAbstract.sol +1 -1
  144. package/contracts/Version.sol +16 -0
  145. package/devdocs/LSP0ERC725Account.json +86 -52
  146. package/devdocs/LSP0ERC725AccountInit.json +86 -52
  147. package/devdocs/LSP11BasicSocialRecovery.json +13 -0
  148. package/devdocs/LSP11BasicSocialRecoveryInit.json +13 -0
  149. package/devdocs/LSP16UniversalFactory.json +9 -9
  150. package/devdocs/LSP1UniversalReceiverDelegateUP.json +7 -6
  151. package/devdocs/LSP1UniversalReceiverDelegateVault.json +7 -6
  152. package/devdocs/LSP4DigitalAssetMetadata.json +32 -10
  153. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +32 -10
  154. package/devdocs/LSP6KeyManager.json +27 -13
  155. package/devdocs/LSP6KeyManagerInit.json +27 -13
  156. package/devdocs/LSP7CappedSupply.json +61 -28
  157. package/devdocs/LSP7CappedSupplyInitAbstract.json +61 -28
  158. package/devdocs/LSP7CompatibleERC20.json +102 -32
  159. package/devdocs/LSP7CompatibleERC20InitAbstract.json +102 -32
  160. package/devdocs/LSP7CompatibleERC20Mintable.json +102 -32
  161. package/devdocs/LSP7CompatibleERC20MintableInit.json +102 -32
  162. package/devdocs/LSP7DigitalAsset.json +61 -28
  163. package/devdocs/LSP7DigitalAssetInitAbstract.json +61 -28
  164. package/devdocs/LSP7Mintable.json +61 -28
  165. package/devdocs/LSP7MintableInit.json +61 -28
  166. package/devdocs/LSP8CappedSupply.json +66 -27
  167. package/devdocs/LSP8CappedSupplyInitAbstract.json +66 -27
  168. package/devdocs/LSP8CompatibleERC721.json +93 -33
  169. package/devdocs/LSP8CompatibleERC721InitAbstract.json +93 -33
  170. package/devdocs/LSP8CompatibleERC721Mintable.json +95 -35
  171. package/devdocs/LSP8CompatibleERC721MintableInit.json +96 -36
  172. package/devdocs/LSP8IdentifiableDigitalAsset.json +70 -28
  173. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +66 -27
  174. package/devdocs/LSP8Mintable.json +68 -29
  175. package/devdocs/LSP8MintableInit.json +69 -30
  176. package/devdocs/LSP9Vault.json +69 -41
  177. package/devdocs/LSP9VaultInit.json +69 -41
  178. package/devdocs/UniversalProfile.json +86 -52
  179. package/devdocs/UniversalProfileInit.json +86 -52
  180. package/dist/constants.cjs.js +5565 -2846
  181. package/dist/constants.d.ts +3996 -1182
  182. package/dist/constants.es.js +5564 -2846
  183. package/package.json +8 -8
  184. package/userdocs/LSP0ERC725Account.json +20 -11
  185. package/userdocs/LSP0ERC725AccountInit.json +20 -11
  186. package/userdocs/LSP16UniversalFactory.json +26 -1
  187. package/userdocs/LSP1UniversalReceiverDelegateUP.json +4 -11
  188. package/userdocs/LSP1UniversalReceiverDelegateVault.json +4 -11
  189. package/userdocs/LSP4DigitalAssetMetadata.json +7 -4
  190. package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +7 -4
  191. package/userdocs/LSP6KeyManager.json +3 -5
  192. package/userdocs/LSP6KeyManagerInit.json +3 -5
  193. package/userdocs/LSP7CappedSupply.json +17 -6
  194. package/userdocs/LSP7CappedSupplyInitAbstract.json +16 -5
  195. package/userdocs/LSP7CompatibleERC20.json +18 -5
  196. package/userdocs/LSP7CompatibleERC20InitAbstract.json +18 -5
  197. package/userdocs/LSP7CompatibleERC20Mintable.json +18 -5
  198. package/userdocs/LSP7CompatibleERC20MintableInit.json +18 -5
  199. package/userdocs/LSP7DigitalAsset.json +18 -5
  200. package/userdocs/LSP7DigitalAssetInitAbstract.json +18 -5
  201. package/userdocs/LSP7Mintable.json +18 -5
  202. package/userdocs/LSP7MintableInit.json +18 -5
  203. package/userdocs/LSP8CappedSupply.json +16 -5
  204. package/userdocs/LSP8CappedSupplyInitAbstract.json +15 -4
  205. package/userdocs/LSP8CompatibleERC721.json +30 -17
  206. package/userdocs/LSP8CompatibleERC721InitAbstract.json +30 -17
  207. package/userdocs/LSP8CompatibleERC721Mintable.json +31 -18
  208. package/userdocs/LSP8CompatibleERC721MintableInit.json +32 -19
  209. package/userdocs/LSP8IdentifiableDigitalAsset.json +18 -5
  210. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +17 -4
  211. package/userdocs/LSP8Mintable.json +18 -5
  212. package/userdocs/LSP8MintableInit.json +19 -6
  213. package/userdocs/LSP9Vault.json +23 -14
  214. package/userdocs/LSP9VaultInit.json +23 -14
  215. package/userdocs/UniversalProfile.json +20 -11
  216. package/userdocs/UniversalProfileInit.json +20 -11
  217. package/CONTRIBUTING.md +0 -184
  218. package/artifacts/LSP4Compatibility.json +0 -216
  219. package/contracts/LSP4DigitalAssetMetadata/ILSP4Compatibility.sol +0 -25
  220. package/contracts/LSP4DigitalAssetMetadata/LSP4Compatibility.sol +0 -38
  221. package/contracts/LSP7DigitalAsset/extensions/ILSP7CompatibleERC20.sol +0 -83
  222. package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +0 -175
  223. package/devdocs/LSP4Compatibility.json +0 -79
  224. package/userdocs/LSP4Compatibility.json +0 -20
@@ -3,17 +3,17 @@
3
3
  "errors": {
4
4
  "ERC725Y_DataKeysValuesEmptyArray()": [
5
5
  {
6
- "details": "reverts when one of the array parameter provided to `setDataBatch` is an empty array"
6
+ "details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
7
7
  }
8
8
  ],
9
9
  "ERC725Y_DataKeysValuesLengthMismatch()": [
10
10
  {
11
- "details": "reverts when there is not the same number of elements in the lists of data keys and data values when calling setDataBatch."
11
+ "details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
12
12
  }
13
13
  ],
14
14
  "ERC725Y_MsgValueDisallowed()": [
15
15
  {
16
- "details": "reverts when sending value to the `setData(..)` functions"
16
+ "details": "Reverts when sending value to the {setData} or {setDataBatch} function."
17
17
  }
18
18
  ],
19
19
  "InvalidExtensionAddress(bytes)": [
@@ -38,79 +38,102 @@
38
38
  ],
39
39
  "LSP8CannotSendToAddressZero()": [
40
40
  {
41
- "details": "reverts when trying to send token to the zero address."
41
+ "details": "Reverts when trying to send token to the zero address."
42
42
  }
43
43
  ],
44
44
  "LSP8CannotSendToSelf()": [
45
45
  {
46
- "details": "reverts when specifying the same address for `from` and `to` in a token transfer."
46
+ "details": "Reverts when specifying the same address for `from` and `to` in a token transfer."
47
47
  }
48
48
  ],
49
49
  "LSP8CannotUseAddressZeroAsOperator()": [
50
50
  {
51
- "details": "reverts when trying to set the zero address as an operator."
51
+ "details": "Reverts when trying to set the zero address as an operator."
52
52
  }
53
53
  ],
54
54
  "LSP8InvalidTransferBatch()": [
55
55
  {
56
- "details": "reverts when the parameters used for `transferBatch` have different lengths."
56
+ "details": "Reverts when the parameters used for `transferBatch` have different lengths."
57
57
  }
58
58
  ],
59
59
  "LSP8NonExistentTokenId(bytes32)": [
60
60
  {
61
- "details": "reverts when `tokenId` has not been minted."
61
+ "details": "Reverts when `tokenId` has not been minted."
62
62
  }
63
63
  ],
64
64
  "LSP8NonExistingOperator(address,bytes32)": [
65
65
  {
66
- "details": "reverts when `operator` is not an operator for the `tokenId`."
66
+ "details": "Reverts when `operator` is not an operator for the `tokenId`."
67
67
  }
68
68
  ],
69
69
  "LSP8NotTokenOperator(bytes32,address)": [
70
70
  {
71
- "details": "reverts when `caller` is not an allowed operator for `tokenId`."
71
+ "details": "Reverts when `caller` is not an allowed operator for `tokenId`."
72
72
  }
73
73
  ],
74
74
  "LSP8NotTokenOwner(address,bytes32,address)": [
75
75
  {
76
- "details": "reverts when `caller` is not the `tokenOwner` of the `tokenId`."
76
+ "details": "Reverts when `caller` is not the `tokenOwner` of the `tokenId`."
77
77
  }
78
78
  ],
79
79
  "LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
80
80
  {
81
- "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
81
+ "details": "Reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
82
82
  }
83
83
  ],
84
84
  "LSP8NotifyTokenReceiverIsEOA(address)": [
85
85
  {
86
- "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
86
+ "details": "Reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
87
87
  }
88
88
  ],
89
89
  "LSP8OperatorAlreadyAuthorized(address,bytes32)": [
90
90
  {
91
- "details": "reverts when `operator` is already authorized for the `tokenId`."
91
+ "details": "Reverts when `operator` is already authorized for the `tokenId`."
92
+ }
93
+ ],
94
+ "LSP8TokenContractCannotHoldValue()": [
95
+ {
96
+ "details": "Error occurs when sending native tokens to the LSP8 contract without sending any data. E.g. Sending value without passing a bytes4 function selector to call a LSP17 Extension."
92
97
  }
93
98
  ],
94
99
  "LSP8TokenIdAlreadyMinted(bytes32)": [
95
100
  {
96
- "details": "reverts when `tokenId` has already been minted."
101
+ "details": "Reverts when `tokenId` has already been minted."
102
+ }
103
+ ],
104
+ "LSP8TokenIdTypeNotEditable()": [
105
+ {
106
+ "details": "Reverts when trying to edit the data key `LSP8TokenIdType` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdType` data key is located inside the ERC725Y Data key-value store of the identifiable digital asset contract. It can be set only once inside the constructor/initializer when the identifiable digital asset contract is being deployed."
97
107
  }
98
108
  ],
99
109
  "LSP8TokenOwnerCannotBeOperator()": [
100
110
  {
101
- "details": "reverts when trying to authorize or revoke the token's owner as an operator."
111
+ "details": "Reverts when trying to authorize or revoke the token's owner as an operator."
102
112
  }
103
113
  ],
104
114
  "NoExtensionFoundForFunctionSelector(bytes4)": [
105
115
  {
106
116
  "details": "reverts when there is no extension for the function selector being called with"
107
117
  }
118
+ ],
119
+ "OwnableCallerNotTheOwner(address)": [
120
+ {
121
+ "details": "Reverts when only the owner is allowed to call the function.",
122
+ "params": {
123
+ "callerAddress": "The address that tried to make the call."
124
+ }
125
+ }
126
+ ],
127
+ "OwnableCannotSetZeroAddressAsOwner()": [
128
+ {
129
+ "details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
130
+ }
108
131
  ]
109
132
  },
110
133
  "kind": "dev",
111
134
  "methods": {
112
135
  "authorizeOperator(address,bytes32,bytes)": {
113
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
136
+ "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
114
137
  "params": {
115
138
  "operator": "The address to authorize as an operator.",
116
139
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
@@ -130,14 +153,16 @@
130
153
  "details": "initialize (= lock) base implementation contract on deployment"
131
154
  },
132
155
  "getData(bytes32)": {
156
+ "details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
133
157
  "params": {
134
- "dataKey": "The key which value to retrieve"
158
+ "dataKey": "The data key for which to retrieve the value."
135
159
  },
136
160
  "returns": {
137
- "dataValue": "The data stored at the key"
161
+ "dataValue": "The bytes value stored under the specified data key."
138
162
  }
139
163
  },
140
164
  "getDataBatch(bytes32[])": {
165
+ "details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
141
166
  "params": {
142
167
  "dataKeys": "The array of keys which values to retrieve"
143
168
  },
@@ -154,7 +179,7 @@
154
179
  "_0": "An array of operators allowed to transfer or burn a specific `tokenId`. Requirements - `tokenId` must exist."
155
180
  }
156
181
  },
157
- "initialize(string,string,address)": {
182
+ "initialize(string,string,address,uint256)": {
158
183
  "params": {
159
184
  "name_": "The name of the token.",
160
185
  "newOwner_": "The owner of the token contract.",
@@ -174,8 +199,8 @@
174
199
  "mint(address,bytes32,bool,bytes)": {
175
200
  "details": "Public {_mint} function only callable by the {owner}.",
176
201
  "params": {
177
- "allowNonLSP1Recipient": "Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.",
178
202
  "data": "Any addition data to be sent alongside the minting.",
203
+ "force": "Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.",
179
204
  "to": "The address that will receive the minted `tokenId`.",
180
205
  "tokenId": "The tokenId to mint."
181
206
  }
@@ -186,25 +211,33 @@
186
211
  "renounceOwnership()": {
187
212
  "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
188
213
  },
189
- "revokeOperator(address,bytes32,bytes)": {
214
+ "revokeOperator(address,bytes32,bool,bytes)": {
190
215
  "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
191
216
  "params": {
217
+ "notify": "Boolean indicating whether to notify the operator or not",
192
218
  "operator": "The address to revoke as an operator.",
193
219
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
194
220
  "tokenId": "The tokenId `operator` is revoked from operating on."
195
221
  }
196
222
  },
197
223
  "setData(bytes32,bytes)": {
224
+ "custom:events": "{DataChanged} event.",
225
+ "custom:requirements": "- SHOULD only be callable by the {owner}.",
226
+ "custom:warning": "**Note for developers:** despite the fact that this function is set as `payable`, if the function is not intended to receive value (= native tokens), **an additional check should be implemented to ensure that `msg.value` sent was equal to 0**.",
227
+ "details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
198
228
  "params": {
199
- "dataKey": "The key to retrieve stored value",
200
- "dataValue": "The value to set SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event."
229
+ "dataKey": "The data key for which to set a new value.",
230
+ "dataValue": "The new bytes value to set."
201
231
  }
202
232
  },
203
233
  "setDataBatch(bytes32[],bytes[])": {
204
- "details": "Sets array of data for multiple given `dataKeys` SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event.",
234
+ "custom:events": "{DataChanged} event **for each data key/value pair set**.",
235
+ "custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
236
+ "custom:warning": "**Note for developers:** despite the fact that this function is set as `payable`, if the function is not intended to receive value (= native tokens), **an additional check should be implemented to ensure that `msg.value` sent was equal to 0**.",
237
+ "details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
205
238
  "params": {
206
- "dataKeys": "The array of data keys for values to set",
207
- "dataValues": "The array of values to set"
239
+ "dataKeys": "An array of data keys to set bytes values for.",
240
+ "dataValues": "An array of bytes values to set for each `dataKeys`."
208
241
  }
209
242
  },
210
243
  "supportsInterface(bytes4)": {
@@ -235,10 +268,10 @@
235
268
  }
236
269
  },
237
270
  "transfer(address,address,bytes32,bool,bytes)": {
238
- "details": "Transfer a given `tokenId` token from the `from` address to the `to` address. If operators are set for a specific `tokenId`, all the operators are revoked after the tokenId have been transferred. The `allowNonLSP1Recipient` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs) or contracts that do not implement the LSP1 standard.",
271
+ "details": "Transfer a given `tokenId` token from the `from` address to the `to` address. If operators are set for a specific `tokenId`, all the operators are revoked after the tokenId have been transferred. The `force` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs) or contracts that do not implement the LSP1 standard.",
239
272
  "params": {
240
- "allowNonLSP1Recipient": "When set to `true`, the `to` address CAN be any addres. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
241
273
  "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
274
+ "force": "When set to `true`, the `to` address CAN be any addres. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
242
275
  "from": "The address that owns the given `tokenId`.",
243
276
  "to": "The address that will receive the `tokenId`.",
244
277
  "tokenId": "The token ID to transfer."
@@ -247,8 +280,8 @@
247
280
  "transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
248
281
  "details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
249
282
  "params": {
250
- "allowNonLSP1Recipient": "When set to `true`, `to` may be any address. When set to `false`, `to` must be a contract that supports the LSP1 standard and not revert.",
251
283
  "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
284
+ "force": "When set to `true`, `to` may be any address. When set to `false`, `to` must be a contract that supports the LSP1 standard and not revert.",
252
285
  "from": "An array of sending addresses.",
253
286
  "to": "An array of recipient addresses.",
254
287
  "tokenId": "An array of token IDs to transfer."
@@ -256,6 +289,12 @@
256
289
  },
257
290
  "transferOwnership(address)": {
258
291
  "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
292
+ },
293
+ "version()": {
294
+ "details": "Get the version of the contract.",
295
+ "returns": {
296
+ "_0": "The version of the the contract."
297
+ }
259
298
  }
260
299
  },
261
300
  "version": 1
@@ -2,63 +2,74 @@
2
2
  "author": "Fabian Vogelsteller, Yamen Merhi, Jean Cavallera",
3
3
  "details": "Could be owned by an EOA or by a contract and is able to receive and send assets. Also allows for registering received assets by leveraging the key-value storage.",
4
4
  "errors": {
5
- "CannotTransferOwnershipToSelf()": [
6
- {
7
- "details": "Reverts when trying to transfer ownership to the `address(this)`."
8
- }
9
- ],
10
5
  "ERC725X_ContractDeploymentFailed()": [
11
6
  {
12
- "details": "reverts when contract deployment via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)` failed. whether using operation type 1 (CREATE) or 2 (CREATE2)."
7
+ "details": "Reverts when contract deployment failed via {execute} or {executeBatch} functions, This error can occur using either operation type 1 (`CREATE`) or 2 (`CREATE2`)."
13
8
  }
14
9
  ],
15
10
  "ERC725X_CreateOperationsRequireEmptyRecipientAddress()": [
16
11
  {
17
- "details": "reverts when passing a `to` address while deploying a contract va `ERC725X.execute(...)`/`ERC725X.executeBatch(...)` whether using operation type 1 (CREATE) or 2 (CREATE2)."
12
+ "details": "Reverts when passing a `to` address that is not `address(0)` (= address zero) while deploying a contract via {execute} or {executeBatch} functions. This error can occur using either operation type 1 (`CREATE`) or 2 (`CREATE2`)."
18
13
  }
19
14
  ],
20
15
  "ERC725X_ExecuteParametersEmptyArray()": [
21
16
  {
22
- "details": "reverts when one of the array parameter provided to `executeBatch(uint256[],address[],uint256[],bytes[]) is an empty array"
17
+ "details": "Reverts when one of the array parameter provided to the {executeBatch} function is an empty array."
23
18
  }
24
19
  ],
25
20
  "ERC725X_ExecuteParametersLengthMismatch()": [
26
21
  {
27
- "details": "reverts when there is not the same number of operation, to addresses, value, and data."
22
+ "details": "Reverts when there is not the same number of elements in the `operationTypes`, `targets` addresses, `values`, and `datas` array parameters provided when calling the {executeBatch} function."
28
23
  }
29
24
  ],
30
25
  "ERC725X_InsufficientBalance(uint256,uint256)": [
31
26
  {
32
- "details": "reverts when trying to send more native tokens `value` than available in current `balance`.",
27
+ "details": "Reverts when trying to send more native tokens `value` than available in current `balance`.",
33
28
  "params": {
34
- "balance": "the balance of the ERC725X contract.",
35
- "value": "the amount of native tokens sent via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)`."
29
+ "balance": "The balance of native tokens of the ERC725X smart contract.",
30
+ "value": "The amount of native tokens sent via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)` that is greater than the contract's `balance`."
36
31
  }
37
32
  }
38
33
  ],
39
34
  "ERC725X_MsgValueDisallowedInStaticCall()": [
40
35
  {
41
- "details": "the `value` parameter (= sending native tokens) is not allowed when making a staticcall via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)` because sending native tokens is a state changing operation."
36
+ "details": "Reverts when trying to send native tokens (`value` / `values[]` parameter of {execute} or {executeBatch} functions) while making a `staticcall` (`operationType == 3`). Sending native tokens via `staticcall` is not allowed because it is a state changing operation."
42
37
  }
43
38
  ],
44
39
  "ERC725X_NoContractBytecodeProvided()": [
45
40
  {
46
- "details": "reverts when no contract bytecode was provided as parameter when trying to deploy a contract via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)`, whether using operation type 1 (CREATE) or 2 (CREATE2)."
41
+ "details": "Reverts when no contract bytecode was provided as parameter when trying to deploy a contract via {execute} or {executeBatch}. This error can occur using either operation type 1 (`CREATE`) or 2 (`CREATE2`)."
47
42
  }
48
43
  ],
49
44
  "ERC725X_UnknownOperationType(uint256)": [
50
45
  {
51
- "details": "reverts when the `operationTypeProvided` is none of the default operation types available. (CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4)"
46
+ "details": "Reverts when the `operationTypeProvided` is none of the default operation types available. (CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4)",
47
+ "params": {
48
+ "operationTypeProvided": "The unrecognised operation type number provided to `ERC725X.execute(...)`/`ERC725X.executeBatch(...)`."
49
+ }
52
50
  }
53
51
  ],
54
52
  "ERC725Y_DataKeysValuesLengthMismatch()": [
55
53
  {
56
- "details": "reverts when there is not the same number of elements in the lists of data keys and data values when calling setDataBatch."
54
+ "details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
57
55
  }
58
56
  ],
59
57
  "ERC725Y_MsgValueDisallowed()": [
60
58
  {
61
- "details": "reverts when sending value to the `setData(..)` functions"
59
+ "details": "Reverts when sending value to the {setData} or {setDataBatch} function."
60
+ }
61
+ ],
62
+ "LSP14CallerNotPendingOwner(address)": [
63
+ {
64
+ "details": "Reverts when the `caller` that is trying to accept ownership of the contract is not the pending owner.",
65
+ "params": {
66
+ "caller": "The address that tried to accept ownership."
67
+ }
68
+ }
69
+ ],
70
+ "LSP14CannotTransferOwnershipToSelf()": [
71
+ {
72
+ "details": "Reverts when trying to transfer ownership to the `address(this)`."
62
73
  }
63
74
  ],
64
75
  "LSP14MustAcceptOwnershipInSeparateTransaction()": [
@@ -66,6 +77,15 @@
66
77
  "details": "Reverts when pending owner accept ownership in the same transaction of transferring ownership."
67
78
  }
68
79
  ],
80
+ "LSP14NotInRenounceOwnershipInterval(uint256,uint256)": [
81
+ {
82
+ "details": "Reverts when trying to renounce ownership before the initial confirmation delay.",
83
+ "params": {
84
+ "renounceOwnershipEnd": "The end timestamp when one can confirm the renouncement of ownership.",
85
+ "renounceOwnershipStart": "The start timestamp when one can confirm the renouncement of ownership."
86
+ }
87
+ }
88
+ ],
69
89
  "LSP1DelegateNotAllowedToSetDataKey(bytes32)": [
70
90
  {
71
91
  "details": "Reverts when the Vault version of [LSP1UniversalReceiverDelegate] sets LSP1/6/17 Data Keys.",
@@ -79,12 +99,11 @@
79
99
  "details": "reverts when there is no extension for the function selector being called with"
80
100
  }
81
101
  ],
82
- "NotInRenounceOwnershipInterval(uint256,uint256)": [
102
+ "OwnableCallerNotTheOwner(address)": [
83
103
  {
84
- "details": "Reverts when trying to renounce ownership before the initial confirmation delay.",
104
+ "details": "Reverts when only the owner is allowed to call the function.",
85
105
  "params": {
86
- "renounceOwnershipEnd": "The end timestamp when one can confirm the renouncement of ownership.",
87
- "renounceOwnershipStart": "The start timestamp when one can confirm the renouncement of ownership."
106
+ "callerAddress": "The address that tried to make the call."
88
107
  }
89
108
  }
90
109
  ]
@@ -93,7 +112,7 @@
93
112
  "methods": {
94
113
  "acceptOwnership()": {
95
114
  "custom:requirements": "- Only the {pendingOwner} can call this function. - When notifying the previous owner via LSP1, the typeId used must be the `keccak256(...)` hash of [LSP0OwnershipTransferred_SenderNotification]. - When notifying the new owner via LSP1, the typeId used must be the `keccak256(...)` hash of [LSP0OwnershipTransferred_RecipientNotification].",
96
- "details": "Transfer ownership of the contract from the current {owner()} to the {pendingOwner()}. Once this function is called: - The current {owner()} will loose access to the functions restricted to the {owner()} only. - The {pendingOwner()} will gain access to the functions restricted to the {owner()} only."
115
+ "details": "Transfer ownership of the contract from the current {owner()} to the {pendingOwner()}. Once this function is called: - The current {owner()} will lose access to the functions restricted to the {owner()} only. - The {pendingOwner()} will gain access to the functions restricted to the {owner()} only."
97
116
  },
98
117
  "batchCalls(bytes[])": {
99
118
  "custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
@@ -106,45 +125,47 @@
106
125
  }
107
126
  },
108
127
  "constructor": {
109
- "custom:events": "- {ValueReceived} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. - {DataChanged} event when setting the {_LSP9_SUPPORTED_STANDARDS_KEY}. - {UniversalReceiver} event when notifying the `initialOwner`.",
128
+ "custom:events": "- {UniversalReceiver} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. - {DataChanged} event when setting the {_LSP9_SUPPORTED_STANDARDS_KEY}. - {UniversalReceiver} event when notifying the `initialOwner`.",
110
129
  "details": "Sets `initialOwner` as the contract owner and the `SupportedStandards:LSP9Vault` Data Key. The `constructor` also allows funding the contract on deployment.",
111
130
  "params": {
112
131
  "newOwner": "The new owner of the contract."
113
132
  }
114
133
  },
115
134
  "execute(uint256,address,uint256,bytes)": {
116
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {ValueReceived} event when receiving native tokens.",
135
+ "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {UniversalReceiver} event when receiving native tokens.",
117
136
  "custom:info": "The `operationType` 4 `DELEGATECALL` is disabled by default in the LSP9 Vault.",
118
137
  "custom:requirements": "- Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3), `value` transfer is disallowed and must be 0.",
119
- "details": "Generic executor function to: - send native tokens to any address. - interact with any contract by passing an abi-encoded function call in the `data` parameter. - deploy a contract by providing its creation bytecode in the `data` parameter. Requirements: - SHOULD only be callable by the owner of the contract set via ERC173. - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is STATICCALL or DELEGATECALL, `value` SHOULD be 0. - `target` SHOULD be address(0) when deploying a contract. Emits an {Executed} event, when a call is made with `operationType` 0 (CALL), 3 (STATICCALL) or 4 (DELEGATECALL) Emits a {ContractCreated} event, when deploying a contract with `operationType` 1 (CREATE) or 2 (CREATE2)",
138
+ "details": "Generic executor function to: - send native tokens to any address. - interact with any contract by passing an abi-encoded function call in the `data` parameter. - deploy a contract by providing its creation bytecode in the `data` parameter.",
120
139
  "params": {
121
- "data": "The call data, or the creation bytecode of the contract to deploy",
140
+ "data": "The call data, or the creation bytecode of the contract to deploy if `operationType` is `1` or `2`.",
122
141
  "operationType": "The operation type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
123
142
  "target": "The address of the EOA or smart contract. (unused if a contract is created via operation type 1 or 2)",
124
143
  "value": "The amount of native tokens to transfer (in Wei)"
125
144
  }
126
145
  },
127
146
  "executeBatch(uint256[],address[],uint256[],bytes[])": {
128
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). (each iteration) - {ValueReceived} event when receiving native tokens.",
147
+ "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). (each iteration) - {UniversalReceiver} event when receiving native tokens.",
129
148
  "custom:info": "The `operationType` 4 `DELEGATECALL` is disabled by default in the LSP9 Vault.",
130
149
  "custom:requirements": "- The length of the parameters provided must be equal. - Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3), `value` transfer is disallowed and must be 0.",
131
- "details": "Generic batch executor function to: - send native tokens to any address. - interact with any contract by passing an abi-encoded function call in the `datas` parameter. - deploy a contract by providing its creation bytecode in the `datas` parameter. Requirements: - The length of the parameters provided MUST be equal - SHOULD only be callable by the owner of the contract set via ERC173. - if a `values` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is STATICCALL or DELEGATECALL, `values` SHOULD be 0. - `targets` SHOULD be address(0) when deploying a contract. Emits an {Executed} event, when a call is made with `operationType` 0 (CALL), 3 (STATICCALL) or 4 (DELEGATECALL) Emits a {ContractCreated} event, when deploying a contract with `operationType` 1 (CREATE) or 2 (CREATE2)",
150
+ "details": "Batch executor function that behaves the same as {execute} but allowing multiple operations in the same transaction.",
132
151
  "params": {
133
- "datas": "The list of call data, or the creation bytecode of the contract to deploy",
134
- "operationsType": "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
152
+ "datas": "The list of calldata, or the creation bytecode of the contract to deploy if `operationType` is `1` or `2`.",
153
+ "operationsType": "The list of operations type used: `CALL = 0`; `CREATE = 1`; `CREATE2 = 2`; `STATICCALL = 3`; `DELEGATECALL = 4`",
135
154
  "targets": "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
136
- "values": "The list of native token amounts to transfer (in Wei)"
155
+ "values": "The list of native token amounts to transfer (in Wei)."
137
156
  }
138
157
  },
139
158
  "getData(bytes32)": {
159
+ "details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
140
160
  "params": {
141
- "dataKey": "The key which value to retrieve"
161
+ "dataKey": "The data key for which to retrieve the value."
142
162
  },
143
163
  "returns": {
144
- "dataValue": "The data stored at the key"
164
+ "dataValue": "The bytes value stored under the specified data key."
145
165
  }
146
166
  },
147
167
  "getDataBatch(bytes32[])": {
168
+ "details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
148
169
  "params": {
149
170
  "dataKeys": "The array of keys which values to retrieve"
150
171
  },
@@ -165,20 +186,21 @@
165
186
  "details": "Renounce ownership of the contract in a 2-step process. 1. The first call will initiate the process of renouncing ownership. 2. The second call is used as a confirmation and will leave the contract without an owner."
166
187
  },
167
188
  "setData(bytes32,bytes)": {
168
- "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
189
+ "custom:events": "- {DataChanged} event.",
169
190
  "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
191
+ "details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
170
192
  "params": {
171
- "dataKey": "The key to retrieve stored value",
172
- "dataValue": "The value to set SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event."
193
+ "dataKey": "The data key for which to set a new value.",
194
+ "dataValue": "The new bytes value to set."
173
195
  }
174
196
  },
175
197
  "setDataBatch(bytes32[],bytes[])": {
176
- "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
198
+ "custom:events": "- {DataChanged} event. (on each iteration of setting data)",
177
199
  "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
178
- "details": "Sets array of data for multiple given `dataKeys` SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event.",
200
+ "details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
179
201
  "params": {
180
- "dataKeys": "The array of data keys for values to set",
181
- "dataValues": "The array of values to set"
202
+ "dataKeys": "An array of data keys to set bytes values for.",
203
+ "dataValues": "An array of bytes values to set for each `dataKeys`."
182
204
  }
183
205
  },
184
206
  "supportsInterface(bytes4)": {
@@ -198,7 +220,7 @@
198
220
  }
199
221
  },
200
222
  "universalReceiver(bytes32,bytes)": {
201
- "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
223
+ "custom:events": "- {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
202
224
  "details": "Achieves the goal of [LSP-1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts ([LSP1UniversalReceiverDelegate]) that react on the whole transaction and on the specific typeId, respectively. The function performs the following steps: 1. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_PREFIX] + `bytes32(typeId)`. (Check [LSP-2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
203
225
  "params": {
204
226
  "receivedData": "The data received.",
@@ -207,6 +229,12 @@
207
229
  "returns": {
208
230
  "returnedValues": "The ABI encoded return value of the LSP1UniversalReceiverDelegate call and the LSP1TypeIdDelegate call."
209
231
  }
232
+ },
233
+ "version()": {
234
+ "details": "Get the version of the contract.",
235
+ "returns": {
236
+ "_0": "The version of the the contract."
237
+ }
210
238
  }
211
239
  },
212
240
  "title": "Implementation of LSP9Vault built on top of [ERC725], [LSP-1-UniversalReceiver]",