@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)": [
@@ -73,12 +73,17 @@
73
73
  ],
74
74
  "LSP7NotifyTokenReceiverContractMissingLSP1Interface(address)": [
75
75
  {
76
- "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
76
+ "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
77
77
  }
78
78
  ],
79
79
  "LSP7NotifyTokenReceiverIsEOA(address)": [
80
80
  {
81
- "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
81
+ "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
82
+ }
83
+ ],
84
+ "LSP7TokenContractCannotHoldValue()": [
85
+ {
86
+ "details": "Error occurs when sending native tokens to the LSP7 contract without sending any data. E.g. Sending value without passing a bytes4 function selector to call a LSP17 Extension."
82
87
  }
83
88
  ],
84
89
  "LSP7TokenOwnerCannotBeOperator()": [
@@ -90,13 +95,51 @@
90
95
  {
91
96
  "details": "reverts when there is no extension for the function selector being called with"
92
97
  }
98
+ ],
99
+ "OperatorAllowanceCannotBeIncreasedFromZero(address)": [
100
+ {
101
+ "details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
102
+ }
103
+ ],
104
+ "OwnableCallerNotTheOwner(address)": [
105
+ {
106
+ "details": "Reverts when only the owner is allowed to call the function.",
107
+ "params": {
108
+ "callerAddress": "The address that tried to make the call."
109
+ }
110
+ }
111
+ ],
112
+ "OwnableCannotSetZeroAddressAsOwner()": [
113
+ {
114
+ "details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
115
+ }
93
116
  ]
94
117
  },
95
118
  "kind": "dev",
96
119
  "methods": {
120
+ "allowance(address,address)": {
121
+ "details": "Function to get operator allowance allowed to spend on behalf of `tokenOwner` from the ERC20 standard interface.",
122
+ "params": {
123
+ "operator": "The address approved by the `tokenOwner`",
124
+ "tokenOwner": "The address of the token owner"
125
+ },
126
+ "returns": {
127
+ "_0": "The amount `operator` is approved by `tokenOwner`"
128
+ }
129
+ },
130
+ "approve(address,uint256)": {
131
+ "details": "Approval function from th ERC20 standard interface.",
132
+ "params": {
133
+ "amount": "The amount to approve.",
134
+ "operator": "The address to approve for `amount`"
135
+ },
136
+ "returns": {
137
+ "_0": "`true` on successful approval."
138
+ }
139
+ },
97
140
  "authorizeOperator(address,uint256,bytes)": {
98
141
  "custom:danger": "To avoid front-running and Allowance Double-Spend Exploit when increasing or decreasing the authorized amount of an operator, it is advised to: 1. either call {revokeOperator} first, and then re-call {authorizeOperator} with the new amount. 2. or use the non-standard functions {increaseAllowance} or {decreaseAllowance}. For more information, see: https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/",
99
- "details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
142
+ "details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
100
143
  "params": {
101
144
  "amount": "The allowance amount of tokens operator has access to.",
102
145
  "operator": "The address to authorize as an operator.",
@@ -129,24 +172,23 @@
129
172
  }
130
173
  },
131
174
  "decreaseAllowance(address,uint256,bytes)": {
132
- "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `substractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
133
- "custom:info": "This is a non-standard function, not part of the LSP7 standard interface. It has been added in the LSP7 contract implementation so that it can be used as a prevention mechanism against the double spending allowance vulnerability.",
134
- "custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `substractedAmount`.",
135
- "details": "Atomically decreases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem.",
175
+ "details": "Atomically decreases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem. Notify the operator based on the LSP1-UniversalReceiver standard",
136
176
  "params": {
137
- "operator": "the operator to decrease allowance for `msg.sender`",
138
- "substractedAmount": "the amount to decrease by in the operator's allowance."
177
+ "operator": "The operator to decrease allowance for `msg.sender`",
178
+ "subtractedAmount": "The amount to decrease by in the operator's allowance."
139
179
  }
140
180
  },
141
181
  "getData(bytes32)": {
182
+ "details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
142
183
  "params": {
143
- "dataKey": "The key which value to retrieve"
184
+ "dataKey": "The data key for which to retrieve the value."
144
185
  },
145
186
  "returns": {
146
- "dataValue": "The data stored at the key"
187
+ "dataValue": "The bytes value stored under the specified data key."
147
188
  }
148
189
  },
149
190
  "getDataBatch(bytes32[])": {
191
+ "details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
150
192
  "params": {
151
193
  "dataKeys": "The array of keys which values to retrieve"
152
194
  },
@@ -164,17 +206,14 @@
164
206
  }
165
207
  },
166
208
  "increaseAllowance(address,uint256,bytes)": {
167
- "custom:events": "{AuthorizedOperator} indicating the updated allowance",
168
- "custom:info": "This is a non-standard function, not part of the LSP7 standard interface. It has been added in the LSP7 contract implementation so that it can be used as a prevention mechanism against double spending allowance vulnerability.",
169
- "custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
170
- "details": "Atomically increases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem.",
209
+ "details": "Atomically increases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem. Notify the operator based on the LSP1-UniversalReceiver standard",
171
210
  "params": {
172
- "addedAmount": "the additional amount to add on top of the current operator's allowance",
173
- "operator": "the operator to increase the allowance for `msg.sender`"
211
+ "addedAmount": "The additional amount to add on top of the current operator's allowance",
212
+ "operator": "The operator to increase the allowance for `msg.sender`"
174
213
  }
175
214
  },
176
215
  "name()": {
177
- "details": "Returns the name of the token.",
216
+ "details": "Returns the name of the token. For compatibility with clients & tools that expect ERC20.",
178
217
  "returns": {
179
218
  "_0": "The name of the token"
180
219
  }
@@ -185,31 +224,39 @@
185
224
  "renounceOwnership()": {
186
225
  "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."
187
226
  },
188
- "revokeOperator(address,bytes)": {
227
+ "revokeOperator(address,bool,bytes)": {
189
228
  "details": "Removes the `operator` address as an operator of callers tokens, disallowing it to send any amount of tokens on behalf of the token owner (the caller of the function `msg.sender`). See also {authorizedAmountFor}.",
190
229
  "params": {
230
+ "notify": "Boolean indicating whether to notify the operator or not.",
191
231
  "operator": "The address to revoke as an operator.",
192
232
  "operatorNotificationData": "The data to notify the operator about via LSP1."
193
233
  }
194
234
  },
195
235
  "setData(bytes32,bytes)": {
236
+ "custom:events": "{DataChanged} event.",
237
+ "custom:requirements": "- SHOULD only be callable by the {owner}.",
238
+ "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**.",
239
+ "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.",
196
240
  "params": {
197
- "dataKey": "The key to retrieve stored value",
198
- "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."
241
+ "dataKey": "The data key for which to set a new value.",
242
+ "dataValue": "The new bytes value to set."
199
243
  }
200
244
  },
201
245
  "setDataBatch(bytes32[],bytes[])": {
202
- "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.",
246
+ "custom:events": "{DataChanged} event **for each data key/value pair set**.",
247
+ "custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
248
+ "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**.",
249
+ "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.",
203
250
  "params": {
204
- "dataKeys": "The array of data keys for values to set",
205
- "dataValues": "The array of values to set"
251
+ "dataKeys": "An array of data keys to set bytes values for.",
252
+ "dataValues": "An array of bytes values to set for each `dataKeys`."
206
253
  }
207
254
  },
208
255
  "supportsInterface(bytes4)": {
209
256
  "details": "See {IERC165-supportsInterface}."
210
257
  },
211
258
  "symbol()": {
212
- "details": "Returns the symbol of the token, usually a shorter version of the name.",
259
+ "details": "Returns the symbol of the token, usually a shorter version of the name. For compatibility with clients & tools that expect ERC20.",
213
260
  "returns": {
214
261
  "_0": "The symbol of the token"
215
262
  }
@@ -223,31 +270,54 @@
223
270
  "transfer(address,address,uint256,bool,bytes)": {
224
271
  "details": "Transfers an `amount` of tokens from the `from` address to the `to` address and notify both sender and recipients via the LSP1 {`universalReceiver(...)`} function. If the tokens are transferred by an operator on behalf of a token holder, the allowance for the operator will be decreased by `amount` once the token transfer has been completed (See {authorizedAmountFor}).",
225
272
  "params": {
226
- "allowNonLSP1Recipient": "When set to `true`, the `to` address CAN be any address. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
227
273
  "amount": "The amount of tokens to transfer.",
228
274
  "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
275
+ "force": "When set to `true`, the `to` address CAN be any address. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
229
276
  "from": "The sender address.",
230
277
  "to": "The recipient address."
231
278
  }
232
279
  },
233
280
  "transfer(address,uint256)": {
234
- "custom:info": "This function uses the `allowNonLSP1Recipient` parameter as `true` so that EOA and any contract can receive tokens."
281
+ "custom:info": "This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.",
282
+ "details": "Transfer function from the ERC20 standard interface.",
283
+ "params": {
284
+ "amount": "The amount of tokens to transfer.",
285
+ "to": "The address receiving tokens."
286
+ },
287
+ "returns": {
288
+ "_0": "`true` on successful transfer."
289
+ }
235
290
  },
236
291
  "transferBatch(address[],address[],uint256[],bool[],bytes[])": {
237
292
  "details": "Same as {`transfer(...)`} but transfer multiple tokens based on the arrays of `from`, `to`, `amount`.",
238
293
  "params": {
239
- "allowNonLSP1Recipient": "For each transfer, when set to `true`, the `to` address CAN be any address. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
240
294
  "amount": "An array of amount of tokens to transfer for each `from -> to` transfer.",
241
295
  "data": "An array of additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
296
+ "force": "For each transfer, when set to `true`, the `to` address CAN be any address. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
242
297
  "from": "An array of sending addresses.",
243
298
  "to": "An array of receiving addresses."
244
299
  }
245
300
  },
246
301
  "transferFrom(address,address,uint256)": {
247
- "custom:info": "This function uses the `allowNonLSP1Recipient` parameter as `true` so that EOA and any contract can receive tokens."
302
+ "custom:info": "This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.",
303
+ "details": "Transfer functions for operators from the ERC20 standard interface.",
304
+ "params": {
305
+ "amount": "The amount of tokens to transfer.",
306
+ "from": "The address sending tokens.",
307
+ "to": "The address receiving tokens."
308
+ },
309
+ "returns": {
310
+ "_0": "`true` on successful transfer."
311
+ }
248
312
  },
249
313
  "transferOwnership(address)": {
250
314
  "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
315
+ },
316
+ "version()": {
317
+ "details": "Get the version of the contract.",
318
+ "returns": {
319
+ "_0": "The version of the the contract."
320
+ }
251
321
  }
252
322
  },
253
323
  "version": 1
@@ -2,17 +2,17 @@
2
2
  "errors": {
3
3
  "ERC725Y_DataKeysValuesEmptyArray()": [
4
4
  {
5
- "details": "reverts when one of the array parameter provided to `setDataBatch` is an empty array"
5
+ "details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
6
6
  }
7
7
  ],
8
8
  "ERC725Y_DataKeysValuesLengthMismatch()": [
9
9
  {
10
- "details": "reverts when there is not the same number of elements in the lists of data keys and data values when calling setDataBatch."
10
+ "details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
11
11
  }
12
12
  ],
13
13
  "ERC725Y_MsgValueDisallowed()": [
14
14
  {
15
- "details": "reverts when sending value to the `setData(..)` functions"
15
+ "details": "Reverts when sending value to the {setData} or {setDataBatch} function."
16
16
  }
17
17
  ],
18
18
  "InvalidExtensionAddress(bytes)": [
@@ -72,12 +72,17 @@
72
72
  ],
73
73
  "LSP7NotifyTokenReceiverContractMissingLSP1Interface(address)": [
74
74
  {
75
- "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
75
+ "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
76
76
  }
77
77
  ],
78
78
  "LSP7NotifyTokenReceiverIsEOA(address)": [
79
79
  {
80
- "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
80
+ "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
81
+ }
82
+ ],
83
+ "LSP7TokenContractCannotHoldValue()": [
84
+ {
85
+ "details": "Error occurs when sending native tokens to the LSP7 contract without sending any data. E.g. Sending value without passing a bytes4 function selector to call a LSP17 Extension."
81
86
  }
82
87
  ],
83
88
  "LSP7TokenOwnerCannotBeOperator()": [
@@ -89,13 +94,51 @@
89
94
  {
90
95
  "details": "reverts when there is no extension for the function selector being called with"
91
96
  }
97
+ ],
98
+ "OperatorAllowanceCannotBeIncreasedFromZero(address)": [
99
+ {
100
+ "details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
101
+ }
102
+ ],
103
+ "OwnableCallerNotTheOwner(address)": [
104
+ {
105
+ "details": "Reverts when only the owner is allowed to call the function.",
106
+ "params": {
107
+ "callerAddress": "The address that tried to make the call."
108
+ }
109
+ }
110
+ ],
111
+ "OwnableCannotSetZeroAddressAsOwner()": [
112
+ {
113
+ "details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
114
+ }
92
115
  ]
93
116
  },
94
117
  "kind": "dev",
95
118
  "methods": {
119
+ "allowance(address,address)": {
120
+ "details": "Function to get operator allowance allowed to spend on behalf of `tokenOwner` from the ERC20 standard interface.",
121
+ "params": {
122
+ "operator": "The address approved by the `tokenOwner`",
123
+ "tokenOwner": "The address of the token owner"
124
+ },
125
+ "returns": {
126
+ "_0": "The amount `operator` is approved by `tokenOwner`"
127
+ }
128
+ },
129
+ "approve(address,uint256)": {
130
+ "details": "Approval function from th ERC20 standard interface.",
131
+ "params": {
132
+ "amount": "The amount to approve.",
133
+ "operator": "The address to approve for `amount`"
134
+ },
135
+ "returns": {
136
+ "_0": "`true` on successful approval."
137
+ }
138
+ },
96
139
  "authorizeOperator(address,uint256,bytes)": {
97
140
  "custom:danger": "To avoid front-running and Allowance Double-Spend Exploit when increasing or decreasing the authorized amount of an operator, it is advised to: 1. either call {revokeOperator} first, and then re-call {authorizeOperator} with the new amount. 2. or use the non-standard functions {increaseAllowance} or {decreaseAllowance}. For more information, see: https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/",
98
- "details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
141
+ "details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
99
142
  "params": {
100
143
  "amount": "The allowance amount of tokens operator has access to.",
101
144
  "operator": "The address to authorize as an operator.",
@@ -135,24 +178,23 @@
135
178
  }
136
179
  },
137
180
  "decreaseAllowance(address,uint256,bytes)": {
138
- "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `substractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
139
- "custom:info": "This is a non-standard function, not part of the LSP7 standard interface. It has been added in the LSP7 contract implementation so that it can be used as a prevention mechanism against the double spending allowance vulnerability.",
140
- "custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `substractedAmount`.",
141
- "details": "Atomically decreases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem.",
181
+ "details": "Atomically decreases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem. Notify the operator based on the LSP1-UniversalReceiver standard",
142
182
  "params": {
143
- "operator": "the operator to decrease allowance for `msg.sender`",
144
- "substractedAmount": "the amount to decrease by in the operator's allowance."
183
+ "operator": "The operator to decrease allowance for `msg.sender`",
184
+ "subtractedAmount": "The amount to decrease by in the operator's allowance."
145
185
  }
146
186
  },
147
187
  "getData(bytes32)": {
188
+ "details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
148
189
  "params": {
149
- "dataKey": "The key which value to retrieve"
190
+ "dataKey": "The data key for which to retrieve the value."
150
191
  },
151
192
  "returns": {
152
- "dataValue": "The data stored at the key"
193
+ "dataValue": "The bytes value stored under the specified data key."
153
194
  }
154
195
  },
155
196
  "getDataBatch(bytes32[])": {
197
+ "details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
156
198
  "params": {
157
199
  "dataKeys": "The array of keys which values to retrieve"
158
200
  },
@@ -170,20 +212,17 @@
170
212
  }
171
213
  },
172
214
  "increaseAllowance(address,uint256,bytes)": {
173
- "custom:events": "{AuthorizedOperator} indicating the updated allowance",
174
- "custom:info": "This is a non-standard function, not part of the LSP7 standard interface. It has been added in the LSP7 contract implementation so that it can be used as a prevention mechanism against double spending allowance vulnerability.",
175
- "custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
176
- "details": "Atomically increases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem.",
215
+ "details": "Atomically increases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem. Notify the operator based on the LSP1-UniversalReceiver standard",
177
216
  "params": {
178
- "addedAmount": "the additional amount to add on top of the current operator's allowance",
179
- "operator": "the operator to increase the allowance for `msg.sender`"
217
+ "addedAmount": "The additional amount to add on top of the current operator's allowance",
218
+ "operator": "The operator to increase the allowance for `msg.sender`"
180
219
  }
181
220
  },
182
221
  "mint(address,uint256,bool,bytes)": {
183
222
  "details": "Public {_mint} function only callable by the {owner}."
184
223
  },
185
224
  "name()": {
186
- "details": "Returns the name of the token.",
225
+ "details": "Returns the name of the token. For compatibility with clients & tools that expect ERC20.",
187
226
  "returns": {
188
227
  "_0": "The name of the token"
189
228
  }
@@ -194,31 +233,39 @@
194
233
  "renounceOwnership()": {
195
234
  "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."
196
235
  },
197
- "revokeOperator(address,bytes)": {
236
+ "revokeOperator(address,bool,bytes)": {
198
237
  "details": "Removes the `operator` address as an operator of callers tokens, disallowing it to send any amount of tokens on behalf of the token owner (the caller of the function `msg.sender`). See also {authorizedAmountFor}.",
199
238
  "params": {
239
+ "notify": "Boolean indicating whether to notify the operator or not.",
200
240
  "operator": "The address to revoke as an operator.",
201
241
  "operatorNotificationData": "The data to notify the operator about via LSP1."
202
242
  }
203
243
  },
204
244
  "setData(bytes32,bytes)": {
245
+ "custom:events": "{DataChanged} event.",
246
+ "custom:requirements": "- SHOULD only be callable by the {owner}.",
247
+ "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**.",
248
+ "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.",
205
249
  "params": {
206
- "dataKey": "The key to retrieve stored value",
207
- "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."
250
+ "dataKey": "The data key for which to set a new value.",
251
+ "dataValue": "The new bytes value to set."
208
252
  }
209
253
  },
210
254
  "setDataBatch(bytes32[],bytes[])": {
211
- "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.",
255
+ "custom:events": "{DataChanged} event **for each data key/value pair set**.",
256
+ "custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
257
+ "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**.",
258
+ "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.",
212
259
  "params": {
213
- "dataKeys": "The array of data keys for values to set",
214
- "dataValues": "The array of values to set"
260
+ "dataKeys": "An array of data keys to set bytes values for.",
261
+ "dataValues": "An array of bytes values to set for each `dataKeys`."
215
262
  }
216
263
  },
217
264
  "supportsInterface(bytes4)": {
218
265
  "details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."
219
266
  },
220
267
  "symbol()": {
221
- "details": "Returns the symbol of the token, usually a shorter version of the name.",
268
+ "details": "Returns the symbol of the token, usually a shorter version of the name. For compatibility with clients & tools that expect ERC20.",
222
269
  "returns": {
223
270
  "_0": "The symbol of the token"
224
271
  }
@@ -232,31 +279,54 @@
232
279
  "transfer(address,address,uint256,bool,bytes)": {
233
280
  "details": "Transfers an `amount` of tokens from the `from` address to the `to` address and notify both sender and recipients via the LSP1 {`universalReceiver(...)`} function. If the tokens are transferred by an operator on behalf of a token holder, the allowance for the operator will be decreased by `amount` once the token transfer has been completed (See {authorizedAmountFor}).",
234
281
  "params": {
235
- "allowNonLSP1Recipient": "When set to `true`, the `to` address CAN be any address. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
236
282
  "amount": "The amount of tokens to transfer.",
237
283
  "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
284
+ "force": "When set to `true`, the `to` address CAN be any address. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
238
285
  "from": "The sender address.",
239
286
  "to": "The recipient address."
240
287
  }
241
288
  },
242
289
  "transfer(address,uint256)": {
243
- "custom:info": "This function uses the `allowNonLSP1Recipient` parameter as `true` so that EOA and any contract can receive tokens."
290
+ "custom:info": "This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.",
291
+ "details": "Transfer function from the ERC20 standard interface.",
292
+ "params": {
293
+ "amount": "The amount of tokens to transfer. ",
294
+ "to": "The address receiving tokens."
295
+ },
296
+ "returns": {
297
+ "_0": "`true` on successful transfer."
298
+ }
244
299
  },
245
300
  "transferBatch(address[],address[],uint256[],bool[],bytes[])": {
246
301
  "details": "Same as {`transfer(...)`} but transfer multiple tokens based on the arrays of `from`, `to`, `amount`.",
247
302
  "params": {
248
- "allowNonLSP1Recipient": "For each transfer, when set to `true`, the `to` address CAN be any address. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
249
303
  "amount": "An array of amount of tokens to transfer for each `from -> to` transfer.",
250
304
  "data": "An array of additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
305
+ "force": "For each transfer, when set to `true`, the `to` address CAN be any address. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
251
306
  "from": "An array of sending addresses.",
252
307
  "to": "An array of receiving addresses."
253
308
  }
254
309
  },
255
310
  "transferFrom(address,address,uint256)": {
256
- "custom:info": "This function uses the `allowNonLSP1Recipient` parameter as `true` so that EOA and any contract can receive tokens."
311
+ "custom:info": "This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.",
312
+ "details": "Transfer functions for operators from the ERC20 standard interface.",
313
+ "params": {
314
+ "amount": "The amount of tokens to transfer.",
315
+ "from": "The address sending tokens.",
316
+ "to": "The address receiving tokens."
317
+ },
318
+ "returns": {
319
+ "_0": "`true` on successful transfer."
320
+ }
257
321
  },
258
322
  "transferOwnership(address)": {
259
323
  "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
324
+ },
325
+ "version()": {
326
+ "details": "Get the version of the contract.",
327
+ "returns": {
328
+ "_0": "The version of the the contract."
329
+ }
260
330
  }
261
331
  },
262
332
  "title": "LSP7CompatibleERC20 deployable preset contract with a public {mint} function callable only by the contract {owner}.",