@lukso/lsp-smart-contracts 0.9.0 → 0.10.1

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 (177) hide show
  1. package/README.md +29 -7
  2. package/artifacts/LSP0ERC725Account.json +63 -69
  3. package/artifacts/LSP0ERC725AccountInit.json +63 -69
  4. package/artifacts/LSP11BasicSocialRecovery.json +2 -2
  5. package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
  6. package/artifacts/LSP16UniversalFactory.json +27 -21
  7. package/artifacts/LSP1UniversalReceiverDelegateUP.json +2 -2
  8. package/artifacts/LSP1UniversalReceiverDelegateVault.json +2 -2
  9. package/artifacts/LSP4Compatibility.json +32 -38
  10. package/artifacts/LSP4DigitalAssetMetadata.json +32 -38
  11. package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +32 -38
  12. package/artifacts/LSP6KeyManager.json +29 -15
  13. package/artifacts/LSP6KeyManagerInit.json +29 -15
  14. package/artifacts/LSP7CappedSupply.json +71 -36
  15. package/artifacts/LSP7CappedSupplyInitAbstract.json +71 -36
  16. package/artifacts/LSP7CompatibleERC20.json +71 -36
  17. package/artifacts/LSP7CompatibleERC20InitAbstract.json +71 -36
  18. package/artifacts/LSP7CompatibleERC20Mintable.json +73 -38
  19. package/artifacts/LSP7CompatibleERC20MintableInit.json +73 -38
  20. package/artifacts/LSP7DigitalAsset.json +71 -36
  21. package/artifacts/LSP7DigitalAssetInitAbstract.json +71 -36
  22. package/artifacts/LSP7Mintable.json +73 -38
  23. package/artifacts/LSP7MintableInit.json +73 -38
  24. package/artifacts/LSP8CappedSupply.json +32 -38
  25. package/artifacts/LSP8CappedSupplyInitAbstract.json +32 -38
  26. package/artifacts/LSP8CompatibleERC721.json +35 -41
  27. package/artifacts/LSP8CompatibleERC721InitAbstract.json +35 -41
  28. package/artifacts/LSP8CompatibleERC721Mintable.json +37 -43
  29. package/artifacts/LSP8CompatibleERC721MintableInit.json +37 -43
  30. package/artifacts/LSP8IdentifiableDigitalAsset.json +32 -38
  31. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +32 -38
  32. package/artifacts/LSP8Mintable.json +34 -40
  33. package/artifacts/LSP8MintableInit.json +34 -40
  34. package/artifacts/LSP9Vault.json +61 -67
  35. package/artifacts/LSP9VaultInit.json +61 -67
  36. package/artifacts/UniversalProfile.json +63 -69
  37. package/artifacts/UniversalProfileInit.json +63 -69
  38. package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +45 -10
  39. package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
  40. package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +43 -8
  41. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +361 -124
  42. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +44 -8
  43. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +45 -6
  44. package/contracts/LSP0ERC725Account/LSP0Utils.sol +0 -1
  45. package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +30 -15
  46. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +0 -1
  47. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.sol +0 -1
  48. package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +5 -7
  49. package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +262 -115
  50. package/contracts/LSP17ContractExtension/LSP17Extendable.sol +10 -5
  51. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +0 -4
  52. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +91 -34
  53. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +27 -8
  54. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +18 -9
  55. package/contracts/LSP20CallVerification/LSP20Constants.sol +17 -0
  56. package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +26 -12
  57. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +0 -1
  58. package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +32 -16
  59. package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +11 -2
  60. package/contracts/LSP6KeyManager/LSP6Constants.sol +5 -5
  61. package/contracts/LSP6KeyManager/LSP6Errors.sol +10 -6
  62. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +140 -68
  63. package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +0 -1
  64. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +30 -38
  65. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +153 -60
  66. package/contracts/LSP6KeyManager/LSP6Utils.sol +1 -5
  67. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +67 -13
  68. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
  69. package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +2 -2
  70. package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +24 -0
  71. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +1 -2
  72. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +1 -2
  73. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +3 -5
  74. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +3 -5
  75. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +15 -12
  76. package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +1 -1
  77. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +1 -2
  78. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +1 -2
  79. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +5 -5
  80. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +6 -6
  81. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +2 -2
  82. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +2 -2
  83. package/contracts/LSP9Vault/ILSP9Vault.sol +9 -1
  84. package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
  85. package/contracts/LSP9Vault/LSP9Vault.sol +0 -6
  86. package/contracts/LSP9Vault/LSP9VaultCore.sol +17 -15
  87. package/contracts/LSP9Vault/LSP9VaultInit.sol +2 -1
  88. package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +8 -5
  89. package/contracts/UniversalProfile.sol +10 -4
  90. package/contracts/UniversalProfileInit.sol +15 -5
  91. package/contracts/UniversalProfileInitAbstract.sol +7 -3
  92. package/devdocs/Create2Factory.json +16 -0
  93. package/devdocs/LSP0ERC725Account.json +200 -0
  94. package/devdocs/LSP0ERC725AccountInit.json +203 -0
  95. package/devdocs/LSP11BasicSocialRecovery.json +146 -0
  96. package/devdocs/LSP11BasicSocialRecoveryInit.json +146 -0
  97. package/devdocs/LSP16UniversalFactory.json +116 -0
  98. package/devdocs/LSP1UniversalReceiverDelegateUP.json +80 -0
  99. package/devdocs/LSP1UniversalReceiverDelegateVault.json +62 -0
  100. package/devdocs/LSP4Compatibility.json +79 -0
  101. package/devdocs/LSP4DigitalAssetMetadata.json +84 -0
  102. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +77 -0
  103. package/devdocs/LSP6KeyManager.json +257 -0
  104. package/devdocs/LSP6KeyManagerInit.json +260 -0
  105. package/devdocs/LSP7CappedSupply.json +211 -0
  106. package/devdocs/LSP7CappedSupplyInitAbstract.json +206 -0
  107. package/devdocs/LSP7CompatibleERC20.json +225 -0
  108. package/devdocs/LSP7CompatibleERC20InitAbstract.json +218 -0
  109. package/devdocs/LSP7CompatibleERC20Mintable.json +217 -0
  110. package/devdocs/LSP7CompatibleERC20MintableInit.json +227 -0
  111. package/devdocs/LSP7DigitalAsset.json +210 -0
  112. package/devdocs/LSP7DigitalAssetInitAbstract.json +202 -0
  113. package/devdocs/LSP7Mintable.json +219 -0
  114. package/devdocs/LSP7MintableInit.json +220 -0
  115. package/devdocs/LSP8CappedSupply.json +232 -0
  116. package/devdocs/LSP8CappedSupplyInitAbstract.json +227 -0
  117. package/devdocs/LSP8CompatibleERC721.json +298 -0
  118. package/devdocs/LSP8CompatibleERC721InitAbstract.json +291 -0
  119. package/devdocs/LSP8CompatibleERC721Mintable.json +290 -0
  120. package/devdocs/LSP8CompatibleERC721MintableInit.json +300 -0
  121. package/devdocs/LSP8IdentifiableDigitalAsset.json +230 -0
  122. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +223 -0
  123. package/devdocs/LSP8Mintable.json +242 -0
  124. package/devdocs/LSP8MintableInit.json +245 -0
  125. package/devdocs/LSP9Vault.json +171 -0
  126. package/devdocs/LSP9VaultInit.json +175 -0
  127. package/devdocs/UniversalProfile.json +200 -0
  128. package/devdocs/UniversalProfileInit.json +203 -0
  129. package/devdocs/UniversalReceiverAddressStore.json +9 -0
  130. package/dist/constants.cjs.js +31657 -0
  131. package/dist/constants.d.ts +31759 -0
  132. package/dist/constants.es.js +31638 -0
  133. package/package.json +71 -53
  134. package/userdocs/Create2Factory.json +5 -0
  135. package/userdocs/LSP0ERC725Account.json +50 -0
  136. package/userdocs/LSP0ERC725AccountInit.json +53 -0
  137. package/userdocs/LSP11BasicSocialRecovery.json +29 -0
  138. package/userdocs/LSP11BasicSocialRecoveryInit.json +29 -0
  139. package/userdocs/LSP16UniversalFactory.json +5 -0
  140. package/userdocs/LSP1UniversalReceiverDelegateUP.json +10 -0
  141. package/userdocs/LSP1UniversalReceiverDelegateVault.json +10 -0
  142. package/userdocs/LSP4Compatibility.json +20 -0
  143. package/userdocs/LSP4DigitalAssetMetadata.json +23 -0
  144. package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +20 -0
  145. package/userdocs/LSP6KeyManager.json +18 -0
  146. package/userdocs/LSP6KeyManagerInit.json +18 -0
  147. package/userdocs/LSP7CappedSupply.json +29 -0
  148. package/userdocs/LSP7CappedSupplyInitAbstract.json +26 -0
  149. package/userdocs/LSP7CompatibleERC20.json +35 -0
  150. package/userdocs/LSP7CompatibleERC20InitAbstract.json +32 -0
  151. package/userdocs/LSP7CompatibleERC20Mintable.json +32 -0
  152. package/userdocs/LSP7CompatibleERC20MintableInit.json +35 -0
  153. package/userdocs/LSP7DigitalAsset.json +29 -0
  154. package/userdocs/LSP7DigitalAssetInitAbstract.json +26 -0
  155. package/userdocs/LSP7Mintable.json +29 -0
  156. package/userdocs/LSP7MintableInit.json +29 -0
  157. package/userdocs/LSP8CappedSupply.json +23 -0
  158. package/userdocs/LSP8CappedSupplyInitAbstract.json +20 -0
  159. package/userdocs/LSP8CompatibleERC721.json +29 -0
  160. package/userdocs/LSP8CompatibleERC721InitAbstract.json +26 -0
  161. package/userdocs/LSP8CompatibleERC721Mintable.json +26 -0
  162. package/userdocs/LSP8CompatibleERC721MintableInit.json +29 -0
  163. package/userdocs/LSP8IdentifiableDigitalAsset.json +23 -0
  164. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +20 -0
  165. package/userdocs/LSP8Mintable.json +23 -0
  166. package/userdocs/LSP8MintableInit.json +23 -0
  167. package/userdocs/LSP9Vault.json +38 -0
  168. package/userdocs/LSP9VaultInit.json +38 -0
  169. package/userdocs/UniversalProfile.json +50 -0
  170. package/userdocs/UniversalProfileInit.json +53 -0
  171. package/userdocs/UniversalReceiverAddressStore.json +5 -0
  172. package/CONTRIBUTING.md +0 -57
  173. package/common/constants.d.ts +0 -461
  174. package/common/constants.js +0 -789
  175. package/contracts/Utils/GasLib.sol +0 -17
  176. package/module/constants.d.ts +0 -461
  177. package/module/constants.js +0 -786
@@ -0,0 +1,291 @@
1
+ {
2
+ "details": "LSP8 extension, for compatibility for clients / tools that expect ERC721.",
3
+ "errors": {
4
+ "ERC725Y_DataKeysValuesEmptyArray()": [
5
+ {
6
+ "details": "reverts when one of the array parameter provided to `setDataBatch` is an empty array"
7
+ }
8
+ ],
9
+ "ERC725Y_DataKeysValuesLengthMismatch()": [
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."
12
+ }
13
+ ],
14
+ "ERC725Y_MsgValueDisallowed()": [
15
+ {
16
+ "details": "reverts when sending value to the `setData(..)` functions"
17
+ }
18
+ ],
19
+ "LSP4TokenNameNotEditable()": [
20
+ {
21
+ "details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed. The `LSP4TokenName` data key is located inside the ERC725Y Data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed."
22
+ }
23
+ ],
24
+ "LSP4TokenSymbolNotEditable()": [
25
+ {
26
+ "details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed. The `LSP4TokenSymbol` data key is located inside the ERC725Y Data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed."
27
+ }
28
+ ],
29
+ "LSP8CannotSendToAddressZero()": [
30
+ {
31
+ "details": "reverts when trying to send token to the zero address."
32
+ }
33
+ ],
34
+ "LSP8CannotSendToSelf()": [
35
+ {
36
+ "details": "reverts when specifying the same address for `from` and `to` in a token transfer."
37
+ }
38
+ ],
39
+ "LSP8CannotUseAddressZeroAsOperator()": [
40
+ {
41
+ "details": "reverts when trying to set the zero address as an operator."
42
+ }
43
+ ],
44
+ "LSP8InvalidTransferBatch()": [
45
+ {
46
+ "details": "reverts when the parameters used for `transferBatch` have different lengths."
47
+ }
48
+ ],
49
+ "LSP8NonExistentTokenId(bytes32)": [
50
+ {
51
+ "details": "reverts when `tokenId` has not been minted."
52
+ }
53
+ ],
54
+ "LSP8NonExistingOperator(address,bytes32)": [
55
+ {
56
+ "details": "reverts when `operator` is not an operator for the `tokenId`."
57
+ }
58
+ ],
59
+ "LSP8NotTokenOperator(bytes32,address)": [
60
+ {
61
+ "details": "reverts when `caller` is not an allowed operator for `tokenId`."
62
+ }
63
+ ],
64
+ "LSP8NotTokenOwner(address,bytes32,address)": [
65
+ {
66
+ "details": "reverts when `caller` is not the `tokenOwner` of the `tokenId`."
67
+ }
68
+ ],
69
+ "LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
70
+ {
71
+ "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
72
+ }
73
+ ],
74
+ "LSP8NotifyTokenReceiverIsEOA(address)": [
75
+ {
76
+ "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
77
+ }
78
+ ],
79
+ "LSP8OperatorAlreadyAuthorized(address,bytes32)": [
80
+ {
81
+ "details": "reverts when `operator` is already authorized for the `tokenId`."
82
+ }
83
+ ],
84
+ "LSP8TokenOwnerCannotBeOperator()": [
85
+ {
86
+ "details": "reverts when trying to authorize or revoke the token's owner as an operator."
87
+ }
88
+ ]
89
+ },
90
+ "kind": "dev",
91
+ "methods": {
92
+ "approve(address,uint256)": {
93
+ "details": "Compatible with ERC721 approve.",
94
+ "params": {
95
+ "operator": "The address to approve for `tokenId`",
96
+ "tokenId": "The tokenId to approve"
97
+ }
98
+ },
99
+ "authorizeOperator(address,bytes32)": {
100
+ "details": "Makes `operator` address an operator of `tokenId`. See {isOperatorFor}. Requirements - `tokenId` must exist. - caller must be current `tokenOwner` of `tokenId`. - `operator` cannot be the zero address. Emits an {AuthorizedOperator} event.",
101
+ "params": {
102
+ "operator": "The address to authorize as an operator.",
103
+ "tokenId": "The tokenId operator has access to."
104
+ }
105
+ },
106
+ "balanceOf(address)": {
107
+ "details": "Returns the number of tokens owned by `tokenOwner`.",
108
+ "params": {
109
+ "tokenOwner": "The address to query"
110
+ },
111
+ "returns": {
112
+ "_0": "The number of tokens owned by this address"
113
+ }
114
+ },
115
+ "getApproved(uint256)": {
116
+ "details": "Compatible with ERC721 getApproved.",
117
+ "params": {
118
+ "tokenId": "The tokenId to query"
119
+ },
120
+ "returns": {
121
+ "_0": "The address of the operator for `tokenId`"
122
+ }
123
+ },
124
+ "getData(bytes32)": {
125
+ "params": {
126
+ "dataKey": "The key which value to retrieve"
127
+ },
128
+ "returns": {
129
+ "dataValue": "The data stored at the key"
130
+ }
131
+ },
132
+ "getDataBatch(bytes32[])": {
133
+ "params": {
134
+ "dataKeys": "The array of keys which values to retrieve"
135
+ },
136
+ "returns": {
137
+ "dataValues": "The array of data stored at multiple keys"
138
+ }
139
+ },
140
+ "getOperatorsOf(bytes32)": {
141
+ "details": "Returns all `operator` addresses of `tokenId`. Requirements - `tokenId` must exist.",
142
+ "params": {
143
+ "tokenId": "The tokenId to query"
144
+ },
145
+ "returns": {
146
+ "_0": "The list of operators for the `tokenId`"
147
+ }
148
+ },
149
+ "isOperatorFor(address,bytes32)": {
150
+ "details": "Returns whether `operator` address is an operator of `tokenId`. Operators can send and burn tokens on behalf of their owners. The tokenOwner is their own operator. Requirements - `tokenId` must exist.",
151
+ "params": {
152
+ "operator": "The address to query",
153
+ "tokenId": "The tokenId to query"
154
+ },
155
+ "returns": {
156
+ "_0": "True if the owner of `tokenId` is `operator` address, false otherwise"
157
+ }
158
+ },
159
+ "name()": {
160
+ "details": "Returns the name of the token.",
161
+ "returns": {
162
+ "_0": "The name of the token"
163
+ }
164
+ },
165
+ "owner()": {
166
+ "details": "Returns the address of the current owner."
167
+ },
168
+ "ownerOf(uint256)": {
169
+ "details": "Compatible with ERC721 ownerOf.",
170
+ "params": {
171
+ "tokenId": "The tokenId to query"
172
+ },
173
+ "returns": {
174
+ "_0": "The owner of the tokenId"
175
+ }
176
+ },
177
+ "renounceOwnership()": {
178
+ "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
179
+ },
180
+ "revokeOperator(address,bytes32)": {
181
+ "details": "Removes `operator` address as an operator of `tokenId`. See {isOperatorFor}. Requirements - `tokenId` must exist. - caller must be current `tokenOwner` of `tokenId`. - `operator` cannot be the zero address. Emits a {RevokedOperator} event.",
182
+ "params": {
183
+ "operator": "The address to revoke as an operator.",
184
+ "tokenId": "The tokenId `operator` is revoked from operating"
185
+ }
186
+ },
187
+ "safeTransferFrom(address,address,uint256)": {
188
+ "details": "Compatible with ERC721 safeTransferFrom (without optional data). Using allowNonLSP1Recipient=false so that no EOA and only contracts supporting LSP1 interface may receive the tokenId.",
189
+ "params": {
190
+ "from": "The sending address",
191
+ "to": "The receiving address",
192
+ "tokenId": "The tokenId to transfer"
193
+ }
194
+ },
195
+ "safeTransferFrom(address,address,uint256,bytes)": {
196
+ "details": "Compatible with ERC721 safeTransferFrom.",
197
+ "params": {
198
+ "data": "The data to be sent with the transfer",
199
+ "from": "The sending address",
200
+ "to": "The receiving address",
201
+ "tokenId": "The tokenId to transfer"
202
+ }
203
+ },
204
+ "setApprovalForAll(address,bool)": {
205
+ "details": "See _setApprovalForAll"
206
+ },
207
+ "setData(bytes32,bytes)": {
208
+ "params": {
209
+ "dataKey": "The key to retrieve stored value",
210
+ "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."
211
+ }
212
+ },
213
+ "setDataBatch(bytes32[],bytes[])": {
214
+ "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.",
215
+ "params": {
216
+ "dataKeys": "The array of data keys for values to set",
217
+ "dataValues": "The array of values to set"
218
+ }
219
+ },
220
+ "supportsInterface(bytes4)": {
221
+ "details": "See {IERC165-supportsInterface}."
222
+ },
223
+ "symbol()": {
224
+ "details": "Returns the symbol of the token, usually a shorter version of the name.",
225
+ "returns": {
226
+ "_0": "The symbol of the token"
227
+ }
228
+ },
229
+ "tokenIdsOf(address)": {
230
+ "details": "Returns the list of `tokenIds` for the `tokenOwner` address.",
231
+ "params": {
232
+ "tokenOwner": "The address to query owned tokens"
233
+ },
234
+ "returns": {
235
+ "_0": "List of owned tokens by `tokenOwner` address"
236
+ }
237
+ },
238
+ "tokenOwnerOf(bytes32)": {
239
+ "details": "Returns the `tokenOwner` address of the `tokenId` token. Requirements: - `tokenId` must exist.",
240
+ "params": {
241
+ "tokenId": "The tokenId to query"
242
+ },
243
+ "returns": {
244
+ "_0": "The address owning the `tokenId`"
245
+ }
246
+ },
247
+ "totalSupply()": {
248
+ "details": "Returns the number of existing tokens.",
249
+ "returns": {
250
+ "_0": "The number of existing tokens"
251
+ }
252
+ },
253
+ "transfer(address,address,bytes32,bool,bytes)": {
254
+ "details": "Transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `from` and `to` cannot be the same address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be an operator of `tokenId`. Emits a {Transfer} event.",
255
+ "params": {
256
+ "allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
257
+ "data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
258
+ "from": "The sending address.",
259
+ "to": "The receiving address.",
260
+ "tokenId": "The tokenId to transfer."
261
+ }
262
+ },
263
+ "transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
264
+ "details": "Transfers many tokens based on the list `from`, `to`, `tokenId`. If any transfer fails the call will revert. Requirements: - `from`, `to`, `tokenId` lists are the same length. - no values in `from` can be the zero address. - no values in `to` can be the zero address. - `from` and `to` cannot be the same address at the same index of each lists. - each `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be an operator of each `tokenId`. Emits {Transfer} events.",
265
+ "params": {
266
+ "allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
267
+ "data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
268
+ "from": "The list of sending addresses.",
269
+ "to": "The list of receiving addresses.",
270
+ "tokenId": "The list of tokenId to transfer."
271
+ }
272
+ },
273
+ "transferFrom(address,address,uint256)": {
274
+ "details": "Compatible with ERC721 transferFrom. Using allowNonLSP1Recipient=true so that EOA and any contract may receive the tokenId.",
275
+ "params": {
276
+ "from": "The sending address",
277
+ "to": "The receiving address",
278
+ "tokenId": "The tokenId to transfer"
279
+ }
280
+ },
281
+ "transferOwnership(address)": {
282
+ "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
283
+ }
284
+ },
285
+ "stateVariables": {
286
+ "_operatorApprovals": {
287
+ "details": "for backward compatibility with ERC721"
288
+ }
289
+ },
290
+ "version": 1
291
+ }
@@ -0,0 +1,290 @@
1
+ {
2
+ "errors": {
3
+ "ERC725Y_DataKeysValuesEmptyArray()": [
4
+ {
5
+ "details": "reverts when one of the array parameter provided to `setDataBatch` is an empty array"
6
+ }
7
+ ],
8
+ "ERC725Y_DataKeysValuesLengthMismatch()": [
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."
11
+ }
12
+ ],
13
+ "ERC725Y_MsgValueDisallowed()": [
14
+ {
15
+ "details": "reverts when sending value to the `setData(..)` functions"
16
+ }
17
+ ],
18
+ "LSP4TokenNameNotEditable()": [
19
+ {
20
+ "details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed. The `LSP4TokenName` data key is located inside the ERC725Y Data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed."
21
+ }
22
+ ],
23
+ "LSP4TokenSymbolNotEditable()": [
24
+ {
25
+ "details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed. The `LSP4TokenSymbol` data key is located inside the ERC725Y Data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed."
26
+ }
27
+ ],
28
+ "LSP8CannotSendToAddressZero()": [
29
+ {
30
+ "details": "reverts when trying to send token to the zero address."
31
+ }
32
+ ],
33
+ "LSP8CannotSendToSelf()": [
34
+ {
35
+ "details": "reverts when specifying the same address for `from` and `to` in a token transfer."
36
+ }
37
+ ],
38
+ "LSP8CannotUseAddressZeroAsOperator()": [
39
+ {
40
+ "details": "reverts when trying to set the zero address as an operator."
41
+ }
42
+ ],
43
+ "LSP8InvalidTransferBatch()": [
44
+ {
45
+ "details": "reverts when the parameters used for `transferBatch` have different lengths."
46
+ }
47
+ ],
48
+ "LSP8NonExistentTokenId(bytes32)": [
49
+ {
50
+ "details": "reverts when `tokenId` has not been minted."
51
+ }
52
+ ],
53
+ "LSP8NonExistingOperator(address,bytes32)": [
54
+ {
55
+ "details": "reverts when `operator` is not an operator for the `tokenId`."
56
+ }
57
+ ],
58
+ "LSP8NotTokenOperator(bytes32,address)": [
59
+ {
60
+ "details": "reverts when `caller` is not an allowed operator for `tokenId`."
61
+ }
62
+ ],
63
+ "LSP8NotTokenOwner(address,bytes32,address)": [
64
+ {
65
+ "details": "reverts when `caller` is not the `tokenOwner` of the `tokenId`."
66
+ }
67
+ ],
68
+ "LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
69
+ {
70
+ "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
71
+ }
72
+ ],
73
+ "LSP8NotifyTokenReceiverIsEOA(address)": [
74
+ {
75
+ "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
76
+ }
77
+ ],
78
+ "LSP8OperatorAlreadyAuthorized(address,bytes32)": [
79
+ {
80
+ "details": "reverts when `operator` is already authorized for the `tokenId`."
81
+ }
82
+ ],
83
+ "LSP8TokenIdAlreadyMinted(bytes32)": [
84
+ {
85
+ "details": "reverts when `tokenId` has already been minted."
86
+ }
87
+ ],
88
+ "LSP8TokenOwnerCannotBeOperator()": [
89
+ {
90
+ "details": "reverts when trying to authorize or revoke the token's owner as an operator."
91
+ }
92
+ ]
93
+ },
94
+ "kind": "dev",
95
+ "methods": {
96
+ "approve(address,uint256)": {
97
+ "details": "Compatible with ERC721 approve.",
98
+ "params": {
99
+ "operator": "The address to approve for `tokenId`",
100
+ "tokenId": "The tokenId to approve"
101
+ }
102
+ },
103
+ "authorizeOperator(address,bytes32)": {
104
+ "details": "Makes `operator` address an operator of `tokenId`. See {isOperatorFor}. Requirements - `tokenId` must exist. - caller must be current `tokenOwner` of `tokenId`. - `operator` cannot be the zero address. Emits an {AuthorizedOperator} event.",
105
+ "params": {
106
+ "operator": "The address to authorize as an operator.",
107
+ "tokenId": "The tokenId operator has access to."
108
+ }
109
+ },
110
+ "balanceOf(address)": {
111
+ "details": "Returns the number of tokens owned by `tokenOwner`.",
112
+ "params": {
113
+ "tokenOwner": "The address to query"
114
+ },
115
+ "returns": {
116
+ "_0": "The number of tokens owned by this address"
117
+ }
118
+ },
119
+ "getApproved(uint256)": {
120
+ "details": "Compatible with ERC721 getApproved.",
121
+ "params": {
122
+ "tokenId": "The tokenId to query"
123
+ },
124
+ "returns": {
125
+ "_0": "The address of the operator for `tokenId`"
126
+ }
127
+ },
128
+ "getData(bytes32)": {
129
+ "params": {
130
+ "dataKey": "The key which value to retrieve"
131
+ },
132
+ "returns": {
133
+ "dataValue": "The data stored at the key"
134
+ }
135
+ },
136
+ "getDataBatch(bytes32[])": {
137
+ "params": {
138
+ "dataKeys": "The array of keys which values to retrieve"
139
+ },
140
+ "returns": {
141
+ "dataValues": "The array of data stored at multiple keys"
142
+ }
143
+ },
144
+ "getOperatorsOf(bytes32)": {
145
+ "details": "Returns all `operator` addresses of `tokenId`. Requirements - `tokenId` must exist.",
146
+ "params": {
147
+ "tokenId": "The tokenId to query"
148
+ },
149
+ "returns": {
150
+ "_0": "The list of operators for the `tokenId`"
151
+ }
152
+ },
153
+ "isOperatorFor(address,bytes32)": {
154
+ "details": "Returns whether `operator` address is an operator of `tokenId`. Operators can send and burn tokens on behalf of their owners. The tokenOwner is their own operator. Requirements - `tokenId` must exist.",
155
+ "params": {
156
+ "operator": "The address to query",
157
+ "tokenId": "The tokenId to query"
158
+ },
159
+ "returns": {
160
+ "_0": "True if the owner of `tokenId` is `operator` address, false otherwise"
161
+ }
162
+ },
163
+ "name()": {
164
+ "details": "Returns the name of the token.",
165
+ "returns": {
166
+ "_0": "The name of the token"
167
+ }
168
+ },
169
+ "owner()": {
170
+ "details": "Returns the address of the current owner."
171
+ },
172
+ "ownerOf(uint256)": {
173
+ "details": "Compatible with ERC721 ownerOf.",
174
+ "params": {
175
+ "tokenId": "The tokenId to query"
176
+ },
177
+ "returns": {
178
+ "_0": "The owner of the tokenId"
179
+ }
180
+ },
181
+ "renounceOwnership()": {
182
+ "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
183
+ },
184
+ "revokeOperator(address,bytes32)": {
185
+ "details": "Removes `operator` address as an operator of `tokenId`. See {isOperatorFor}. Requirements - `tokenId` must exist. - caller must be current `tokenOwner` of `tokenId`. - `operator` cannot be the zero address. Emits a {RevokedOperator} event.",
186
+ "params": {
187
+ "operator": "The address to revoke as an operator.",
188
+ "tokenId": "The tokenId `operator` is revoked from operating"
189
+ }
190
+ },
191
+ "safeTransferFrom(address,address,uint256)": {
192
+ "details": "Compatible with ERC721 safeTransferFrom (without optional data). Using allowNonLSP1Recipient=false so that no EOA and only contracts supporting LSP1 interface may receive the tokenId.",
193
+ "params": {
194
+ "from": "The sending address",
195
+ "to": "The receiving address",
196
+ "tokenId": "The tokenId to transfer"
197
+ }
198
+ },
199
+ "safeTransferFrom(address,address,uint256,bytes)": {
200
+ "details": "Compatible with ERC721 safeTransferFrom.",
201
+ "params": {
202
+ "data": "The data to be sent with the transfer",
203
+ "from": "The sending address",
204
+ "to": "The receiving address",
205
+ "tokenId": "The tokenId to transfer"
206
+ }
207
+ },
208
+ "setApprovalForAll(address,bool)": {
209
+ "details": "See _setApprovalForAll"
210
+ },
211
+ "setData(bytes32,bytes)": {
212
+ "params": {
213
+ "dataKey": "The key to retrieve stored value",
214
+ "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."
215
+ }
216
+ },
217
+ "setDataBatch(bytes32[],bytes[])": {
218
+ "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.",
219
+ "params": {
220
+ "dataKeys": "The array of data keys for values to set",
221
+ "dataValues": "The array of values to set"
222
+ }
223
+ },
224
+ "supportsInterface(bytes4)": {
225
+ "details": "See {IERC165-supportsInterface}."
226
+ },
227
+ "symbol()": {
228
+ "details": "Returns the symbol of the token, usually a shorter version of the name.",
229
+ "returns": {
230
+ "_0": "The symbol of the token"
231
+ }
232
+ },
233
+ "tokenIdsOf(address)": {
234
+ "details": "Returns the list of `tokenIds` for the `tokenOwner` address.",
235
+ "params": {
236
+ "tokenOwner": "The address to query owned tokens"
237
+ },
238
+ "returns": {
239
+ "_0": "List of owned tokens by `tokenOwner` address"
240
+ }
241
+ },
242
+ "tokenOwnerOf(bytes32)": {
243
+ "details": "Returns the `tokenOwner` address of the `tokenId` token. Requirements: - `tokenId` must exist.",
244
+ "params": {
245
+ "tokenId": "The tokenId to query"
246
+ },
247
+ "returns": {
248
+ "_0": "The address owning the `tokenId`"
249
+ }
250
+ },
251
+ "totalSupply()": {
252
+ "details": "Returns the number of existing tokens.",
253
+ "returns": {
254
+ "_0": "The number of existing tokens"
255
+ }
256
+ },
257
+ "transfer(address,address,bytes32,bool,bytes)": {
258
+ "details": "Transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `from` and `to` cannot be the same address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be an operator of `tokenId`. Emits a {Transfer} event.",
259
+ "params": {
260
+ "allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
261
+ "data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
262
+ "from": "The sending address.",
263
+ "to": "The receiving address.",
264
+ "tokenId": "The tokenId to transfer."
265
+ }
266
+ },
267
+ "transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
268
+ "details": "Transfers many tokens based on the list `from`, `to`, `tokenId`. If any transfer fails the call will revert. Requirements: - `from`, `to`, `tokenId` lists are the same length. - no values in `from` can be the zero address. - no values in `to` can be the zero address. - `from` and `to` cannot be the same address at the same index of each lists. - each `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be an operator of each `tokenId`. Emits {Transfer} events.",
269
+ "params": {
270
+ "allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
271
+ "data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
272
+ "from": "The list of sending addresses.",
273
+ "to": "The list of receiving addresses.",
274
+ "tokenId": "The list of tokenId to transfer."
275
+ }
276
+ },
277
+ "transferFrom(address,address,uint256)": {
278
+ "details": "Compatible with ERC721 transferFrom. Using allowNonLSP1Recipient=true so that EOA and any contract may receive the tokenId.",
279
+ "params": {
280
+ "from": "The sending address",
281
+ "to": "The receiving address",
282
+ "tokenId": "The tokenId to transfer"
283
+ }
284
+ },
285
+ "transferOwnership(address)": {
286
+ "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
287
+ }
288
+ },
289
+ "version": 1
290
+ }