@lukso/lsp-smart-contracts 0.8.2 → 0.10.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 (179) hide show
  1. package/README.md +29 -8
  2. package/artifacts/LSP0ERC725Account.json +90 -50
  3. package/artifacts/LSP0ERC725AccountInit.json +90 -50
  4. package/artifacts/LSP11BasicSocialRecovery.json +2 -2
  5. package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
  6. package/artifacts/LSP16UniversalFactory.json +31 -2
  7. package/artifacts/LSP1UniversalReceiverDelegateUP.json +19 -35
  8. package/artifacts/LSP1UniversalReceiverDelegateVault.json +13 -13
  9. package/artifacts/LSP4Compatibility.json +39 -40
  10. package/artifacts/LSP4DigitalAssetMetadata.json +39 -40
  11. package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +39 -40
  12. package/artifacts/LSP6KeyManager.json +107 -8
  13. package/artifacts/LSP6KeyManagerInit.json +119 -20
  14. package/artifacts/LSP7CappedSupply.json +78 -38
  15. package/artifacts/LSP7CappedSupplyInitAbstract.json +78 -38
  16. package/artifacts/LSP7CompatibleERC20.json +78 -38
  17. package/artifacts/LSP7CompatibleERC20InitAbstract.json +78 -38
  18. package/artifacts/LSP7CompatibleERC20Mintable.json +80 -40
  19. package/artifacts/LSP7CompatibleERC20MintableInit.json +80 -40
  20. package/artifacts/LSP7DigitalAsset.json +78 -38
  21. package/artifacts/LSP7DigitalAssetInitAbstract.json +78 -38
  22. package/artifacts/LSP7Mintable.json +80 -40
  23. package/artifacts/LSP7MintableInit.json +80 -40
  24. package/artifacts/LSP8CappedSupply.json +39 -40
  25. package/artifacts/LSP8CappedSupplyInitAbstract.json +39 -40
  26. package/artifacts/LSP8CompatibleERC721.json +42 -43
  27. package/artifacts/LSP8CompatibleERC721InitAbstract.json +42 -43
  28. package/artifacts/LSP8CompatibleERC721Mintable.json +44 -45
  29. package/artifacts/LSP8CompatibleERC721MintableInit.json +44 -45
  30. package/artifacts/LSP8IdentifiableDigitalAsset.json +39 -40
  31. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +39 -40
  32. package/artifacts/LSP8Mintable.json +41 -42
  33. package/artifacts/LSP8MintableInit.json +41 -42
  34. package/artifacts/LSP9Vault.json +73 -55
  35. package/artifacts/LSP9VaultInit.json +73 -55
  36. package/artifacts/UniversalProfile.json +90 -50
  37. package/artifacts/UniversalProfileInit.json +90 -50
  38. package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +62 -0
  39. package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
  40. package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +36 -6
  41. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +605 -219
  42. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +31 -5
  43. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +37 -3
  44. package/contracts/LSP0ERC725Account/LSP0Utils.sol +0 -1
  45. package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +71 -60
  46. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +5 -7
  47. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.sol +0 -1
  48. package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +27 -4
  49. package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +41 -84
  50. package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +8 -8
  51. package/contracts/LSP17ContractExtension/LSP17Extendable.sol +10 -5
  52. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +0 -4
  53. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +129 -77
  54. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +45 -16
  55. package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +12 -0
  56. package/contracts/LSP20CallVerification/ILSP20CallVerification.sol +30 -0
  57. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +83 -0
  58. package/contracts/LSP20CallVerification/LSP20Constants.sol +17 -0
  59. package/contracts/LSP20CallVerification/LSP20Errors.sol +15 -0
  60. package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +26 -12
  61. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +0 -1
  62. package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +76 -66
  63. package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +12 -3
  64. package/contracts/LSP6KeyManager/LSP6Constants.sol +9 -3
  65. package/contracts/LSP6KeyManager/LSP6Errors.sol +22 -1
  66. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +172 -29
  67. package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +0 -1
  68. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +270 -100
  69. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +187 -67
  70. package/contracts/LSP6KeyManager/LSP6Utils.sol +31 -20
  71. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +79 -30
  72. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
  73. package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +2 -2
  74. package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +24 -0
  75. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +1 -2
  76. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +1 -2
  77. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +3 -5
  78. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +3 -5
  79. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +27 -29
  80. package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +1 -1
  81. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +1 -2
  82. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +1 -2
  83. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +5 -5
  84. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +6 -6
  85. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +2 -2
  86. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +2 -2
  87. package/contracts/LSP9Vault/ILSP9Vault.sol +27 -0
  88. package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
  89. package/contracts/LSP9Vault/LSP9Vault.sol +11 -8
  90. package/contracts/LSP9Vault/LSP9VaultCore.sol +96 -71
  91. package/contracts/LSP9Vault/LSP9VaultInit.sol +2 -1
  92. package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +19 -7
  93. package/contracts/UniversalProfileInitAbstract.sol +5 -0
  94. package/devdocs/Create2Factory.json +16 -0
  95. package/devdocs/LSP0ERC725Account.json +200 -0
  96. package/devdocs/LSP0ERC725AccountInit.json +203 -0
  97. package/devdocs/LSP11BasicSocialRecovery.json +146 -0
  98. package/devdocs/LSP11BasicSocialRecoveryInit.json +146 -0
  99. package/devdocs/LSP16UniversalFactory.json +51 -0
  100. package/devdocs/LSP1UniversalReceiverDelegateUP.json +80 -0
  101. package/devdocs/LSP1UniversalReceiverDelegateVault.json +62 -0
  102. package/devdocs/LSP4Compatibility.json +79 -0
  103. package/devdocs/LSP4DigitalAssetMetadata.json +84 -0
  104. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +77 -0
  105. package/devdocs/LSP6KeyManager.json +257 -0
  106. package/devdocs/LSP6KeyManagerInit.json +260 -0
  107. package/devdocs/LSP7CappedSupply.json +211 -0
  108. package/devdocs/LSP7CappedSupplyInitAbstract.json +206 -0
  109. package/devdocs/LSP7CompatibleERC20.json +225 -0
  110. package/devdocs/LSP7CompatibleERC20InitAbstract.json +218 -0
  111. package/devdocs/LSP7CompatibleERC20Mintable.json +217 -0
  112. package/devdocs/LSP7CompatibleERC20MintableInit.json +227 -0
  113. package/devdocs/LSP7DigitalAsset.json +210 -0
  114. package/devdocs/LSP7DigitalAssetInitAbstract.json +202 -0
  115. package/devdocs/LSP7Mintable.json +219 -0
  116. package/devdocs/LSP7MintableInit.json +220 -0
  117. package/devdocs/LSP8CappedSupply.json +232 -0
  118. package/devdocs/LSP8CappedSupplyInitAbstract.json +227 -0
  119. package/devdocs/LSP8CompatibleERC721.json +298 -0
  120. package/devdocs/LSP8CompatibleERC721InitAbstract.json +291 -0
  121. package/devdocs/LSP8CompatibleERC721Mintable.json +290 -0
  122. package/devdocs/LSP8CompatibleERC721MintableInit.json +300 -0
  123. package/devdocs/LSP8IdentifiableDigitalAsset.json +230 -0
  124. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +223 -0
  125. package/devdocs/LSP8Mintable.json +242 -0
  126. package/devdocs/LSP8MintableInit.json +245 -0
  127. package/devdocs/LSP9Vault.json +171 -0
  128. package/devdocs/LSP9VaultInit.json +175 -0
  129. package/devdocs/UniversalProfile.json +199 -0
  130. package/devdocs/UniversalProfileInit.json +202 -0
  131. package/devdocs/UniversalReceiverAddressStore.json +9 -0
  132. package/dist/constants.cjs.js +31569 -0
  133. package/dist/constants.d.ts +31681 -0
  134. package/dist/constants.es.js +31550 -0
  135. package/package.json +70 -52
  136. package/userdocs/Create2Factory.json +5 -0
  137. package/userdocs/LSP0ERC725Account.json +47 -0
  138. package/userdocs/LSP0ERC725AccountInit.json +47 -0
  139. package/userdocs/LSP11BasicSocialRecovery.json +29 -0
  140. package/userdocs/LSP11BasicSocialRecoveryInit.json +29 -0
  141. package/userdocs/LSP16UniversalFactory.json +5 -0
  142. package/userdocs/LSP1UniversalReceiverDelegateUP.json +10 -0
  143. package/userdocs/LSP1UniversalReceiverDelegateVault.json +10 -0
  144. package/userdocs/LSP4Compatibility.json +20 -0
  145. package/userdocs/LSP4DigitalAssetMetadata.json +23 -0
  146. package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +20 -0
  147. package/userdocs/LSP6KeyManager.json +18 -0
  148. package/userdocs/LSP6KeyManagerInit.json +18 -0
  149. package/userdocs/LSP7CappedSupply.json +29 -0
  150. package/userdocs/LSP7CappedSupplyInitAbstract.json +26 -0
  151. package/userdocs/LSP7CompatibleERC20.json +35 -0
  152. package/userdocs/LSP7CompatibleERC20InitAbstract.json +32 -0
  153. package/userdocs/LSP7CompatibleERC20Mintable.json +32 -0
  154. package/userdocs/LSP7CompatibleERC20MintableInit.json +35 -0
  155. package/userdocs/LSP7DigitalAsset.json +29 -0
  156. package/userdocs/LSP7DigitalAssetInitAbstract.json +26 -0
  157. package/userdocs/LSP7Mintable.json +29 -0
  158. package/userdocs/LSP7MintableInit.json +29 -0
  159. package/userdocs/LSP8CappedSupply.json +23 -0
  160. package/userdocs/LSP8CappedSupplyInitAbstract.json +20 -0
  161. package/userdocs/LSP8CompatibleERC721.json +29 -0
  162. package/userdocs/LSP8CompatibleERC721InitAbstract.json +26 -0
  163. package/userdocs/LSP8CompatibleERC721Mintable.json +26 -0
  164. package/userdocs/LSP8CompatibleERC721MintableInit.json +29 -0
  165. package/userdocs/LSP8IdentifiableDigitalAsset.json +23 -0
  166. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +20 -0
  167. package/userdocs/LSP8Mintable.json +23 -0
  168. package/userdocs/LSP8MintableInit.json +23 -0
  169. package/userdocs/LSP9Vault.json +38 -0
  170. package/userdocs/LSP9VaultInit.json +38 -0
  171. package/userdocs/UniversalProfile.json +50 -0
  172. package/userdocs/UniversalProfileInit.json +50 -0
  173. package/userdocs/UniversalReceiverAddressStore.json +5 -0
  174. package/CONTRIBUTING.md +0 -57
  175. package/common/constants.d.ts +0 -738
  176. package/common/constants.js +0 -785
  177. package/contracts/Utils/GasLib.sol +0 -17
  178. package/module/constants.d.ts +0 -738
  179. package/module/constants.js +0 -782
@@ -0,0 +1,217 @@
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
+ "LSP7AmountExceedsAuthorizedAmount(address,uint256,address,uint256)": [
29
+ {
30
+ "details": "reverts when `operator` of `tokenOwner` send an `amount` of tokens larger than the `authorizedAmount`."
31
+ }
32
+ ],
33
+ "LSP7AmountExceedsBalance(uint256,address,uint256)": [
34
+ {
35
+ "details": "reverts when sending an `amount` of tokens larger than the current `balance` of the `tokenOwner`."
36
+ }
37
+ ],
38
+ "LSP7CannotSendToSelf()": [
39
+ {
40
+ "details": "reverts when specifying the same address for `from` or `to` in a token transfer."
41
+ }
42
+ ],
43
+ "LSP7CannotSendWithAddressZero()": [
44
+ {
45
+ "details": "reverts when one tries to send tokens to or from the zero address."
46
+ }
47
+ ],
48
+ "LSP7CannotUseAddressZeroAsOperator()": [
49
+ {
50
+ "details": "reverts when trying to set the zero address as an operator."
51
+ }
52
+ ],
53
+ "LSP7DecreasedAllowanceBelowZero()": [
54
+ {
55
+ "details": "Reverts when trying to decrease an operator's allowance to more than his current allowance"
56
+ }
57
+ ],
58
+ "LSP7InvalidTransferBatch()": [
59
+ {
60
+ "details": "reverts when the parameters used for `transferBatch` have different lengths."
61
+ }
62
+ ],
63
+ "LSP7NotifyTokenReceiverContractMissingLSP1Interface(address)": [
64
+ {
65
+ "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
66
+ }
67
+ ],
68
+ "LSP7NotifyTokenReceiverIsEOA(address)": [
69
+ {
70
+ "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
71
+ }
72
+ ],
73
+ "LSP7TokenOwnerCannotBeOperator()": [
74
+ {
75
+ "details": "reverts when trying to authorize or revoke the token's owner as an operator."
76
+ }
77
+ ]
78
+ },
79
+ "kind": "dev",
80
+ "methods": {
81
+ "authorizeOperator(address,uint256)": {
82
+ "details": "To avoid front-running and Allowance Double-Spend Exploit when increasing or decreasing the authorized amount of an operator, it is advised to: 1. call {revokeOperator} first, and 2. then re-call {authorizeOperator} with the new amount for more information, see: https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/",
83
+ "params": {
84
+ "amount": "The amount of tokens operator has access to.",
85
+ "operator": "The address to authorize as an operator."
86
+ }
87
+ },
88
+ "authorizedAmountFor(address,address)": {
89
+ "details": "Returns amount of tokens `operator` address has access to from `tokenOwner`. Operators can send and burn tokens on behalf of their owners. The tokenOwner is their own operator.",
90
+ "params": {
91
+ "operator": "The address to query operator status for.",
92
+ "tokenOwner": "The token owner."
93
+ },
94
+ "returns": {
95
+ "_0": "The amount of tokens `operator` address has access to from `tokenOwner`."
96
+ }
97
+ },
98
+ "balanceOf(address)": {
99
+ "details": "Returns the number of tokens owned by `tokenOwner`.",
100
+ "params": {
101
+ "tokenOwner": "The address to query"
102
+ },
103
+ "returns": {
104
+ "_0": "The number of tokens owned by this address"
105
+ }
106
+ },
107
+ "decimals()": {
108
+ "details": "Returns the number of decimals used to get its user representation If the contract represents a NFT then 0 SHOULD be used, otherwise 18 is the common value NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {balanceOf} and {transfer}."
109
+ },
110
+ "decreaseAllowance(address,uint256)": {
111
+ "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 problems described in {ILSP7DigitalAsset} Emits: - an {AuthorizedOperator} event indicating the updated allowance after decreasing it. - a {RevokeOperator} event if `substractedAmount` is the full allowance, indicating `operator` does not have any allowance left for `msg.sender`.Requirements: - `operator` cannot be the zero address. - operator` must have allowance for the caller of at least `substractedAmount`.",
112
+ "params": {
113
+ "operator": "the operator to decrease allowance for `msg.sender`",
114
+ "substractedAmount": "the amount to decrease by in the operator's allowance."
115
+ }
116
+ },
117
+ "getData(bytes32)": {
118
+ "params": {
119
+ "dataKey": "The key which value to retrieve"
120
+ },
121
+ "returns": {
122
+ "dataValue": "The data stored at the key"
123
+ }
124
+ },
125
+ "getDataBatch(bytes32[])": {
126
+ "params": {
127
+ "dataKeys": "The array of keys which values to retrieve"
128
+ },
129
+ "returns": {
130
+ "dataValues": "The array of data stored at multiple keys"
131
+ }
132
+ },
133
+ "increaseAllowance(address,uint256)": {
134
+ "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 problems described in {ILSP7DigitalAsset}. Emits an {AuthorizedOperator} event indicating the updated allowance.Requirements: - `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
135
+ "params": {
136
+ "addedAmount": "the additional amount to add on top of the current operator's allowance",
137
+ "operator": "the operator to increase the allowance for `msg.sender`"
138
+ }
139
+ },
140
+ "name()": {
141
+ "details": "Returns the name of the token.",
142
+ "returns": {
143
+ "_0": "The name of the token"
144
+ }
145
+ },
146
+ "owner()": {
147
+ "details": "Returns the address of the current owner."
148
+ },
149
+ "renounceOwnership()": {
150
+ "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."
151
+ },
152
+ "revokeOperator(address)": {
153
+ "details": "Removes `operator` address as an operator of callers tokens. See {authorizedAmountFor}. Requirements - `operator` cannot be the zero address. Emits a {RevokedOperator} event.",
154
+ "params": {
155
+ "operator": "The address to revoke as an operator."
156
+ }
157
+ },
158
+ "setData(bytes32,bytes)": {
159
+ "params": {
160
+ "dataKey": "The key to retrieve stored value",
161
+ "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."
162
+ }
163
+ },
164
+ "setDataBatch(bytes32[],bytes[])": {
165
+ "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.",
166
+ "params": {
167
+ "dataKeys": "The array of data keys for values to set",
168
+ "dataValues": "The array of values to set"
169
+ }
170
+ },
171
+ "supportsInterface(bytes4)": {
172
+ "details": "See {IERC165-supportsInterface}."
173
+ },
174
+ "symbol()": {
175
+ "details": "Returns the symbol of the token, usually a shorter version of the name.",
176
+ "returns": {
177
+ "_0": "The symbol of the token"
178
+ }
179
+ },
180
+ "totalSupply()": {
181
+ "details": "Returns the number of existing tokens.",
182
+ "returns": {
183
+ "_0": "The number of existing tokens"
184
+ }
185
+ },
186
+ "transfer(address,address,uint256,bool,bytes)": {
187
+ "details": "Transfers `amount` of tokens from `from` to `to`. The `allowNonLSP1Recipient` parameter will be used when notifying the token sender and receiver. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `amount` tokens must be owned by `from`. - If the caller is not `from`, it must be an operator for `from` with access to at least `amount` tokens. Emits a {Transfer} event.",
188
+ "params": {
189
+ "allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
190
+ "amount": "The amount of tokens to transfer.",
191
+ "data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
192
+ "from": "The sending address.",
193
+ "to": "The receiving address."
194
+ }
195
+ },
196
+ "transfer(address,uint256)": {
197
+ "details": "Compatible with ERC20 transfer. Using allowNonLSP1Recipient=true so that EOA and any contract may receive the tokens."
198
+ },
199
+ "transferBatch(address[],address[],uint256[],bool[],bytes[])": {
200
+ "details": "Transfers many tokens based on the list `from`, `to`, `amount`. If any transfer fails the call will revert. Requirements: - `from`, `to`, `amount` lists are the same length. - no values in `from` can be the zero address. - no values in `to` can be the zero address. - each `amount` tokens must be owned by `from`. - If the caller is not `from`, it must be an operator for `from` with access to at least `amount` tokens. Emits {Transfer} events.",
201
+ "params": {
202
+ "allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
203
+ "amount": "The amount of tokens to transfer.",
204
+ "data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
205
+ "from": "The list of sending addresses.",
206
+ "to": "The list of receiving addresses."
207
+ }
208
+ },
209
+ "transferFrom(address,address,uint256)": {
210
+ "details": "Compatible with ERC20 transferFrom. Using allowNonLSP1Recipient=true so that EOA and any contract may receive the tokens."
211
+ },
212
+ "transferOwnership(address)": {
213
+ "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
214
+ }
215
+ },
216
+ "version": 1
217
+ }
@@ -0,0 +1,227 @@
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
+ "LSP7AmountExceedsAuthorizedAmount(address,uint256,address,uint256)": [
29
+ {
30
+ "details": "reverts when `operator` of `tokenOwner` send an `amount` of tokens larger than the `authorizedAmount`."
31
+ }
32
+ ],
33
+ "LSP7AmountExceedsBalance(uint256,address,uint256)": [
34
+ {
35
+ "details": "reverts when sending an `amount` of tokens larger than the current `balance` of the `tokenOwner`."
36
+ }
37
+ ],
38
+ "LSP7CannotSendToSelf()": [
39
+ {
40
+ "details": "reverts when specifying the same address for `from` or `to` in a token transfer."
41
+ }
42
+ ],
43
+ "LSP7CannotSendWithAddressZero()": [
44
+ {
45
+ "details": "reverts when one tries to send tokens to or from the zero address."
46
+ }
47
+ ],
48
+ "LSP7CannotUseAddressZeroAsOperator()": [
49
+ {
50
+ "details": "reverts when trying to set the zero address as an operator."
51
+ }
52
+ ],
53
+ "LSP7DecreasedAllowanceBelowZero()": [
54
+ {
55
+ "details": "Reverts when trying to decrease an operator's allowance to more than his current allowance"
56
+ }
57
+ ],
58
+ "LSP7InvalidTransferBatch()": [
59
+ {
60
+ "details": "reverts when the parameters used for `transferBatch` have different lengths."
61
+ }
62
+ ],
63
+ "LSP7NotifyTokenReceiverContractMissingLSP1Interface(address)": [
64
+ {
65
+ "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
66
+ }
67
+ ],
68
+ "LSP7NotifyTokenReceiverIsEOA(address)": [
69
+ {
70
+ "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
71
+ }
72
+ ],
73
+ "LSP7TokenOwnerCannotBeOperator()": [
74
+ {
75
+ "details": "reverts when trying to authorize or revoke the token's owner as an operator."
76
+ }
77
+ ]
78
+ },
79
+ "kind": "dev",
80
+ "methods": {
81
+ "authorizeOperator(address,uint256)": {
82
+ "details": "To avoid front-running and Allowance Double-Spend Exploit when increasing or decreasing the authorized amount of an operator, it is advised to: 1. call {revokeOperator} first, and 2. then re-call {authorizeOperator} with the new amount for more information, see: https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/",
83
+ "params": {
84
+ "amount": "The amount of tokens operator has access to.",
85
+ "operator": "The address to authorize as an operator."
86
+ }
87
+ },
88
+ "authorizedAmountFor(address,address)": {
89
+ "details": "Returns amount of tokens `operator` address has access to from `tokenOwner`. Operators can send and burn tokens on behalf of their owners. The tokenOwner is their own operator.",
90
+ "params": {
91
+ "operator": "The address to query operator status for.",
92
+ "tokenOwner": "The token owner."
93
+ },
94
+ "returns": {
95
+ "_0": "The amount of tokens `operator` address has access to from `tokenOwner`."
96
+ }
97
+ },
98
+ "balanceOf(address)": {
99
+ "details": "Returns the number of tokens owned by `tokenOwner`.",
100
+ "params": {
101
+ "tokenOwner": "The address to query"
102
+ },
103
+ "returns": {
104
+ "_0": "The number of tokens owned by this address"
105
+ }
106
+ },
107
+ "constructor": {
108
+ "details": "initialize (= lock) base implementation contract on deployment"
109
+ },
110
+ "decimals()": {
111
+ "details": "Returns the number of decimals used to get its user representation If the contract represents a NFT then 0 SHOULD be used, otherwise 18 is the common value NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {balanceOf} and {transfer}."
112
+ },
113
+ "decreaseAllowance(address,uint256)": {
114
+ "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 problems described in {ILSP7DigitalAsset} Emits: - an {AuthorizedOperator} event indicating the updated allowance after decreasing it. - a {RevokeOperator} event if `substractedAmount` is the full allowance, indicating `operator` does not have any allowance left for `msg.sender`.Requirements: - `operator` cannot be the zero address. - operator` must have allowance for the caller of at least `substractedAmount`.",
115
+ "params": {
116
+ "operator": "the operator to decrease allowance for `msg.sender`",
117
+ "substractedAmount": "the amount to decrease by in the operator's allowance."
118
+ }
119
+ },
120
+ "getData(bytes32)": {
121
+ "params": {
122
+ "dataKey": "The key which value to retrieve"
123
+ },
124
+ "returns": {
125
+ "dataValue": "The data stored at the key"
126
+ }
127
+ },
128
+ "getDataBatch(bytes32[])": {
129
+ "params": {
130
+ "dataKeys": "The array of keys which values to retrieve"
131
+ },
132
+ "returns": {
133
+ "dataValues": "The array of data stored at multiple keys"
134
+ }
135
+ },
136
+ "increaseAllowance(address,uint256)": {
137
+ "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 problems described in {ILSP7DigitalAsset}. Emits an {AuthorizedOperator} event indicating the updated allowance.Requirements: - `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
138
+ "params": {
139
+ "addedAmount": "the additional amount to add on top of the current operator's allowance",
140
+ "operator": "the operator to increase the allowance for `msg.sender`"
141
+ }
142
+ },
143
+ "initialize(string,string,address)": {
144
+ "params": {
145
+ "name_": "The name of the token",
146
+ "newOwner_": "The owner of the token",
147
+ "symbol_": "The symbol of the token"
148
+ }
149
+ },
150
+ "name()": {
151
+ "details": "Returns the name of the token.",
152
+ "returns": {
153
+ "_0": "The name of the token"
154
+ }
155
+ },
156
+ "owner()": {
157
+ "details": "Returns the address of the current owner."
158
+ },
159
+ "renounceOwnership()": {
160
+ "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."
161
+ },
162
+ "revokeOperator(address)": {
163
+ "details": "Removes `operator` address as an operator of callers tokens. See {authorizedAmountFor}. Requirements - `operator` cannot be the zero address. Emits a {RevokedOperator} event.",
164
+ "params": {
165
+ "operator": "The address to revoke as an operator."
166
+ }
167
+ },
168
+ "setData(bytes32,bytes)": {
169
+ "params": {
170
+ "dataKey": "The key to retrieve stored value",
171
+ "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."
172
+ }
173
+ },
174
+ "setDataBatch(bytes32[],bytes[])": {
175
+ "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.",
176
+ "params": {
177
+ "dataKeys": "The array of data keys for values to set",
178
+ "dataValues": "The array of values to set"
179
+ }
180
+ },
181
+ "supportsInterface(bytes4)": {
182
+ "details": "See {IERC165-supportsInterface}."
183
+ },
184
+ "symbol()": {
185
+ "details": "Returns the symbol of the token, usually a shorter version of the name.",
186
+ "returns": {
187
+ "_0": "The symbol of the token"
188
+ }
189
+ },
190
+ "totalSupply()": {
191
+ "details": "Returns the number of existing tokens.",
192
+ "returns": {
193
+ "_0": "The number of existing tokens"
194
+ }
195
+ },
196
+ "transfer(address,address,uint256,bool,bytes)": {
197
+ "details": "Transfers `amount` of tokens from `from` to `to`. The `allowNonLSP1Recipient` parameter will be used when notifying the token sender and receiver. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `amount` tokens must be owned by `from`. - If the caller is not `from`, it must be an operator for `from` with access to at least `amount` tokens. Emits a {Transfer} event.",
198
+ "params": {
199
+ "allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
200
+ "amount": "The amount of tokens to transfer.",
201
+ "data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
202
+ "from": "The sending address.",
203
+ "to": "The receiving address."
204
+ }
205
+ },
206
+ "transfer(address,uint256)": {
207
+ "details": "Compatible with ERC20 transfer. Using allowNonLSP1Recipient=true so that EOA and any contract may receive the tokens."
208
+ },
209
+ "transferBatch(address[],address[],uint256[],bool[],bytes[])": {
210
+ "details": "Transfers many tokens based on the list `from`, `to`, `amount`. If any transfer fails the call will revert. Requirements: - `from`, `to`, `amount` lists are the same length. - no values in `from` can be the zero address. - no values in `to` can be the zero address. - each `amount` tokens must be owned by `from`. - If the caller is not `from`, it must be an operator for `from` with access to at least `amount` tokens. Emits {Transfer} events.",
211
+ "params": {
212
+ "allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
213
+ "amount": "The amount of tokens to transfer.",
214
+ "data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
215
+ "from": "The list of sending addresses.",
216
+ "to": "The list of receiving addresses."
217
+ }
218
+ },
219
+ "transferFrom(address,address,uint256)": {
220
+ "details": "Compatible with ERC20 transferFrom. Using allowNonLSP1Recipient=true so that EOA and any contract may receive the tokens."
221
+ },
222
+ "transferOwnership(address)": {
223
+ "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
224
+ }
225
+ },
226
+ "version": 1
227
+ }
@@ -0,0 +1,210 @@
1
+ {
2
+ "author": "Matthew Stevens",
3
+ "details": "Implementation of a LSP7 compliant contract. This implementation is agnostic to the way tokens are created. A supply mechanism has to be added in a derived contract using {_mint} For a generic mechanism, see {LSP7Mintable}.",
4
+ "errors": {
5
+ "ERC725Y_DataKeysValuesEmptyArray()": [
6
+ {
7
+ "details": "reverts when one of the array parameter provided to `setDataBatch` is an empty array"
8
+ }
9
+ ],
10
+ "ERC725Y_DataKeysValuesLengthMismatch()": [
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."
13
+ }
14
+ ],
15
+ "ERC725Y_MsgValueDisallowed()": [
16
+ {
17
+ "details": "reverts when sending value to the `setData(..)` functions"
18
+ }
19
+ ],
20
+ "LSP4TokenNameNotEditable()": [
21
+ {
22
+ "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."
23
+ }
24
+ ],
25
+ "LSP4TokenSymbolNotEditable()": [
26
+ {
27
+ "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."
28
+ }
29
+ ],
30
+ "LSP7AmountExceedsAuthorizedAmount(address,uint256,address,uint256)": [
31
+ {
32
+ "details": "reverts when `operator` of `tokenOwner` send an `amount` of tokens larger than the `authorizedAmount`."
33
+ }
34
+ ],
35
+ "LSP7AmountExceedsBalance(uint256,address,uint256)": [
36
+ {
37
+ "details": "reverts when sending an `amount` of tokens larger than the current `balance` of the `tokenOwner`."
38
+ }
39
+ ],
40
+ "LSP7CannotSendToSelf()": [
41
+ {
42
+ "details": "reverts when specifying the same address for `from` or `to` in a token transfer."
43
+ }
44
+ ],
45
+ "LSP7CannotSendWithAddressZero()": [
46
+ {
47
+ "details": "reverts when one tries to send tokens to or from the zero address."
48
+ }
49
+ ],
50
+ "LSP7CannotUseAddressZeroAsOperator()": [
51
+ {
52
+ "details": "reverts when trying to set the zero address as an operator."
53
+ }
54
+ ],
55
+ "LSP7DecreasedAllowanceBelowZero()": [
56
+ {
57
+ "details": "Reverts when trying to decrease an operator's allowance to more than his current allowance"
58
+ }
59
+ ],
60
+ "LSP7InvalidTransferBatch()": [
61
+ {
62
+ "details": "reverts when the parameters used for `transferBatch` have different lengths."
63
+ }
64
+ ],
65
+ "LSP7NotifyTokenReceiverContractMissingLSP1Interface(address)": [
66
+ {
67
+ "details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
68
+ }
69
+ ],
70
+ "LSP7NotifyTokenReceiverIsEOA(address)": [
71
+ {
72
+ "details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
73
+ }
74
+ ],
75
+ "LSP7TokenOwnerCannotBeOperator()": [
76
+ {
77
+ "details": "reverts when trying to authorize or revoke the token's owner as an operator."
78
+ }
79
+ ]
80
+ },
81
+ "kind": "dev",
82
+ "methods": {
83
+ "authorizeOperator(address,uint256)": {
84
+ "details": "To avoid front-running and Allowance Double-Spend Exploit when increasing or decreasing the authorized amount of an operator, it is advised to: 1. call {revokeOperator} first, and 2. then re-call {authorizeOperator} with the new amount for more information, see: https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/",
85
+ "params": {
86
+ "amount": "The amount of tokens operator has access to.",
87
+ "operator": "The address to authorize as an operator."
88
+ }
89
+ },
90
+ "authorizedAmountFor(address,address)": {
91
+ "details": "Returns amount of tokens `operator` address has access to from `tokenOwner`. Operators can send and burn tokens on behalf of their owners. The tokenOwner is their own operator.",
92
+ "params": {
93
+ "operator": "The address to query operator status for.",
94
+ "tokenOwner": "The token owner."
95
+ },
96
+ "returns": {
97
+ "_0": "The amount of tokens `operator` address has access to from `tokenOwner`."
98
+ }
99
+ },
100
+ "balanceOf(address)": {
101
+ "details": "Returns the number of tokens owned by `tokenOwner`.",
102
+ "params": {
103
+ "tokenOwner": "The address to query"
104
+ },
105
+ "returns": {
106
+ "_0": "The number of tokens owned by this address"
107
+ }
108
+ },
109
+ "constructor": {
110
+ "params": {
111
+ "isNonDivisible_": "Specify if the LSP7 token is a fungible or non-fungible token",
112
+ "name_": "The name of the token",
113
+ "newOwner_": "The owner of the the token-Metadata",
114
+ "symbol_": "The symbol of the token"
115
+ }
116
+ },
117
+ "decimals()": {
118
+ "details": "Returns the number of decimals used to get its user representation If the contract represents a NFT then 0 SHOULD be used, otherwise 18 is the common value NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {balanceOf} and {transfer}."
119
+ },
120
+ "decreaseAllowance(address,uint256)": {
121
+ "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 problems described in {ILSP7DigitalAsset} Emits: - an {AuthorizedOperator} event indicating the updated allowance after decreasing it. - a {RevokeOperator} event if `substractedAmount` is the full allowance, indicating `operator` does not have any allowance left for `msg.sender`.Requirements: - `operator` cannot be the zero address. - operator` must have allowance for the caller of at least `substractedAmount`.",
122
+ "params": {
123
+ "operator": "the operator to decrease allowance for `msg.sender`",
124
+ "substractedAmount": "the amount to decrease by in the operator's allowance."
125
+ }
126
+ },
127
+ "getData(bytes32)": {
128
+ "params": {
129
+ "dataKey": "The key which value to retrieve"
130
+ },
131
+ "returns": {
132
+ "dataValue": "The data stored at the key"
133
+ }
134
+ },
135
+ "getDataBatch(bytes32[])": {
136
+ "params": {
137
+ "dataKeys": "The array of keys which values to retrieve"
138
+ },
139
+ "returns": {
140
+ "dataValues": "The array of data stored at multiple keys"
141
+ }
142
+ },
143
+ "increaseAllowance(address,uint256)": {
144
+ "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 problems described in {ILSP7DigitalAsset}. Emits an {AuthorizedOperator} event indicating the updated allowance.Requirements: - `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
145
+ "params": {
146
+ "addedAmount": "the additional amount to add on top of the current operator's allowance",
147
+ "operator": "the operator to increase the allowance for `msg.sender`"
148
+ }
149
+ },
150
+ "owner()": {
151
+ "details": "Returns the address of the current owner."
152
+ },
153
+ "renounceOwnership()": {
154
+ "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."
155
+ },
156
+ "revokeOperator(address)": {
157
+ "details": "Removes `operator` address as an operator of callers tokens. See {authorizedAmountFor}. Requirements - `operator` cannot be the zero address. Emits a {RevokedOperator} event.",
158
+ "params": {
159
+ "operator": "The address to revoke as an operator."
160
+ }
161
+ },
162
+ "setData(bytes32,bytes)": {
163
+ "params": {
164
+ "dataKey": "The key to retrieve stored value",
165
+ "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."
166
+ }
167
+ },
168
+ "setDataBatch(bytes32[],bytes[])": {
169
+ "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.",
170
+ "params": {
171
+ "dataKeys": "The array of data keys for values to set",
172
+ "dataValues": "The array of values to set"
173
+ }
174
+ },
175
+ "supportsInterface(bytes4)": {
176
+ "details": "See {IERC165-supportsInterface}."
177
+ },
178
+ "totalSupply()": {
179
+ "details": "Returns the number of existing tokens.",
180
+ "returns": {
181
+ "_0": "The number of existing tokens"
182
+ }
183
+ },
184
+ "transfer(address,address,uint256,bool,bytes)": {
185
+ "details": "Transfers `amount` of tokens from `from` to `to`. The `allowNonLSP1Recipient` parameter will be used when notifying the token sender and receiver. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `amount` tokens must be owned by `from`. - If the caller is not `from`, it must be an operator for `from` with access to at least `amount` tokens. Emits a {Transfer} event.",
186
+ "params": {
187
+ "allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
188
+ "amount": "The amount of tokens to transfer.",
189
+ "data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
190
+ "from": "The sending address.",
191
+ "to": "The receiving address."
192
+ }
193
+ },
194
+ "transferBatch(address[],address[],uint256[],bool[],bytes[])": {
195
+ "details": "Transfers many tokens based on the list `from`, `to`, `amount`. If any transfer fails the call will revert. Requirements: - `from`, `to`, `amount` lists are the same length. - no values in `from` can be the zero address. - no values in `to` can be the zero address. - each `amount` tokens must be owned by `from`. - If the caller is not `from`, it must be an operator for `from` with access to at least `amount` tokens. Emits {Transfer} events.",
196
+ "params": {
197
+ "allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
198
+ "amount": "The amount of tokens to transfer.",
199
+ "data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
200
+ "from": "The list of sending addresses.",
201
+ "to": "The list of receiving addresses."
202
+ }
203
+ },
204
+ "transferOwnership(address)": {
205
+ "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
206
+ }
207
+ },
208
+ "title": "LSP7DigitalAsset contract",
209
+ "version": 1
210
+ }