@lukso/lsp-smart-contracts 0.11.1 → 0.12.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/CONTRIBUTING.md +4 -0
  2. package/README.md +10 -2
  3. package/artifacts/Create2Factory.json +2 -2
  4. package/artifacts/LSP0ERC725Account.json +52 -25
  5. package/artifacts/LSP0ERC725AccountInit.json +52 -25
  6. package/artifacts/LSP11BasicSocialRecovery.json +18 -2
  7. package/artifacts/LSP11BasicSocialRecoveryInit.json +18 -2
  8. package/artifacts/LSP16UniversalFactory.json +3 -3
  9. package/artifacts/LSP1UniversalReceiverDelegateUP.json +14 -46
  10. package/artifacts/LSP1UniversalReceiverDelegateVault.json +14 -46
  11. package/artifacts/LSP23LinkedContractsFactory.json +3 -3
  12. package/artifacts/LSP4DigitalAssetMetadata.json +16 -0
  13. package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +16 -0
  14. package/artifacts/LSP6KeyManager.json +14 -9
  15. package/artifacts/LSP6KeyManagerInit.json +14 -9
  16. package/artifacts/LSP7CappedSupply.json +29 -4
  17. package/artifacts/LSP7CappedSupplyInitAbstract.json +29 -4
  18. package/artifacts/LSP7CompatibleERC20.json +48 -23
  19. package/artifacts/LSP7CompatibleERC20InitAbstract.json +48 -23
  20. package/artifacts/LSP7CompatibleERC20Mintable.json +51 -26
  21. package/artifacts/LSP7CompatibleERC20MintableInit.json +51 -26
  22. package/artifacts/LSP7DigitalAsset.json +29 -4
  23. package/artifacts/LSP7DigitalAssetInitAbstract.json +29 -4
  24. package/artifacts/LSP7Mintable.json +32 -7
  25. package/artifacts/LSP7MintableInit.json +32 -7
  26. package/artifacts/LSP8CappedSupply.json +33 -3
  27. package/artifacts/LSP8CappedSupplyInitAbstract.json +33 -3
  28. package/artifacts/LSP8CompatibleERC721.json +55 -25
  29. package/artifacts/LSP8CompatibleERC721InitAbstract.json +55 -25
  30. package/artifacts/LSP8CompatibleERC721Mintable.json +63 -28
  31. package/artifacts/LSP8CompatibleERC721MintableInit.json +63 -28
  32. package/artifacts/LSP8IdentifiableDigitalAsset.json +33 -3
  33. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +33 -3
  34. package/artifacts/LSP8Mintable.json +41 -6
  35. package/artifacts/LSP8MintableInit.json +41 -6
  36. package/artifacts/LSP9Vault.json +38 -16
  37. package/artifacts/LSP9VaultInit.json +38 -16
  38. package/artifacts/UniversalProfile.json +52 -25
  39. package/artifacts/UniversalProfileInit.json +52 -25
  40. package/contracts/Factories/Create2Factory.sol +1 -1
  41. package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +0 -14
  42. package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
  43. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +122 -94
  44. package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +5 -3
  45. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +54 -14
  46. package/contracts/LSP11BasicSocialRecovery/LSP11Constants.sol +1 -1
  47. package/contracts/LSP11BasicSocialRecovery/LSP11Errors.sol +1 -1
  48. package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +2 -2
  49. package/contracts/LSP14Ownable2Step/LSP14Constants.sol +1 -1
  50. package/contracts/LSP14Ownable2Step/LSP14Errors.sol +9 -3
  51. package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +16 -12
  52. package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +65 -96
  53. package/contracts/LSP17ContractExtension/LSP17Errors.sol +1 -1
  54. package/contracts/LSP17ContractExtension/LSP17Extendable.sol +10 -7
  55. package/contracts/LSP17ContractExtension/LSP17Extension.sol +4 -4
  56. package/contracts/LSP17Extensions/Extension4337.sol +101 -0
  57. package/contracts/LSP17Extensions/OnERC721ReceivedExtension.sol +15 -0
  58. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +1 -2
  59. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiverDelegate.sol +24 -0
  60. package/contracts/LSP1UniversalReceiver/LSP1Constants.sol +1 -0
  61. package/contracts/LSP1UniversalReceiver/LSP1Errors.sol +0 -6
  62. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +20 -27
  63. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +18 -21
  64. package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +2 -46
  65. package/contracts/LSP20CallVerification/ILSP20CallVerifier.sol +13 -9
  66. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +39 -14
  67. package/contracts/LSP20CallVerification/LSP20Constants.sol +6 -6
  68. package/contracts/LSP20CallVerification/LSP20Errors.sol +9 -3
  69. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/ILSP23LinkedContractsFactory.sol +1 -1
  70. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/IPostDeploymentModule.sol +1 -1
  71. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/LSP23Errors.sol +1 -1
  72. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/LSP23LinkedContractsFactory.sol +5 -1
  73. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/modules/UniversalProfileInitPostDeploymentModule.sol +1 -1
  74. package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/modules/UniversalProfilePostDeploymentModule.sol +1 -1
  75. package/contracts/LSP25ExecuteRelayCall/LSP25Constants.sol +1 -1
  76. package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +8 -3
  77. package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +1 -97
  78. package/contracts/LSP3ProfileMetadata/LSP3Constants.sol +1 -1
  79. package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +1 -1
  80. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +8 -3
  81. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +8 -3
  82. package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +4 -3
  83. package/contracts/LSP6KeyManager/LSP6Constants.sol +4 -3
  84. package/contracts/LSP6KeyManager/LSP6Errors.sol +2 -23
  85. package/contracts/LSP6KeyManager/LSP6KeyManager.sol +0 -1
  86. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +134 -99
  87. package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +0 -1
  88. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +1 -2
  89. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteRelayCallModule.sol +27 -0
  90. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +31 -25
  91. package/contracts/LSP6KeyManager/LSP6Utils.sol +29 -2
  92. package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +10 -10
  93. package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -1
  94. package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +22 -8
  95. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +180 -118
  96. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +21 -7
  97. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +12 -3
  98. package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +5 -1
  99. package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +4 -1
  100. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +7 -7
  101. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +3 -3
  102. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +120 -53
  103. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +122 -53
  104. package/contracts/LSP7DigitalAsset/presets/ILSP7Mintable.sol +3 -3
  105. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +4 -4
  106. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +2 -2
  107. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +4 -4
  108. package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +4 -4
  109. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +1 -1
  110. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +4 -4
  111. package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +11 -11
  112. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +12 -1
  113. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +32 -16
  114. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +61 -11
  115. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +113 -74
  116. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +63 -10
  117. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +1 -1
  118. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +1 -1
  119. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +7 -7
  120. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +3 -3
  121. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +162 -73
  122. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +168 -84
  123. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +7 -7
  124. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +7 -7
  125. package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +3 -3
  126. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +8 -7
  127. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +5 -3
  128. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +13 -7
  129. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +9 -8
  130. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +9 -3
  131. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +10 -8
  132. package/contracts/LSP9Vault/ILSP9Vault.sol +0 -13
  133. package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
  134. package/contracts/LSP9Vault/LSP9Errors.sol +1 -1
  135. package/contracts/LSP9Vault/LSP9VaultCore.sol +58 -41
  136. package/devdocs/LSP0ERC725Account.json +73 -45
  137. package/devdocs/LSP0ERC725AccountInit.json +73 -45
  138. package/devdocs/LSP11BasicSocialRecovery.json +13 -0
  139. package/devdocs/LSP11BasicSocialRecoveryInit.json +13 -0
  140. package/devdocs/LSP16UniversalFactory.json +9 -9
  141. package/devdocs/LSP1UniversalReceiverDelegateUP.json +1 -6
  142. package/devdocs/LSP1UniversalReceiverDelegateVault.json +1 -6
  143. package/devdocs/LSP4DigitalAssetMetadata.json +32 -10
  144. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +32 -10
  145. package/devdocs/LSP6KeyManager.json +12 -14
  146. package/devdocs/LSP6KeyManagerInit.json +12 -14
  147. package/devdocs/LSP7CappedSupply.json +47 -20
  148. package/devdocs/LSP7CappedSupplyInitAbstract.json +47 -20
  149. package/devdocs/LSP7CompatibleERC20.json +88 -24
  150. package/devdocs/LSP7CompatibleERC20InitAbstract.json +88 -24
  151. package/devdocs/LSP7CompatibleERC20Mintable.json +88 -24
  152. package/devdocs/LSP7CompatibleERC20MintableInit.json +88 -24
  153. package/devdocs/LSP7DigitalAsset.json +47 -20
  154. package/devdocs/LSP7DigitalAssetInitAbstract.json +47 -20
  155. package/devdocs/LSP7Mintable.json +47 -20
  156. package/devdocs/LSP7MintableInit.json +47 -20
  157. package/devdocs/LSP8CappedSupply.json +57 -25
  158. package/devdocs/LSP8CappedSupplyInitAbstract.json +57 -25
  159. package/devdocs/LSP8CompatibleERC721.json +84 -31
  160. package/devdocs/LSP8CompatibleERC721InitAbstract.json +84 -31
  161. package/devdocs/LSP8CompatibleERC721Mintable.json +86 -33
  162. package/devdocs/LSP8CompatibleERC721MintableInit.json +87 -34
  163. package/devdocs/LSP8IdentifiableDigitalAsset.json +61 -26
  164. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +57 -25
  165. package/devdocs/LSP8Mintable.json +59 -27
  166. package/devdocs/LSP8MintableInit.json +60 -28
  167. package/devdocs/LSP9Vault.json +57 -35
  168. package/devdocs/LSP9VaultInit.json +57 -35
  169. package/devdocs/UniversalProfile.json +73 -45
  170. package/devdocs/UniversalProfileInit.json +73 -45
  171. package/dist/constants.cjs.js +4323 -2361
  172. package/dist/constants.d.ts +2933 -1022
  173. package/dist/constants.es.js +4322 -2361
  174. package/package.json +8 -6
  175. package/userdocs/LSP0ERC725Account.json +17 -8
  176. package/userdocs/LSP0ERC725AccountInit.json +17 -8
  177. package/userdocs/LSP16UniversalFactory.json +26 -1
  178. package/userdocs/LSP1UniversalReceiverDelegateUP.json +1 -11
  179. package/userdocs/LSP1UniversalReceiverDelegateVault.json +1 -11
  180. package/userdocs/LSP4DigitalAssetMetadata.json +7 -4
  181. package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +7 -4
  182. package/userdocs/LSP6KeyManager.json +0 -5
  183. package/userdocs/LSP6KeyManagerInit.json +0 -5
  184. package/userdocs/LSP7CappedSupply.json +14 -6
  185. package/userdocs/LSP7CappedSupplyInitAbstract.json +13 -5
  186. package/userdocs/LSP7CompatibleERC20.json +15 -5
  187. package/userdocs/LSP7CompatibleERC20InitAbstract.json +15 -5
  188. package/userdocs/LSP7CompatibleERC20Mintable.json +15 -5
  189. package/userdocs/LSP7CompatibleERC20MintableInit.json +15 -5
  190. package/userdocs/LSP7DigitalAsset.json +15 -5
  191. package/userdocs/LSP7DigitalAssetInitAbstract.json +15 -5
  192. package/userdocs/LSP7Mintable.json +15 -5
  193. package/userdocs/LSP7MintableInit.json +15 -5
  194. package/userdocs/LSP8CappedSupply.json +13 -5
  195. package/userdocs/LSP8CappedSupplyInitAbstract.json +12 -4
  196. package/userdocs/LSP8CompatibleERC721.json +27 -17
  197. package/userdocs/LSP8CompatibleERC721InitAbstract.json +27 -17
  198. package/userdocs/LSP8CompatibleERC721Mintable.json +28 -18
  199. package/userdocs/LSP8CompatibleERC721MintableInit.json +29 -19
  200. package/userdocs/LSP8IdentifiableDigitalAsset.json +15 -5
  201. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +14 -4
  202. package/userdocs/LSP8Mintable.json +15 -5
  203. package/userdocs/LSP8MintableInit.json +16 -6
  204. package/userdocs/LSP9Vault.json +20 -11
  205. package/userdocs/LSP9VaultInit.json +20 -11
  206. package/userdocs/UniversalProfile.json +17 -8
  207. package/userdocs/UniversalProfileInit.json +17 -8
  208. package/artifacts/LSP4Compatibility.json +0 -216
  209. package/contracts/LSP4DigitalAssetMetadata/ILSP4Compatibility.sol +0 -25
  210. package/contracts/LSP4DigitalAssetMetadata/LSP4Compatibility.sol +0 -38
  211. package/contracts/LSP7DigitalAsset/extensions/ILSP7CompatibleERC20.sol +0 -83
  212. package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +0 -175
  213. package/devdocs/LSP4Compatibility.json +0 -79
  214. package/userdocs/LSP4Compatibility.json +0 -20
@@ -4,17 +4,17 @@
4
4
  "errors": {
5
5
  "ERC725Y_DataKeysValuesEmptyArray()": [
6
6
  {
7
- "details": "reverts when one of the array parameter provided to `setDataBatch` is an empty array"
7
+ "details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
8
8
  }
9
9
  ],
10
10
  "ERC725Y_DataKeysValuesLengthMismatch()": [
11
11
  {
12
- "details": "reverts when there is not the same number of elements in the lists of data keys and data values when calling setDataBatch."
12
+ "details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
13
13
  }
14
14
  ],
15
15
  "ERC725Y_MsgValueDisallowed()": [
16
16
  {
17
- "details": "reverts when sending value to the `setData(..)` functions"
17
+ "details": "Reverts when sending value to the {setData} or {setDataBatch} function."
18
18
  }
19
19
  ],
20
20
  "InvalidExtensionAddress(bytes)": [
@@ -74,12 +74,17 @@
74
74
  ],
75
75
  "LSP7NotifyTokenReceiverContractMissingLSP1Interface(address)": [
76
76
  {
77
- "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
77
+ "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
78
78
  }
79
79
  ],
80
80
  "LSP7NotifyTokenReceiverIsEOA(address)": [
81
81
  {
82
- "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
82
+ "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
83
+ }
84
+ ],
85
+ "LSP7TokenContractCannotHoldValue()": [
86
+ {
87
+ "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."
83
88
  }
84
89
  ],
85
90
  "LSP7TokenOwnerCannotBeOperator()": [
@@ -91,6 +96,19 @@
91
96
  {
92
97
  "details": "reverts when there is no extension for the function selector being called with"
93
98
  }
99
+ ],
100
+ "OwnableCallerNotTheOwner(address)": [
101
+ {
102
+ "details": "Reverts when only the owner is allowed to call the function.",
103
+ "params": {
104
+ "callerAddress": "The address that tried to make the call."
105
+ }
106
+ }
107
+ ],
108
+ "OwnableCannotSetZeroAddressAsOwner()": [
109
+ {
110
+ "details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
111
+ }
94
112
  ]
95
113
  },
96
114
  "kind": "dev",
@@ -130,24 +148,26 @@
130
148
  }
131
149
  },
132
150
  "decreaseAllowance(address,uint256,bytes)": {
133
- "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`.",
151
+ "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
134
152
  "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.",
135
- "custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `substractedAmount`.",
153
+ "custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
136
154
  "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.",
137
155
  "params": {
138
- "operator": "the operator to decrease allowance for `msg.sender`",
139
- "substractedAmount": "the amount to decrease by in the operator's allowance."
156
+ "operator": "The operator to decrease allowance for `msg.sender`",
157
+ "subtractedAmount": "The amount to decrease by in the operator's allowance."
140
158
  }
141
159
  },
142
160
  "getData(bytes32)": {
161
+ "details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
143
162
  "params": {
144
- "dataKey": "The key which value to retrieve"
163
+ "dataKey": "The data key for which to retrieve the value."
145
164
  },
146
165
  "returns": {
147
- "dataValue": "The data stored at the key"
166
+ "dataValue": "The bytes value stored under the specified data key."
148
167
  }
149
168
  },
150
169
  "getDataBatch(bytes32[])": {
170
+ "details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
151
171
  "params": {
152
172
  "dataKeys": "The array of keys which values to retrieve"
153
173
  },
@@ -170,8 +190,8 @@
170
190
  "custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
171
191
  "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.",
172
192
  "params": {
173
- "addedAmount": "the additional amount to add on top of the current operator's allowance",
174
- "operator": "the operator to increase the allowance for `msg.sender`"
193
+ "addedAmount": "The additional amount to add on top of the current operator's allowance",
194
+ "operator": "The operator to increase the allowance for `msg.sender`"
175
195
  }
176
196
  },
177
197
  "owner()": {
@@ -188,16 +208,23 @@
188
208
  }
189
209
  },
190
210
  "setData(bytes32,bytes)": {
211
+ "custom:events": "{DataChanged} event.",
212
+ "custom:requirements": "- SHOULD only be callable by the {owner}.",
213
+ "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**.",
214
+ "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.",
191
215
  "params": {
192
- "dataKey": "The key to retrieve stored value",
193
- "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."
216
+ "dataKey": "The data key for which to set a new value.",
217
+ "dataValue": "The new bytes value to set."
194
218
  }
195
219
  },
196
220
  "setDataBatch(bytes32[],bytes[])": {
197
- "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.",
221
+ "custom:events": "{DataChanged} event **for each data key/value pair set**.",
222
+ "custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
223
+ "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**.",
224
+ "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.",
198
225
  "params": {
199
- "dataKeys": "The array of data keys for values to set",
200
- "dataValues": "The array of values to set"
226
+ "dataKeys": "An array of data keys to set bytes values for.",
227
+ "dataValues": "An array of bytes values to set for each `dataKeys`."
201
228
  }
202
229
  },
203
230
  "supportsInterface(bytes4)": {
@@ -212,9 +239,9 @@
212
239
  "transfer(address,address,uint256,bool,bytes)": {
213
240
  "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}).",
214
241
  "params": {
215
- "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.",
216
242
  "amount": "The amount of tokens to transfer.",
217
243
  "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
244
+ "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.",
218
245
  "from": "The sender address.",
219
246
  "to": "The recipient address."
220
247
  }
@@ -222,9 +249,9 @@
222
249
  "transferBatch(address[],address[],uint256[],bool[],bytes[])": {
223
250
  "details": "Same as {`transfer(...)`} but transfer multiple tokens based on the arrays of `from`, `to`, `amount`.",
224
251
  "params": {
225
- "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.",
226
252
  "amount": "An array of amount of tokens to transfer for each `from -> to` transfer.",
227
253
  "data": "An array of additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
254
+ "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.",
228
255
  "from": "An array of sending addresses.",
229
256
  "to": "An array of receiving addresses."
230
257
  }
@@ -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,6 +95,19 @@
90
95
  {
91
96
  "details": "reverts when there is no extension for the function selector being called with"
92
97
  }
98
+ ],
99
+ "OwnableCallerNotTheOwner(address)": [
100
+ {
101
+ "details": "Reverts when only the owner is allowed to call the function.",
102
+ "params": {
103
+ "callerAddress": "The address that tried to make the call."
104
+ }
105
+ }
106
+ ],
107
+ "OwnableCannotSetZeroAddressAsOwner()": [
108
+ {
109
+ "details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
110
+ }
93
111
  ]
94
112
  },
95
113
  "kind": "dev",
@@ -136,24 +154,26 @@
136
154
  }
137
155
  },
138
156
  "decreaseAllowance(address,uint256,bytes)": {
139
- "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`.",
157
+ "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
140
158
  "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.",
141
- "custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `substractedAmount`.",
159
+ "custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
142
160
  "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.",
143
161
  "params": {
144
- "operator": "the operator to decrease allowance for `msg.sender`",
145
- "substractedAmount": "the amount to decrease by in the operator's allowance."
162
+ "operator": "The operator to decrease allowance for `msg.sender`",
163
+ "subtractedAmount": "The amount to decrease by in the operator's allowance."
146
164
  }
147
165
  },
148
166
  "getData(bytes32)": {
167
+ "details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
149
168
  "params": {
150
- "dataKey": "The key which value to retrieve"
169
+ "dataKey": "The data key for which to retrieve the value."
151
170
  },
152
171
  "returns": {
153
- "dataValue": "The data stored at the key"
172
+ "dataValue": "The bytes value stored under the specified data key."
154
173
  }
155
174
  },
156
175
  "getDataBatch(bytes32[])": {
176
+ "details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
157
177
  "params": {
158
178
  "dataKeys": "The array of keys which values to retrieve"
159
179
  },
@@ -176,8 +196,8 @@
176
196
  "custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
177
197
  "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.",
178
198
  "params": {
179
- "addedAmount": "the additional amount to add on top of the current operator's allowance",
180
- "operator": "the operator to increase the allowance for `msg.sender`"
199
+ "addedAmount": "The additional amount to add on top of the current operator's allowance",
200
+ "operator": "The operator to increase the allowance for `msg.sender`"
181
201
  }
182
202
  },
183
203
  "mint(address,uint256,bool,bytes)": {
@@ -197,16 +217,23 @@
197
217
  }
198
218
  },
199
219
  "setData(bytes32,bytes)": {
220
+ "custom:events": "{DataChanged} event.",
221
+ "custom:requirements": "- SHOULD only be callable by the {owner}.",
222
+ "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**.",
223
+ "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.",
200
224
  "params": {
201
- "dataKey": "The key to retrieve stored value",
202
- "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."
225
+ "dataKey": "The data key for which to set a new value.",
226
+ "dataValue": "The new bytes value to set."
203
227
  }
204
228
  },
205
229
  "setDataBatch(bytes32[],bytes[])": {
206
- "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.",
230
+ "custom:events": "{DataChanged} event **for each data key/value pair set**.",
231
+ "custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
232
+ "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**.",
233
+ "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.",
207
234
  "params": {
208
- "dataKeys": "The array of data keys for values to set",
209
- "dataValues": "The array of values to set"
235
+ "dataKeys": "An array of data keys to set bytes values for.",
236
+ "dataValues": "An array of bytes values to set for each `dataKeys`."
210
237
  }
211
238
  },
212
239
  "supportsInterface(bytes4)": {
@@ -221,9 +248,9 @@
221
248
  "transfer(address,address,uint256,bool,bytes)": {
222
249
  "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}).",
223
250
  "params": {
224
- "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.",
225
251
  "amount": "The amount of tokens to transfer.",
226
252
  "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
253
+ "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.",
227
254
  "from": "The sender address.",
228
255
  "to": "The recipient address."
229
256
  }
@@ -231,9 +258,9 @@
231
258
  "transferBatch(address[],address[],uint256[],bool[],bytes[])": {
232
259
  "details": "Same as {`transfer(...)`} but transfer multiple tokens based on the arrays of `from`, `to`, `amount`.",
233
260
  "params": {
234
- "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.",
235
261
  "amount": "An array of amount of tokens to transfer for each `from -> to` transfer.",
236
262
  "data": "An array of additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
263
+ "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.",
237
264
  "from": "An array of sending addresses.",
238
265
  "to": "An array of receiving addresses."
239
266
  }
@@ -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,6 +95,19 @@
90
95
  {
91
96
  "details": "reverts when there is no extension for the function selector being called with"
92
97
  }
98
+ ],
99
+ "OwnableCallerNotTheOwner(address)": [
100
+ {
101
+ "details": "Reverts when only the owner is allowed to call the function.",
102
+ "params": {
103
+ "callerAddress": "The address that tried to make the call."
104
+ }
105
+ }
106
+ ],
107
+ "OwnableCannotSetZeroAddressAsOwner()": [
108
+ {
109
+ "details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
110
+ }
93
111
  ]
94
112
  },
95
113
  "kind": "dev",
@@ -132,24 +150,26 @@
132
150
  }
133
151
  },
134
152
  "decreaseAllowance(address,uint256,bytes)": {
135
- "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`.",
153
+ "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
136
154
  "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.",
137
- "custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `substractedAmount`.",
155
+ "custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
138
156
  "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.",
139
157
  "params": {
140
- "operator": "the operator to decrease allowance for `msg.sender`",
141
- "substractedAmount": "the amount to decrease by in the operator's allowance."
158
+ "operator": "The operator to decrease allowance for `msg.sender`",
159
+ "subtractedAmount": "The amount to decrease by in the operator's allowance."
142
160
  }
143
161
  },
144
162
  "getData(bytes32)": {
163
+ "details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
145
164
  "params": {
146
- "dataKey": "The key which value to retrieve"
165
+ "dataKey": "The data key for which to retrieve the value."
147
166
  },
148
167
  "returns": {
149
- "dataValue": "The data stored at the key"
168
+ "dataValue": "The bytes value stored under the specified data key."
150
169
  }
151
170
  },
152
171
  "getDataBatch(bytes32[])": {
172
+ "details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
153
173
  "params": {
154
174
  "dataKeys": "The array of keys which values to retrieve"
155
175
  },
@@ -172,8 +192,8 @@
172
192
  "custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
173
193
  "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.",
174
194
  "params": {
175
- "addedAmount": "the additional amount to add on top of the current operator's allowance",
176
- "operator": "the operator to increase the allowance for `msg.sender`"
195
+ "addedAmount": "The additional amount to add on top of the current operator's allowance",
196
+ "operator": "The operator to increase the allowance for `msg.sender`"
177
197
  }
178
198
  },
179
199
  "initialize(string,string,address,bool)": {
@@ -200,16 +220,23 @@
200
220
  }
201
221
  },
202
222
  "setData(bytes32,bytes)": {
223
+ "custom:events": "{DataChanged} event.",
224
+ "custom:requirements": "- SHOULD only be callable by the {owner}.",
225
+ "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**.",
226
+ "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.",
203
227
  "params": {
204
- "dataKey": "The key to retrieve stored value",
205
- "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."
228
+ "dataKey": "The data key for which to set a new value.",
229
+ "dataValue": "The new bytes value to set."
206
230
  }
207
231
  },
208
232
  "setDataBatch(bytes32[],bytes[])": {
209
- "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.",
233
+ "custom:events": "{DataChanged} event **for each data key/value pair set**.",
234
+ "custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
235
+ "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**.",
236
+ "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.",
210
237
  "params": {
211
- "dataKeys": "The array of data keys for values to set",
212
- "dataValues": "The array of values to set"
238
+ "dataKeys": "An array of data keys to set bytes values for.",
239
+ "dataValues": "An array of bytes values to set for each `dataKeys`."
213
240
  }
214
241
  },
215
242
  "supportsInterface(bytes4)": {
@@ -224,9 +251,9 @@
224
251
  "transfer(address,address,uint256,bool,bytes)": {
225
252
  "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}).",
226
253
  "params": {
227
- "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.",
228
254
  "amount": "The amount of tokens to transfer.",
229
255
  "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
256
+ "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.",
230
257
  "from": "The sender address.",
231
258
  "to": "The recipient address."
232
259
  }
@@ -234,9 +261,9 @@
234
261
  "transferBatch(address[],address[],uint256[],bool[],bytes[])": {
235
262
  "details": "Same as {`transfer(...)`} but transfer multiple tokens based on the arrays of `from`, `to`, `amount`.",
236
263
  "params": {
237
- "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.",
238
264
  "amount": "An array of amount of tokens to transfer for each `from -> to` transfer.",
239
265
  "data": "An array of additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
266
+ "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.",
240
267
  "from": "An array of sending addresses.",
241
268
  "to": "An array of receiving addresses."
242
269
  }