@lukso/lsp-smart-contracts 0.13.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 -191
- 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 +85 -48
- package/artifacts/LSP8CappedSupplyInitAbstract.json +85 -48
- package/artifacts/LSP8IdentifiableDigitalAsset.json +85 -48
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +85 -48
- package/artifacts/LSP8Mintable.json +88 -51
- package/artifacts/LSP8MintableInit.json +88 -51
- 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 -31
- 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 -326
- 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 +2 -28
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +2 -22
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +2 -84
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +2 -87
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +2 -68
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +2 -63
- package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +1 -31
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +2 -59
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +2 -42
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +2 -61
- 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,120 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import {ILSP20CallVerifier as ILSP20} from "./ILSP20CallVerifier.sol";
|
|
6
|
-
|
|
7
|
-
// errors
|
|
8
|
-
import {
|
|
9
|
-
LSP20CallVerificationFailed,
|
|
10
|
-
LSP20CallingVerifierFailed,
|
|
11
|
-
LSP20EOACannotVerifyCall
|
|
12
|
-
} from "./LSP20Errors.sol";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @title Implementation of a contract calling the verification functions according to LSP20 - Call Verification standard.
|
|
16
|
-
*
|
|
17
|
-
* @dev Module to be inherited used to verify the execution of functions according to a verifier address.
|
|
18
|
-
* Verification can happen before or after execution based on a returnedStatus.
|
|
19
|
-
*/
|
|
20
|
-
abstract contract LSP20CallVerification {
|
|
21
|
-
/**
|
|
22
|
-
* @dev Calls {lsp20VerifyCall} function on the logicVerifier.
|
|
23
|
-
*
|
|
24
|
-
* @custom:info
|
|
25
|
-
* - Reverts in case the value returned does not match the returned status (lsp20VerifyCall selector).
|
|
26
|
-
* - Returns whether a verification after the execution should happen based on the last byte of the `returnedStatus`.
|
|
27
|
-
* - Reverts with no reason if the data returned by `ILSP20(logicVerifier).lsp20VerifyCall(...)` cannot be decoded (_e.g:_ any other data type besides `bytes4`).
|
|
28
|
-
* See this link for more info: https://forum.soliditylang.org/t/call-for-feedback-the-future-of-try-catch-in-solidity/1497.
|
|
29
|
-
*/
|
|
30
|
-
function _verifyCall(
|
|
31
|
-
address logicVerifier
|
|
32
|
-
) internal virtual returns (bool verifyAfter) {
|
|
33
|
-
if (logicVerifier.code.length == 0) {
|
|
34
|
-
revert LSP20EOACannotVerifyCall(logicVerifier);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Reverts with no reason if the returned data type is not a `bytes4` value
|
|
38
|
-
try
|
|
39
|
-
ILSP20(logicVerifier).lsp20VerifyCall(
|
|
40
|
-
msg.sender,
|
|
41
|
-
address(this),
|
|
42
|
-
msg.sender,
|
|
43
|
-
msg.value,
|
|
44
|
-
msg.data
|
|
45
|
-
)
|
|
46
|
-
returns (bytes4 returnedStatus) {
|
|
47
|
-
if (
|
|
48
|
-
bytes3(returnedStatus) !=
|
|
49
|
-
bytes3(ILSP20.lsp20VerifyCall.selector)
|
|
50
|
-
) {
|
|
51
|
-
revert LSP20CallVerificationFailed({
|
|
52
|
-
postCall: false,
|
|
53
|
-
returnedStatus: returnedStatus
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return returnedStatus[3] == 0x01;
|
|
58
|
-
} catch (bytes memory errorData) {
|
|
59
|
-
_revertWithLSP20DefaultError(false, errorData);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @dev Calls {lsp20VerifyCallResult} function on the logicVerifier.
|
|
65
|
-
*
|
|
66
|
-
* @custom:info
|
|
67
|
-
* - Reverts in case the value returned does not match the returned status (lsp20VerifyCallResult selector).
|
|
68
|
-
* - Reverts with no reason if the data returned by `ILSP20(logicVerifier).lsp20VerifyCallResult(...)` cannot be decoded (_e.g:_ any other data type besides `bytes4`).
|
|
69
|
-
* See this link for more info: https://forum.soliditylang.org/t/call-for-feedback-the-future-of-try-catch-in-solidity/1497.
|
|
70
|
-
*/
|
|
71
|
-
function _verifyCallResult(
|
|
72
|
-
address logicVerifier,
|
|
73
|
-
bytes memory callResult
|
|
74
|
-
) internal virtual {
|
|
75
|
-
// Reverts with no reason if the returned data type is not a `bytes4` value
|
|
76
|
-
try
|
|
77
|
-
ILSP20(logicVerifier).lsp20VerifyCallResult(
|
|
78
|
-
keccak256(
|
|
79
|
-
abi.encodePacked(
|
|
80
|
-
msg.sender,
|
|
81
|
-
address(this),
|
|
82
|
-
msg.sender,
|
|
83
|
-
msg.value,
|
|
84
|
-
msg.data
|
|
85
|
-
)
|
|
86
|
-
),
|
|
87
|
-
callResult
|
|
88
|
-
)
|
|
89
|
-
returns (bytes4 returnedStatus) {
|
|
90
|
-
if (returnedStatus != ILSP20.lsp20VerifyCallResult.selector) {
|
|
91
|
-
revert LSP20CallVerificationFailed({
|
|
92
|
-
postCall: true,
|
|
93
|
-
returnedStatus: returnedStatus
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return;
|
|
98
|
-
} catch (bytes memory errorData) {
|
|
99
|
-
_revertWithLSP20DefaultError(true, errorData);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function _revertWithLSP20DefaultError(
|
|
104
|
-
bool postCall,
|
|
105
|
-
bytes memory returnedData
|
|
106
|
-
) internal pure virtual {
|
|
107
|
-
// Look for revert reason and bubble it up if present
|
|
108
|
-
if (returnedData.length != 0) {
|
|
109
|
-
// The easiest way to bubble the revert reason is using memory via assembly
|
|
110
|
-
// solhint-disable no-inline-assembly
|
|
111
|
-
/// @solidity memory-safe-assembly
|
|
112
|
-
assembly {
|
|
113
|
-
let returndata_size := mload(returnedData)
|
|
114
|
-
revert(add(32, returnedData), returndata_size)
|
|
115
|
-
}
|
|
116
|
-
} else {
|
|
117
|
-
revert LSP20CallingVerifierFailed(postCall);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
4
|
+
import "@lukso/lsp20-contracts/contracts/LSP20CallVerification.sol";
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
bytes4 constant _INTERFACEID_LSP20_CALL_VERIFICATION = 0x1a0eb6a5;
|
|
6
|
-
|
|
7
|
-
// `lsp20VerifyCall(address,address,address,uint256,bytes)` selector XOR `lsp20VerifyCallResult(bytes32,bytes)` selector
|
|
8
|
-
bytes4 constant _INTERFACEID_LSP20_CALL_VERIFIER = 0x0d6ecac7;
|
|
9
|
-
|
|
10
|
-
// bytes4(bytes.concat(bytes3(ILSP20.lsp20VerifyCall.selector), hex"01"))
|
|
11
|
-
bytes4 constant _LSP20_VERIFY_CALL_SUCCESS_VALUE_WITH_POST_VERIFICATION = 0xde928f01;
|
|
12
|
-
|
|
13
|
-
// bytes4(bytes.concat(bytes3(ILSP20.lsp20VerifyCall.selector), hex"00"))
|
|
14
|
-
bytes4 constant _LSP20_VERIFY_CALL_SUCCESS_VALUE_WITHOUT_POST_VERIFICATION = 0xde928f00;
|
|
15
|
-
|
|
16
|
-
// bytes4(ILSP20.lsp20VerifyCallResult.selector)
|
|
17
|
-
bytes4 constant _LSP20_VERIFY_CALL_RESULT_SUCCESS_VALUE = 0xd3fc45d3;
|
|
4
|
+
import "@lukso/lsp20-contracts/contracts/LSP20Constants.sol";
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* @dev reverts when the call to the owner fail with no revert reason
|
|
6
|
-
* @param postCall True if the execution call was done, False otherwise
|
|
7
|
-
*/
|
|
8
|
-
error LSP20CallingVerifierFailed(bool postCall);
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @dev reverts when the call to the owner does not return the LSP20 success value
|
|
12
|
-
* @param postCall True if the execution call was done, False otherwise
|
|
13
|
-
* @param returnedStatus The bytes4 decoded data returned by the logic verifier.
|
|
14
|
-
*/
|
|
15
|
-
error LSP20CallVerificationFailed(bool postCall, bytes4 returnedStatus);
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @dev Reverts when the logic verifier is an Externally Owned Account (EOA) that cannot return the LSP20 success value.
|
|
19
|
-
* @param logicVerifier The address of the logic verifier
|
|
20
|
-
*/
|
|
21
|
-
error LSP20EOACannotVerifyCall(address logicVerifier);
|
|
4
|
+
import "@lukso/lsp20-contracts/contracts/LSP20Errors.sol";
|
|
@@ -1,192 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @dev Emitted when a primary and secondary contract are deployed.
|
|
7
|
-
* @param primaryContract Address of the deployed primary contract.
|
|
8
|
-
* @param secondaryContract Address of the deployed secondary contract.
|
|
9
|
-
* @param primaryContractDeployment Parameters used for the primary contract deployment.
|
|
10
|
-
* @param secondaryContractDeployment Parameters used for the secondary contract deployment.
|
|
11
|
-
* @param postDeploymentModule Address of the post-deployment module.
|
|
12
|
-
* @param postDeploymentModuleCalldata Calldata passed to the post-deployment module.
|
|
13
|
-
*/
|
|
14
|
-
event DeployedContracts(
|
|
15
|
-
address indexed primaryContract,
|
|
16
|
-
address indexed secondaryContract,
|
|
17
|
-
PrimaryContractDeployment primaryContractDeployment,
|
|
18
|
-
SecondaryContractDeployment secondaryContractDeployment,
|
|
19
|
-
address postDeploymentModule,
|
|
20
|
-
bytes postDeploymentModuleCalldata
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @dev Emitted when proxies of a primary and secondary contract are deployed.
|
|
25
|
-
* @param primaryContract Address of the deployed primary contract proxy.
|
|
26
|
-
* @param secondaryContract Address of the deployed secondary contract proxy.
|
|
27
|
-
* @param primaryContractDeploymentInit Parameters used for the primary contract proxy deployment.
|
|
28
|
-
* @param secondaryContractDeploymentInit Parameters used for the secondary contract proxy deployment.
|
|
29
|
-
* @param postDeploymentModule Address of the post-deployment module.
|
|
30
|
-
* @param postDeploymentModuleCalldata Calldata passed to the post-deployment module.
|
|
31
|
-
*/
|
|
32
|
-
event DeployedERC1167Proxies(
|
|
33
|
-
address indexed primaryContract,
|
|
34
|
-
address indexed secondaryContract,
|
|
35
|
-
PrimaryContractDeploymentInit primaryContractDeploymentInit,
|
|
36
|
-
SecondaryContractDeploymentInit secondaryContractDeploymentInit,
|
|
37
|
-
address postDeploymentModule,
|
|
38
|
-
bytes postDeploymentModuleCalldata
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @param salt A unique value used to ensure each created proxies are unique (used for deterministic deployments).
|
|
43
|
-
* @param fundingAmount The value to be sent with the deployment transaction.
|
|
44
|
-
* @param creationBytecode The bytecode of the contract with the constructor params.
|
|
45
|
-
*/
|
|
46
|
-
struct PrimaryContractDeployment {
|
|
47
|
-
bytes32 salt;
|
|
48
|
-
uint256 fundingAmount;
|
|
49
|
-
bytes creationBytecode;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @param fundingAmount The value to be sent with the deployment transaction.
|
|
54
|
-
* @param creationBytecode The bytecode for contract creation, up to but not including the primary contract address (if it needs to be appended).
|
|
55
|
-
* @param addPrimaryContractAddress If set to `true`, this will append the primary contract's address + the `extraConstructorParams` to the `creationBytecode`.
|
|
56
|
-
* @param extraConstructorParams Params to be appended to the `creationBytecode` (after the primary contract address) if `addPrimaryContractAddress` is set to `true`.
|
|
57
|
-
*/
|
|
58
|
-
struct SecondaryContractDeployment {
|
|
59
|
-
uint256 fundingAmount;
|
|
60
|
-
bytes creationBytecode;
|
|
61
|
-
bool addPrimaryContractAddress;
|
|
62
|
-
bytes extraConstructorParams;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* @param salt A unique value used to ensure each created proxies are unique. (Can be used to deploy the contract at a desired address.)
|
|
67
|
-
* @param fundingAmount The value to be sent with the deployment transaction.
|
|
68
|
-
* @param implementationContract The address of the contract that will be used as a base contract for the proxy.
|
|
69
|
-
* @param initializationCalldata The calldata used to initialize the contract.
|
|
70
|
-
*/
|
|
71
|
-
struct PrimaryContractDeploymentInit {
|
|
72
|
-
bytes32 salt;
|
|
73
|
-
uint256 fundingAmount;
|
|
74
|
-
address implementationContract;
|
|
75
|
-
bytes initializationCalldata;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @param fundingAmount The value to be sent with the deployment transaction.
|
|
80
|
-
* @param implementationContract The address of the contract that will be used as a base contract for the proxy.
|
|
81
|
-
* @param initializationCalldata Initialization calldata up to, but not including, the primary contract address (if it needs to be appended).
|
|
82
|
-
* @param addPrimaryContractAddress If set to `true`, this will append the primary contract's address + the `extraInitializationParams` to the `initializationCalldata`.
|
|
83
|
-
* @param extraInitializationParams Params to be appended to the `initializationCalldata` (after the primary contract address) if `addPrimaryContractAddress` is set to `true`
|
|
84
|
-
*/
|
|
85
|
-
struct SecondaryContractDeploymentInit {
|
|
86
|
-
uint256 fundingAmount;
|
|
87
|
-
address implementationContract;
|
|
88
|
-
bytes initializationCalldata;
|
|
89
|
-
bool addPrimaryContractAddress;
|
|
90
|
-
bytes extraInitializationParams;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* @dev Deploys a primary and a secondary linked contract.
|
|
95
|
-
* @notice Contracts deployed. Contract Address: `primaryContractAddress`. Primary Contract Address: `primaryContractAddress`
|
|
96
|
-
*
|
|
97
|
-
* @param primaryContractDeployment Contains the needed parameter to deploy a contract. (`salt`, `fundingAmount`, `creationBytecode`)
|
|
98
|
-
* @param secondaryContractDeployment Contains the needed parameter to deploy the secondary contract. (`fundingAmount`, `creationBytecode`, `addPrimaryContractAddress`, `extraConstructorParams`)
|
|
99
|
-
* @param postDeploymentModule The optional module to be executed after deployment
|
|
100
|
-
* @param postDeploymentModuleCalldata The data to be passed to the post deployment module
|
|
101
|
-
*
|
|
102
|
-
* @return primaryContractAddress The address of the primary contract.
|
|
103
|
-
* @return secondaryContractAddress The address of the secondary contract.
|
|
104
|
-
*/
|
|
105
|
-
function deployContracts(
|
|
106
|
-
PrimaryContractDeployment calldata primaryContractDeployment,
|
|
107
|
-
SecondaryContractDeployment calldata secondaryContractDeployment,
|
|
108
|
-
address postDeploymentModule,
|
|
109
|
-
bytes calldata postDeploymentModuleCalldata
|
|
110
|
-
)
|
|
111
|
-
external
|
|
112
|
-
payable
|
|
113
|
-
returns (
|
|
114
|
-
address primaryContractAddress,
|
|
115
|
-
address secondaryContractAddress
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @dev Deploys ERC1167 proxies of a primary contract and a secondary linked contract
|
|
120
|
-
* @notice Contract proxies deployed. Primary Proxy Address: `primaryContractAddress`. Secondary Contract Proxy Address: `secondaryContractAddress`
|
|
121
|
-
*
|
|
122
|
-
* @param primaryContractDeploymentInit Contains the needed parameters to deploy a proxy contract. (`salt`, `fundingAmount`, `implementationContract`, `initializationCalldata`)
|
|
123
|
-
* @param secondaryContractDeploymentInit Contains the needed parameters to deploy the secondary proxy contract. (`fundingAmount`, `implementationContract`, `initializationCalldata`, `addPrimaryContractAddress`, `extraInitializationParams`)
|
|
124
|
-
* @param postDeploymentModule The optional module to be executed after deployment.
|
|
125
|
-
* @param postDeploymentModuleCalldata The data to be passed to the post deployment module.
|
|
126
|
-
*
|
|
127
|
-
* @return primaryContractAddress The address of the deployed primary contract proxy
|
|
128
|
-
* @return secondaryContractAddress The address of the deployed secondary contract proxy
|
|
129
|
-
*/
|
|
130
|
-
function deployERC1167Proxies(
|
|
131
|
-
PrimaryContractDeploymentInit calldata primaryContractDeploymentInit,
|
|
132
|
-
SecondaryContractDeploymentInit
|
|
133
|
-
calldata secondaryContractDeploymentInit,
|
|
134
|
-
address postDeploymentModule,
|
|
135
|
-
bytes calldata postDeploymentModuleCalldata
|
|
136
|
-
)
|
|
137
|
-
external
|
|
138
|
-
payable
|
|
139
|
-
returns (
|
|
140
|
-
address primaryContractAddress,
|
|
141
|
-
address secondaryContractAddress
|
|
142
|
-
);
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* @dev Computes the addresses of a primary contract and a secondary linked contract
|
|
146
|
-
*
|
|
147
|
-
* @param primaryContractDeployment Contains the needed parameter to deploy the primary contract. (`salt`, `fundingAmount`, `creationBytecode`)
|
|
148
|
-
* @param secondaryContractDeployment Contains the needed parameter to deploy the secondary contract. (`fundingAmount`, `creationBytecode`, `addPrimaryContractAddress`, `extraConstructorParams`)
|
|
149
|
-
* @param postDeploymentModule The optional module to be executed after deployment
|
|
150
|
-
* @param postDeploymentModuleCalldata The data to be passed to the post deployment module
|
|
151
|
-
*
|
|
152
|
-
* @return primaryContractAddress The address of the deployed primary contract.
|
|
153
|
-
* @return secondaryContractAddress The address of the deployed secondary contract.
|
|
154
|
-
*/
|
|
155
|
-
function computeAddresses(
|
|
156
|
-
PrimaryContractDeployment calldata primaryContractDeployment,
|
|
157
|
-
SecondaryContractDeployment calldata secondaryContractDeployment,
|
|
158
|
-
address postDeploymentModule,
|
|
159
|
-
bytes calldata postDeploymentModuleCalldata
|
|
160
|
-
)
|
|
161
|
-
external
|
|
162
|
-
view
|
|
163
|
-
returns (
|
|
164
|
-
address primaryContractAddress,
|
|
165
|
-
address secondaryContractAddress
|
|
166
|
-
);
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* @dev Computes the addresses of a primary and a secondary linked contracts ERC1167 proxies to be created
|
|
170
|
-
*
|
|
171
|
-
* @param primaryContractDeploymentInit Contains the needed parameters to deploy a primary proxy contract. (`salt`, `fundingAmount`, `implementationContract`, `initializationCalldata`)
|
|
172
|
-
* @param secondaryContractDeploymentInit Contains the needed parameters to deploy the secondary proxy contract. (`fundingAmount`, `implementationContract`, `initializationCalldata`, `addPrimaryContractAddress`, `extraInitializationParams`)
|
|
173
|
-
* @param postDeploymentModule The optional module to be executed after deployment.
|
|
174
|
-
* @param postDeploymentModuleCalldata The data to be passed to the post deployment module.
|
|
175
|
-
*
|
|
176
|
-
* @return primaryContractAddress The address of the deployed primary contract proxy
|
|
177
|
-
* @return secondaryContractAddress The address of the deployed secondary contract proxy
|
|
178
|
-
*/
|
|
179
|
-
function computeERC1167Addresses(
|
|
180
|
-
PrimaryContractDeploymentInit calldata primaryContractDeploymentInit,
|
|
181
|
-
SecondaryContractDeploymentInit
|
|
182
|
-
calldata secondaryContractDeploymentInit,
|
|
183
|
-
address postDeploymentModule,
|
|
184
|
-
bytes calldata postDeploymentModuleCalldata
|
|
185
|
-
)
|
|
186
|
-
external
|
|
187
|
-
view
|
|
188
|
-
returns (
|
|
189
|
-
address primaryContractAddress,
|
|
190
|
-
address secondaryContractAddress
|
|
191
|
-
);
|
|
192
|
-
}
|
|
4
|
+
import "@lukso/lsp23-contracts/contracts/ILSP23LinkedContractsFactory.sol";
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @dev Executes post-deployment logic for the primary and secondary contracts.
|
|
7
|
-
* @notice This function can be used to perform any additional setup or configuration after the primary and secondary contracts have been deployed.
|
|
8
|
-
*
|
|
9
|
-
* @param primaryContract The address of the deployed primary contract.
|
|
10
|
-
* @param secondaryContract The address of the deployed secondary contract.
|
|
11
|
-
* @param calldataToPostDeploymentModule Calldata to be passed for the post-deployment execution.
|
|
12
|
-
*/
|
|
13
|
-
function executePostDeployment(
|
|
14
|
-
address primaryContract,
|
|
15
|
-
address secondaryContract,
|
|
16
|
-
bytes calldata calldataToPostDeploymentModule
|
|
17
|
-
) external;
|
|
18
|
-
}
|
|
4
|
+
import "@lukso/lsp23-contracts/contracts/IPostDeploymentModule.sol";
|
|
@@ -1,24 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* @dev Reverts when the `msg.value` sent is not equal to the sum of value used for the deployment of the contract & its owner contract.
|
|
6
|
-
* @notice Invalid value sent.
|
|
7
|
-
*/
|
|
8
|
-
error InvalidValueSum();
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @dev Reverts when the deployment & intialization of the contract has failed.
|
|
12
|
-
* @notice Failed to deploy & initialize the Primary Contract Proxy. Error: `errorData`.
|
|
13
|
-
*
|
|
14
|
-
* @param errorData Potentially information about why the deployment & intialization have failed.
|
|
15
|
-
*/
|
|
16
|
-
error PrimaryContractProxyInitFailureError(bytes errorData);
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @dev Reverts when the deployment & intialization of the secondary contract has failed.
|
|
20
|
-
* @notice Failed to deploy & initialize the Secondary Contract Proxy. Error: `errorData`.
|
|
21
|
-
*
|
|
22
|
-
* @param errorData Potentially information about why the deployment & intialization have failed.
|
|
23
|
-
*/
|
|
24
|
-
error SecondaryContractProxyInitFailureError(bytes errorData);
|
|
4
|
+
import "@lukso/lsp23-contracts/contracts/LSP23Errors.sol";
|