@lukso/lsp-smart-contracts 0.14.0 → 0.15.0-rc.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.
- package/README.md +2 -192
- package/artifacts/LSP0ERC725Account.json +3 -3
- package/artifacts/LSP0ERC725AccountInit.json +3 -3
- package/artifacts/LSP11BasicSocialRecovery.json +2 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +3 -3
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +3 -3
- package/artifacts/LSP23LinkedContractsFactory.json +3 -3
- package/artifacts/LSP4DigitalAssetMetadata.json +1 -1
- package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +1 -1
- package/artifacts/LSP6KeyManager.json +3 -3
- package/artifacts/LSP6KeyManagerInit.json +3 -3
- package/artifacts/LSP7CappedSupply.json +53 -6
- package/artifacts/LSP7CappedSupplyInitAbstract.json +53 -6
- package/artifacts/LSP7DigitalAsset.json +52 -5
- package/artifacts/LSP7DigitalAssetInitAbstract.json +52 -5
- package/artifacts/LSP7Mintable.json +54 -7
- package/artifacts/LSP7MintableInit.json +54 -7
- package/artifacts/LSP8CappedSupply.json +43 -6
- package/artifacts/LSP8CappedSupplyInitAbstract.json +43 -6
- package/artifacts/LSP8IdentifiableDigitalAsset.json +43 -6
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +43 -6
- package/artifacts/LSP8Mintable.json +45 -8
- package/artifacts/LSP8MintableInit.json +45 -8
- package/artifacts/LSP9Vault.json +3 -3
- package/artifacts/LSP9VaultInit.json +3 -3
- package/artifacts/UniversalProfile.json +3 -3
- package/artifacts/UniversalProfileInit.json +3 -3
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +1 -17
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -23
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +1 -53
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +1 -873
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +1 -47
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +1 -49
- package/contracts/LSP10ReceivedVaults/LSP10Constants.sol +1 -7
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +1 -208
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +4 -2
- package/contracts/LSP12IssuedAssets/LSP12Constants.sol +4 -0
- package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +1 -75
- package/contracts/LSP14Ownable2Step/LSP14Constants.sol +1 -12
- package/contracts/LSP14Ownable2Step/LSP14Errors.sol +1 -29
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +1 -212
- package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +1 -417
- package/contracts/LSP17ContractExtension/LSP17Constants.sol +1 -14
- package/contracts/LSP17ContractExtension/LSP17Errors.sol +1 -14
- package/contracts/LSP17ContractExtension/LSP17Extendable.sol +1 -117
- package/contracts/LSP17ContractExtension/LSP17Extension.sol +1 -55
- package/contracts/LSP17ContractExtension/LSP17Utils.sol +1 -16
- package/contracts/LSP17Extensions/Extension4337.sol +1 -123
- package/contracts/LSP17Extensions/OnERC721ReceivedExtension.sol +1 -13
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +1 -37
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiverDelegate.sol +1 -21
- package/contracts/LSP1UniversalReceiver/LSP1Constants.sol +1 -11
- package/contracts/LSP1UniversalReceiver/LSP1Errors.sol +1 -7
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +1 -292
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +1 -217
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +1 -84
- package/contracts/LSP20CallVerification/ILSP20CallVerifier.sol +1 -36
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +1 -117
- package/contracts/LSP20CallVerification/LSP20Constants.sol +1 -14
- package/contracts/LSP20CallVerification/LSP20Errors.sol +1 -18
- package/contracts/LSP23LinkedContractsFactory/ILSP23LinkedContractsFactory.sol +1 -189
- package/contracts/LSP23LinkedContractsFactory/IPostDeploymentModule.sol +1 -15
- package/contracts/LSP23LinkedContractsFactory/LSP23Errors.sol +1 -21
- package/contracts/LSP23LinkedContractsFactory/LSP23LinkedContractsFactory.sol +1 -393
- package/contracts/LSP23LinkedContractsFactory/modules/README.md +23 -0
- package/contracts/LSP23LinkedContractsFactory/modules/UniversalProfileInitPostDeploymentModule.sol +1 -60
- package/contracts/LSP23LinkedContractsFactory/modules/UniversalProfilePostDeploymentModule.sol +1 -58
- package/contracts/LSP25ExecuteRelayCall/ILSP25ExecuteRelayCall.sol +1 -65
- package/contracts/LSP25ExecuteRelayCall/LSP25Constants.sol +1 -5
- package/contracts/LSP25ExecuteRelayCall/LSP25Errors.sol +1 -14
- package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +1 -141
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +1 -445
- package/contracts/LSP3ProfileMetadata/LSP3Constants.sol +1 -8
- package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +1 -30
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +1 -59
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataCore.sol +1 -44
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +1 -65
- package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +1 -20
- package/contracts/LSP5ReceivedAssets/LSP5Constants.sol +1 -7
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +1 -206
- package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +1 -60
- package/contracts/LSP6KeyManager/LSP6Constants.sol +1 -61
- package/contracts/LSP6KeyManager/LSP6Errors.sol +1 -222
- package/contracts/LSP6KeyManager/LSP6KeyManager.sol +1 -23
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +1 -694
- package/contracts/LSP6KeyManager/LSP6KeyManagerInit.sol +1 -29
- package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +1 -21
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +1 -411
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteRelayCallModule.sol +1 -24
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6OwnershipModule.sol +1 -27
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +1 -848
- package/contracts/LSP6KeyManager/LSP6Utils.sol +1 -293
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +1 -302
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -13
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +1 -193
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +1 -728
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +1 -189
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +1 -87
- package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +1 -23
- package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +1 -24
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +1 -80
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +1 -83
- package/contracts/LSP7DigitalAsset/presets/ILSP7Mintable.sol +1 -29
- package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +1 -50
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +1 -41
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +1 -54
- package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +1 -325
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +1 -38
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +1 -102
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +1 -236
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +1 -787
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +1 -243
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +1 -27
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +1 -21
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +1 -82
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +1 -85
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +1 -66
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +1 -61
- package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +1 -30
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +1 -57
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +1 -40
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +1 -59
- package/contracts/LSP9Vault/ILSP9Vault.sol +1 -16
- package/contracts/LSP9Vault/LSP9Constants.sol +1 -26
- package/contracts/LSP9Vault/LSP9Errors.sol +1 -6
- package/contracts/LSP9Vault/LSP9Vault.sol +1 -63
- package/contracts/LSP9Vault/LSP9VaultCore.sol +1 -684
- package/contracts/LSP9Vault/LSP9VaultInit.sol +1 -33
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +1 -65
- package/contracts/UniversalProfile.sol +1 -37
- package/contracts/UniversalProfileInit.sol +1 -39
- package/contracts/UniversalProfileInitAbstract.sol +1 -44
- package/dist/constants.cjs +75 -0
- package/dist/constants.d.cts +121 -0
- package/dist/constants.d.mts +121 -0
- package/dist/constants.d.ts +107 -40105
- package/dist/constants.mjs +70 -0
- package/package.json +58 -116
- package/types/@lukso/lsp0-contracts/contracts/LSP0ERC725Account.ts +694 -0
- package/types/@lukso/lsp0-contracts/contracts/LSP0ERC725AccountInit.ts +740 -0
- package/types/@lukso/lsp1delegate-contracts/contracts/LSP1UniversalReceiverDelegateUP.ts +139 -0
- package/types/@lukso/lsp1delegate-contracts/contracts/LSP1UniversalReceiverDelegateVault.ts +139 -0
- package/types/@lukso/lsp23-contracts/contracts/LSP23LinkedContractsFactory.ts +448 -0
- package/types/@lukso/lsp4-contracts/contracts/LSP4DigitalAssetMetadata.ts +274 -0
- package/types/@lukso/lsp4-contracts/contracts/LSP4DigitalAssetMetadataInitAbstract.ts +309 -0
- package/types/@lukso/lsp6-contracts/contracts/LSP6KeyManager.ts +355 -0
- package/types/@lukso/lsp6-contracts/contracts/LSP6KeyManagerInit.ts +398 -0
- package/types/@lukso/lsp7-contracts/contracts/LSP7DigitalAsset.ts +698 -0
- package/types/@lukso/lsp7-contracts/contracts/LSP7DigitalAssetInitAbstract.ts +729 -0
- package/types/@lukso/lsp7-contracts/contracts/extensions/LSP7CappedSupply.ts +712 -0
- package/types/@lukso/lsp7-contracts/contracts/extensions/LSP7CappedSupplyInitAbstract.ts +743 -0
- package/types/@lukso/lsp7-contracts/contracts/presets/LSP7Mintable.ts +717 -0
- package/types/@lukso/lsp7-contracts/contracts/presets/LSP7MintableInit.ts +779 -0
- package/types/@lukso/lsp8-contracts/contracts/LSP8IdentifiableDigitalAsset.ts +778 -0
- package/types/@lukso/lsp8-contracts/contracts/LSP8IdentifiableDigitalAssetInitAbstract.ts +813 -0
- package/types/@lukso/lsp8-contracts/contracts/extensions/LSP8CappedSupply.ts +792 -0
- package/types/@lukso/lsp8-contracts/contracts/extensions/LSP8CappedSupplyInitAbstract.ts +824 -0
- package/types/@lukso/lsp8-contracts/contracts/presets/LSP8Mintable.ts +797 -0
- package/types/@lukso/lsp8-contracts/contracts/presets/LSP8MintableInit.ts +860 -0
- package/types/@lukso/lsp9-contracts/contracts/LSP9Vault.ts +672 -0
- package/types/@lukso/lsp9-contracts/contracts/LSP9VaultInit.ts +714 -0
- package/types/@lukso/universalprofile-contracts/contracts/UniversalProfile.ts +694 -0
- package/types/@lukso/universalprofile-contracts/contracts/UniversalProfileInit.ts +740 -0
- package/types/common.ts +131 -0
- package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.ts +596 -0
- package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.ts +646 -0
- package/types/index.ts +18446 -0
- package/LICENSE +0 -201
- package/artifacts/Create2Factory.json +0 -107
- package/artifacts/LSP16UniversalFactory.json +0 -271
- package/artifacts/LSP7CompatibleERC20.json +0 -935
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +0 -948
- package/artifacts/LSP7CompatibleERC20Mintable.json +0 -989
- package/artifacts/LSP7CompatibleERC20MintableInit.json +0 -1009
- package/artifacts/LSP8CompatibleERC721.json +0 -1191
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +0 -1204
- package/artifacts/LSP8CompatibleERC721Mintable.json +0 -1261
- package/artifacts/LSP8CompatibleERC721MintableInit.json +0 -1281
- package/artifacts/UniversalReceiverAddressStore.json +0 -209
- package/contracts/Factories/Create2Factory.sol +0 -88
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +0 -260
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +0 -273
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +0 -37
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +0 -44
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +0 -43
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +0 -512
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +0 -514
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +0 -54
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +0 -47
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +0 -52
- package/contracts/Legacy/Registries/AddressRegistry.sol +0 -52
- package/contracts/Legacy/Registries/AddressRegistryRequiresERC725.sol +0 -37
- package/contracts/Legacy/UniversalReceiverAddressStore.sol +0 -64
- package/contracts/Version.sol +0 -17
- package/devdocs/Create2Factory.json +0 -16
- package/devdocs/LSP0ERC725Account.json +0 -260
- package/devdocs/LSP0ERC725AccountInit.json +0 -263
- package/devdocs/LSP11BasicSocialRecovery.json +0 -159
- package/devdocs/LSP11BasicSocialRecoveryInit.json +0 -159
- package/devdocs/LSP16UniversalFactory.json +0 -116
- package/devdocs/LSP1UniversalReceiverDelegateUP.json +0 -34
- package/devdocs/LSP1UniversalReceiverDelegateVault.json +0 -33
- package/devdocs/LSP23LinkedContractsFactory.json +0 -81
- package/devdocs/LSP4DigitalAssetMetadata.json +0 -112
- package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +0 -104
- package/devdocs/LSP6KeyManager.json +0 -305
- package/devdocs/LSP6KeyManagerInit.json +0 -308
- package/devdocs/LSP7CappedSupply.json +0 -306
- package/devdocs/LSP7CappedSupplyInitAbstract.json +0 -299
- package/devdocs/LSP7CompatibleERC20.json +0 -346
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +0 -338
- package/devdocs/LSP7CompatibleERC20Mintable.json +0 -349
- package/devdocs/LSP7CompatibleERC20MintableInit.json +0 -352
- package/devdocs/LSP7DigitalAsset.json +0 -294
- package/devdocs/LSP7DigitalAssetInitAbstract.json +0 -285
- package/devdocs/LSP7Mintable.json +0 -296
- package/devdocs/LSP7MintableInit.json +0 -298
- package/devdocs/LSP8CappedSupply.json +0 -356
- package/devdocs/LSP8CappedSupplyInitAbstract.json +0 -349
- package/devdocs/LSP8CompatibleERC721.json +0 -437
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +0 -428
- package/devdocs/LSP8CompatibleERC721Mintable.json +0 -446
- package/devdocs/LSP8CompatibleERC721MintableInit.json +0 -449
- package/devdocs/LSP8IdentifiableDigitalAsset.json +0 -346
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -335
- package/devdocs/LSP8Mintable.json +0 -356
- package/devdocs/LSP8MintableInit.json +0 -359
- package/devdocs/LSP9Vault.json +0 -236
- package/devdocs/LSP9VaultInit.json +0 -239
- package/devdocs/UniversalProfile.json +0 -260
- package/devdocs/UniversalProfileInit.json +0 -263
- package/devdocs/UniversalReceiverAddressStore.json +0 -9
- package/dist/constants.cjs.js +0 -40758
- package/dist/constants.es.js +0 -40737
- package/userdocs/Create2Factory.json +0 -5
- package/userdocs/LSP0ERC725Account.json +0 -91
- package/userdocs/LSP0ERC725AccountInit.json +0 -94
- package/userdocs/LSP11BasicSocialRecovery.json +0 -29
- package/userdocs/LSP11BasicSocialRecoveryInit.json +0 -29
- package/userdocs/LSP16UniversalFactory.json +0 -30
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +0 -19
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +0 -19
- package/userdocs/LSP23LinkedContractsFactory.json +0 -29
- package/userdocs/LSP4DigitalAssetMetadata.json +0 -26
- package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +0 -23
- package/userdocs/LSP6KeyManager.json +0 -154
- package/userdocs/LSP6KeyManagerInit.json +0 -157
- package/userdocs/LSP7CappedSupply.json +0 -60
- package/userdocs/LSP7CappedSupplyInitAbstract.json +0 -57
- package/userdocs/LSP7CompatibleERC20.json +0 -47
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +0 -44
- package/userdocs/LSP7CompatibleERC20Mintable.json +0 -47
- package/userdocs/LSP7CompatibleERC20MintableInit.json +0 -47
- package/userdocs/LSP7DigitalAsset.json +0 -47
- package/userdocs/LSP7DigitalAssetInitAbstract.json +0 -44
- package/userdocs/LSP7Mintable.json +0 -47
- package/userdocs/LSP7MintableInit.json +0 -47
- package/userdocs/LSP8CappedSupply.json +0 -66
- package/userdocs/LSP8CappedSupplyInitAbstract.json +0 -63
- package/userdocs/LSP8CompatibleERC721.json +0 -80
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +0 -77
- package/userdocs/LSP8CompatibleERC721Mintable.json +0 -83
- package/userdocs/LSP8CompatibleERC721MintableInit.json +0 -83
- package/userdocs/LSP8IdentifiableDigitalAsset.json +0 -53
- package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -50
- package/userdocs/LSP8Mintable.json +0 -56
- package/userdocs/LSP8MintableInit.json +0 -56
- package/userdocs/LSP9Vault.json +0 -93
- package/userdocs/LSP9VaultInit.json +0 -93
- package/userdocs/UniversalProfile.json +0 -91
- package/userdocs/UniversalProfileInit.json +0 -94
- package/userdocs/UniversalReceiverAddressStore.json +0 -5
|
@@ -1,263 +0,0 @@
|
|
|
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 [ERC-165] - Executing several operation on other addresses including creating contracts using [ERC-725X] - A generic data key-value store using [ERC-725Y] - Validating signatures using [ERC-1271] - Receiving notification and react on them using [LSP-1-UniversalReceiver] - Safer ownership management through 2-steps transfer using [LSP-14-Ownable2Step] - Extending the account with new functions and interfaceIds of future standards using [LSP-17-ContractExtension] - Verifying calls on the owner to make it easier to interact with the account directly using [LSP-20-CallVerification]",
|
|
4
|
-
"errors": {
|
|
5
|
-
"ERC725X_ContractDeploymentFailed()": [
|
|
6
|
-
{
|
|
7
|
-
"details": "Reverts when contract deployment failed via {execute} or {executeBatch} functions, This error can occur using either operation type 1 (`CREATE`) or 2 (`CREATE2`)."
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
"ERC725X_CreateOperationsRequireEmptyRecipientAddress()": [
|
|
11
|
-
{
|
|
12
|
-
"details": "Reverts when passing a `to` address that is not `address(0)` (= address zero) while deploying a contract via {execute} or {executeBatch} functions. This error can occur using either operation type 1 (`CREATE`) or 2 (`CREATE2`)."
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"ERC725X_ExecuteParametersEmptyArray()": [
|
|
16
|
-
{
|
|
17
|
-
"details": "Reverts when one of the array parameter provided to the {executeBatch} function is an empty array."
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"ERC725X_ExecuteParametersLengthMismatch()": [
|
|
21
|
-
{
|
|
22
|
-
"details": "Reverts when there is not the same number of elements in the `operationTypes`, `targets` addresses, `values`, and `datas` array parameters provided when calling the {executeBatch} function."
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"ERC725X_InsufficientBalance(uint256,uint256)": [
|
|
26
|
-
{
|
|
27
|
-
"details": "Reverts when trying to send more native tokens `value` than available in current `balance`.",
|
|
28
|
-
"params": {
|
|
29
|
-
"balance": "The balance of native tokens of the ERC725X smart contract.",
|
|
30
|
-
"value": "The amount of native tokens sent via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)` that is greater than the contract's `balance`."
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"ERC725X_MsgValueDisallowedInDelegateCall()": [
|
|
35
|
-
{
|
|
36
|
-
"details": "Reverts when trying to send native tokens (`value` / `values[]` parameter of {execute} or {executeBatch} functions) while making a `delegatecall` (`operationType == 4`). Sending native tokens via `staticcall` is not allowed because `msg.value` is persisting."
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"ERC725X_MsgValueDisallowedInStaticCall()": [
|
|
40
|
-
{
|
|
41
|
-
"details": "Reverts when trying to send native tokens (`value` / `values[]` parameter of {execute} or {executeBatch} functions) while making a `staticcall` (`operationType == 3`). Sending native tokens via `staticcall` is not allowed because it is a state changing operation."
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"ERC725X_NoContractBytecodeProvided()": [
|
|
45
|
-
{
|
|
46
|
-
"details": "Reverts when no contract bytecode was provided as parameter when trying to deploy a contract via {execute} or {executeBatch}. This error can occur using either operation type 1 (`CREATE`) or 2 (`CREATE2`)."
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"ERC725X_UnknownOperationType(uint256)": [
|
|
50
|
-
{
|
|
51
|
-
"details": "Reverts when the `operationTypeProvided` is none of the default operation types available. (CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4)",
|
|
52
|
-
"params": {
|
|
53
|
-
"operationTypeProvided": "The unrecognised operation type number provided to `ERC725X.execute(...)`/`ERC725X.executeBatch(...)`."
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
58
|
-
{
|
|
59
|
-
"details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
63
|
-
{
|
|
64
|
-
"details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"LSP14CallerNotPendingOwner(address)": [
|
|
68
|
-
{
|
|
69
|
-
"details": "Reverts when the `caller` that is trying to accept ownership of the contract is not the pending owner.",
|
|
70
|
-
"params": {
|
|
71
|
-
"caller": "The address that tried to accept ownership."
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"LSP14CannotTransferOwnershipToSelf()": [
|
|
76
|
-
{
|
|
77
|
-
"details": "Reverts when trying to transfer ownership to the `address(this)`."
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"LSP14MustAcceptOwnershipInSeparateTransaction()": [
|
|
81
|
-
{
|
|
82
|
-
"details": "Reverts when pending owner accept ownership in the same transaction of transferring ownership."
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
"LSP14NotInRenounceOwnershipInterval(uint256,uint256)": [
|
|
86
|
-
{
|
|
87
|
-
"details": "Reverts when trying to renounce ownership before the initial confirmation delay.",
|
|
88
|
-
"params": {
|
|
89
|
-
"renounceOwnershipEnd": "The end timestamp when one can confirm the renouncement of ownership.",
|
|
90
|
-
"renounceOwnershipStart": "The start timestamp when one can confirm the renouncement of ownership."
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"LSP20CallVerificationFailed(bool,bytes4)": [
|
|
95
|
-
{
|
|
96
|
-
"details": "reverts when the call to the owner does not return the LSP20 success value",
|
|
97
|
-
"params": {
|
|
98
|
-
"postCall": "True if the execution call was done, False otherwise",
|
|
99
|
-
"returnedStatus": "The bytes4 decoded data returned by the logic verifier."
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"LSP20CallingVerifierFailed(bool)": [
|
|
104
|
-
{
|
|
105
|
-
"details": "reverts when the call to the owner fail with no revert reason",
|
|
106
|
-
"params": {
|
|
107
|
-
"postCall": "True if the execution call was done, False otherwise"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
"LSP20EOACannotVerifyCall(address)": [
|
|
112
|
-
{
|
|
113
|
-
"details": "Reverts when the logic verifier is an Externally Owned Account (EOA) that cannot return the LSP20 success value.",
|
|
114
|
-
"params": {
|
|
115
|
-
"logicVerifier": "The address of the logic verifier"
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
],
|
|
119
|
-
"NoExtensionFoundForFunctionSelector(bytes4)": [
|
|
120
|
-
{
|
|
121
|
-
"details": "reverts when there is no extension for the function selector being called with"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
"kind": "dev",
|
|
126
|
-
"methods": {
|
|
127
|
-
"acceptOwnership()": {
|
|
128
|
-
"custom:requirements": "- Only the {pendingOwner} can call this function. - When notifying the previous owner via LSP1, the typeId used must be the `keccak256(...)` hash of [LSP0OwnershipTransferred_SenderNotification]. - When notifying the new owner via LSP1, the typeId used must be the `keccak256(...)` hash of [LSP0OwnershipTransferred_RecipientNotification].",
|
|
129
|
-
"details": "Transfer ownership of the contract from the current {owner()} to the {pendingOwner()}. Once this function is called: - The current {owner()} will lose access to the functions restricted to the {owner()} only. - The {pendingOwner()} will gain access to the functions restricted to the {owner()} only."
|
|
130
|
-
},
|
|
131
|
-
"batchCalls(bytes[])": {
|
|
132
|
-
"custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
|
|
133
|
-
"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.",
|
|
134
|
-
"params": {
|
|
135
|
-
"data": "An array of ABI encoded function calls to be called on the contract."
|
|
136
|
-
},
|
|
137
|
-
"returns": {
|
|
138
|
-
"results": "An array of abi-encoded data returned by the functions executed."
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"constructor": {
|
|
142
|
-
"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."
|
|
143
|
-
},
|
|
144
|
-
"execute(uint256,address,uint256,bytes)": {
|
|
145
|
-
"custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0), `STATICCALL` (3) and `DELEGATECALL` (4). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {UniversalReceiver} event when receiving native tokens.",
|
|
146
|
-
"custom:requirements": "- Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3) or `DELEGATECALL` (4), `value` transfer is disallowed and must be 0.",
|
|
147
|
-
"details": "Generic executor function to: - send native tokens to any address. - interact with any contract by passing an abi-encoded function call in the `data` parameter. - deploy a contract by providing its creation bytecode in the `data` parameter.",
|
|
148
|
-
"params": {
|
|
149
|
-
"data": "The call data, or the creation bytecode of the contract to deploy if `operationType` is `1` or `2`.",
|
|
150
|
-
"operationType": "The operation type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
|
|
151
|
-
"target": "The address of the EOA or smart contract. (unused if a contract is created via operation type 1 or 2)",
|
|
152
|
-
"value": "The amount of native tokens to transfer (in Wei)"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"executeBatch(uint256[],address[],uint256[],bytes[])": {
|
|
156
|
-
"custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0), `STATICCALL` (3) and `DELEGATECALL` (4). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2) (each iteration) - {UniversalReceiver} event when receiving native tokens.",
|
|
157
|
-
"custom:requirements": "- The length of the parameters provided must be equal. - Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3) or `DELEGATECALL` (4), `value` transfer is disallowed and must be 0.",
|
|
158
|
-
"custom:warning": "- The `msg.value` should not be trusted for any method called within the batch with `operationType`: `DELEGATECALL` (4).",
|
|
159
|
-
"details": "Batch executor function that behaves the same as {execute} but allowing multiple operations in the same transaction.",
|
|
160
|
-
"params": {
|
|
161
|
-
"datas": "The list of calldata, or the creation bytecode of the contract to deploy if `operationType` is `1` or `2`.",
|
|
162
|
-
"operationsType": "The list of operations type used: `CALL = 0`; `CREATE = 1`; `CREATE2 = 2`; `STATICCALL = 3`; `DELEGATECALL = 4`",
|
|
163
|
-
"targets": "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
|
|
164
|
-
"values": "The list of native token amounts to transfer (in Wei)."
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"getData(bytes32)": {
|
|
168
|
-
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
169
|
-
"params": {
|
|
170
|
-
"dataKey": "The data key for which to retrieve the value."
|
|
171
|
-
},
|
|
172
|
-
"returns": {
|
|
173
|
-
"dataValue": "The bytes value stored under the specified data key."
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
"getDataBatch(bytes32[])": {
|
|
177
|
-
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
178
|
-
"params": {
|
|
179
|
-
"dataKeys": "The array of keys which values to retrieve"
|
|
180
|
-
},
|
|
181
|
-
"returns": {
|
|
182
|
-
"dataValues": "The array of data stored at multiple keys"
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
"initialize(address)": {
|
|
186
|
-
"custom:events": "- {UniversalReceiver} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}.",
|
|
187
|
-
"details": "Set `initialOwner` as the contract owner. The `initialize(address)` also allows funding the contract on deployment.",
|
|
188
|
-
"params": {
|
|
189
|
-
"initialOwner": "The owner of the contract."
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
"isValidSignature(bytes32,bytes)": {
|
|
193
|
-
"custom:warning": "This function does not enforce by default the inclusion of the address of this contract in the signature digest. It is recommended that protocols or applications using this contract include the targeted address (= this contract) in the data to sign. To ensure that a signature is valid for a specific LSP0ERC725Account and prevent signatures from the same EOA to be replayed across different LSP0ERC725Accounts.",
|
|
194
|
-
"details": "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the `_ERC1271_SUCCESSVALUE` 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 `_ERC1271_FAILVALUE` indicating that the signature is not valid. 2. If the owner is a smart contract, it forwards the call of {isValidSignature()} to the owner contract: - If the contract fails or returns the `_ERC1271_FAILVALUE`, the {isValidSignature()} on the account returns the `_ERC1271_FAILVALUE`, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the `_ERC1271_SUCCESSVALUE`, the {isValidSignature()} on the account returns the `_ERC1271_SUCCESSVALUE`, indicating that it's a valid signature.",
|
|
195
|
-
"params": {
|
|
196
|
-
"dataHash": "The hash of the data to be validated.",
|
|
197
|
-
"signature": "A signature that can validate the previous parameter (Hash)."
|
|
198
|
-
},
|
|
199
|
-
"returns": {
|
|
200
|
-
"returnedStatus": "A `bytes4` value that indicates if the signature is valid or not."
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
"owner()": {
|
|
204
|
-
"details": "Returns the address of the current owner."
|
|
205
|
-
},
|
|
206
|
-
"pendingOwner()": {
|
|
207
|
-
"custom:info": "If no ownership transfer is in progress, the pendingOwner will be `address(0).`.",
|
|
208
|
-
"details": "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
209
|
-
},
|
|
210
|
-
"renounceOwnership()": {
|
|
211
|
-
"custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner or an address allowed by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
|
|
212
|
-
"custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
|
|
213
|
-
"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 call is used as a confirmation and will leave the contract without an owner."
|
|
214
|
-
},
|
|
215
|
-
"setData(bytes32,bytes)": {
|
|
216
|
-
"custom:events": "- {UniversalReceiver} event when receiving native tokens. - {DataChanged} event.",
|
|
217
|
-
"custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
|
|
218
|
-
"details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
|
|
219
|
-
"params": {
|
|
220
|
-
"dataKey": "The data key for which to set a new value.",
|
|
221
|
-
"dataValue": "The new bytes value to set."
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
"setDataBatch(bytes32[],bytes[])": {
|
|
225
|
-
"custom:events": "- {UniversalReceiver} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
|
|
226
|
-
"custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
|
|
227
|
-
"details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
|
|
228
|
-
"params": {
|
|
229
|
-
"dataKeys": "An array of data keys to set bytes values for.",
|
|
230
|
-
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
"supportsInterface(bytes4)": {
|
|
234
|
-
"details": "Achieves the goal of [ERC-165] to detect supported interfaces and [LSP-17-ContractExtension] by checking if the interfaceId being queried is supported on another linked extension. If the contract doesn't support the `interfaceId`, it forwards the call to the `supportsInterface` extension according to [LSP-17-ContractExtension], and checks if the extension implements the interface defined by `interfaceId`.",
|
|
235
|
-
"params": {
|
|
236
|
-
"interfaceId": "The interface ID to check if the contract supports it."
|
|
237
|
-
},
|
|
238
|
-
"returns": {
|
|
239
|
-
"_0": "`true` if this contract implements the interface defined by `interfaceId`, `false` otherwise."
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
"transferOwnership(address)": {
|
|
243
|
-
"custom:requirements": "- Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - When notifying the new owner via LSP1, the `typeId` used must be the `keccak256(...)` hash of [LSP0OwnershipTransferStarted]. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
|
|
244
|
-
"details": "Initiate the process of transferring ownership of the contract by setting the new owner as the pending owner. If the new owner is a contract that supports + implements LSP1, this will also attempt to notify the new owner that ownership has been transferred to them by calling the {universalReceiver()} function on the `newOwner` contract.",
|
|
245
|
-
"params": {
|
|
246
|
-
"newOwner": "The address of the new owner."
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
"universalReceiver(bytes32,bytes)": {
|
|
250
|
-
"custom:events": "- {UniversalReceiver} when receiving native tokens. - {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
|
|
251
|
-
"details": "Achieves the goal of [LSP-1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts ([LSP1UniversalReceiverDelegate]) that react on the whole transaction and on the specific typeId, respectively. The function performs the following steps: 1. Query the [ERC-725Y] 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. 2. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_PREFIX] + `bytes32(typeId)`. (Check [LSP-2-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. This function delegates internally the handling of native tokens to the {universalReceiver} function itself passing `_TYPEID_LSP0_VALUE_RECEIVED` as typeId and the calldata as received data.",
|
|
252
|
-
"params": {
|
|
253
|
-
"receivedData": "The data received.",
|
|
254
|
-
"typeId": "The type of call received."
|
|
255
|
-
},
|
|
256
|
-
"returns": {
|
|
257
|
-
"returnedValues": "The ABI encoded return value of the LSP1UniversalReceiverDelegate call and the LSP1TypeIdDelegate call."
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
"title": "Deployable Proxy Implementation of [LSP-0-ERC725Account] Standard.",
|
|
262
|
-
"version": 1
|
|
263
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
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
|
-
"OwnableCallerNotTheOwner(address)": [
|
|
30
|
-
{
|
|
31
|
-
"details": "Reverts when only the owner is allowed to call the function.",
|
|
32
|
-
"params": {
|
|
33
|
-
"callerAddress": "The address that tried to make the call."
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
38
|
-
{
|
|
39
|
-
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"SecretHashCannotBeZero()": [
|
|
43
|
-
{
|
|
44
|
-
"details": "reverts when the secret hash provided is equal to bytes32(0)"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"ThresholdCannotBeHigherThanGuardiansNumber(uint256,uint256)": [
|
|
48
|
-
{
|
|
49
|
-
"details": "reverts when setting the guardians threshold to a number higher than the guardians number"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"ThresholdNotReachedForRecoverer(address,uint256,uint256)": [
|
|
53
|
-
{
|
|
54
|
-
"details": "reverts when `recoverOwnership(..)` is called with a recoverer that didn't reach the guardians threshold",
|
|
55
|
-
"params": {
|
|
56
|
-
"guardiansThreshold": "The minimum number of selection needed",
|
|
57
|
-
"recoverer": "The address of the recoverer",
|
|
58
|
-
"selections": "The number of selections that the recoverer have"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"WrongPlainSecret()": [
|
|
63
|
-
{
|
|
64
|
-
"details": "reverts when the plain secret produce a different hash than the secret hash originally set"
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
"kind": "dev",
|
|
69
|
-
"methods": {
|
|
70
|
-
"addGuardian(address)": {
|
|
71
|
-
"details": "Adds a guardian of the targetCan be called only by the owner",
|
|
72
|
-
"params": {
|
|
73
|
-
"newGuardian": "The address to add as a guardian"
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"constructor": {
|
|
77
|
-
"params": {
|
|
78
|
-
"_owner": "The owner of the LSP11 contract",
|
|
79
|
-
"target_": "The address of the ER725 contract to recover"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"getGuardianChoice(address)": {
|
|
83
|
-
"details": "Returns the address of a controller that a `guardian` selected for in order to recover the target",
|
|
84
|
-
"params": {
|
|
85
|
-
"guardian": "the address of a guardian to query his selection"
|
|
86
|
-
},
|
|
87
|
-
"returns": {
|
|
88
|
-
"_0": "the address that `guardian` selected"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"getGuardians()": {
|
|
92
|
-
"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"
|
|
93
|
-
},
|
|
94
|
-
"getGuardiansThreshold()": {
|
|
95
|
-
"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"
|
|
96
|
-
},
|
|
97
|
-
"getRecoveryCounter()": {
|
|
98
|
-
"details": "Returns the current recovery counter When a recovery process is successfully finished the recovery counter is incremented"
|
|
99
|
-
},
|
|
100
|
-
"getRecoverySecretHash()": {
|
|
101
|
-
"details": "Returns the recovery secret hash"
|
|
102
|
-
},
|
|
103
|
-
"isGuardian(address)": {
|
|
104
|
-
"details": "Returns TRUE if the address provided is a guardian, FALSE otherwise",
|
|
105
|
-
"params": {
|
|
106
|
-
"_address": "The address to query"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"owner()": {
|
|
110
|
-
"details": "Returns the address of the current owner."
|
|
111
|
-
},
|
|
112
|
-
"recoverOwnership(address,string,bytes32)": {
|
|
113
|
-
"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",
|
|
114
|
-
"params": {
|
|
115
|
-
"newHash": "The new secret Hash to be used in the next recovery process",
|
|
116
|
-
"plainSecret": "The secret word that produce the secret Hash",
|
|
117
|
-
"recoverer": "The address of the recoverer"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"removeGuardian(address)": {
|
|
121
|
-
"details": "Removes a guardian of the targetCan be called only by the owner",
|
|
122
|
-
"params": {
|
|
123
|
-
"currentGuardian": "The address of the existing guardian to remove Requirements: - The guardians count should be higher or equal to the guardain threshold"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"renounceOwnership()": {
|
|
127
|
-
"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."
|
|
128
|
-
},
|
|
129
|
-
"selectNewController(address)": {
|
|
130
|
-
"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",
|
|
131
|
-
"params": {
|
|
132
|
-
"addressSelected": "The address selected by the guardian"
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
"setGuardiansThreshold(uint256)": {
|
|
136
|
-
"details": "Sets the minimum number of selection by the guardians required so that an address can recover ownershipCan be called only by the owner",
|
|
137
|
-
"params": {
|
|
138
|
-
"guardiansThreshold": "The threshold to set Requirements: - `guardiansThreshold` cannot be more than the guardians count."
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"setRecoverySecretHash(bytes32)": {
|
|
142
|
-
"details": "Throws if hash provided is bytes32(0)",
|
|
143
|
-
"params": {
|
|
144
|
-
"newRecoverSecretHash": "The hash of the secret string Requirements: - `secretHash` cannot be bytes32(0)"
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"supportsInterface(bytes4)": {
|
|
148
|
-
"details": "See {IERC165-supportsInterface}."
|
|
149
|
-
},
|
|
150
|
-
"target()": {
|
|
151
|
-
"details": "The address of an ERC725 contract where we want to recover and set permissions for a controller address"
|
|
152
|
-
},
|
|
153
|
-
"transferOwnership(address)": {
|
|
154
|
-
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
"title": "Implementation of LSP11 - Basic Social Recovery standard",
|
|
158
|
-
"version": 1
|
|
159
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
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
|
-
"OwnableCallerNotTheOwner(address)": [
|
|
30
|
-
{
|
|
31
|
-
"details": "Reverts when only the owner is allowed to call the function.",
|
|
32
|
-
"params": {
|
|
33
|
-
"callerAddress": "The address that tried to make the call."
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
38
|
-
{
|
|
39
|
-
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"SecretHashCannotBeZero()": [
|
|
43
|
-
{
|
|
44
|
-
"details": "reverts when the secret hash provided is equal to bytes32(0)"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"ThresholdCannotBeHigherThanGuardiansNumber(uint256,uint256)": [
|
|
48
|
-
{
|
|
49
|
-
"details": "reverts when setting the guardians threshold to a number higher than the guardians number"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"ThresholdNotReachedForRecoverer(address,uint256,uint256)": [
|
|
53
|
-
{
|
|
54
|
-
"details": "reverts when `recoverOwnership(..)` is called with a recoverer that didn't reach the guardians threshold",
|
|
55
|
-
"params": {
|
|
56
|
-
"guardiansThreshold": "The minimum number of selection needed",
|
|
57
|
-
"recoverer": "The address of the recoverer",
|
|
58
|
-
"selections": "The number of selections that the recoverer have"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"WrongPlainSecret()": [
|
|
63
|
-
{
|
|
64
|
-
"details": "reverts when the plain secret produce a different hash than the secret hash originally set"
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
"kind": "dev",
|
|
69
|
-
"methods": {
|
|
70
|
-
"addGuardian(address)": {
|
|
71
|
-
"details": "Adds a guardian of the targetCan be called only by the owner",
|
|
72
|
-
"params": {
|
|
73
|
-
"newGuardian": "The address to add as a guardian"
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"getGuardianChoice(address)": {
|
|
77
|
-
"details": "Returns the address of a controller that a `guardian` selected for in order to recover the target",
|
|
78
|
-
"params": {
|
|
79
|
-
"guardian": "the address of a guardian to query his selection"
|
|
80
|
-
},
|
|
81
|
-
"returns": {
|
|
82
|
-
"_0": "the address that `guardian` selected"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"getGuardians()": {
|
|
86
|
-
"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"
|
|
87
|
-
},
|
|
88
|
-
"getGuardiansThreshold()": {
|
|
89
|
-
"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"
|
|
90
|
-
},
|
|
91
|
-
"getRecoveryCounter()": {
|
|
92
|
-
"details": "Returns the current recovery counter When a recovery process is successfully finished the recovery counter is incremented"
|
|
93
|
-
},
|
|
94
|
-
"getRecoverySecretHash()": {
|
|
95
|
-
"details": "Returns the recovery secret hash"
|
|
96
|
-
},
|
|
97
|
-
"initialize(address,address)": {
|
|
98
|
-
"params": {
|
|
99
|
-
"_owner": "The owner of the LSP11 contract",
|
|
100
|
-
"target_": "The address of the ER725 contract to recover"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"isGuardian(address)": {
|
|
104
|
-
"details": "Returns TRUE if the address provided is a guardian, FALSE otherwise",
|
|
105
|
-
"params": {
|
|
106
|
-
"_address": "The address to query"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"owner()": {
|
|
110
|
-
"details": "Returns the address of the current owner."
|
|
111
|
-
},
|
|
112
|
-
"recoverOwnership(address,string,bytes32)": {
|
|
113
|
-
"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",
|
|
114
|
-
"params": {
|
|
115
|
-
"newHash": "The new secret Hash to be used in the next recovery process",
|
|
116
|
-
"plainSecret": "The secret word that produce the secret Hash",
|
|
117
|
-
"recoverer": "The address of the recoverer"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"removeGuardian(address)": {
|
|
121
|
-
"details": "Removes a guardian of the targetCan be called only by the owner",
|
|
122
|
-
"params": {
|
|
123
|
-
"currentGuardian": "The address of the existing guardian to remove Requirements: - The guardians count should be higher or equal to the guardain threshold"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"renounceOwnership()": {
|
|
127
|
-
"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."
|
|
128
|
-
},
|
|
129
|
-
"selectNewController(address)": {
|
|
130
|
-
"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",
|
|
131
|
-
"params": {
|
|
132
|
-
"addressSelected": "The address selected by the guardian"
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
"setGuardiansThreshold(uint256)": {
|
|
136
|
-
"details": "Sets the minimum number of selection by the guardians required so that an address can recover ownershipCan be called only by the owner",
|
|
137
|
-
"params": {
|
|
138
|
-
"guardiansThreshold": "The threshold to set Requirements: - `guardiansThreshold` cannot be more than the guardians count."
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"setRecoverySecretHash(bytes32)": {
|
|
142
|
-
"details": "Throws if hash provided is bytes32(0)",
|
|
143
|
-
"params": {
|
|
144
|
-
"newRecoverSecretHash": "The hash of the secret string Requirements: - `secretHash` cannot be bytes32(0)"
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"supportsInterface(bytes4)": {
|
|
148
|
-
"details": "See {IERC165-supportsInterface}."
|
|
149
|
-
},
|
|
150
|
-
"target()": {
|
|
151
|
-
"details": "The address of an ERC725 contract where we want to recover and set permissions for a controller address"
|
|
152
|
-
},
|
|
153
|
-
"transferOwnership(address)": {
|
|
154
|
-
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
"title": "Deployable Proxy Implementation of LSP11 - Basic Social Recovery standard",
|
|
158
|
-
"version": 1
|
|
159
|
-
}
|