@lukso/lsp-smart-contracts 0.14.0 → 0.15.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/LSP0ERC725Account.ts +694 -0
- package/types/LSP0ERC725AccountInit.ts +740 -0
- package/types/LSP11BasicSocialRecovery.ts +596 -0
- package/types/LSP11BasicSocialRecoveryInit.ts +646 -0
- package/types/LSP1UniversalReceiverDelegateUP.ts +139 -0
- package/types/LSP1UniversalReceiverDelegateVault.ts +139 -0
- package/types/LSP23LinkedContractsFactory.ts +448 -0
- package/types/LSP4DigitalAssetMetadata.ts +274 -0
- package/types/LSP4DigitalAssetMetadataInitAbstract.ts +309 -0
- package/types/LSP6KeyManager.ts +355 -0
- package/types/LSP6KeyManagerInit.ts +398 -0
- package/types/LSP7CappedSupply.ts +712 -0
- package/types/LSP7CappedSupplyInitAbstract.ts +743 -0
- package/types/LSP7DigitalAsset.ts +698 -0
- package/types/LSP7DigitalAssetInitAbstract.ts +729 -0
- package/types/LSP7Mintable.ts +717 -0
- package/types/LSP7MintableInit.ts +779 -0
- package/types/LSP8CappedSupply.ts +792 -0
- package/types/LSP8CappedSupplyInitAbstract.ts +824 -0
- package/types/LSP8IdentifiableDigitalAsset.ts +778 -0
- package/types/LSP8IdentifiableDigitalAssetInitAbstract.ts +813 -0
- package/types/LSP8Mintable.ts +797 -0
- package/types/LSP8MintableInit.ts +860 -0
- package/types/LSP9Vault.ts +672 -0
- package/types/LSP9VaultInit.ts +714 -0
- package/types/UniversalProfile.ts +694 -0
- package/types/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 +58 -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,50 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import {Version} from "../Version.sol";
|
|
6
|
-
import {
|
|
7
|
-
LSP0ERC725AccountInitAbstract
|
|
8
|
-
} from "./LSP0ERC725AccountInitAbstract.sol";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @title Deployable Proxy Implementation of [LSP-0-ERC725Account] Standard.
|
|
12
|
-
*
|
|
13
|
-
* @author Fabian Vogelsteller <fabian@lukso.network>, Jean Cavallera (CJ42)
|
|
14
|
-
*
|
|
15
|
-
* @dev A smart contract account including basic functionalities such as:
|
|
16
|
-
* - Detecting supported standards using [ERC-165]
|
|
17
|
-
* - Executing several operation on other addresses including creating contracts using [ERC-725X]
|
|
18
|
-
* - A generic data key-value store using [ERC-725Y]
|
|
19
|
-
* - Validating signatures using [ERC-1271]
|
|
20
|
-
* - Receiving notification and react on them using [LSP-1-UniversalReceiver]
|
|
21
|
-
* - Safer ownership management through 2-steps transfer using [LSP-14-Ownable2Step]
|
|
22
|
-
* - Extending the account with new functions and interfaceIds of future standards using [LSP-17-ContractExtension]
|
|
23
|
-
* - Verifying calls on the owner to make it easier to interact with the account directly using [LSP-20-CallVerification]
|
|
24
|
-
*/
|
|
25
|
-
contract LSP0ERC725AccountInit is LSP0ERC725AccountInitAbstract, Version {
|
|
26
|
-
/**
|
|
27
|
-
* @notice deploying a `LSP0ERC725AccountInit` base contract to be used behind proxy
|
|
28
|
-
* @dev 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.
|
|
29
|
-
*/
|
|
30
|
-
constructor() {
|
|
31
|
-
_disableInitializers();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @notice Initializing a LSP0ERC725Account contract with owner set to address `initialOwner`.
|
|
36
|
-
*
|
|
37
|
-
* @dev Set `initialOwner` as the contract owner. The `initialize(address)` also allows funding the contract on deployment.
|
|
38
|
-
*
|
|
39
|
-
* @param initialOwner The owner of the contract.
|
|
40
|
-
*
|
|
41
|
-
* @custom:events
|
|
42
|
-
* - {UniversalReceiver} event when funding the contract on deployment.
|
|
43
|
-
* - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}.
|
|
44
|
-
*/
|
|
45
|
-
function initialize(
|
|
46
|
-
address initialOwner
|
|
47
|
-
) external payable virtual initializer {
|
|
48
|
-
LSP0ERC725AccountInitAbstract._initialize(initialOwner);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
4
|
+
import "@lukso/lsp0-contracts/contracts/LSP0ERC725AccountInit.sol";
|
|
@@ -1,52 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import {LSP0ERC725AccountCore} from "./LSP0ERC725AccountCore.sol";
|
|
6
|
-
import {
|
|
7
|
-
Initializable
|
|
8
|
-
} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
|
|
9
|
-
import {
|
|
10
|
-
OwnableUnset
|
|
11
|
-
} from "@erc725/smart-contracts/contracts/custom/OwnableUnset.sol";
|
|
12
|
-
|
|
13
|
-
// constants
|
|
14
|
-
import {_TYPEID_LSP0_VALUE_RECEIVED} from "./LSP0Constants.sol";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @title Inheritable Proxy Implementation of [LSP-0-ERC725Account] Standard.
|
|
18
|
-
*
|
|
19
|
-
* @author Fabian Vogelsteller <fabian@lukso.network>, Jean Cavallera (CJ42)
|
|
20
|
-
*/
|
|
21
|
-
abstract contract LSP0ERC725AccountInitAbstract is
|
|
22
|
-
Initializable,
|
|
23
|
-
LSP0ERC725AccountCore
|
|
24
|
-
{
|
|
25
|
-
/**
|
|
26
|
-
* @dev Set `initialOwner` as the contract owner.
|
|
27
|
-
* The `initialOwner` will then be allowed to call protected functions marked with the `onlyOwner` modifier.
|
|
28
|
-
*
|
|
29
|
-
* @param initialOwner The owner of the contract.
|
|
30
|
-
*
|
|
31
|
-
* @custom:warning ERC725X & ERC725Y parent contracts are not initialixed as they don't have non-zero initial state.
|
|
32
|
-
* If you decide to add non-zero initial state to any of those contracts, you MUST initialize them here.
|
|
33
|
-
*
|
|
34
|
-
* @custom:events
|
|
35
|
-
* - {UniversalReceiver} event when funding the contract on deployment.
|
|
36
|
-
* - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}.
|
|
37
|
-
*/
|
|
38
|
-
function _initialize(
|
|
39
|
-
address initialOwner
|
|
40
|
-
) internal virtual onlyInitializing {
|
|
41
|
-
if (msg.value != 0) {
|
|
42
|
-
emit UniversalReceiver(
|
|
43
|
-
msg.sender,
|
|
44
|
-
msg.value,
|
|
45
|
-
_TYPEID_LSP0_VALUE_RECEIVED,
|
|
46
|
-
"",
|
|
47
|
-
""
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
OwnableUnset._setOwner(initialOwner);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
4
|
+
import "@lukso/lsp0-contracts/contracts/LSP0ERC725AccountInitAbstract.sol";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// keccak256('LSP10Vaults[]')
|
|
7
|
-
bytes32 constant _LSP10_VAULTS_ARRAY_KEY = 0x55482936e01da86729a45d2b87a6b1d3bc582bea0ec00e38bdb340e3af6f9f06;
|
|
8
|
-
|
|
9
|
-
// bytes10(keccak256('LSP10VaultsMap'))
|
|
10
|
-
bytes10 constant _LSP10_VAULTS_MAP_KEY_PREFIX = 0x192448c3c0f88c7f238c;
|
|
4
|
+
import "@lukso/lsp10-contracts/contracts/LSP10Constants.sol";
|
|
@@ -1,211 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
IERC725Y
|
|
7
|
-
} from "@erc725/smart-contracts/contracts/interfaces/IERC725Y.sol";
|
|
8
|
-
|
|
9
|
-
// libraries
|
|
10
|
-
import {LSP2Utils} from "../LSP2ERC725YJSONSchema/LSP2Utils.sol";
|
|
11
|
-
|
|
12
|
-
// constants
|
|
13
|
-
import {_INTERFACEID_LSP9} from "../LSP9Vault/LSP9Constants.sol";
|
|
14
|
-
import {
|
|
15
|
-
_LSP10_VAULTS_MAP_KEY_PREFIX,
|
|
16
|
-
_LSP10_VAULTS_ARRAY_KEY
|
|
17
|
-
} from "../LSP10ReceivedVaults/LSP10Constants.sol";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @title LSP10 Utility library.
|
|
21
|
-
* @author Yamen Merhi <YamenMerhi>, Jean Cavallera <CJ42>
|
|
22
|
-
* @dev LSP5Utils is a library of functions that can be used to register and manage vaults received by an ERC725Y smart contract.
|
|
23
|
-
* Based on the LSP10 Received Vaults standard.
|
|
24
|
-
*/
|
|
25
|
-
library LSP10Utils {
|
|
26
|
-
/**
|
|
27
|
-
* @dev Generate an array of data keys/values pairs to be set on the receiver address after receiving vaults.
|
|
28
|
-
*
|
|
29
|
-
* @custom:warning This function returns empty arrays when encountering errors. Otherwise the arrays will contain 3 data keys and 3 data values.
|
|
30
|
-
*
|
|
31
|
-
* @param receiver The address receiving the vault and where the LSP10 data keys should be added.
|
|
32
|
-
* @param vaultAddress The address of the vault being received.
|
|
33
|
-
*
|
|
34
|
-
* @return lsp10DataKeys An array data keys used to update the [LSP-10-ReceivedAssets] data.
|
|
35
|
-
* @return lsp10DataValues An array data values used to update the [LSP-10-ReceivedAssets] data.
|
|
36
|
-
*/
|
|
37
|
-
function generateReceivedVaultKeys(
|
|
38
|
-
address receiver,
|
|
39
|
-
address vaultAddress
|
|
40
|
-
)
|
|
41
|
-
internal
|
|
42
|
-
view
|
|
43
|
-
returns (bytes32[] memory lsp10DataKeys, bytes[] memory lsp10DataValues)
|
|
44
|
-
{
|
|
45
|
-
IERC725Y erc725YContract = IERC725Y(receiver);
|
|
46
|
-
|
|
47
|
-
/// --- `LSP10Vaults[]` Array ---
|
|
48
|
-
|
|
49
|
-
bytes memory currentArrayLengthBytes = getLSP10ArrayLengthBytes(
|
|
50
|
-
erc725YContract
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
// CHECK that the value of `LSP10Vaults[]` Array length is a valid `uint128` (16 bytes long)
|
|
54
|
-
if (!LSP2Utils.isValidLSP2ArrayLengthValue(currentArrayLengthBytes)) {
|
|
55
|
-
if (currentArrayLengthBytes.length == 0) {
|
|
56
|
-
// if it's the first vault received and nothing is set (= 0x)
|
|
57
|
-
// we need to convert it to: `0x00000000000000000000000000000000`
|
|
58
|
-
// to safely cast to a uint128 of length 0
|
|
59
|
-
currentArrayLengthBytes = abi.encodePacked(bytes16(0));
|
|
60
|
-
} else {
|
|
61
|
-
// otherwise the array length is invalid
|
|
62
|
-
return (lsp10DataKeys, lsp10DataValues);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
uint128 currentArrayLength = uint128(bytes16(currentArrayLengthBytes));
|
|
67
|
-
|
|
68
|
-
// CHECK for potential overflow
|
|
69
|
-
if (currentArrayLength == type(uint128).max) {
|
|
70
|
-
return (lsp10DataKeys, lsp10DataValues);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// --- `LSP10VaultsMap:<vaultAddress>` ---
|
|
74
|
-
|
|
75
|
-
bytes32 mapDataKey = LSP2Utils.generateMappingKey(
|
|
76
|
-
_LSP10_VAULTS_MAP_KEY_PREFIX,
|
|
77
|
-
bytes20(vaultAddress)
|
|
78
|
-
);
|
|
79
|
-
|
|
80
|
-
// CHECK that the map value is not already set in the storage for the newly received vault
|
|
81
|
-
// If that's the case, the vault is already registered. Do not try to update.
|
|
82
|
-
if (erc725YContract.getData(mapDataKey).length != 0) {
|
|
83
|
-
return (lsp10DataKeys, lsp10DataValues);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/// --- LSP10 Data Keys & Values ---
|
|
87
|
-
|
|
88
|
-
lsp10DataKeys = new bytes32[](3);
|
|
89
|
-
lsp10DataValues = new bytes[](3);
|
|
90
|
-
|
|
91
|
-
// Increment `LSP10Vaults[]` Array length
|
|
92
|
-
lsp10DataKeys[0] = _LSP10_VAULTS_ARRAY_KEY;
|
|
93
|
-
lsp10DataValues[0] = abi.encodePacked(currentArrayLength + 1);
|
|
94
|
-
|
|
95
|
-
// Add asset address to `LSP10Vaults[index]`, where index == previous array length
|
|
96
|
-
lsp10DataKeys[1] = LSP2Utils.generateArrayElementKeyAtIndex(
|
|
97
|
-
_LSP10_VAULTS_ARRAY_KEY,
|
|
98
|
-
currentArrayLength
|
|
99
|
-
);
|
|
100
|
-
lsp10DataValues[1] = abi.encodePacked(vaultAddress);
|
|
101
|
-
|
|
102
|
-
// Add interfaceId + index as value under `LSP10VaultsMap:<vaultAddress>`
|
|
103
|
-
lsp10DataKeys[2] = mapDataKey;
|
|
104
|
-
lsp10DataValues[2] = bytes.concat(
|
|
105
|
-
_INTERFACEID_LSP9,
|
|
106
|
-
currentArrayLengthBytes
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @dev Generate an array of data key/value pairs to be set on the sender address after sending vaults.
|
|
112
|
-
*
|
|
113
|
-
* @custom:warning Returns empty arrays when encountering errors. Otherwise the arrays must have at least 3 data keys and 3 data values.
|
|
114
|
-
*
|
|
115
|
-
* @param sender The address sending the vault and where the LSP10 data keys should be updated.
|
|
116
|
-
* @param vaultAddress The address of the vault that is being sent.
|
|
117
|
-
*
|
|
118
|
-
* @return lsp10DataKeys An array data keys used to update the [LSP-10-ReceivedAssets] data.
|
|
119
|
-
* @return lsp10DataValues An array data values used to update the [LSP-10-ReceivedAssets] data.
|
|
120
|
-
*/
|
|
121
|
-
function generateSentVaultKeys(
|
|
122
|
-
address sender,
|
|
123
|
-
address vaultAddress
|
|
124
|
-
)
|
|
125
|
-
internal
|
|
126
|
-
view
|
|
127
|
-
returns (bytes32[] memory lsp10DataKeys, bytes[] memory lsp10DataValues)
|
|
128
|
-
{
|
|
129
|
-
IERC725Y erc725YContract = IERC725Y(sender);
|
|
130
|
-
|
|
131
|
-
// --- `LSP10Vaults[]` Array ---
|
|
132
|
-
|
|
133
|
-
bytes memory newArrayLengthBytes = getLSP10ArrayLengthBytes(
|
|
134
|
-
erc725YContract
|
|
135
|
-
);
|
|
136
|
-
|
|
137
|
-
// CHECK that the value of `LSP10Vaults[]` Array length is a valid `uint128` (16 bytes long)
|
|
138
|
-
if (!LSP2Utils.isValidLSP2ArrayLengthValue(newArrayLengthBytes)) {
|
|
139
|
-
return (lsp10DataKeys, lsp10DataValues);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// CHECK for potential underflow
|
|
143
|
-
if (
|
|
144
|
-
newArrayLengthBytes.length == 0 ||
|
|
145
|
-
bytes16(newArrayLengthBytes) == bytes16(0)
|
|
146
|
-
) {
|
|
147
|
-
return (lsp10DataKeys, lsp10DataValues);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
uint128 newArrayLength = uint128(bytes16(newArrayLengthBytes)) - 1;
|
|
151
|
-
|
|
152
|
-
// --- `LSP10VaultssMap:<vaultAddress>` ---
|
|
153
|
-
|
|
154
|
-
bytes32 removedElementMapKey = LSP2Utils.generateMappingKey(
|
|
155
|
-
_LSP10_VAULTS_MAP_KEY_PREFIX,
|
|
156
|
-
bytes20(vaultAddress)
|
|
157
|
-
);
|
|
158
|
-
|
|
159
|
-
// Query the ERC725Y storage of the LSP0-ERC725Account
|
|
160
|
-
bytes memory mapValue = erc725YContract.getData(removedElementMapKey);
|
|
161
|
-
|
|
162
|
-
// CHECK if no map value was set for the vault to remove.
|
|
163
|
-
// If that's the case, there is nothing to remove. Do not try to update.
|
|
164
|
-
if (mapValue.length != 20) {
|
|
165
|
-
return (lsp10DataKeys, lsp10DataValues);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// Extract index of vault to remove from the map value
|
|
169
|
-
uint128 removedElementIndex = uint128(bytes16(bytes20(mapValue) << 32));
|
|
170
|
-
|
|
171
|
-
bytes32 removedElementIndexKey = LSP2Utils
|
|
172
|
-
.generateArrayElementKeyAtIndex(
|
|
173
|
-
_LSP10_VAULTS_ARRAY_KEY,
|
|
174
|
-
uint128(removedElementIndex)
|
|
175
|
-
);
|
|
176
|
-
|
|
177
|
-
if (removedElementIndex == newArrayLength) {
|
|
178
|
-
return
|
|
179
|
-
LSP2Utils.removeLastElementFromArrayAndMap(
|
|
180
|
-
_LSP10_VAULTS_ARRAY_KEY,
|
|
181
|
-
newArrayLength,
|
|
182
|
-
removedElementIndexKey,
|
|
183
|
-
removedElementMapKey
|
|
184
|
-
);
|
|
185
|
-
} else if (removedElementIndex < newArrayLength) {
|
|
186
|
-
return
|
|
187
|
-
LSP2Utils.removeElementFromArrayAndMap(
|
|
188
|
-
erc725YContract,
|
|
189
|
-
_LSP10_VAULTS_ARRAY_KEY,
|
|
190
|
-
newArrayLength,
|
|
191
|
-
removedElementIndexKey,
|
|
192
|
-
removedElementIndex,
|
|
193
|
-
removedElementMapKey
|
|
194
|
-
);
|
|
195
|
-
} else {
|
|
196
|
-
// If index is bigger than the array length, out of bounds
|
|
197
|
-
return (lsp10DataKeys, lsp10DataValues);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @dev Get the raw bytes value stored under the `_LSP10_VAULTS_ARRAY_KEY`.
|
|
203
|
-
* @param erc725YContract The contract to query the ERC725Y storage from.
|
|
204
|
-
* @return The raw bytes value stored under this data key.
|
|
205
|
-
*/
|
|
206
|
-
function getLSP10ArrayLengthBytes(
|
|
207
|
-
IERC725Y erc725YContract
|
|
208
|
-
) internal view returns (bytes memory) {
|
|
209
|
-
return erc725YContract.getData(_LSP10_VAULTS_ARRAY_KEY);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
4
|
+
import "@lukso/lsp10-contracts/contracts/LSP10Utils.sol";
|
|
@@ -5,7 +5,7 @@ pragma solidity ^0.8.4;
|
|
|
5
5
|
import {ILSP11BasicSocialRecovery} from "./ILSP11BasicSocialRecovery.sol";
|
|
6
6
|
|
|
7
7
|
// libraries
|
|
8
|
-
import {LSP6Utils} from "
|
|
8
|
+
import {LSP6Utils} from "@lukso/lsp6-contracts/contracts/LSP6Utils.sol";
|
|
9
9
|
|
|
10
10
|
// modules
|
|
11
11
|
import {ERC725} from "@erc725/smart-contracts/contracts/ERC725.sol";
|
|
@@ -18,7 +18,9 @@ import {
|
|
|
18
18
|
} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
|
|
19
19
|
|
|
20
20
|
// constants
|
|
21
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
ALL_REGULAR_PERMISSIONS
|
|
23
|
+
} from "@lukso/lsp6-contracts/contracts/LSP6Constants.sol";
|
|
22
24
|
import {_INTERFACEID_LSP11} from "./LSP11Constants.sol";
|
|
23
25
|
import {
|
|
24
26
|
CallerIsNotGuardian,
|
|
@@ -1,78 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* @title Interface of the LSP14 - Ownable 2-step standard, an extension of the [EIP173] (Ownable) standard with 2-step process to transfer or renounce ownership.
|
|
6
|
-
*/
|
|
7
|
-
interface ILSP14Ownable2Step {
|
|
8
|
-
/**
|
|
9
|
-
* @dev Emitted when {transferOwnership(..)} was called and the first step of transferring ownership completed successfully which leads to {pendingOwner} being updated.
|
|
10
|
-
* @notice The transfer of ownership of the contract was initiated. Pending new owner set to: `newOwner`.
|
|
11
|
-
* @param previousOwner The address of the previous owner.
|
|
12
|
-
* @param newOwner The address of the new owner.
|
|
13
|
-
*/
|
|
14
|
-
event OwnershipTransferStarted(
|
|
15
|
-
address indexed previousOwner,
|
|
16
|
-
address indexed newOwner
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @inheritdoc OwnableUnset
|
|
21
|
-
* event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @dev Emitted when starting the {renounceOwnership(..)} 2-step process.
|
|
26
|
-
* @notice Ownership renouncement initiated.
|
|
27
|
-
*/
|
|
28
|
-
event RenounceOwnershipStarted();
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @dev Emitted when the ownership of the contract has been renounced.
|
|
32
|
-
* @notice Successfully renounced ownership of the contract. This contract is now owned by anyone, it's owner is `address(0)`.
|
|
33
|
-
*/
|
|
34
|
-
event OwnershipRenounced();
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @inheritdoc OwnableUnset
|
|
38
|
-
* function {owner()} external view returns (address);
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @dev The address that ownership of the contract is transferred to.
|
|
43
|
-
* This address may use {acceptOwnership()} to gain ownership of the contract.
|
|
44
|
-
*/
|
|
45
|
-
function pendingOwner() external view returns (address);
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @dev Initiate the process of transferring ownership of the contract by setting the new owner as the pending owner.
|
|
49
|
-
*
|
|
50
|
-
* 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.
|
|
51
|
-
*
|
|
52
|
-
* @notice Transfer ownership initiated by `newOwner`.
|
|
53
|
-
*
|
|
54
|
-
* @param newOwner The address of the new owner.
|
|
55
|
-
*/
|
|
56
|
-
function transferOwnership(address newOwner) external;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @dev Transfer ownership of the contract from the current {owner()} to the {pendingOwner()}.
|
|
60
|
-
*
|
|
61
|
-
* Once this function is called:
|
|
62
|
-
* - The current {owner()} will lose access to the functions restricted to the {owner()} only.
|
|
63
|
-
* - The {pendingOwner()} will gain access to the functions restricted to the {owner()} only.
|
|
64
|
-
*
|
|
65
|
-
* @notice `msg.sender` is accepting ownership of contract: `address(this)`.
|
|
66
|
-
*/
|
|
67
|
-
function acceptOwnership() external;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @dev Renounce ownership of the contract in a 2-step process.
|
|
71
|
-
*
|
|
72
|
-
* 1. The first call will initiate the process of renouncing ownership.
|
|
73
|
-
* 2. The second call is used as a confirmation and will leave the contract without an owner.
|
|
74
|
-
*
|
|
75
|
-
* @notice `msg.sender` is renouncing ownership of contract `address(this)`.
|
|
76
|
-
*/
|
|
77
|
-
function renounceOwnership() external;
|
|
78
|
-
}
|
|
4
|
+
import "@lukso/lsp14-contracts/contracts/ILSP14Ownable2Step.sol";
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// --- Type IDs
|
|
7
|
-
|
|
8
|
-
// keccak256('LSP14OwnershipTransferStarted')
|
|
9
|
-
bytes32 constant _TYPEID_LSP14_OwnershipTransferStarted = 0xee9a7c0924f740a2ca33d59b7f0c2929821ea9837ce043ce91c1823e9c4e52c0;
|
|
10
|
-
|
|
11
|
-
// keccak256('LSP14OwnershipTransferred_SenderNotification')
|
|
12
|
-
bytes32 constant _TYPEID_LSP14_OwnershipTransferred_SenderNotification = 0xa124442e1cc7b52d8e2ede2787d43527dc1f3ae0de87f50dd03e27a71834f74c;
|
|
13
|
-
|
|
14
|
-
// keccak256('LSP14OwnershipTransferred_RecipientNotification')
|
|
15
|
-
bytes32 constant _TYPEID_LSP14_OwnershipTransferred_RecipientNotification = 0xe32c7debcb817925ba4883fdbfc52797187f28f73f860641dab1a68d9b32902c;
|
|
4
|
+
import "@lukso/lsp14-contracts/contracts/LSP14Constants.sol";
|
|
@@ -1,32 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* @dev Reverts when trying to renounce ownership before the initial confirmation delay.
|
|
6
|
-
* @notice Cannot confirm ownership renouncement yet. The ownership renouncement is allowed from: `renounceOwnershipStart` until: `renounceOwnershipEnd`.
|
|
7
|
-
*
|
|
8
|
-
* @param renounceOwnershipStart The start timestamp when one can confirm the renouncement of ownership.
|
|
9
|
-
* @param renounceOwnershipEnd The end timestamp when one can confirm the renouncement of ownership.
|
|
10
|
-
*/
|
|
11
|
-
error LSP14NotInRenounceOwnershipInterval(
|
|
12
|
-
uint256 renounceOwnershipStart,
|
|
13
|
-
uint256 renounceOwnershipEnd
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @dev Reverts when trying to transfer ownership to the `address(this)`.
|
|
18
|
-
* @notice Cannot transfer ownership to the address of the contract itself.
|
|
19
|
-
*/
|
|
20
|
-
error LSP14CannotTransferOwnershipToSelf();
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @dev Reverts when pending owner accept ownership in the same transaction of transferring ownership.
|
|
24
|
-
* @notice Cannot accept ownership in the same transaction with {transferOwnership(...)}.
|
|
25
|
-
*/
|
|
26
|
-
error LSP14MustAcceptOwnershipInSeparateTransaction();
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @dev Reverts when the `caller` that is trying to accept ownership of the contract is not the pending owner.
|
|
30
|
-
* @param caller The address that tried to accept ownership.
|
|
31
|
-
*/
|
|
32
|
-
error LSP14CallerNotPendingOwner(address caller);
|
|
4
|
+
import "@lukso/lsp14-contracts/contracts/LSP14Errors.sol";
|