@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
@@ -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)": [
@@ -37,73 +37,96 @@
37
37
  ],
38
38
  "LSP8CannotSendToAddressZero()": [
39
39
  {
40
- "details": "reverts when trying to send token to the zero address."
40
+ "details": "Reverts when trying to send token to the zero address."
41
41
  }
42
42
  ],
43
43
  "LSP8CannotSendToSelf()": [
44
44
  {
45
- "details": "reverts when specifying the same address for `from` and `to` in a token transfer."
45
+ "details": "Reverts when specifying the same address for `from` and `to` in a token transfer."
46
46
  }
47
47
  ],
48
48
  "LSP8CannotUseAddressZeroAsOperator()": [
49
49
  {
50
- "details": "reverts when trying to set the zero address as an operator."
50
+ "details": "Reverts when trying to set the zero address as an operator."
51
51
  }
52
52
  ],
53
53
  "LSP8InvalidTransferBatch()": [
54
54
  {
55
- "details": "reverts when the parameters used for `transferBatch` have different lengths."
55
+ "details": "Reverts when the parameters used for `transferBatch` have different lengths."
56
56
  }
57
57
  ],
58
58
  "LSP8NonExistentTokenId(bytes32)": [
59
59
  {
60
- "details": "reverts when `tokenId` has not been minted."
60
+ "details": "Reverts when `tokenId` has not been minted."
61
61
  }
62
62
  ],
63
63
  "LSP8NonExistingOperator(address,bytes32)": [
64
64
  {
65
- "details": "reverts when `operator` is not an operator for the `tokenId`."
65
+ "details": "Reverts when `operator` is not an operator for the `tokenId`."
66
66
  }
67
67
  ],
68
68
  "LSP8NotTokenOperator(bytes32,address)": [
69
69
  {
70
- "details": "reverts when `caller` is not an allowed operator for `tokenId`."
70
+ "details": "Reverts when `caller` is not an allowed operator for `tokenId`."
71
71
  }
72
72
  ],
73
73
  "LSP8NotTokenOwner(address,bytes32,address)": [
74
74
  {
75
- "details": "reverts when `caller` is not the `tokenOwner` of the `tokenId`."
75
+ "details": "Reverts when `caller` is not the `tokenOwner` of the `tokenId`."
76
76
  }
77
77
  ],
78
78
  "LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
79
79
  {
80
- "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
80
+ "details": "Reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
81
81
  }
82
82
  ],
83
83
  "LSP8NotifyTokenReceiverIsEOA(address)": [
84
84
  {
85
- "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
85
+ "details": "Reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
86
86
  }
87
87
  ],
88
88
  "LSP8OperatorAlreadyAuthorized(address,bytes32)": [
89
89
  {
90
- "details": "reverts when `operator` is already authorized for the `tokenId`."
90
+ "details": "Reverts when `operator` is already authorized for the `tokenId`."
91
+ }
92
+ ],
93
+ "LSP8TokenContractCannotHoldValue()": [
94
+ {
95
+ "details": "Error occurs when sending native tokens to the LSP8 contract without sending any data. E.g. Sending value without passing a bytes4 function selector to call a LSP17 Extension."
91
96
  }
92
97
  ],
93
98
  "LSP8TokenIdAlreadyMinted(bytes32)": [
94
99
  {
95
- "details": "reverts when `tokenId` has already been minted."
100
+ "details": "Reverts when `tokenId` has already been minted."
101
+ }
102
+ ],
103
+ "LSP8TokenIdTypeNotEditable()": [
104
+ {
105
+ "details": "Reverts when trying to edit the data key `LSP8TokenIdType` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdType` data key is located inside the ERC725Y Data key-value store of the identifiable digital asset contract. It can be set only once inside the constructor/initializer when the identifiable digital asset contract is being deployed."
96
106
  }
97
107
  ],
98
108
  "LSP8TokenOwnerCannotBeOperator()": [
99
109
  {
100
- "details": "reverts when trying to authorize or revoke the token's owner as an operator."
110
+ "details": "Reverts when trying to authorize or revoke the token's owner as an operator."
101
111
  }
102
112
  ],
103
113
  "NoExtensionFoundForFunctionSelector(bytes4)": [
104
114
  {
105
115
  "details": "reverts when there is no extension for the function selector being called with"
106
116
  }
117
+ ],
118
+ "OwnableCallerNotTheOwner(address)": [
119
+ {
120
+ "details": "Reverts when only the owner is allowed to call the function.",
121
+ "params": {
122
+ "callerAddress": "The address that tried to make the call."
123
+ }
124
+ }
125
+ ],
126
+ "OwnableCannotSetZeroAddressAsOwner()": [
127
+ {
128
+ "details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
129
+ }
107
130
  ]
108
131
  },
109
132
  "kind": "dev",
@@ -150,14 +173,16 @@
150
173
  }
151
174
  },
152
175
  "getData(bytes32)": {
176
+ "details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
153
177
  "params": {
154
- "dataKey": "The key which value to retrieve"
178
+ "dataKey": "The data key for which to retrieve the value."
155
179
  },
156
180
  "returns": {
157
- "dataValue": "The data stored at the key"
181
+ "dataValue": "The bytes value stored under the specified data key."
158
182
  }
159
183
  },
160
184
  "getDataBatch(bytes32[])": {
185
+ "details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
161
186
  "params": {
162
187
  "dataKeys": "The array of keys which values to retrieve"
163
188
  },
@@ -174,6 +199,16 @@
174
199
  "_0": "An array of operators allowed to transfer or burn a specific `tokenId`. Requirements - `tokenId` must exist."
175
200
  }
176
201
  },
202
+ "isApprovedForAll(address,address)": {
203
+ "details": "Compatible with ERC721 isApprovedForAll.",
204
+ "params": {
205
+ "operator": "The operator address to query.",
206
+ "tokenOwner": "The tokenOwner address to query."
207
+ },
208
+ "returns": {
209
+ "_0": "Returns if the `operator` is allowed to manage all of the assets of `owner`"
210
+ }
211
+ },
177
212
  "isOperatorFor(address,bytes32)": {
178
213
  "details": "Returns whether `operator` address is an operator for a given `tokenId`.",
179
214
  "params": {
@@ -187,14 +222,14 @@
187
222
  "mint(address,bytes32,bool,bytes)": {
188
223
  "details": "Public {_mint} function only callable by the {owner}.",
189
224
  "params": {
190
- "allowNonLSP1Recipient": "Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.",
191
225
  "data": "Any addition data to be sent alongside the minting.",
226
+ "force": "Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.",
192
227
  "to": "The address that will receive the minted `tokenId`.",
193
228
  "tokenId": "The tokenId to mint."
194
229
  }
195
230
  },
196
231
  "name()": {
197
- "details": "Returns the name of the token.",
232
+ "details": "Returns the name of the token. For compatibility with clients & tools that expect ERC721.",
198
233
  "returns": {
199
234
  "_0": "The name of the token"
200
235
  }
@@ -223,7 +258,7 @@
223
258
  }
224
259
  },
225
260
  "safeTransferFrom(address,address,uint256)": {
226
- "custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
261
+ "custom:info": "This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
227
262
  "details": "Safe Transfer function without optional data from the ERC721 standard interface.",
228
263
  "params": {
229
264
  "from": "The sending address.",
@@ -232,7 +267,7 @@
232
267
  }
233
268
  },
234
269
  "safeTransferFrom(address,address,uint256,bytes)": {
235
- "custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
270
+ "custom:info": "This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
236
271
  "details": "Safe Transfer function with optional data from the ERC721 standard interface.",
237
272
  "params": {
238
273
  "data": "The data to be sent with the transfer.",
@@ -242,26 +277,38 @@
242
277
  }
243
278
  },
244
279
  "setApprovalForAll(address,bool)": {
245
- "details": "See {_setApprovalForAll}"
280
+ "custom:events": "{ApprovalForAll} event",
281
+ "details": "Enable or disable approval for a third party (\"operator\") to manage all of `msg.sender`'s assets. The contract MUST allow multiple operators per owner. See {_setApprovalForAll}",
282
+ "params": {
283
+ "approved": "True if the operator is approved, false to revoke approval.",
284
+ "operator": "Address to add to the set of authorized operators."
285
+ }
246
286
  },
247
287
  "setData(bytes32,bytes)": {
288
+ "custom:events": "{DataChanged} event.",
289
+ "custom:requirements": "- SHOULD only be callable by the {owner}.",
290
+ "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**.",
291
+ "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.",
248
292
  "params": {
249
- "dataKey": "The key to retrieve stored value",
250
- "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."
293
+ "dataKey": "The data key for which to set a new value.",
294
+ "dataValue": "The new bytes value to set."
251
295
  }
252
296
  },
253
297
  "setDataBatch(bytes32[],bytes[])": {
254
- "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.",
298
+ "custom:events": "{DataChanged} event **for each data key/value pair set**.",
299
+ "custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
300
+ "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**.",
301
+ "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.",
255
302
  "params": {
256
- "dataKeys": "The array of data keys for values to set",
257
- "dataValues": "The array of values to set"
303
+ "dataKeys": "An array of data keys to set bytes values for.",
304
+ "dataValues": "An array of bytes values to set for each `dataKeys`."
258
305
  }
259
306
  },
260
307
  "supportsInterface(bytes4)": {
261
308
  "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."
262
309
  },
263
310
  "symbol()": {
264
- "details": "Returns the symbol of the token, usually a shorter version of the name.",
311
+ "details": "Returns the symbol of the token, usually a shorter version of the name. For compatibility with clients & tools that expect ERC721.",
265
312
  "returns": {
266
313
  "_0": "The symbol of the token"
267
314
  }
@@ -284,6 +331,12 @@
284
331
  "_0": "The owner address of the given `tokenId`."
285
332
  }
286
333
  },
334
+ "tokenURI(uint256)": {
335
+ "details": "Compatible with ERC721Metadata tokenURI. Retrieve the tokenURI for a specific `tokenId`.",
336
+ "returns": {
337
+ "_0": "The token URI."
338
+ }
339
+ },
287
340
  "totalSupply()": {
288
341
  "details": "Returns the number of existing tokens that have been minted in this contract.",
289
342
  "returns": {
@@ -291,10 +344,10 @@
291
344
  }
292
345
  },
293
346
  "transfer(address,address,bytes32,bool,bytes)": {
294
- "details": "Transfer a given `tokenId` token from the `from` address to the `to` address. If operators are set for a specific `tokenId`, all the operators are revoked after the tokenId have been transferred. The `allowNonLSP1Recipient` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs) or contracts that do not implement the LSP1 standard.",
347
+ "details": "Transfer a given `tokenId` token from the `from` address to the `to` address. If operators are set for a specific `tokenId`, all the operators are revoked after the tokenId have been transferred. The `force` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs) or contracts that do not implement the LSP1 standard.",
295
348
  "params": {
296
- "allowNonLSP1Recipient": "When set to `true`, the `to` address CAN be any addres. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
297
349
  "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
350
+ "force": "When set to `true`, the `to` address CAN be any addres. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
298
351
  "from": "The address that owns the given `tokenId`.",
299
352
  "to": "The address that will receive the `tokenId`.",
300
353
  "tokenId": "The token ID to transfer."
@@ -303,15 +356,15 @@
303
356
  "transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
304
357
  "details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
305
358
  "params": {
306
- "allowNonLSP1Recipient": "When set to `true`, `to` may be any address. When set to `false`, `to` must be a contract that supports the LSP1 standard and not revert.",
307
359
  "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
360
+ "force": "When set to `true`, `to` may be any address. When set to `false`, `to` must be a contract that supports the LSP1 standard and not revert.",
308
361
  "from": "An array of sending addresses.",
309
362
  "to": "An array of recipient addresses.",
310
363
  "tokenId": "An array of token IDs to transfer."
311
364
  }
312
365
  },
313
366
  "transferFrom(address,address,uint256)": {
314
- "custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
367
+ "custom:info": "This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
315
368
  "details": "Transfer functions from the ERC721 standard interface.",
316
369
  "params": {
317
370
  "from": "The sending address.",
@@ -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)": [
@@ -37,73 +37,96 @@
37
37
  ],
38
38
  "LSP8CannotSendToAddressZero()": [
39
39
  {
40
- "details": "reverts when trying to send token to the zero address."
40
+ "details": "Reverts when trying to send token to the zero address."
41
41
  }
42
42
  ],
43
43
  "LSP8CannotSendToSelf()": [
44
44
  {
45
- "details": "reverts when specifying the same address for `from` and `to` in a token transfer."
45
+ "details": "Reverts when specifying the same address for `from` and `to` in a token transfer."
46
46
  }
47
47
  ],
48
48
  "LSP8CannotUseAddressZeroAsOperator()": [
49
49
  {
50
- "details": "reverts when trying to set the zero address as an operator."
50
+ "details": "Reverts when trying to set the zero address as an operator."
51
51
  }
52
52
  ],
53
53
  "LSP8InvalidTransferBatch()": [
54
54
  {
55
- "details": "reverts when the parameters used for `transferBatch` have different lengths."
55
+ "details": "Reverts when the parameters used for `transferBatch` have different lengths."
56
56
  }
57
57
  ],
58
58
  "LSP8NonExistentTokenId(bytes32)": [
59
59
  {
60
- "details": "reverts when `tokenId` has not been minted."
60
+ "details": "Reverts when `tokenId` has not been minted."
61
61
  }
62
62
  ],
63
63
  "LSP8NonExistingOperator(address,bytes32)": [
64
64
  {
65
- "details": "reverts when `operator` is not an operator for the `tokenId`."
65
+ "details": "Reverts when `operator` is not an operator for the `tokenId`."
66
66
  }
67
67
  ],
68
68
  "LSP8NotTokenOperator(bytes32,address)": [
69
69
  {
70
- "details": "reverts when `caller` is not an allowed operator for `tokenId`."
70
+ "details": "Reverts when `caller` is not an allowed operator for `tokenId`."
71
71
  }
72
72
  ],
73
73
  "LSP8NotTokenOwner(address,bytes32,address)": [
74
74
  {
75
- "details": "reverts when `caller` is not the `tokenOwner` of the `tokenId`."
75
+ "details": "Reverts when `caller` is not the `tokenOwner` of the `tokenId`."
76
76
  }
77
77
  ],
78
78
  "LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
79
79
  {
80
- "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
80
+ "details": "Reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
81
81
  }
82
82
  ],
83
83
  "LSP8NotifyTokenReceiverIsEOA(address)": [
84
84
  {
85
- "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
85
+ "details": "Reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
86
86
  }
87
87
  ],
88
88
  "LSP8OperatorAlreadyAuthorized(address,bytes32)": [
89
89
  {
90
- "details": "reverts when `operator` is already authorized for the `tokenId`."
90
+ "details": "Reverts when `operator` is already authorized for the `tokenId`."
91
+ }
92
+ ],
93
+ "LSP8TokenContractCannotHoldValue()": [
94
+ {
95
+ "details": "Error occurs when sending native tokens to the LSP8 contract without sending any data. E.g. Sending value without passing a bytes4 function selector to call a LSP17 Extension."
91
96
  }
92
97
  ],
93
98
  "LSP8TokenIdAlreadyMinted(bytes32)": [
94
99
  {
95
- "details": "reverts when `tokenId` has already been minted."
100
+ "details": "Reverts when `tokenId` has already been minted."
101
+ }
102
+ ],
103
+ "LSP8TokenIdTypeNotEditable()": [
104
+ {
105
+ "details": "Reverts when trying to edit the data key `LSP8TokenIdType` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdType` data key is located inside the ERC725Y Data key-value store of the identifiable digital asset contract. It can be set only once inside the constructor/initializer when the identifiable digital asset contract is being deployed."
96
106
  }
97
107
  ],
98
108
  "LSP8TokenOwnerCannotBeOperator()": [
99
109
  {
100
- "details": "reverts when trying to authorize or revoke the token's owner as an operator."
110
+ "details": "Reverts when trying to authorize or revoke the token's owner as an operator."
101
111
  }
102
112
  ],
103
113
  "NoExtensionFoundForFunctionSelector(bytes4)": [
104
114
  {
105
115
  "details": "reverts when there is no extension for the function selector being called with"
106
116
  }
117
+ ],
118
+ "OwnableCallerNotTheOwner(address)": [
119
+ {
120
+ "details": "Reverts when only the owner is allowed to call the function.",
121
+ "params": {
122
+ "callerAddress": "The address that tried to make the call."
123
+ }
124
+ }
125
+ ],
126
+ "OwnableCannotSetZeroAddressAsOwner()": [
127
+ {
128
+ "details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
129
+ }
107
130
  ]
108
131
  },
109
132
  "kind": "dev",
@@ -146,14 +169,16 @@
146
169
  }
147
170
  },
148
171
  "getData(bytes32)": {
172
+ "details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
149
173
  "params": {
150
- "dataKey": "The key which value to retrieve"
174
+ "dataKey": "The data key for which to retrieve the value."
151
175
  },
152
176
  "returns": {
153
- "dataValue": "The data stored at the key"
177
+ "dataValue": "The bytes value stored under the specified data key."
154
178
  }
155
179
  },
156
180
  "getDataBatch(bytes32[])": {
181
+ "details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
157
182
  "params": {
158
183
  "dataKeys": "The array of keys which values to retrieve"
159
184
  },
@@ -170,13 +195,23 @@
170
195
  "_0": "An array of operators allowed to transfer or burn a specific `tokenId`. Requirements - `tokenId` must exist."
171
196
  }
172
197
  },
173
- "initialize(string,string,address)": {
198
+ "initialize(string,string,address,uint256)": {
174
199
  "params": {
175
200
  "name_": "The name of the token.",
176
201
  "newOwner_": "The owner of the token contract.",
177
202
  "symbol_": "The symbol of the token."
178
203
  }
179
204
  },
205
+ "isApprovedForAll(address,address)": {
206
+ "details": "Compatible with ERC721 isApprovedForAll.",
207
+ "params": {
208
+ "operator": "The operator address to query.",
209
+ "tokenOwner": "The tokenOwner address to query."
210
+ },
211
+ "returns": {
212
+ "_0": "Returns if the `operator` is allowed to manage all of the assets of `owner`"
213
+ }
214
+ },
180
215
  "isOperatorFor(address,bytes32)": {
181
216
  "details": "Returns whether `operator` address is an operator for a given `tokenId`.",
182
217
  "params": {
@@ -190,14 +225,14 @@
190
225
  "mint(address,bytes32,bool,bytes)": {
191
226
  "details": "Public {_mint} function only callable by the {owner}.",
192
227
  "params": {
193
- "allowNonLSP1Recipient": "Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.",
194
228
  "data": "Any addition data to be sent alongside the minting.",
229
+ "force": "Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.",
195
230
  "to": "The address that will receive the minted `tokenId`.",
196
231
  "tokenId": "The tokenId to mint."
197
232
  }
198
233
  },
199
234
  "name()": {
200
- "details": "Returns the name of the token.",
235
+ "details": "Returns the name of the token. For compatibility with clients & tools that expect ERC721.",
201
236
  "returns": {
202
237
  "_0": "The name of the token"
203
238
  }
@@ -226,7 +261,7 @@
226
261
  }
227
262
  },
228
263
  "safeTransferFrom(address,address,uint256)": {
229
- "custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
264
+ "custom:info": "This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
230
265
  "details": "Safe Transfer function without optional data from the ERC721 standard interface.",
231
266
  "params": {
232
267
  "from": "The sending address.",
@@ -235,7 +270,7 @@
235
270
  }
236
271
  },
237
272
  "safeTransferFrom(address,address,uint256,bytes)": {
238
- "custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
273
+ "custom:info": "This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
239
274
  "details": "Safe Transfer function with optional data from the ERC721 standard interface.",
240
275
  "params": {
241
276
  "data": "The data to be sent with the transfer.",
@@ -245,26 +280,38 @@
245
280
  }
246
281
  },
247
282
  "setApprovalForAll(address,bool)": {
248
- "details": "See {_setApprovalForAll}"
283
+ "custom:events": "{ApprovalForAll} event",
284
+ "details": "Enable or disable approval for a third party (\"operator\") to manage all of `msg.sender`'s assets. The contract MUST allow multiple operators per owner. See {_setApprovalForAll}",
285
+ "params": {
286
+ "approved": "True if the operator is approved, false to revoke approval.",
287
+ "operator": "Address to add to the set of authorized operators."
288
+ }
249
289
  },
250
290
  "setData(bytes32,bytes)": {
291
+ "custom:events": "{DataChanged} event.",
292
+ "custom:requirements": "- SHOULD only be callable by the {owner}.",
293
+ "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**.",
294
+ "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.",
251
295
  "params": {
252
- "dataKey": "The key to retrieve stored value",
253
- "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."
296
+ "dataKey": "The data key for which to set a new value.",
297
+ "dataValue": "The new bytes value to set."
254
298
  }
255
299
  },
256
300
  "setDataBatch(bytes32[],bytes[])": {
257
- "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.",
301
+ "custom:events": "{DataChanged} event **for each data key/value pair set**.",
302
+ "custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
303
+ "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**.",
304
+ "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.",
258
305
  "params": {
259
- "dataKeys": "The array of data keys for values to set",
260
- "dataValues": "The array of values to set"
306
+ "dataKeys": "An array of data keys to set bytes values for.",
307
+ "dataValues": "An array of bytes values to set for each `dataKeys`."
261
308
  }
262
309
  },
263
310
  "supportsInterface(bytes4)": {
264
311
  "details": "See {IERC165-supportsInterface}."
265
312
  },
266
313
  "symbol()": {
267
- "details": "Returns the symbol of the token, usually a shorter version of the name.",
314
+ "details": "Returns the symbol of the token, usually a shorter version of the name. For compatibility with clients & tools that expect ERC721.",
268
315
  "returns": {
269
316
  "_0": "The symbol of the token"
270
317
  }
@@ -287,6 +334,12 @@
287
334
  "_0": "The owner address of the given `tokenId`."
288
335
  }
289
336
  },
337
+ "tokenURI(uint256)": {
338
+ "details": "Compatible with ERC721Metadata tokenURI. Retrieve the tokenURI for a specific `tokenId`.",
339
+ "returns": {
340
+ "_0": "The token URI."
341
+ }
342
+ },
290
343
  "totalSupply()": {
291
344
  "details": "Returns the number of existing tokens that have been minted in this contract.",
292
345
  "returns": {
@@ -294,10 +347,10 @@
294
347
  }
295
348
  },
296
349
  "transfer(address,address,bytes32,bool,bytes)": {
297
- "details": "Transfer a given `tokenId` token from the `from` address to the `to` address. If operators are set for a specific `tokenId`, all the operators are revoked after the tokenId have been transferred. The `allowNonLSP1Recipient` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs) or contracts that do not implement the LSP1 standard.",
350
+ "details": "Transfer a given `tokenId` token from the `from` address to the `to` address. If operators are set for a specific `tokenId`, all the operators are revoked after the tokenId have been transferred. The `force` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs) or contracts that do not implement the LSP1 standard.",
298
351
  "params": {
299
- "allowNonLSP1Recipient": "When set to `true`, the `to` address CAN be any addres. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
300
352
  "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
353
+ "force": "When set to `true`, the `to` address CAN be any addres. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
301
354
  "from": "The address that owns the given `tokenId`.",
302
355
  "to": "The address that will receive the `tokenId`.",
303
356
  "tokenId": "The token ID to transfer."
@@ -306,15 +359,15 @@
306
359
  "transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
307
360
  "details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
308
361
  "params": {
309
- "allowNonLSP1Recipient": "When set to `true`, `to` may be any address. When set to `false`, `to` must be a contract that supports the LSP1 standard and not revert.",
310
362
  "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
363
+ "force": "When set to `true`, `to` may be any address. When set to `false`, `to` must be a contract that supports the LSP1 standard and not revert.",
311
364
  "from": "An array of sending addresses.",
312
365
  "to": "An array of recipient addresses.",
313
366
  "tokenId": "An array of token IDs to transfer."
314
367
  }
315
368
  },
316
369
  "transferFrom(address,address,uint256)": {
317
- "custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
370
+ "custom:info": "This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
318
371
  "details": "Transfer functions from the ERC721 standard interface.",
319
372
  "params": {
320
373
  "from": "The sending address.",