@lukso/lsp-smart-contracts 0.11.0-rc.0 → 0.11.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 +1 -0
- package/artifacts/LSP0ERC725Account.json +7 -2
- package/artifacts/LSP0ERC725AccountInit.json +7 -2
- package/artifacts/LSP11BasicSocialRecovery.json +2 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +3 -79
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +3 -41
- package/artifacts/LSP23LinkedContractsFactory.json +544 -0
- package/artifacts/LSP6KeyManager.json +24 -19
- package/artifacts/LSP6KeyManagerInit.json +24 -19
- package/artifacts/LSP7CappedSupply.json +88 -0
- package/artifacts/LSP7CappedSupplyInitAbstract.json +88 -0
- package/artifacts/LSP7CompatibleERC20.json +88 -0
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +88 -0
- package/artifacts/LSP7CompatibleERC20Mintable.json +90 -2
- package/artifacts/LSP7CompatibleERC20MintableInit.json +90 -2
- package/artifacts/LSP7DigitalAsset.json +88 -0
- package/artifacts/LSP7DigitalAssetInitAbstract.json +88 -0
- package/artifacts/LSP7Mintable.json +90 -2
- package/artifacts/LSP7MintableInit.json +90 -2
- package/artifacts/LSP8CappedSupply.json +59 -0
- package/artifacts/LSP8CappedSupplyInitAbstract.json +59 -0
- package/artifacts/LSP8CompatibleERC721.json +60 -1
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +60 -1
- package/artifacts/LSP8CompatibleERC721Mintable.json +62 -3
- package/artifacts/LSP8CompatibleERC721MintableInit.json +62 -3
- package/artifacts/LSP8IdentifiableDigitalAsset.json +59 -0
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +59 -0
- package/artifacts/LSP8Mintable.json +61 -2
- package/artifacts/LSP8MintableInit.json +61 -2
- package/artifacts/LSP9Vault.json +7 -2
- package/artifacts/LSP9VaultInit.json +7 -2
- package/artifacts/UniversalProfile.json +7 -2
- package/artifacts/UniversalProfileInit.json +7 -2
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +8 -36
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +15 -30
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +122 -206
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +18 -36
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +8 -34
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +148 -177
- package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +21 -20
- package/contracts/LSP14Ownable2Step/LSP14Errors.sol +13 -2
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +50 -20
- package/contracts/LSP17ContractExtension/LSP17Errors.sol +10 -0
- package/contracts/LSP17ContractExtension/LSP17Extendable.sol +16 -34
- package/contracts/LSP17ContractExtension/LSP17Utils.sol +1 -1
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +16 -11
- package/contracts/LSP1UniversalReceiver/LSP1Errors.sol +5 -10
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +192 -177
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +150 -88
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +66 -48
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +1 -1
- package/contracts/LSP23LinkedContractsDeployment/ILSP23LinkedContractsFactory.sol +192 -0
- package/contracts/LSP23LinkedContractsDeployment/IPostDeploymentModule.sol +18 -0
- package/contracts/LSP23LinkedContractsDeployment/LSP23Errors.sol +24 -0
- package/contracts/LSP23LinkedContractsDeployment/LSP23LinkedContractsFactory.sol +392 -0
- package/contracts/{LSP23MultiChainDeployment → LSP23LinkedContractsDeployment}/modules/UniversalProfileInitPostDeploymentModule.sol +5 -1
- package/contracts/LSP23LinkedContractsDeployment/modules/UniversalProfilePostDeploymentModule.sol +61 -0
- package/contracts/LSP25ExecuteRelayCall/ILSP25ExecuteRelayCall.sol +68 -0
- package/contracts/LSP25ExecuteRelayCall/LSP25Constants.sol +8 -0
- package/contracts/LSP25ExecuteRelayCall/LSP25Errors.sol +17 -0
- package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +143 -0
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +256 -61
- package/contracts/{LSP3UniversalProfile → LSP3ProfileMetadata}/LSP3Constants.sol +3 -3
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +9 -8
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +13 -6
- package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +4 -4
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +148 -189
- package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +26 -54
- package/contracts/LSP6KeyManager/LSP6Constants.sol +1 -3
- package/contracts/LSP6KeyManager/LSP6Errors.sol +142 -63
- package/contracts/LSP6KeyManager/LSP6KeyManager.sol +7 -4
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +125 -80
- package/contracts/LSP6KeyManager/LSP6KeyManagerInit.sol +8 -4
- package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +1 -1
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +52 -84
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +59 -10
- package/contracts/LSP6KeyManager/LSP6Utils.sol +67 -46
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +116 -78
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +4 -1
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +128 -6
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +212 -80
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +126 -3
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +7 -5
- package/contracts/LSP7DigitalAsset/extensions/ILSP7CompatibleERC20.sol +27 -14
- package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +2 -4
- package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +2 -4
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +29 -11
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +30 -9
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +46 -14
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +43 -12
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +14 -0
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +9 -4
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +7 -1
- package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +8 -8
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +7 -6
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +10 -2
- package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +120 -92
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +4 -1
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +135 -6
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +128 -38
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +134 -5
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +83 -41
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +13 -5
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +24 -0
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +30 -12
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +31 -10
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +96 -31
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +98 -23
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +21 -4
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +12 -2
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +21 -0
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +9 -4
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +13 -0
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +15 -6
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +7 -5
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +17 -2
- package/contracts/LSP9Vault/ILSP9Vault.sol +10 -5
- package/contracts/LSP9Vault/LSP9Errors.sol +3 -2
- package/contracts/LSP9Vault/LSP9Vault.sol +12 -4
- package/contracts/LSP9Vault/LSP9VaultCore.sol +245 -182
- package/contracts/LSP9Vault/LSP9VaultInit.sol +10 -3
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +11 -6
- package/contracts/UniversalProfile.sol +8 -6
- package/contracts/UniversalProfileInit.sol +6 -6
- package/contracts/UniversalProfileInitAbstract.sol +10 -3
- package/devdocs/LSP0ERC725Account.json +54 -37
- package/devdocs/LSP0ERC725AccountInit.json +56 -38
- package/devdocs/LSP1UniversalReceiverDelegateUP.json +14 -55
- package/devdocs/LSP1UniversalReceiverDelegateVault.json +9 -33
- package/devdocs/LSP23LinkedContractsFactory.json +81 -0
- package/devdocs/LSP4DigitalAssetMetadata.json +5 -5
- package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +4 -4
- package/devdocs/LSP6KeyManager.json +109 -70
- package/devdocs/LSP6KeyManagerInit.json +109 -70
- package/devdocs/LSP7CappedSupply.json +90 -42
- package/devdocs/LSP7CappedSupplyInitAbstract.json +86 -40
- package/devdocs/LSP7CompatibleERC20.json +79 -43
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +75 -39
- package/devdocs/LSP7CompatibleERC20Mintable.json +87 -40
- package/devdocs/LSP7CompatibleERC20MintableInit.json +82 -42
- package/devdocs/LSP7DigitalAsset.json +76 -40
- package/devdocs/LSP7DigitalAssetInitAbstract.json +73 -37
- package/devdocs/LSP7Mintable.json +79 -51
- package/devdocs/LSP7MintableInit.json +78 -49
- package/devdocs/LSP8CappedSupply.json +72 -43
- package/devdocs/LSP8CappedSupplyInitAbstract.json +68 -41
- package/devdocs/LSP8CompatibleERC721.json +85 -64
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +81 -60
- package/devdocs/LSP8CompatibleERC721Mintable.json +98 -60
- package/devdocs/LSP8CompatibleERC721MintableInit.json +93 -62
- package/devdocs/LSP8IdentifiableDigitalAsset.json +58 -41
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +57 -40
- package/devdocs/LSP8Mintable.json +65 -48
- package/devdocs/LSP8MintableInit.json +64 -47
- package/devdocs/LSP9Vault.json +61 -18
- package/devdocs/LSP9VaultInit.json +59 -17
- package/devdocs/UniversalProfile.json +53 -35
- package/devdocs/UniversalProfileInit.json +53 -35
- package/dist/constants.cjs.js +6236 -2587
- package/dist/constants.d.ts +3851 -1129
- package/dist/constants.es.js +6236 -2587
- package/package.json +6 -4
- package/userdocs/LSP0ERC725Account.json +40 -8
- package/userdocs/LSP0ERC725AccountInit.json +40 -8
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +18 -2
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +18 -2
- package/userdocs/LSP23LinkedContractsFactory.json +29 -0
- package/userdocs/LSP4DigitalAssetMetadata.json +1 -1
- package/userdocs/LSP6KeyManager.json +144 -6
- package/userdocs/LSP6KeyManagerInit.json +147 -6
- package/userdocs/LSP7CappedSupply.json +18 -3
- package/userdocs/LSP7CappedSupplyInitAbstract.json +17 -2
- package/userdocs/LSP7CompatibleERC20.json +3 -9
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +2 -8
- package/userdocs/LSP7CompatibleERC20Mintable.json +5 -8
- package/userdocs/LSP7CompatibleERC20MintableInit.json +3 -9
- package/userdocs/LSP7DigitalAsset.json +2 -2
- package/userdocs/LSP7DigitalAssetInitAbstract.json +2 -2
- package/userdocs/LSP7Mintable.json +3 -3
- package/userdocs/LSP7MintableInit.json +3 -3
- package/userdocs/LSP8CappedSupply.json +16 -1
- package/userdocs/LSP8CappedSupplyInitAbstract.json +15 -0
- package/userdocs/LSP8CompatibleERC721.json +24 -3
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +23 -2
- package/userdocs/LSP8CompatibleERC721Mintable.json +29 -2
- package/userdocs/LSP8CompatibleERC721MintableInit.json +27 -3
- package/userdocs/LSP8Mintable.json +4 -1
- package/userdocs/LSP8MintableInit.json +4 -1
- package/userdocs/LSP9Vault.json +50 -4
- package/userdocs/LSP9VaultInit.json +50 -4
- package/userdocs/UniversalProfile.json +40 -8
- package/userdocs/UniversalProfileInit.json +40 -8
- package/contracts/LSP0ERC725Account/LSP0Utils.sol +0 -47
- package/contracts/LSP23MultiChainDeployment/IOwnerControlledContractDeployer.sol +0 -174
- package/contracts/LSP23MultiChainDeployment/IPostDeploymentModule.sol +0 -10
- package/contracts/LSP23MultiChainDeployment/LSP23Errors.sol +0 -24
- package/contracts/LSP23MultiChainDeployment/OwnerControlledContractDeployer.sol +0 -388
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"errors": {
|
|
5
5
|
"CannotTransferOwnershipToSelf()": [
|
|
6
6
|
{
|
|
7
|
-
"details": "
|
|
7
|
+
"details": "Reverts when trying to transfer ownership to the `address(this)`."
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
10
|
"ERC725X_ContractDeploymentFailed()": [
|
|
@@ -61,6 +61,11 @@
|
|
|
61
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
62
|
}
|
|
63
63
|
],
|
|
64
|
+
"LSP14MustAcceptOwnershipInSeparateTransaction()": [
|
|
65
|
+
{
|
|
66
|
+
"details": "Reverts when pending owner accept ownership in the same transaction of transferring ownership."
|
|
67
|
+
}
|
|
68
|
+
],
|
|
64
69
|
"LSP20CallingVerifierFailed(bool)": [
|
|
65
70
|
{
|
|
66
71
|
"details": "reverts when the call to the owner fail with no revert reason",
|
|
@@ -85,51 +90,57 @@
|
|
|
85
90
|
],
|
|
86
91
|
"NotInRenounceOwnershipInterval(uint256,uint256)": [
|
|
87
92
|
{
|
|
88
|
-
"details": "
|
|
93
|
+
"details": "Reverts when trying to renounce ownership before the initial confirmation delay.",
|
|
94
|
+
"params": {
|
|
95
|
+
"renounceOwnershipEnd": "The end timestamp when one can confirm the renouncement of ownership.",
|
|
96
|
+
"renounceOwnershipStart": "The start timestamp when one can confirm the renouncement of ownership."
|
|
97
|
+
}
|
|
89
98
|
}
|
|
90
99
|
]
|
|
91
100
|
},
|
|
92
101
|
"kind": "dev",
|
|
93
102
|
"methods": {
|
|
94
103
|
"acceptOwnership()": {
|
|
95
|
-
"custom:requirements": "-
|
|
96
|
-
"details": "Transfer ownership of the contract from the current {
|
|
104
|
+
"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].",
|
|
105
|
+
"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."
|
|
97
106
|
},
|
|
98
107
|
"batchCalls(bytes[])": {
|
|
99
|
-
"
|
|
108
|
+
"custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
|
|
109
|
+
"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.",
|
|
100
110
|
"params": {
|
|
101
111
|
"data": "An array of ABI encoded function calls to be called on the contract."
|
|
102
112
|
},
|
|
103
113
|
"returns": {
|
|
104
|
-
"results": "An array of
|
|
114
|
+
"results": "An array of abi-encoded data returned by the functions executed."
|
|
105
115
|
}
|
|
106
116
|
},
|
|
107
117
|
"constructor": {
|
|
108
|
-
"
|
|
118
|
+
"custom:events": "- {ValueReceived} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. - {DataChanged} event when setting the {_LSP3_SUPPORTED_STANDARDS_KEY}.",
|
|
119
|
+
"details": "Set `initialOwner` as the contract owner and the `SupportedStandards:LSP3UniversalProfile` data key in the ERC725Y data key/value store. The `constructor` also allows funding the contract on deployment.",
|
|
109
120
|
"params": {
|
|
110
121
|
"initialOwner": "the owner of the contract"
|
|
111
122
|
}
|
|
112
123
|
},
|
|
113
124
|
"execute(uint256,address,uint256,bytes)": {
|
|
114
|
-
"custom:events": "- {Executed} event
|
|
115
|
-
"custom:requirements": "-
|
|
116
|
-
"details": "
|
|
125
|
+
"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). - {ValueReceived} event when receiving native tokens.",
|
|
126
|
+
"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.",
|
|
127
|
+
"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. Requirements: - SHOULD only be callable by the owner of the contract set via ERC173. - 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. Emits an {Executed} event, when a call is made with `operationType` 0 (CALL), 3 (STATICCALL) or 4 (DELEGATECALL) Emits a {ContractCreated} event, when deploying a contract with `operationType` 1 (CREATE) or 2 (CREATE2)",
|
|
117
128
|
"params": {
|
|
118
|
-
"data": "The call data
|
|
119
|
-
"operationType": "The operation
|
|
120
|
-
"target": "The address
|
|
121
|
-
"value": "The amount of native tokens to transfer (in Wei)
|
|
129
|
+
"data": "The call data, or the creation bytecode of the contract to deploy",
|
|
130
|
+
"operationType": "The operation type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
|
|
131
|
+
"target": "The address of the EOA or smart contract. (unused if a contract is created via operation type 1 or 2)",
|
|
132
|
+
"value": "The amount of native tokens to transfer (in Wei)"
|
|
122
133
|
}
|
|
123
134
|
},
|
|
124
135
|
"executeBatch(uint256[],address[],uint256[],bytes[])": {
|
|
125
|
-
"custom:events": "- {Executed} event
|
|
126
|
-
"custom:requirements": "- The length of the parameters provided
|
|
127
|
-
"details": "Generic batch executor function
|
|
136
|
+
"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) - {ValueReceived} event when receiving native tokens.",
|
|
137
|
+
"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.",
|
|
138
|
+
"details": "Generic batch executor function to: - send native tokens to any address. - interact with any contract by passing an abi-encoded function call in the `datas` parameter. - deploy a contract by providing its creation bytecode in the `datas` parameter. Requirements: - The length of the parameters provided MUST be equal - SHOULD only be callable by the owner of the contract set via ERC173. - if a `values` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is STATICCALL or DELEGATECALL, `values` SHOULD be 0. - `targets` SHOULD be address(0) when deploying a contract. Emits an {Executed} event, when a call is made with `operationType` 0 (CALL), 3 (STATICCALL) or 4 (DELEGATECALL) Emits a {ContractCreated} event, when deploying a contract with `operationType` 1 (CREATE) or 2 (CREATE2)",
|
|
128
139
|
"params": {
|
|
129
|
-
"datas": "The list of call data
|
|
130
|
-
"operationsType": "The list of operations type used:
|
|
131
|
-
"targets": "The list of addresses to call. `targets` will be unused if a contract is created (
|
|
132
|
-
"values": "The list of native token amounts to transfer (in Wei)
|
|
140
|
+
"datas": "The list of call data, or the creation bytecode of the contract to deploy",
|
|
141
|
+
"operationsType": "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
|
|
142
|
+
"targets": "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
|
|
143
|
+
"values": "The list of native token amounts to transfer (in Wei)"
|
|
133
144
|
}
|
|
134
145
|
},
|
|
135
146
|
"getData(bytes32)": {
|
|
@@ -149,56 +160,63 @@
|
|
|
149
160
|
}
|
|
150
161
|
},
|
|
151
162
|
"isValidSignature(bytes32,bytes)": {
|
|
152
|
-
"details": "Handles two cases: 1. 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. 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 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
|
|
163
|
+
"details": "Handles two cases: 1. 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. 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 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.",
|
|
153
164
|
"params": {
|
|
154
165
|
"dataHash": "The hash of the data to be validated.",
|
|
155
166
|
"signature": "A signature that can validate the previous parameter (Hash)."
|
|
156
167
|
},
|
|
157
168
|
"returns": {
|
|
158
|
-
"magicValue": "A bytes4 value that indicates if the signature is valid or not."
|
|
169
|
+
"magicValue": "A `bytes4` value that indicates if the signature is valid or not."
|
|
159
170
|
}
|
|
160
171
|
},
|
|
161
172
|
"owner()": {
|
|
162
173
|
"details": "Returns the address of the current owner."
|
|
163
174
|
},
|
|
164
175
|
"pendingOwner()": {
|
|
176
|
+
"custom:info": "If no ownership transfer is in progress, the pendingOwner will be `address(0).`.",
|
|
165
177
|
"details": "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
166
178
|
},
|
|
167
179
|
"renounceOwnership()": {
|
|
168
180
|
"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 will be permanently inaccessible, making these functions not callable anymore and unusable.",
|
|
169
|
-
"
|
|
181
|
+
"custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
|
|
182
|
+
"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."
|
|
170
183
|
},
|
|
171
184
|
"setData(bytes32,bytes)": {
|
|
172
185
|
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
|
|
173
|
-
"custom:requirements": "
|
|
174
|
-
"details": "Sets singular data for a given `dataKey`",
|
|
186
|
+
"custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
|
|
175
187
|
"params": {
|
|
176
188
|
"dataKey": "The key to retrieve stored value",
|
|
177
|
-
"dataValue": "The value to set"
|
|
189
|
+
"dataValue": "The value to set SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event."
|
|
178
190
|
}
|
|
179
191
|
},
|
|
180
192
|
"setDataBatch(bytes32[],bytes[])": {
|
|
181
193
|
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
|
|
182
|
-
"custom:requirements": "
|
|
183
|
-
"details": "Sets array of data for multiple given `dataKeys`",
|
|
194
|
+
"custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
|
|
195
|
+
"details": "Sets array of data for multiple given `dataKeys` SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event.",
|
|
184
196
|
"params": {
|
|
185
197
|
"dataKeys": "The array of data keys for values to set",
|
|
186
198
|
"dataValues": "The array of values to set"
|
|
187
199
|
}
|
|
188
200
|
},
|
|
189
201
|
"supportsInterface(bytes4)": {
|
|
190
|
-
"details": "
|
|
202
|
+
"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`.",
|
|
203
|
+
"params": {
|
|
204
|
+
"interfaceId": "The interface ID to check if the contract supports it."
|
|
205
|
+
},
|
|
206
|
+
"returns": {
|
|
207
|
+
"_0": "`true` if this contract implements the interface defined by `interfaceId`, `false` otherwise."
|
|
208
|
+
}
|
|
191
209
|
},
|
|
192
210
|
"transferOwnership(address)": {
|
|
193
|
-
"custom:requirements": "-
|
|
194
|
-
"details": "
|
|
211
|
+
"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.",
|
|
212
|
+
"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.",
|
|
195
213
|
"params": {
|
|
196
|
-
"
|
|
214
|
+
"newOwner": "The address of the new owner."
|
|
197
215
|
}
|
|
198
216
|
},
|
|
199
217
|
"universalReceiver(bytes32,bytes)": {
|
|
200
|
-
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
|
|
201
|
-
"details": "The function performs the following steps: 1. Query the
|
|
218
|
+
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
|
|
219
|
+
"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.",
|
|
202
220
|
"params": {
|
|
203
221
|
"receivedData": "The data received.",
|
|
204
222
|
"typeId": "The type of call received."
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"errors": {
|
|
5
5
|
"CannotTransferOwnershipToSelf()": [
|
|
6
6
|
{
|
|
7
|
-
"details": "
|
|
7
|
+
"details": "Reverts when trying to transfer ownership to the `address(this)`."
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
10
|
"ERC725X_ContractDeploymentFailed()": [
|
|
@@ -61,6 +61,11 @@
|
|
|
61
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
62
|
}
|
|
63
63
|
],
|
|
64
|
+
"LSP14MustAcceptOwnershipInSeparateTransaction()": [
|
|
65
|
+
{
|
|
66
|
+
"details": "Reverts when pending owner accept ownership in the same transaction of transferring ownership."
|
|
67
|
+
}
|
|
68
|
+
],
|
|
64
69
|
"LSP20CallingVerifierFailed(bool)": [
|
|
65
70
|
{
|
|
66
71
|
"details": "reverts when the call to the owner fail with no revert reason",
|
|
@@ -85,48 +90,53 @@
|
|
|
85
90
|
],
|
|
86
91
|
"NotInRenounceOwnershipInterval(uint256,uint256)": [
|
|
87
92
|
{
|
|
88
|
-
"details": "
|
|
93
|
+
"details": "Reverts when trying to renounce ownership before the initial confirmation delay.",
|
|
94
|
+
"params": {
|
|
95
|
+
"renounceOwnershipEnd": "The end timestamp when one can confirm the renouncement of ownership.",
|
|
96
|
+
"renounceOwnershipStart": "The start timestamp when one can confirm the renouncement of ownership."
|
|
97
|
+
}
|
|
89
98
|
}
|
|
90
99
|
]
|
|
91
100
|
},
|
|
92
101
|
"kind": "dev",
|
|
93
102
|
"methods": {
|
|
94
103
|
"acceptOwnership()": {
|
|
95
|
-
"custom:requirements": "-
|
|
96
|
-
"details": "Transfer ownership of the contract from the current {
|
|
104
|
+
"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].",
|
|
105
|
+
"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."
|
|
97
106
|
},
|
|
98
107
|
"batchCalls(bytes[])": {
|
|
99
|
-
"
|
|
108
|
+
"custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
|
|
109
|
+
"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.",
|
|
100
110
|
"params": {
|
|
101
111
|
"data": "An array of ABI encoded function calls to be called on the contract."
|
|
102
112
|
},
|
|
103
113
|
"returns": {
|
|
104
|
-
"results": "An array of
|
|
114
|
+
"results": "An array of abi-encoded data returned by the functions executed."
|
|
105
115
|
}
|
|
106
116
|
},
|
|
107
117
|
"constructor": {
|
|
108
118
|
"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."
|
|
109
119
|
},
|
|
110
120
|
"execute(uint256,address,uint256,bytes)": {
|
|
111
|
-
"custom:events": "- {Executed} event
|
|
112
|
-
"custom:requirements": "-
|
|
113
|
-
"details": "
|
|
121
|
+
"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). - {ValueReceived} event when receiving native tokens.",
|
|
122
|
+
"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.",
|
|
123
|
+
"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. Requirements: - SHOULD only be callable by the owner of the contract set via ERC173. - 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. Emits an {Executed} event, when a call is made with `operationType` 0 (CALL), 3 (STATICCALL) or 4 (DELEGATECALL) Emits a {ContractCreated} event, when deploying a contract with `operationType` 1 (CREATE) or 2 (CREATE2)",
|
|
114
124
|
"params": {
|
|
115
|
-
"data": "The call data
|
|
116
|
-
"operationType": "The operation
|
|
117
|
-
"target": "The address
|
|
118
|
-
"value": "The amount of native tokens to transfer (in Wei)
|
|
125
|
+
"data": "The call data, or the creation bytecode of the contract to deploy",
|
|
126
|
+
"operationType": "The operation type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
|
|
127
|
+
"target": "The address of the EOA or smart contract. (unused if a contract is created via operation type 1 or 2)",
|
|
128
|
+
"value": "The amount of native tokens to transfer (in Wei)"
|
|
119
129
|
}
|
|
120
130
|
},
|
|
121
131
|
"executeBatch(uint256[],address[],uint256[],bytes[])": {
|
|
122
|
-
"custom:events": "- {Executed} event
|
|
123
|
-
"custom:requirements": "- The length of the parameters provided
|
|
124
|
-
"details": "Generic batch executor function
|
|
132
|
+
"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) - {ValueReceived} event when receiving native tokens.",
|
|
133
|
+
"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.",
|
|
134
|
+
"details": "Generic batch executor function to: - send native tokens to any address. - interact with any contract by passing an abi-encoded function call in the `datas` parameter. - deploy a contract by providing its creation bytecode in the `datas` parameter. Requirements: - The length of the parameters provided MUST be equal - SHOULD only be callable by the owner of the contract set via ERC173. - if a `values` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is STATICCALL or DELEGATECALL, `values` SHOULD be 0. - `targets` SHOULD be address(0) when deploying a contract. Emits an {Executed} event, when a call is made with `operationType` 0 (CALL), 3 (STATICCALL) or 4 (DELEGATECALL) Emits a {ContractCreated} event, when deploying a contract with `operationType` 1 (CREATE) or 2 (CREATE2)",
|
|
125
135
|
"params": {
|
|
126
|
-
"datas": "The list of call data
|
|
127
|
-
"operationsType": "The list of operations type used:
|
|
128
|
-
"targets": "The list of addresses to call. `targets` will be unused if a contract is created (
|
|
129
|
-
"values": "The list of native token amounts to transfer (in Wei)
|
|
136
|
+
"datas": "The list of call data, or the creation bytecode of the contract to deploy",
|
|
137
|
+
"operationsType": "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
|
|
138
|
+
"targets": "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
|
|
139
|
+
"values": "The list of native token amounts to transfer (in Wei)"
|
|
130
140
|
}
|
|
131
141
|
},
|
|
132
142
|
"getData(bytes32)": {
|
|
@@ -146,62 +156,70 @@
|
|
|
146
156
|
}
|
|
147
157
|
},
|
|
148
158
|
"initialize(address)": {
|
|
149
|
-
"
|
|
159
|
+
"custom:events": "- {ValueReceived} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}.",
|
|
160
|
+
"details": "Set `initialOwner` as the contract owner and the `SupportedStandards:LSP3UniversalProfile` data key in the ERC725Y data key/value store. The `constructor` also allows funding the contract on deployment. 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.",
|
|
150
161
|
"params": {
|
|
151
162
|
"initialOwner": "the owner of the contract"
|
|
152
163
|
}
|
|
153
164
|
},
|
|
154
165
|
"isValidSignature(bytes32,bytes)": {
|
|
155
|
-
"details": "Handles two cases: 1. 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. 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 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
|
|
166
|
+
"details": "Handles two cases: 1. 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. 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 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.",
|
|
156
167
|
"params": {
|
|
157
168
|
"dataHash": "The hash of the data to be validated.",
|
|
158
169
|
"signature": "A signature that can validate the previous parameter (Hash)."
|
|
159
170
|
},
|
|
160
171
|
"returns": {
|
|
161
|
-
"magicValue": "A bytes4 value that indicates if the signature is valid or not."
|
|
172
|
+
"magicValue": "A `bytes4` value that indicates if the signature is valid or not."
|
|
162
173
|
}
|
|
163
174
|
},
|
|
164
175
|
"owner()": {
|
|
165
176
|
"details": "Returns the address of the current owner."
|
|
166
177
|
},
|
|
167
178
|
"pendingOwner()": {
|
|
179
|
+
"custom:info": "If no ownership transfer is in progress, the pendingOwner will be `address(0).`.",
|
|
168
180
|
"details": "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
169
181
|
},
|
|
170
182
|
"renounceOwnership()": {
|
|
171
183
|
"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 will be permanently inaccessible, making these functions not callable anymore and unusable.",
|
|
172
|
-
"
|
|
184
|
+
"custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
|
|
185
|
+
"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."
|
|
173
186
|
},
|
|
174
187
|
"setData(bytes32,bytes)": {
|
|
175
188
|
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
|
|
176
|
-
"custom:requirements": "
|
|
177
|
-
"details": "Sets singular data for a given `dataKey`",
|
|
189
|
+
"custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
|
|
178
190
|
"params": {
|
|
179
191
|
"dataKey": "The key to retrieve stored value",
|
|
180
|
-
"dataValue": "The value to set"
|
|
192
|
+
"dataValue": "The value to set SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event."
|
|
181
193
|
}
|
|
182
194
|
},
|
|
183
195
|
"setDataBatch(bytes32[],bytes[])": {
|
|
184
196
|
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
|
|
185
|
-
"custom:requirements": "
|
|
186
|
-
"details": "Sets array of data for multiple given `dataKeys`",
|
|
197
|
+
"custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
|
|
198
|
+
"details": "Sets array of data for multiple given `dataKeys` SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event.",
|
|
187
199
|
"params": {
|
|
188
200
|
"dataKeys": "The array of data keys for values to set",
|
|
189
201
|
"dataValues": "The array of values to set"
|
|
190
202
|
}
|
|
191
203
|
},
|
|
192
204
|
"supportsInterface(bytes4)": {
|
|
193
|
-
"details": "
|
|
205
|
+
"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`.",
|
|
206
|
+
"params": {
|
|
207
|
+
"interfaceId": "The interface ID to check if the contract supports it."
|
|
208
|
+
},
|
|
209
|
+
"returns": {
|
|
210
|
+
"_0": "`true` if this contract implements the interface defined by `interfaceId`, `false` otherwise."
|
|
211
|
+
}
|
|
194
212
|
},
|
|
195
213
|
"transferOwnership(address)": {
|
|
196
|
-
"custom:requirements": "-
|
|
197
|
-
"details": "
|
|
214
|
+
"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.",
|
|
215
|
+
"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.",
|
|
198
216
|
"params": {
|
|
199
|
-
"
|
|
217
|
+
"newOwner": "The address of the new owner."
|
|
200
218
|
}
|
|
201
219
|
},
|
|
202
220
|
"universalReceiver(bytes32,bytes)": {
|
|
203
|
-
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
|
|
204
|
-
"details": "The function performs the following steps: 1. Query the
|
|
221
|
+
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
|
|
222
|
+
"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.",
|
|
205
223
|
"params": {
|
|
206
224
|
"receivedData": "The data received.",
|
|
207
225
|
"typeId": "The type of call received."
|