@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,200 @@
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": "Set `initialOwner` as the contract owner. The `constructor` also allows funding the contract on deployment. Emitted Events: - ValueReceived: when the contract is funded on deployment.",
107
+ "params": {
108
+ "initialOwner": "The owner of the contract"
109
+ }
110
+ },
111
+ "execute(uint256,address,uint256,bytes)": {
112
+ "details": "Executes any call on other addresses.",
113
+ "params": {
114
+ "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.",
115
+ "operationType": "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
116
+ "target": "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (operation 1 and 2)",
117
+ "value": "The amount of native tokens to transfer (in Wei)."
118
+ }
119
+ },
120
+ "executeBatch(uint256[],address[],uint256[],bytes[])": {
121
+ "details": "Generic batch executor function that executes any call on other addresses",
122
+ "params": {
123
+ "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.",
124
+ "operationsType": "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
125
+ "targets": "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
126
+ "values": "The list of native token amounts to transfer (in Wei)"
127
+ }
128
+ },
129
+ "getData(bytes32)": {
130
+ "params": {
131
+ "dataKey": "The key which value to retrieve"
132
+ },
133
+ "returns": {
134
+ "dataValue": "The data stored at the key"
135
+ }
136
+ },
137
+ "getDataBatch(bytes32[])": {
138
+ "params": {
139
+ "dataKeys": "The array of keys which values to retrieve"
140
+ },
141
+ "returns": {
142
+ "dataValues": "The array of data stored at multiple keys"
143
+ }
144
+ },
145
+ "isValidSignature(bytes32,bytes)": {
146
+ "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.",
147
+ "params": {
148
+ "dataHash": "The hash of the data to be validated.",
149
+ "signature": "A signature that can validate the previous parameter (Hash)."
150
+ },
151
+ "returns": {
152
+ "magicValue": "A bytes4 value that indicates if the signature is valid or not."
153
+ }
154
+ },
155
+ "owner()": {
156
+ "details": "Returns the address of the current owner."
157
+ },
158
+ "pendingOwner()": {
159
+ "details": "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
160
+ },
161
+ "renounceOwnership()": {
162
+ "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."
163
+ },
164
+ "setData(bytes32,bytes)": {
165
+ "details": "Sets singular data for a given `dataKey`",
166
+ "params": {
167
+ "dataKey": "The key to retrieve stored value",
168
+ "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."
169
+ }
170
+ },
171
+ "setDataBatch(bytes32[],bytes[])": {
172
+ "details": "Sets array of data for multiple given `dataKeys`",
173
+ "params": {
174
+ "dataKeys": "The array of data keys for values to set",
175
+ "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)"
176
+ }
177
+ },
178
+ "supportsInterface(bytes4)": {
179
+ "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`."
180
+ },
181
+ "transferOwnership(address)": {
182
+ "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.",
183
+ "params": {
184
+ "_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."
185
+ }
186
+ },
187
+ "universalReceiver(bytes32,bytes)": {
188
+ "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.",
189
+ "params": {
190
+ "receivedData": "The data received.",
191
+ "typeId": "The type of call received."
192
+ },
193
+ "returns": {
194
+ "returnedValues": "The ABI encoded return value of the LSP1UniversalReceiverDelegate call and the LSP1TypeIdDelegate call."
195
+ }
196
+ }
197
+ },
198
+ "title": "Deployable Implementation of LSP0-ERC725Account Standard https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-0-ERC725Account.md",
199
+ "version": 1
200
+ }
@@ -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": "Locks the base contract on deployment, so that it cannot be initialized, owned and controlled by anyone after it has been deployed. This is intended so that the sole purpose of this contract is to be used as a base contract behind a proxy."
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": "Set `initialOwner` as the contract owner. The `initialOwner` will then be allowed to call protected functions marked with the `onlyOwner` modifier. The `initialize(address)` function also allows funding the contract on initialization. Emitted Events: - ValueReceived: when the contract is funded on initialization.",
144
+ "params": {
145
+ "initialOwner": "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
+ }