@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,146 @@
1
+ {
2
+ "details": "Sets permission for a controller address after a recovery process to interact with an ERC725 contract via the LSP6KeyManager",
3
+ "errors": {
4
+ "AddressZeroNotAllowed()": [
5
+ {
6
+ "details": "reverts when the address zero calls `recoverOwnership(..)` function"
7
+ }
8
+ ],
9
+ "CallerIsNotGuardian(address)": [
10
+ {
11
+ "details": "reverts when the caller is not a guardian"
12
+ }
13
+ ],
14
+ "GuardianAlreadyExist(address)": [
15
+ {
16
+ "details": "reverts when adding an already existing guardian"
17
+ }
18
+ ],
19
+ "GuardianDoNotExist(address)": [
20
+ {
21
+ "details": "reverts when removing a non-existing guardian"
22
+ }
23
+ ],
24
+ "GuardiansNumberCannotGoBelowThreshold(uint256)": [
25
+ {
26
+ "details": "reverts when removing a guardian and the threshold is equal to the number of guardians"
27
+ }
28
+ ],
29
+ "SecretHashCannotBeZero()": [
30
+ {
31
+ "details": "reverts when the secret hash provided is equal to bytes32(0)"
32
+ }
33
+ ],
34
+ "ThresholdCannotBeHigherThanGuardiansNumber(uint256,uint256)": [
35
+ {
36
+ "details": "reverts when setting the guardians threshold to a number higher than the guardians number"
37
+ }
38
+ ],
39
+ "ThresholdNotReachedForRecoverer(address,uint256,uint256)": [
40
+ {
41
+ "details": "reverts when `recoverOwnership(..)` is called with a recoverer that didn't reach the guardians threshold",
42
+ "params": {
43
+ "guardiansThreshold": "The minimum number of selection needed",
44
+ "recoverer": "The address of the recoverer",
45
+ "selections": "The number of selections that the recoverer have"
46
+ }
47
+ }
48
+ ],
49
+ "WrongPlainSecret()": [
50
+ {
51
+ "details": "reverts when the plain secret produce a different hash than the secret hash originally set"
52
+ }
53
+ ]
54
+ },
55
+ "kind": "dev",
56
+ "methods": {
57
+ "addGuardian(address)": {
58
+ "details": "Adds a guardian of the targetCan be called only by the owner",
59
+ "params": {
60
+ "newGuardian": "The address to add as a guardian"
61
+ }
62
+ },
63
+ "getGuardianChoice(address)": {
64
+ "details": "Returns the address of a controller that a `guardian` selected for in order to recover the target",
65
+ "params": {
66
+ "guardian": "the address of a guardian to query his selection"
67
+ },
68
+ "returns": {
69
+ "_0": "the address that `guardian` selected"
70
+ }
71
+ },
72
+ "getGuardians()": {
73
+ "details": "Returns the addresses of all guardians The guardians will select an address to be added as a controller key for the linked `target` if he reaches the guardian threshold and provide the correct string that produce the secretHash"
74
+ },
75
+ "getGuardiansThreshold()": {
76
+ "details": "Returns the guardian threshold The guardian threshold represents the minimum number of selection by guardians required for an address to start a recovery process"
77
+ },
78
+ "getRecoveryCounter()": {
79
+ "details": "Returns the current recovery counter When a recovery process is successfully finished the recovery counter is incremented"
80
+ },
81
+ "getRecoverySecretHash()": {
82
+ "details": "Returns the recovery secret hash"
83
+ },
84
+ "initialize(address,address)": {
85
+ "params": {
86
+ "_owner": "The owner of the LSP11 contract",
87
+ "target_": "The address of the ER725 contract to recover"
88
+ }
89
+ },
90
+ "isGuardian(address)": {
91
+ "details": "Returns TRUE if the address provided is a guardian, FALSE otherwise",
92
+ "params": {
93
+ "_address": "The address to query"
94
+ }
95
+ },
96
+ "owner()": {
97
+ "details": "Returns the address of the current owner."
98
+ },
99
+ "recoverOwnership(address,string,bytes32)": {
100
+ "details": "Recovers the ownership permissions of an address in the linked target and increment the recover counter Requirements - the address of the recoverer must have a selection equal or higher than the threshold defined in `getGuardiansThreshold(...)` - must have provided the right `plainSecret` that produces the secret Hash",
101
+ "params": {
102
+ "newHash": "The new secret Hash to be used in the next recovery process",
103
+ "plainSecret": "The secret word that produce the secret Hash",
104
+ "recoverer": "The address of the recoverer"
105
+ }
106
+ },
107
+ "removeGuardian(address)": {
108
+ "details": "Removes a guardian of the targetCan be called only by the owner",
109
+ "params": {
110
+ "currentGuardian": "The address of the existing guardian to remove Requirements: - The guardians count should be higher or equal to the guardain threshold"
111
+ }
112
+ },
113
+ "renounceOwnership()": {
114
+ "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."
115
+ },
116
+ "selectNewController(address)": {
117
+ "details": "select an address to be a potentiel controller address if he reaches the guardian threshold and provide the correct secret string Requirements: - only guardians can select an address",
118
+ "params": {
119
+ "addressSelected": "The address selected by the guardian"
120
+ }
121
+ },
122
+ "setGuardiansThreshold(uint256)": {
123
+ "details": "Sets the minimum number of selection by the guardians required so that an address can recover ownershipCan be called only by the owner",
124
+ "params": {
125
+ "guardiansThreshold": "The threshold to set Requirements: - `guardiansThreshold` cannot be more than the guardians count."
126
+ }
127
+ },
128
+ "setRecoverySecretHash(bytes32)": {
129
+ "details": "Throws if hash provided is bytes32(0)",
130
+ "params": {
131
+ "newRecoverSecretHash": "The hash of the secret string Requirements: - `secretHash` cannot be bytes32(0)"
132
+ }
133
+ },
134
+ "supportsInterface(bytes4)": {
135
+ "details": "See {IERC165-supportsInterface}."
136
+ },
137
+ "target()": {
138
+ "details": "The address of an ERC725 contract where we want to recover and set permissions for a controller address"
139
+ },
140
+ "transferOwnership(address)": {
141
+ "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
142
+ }
143
+ },
144
+ "title": "Deployable Proxy Implementation of LSP11 - Basic Social Recovery standard",
145
+ "version": 1
146
+ }
@@ -0,0 +1,116 @@
1
+ {
2
+ "details": "Factory contract to deploy different types of contracts using the CREATE2 opcode standardized as LSP16 - UniversalFactory: https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-16-UniversalFactory.md The UniversalFactory will be deployed using Nick's Factory (0x4e59b44847b379578588920ca78fbf26c0b4956c) The deployed address can be found in the LSP16 specification. Please refer to the LSP16 Specification to obtain the exact bytecode and salt that should be used to produce the address of the UniversalFactory on different chains. This factory contract is designed to deploy contracts at the same address on multiple chains. The UniversalFactory can deploy 2 types of contracts: - non-initializable (normal deployment) - initializable (external call after deployment, e.g: proxy contracts) The `providedSalt` parameter given by the deployer is not used directly as the salt by the CREATE2 opcode. Instead, it is used along with these parameters: - `initializable` boolean - `initializeCalldata` (when the contract is initializable and `initializable` is set to `true`). These three parameters are concatenated together and hashed to generate the final salt for CREATE2. See {generateSalt} function for more details. The constructor and `initializeCalldata` SHOULD NOT include any network-specific parameters (e.g: chain-id, a local token contract address), otherwise the deployed contract will not be recreated at the same address across different networks, thus defeating the purpose of the UniversalFactory. One way to solve this problem is to set an EOA owner in the `initializeCalldata`/constructor that can later call functions that set these parameters as variables in the contract. The UniversalFactory must be deployed at the same address on different chains to successfully deploy contracts at the same address across different chains.",
3
+ "errors": {
4
+ "ContractInitializationFailed()": [
5
+ {
6
+ "details": "Reverts when there is no revert reason bubbled up by the contract created when initializing"
7
+ }
8
+ ],
9
+ "InvalidValueSum()": [
10
+ {
11
+ "details": "Reverts when msg.value sent to {deployCreate2AndInitialize} function is not equal to the sum of the `initializeCalldataMsgValue` and `constructorMsgValue`"
12
+ }
13
+ ]
14
+ },
15
+ "events": {
16
+ "ContractCreated(address,bytes32,bytes32,bool,bytes)": {
17
+ "details": "Emitted whenever a contract is created",
18
+ "params": {
19
+ "contractCreated": "The address of the contract created",
20
+ "generatedSalt": "The salt used by the `CREATE2` opcode for contract deployment",
21
+ "initializeCalldata": "The bytes provided as initializeCalldata (Empty string when `initialized` is set to false)",
22
+ "initialized": "The Boolean that specifies if the contract must be initialized or not",
23
+ "providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
24
+ }
25
+ }
26
+ },
27
+ "kind": "dev",
28
+ "methods": {
29
+ "computeAddress(bytes32,bytes32,bool,bytes)": {
30
+ "details": "Computes the address of a contract to be deployed using CREATE2, based on the input parameters. Any change in one of these parameters will result in a different address. When the `initializable` boolean is set to `false`, `initializeCalldata` will not affect the function output.",
31
+ "params": {
32
+ "byteCodeHash": "The keccak256 hash of the bytecode to be deployed",
33
+ "initializable": "A boolean that indicates whether an external call should be made to initialize the contract after deployment",
34
+ "initializeCalldata": "The calldata to be executed on the created contract if `initializable` is set to `true`",
35
+ "providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
36
+ },
37
+ "returns": {
38
+ "_0": "The address where the contract will be deployed"
39
+ }
40
+ },
41
+ "computeERC1167Address(address,bytes32,bool,bytes)": {
42
+ "details": "Computes the address of an ERC1167 proxy contract based on the input parameters. Any change in one of these parameters will result in a different address. When the `initializable` boolean is set to `false`, `initializeCalldata` will not affect the function output.",
43
+ "params": {
44
+ "implementationContract": "The contract to create a clone of according to ERC1167",
45
+ "initializable": "A boolean that indicates whether an external call should be made to initialize the proxy contract after deployment",
46
+ "initializeCalldata": "The calldata to be executed on the created contract if `initializable` is set to `true`",
47
+ "providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
48
+ },
49
+ "returns": {
50
+ "_0": "The address where the ERC1167 proxy contract will be deployed"
51
+ }
52
+ },
53
+ "deployCreate2(bytes,bytes32)": {
54
+ "details": "Deploys a contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeAddress} function. This function deploys contracts without initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(false, providedSalt))`. See {generateSalt} function for more details. Using the same `byteCode` and `providedSalt` multiple times will revert, as the contract cannot be deployed twice at the same address. If the constructor of the contract to deploy is payable, value can be sent to this function to fund the created contract. However, sending value to this function while the constructor is not payable will result in a revert.",
55
+ "params": {
56
+ "byteCode": "The bytecode of the contract to be deployed",
57
+ "providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
58
+ },
59
+ "returns": {
60
+ "_0": "The address of the deployed contract"
61
+ }
62
+ },
63
+ "deployCreate2AndInitialize(bytes,bytes32,bytes,uint256,uint256)": {
64
+ "details": "Deploys a contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeAddress} function. This function deploys contracts with initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(true, initializeCalldata, providedSalt))`. See {generateSalt} function for more details. Using the same `byteCode`, `providedSalt` and `initializeCalldata` multiple times will revert, as the contract cannot be deployed twice at the same address. If the constructor or the initialize function of the contract to deploy is payable, value can be sent along with the deployment/initialization to fund the created contract. However, sending value to this function while the constructor/initialize function is not payable will result in a revert. Will revert if the `msg.value` sent to the function is not equal to the sum of `constructorMsgValue` and `initializeCalldataMsgValue`.",
65
+ "params": {
66
+ "byteCode": "The bytecode of the contract to be deployed",
67
+ "constructorMsgValue": "The value sent to the contract during deployment",
68
+ "initializeCalldata": "The calldata to be executed on the created contract",
69
+ "initializeCalldataMsgValue": "The value sent to the contract during initialization",
70
+ "providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
71
+ },
72
+ "returns": {
73
+ "_0": "The address of the deployed contract"
74
+ }
75
+ },
76
+ "deployERC1167Proxy(address,bytes32)": {
77
+ "details": "Deploys an ERC1167 minimal proxy contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeERC1167Address} function. This function deploys contracts without initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(false, providedSalt))`. See {generateSalt} function for more details. See {generateSalt} function for more details. Using the same `implementationContract` and `providedSalt` multiple times will revert, as the contract cannot be deployed twice at the same address. Sending value to the contract created is not possible since the constructor of the ERC1167 minimal proxy is not payable.",
78
+ "params": {
79
+ "implementationContract": "The contract address to use as the base implementation behind the proxy that will be deployed",
80
+ "providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
81
+ },
82
+ "returns": {
83
+ "_0": "The address of the minimal proxy deployed"
84
+ }
85
+ },
86
+ "deployERC1167ProxyAndInitialize(address,bytes32,bytes)": {
87
+ "details": "Deploys an ERC1167 minimal proxy contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeERC1167Address} function. This function deploys contracts with initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(true, initializeCalldata, providedSalt))`. See {generateSalt} function for more details. Using the same `implementationContract`, `providedSalt` and `initializeCalldata` multiple times will revert, as the contract cannot be deployed twice at the same address. If the initialize function of the contract to deploy is payable, value can be sent along to fund the created contract while initializing. However, sending value to this function while the initialize function is not payable will result in a revert.",
88
+ "params": {
89
+ "implementationContract": "The contract address to use as the base implementation behind the proxy that will be deployed",
90
+ "initializeCalldata": "The calldata to be executed on the created contract",
91
+ "providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
92
+ },
93
+ "returns": {
94
+ "_0": "The address of the minimal proxy deployed"
95
+ }
96
+ },
97
+ "generateSalt(bytes32,bool,bytes)": {
98
+ "details": "Generates the salt used to deploy the contract by hashing the following parameters (concatenated together) with keccak256: - the `providedSalt` - the `initializable` boolean - the `initializeCalldata`, only if the contract is initializable (the `initializable` boolean is set to `true`) The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is used along with these parameters: - `initializable` boolean - `initializeCalldata` (when the contract is initializable and `initializable` is set to `true`). These three parameters are concatenated together and hashed to generate the final salt for CREATE2. This approach ensures that in order to reproduce an initializable contract at the same address on another chain, not only the `providedSalt` is required to be the same, but also the initialize parameters within the `initializeCalldata` must also be the same. This maintains consistent deployment behaviour. Users are required to initialize contracts with the same parameters across different chains to ensure contracts are deployed at the same address across different chains. ----------- Example (for initializable contracts) For an existing contract A on chain 1 owned by X, to replicate the same contract at the same address with the same owner X on chain 2, the salt used to generate the address should include the initializeCalldata that assigns X as the owner of contract A. For instance, if another user, Y, tries to deploy the contract at the same address on chain 2 using the same providedSalt, but with a different initializeCalldata to make Y the owner instead of X, the generated address would be different, preventing Y from deploying the contract with different ownership at the same address. ----------- However, for non-initializable contracts, if the constructor has arguments that specify the deployment behavior, they will be included in the bytecode. Any change in the constructor arguments will lead to a different contract's bytecode which will result in a different address on other chains. ----------- Example (for non-initializable contracts) If a contract is deployed with specific constructor arguments on chain 1, these arguments are embedded within the bytecode. For instance, if contract B is deployed with a specific `tokenName` and `tokenSymbol` on chain 1, and a user wants to deploy the same contract with the same `tokenName` and `tokenSymbol` on chain 2, they must use the same constructor arguments to produce the same bytecode. This ensures that the same deployment behaviour is maintained across different chains, as long as the same bytecode is used. If another user Z, tries to deploy the same contract B at the same address on chain 2 using the same `providedSalt` but different constructor arguments (a different `tokenName` and/or `tokenSymbol`), the generated address will be different. This prevents user Z from deploying the contract with different constructor arguments at the same address on chain 2. ----------- The providedSalt was hashed to produce the salt used by CREATE2 opcode to prevent users from deploying initializable contracts using non-initializable functions such as {deployCreate2} without having the initialization call. In other words, if the providedSalt was not hashed and was used as it is as the salt by the CREATE2 opcode, malicious users can check the generated salt used for the already deployed initializable contract on chain 1, and deploy the contract from {deployCreate2} function on chain 2, with passing the generated salt of the deployed contract as providedSalt that will produce the same address but without the initialization, where the malicious user can initialize after.",
99
+ "params": {
100
+ "initializable": "The Boolean that specifies if the contract must be initialized or not",
101
+ "initializeCalldata": "The calldata to be executed on the created contract if `initializable` is set to `true`",
102
+ "providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
103
+ },
104
+ "returns": {
105
+ "_0": "The generated salt which will be used for CREATE2 deployment"
106
+ }
107
+ }
108
+ },
109
+ "stateVariables": {
110
+ "_EMPTY_BYTE": {
111
+ "details": "placeholder for the `initializeCallData` param when the `initializable` boolean is set to `false`."
112
+ }
113
+ },
114
+ "title": "LSP16 Universal Factory",
115
+ "version": 1
116
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "author": "Fabian Vogelsteller, Yamen Merhi, Jean Cavallera",
3
+ "details": "This UniversalReceiverDelegate follows the {LSP1-UniversalReceiver} standards and is designed for LSP0ERC725Account contracts.Handles two cases: - Registers the address of received assets (exclusively LSP7 and LSP8) and vaults (exclusively LSP9) according to {LSP5-ReceivedAssets} and {LSP10-ReceivedVaults} respectively https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-5-ReceivedAssets.md https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-10-ReceivedVaults.md - Removes the address of registered assets and vaults when the full balance is sent from the LSP0ERC725Account contract Requirements: - The contract should be able to setData the LSP5 and LSP10 data Keys according to the logic of the owner of the LSP0ERC725Account. For example, for contracts that are owned by an LSP6KeyManager, this contract should be granted the SUPER/SETDATA and REENTRANCY Permission. Assets and Vaults that are compliant with this version of the UniversalReceiverDelegate are: - LSP7-DigitalAsset: https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-7-DigitalAsset.md - LSP8-IdentifiableDigitalAsset: https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-8-IdentifiableDigitalAsset.md - LSP9-Vault: https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-9-Vault.md",
4
+ "errors": {
5
+ "CannotRegisterEOAsAsAssets(address)": [
6
+ {
7
+ "details": "reverts when EOA calls the `universalReceiver(..)` function with an asset/vault typeId",
8
+ "params": {
9
+ "caller": "The address of the EOA"
10
+ }
11
+ }
12
+ ],
13
+ "InvalidLSP10ReceivedVaultsArrayLength(bytes,uint256)": [
14
+ {
15
+ "details": "reverts when the value stored under the 'LSP10ReceivedVaults[]' data key is not valid. The value stored under this data key should be exactly 16 bytes long. Only possible valid values are: - any valid uint128 values i.e. 0x00000000000000000000000000000000 (zero), meaning empty array, no vaults received. i.e. 0x00000000000000000000000000000005 (non-zero), meaning 5 array elements, 5 vaults received. - 0x (nothing stored under this data key, equivalent to empty array)",
16
+ "params": {
17
+ "invalidValueLength": "the invalid number of bytes stored under the LSP10ReceivedVaults[] data key (MUST be 16 bytes long)",
18
+ "invalidValueStored": "the invalid value stored under the LSP10ReceivedVaults[] data key"
19
+ }
20
+ }
21
+ ],
22
+ "InvalidLSP5ReceivedAssetsArrayLength(bytes,uint256)": [
23
+ {
24
+ "details": "reverts when the value stored under the 'LSP5ReceivedAssets[]' data key is not valid. The value stored under this data key should be exactly 16 bytes long. Only possible valid values are: - any valid uint128 values i.e. 0x00000000000000000000000000000000 (zero), empty array, no assets received. i.e. 0x00000000000000000000000000000005 (non-zero), 5 array elements, 5 assets received. - 0x (nothing stored under this data key, equivalent to empty array)",
25
+ "params": {
26
+ "invalidValueLength": "the invalid number of bytes stored under the LSP5ReceivedAssets[] data key (MUST be exactly 16 bytes long)",
27
+ "invalidValueStored": "the invalid value stored under the LSP5ReceivedAssets[] data key"
28
+ }
29
+ }
30
+ ],
31
+ "MaxLSP10VaultsCountReached(address)": [
32
+ {
33
+ "details": "reverts when the `LSP10Vaults[]` array reaches its maximum limit (max(uint128))",
34
+ "params": {
35
+ "notRegisteredVault": "the address of the vault that could not be registered"
36
+ }
37
+ }
38
+ ],
39
+ "MaxLSP5ReceivedAssetsCountReached(address)": [
40
+ {
41
+ "details": "reverts when the `LSP5ReceivedAssets[]` array reaches its maximum limit (max(uint128))",
42
+ "params": {
43
+ "notRegisteredAsset": "the address of the asset that could not be registered"
44
+ }
45
+ }
46
+ ],
47
+ "NativeTokensNotAccepted()": [
48
+ {
49
+ "details": "reverts when `universalReceiver(...)` is called with a value different than 0"
50
+ }
51
+ ],
52
+ "ReceivedAssetsIndexSuperiorToUint128(uint256)": [
53
+ {
54
+ "details": "reverts when the received assets index is superior to uint128",
55
+ "params": {
56
+ "index": "the received assets index"
57
+ }
58
+ }
59
+ ],
60
+ "VaultIndexSuperiorToUint128(uint256)": [
61
+ {
62
+ "details": "reverts when the vault index is superior to uint128",
63
+ "params": {
64
+ "index": "the vault index"
65
+ }
66
+ }
67
+ ]
68
+ },
69
+ "kind": "dev",
70
+ "methods": {
71
+ "supportsInterface(bytes4)": {
72
+ "details": "See {IERC165-supportsInterface}."
73
+ },
74
+ "universalReceiver(bytes32,bytes)": {
75
+ "details": "Handles two cases: - Registers the address of received assets (exclusively LSP7 and LSP8) and vaults (exclusively LSP9) according to {LSP5-ReceivedAssets} and {LSP10-ReceivedVaults} respectively - Removes the address of registered assets and vaults when the full balance is sent from the LSP0ERC725Account contract Requirements: - The contract should be able to setData the LSP5 and LSP10 data Keys according to the logic of the owner of the LSP0ERC725Account. - Cannot accept native tokens"
76
+ }
77
+ },
78
+ "title": "Implementation of a UniversalReceiverDelegate for LSP0ERC725Account",
79
+ "version": 1
80
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "author": "Fabian Vogelsteller, Yamen Merhi, Jean Cavallera",
3
+ "details": "Delegate contract of the initial universal receiver",
4
+ "errors": {
5
+ "CannotRegisterEOAsAsAssets(address)": [
6
+ {
7
+ "details": "reverts when EOA calls the `universalReceiver(..)` function with an asset/vault typeId",
8
+ "params": {
9
+ "caller": "The address of the EOA"
10
+ }
11
+ }
12
+ ],
13
+ "InvalidLSP5ReceivedAssetsArrayLength(bytes,uint256)": [
14
+ {
15
+ "details": "reverts when the value stored under the 'LSP5ReceivedAssets[]' data key is not valid. The value stored under this data key should be exactly 16 bytes long. Only possible valid values are: - any valid uint128 values i.e. 0x00000000000000000000000000000000 (zero), empty array, no assets received. i.e. 0x00000000000000000000000000000005 (non-zero), 5 array elements, 5 assets received. - 0x (nothing stored under this data key, equivalent to empty array)",
16
+ "params": {
17
+ "invalidValueLength": "the invalid number of bytes stored under the LSP5ReceivedAssets[] data key (MUST be exactly 16 bytes long)",
18
+ "invalidValueStored": "the invalid value stored under the LSP5ReceivedAssets[] data key"
19
+ }
20
+ }
21
+ ],
22
+ "MaxLSP5ReceivedAssetsCountReached(address)": [
23
+ {
24
+ "details": "reverts when the `LSP5ReceivedAssets[]` array reaches its maximum limit (max(uint128))",
25
+ "params": {
26
+ "notRegisteredAsset": "the address of the asset that could not be registered"
27
+ }
28
+ }
29
+ ],
30
+ "NativeTokensNotAccepted()": [
31
+ {
32
+ "details": "reverts when `universalReceiver(...)` is called with a value different than 0"
33
+ }
34
+ ],
35
+ "ReceivedAssetsIndexSuperiorToUint128(uint256)": [
36
+ {
37
+ "details": "reverts when the received assets index is superior to uint128",
38
+ "params": {
39
+ "index": "the received assets index"
40
+ }
41
+ }
42
+ ]
43
+ },
44
+ "kind": "dev",
45
+ "methods": {
46
+ "supportsInterface(bytes4)": {
47
+ "details": "See {IERC165-supportsInterface}."
48
+ },
49
+ "universalReceiver(bytes32,bytes)": {
50
+ "details": "allows to register arrayKeys and Map of incoming assets and remove after being sent",
51
+ "params": {
52
+ "data": "The arbitrary data received with the call",
53
+ "typeId": "The hash of a specific standard or a hook"
54
+ },
55
+ "returns": {
56
+ "result": "The return value"
57
+ }
58
+ }
59
+ },
60
+ "title": "Core Implementation of contract writing the received LSP7 and LSP8 assets into your Vault using the LSP5-ReceivedAsset standard and removing the sent assets.",
61
+ "version": 1
62
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "author": "Matthew Stevens",
3
+ "details": "LSP4 extension, for compatibility with clients & tools that expect ERC20/721.",
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
+ },
21
+ "kind": "dev",
22
+ "methods": {
23
+ "getData(bytes32)": {
24
+ "params": {
25
+ "dataKey": "The key which value to retrieve"
26
+ },
27
+ "returns": {
28
+ "dataValue": "The data stored at the key"
29
+ }
30
+ },
31
+ "getDataBatch(bytes32[])": {
32
+ "params": {
33
+ "dataKeys": "The array of keys which values to retrieve"
34
+ },
35
+ "returns": {
36
+ "dataValues": "The array of data stored at multiple keys"
37
+ }
38
+ },
39
+ "name()": {
40
+ "details": "Returns the name of the token.",
41
+ "returns": {
42
+ "_0": "The name of the token"
43
+ }
44
+ },
45
+ "owner()": {
46
+ "details": "Returns the address of the current owner."
47
+ },
48
+ "renounceOwnership()": {
49
+ "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."
50
+ },
51
+ "setData(bytes32,bytes)": {
52
+ "params": {
53
+ "dataKey": "The key to retrieve stored value",
54
+ "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."
55
+ }
56
+ },
57
+ "setDataBatch(bytes32[],bytes[])": {
58
+ "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.",
59
+ "params": {
60
+ "dataKeys": "The array of data keys for values to set",
61
+ "dataValues": "The array of values to set"
62
+ }
63
+ },
64
+ "supportsInterface(bytes4)": {
65
+ "details": "See {IERC165-supportsInterface}."
66
+ },
67
+ "symbol()": {
68
+ "details": "Returns the symbol of the token, usually a shorter version of the name.",
69
+ "returns": {
70
+ "_0": "The symbol of the token"
71
+ }
72
+ },
73
+ "transferOwnership(address)": {
74
+ "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
75
+ }
76
+ },
77
+ "title": "LSP4Compatibility",
78
+ "version": 1
79
+ }
@@ -0,0 +1,84 @@
1
+ {
2
+ "author": "Matthew Stevens",
3
+ "details": "Implementation of a LSP8 compliant contract.",
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
+ },
31
+ "kind": "dev",
32
+ "methods": {
33
+ "constructor": {
34
+ "params": {
35
+ "name_": "The name of the token",
36
+ "newOwner_": "The owner of the token contract",
37
+ "symbol_": "The symbol of the token"
38
+ }
39
+ },
40
+ "getData(bytes32)": {
41
+ "params": {
42
+ "dataKey": "The key which value to retrieve"
43
+ },
44
+ "returns": {
45
+ "dataValue": "The data stored at the key"
46
+ }
47
+ },
48
+ "getDataBatch(bytes32[])": {
49
+ "params": {
50
+ "dataKeys": "The array of keys which values to retrieve"
51
+ },
52
+ "returns": {
53
+ "dataValues": "The array of data stored at multiple keys"
54
+ }
55
+ },
56
+ "owner()": {
57
+ "details": "Returns the address of the current owner."
58
+ },
59
+ "renounceOwnership()": {
60
+ "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."
61
+ },
62
+ "setData(bytes32,bytes)": {
63
+ "params": {
64
+ "dataKey": "The key to retrieve stored value",
65
+ "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."
66
+ }
67
+ },
68
+ "setDataBatch(bytes32[],bytes[])": {
69
+ "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.",
70
+ "params": {
71
+ "dataKeys": "The array of data keys for values to set",
72
+ "dataValues": "The array of values to set"
73
+ }
74
+ },
75
+ "supportsInterface(bytes4)": {
76
+ "details": "See {IERC165-supportsInterface}."
77
+ },
78
+ "transferOwnership(address)": {
79
+ "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
80
+ }
81
+ },
82
+ "title": "LSP4DigitalAssetMetadata",
83
+ "version": 1
84
+ }