@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,203 @@
1
+ {
2
+ "author": "Fabian Vogelsteller <fabian@lukso.network>, Jean Cavallera (CJ42)",
3
+ "details": "A smart contract account including basic functionalities such as: - Detecting supported standards using ERC165 https://eips.ethereum.org/EIPS/eip-165 - Executing several operation on other addresses including creating contracts using ERC725X https://github.com/ERC725Alliance/ERC725/blob/develop/docs/ERC-725.md - Storing data in a generic way using ERC725Y https://github.com/ERC725Alliance/ERC725/blob/develop/docs/ERC-725.md - Validating signatures using ERC1271 https://eips.ethereum.org/EIPS/eip-1271 - Receiving notification and react on them using LSP1 https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-1-UniversalReceiver.md - Secure ownership management using LSP14 https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-14-Ownable2Step.md - Extending the account with new functions and interfaceIds of future standards using LSP17 https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-17-ContractExtension.md - Verifying calls on the owner to allow unified and standard interaction with the account using LSP20 https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-20-CallVerification.md",
4
+ "errors": {
5
+ "CannotTransferOwnershipToSelf()": [
6
+ {
7
+ "details": "reverts when trying to transfer ownership to the address(this)"
8
+ }
9
+ ],
10
+ "ERC725X_ContractDeploymentFailed()": [
11
+ {
12
+ "details": "reverts when contract deployment via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)` failed. whether using operation type 1 (CREATE) or 2 (CREATE2)."
13
+ }
14
+ ],
15
+ "ERC725X_CreateOperationsRequireEmptyRecipientAddress()": [
16
+ {
17
+ "details": "reverts when passing a `to` address while deploying a contract va `ERC725X.execute(...)`/`ERC725X.executeBatch(...)` whether using operation type 1 (CREATE) or 2 (CREATE2)."
18
+ }
19
+ ],
20
+ "ERC725X_ExecuteParametersEmptyArray()": [
21
+ {
22
+ "details": "reverts when one of the array parameter provided to `executeBatch(uint256[],address[],uint256[],bytes[]) is an empty array"
23
+ }
24
+ ],
25
+ "ERC725X_ExecuteParametersLengthMismatch()": [
26
+ {
27
+ "details": "reverts when there is not the same number of operation, to addresses, value, and data."
28
+ }
29
+ ],
30
+ "ERC725X_InsufficientBalance(uint256,uint256)": [
31
+ {
32
+ "details": "reverts when trying to send more native tokens `value` than available in current `balance`.",
33
+ "params": {
34
+ "balance": "the balance of the ERC725X contract.",
35
+ "value": "the amount of native tokens sent via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)`."
36
+ }
37
+ }
38
+ ],
39
+ "ERC725X_MsgValueDisallowedInDelegateCall()": [
40
+ {
41
+ "details": "the `value` parameter (= sending native tokens) is not allowed when making a delegatecall via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)` because msg.value is persisting."
42
+ }
43
+ ],
44
+ "ERC725X_MsgValueDisallowedInStaticCall()": [
45
+ {
46
+ "details": "the `value` parameter (= sending native tokens) is not allowed when making a staticcall via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)` because sending native tokens is a state changing operation."
47
+ }
48
+ ],
49
+ "ERC725X_NoContractBytecodeProvided()": [
50
+ {
51
+ "details": "reverts when no contract bytecode was provided as parameter when trying to deploy a contract via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)`, whether using operation type 1 (CREATE) or 2 (CREATE2)."
52
+ }
53
+ ],
54
+ "ERC725X_UnknownOperationType(uint256)": [
55
+ {
56
+ "details": "reverts when the `operationTypeProvided` is none of the default operation types available. (CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4)"
57
+ }
58
+ ],
59
+ "ERC725Y_DataKeysValuesLengthMismatch()": [
60
+ {
61
+ "details": "reverts when there is not the same number of elements in the lists of data keys and data values when calling setDataBatch."
62
+ }
63
+ ],
64
+ "LSP20CallingVerifierFailed(bool)": [
65
+ {
66
+ "details": "reverts when the call to the owner fail with no revert reason",
67
+ "params": {
68
+ "postCall": "True if the execution call was done, False otherwise"
69
+ }
70
+ }
71
+ ],
72
+ "LSP20InvalidMagicValue(bool,bytes)": [
73
+ {
74
+ "details": "reverts when the call to the owner does not return the magic value",
75
+ "params": {
76
+ "postCall": "The data returned by the call to the logic verifier"
77
+ }
78
+ }
79
+ ],
80
+ "NoExtensionFoundForFunctionSelector(bytes4)": [
81
+ {
82
+ "details": "reverts when there is no extension for the function selector being called with"
83
+ }
84
+ ],
85
+ "NotInRenounceOwnershipInterval(uint256,uint256)": [
86
+ {
87
+ "details": "reverts when trying to renounce ownership before the initial confirmation delay"
88
+ }
89
+ ]
90
+ },
91
+ "kind": "dev",
92
+ "methods": {
93
+ "acceptOwnership()": {
94
+ "details": "Transfer ownership of the contract from the current `owner()` to the `pendingOwner()`. Once this function is called: - the current `owner()` will loose access to the functions restricted to the `owner()` only. - the `pendingOwner()` will gain access to the functions restricted to the `owner()` only. Requirements: - MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be keccak256('LSP0OwnershipTransferred_SenderNotification'). - When notifying the new owner via LSP1, the typeId used MUST be keccak256('LSP0OwnershipTransferred_RecipientNotification')."
95
+ },
96
+ "batchCalls(bytes[])": {
97
+ "details": "Allows a caller to batch different function calls in one call. Perform a delegatecall on self, to call different functions with preserving the context It is not possible to send value along the functions call due to the use of delegatecall.",
98
+ "params": {
99
+ "data": "An array of ABI encoded function calls to be called on the contract."
100
+ },
101
+ "returns": {
102
+ "results": "An array of values returned by the executed functions."
103
+ }
104
+ },
105
+ "constructor": {
106
+ "details": "initialize (= lock) base implementation contract on deployment"
107
+ },
108
+ "execute(uint256,address,uint256,bytes)": {
109
+ "details": "Executes any call on other addresses.",
110
+ "params": {
111
+ "data": "The call data to execute on `target`, or the bytecode of the contract to deploy Requirements: - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is {STATICCALL} or {DELEGATECALL}, `value` SHOULD be 0. - `target` SHOULD be address(0) when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to LSP20 - CallVerification specification Emits a {Executed} event, when a call is executed under `operationType` 0, 3 and 4 Emits a {ContractCreated} event, when a contract is created under `operationType` 1 and 2 Emits a {ValueReceived} event when receiving native tokens.",
112
+ "operationType": "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
113
+ "target": "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (operation 1 and 2)",
114
+ "value": "The amount of native tokens to transfer (in Wei)."
115
+ }
116
+ },
117
+ "executeBatch(uint256[],address[],uint256[],bytes[])": {
118
+ "details": "Generic batch executor function that executes any call on other addresses",
119
+ "params": {
120
+ "datas": "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy Requirements: - The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is {STATICCALL} or {DELEGATECALL}, `value` SHOULD be 0. - `target` SHOULD be address(0) when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to LSP20 - CallVerification specification Emits a {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) Emits a {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) Emits a {ValueReceived} event when receiving native tokens.",
121
+ "operationsType": "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
122
+ "targets": "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
123
+ "values": "The list of native token amounts to transfer (in Wei)"
124
+ }
125
+ },
126
+ "getData(bytes32)": {
127
+ "params": {
128
+ "dataKey": "The key which value to retrieve"
129
+ },
130
+ "returns": {
131
+ "dataValue": "The data stored at the key"
132
+ }
133
+ },
134
+ "getDataBatch(bytes32[])": {
135
+ "params": {
136
+ "dataKeys": "The array of keys which values to retrieve"
137
+ },
138
+ "returns": {
139
+ "dataValues": "The array of data stored at multiple keys"
140
+ }
141
+ },
142
+ "initialize(address)": {
143
+ "details": "Sets the owner of the contract",
144
+ "params": {
145
+ "newOwner": "the owner of the contract"
146
+ }
147
+ },
148
+ "isValidSignature(bytes32,bytes)": {
149
+ "details": "Handles two cases: - If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue if the address recovered is the same as the owner, indicating that it was a valid signature. - If the address is different, it returns the fail value indicating that the signature is not valid. - If the owner is a smart contract, it forwards the call of {isValidSignature} to the owner contract: - If the contract fails or returns the fail value, the {isValidSignature} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature} on the owner returned the magicValue, the {isValidSignature} on the account returns the magicValue, indicating that it's a valid signature.",
150
+ "params": {
151
+ "dataHash": "The hash of the data to be validated.",
152
+ "signature": "A signature that can validate the previous parameter (Hash)."
153
+ },
154
+ "returns": {
155
+ "magicValue": "A bytes4 value that indicates if the signature is valid or not."
156
+ }
157
+ },
158
+ "owner()": {
159
+ "details": "Returns the address of the current owner."
160
+ },
161
+ "pendingOwner()": {
162
+ "details": "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
163
+ },
164
+ "renounceOwnership()": {
165
+ "details": "Renounce ownership of the contract in a 2-step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to LSP20 - CallVerification specification WARNING: once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable."
166
+ },
167
+ "setData(bytes32,bytes)": {
168
+ "details": "Sets singular data for a given `dataKey`",
169
+ "params": {
170
+ "dataKey": "The key to retrieve stored value",
171
+ "dataValue": "The value to set Requirements: - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to LSP20 - CallVerification specification Emits a {ValueReceived} event when receiving native tokens. Emits a {DataChanged} event."
172
+ }
173
+ },
174
+ "setDataBatch(bytes32[],bytes[])": {
175
+ "details": "Sets array of data for multiple given `dataKeys`",
176
+ "params": {
177
+ "dataKeys": "The array of data keys for values to set",
178
+ "dataValues": "The array of values to set Requirements: - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to LSP20 - CallVerification specification Emits a {ValueReceived} event when receiving native tokens. Emits a {DataChanged} event. (on each iteration of setting data)"
179
+ }
180
+ },
181
+ "supportsInterface(bytes4)": {
182
+ "details": "Returns true if this contract implements the interface defined by `interfaceId`. If the contract doesn't support the `interfaceId`, it forwards the call to the `supportsInterface` extension according to LSP17, and checks if the extension implements the interface defined by `interfaceId`."
183
+ },
184
+ "transferOwnership(address)": {
185
+ "details": "Sets the pending owner address as an address that should call {acceptOwnership} in order to complete the ownership transfer of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver} on the pending owner if it's an address that supports LSP1.",
186
+ "params": {
187
+ "_pendingOwner": "The address of the new pending owner. Requirements: - MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to LSP20 - CallVerification specification. - When notifying the new owner via LSP1, the typeId used MUST be keccak256('LSP0OwnershipTransferStarted'). - pending owner cannot accept ownership in the same tx via the LSP1 hook."
188
+ }
189
+ },
190
+ "universalReceiver(bytes32,bytes)": {
191
+ "details": "The function performs the following steps: - Emits {ValueReceived} when receiving native tokens. - Query the ERC725Y storage with the data key {_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY}. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of {msg.sender} and 32 bytes of {msg.value}. If not, continue the execution of the function. - Query the ERC725Y storage with the data key {_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY + <bytes32 typeId>}. (Check {LSP2-ERC725YJSONSchema} for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of {msg.sender} and 32 bytes of {msg.value}. If not, continue the execution of the function. - Emits a {UniversalReceiver} event.",
192
+ "params": {
193
+ "receivedData": "The data received.",
194
+ "typeId": "The type of call received."
195
+ },
196
+ "returns": {
197
+ "returnedValues": "The ABI encoded return value of the LSP1UniversalReceiverDelegate call and the LSP1TypeIdDelegate call."
198
+ }
199
+ }
200
+ },
201
+ "title": "Deployable Proxy Implementation of LSP0-ERC725Account Standard https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-0-ERC725Account.md",
202
+ "version": 1
203
+ }
@@ -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
+ "constructor": {
64
+ "params": {
65
+ "_owner": "The owner of the LSP11 contract",
66
+ "target_": "The address of the ER725 contract to recover"
67
+ }
68
+ },
69
+ "getGuardianChoice(address)": {
70
+ "details": "Returns the address of a controller that a `guardian` selected for in order to recover the target",
71
+ "params": {
72
+ "guardian": "the address of a guardian to query his selection"
73
+ },
74
+ "returns": {
75
+ "_0": "the address that `guardian` selected"
76
+ }
77
+ },
78
+ "getGuardians()": {
79
+ "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"
80
+ },
81
+ "getGuardiansThreshold()": {
82
+ "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"
83
+ },
84
+ "getRecoveryCounter()": {
85
+ "details": "Returns the current recovery counter When a recovery process is successfully finished the recovery counter is incremented"
86
+ },
87
+ "getRecoverySecretHash()": {
88
+ "details": "Returns the recovery secret hash"
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": "Implementation of LSP11 - Basic Social Recovery standard",
145
+ "version": 1
146
+ }
@@ -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,51 @@
1
+ {
2
+ "details": "UniversalFactory contract can be used to deploy normal or minimal proxy contracts (EIP-1167) using CREATE2. This gives the ability to deploy the same contract at the same address on different chains. If the contract has a constructor, the arguments will be part of the bytecode If the contract has an `initialize` function, the parameters of this function will be included in the salt to ensure that the parameters of the contract should be the same on each chain. When initializeCallData or the constructor includes non-crosschain parameters, the deployed contract will not be recreated at the same address on another network, thus defeating the purpose of LSP16UniversalFactory. Therefore, the initializeCallData and the constructor must not include any network-specific parameters, such as a local non-crosschain token contract address, chain-id, etc .. 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. This contract should be deployed using Nick's Method. More information: https://weka.medium.com/how-to-send-ether-to-11-440-people-187e332566b7",
3
+ "errors": {
4
+ "CannotInitializeContract()": [
5
+ {
6
+ "details": "reverts with this error when there is no revert reason bubbled up by the target contract when initializing"
7
+ }
8
+ ],
9
+ "InvalidMsgValueDistribution()": [
10
+ {
11
+ "details": "reverts when msg.value sent to {deployCreate2Init} function is not equal to the sum of the `initializeCalldataMsgValue` and `constructorMsgValue`"
12
+ }
13
+ ]
14
+ },
15
+ "events": {
16
+ "ContractCreated(address,bytes32,bool,bytes)": {
17
+ "details": "Emitted whenever a contract is created",
18
+ "params": {
19
+ "contractCreated": "The address of the contract created",
20
+ "initializable": "The Boolean that specifies if the contract is a initializable or not",
21
+ "initializeCalldata": "The bytes provided as initializeCalldata",
22
+ "providedSalt": "The bytes32 salt provided by the deployer"
23
+ }
24
+ }
25
+ },
26
+ "kind": "dev",
27
+ "methods": {
28
+ "calculateAddress(bytes32,bytes32,bool,bytes)": {
29
+ "details": "Returns the address where a contract will be stored if deployed via `CREATE2`. The address is constructed using the parameters below. Any change in one of them will result in a new destination address."
30
+ },
31
+ "calculateProxyAddress(address,bytes32,bool,bytes)": {
32
+ "details": "Returns the address of an EIP1167 proxy contract. The address is constructed using the parameters below. Any change in one of them will result in a new destination address."
33
+ },
34
+ "deployCreate2(bytes,bytes32)": {
35
+ "details": "Deploys a contract using `CREATE2`. The address where the contract will be deployed can be known in advance via {calculateAddress}. The salt is a hash of the `providedSalt` together with an empty byte, to prevent mimicing the `deployCreate2Init()` and other functions. This method allow users to have the same contracts at the same address across different chains with the same parameters. Using the same `byteCode` and salt multiple time will revert, since the contract cannot be deployed twice at the same address."
36
+ },
37
+ "deployCreate2Init(bytes,bytes32,bytes,uint256,uint256)": {
38
+ "details": "Deploys a contract using `CREATE2`. The address where the contract will be deployed can be known in advance via {calculateAddress}. The salt is a hash of the `providedSalt` and and the `initializeCallData`. This method allow users to have the same contracts at the same address across different chains with the same parameters. The msg.value is split according to the parameters of the function The msg.value sent to this contract MUST be the sum of the two parameters: `constructorMsgValue` and `initializeCalldataMsgValue` Using the same `byteCode` and salt multiple time will revert, since the contract cannot be deployed twice at the same address."
39
+ },
40
+ "deployCreate2Proxy(address,bytes32)": {
41
+ "details": "Deploys and returns the address of a clone that mimics the behaviour of `baseContract`. The address where the contract will be deployed can be known in advance via {calculateProxyAddress}. This function uses the CREATE2 opcode and a salt to deterministically deploy the clone. The salt is a hash of the `providedSalt` toegther with an empty byte, to prevent mimicing the `deployCreate2ProxyInit()` and other functions. This method allow users to have the same contracts at the same address across different chains with the same parameters. Using the same `baseContract` and salt multiple time will revert, since the clones cannot be deployed twice at the same address."
42
+ },
43
+ "deployCreate2ProxyInit(address,bytes32,bytes)": {
44
+ "details": "Deploys and returns the address of a clone that mimics the behaviour of `baseContract`. The address where the contract will be deployed can be known in advance via {calculateProxyAddress}. This function uses the CREATE2 opcode and a salt to deterministically deploy the clone. The salt is a hash of the `providedSalt` and and the `initializeCallData`. This method allow users to have the same contracts at the same address across different chains with the same parameters. Using the same `baseContract` and salt multiple time will revert, since the clones cannot be deployed twice at the same address."
45
+ },
46
+ "generateSalt(bool,bytes,bytes32)": {
47
+ "details": "Calculates the salt used to deploy the contract by hashing (Keccak256) the following parameters as packed encoded respectively: an initializable boolean, the initializeCallData if and only if the contract is initializable, and the salt provided by the deployer. The initializable boolean was added before the provided arguments as if it was not used, and we are deploying proxies on another chain, people can use the `deployCreate2(..)` function to deploy the same bytecode + the same salt to get the same address of the contract on another chain without applying the effect of initializing."
48
+ }
49
+ },
50
+ "version": 1
51
+ }
@@ -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
+ }