@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,36 +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 {LSP9VaultInitAbstract} from "./LSP9VaultInitAbstract.sol";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @title Deployable Proxy Implementation of LSP9Vault built on top of ERC725, LSP1UniversalReceiver
|
|
10
|
-
* @author Fabian Vogelsteller, Yamen Merhi, Jean Cavallera
|
|
11
|
-
* @dev Could be owned by a UniversalProfile and able to register received asset with UniversalReceiverDelegateVault
|
|
12
|
-
*/
|
|
13
|
-
contract LSP9VaultInit is LSP9VaultInitAbstract, Version {
|
|
14
|
-
/**
|
|
15
|
-
* @dev initialize (= lock) base implementation contract on deployment
|
|
16
|
-
*/
|
|
17
|
-
constructor() {
|
|
18
|
-
_disableInitializers();
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @notice Initializing a LSP9Vault contract with owner set to address `initialOwner`.
|
|
23
|
-
* @dev Sets `initialOwner` as the contract owner and the `SupportedStandards:LSP9Vault` Data Key. The `initialize(address)` also allows funding the contract on deployment.
|
|
24
|
-
*
|
|
25
|
-
* @param newOwner The new owner of the contract.
|
|
26
|
-
*
|
|
27
|
-
* @custom:events
|
|
28
|
-
* - {UniversalReceiver} event when funding the contract on deployment.
|
|
29
|
-
* - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}.
|
|
30
|
-
* - {DataChanged} event when updating the {_LSP9_SUPPORTED_STANDARDS_KEY}.
|
|
31
|
-
* - {UniversalReceiver} event when notifying the `initialOwner`.
|
|
32
|
-
*/
|
|
33
|
-
function initialize(address newOwner) external payable virtual initializer {
|
|
34
|
-
LSP9VaultInitAbstract._initialize(newOwner);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
4
|
+
import "@lukso/lsp9-contracts/contracts/LSP9VaultInit.sol";
|
|
@@ -1,68 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
OwnableUnset
|
|
7
|
-
} from "@erc725/smart-contracts/contracts/custom/OwnableUnset.sol";
|
|
8
|
-
import {
|
|
9
|
-
Initializable
|
|
10
|
-
} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
|
|
11
|
-
import {LSP9VaultCore} from "./LSP9VaultCore.sol";
|
|
12
|
-
|
|
13
|
-
// libraries
|
|
14
|
-
import {LSP1Utils} from "../LSP1UniversalReceiver/LSP1Utils.sol";
|
|
15
|
-
|
|
16
|
-
// constants
|
|
17
|
-
import {
|
|
18
|
-
_LSP9_SUPPORTED_STANDARDS_KEY,
|
|
19
|
-
_LSP9_SUPPORTED_STANDARDS_VALUE,
|
|
20
|
-
_TYPEID_LSP9_VALUE_RECEIVED,
|
|
21
|
-
_TYPEID_LSP9_OwnershipTransferred_RecipientNotification
|
|
22
|
-
} from "../LSP9Vault/LSP9Constants.sol";
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @title Inheritable Proxy Implementation of LSP9Vault built on top of ERC725, LSP1UniversalReceiver
|
|
26
|
-
* @author Fabian Vogelsteller, Yamen Merhi, Jean Cavallera
|
|
27
|
-
* @dev Could be owned by a UniversalProfile and able to register received asset with UniversalReceiverDelegateVault
|
|
28
|
-
*/
|
|
29
|
-
abstract contract LSP9VaultInitAbstract is Initializable, LSP9VaultCore {
|
|
30
|
-
using LSP1Utils for address;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @dev Sets `initialOwner` as the contract owner and the `SupportedStandards:LSP9Vault` Data Key. The `constructor` also allows funding the contract on deployment.
|
|
34
|
-
*
|
|
35
|
-
* @param newOwner The new owner of the contract.
|
|
36
|
-
*
|
|
37
|
-
* @custom:warning ERC725X & ERC725Y parent contracts are not initialised as they don't have non-zero initial state. If you decide to add non-zero initial state to any of those contracts, you must initialize them here.
|
|
38
|
-
*
|
|
39
|
-
* @custom:events
|
|
40
|
-
* - {UniversalReceiver} event when funding the contract on deployment.
|
|
41
|
-
* - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}.
|
|
42
|
-
* - {DataChanged} event when updating the {_LSP9_SUPPORTED_STANDARDS_KEY}.
|
|
43
|
-
* - {UniversalReceiver} event when notifying the `initialOwner`.
|
|
44
|
-
*/
|
|
45
|
-
function _initialize(address newOwner) internal virtual onlyInitializing {
|
|
46
|
-
if (msg.value != 0) {
|
|
47
|
-
emit UniversalReceiver(
|
|
48
|
-
msg.sender,
|
|
49
|
-
msg.value,
|
|
50
|
-
_TYPEID_LSP9_VALUE_RECEIVED,
|
|
51
|
-
"",
|
|
52
|
-
""
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
OwnableUnset._setOwner(newOwner);
|
|
56
|
-
|
|
57
|
-
// set key SupportedStandards:LSP9Vault
|
|
58
|
-
_setData(
|
|
59
|
-
_LSP9_SUPPORTED_STANDARDS_KEY,
|
|
60
|
-
_LSP9_SUPPORTED_STANDARDS_VALUE
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
newOwner.notifyUniversalReceiver(
|
|
64
|
-
_TYPEID_LSP9_OwnershipTransferred_RecipientNotification,
|
|
65
|
-
""
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
4
|
+
import "@lukso/lsp9-contracts/contracts/LSP9VaultInitAbstract.sol";
|
|
@@ -1,40 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import {LSP0ERC725Account} from "./LSP0ERC725Account/LSP0ERC725Account.sol";
|
|
6
|
-
|
|
7
|
-
// constants
|
|
8
|
-
import {
|
|
9
|
-
_LSP3_SUPPORTED_STANDARDS_KEY,
|
|
10
|
-
_LSP3_SUPPORTED_STANDARDS_VALUE
|
|
11
|
-
} from "./LSP3ProfileMetadata/LSP3Constants.sol";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @title implementation of a LUKSO's Universal Profile based on LSP3
|
|
15
|
-
* @author Fabian Vogelsteller <fabian@lukso.network>
|
|
16
|
-
* @dev Implementation of the ERC725Account + LSP1 universalReceiver
|
|
17
|
-
*/
|
|
18
|
-
contract UniversalProfile is LSP0ERC725Account {
|
|
19
|
-
/**
|
|
20
|
-
* @notice Deploying a UniversalProfile contract with owner set to address `initialOwner`.
|
|
21
|
-
*
|
|
22
|
-
* @dev Set `initialOwner` as the contract owner and the `SupportedStandards:LSP3Profile` data key in the ERC725Y data key/value store.
|
|
23
|
-
* - The `constructor` is payable and allows funding the contract on deployment.
|
|
24
|
-
* - The `initialOwner` will then be allowed to call protected functions marked with the `onlyOwner` modifier.
|
|
25
|
-
*
|
|
26
|
-
* @param initialOwner the owner of the contract
|
|
27
|
-
*
|
|
28
|
-
* @custom:events
|
|
29
|
-
* - {UniversalReceiver} event when funding the contract on deployment.
|
|
30
|
-
* - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}.
|
|
31
|
-
* - {DataChanged} event when setting the {_LSP3_SUPPORTED_STANDARDS_KEY}.
|
|
32
|
-
*/
|
|
33
|
-
constructor(address initialOwner) payable LSP0ERC725Account(initialOwner) {
|
|
34
|
-
// set data key SupportedStandards:LSP3Profile
|
|
35
|
-
_setData(
|
|
36
|
-
_LSP3_SUPPORTED_STANDARDS_KEY,
|
|
37
|
-
_LSP3_SUPPORTED_STANDARDS_VALUE
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
4
|
+
import "@lukso/universalprofile-contracts/contracts/UniversalProfile.sol";
|
|
@@ -1,42 +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 {UniversalProfileInitAbstract} from "./UniversalProfileInitAbstract.sol";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @title Deployable Proxy implementation of a LUKSO's Universal Profile based on LSP3
|
|
10
|
-
* @author Fabian Vogelsteller <fabian@lukso.network>
|
|
11
|
-
* @dev Implementation of the ERC725Account + LSP1 universalReceiver
|
|
12
|
-
*/
|
|
13
|
-
contract UniversalProfileInit is UniversalProfileInitAbstract, Version {
|
|
14
|
-
/**
|
|
15
|
-
* @notice deploying a `UniversalProfileInit` base contract to be used behind proxy
|
|
16
|
-
* @dev Locks the base contract on deployment, so that it cannot be initialized, owned and controlled by anyone after it has been deployed.
|
|
17
|
-
* This is intended so that the sole purpose of this contract is to be used as a base contract behind a proxy.
|
|
18
|
-
*/
|
|
19
|
-
constructor() {
|
|
20
|
-
_disableInitializers();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @notice Initializing a UniversalProfile contract with owner set to address `initialOwner`.
|
|
25
|
-
*
|
|
26
|
-
* @dev Set `initialOwner` as the contract owner and the `SupportedStandards:LSP3Profile` data key in the ERC725Y data key/value store.
|
|
27
|
-
* - The `initialize(address)` function is payable and allows funding the contract on initialization.
|
|
28
|
-
* - The `initialOwner` will then be allowed to call protected functions marked with the `onlyOwner` modifier.
|
|
29
|
-
*
|
|
30
|
-
* @param initialOwner the owner of the contract
|
|
31
|
-
*
|
|
32
|
-
* @custom:events
|
|
33
|
-
* - {UniversalReceiver} event when funding the contract on deployment.
|
|
34
|
-
* - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}.
|
|
35
|
-
* - {DataChanged} event when setting the {_LSP3_SUPPORTED_STANDARDS_KEY}.
|
|
36
|
-
*/
|
|
37
|
-
function initialize(
|
|
38
|
-
address initialOwner
|
|
39
|
-
) external payable virtual initializer {
|
|
40
|
-
UniversalProfileInitAbstract._initialize(initialOwner);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
4
|
+
import "@lukso/universalprofile-contracts/contracts/UniversalProfileInit.sol";
|
|
@@ -1,47 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
LSP0ERC725AccountInitAbstract
|
|
7
|
-
} from "./LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol";
|
|
8
|
-
|
|
9
|
-
// constants
|
|
10
|
-
import {
|
|
11
|
-
_LSP3_SUPPORTED_STANDARDS_KEY,
|
|
12
|
-
_LSP3_SUPPORTED_STANDARDS_VALUE
|
|
13
|
-
} from "./LSP3ProfileMetadata/LSP3Constants.sol";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @title Inheritable Proxy implementation of a LUKSO's Universal Profile based on LSP3
|
|
17
|
-
* @author Fabian Vogelsteller <fabian@lukso.network>
|
|
18
|
-
* @dev Implementation of the ERC725Account + LSP1 universalReceiver
|
|
19
|
-
*/
|
|
20
|
-
abstract contract UniversalProfileInitAbstract is
|
|
21
|
-
LSP0ERC725AccountInitAbstract
|
|
22
|
-
{
|
|
23
|
-
/**
|
|
24
|
-
* @dev Set `initialOwner` as the contract owner and the `SupportedStandards:LSP3Profile` data key in the ERC725Y data key/value store.
|
|
25
|
-
* The `initialOwner` will then be allowed to call protected functions marked with the `onlyOwner` modifier.
|
|
26
|
-
*
|
|
27
|
-
* @param initialOwner The owner of the contract.
|
|
28
|
-
*
|
|
29
|
-
* @custom:warning ERC725X & ERC725Y parent contracts are not initialised as they don't have non-zero initial state. If you decide to add non-zero initial state to any of those contracts, you must initialize them here.
|
|
30
|
-
*
|
|
31
|
-
* @custom:events
|
|
32
|
-
* - {UniversalReceiver} event when funding the contract on deployment.
|
|
33
|
-
* - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}.
|
|
34
|
-
* - {DataChanged} event when setting the {_LSP3_SUPPORTED_STANDARDS_KEY}.
|
|
35
|
-
*/
|
|
36
|
-
function _initialize(
|
|
37
|
-
address initialOwner
|
|
38
|
-
) internal virtual override onlyInitializing {
|
|
39
|
-
LSP0ERC725AccountInitAbstract._initialize(initialOwner);
|
|
40
|
-
|
|
41
|
-
// set data key SupportedStandards:LSP3Profile
|
|
42
|
-
_setData(
|
|
43
|
-
_LSP3_SUPPORTED_STANDARDS_KEY,
|
|
44
|
-
_LSP3_SUPPORTED_STANDARDS_VALUE
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
4
|
+
import "@lukso/universalprofile-contracts/contracts/UniversalProfileInitAbstract.sol";
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const lsp0Contracts = require('@lukso/lsp0-contracts');
|
|
4
|
+
const lsp1Contracts = require('@lukso/lsp1-contracts');
|
|
5
|
+
const lsp1delegateContracts = require('@lukso/lsp1delegate-contracts');
|
|
6
|
+
const lsp3Contracts = require('@lukso/lsp3-contracts');
|
|
7
|
+
const lsp4Contracts = require('@lukso/lsp4-contracts');
|
|
8
|
+
const lsp5Contracts = require('@lukso/lsp5-contracts');
|
|
9
|
+
const lsp6Contracts = require('@lukso/lsp6-contracts');
|
|
10
|
+
const lsp7Contracts = require('@lukso/lsp7-contracts');
|
|
11
|
+
const lsp8Contracts = require('@lukso/lsp8-contracts');
|
|
12
|
+
const lsp9Contracts = require('@lukso/lsp9-contracts');
|
|
13
|
+
const lsp10Contracts = require('@lukso/lsp10-contracts');
|
|
14
|
+
const lsp12Contracts = require('@lukso/lsp12-contracts');
|
|
15
|
+
const lsp14Contracts = require('@lukso/lsp14-contracts');
|
|
16
|
+
const lsp17contractextensionContracts = require('@lukso/lsp17contractextension-contracts');
|
|
17
|
+
const lsp20Contracts = require('@lukso/lsp20-contracts');
|
|
18
|
+
const lsp25Contracts = require('@lukso/lsp25-contracts');
|
|
19
|
+
|
|
20
|
+
const SupportedStandards = {
|
|
21
|
+
LSP3Profile: lsp3Contracts.LSP3SupportedStandard,
|
|
22
|
+
LSP4DigitalAsset: lsp4Contracts.LSP4SupportedStandard,
|
|
23
|
+
LSP9Vault: lsp9Contracts.LSP9SupportedStandard
|
|
24
|
+
};
|
|
25
|
+
const INTERFACE_IDS = {
|
|
26
|
+
ERC165: "0x01ffc9a7",
|
|
27
|
+
ERC1271: "0x1626ba7e",
|
|
28
|
+
ERC20: "0x36372b07",
|
|
29
|
+
ERC20Metadata: "0xa219a025",
|
|
30
|
+
ERC223: "0x87d43052",
|
|
31
|
+
ERC721: "0x80ac58cd",
|
|
32
|
+
ERC721Metadata: "0x5b5e139f",
|
|
33
|
+
ERC777: "0xe58e113c",
|
|
34
|
+
ERC1155: "0xd9b67a26",
|
|
35
|
+
ERC725X: "0x7545acac",
|
|
36
|
+
ERC725Y: "0x629aa694",
|
|
37
|
+
LSP0ERC725Account: lsp0Contracts.INTERFACE_ID_LSP0ERC725Account,
|
|
38
|
+
LSP1UniversalReceiver: lsp1Contracts.INTERFACE_ID_LSP1,
|
|
39
|
+
LSP1UniversalReceiverDelegate: lsp1delegateContracts.INTERFACE_ID_LSP1DELEGATE,
|
|
40
|
+
LSP6KeyManager: lsp6Contracts.INTERFACE_ID_LSP6KEYMANAGER,
|
|
41
|
+
LSP7DigitalAsset: lsp7Contracts.INTERFACE_ID_LSP7,
|
|
42
|
+
LSP8IdentifiableDigitalAsset: lsp8Contracts.INTERFACE_ID_LSP8,
|
|
43
|
+
LSP9Vault: lsp9Contracts.INTERFACE_ID_LSP9,
|
|
44
|
+
LSP14Ownable2Step: lsp14Contracts.INTERFACE_ID_LSP14,
|
|
45
|
+
LSP17Extendable: lsp17contractextensionContracts.INTERFACE_ID_LSP17Extendable,
|
|
46
|
+
LSP17Extension: lsp17contractextensionContracts.INTERFACE_ID_LSP17Extension,
|
|
47
|
+
LSP20CallVerification: lsp20Contracts.INTERFACE_ID_LSP20CallVerification,
|
|
48
|
+
LSP20CallVerifier: lsp20Contracts.INTERFACE_ID_LSP20CallVerifier,
|
|
49
|
+
LSP11BasicSocialRecovery: "0x049a28f1",
|
|
50
|
+
LSP25ExecuteRelayCall: lsp25Contracts.INTERFACE_ID_LSP25
|
|
51
|
+
};
|
|
52
|
+
const ERC725YDataKeys = {
|
|
53
|
+
LSP1: { ...lsp1Contracts.LSP1DataKeys },
|
|
54
|
+
LSP3: { ...lsp3Contracts.LSP3DataKeys },
|
|
55
|
+
LSP4: { ...lsp4Contracts.LSP4DataKeys },
|
|
56
|
+
LSP5: { ...lsp5Contracts.LSP5DataKeys },
|
|
57
|
+
LSP6: { ...lsp6Contracts.LSP6DataKeys },
|
|
58
|
+
LSP8: { ...lsp8Contracts.LSP8DataKeys },
|
|
59
|
+
LSP9: { ...lsp9Contracts.LSP9DataKeys },
|
|
60
|
+
LSP10: { ...lsp10Contracts.LSP10DataKeys },
|
|
61
|
+
LSP12: { ...lsp12Contracts.LSP12DataKeys },
|
|
62
|
+
LSP17: { ...lsp17contractextensionContracts.LSP17DataKeys }
|
|
63
|
+
};
|
|
64
|
+
const LSP1_TYPE_IDS = {
|
|
65
|
+
...lsp0Contracts.LSP0_TYPE_IDS,
|
|
66
|
+
...lsp7Contracts.LSP7_TYPE_IDS,
|
|
67
|
+
...lsp8Contracts.LSP8_TYPE_IDS,
|
|
68
|
+
...lsp9Contracts.LSP9_TYPE_IDS,
|
|
69
|
+
...lsp14Contracts.LSP14_TYPE_IDS
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
exports.ERC725YDataKeys = ERC725YDataKeys;
|
|
73
|
+
exports.INTERFACE_IDS = INTERFACE_IDS;
|
|
74
|
+
exports.LSP1_TYPE_IDS = LSP1_TYPE_IDS;
|
|
75
|
+
exports.SupportedStandards = SupportedStandards;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as _lukso_lsp2_contracts from '@lukso/lsp2-contracts';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Set of constants values as defined in each LUKSO Standards Proposals (LSPs).
|
|
5
|
+
* @see https://github.com/lukso-network/LIPs/tree/main/LSPs
|
|
6
|
+
*/
|
|
7
|
+
declare const SupportedStandards: {
|
|
8
|
+
LSP3Profile: LSPSupportedStandard;
|
|
9
|
+
LSP4DigitalAsset: LSPSupportedStandard;
|
|
10
|
+
LSP9Vault: LSPSupportedStandard;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @dev ERC165 interface IDs for the LSP interface standards + some backward compatible ERC token standards.
|
|
14
|
+
* These `bytes4` values can be used to detect if a contract implements a specific interface
|
|
15
|
+
* with `supportsInterface(interfaceId)`.
|
|
16
|
+
*/
|
|
17
|
+
declare const INTERFACE_IDS: {
|
|
18
|
+
ERC165: string;
|
|
19
|
+
ERC1271: string;
|
|
20
|
+
ERC20: string;
|
|
21
|
+
ERC20Metadata: string;
|
|
22
|
+
ERC223: string;
|
|
23
|
+
ERC721: string;
|
|
24
|
+
ERC721Metadata: string;
|
|
25
|
+
ERC777: string;
|
|
26
|
+
ERC1155: string;
|
|
27
|
+
ERC725X: string;
|
|
28
|
+
ERC725Y: string;
|
|
29
|
+
LSP0ERC725Account: string;
|
|
30
|
+
LSP1UniversalReceiver: string;
|
|
31
|
+
LSP1UniversalReceiverDelegate: string;
|
|
32
|
+
LSP6KeyManager: string;
|
|
33
|
+
LSP7DigitalAsset: string;
|
|
34
|
+
LSP8IdentifiableDigitalAsset: string;
|
|
35
|
+
LSP9Vault: string;
|
|
36
|
+
LSP14Ownable2Step: string;
|
|
37
|
+
LSP17Extendable: string;
|
|
38
|
+
LSP17Extension: string;
|
|
39
|
+
LSP20CallVerification: string;
|
|
40
|
+
LSP20CallVerifier: string;
|
|
41
|
+
LSP11BasicSocialRecovery: string;
|
|
42
|
+
LSP25ExecuteRelayCall: string;
|
|
43
|
+
};
|
|
44
|
+
type LSPSupportedStandard = {
|
|
45
|
+
key: string;
|
|
46
|
+
value: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @dev list of ERC725Y Metadata keys from the LSP standards.
|
|
50
|
+
* @see https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md
|
|
51
|
+
*/
|
|
52
|
+
declare const ERC725YDataKeys: {
|
|
53
|
+
LSP1: {
|
|
54
|
+
LSP1UniversalReceiverDelegatePrefix: string;
|
|
55
|
+
LSP1UniversalReceiverDelegate: string;
|
|
56
|
+
};
|
|
57
|
+
LSP3: {
|
|
58
|
+
SupportedStandards_LSP3: string;
|
|
59
|
+
LSP3Profile: string;
|
|
60
|
+
};
|
|
61
|
+
LSP4: {
|
|
62
|
+
SupportedStandards_LSP4: string;
|
|
63
|
+
LSP4TokenName: string;
|
|
64
|
+
LSP4TokenSymbol: string;
|
|
65
|
+
LSP4TokenType: string;
|
|
66
|
+
LSP4Metadata: string;
|
|
67
|
+
LSP4CreatorsMap: string;
|
|
68
|
+
'LSP4Creators[]': _lukso_lsp2_contracts.LSP2ArrayKey;
|
|
69
|
+
};
|
|
70
|
+
LSP5: {
|
|
71
|
+
LSP5ReceivedAssetsMap: string;
|
|
72
|
+
'LSP5ReceivedAssets[]': _lukso_lsp2_contracts.LSP2ArrayKey;
|
|
73
|
+
};
|
|
74
|
+
LSP6: {
|
|
75
|
+
'AddressPermissions[]': _lukso_lsp2_contracts.LSP2ArrayKey;
|
|
76
|
+
AddressPermissionsPrefix: string;
|
|
77
|
+
'AddressPermissions:Permissions': string;
|
|
78
|
+
'AddressPermissions:AllowedERC725YDataKeys': string;
|
|
79
|
+
'AddressPermissions:AllowedCalls': string;
|
|
80
|
+
};
|
|
81
|
+
LSP8: {
|
|
82
|
+
LSP8TokenIdFormat: string;
|
|
83
|
+
LSP8TokenMetadataBaseURI: string;
|
|
84
|
+
LSP8ReferenceContract: string;
|
|
85
|
+
};
|
|
86
|
+
LSP9: {
|
|
87
|
+
SupportedStandards_LSP9: string;
|
|
88
|
+
};
|
|
89
|
+
LSP10: {
|
|
90
|
+
LSP10VaultsMap: string;
|
|
91
|
+
'LSP10Vaults[]': _lukso_lsp2_contracts.LSP2ArrayKey;
|
|
92
|
+
};
|
|
93
|
+
LSP12: {
|
|
94
|
+
LSP12IssuedAssetsMap: string;
|
|
95
|
+
'LSP12IssuedAssets[]': _lukso_lsp2_contracts.LSP2ArrayKey;
|
|
96
|
+
};
|
|
97
|
+
LSP17: {
|
|
98
|
+
LSP17ExtensionPrefix: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
declare const LSP1_TYPE_IDS: {
|
|
102
|
+
LSP14OwnershipTransferStarted: string;
|
|
103
|
+
LSP14OwnershipTransferred_SenderNotification: string;
|
|
104
|
+
LSP14OwnershipTransferred_RecipientNotification: string;
|
|
105
|
+
LSP9ValueReceived: string;
|
|
106
|
+
LSP9OwnershipTransferStarted: string;
|
|
107
|
+
LSP9OwnershipTransferred_SenderNotification: string;
|
|
108
|
+
LSP9OwnershipTransferred_RecipientNotification: string;
|
|
109
|
+
LSP8Tokens_SenderNotification: string;
|
|
110
|
+
LSP8Tokens_RecipientNotification: string;
|
|
111
|
+
LSP8Tokens_OperatorNotification: string;
|
|
112
|
+
LSP7Tokens_SenderNotification: string;
|
|
113
|
+
LSP7Tokens_RecipientNotification: string;
|
|
114
|
+
LSP7Tokens_OperatorNotification: string;
|
|
115
|
+
LSP0ValueReceived: string;
|
|
116
|
+
LSP0OwnershipTransferStarted: string;
|
|
117
|
+
LSP0OwnershipTransferred_SenderNotification: string;
|
|
118
|
+
LSP0OwnershipTransferred_RecipientNotification: string;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export { ERC725YDataKeys, INTERFACE_IDS, LSP1_TYPE_IDS, type LSPSupportedStandard, SupportedStandards };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as _lukso_lsp2_contracts from '@lukso/lsp2-contracts';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Set of constants values as defined in each LUKSO Standards Proposals (LSPs).
|
|
5
|
+
* @see https://github.com/lukso-network/LIPs/tree/main/LSPs
|
|
6
|
+
*/
|
|
7
|
+
declare const SupportedStandards: {
|
|
8
|
+
LSP3Profile: LSPSupportedStandard;
|
|
9
|
+
LSP4DigitalAsset: LSPSupportedStandard;
|
|
10
|
+
LSP9Vault: LSPSupportedStandard;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @dev ERC165 interface IDs for the LSP interface standards + some backward compatible ERC token standards.
|
|
14
|
+
* These `bytes4` values can be used to detect if a contract implements a specific interface
|
|
15
|
+
* with `supportsInterface(interfaceId)`.
|
|
16
|
+
*/
|
|
17
|
+
declare const INTERFACE_IDS: {
|
|
18
|
+
ERC165: string;
|
|
19
|
+
ERC1271: string;
|
|
20
|
+
ERC20: string;
|
|
21
|
+
ERC20Metadata: string;
|
|
22
|
+
ERC223: string;
|
|
23
|
+
ERC721: string;
|
|
24
|
+
ERC721Metadata: string;
|
|
25
|
+
ERC777: string;
|
|
26
|
+
ERC1155: string;
|
|
27
|
+
ERC725X: string;
|
|
28
|
+
ERC725Y: string;
|
|
29
|
+
LSP0ERC725Account: string;
|
|
30
|
+
LSP1UniversalReceiver: string;
|
|
31
|
+
LSP1UniversalReceiverDelegate: string;
|
|
32
|
+
LSP6KeyManager: string;
|
|
33
|
+
LSP7DigitalAsset: string;
|
|
34
|
+
LSP8IdentifiableDigitalAsset: string;
|
|
35
|
+
LSP9Vault: string;
|
|
36
|
+
LSP14Ownable2Step: string;
|
|
37
|
+
LSP17Extendable: string;
|
|
38
|
+
LSP17Extension: string;
|
|
39
|
+
LSP20CallVerification: string;
|
|
40
|
+
LSP20CallVerifier: string;
|
|
41
|
+
LSP11BasicSocialRecovery: string;
|
|
42
|
+
LSP25ExecuteRelayCall: string;
|
|
43
|
+
};
|
|
44
|
+
type LSPSupportedStandard = {
|
|
45
|
+
key: string;
|
|
46
|
+
value: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @dev list of ERC725Y Metadata keys from the LSP standards.
|
|
50
|
+
* @see https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md
|
|
51
|
+
*/
|
|
52
|
+
declare const ERC725YDataKeys: {
|
|
53
|
+
LSP1: {
|
|
54
|
+
LSP1UniversalReceiverDelegatePrefix: string;
|
|
55
|
+
LSP1UniversalReceiverDelegate: string;
|
|
56
|
+
};
|
|
57
|
+
LSP3: {
|
|
58
|
+
SupportedStandards_LSP3: string;
|
|
59
|
+
LSP3Profile: string;
|
|
60
|
+
};
|
|
61
|
+
LSP4: {
|
|
62
|
+
SupportedStandards_LSP4: string;
|
|
63
|
+
LSP4TokenName: string;
|
|
64
|
+
LSP4TokenSymbol: string;
|
|
65
|
+
LSP4TokenType: string;
|
|
66
|
+
LSP4Metadata: string;
|
|
67
|
+
LSP4CreatorsMap: string;
|
|
68
|
+
'LSP4Creators[]': _lukso_lsp2_contracts.LSP2ArrayKey;
|
|
69
|
+
};
|
|
70
|
+
LSP5: {
|
|
71
|
+
LSP5ReceivedAssetsMap: string;
|
|
72
|
+
'LSP5ReceivedAssets[]': _lukso_lsp2_contracts.LSP2ArrayKey;
|
|
73
|
+
};
|
|
74
|
+
LSP6: {
|
|
75
|
+
'AddressPermissions[]': _lukso_lsp2_contracts.LSP2ArrayKey;
|
|
76
|
+
AddressPermissionsPrefix: string;
|
|
77
|
+
'AddressPermissions:Permissions': string;
|
|
78
|
+
'AddressPermissions:AllowedERC725YDataKeys': string;
|
|
79
|
+
'AddressPermissions:AllowedCalls': string;
|
|
80
|
+
};
|
|
81
|
+
LSP8: {
|
|
82
|
+
LSP8TokenIdFormat: string;
|
|
83
|
+
LSP8TokenMetadataBaseURI: string;
|
|
84
|
+
LSP8ReferenceContract: string;
|
|
85
|
+
};
|
|
86
|
+
LSP9: {
|
|
87
|
+
SupportedStandards_LSP9: string;
|
|
88
|
+
};
|
|
89
|
+
LSP10: {
|
|
90
|
+
LSP10VaultsMap: string;
|
|
91
|
+
'LSP10Vaults[]': _lukso_lsp2_contracts.LSP2ArrayKey;
|
|
92
|
+
};
|
|
93
|
+
LSP12: {
|
|
94
|
+
LSP12IssuedAssetsMap: string;
|
|
95
|
+
'LSP12IssuedAssets[]': _lukso_lsp2_contracts.LSP2ArrayKey;
|
|
96
|
+
};
|
|
97
|
+
LSP17: {
|
|
98
|
+
LSP17ExtensionPrefix: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
declare const LSP1_TYPE_IDS: {
|
|
102
|
+
LSP14OwnershipTransferStarted: string;
|
|
103
|
+
LSP14OwnershipTransferred_SenderNotification: string;
|
|
104
|
+
LSP14OwnershipTransferred_RecipientNotification: string;
|
|
105
|
+
LSP9ValueReceived: string;
|
|
106
|
+
LSP9OwnershipTransferStarted: string;
|
|
107
|
+
LSP9OwnershipTransferred_SenderNotification: string;
|
|
108
|
+
LSP9OwnershipTransferred_RecipientNotification: string;
|
|
109
|
+
LSP8Tokens_SenderNotification: string;
|
|
110
|
+
LSP8Tokens_RecipientNotification: string;
|
|
111
|
+
LSP8Tokens_OperatorNotification: string;
|
|
112
|
+
LSP7Tokens_SenderNotification: string;
|
|
113
|
+
LSP7Tokens_RecipientNotification: string;
|
|
114
|
+
LSP7Tokens_OperatorNotification: string;
|
|
115
|
+
LSP0ValueReceived: string;
|
|
116
|
+
LSP0OwnershipTransferStarted: string;
|
|
117
|
+
LSP0OwnershipTransferred_SenderNotification: string;
|
|
118
|
+
LSP0OwnershipTransferred_RecipientNotification: string;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export { ERC725YDataKeys, INTERFACE_IDS, LSP1_TYPE_IDS, type LSPSupportedStandard, SupportedStandards };
|