@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,273 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
pragma solidity ^0.8.7;
|
|
3
|
-
|
|
4
|
-
// interfaces
|
|
5
|
-
import {
|
|
6
|
-
IERC20Metadata,
|
|
7
|
-
IERC20
|
|
8
|
-
} from "@openzeppelin/contracts/interfaces/IERC20Metadata.sol";
|
|
9
|
-
|
|
10
|
-
// modules
|
|
11
|
-
import {
|
|
12
|
-
LSP7DigitalAssetCore,
|
|
13
|
-
LSP7DigitalAssetInitAbstract
|
|
14
|
-
} from "../LSP7DigitalAssetInitAbstract.sol";
|
|
15
|
-
|
|
16
|
-
// constants
|
|
17
|
-
import {
|
|
18
|
-
_LSP4_TOKEN_NAME_KEY,
|
|
19
|
-
_LSP4_TOKEN_SYMBOL_KEY
|
|
20
|
-
} from "../../LSP4DigitalAssetMetadata/LSP4Constants.sol";
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @dev LSP7 extension, for compatibility for clients / tools that expect ERC20.
|
|
24
|
-
*/
|
|
25
|
-
abstract contract LSP7CompatibleERC20InitAbstract is
|
|
26
|
-
IERC20Metadata,
|
|
27
|
-
LSP7DigitalAssetInitAbstract
|
|
28
|
-
{
|
|
29
|
-
/**
|
|
30
|
-
* @notice Initializing a `LSP7CompatibleERC20` token contract with: token name = `name_`, token symbol = `symbol_`, and
|
|
31
|
-
* address `newOwner_` as the token contract owner.
|
|
32
|
-
*
|
|
33
|
-
* @param name_ The name of the token.
|
|
34
|
-
* @param symbol_ The symbol of the token.
|
|
35
|
-
* @param newOwner_ The owner of the token.
|
|
36
|
-
* @param lsp4TokenType_ The type of token this digital asset contract represents (`1` = Token, `2` = NFT, `3` = Collection).
|
|
37
|
-
*/
|
|
38
|
-
function _initialize(
|
|
39
|
-
string memory name_,
|
|
40
|
-
string memory symbol_,
|
|
41
|
-
address newOwner_,
|
|
42
|
-
uint256 lsp4TokenType_
|
|
43
|
-
) internal virtual override onlyInitializing {
|
|
44
|
-
LSP7DigitalAssetInitAbstract._initialize(
|
|
45
|
-
name_,
|
|
46
|
-
symbol_,
|
|
47
|
-
newOwner_,
|
|
48
|
-
lsp4TokenType_,
|
|
49
|
-
false
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @inheritdoc IERC20Metadata
|
|
55
|
-
* @dev Returns the name of the token.
|
|
56
|
-
* For compatibility with clients & tools that expect ERC20.
|
|
57
|
-
*
|
|
58
|
-
* @return The name of the token
|
|
59
|
-
*/
|
|
60
|
-
function name() public view virtual override returns (string memory) {
|
|
61
|
-
bytes memory data = _getData(_LSP4_TOKEN_NAME_KEY);
|
|
62
|
-
return string(data);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* @inheritdoc IERC20Metadata
|
|
67
|
-
* @dev Returns the symbol of the token, usually a shorter version of the name.
|
|
68
|
-
* For compatibility with clients & tools that expect ERC20.
|
|
69
|
-
*
|
|
70
|
-
* @return The symbol of the token
|
|
71
|
-
*/
|
|
72
|
-
function symbol() public view virtual override returns (string memory) {
|
|
73
|
-
bytes memory data = _getData(_LSP4_TOKEN_SYMBOL_KEY);
|
|
74
|
-
return string(data);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @inheritdoc LSP7DigitalAssetCore
|
|
79
|
-
*/
|
|
80
|
-
function decimals()
|
|
81
|
-
public
|
|
82
|
-
view
|
|
83
|
-
virtual
|
|
84
|
-
override(IERC20Metadata, LSP7DigitalAssetCore)
|
|
85
|
-
returns (uint8)
|
|
86
|
-
{
|
|
87
|
-
return super.decimals();
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @inheritdoc LSP7DigitalAssetCore
|
|
92
|
-
*/
|
|
93
|
-
function totalSupply()
|
|
94
|
-
public
|
|
95
|
-
view
|
|
96
|
-
virtual
|
|
97
|
-
override(IERC20, LSP7DigitalAssetCore)
|
|
98
|
-
returns (uint256)
|
|
99
|
-
{
|
|
100
|
-
return super.totalSupply();
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @inheritdoc LSP7DigitalAssetCore
|
|
105
|
-
*/
|
|
106
|
-
function balanceOf(
|
|
107
|
-
address tokenOwner
|
|
108
|
-
)
|
|
109
|
-
public
|
|
110
|
-
view
|
|
111
|
-
virtual
|
|
112
|
-
override(IERC20, LSP7DigitalAssetCore)
|
|
113
|
-
returns (uint256)
|
|
114
|
-
{
|
|
115
|
-
return super.balanceOf(tokenOwner);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @inheritdoc LSP7DigitalAssetInitAbstract
|
|
120
|
-
*/
|
|
121
|
-
function supportsInterface(
|
|
122
|
-
bytes4 interfaceId
|
|
123
|
-
) public view virtual override returns (bool) {
|
|
124
|
-
return
|
|
125
|
-
interfaceId == type(IERC20).interfaceId ||
|
|
126
|
-
interfaceId == type(IERC20Metadata).interfaceId ||
|
|
127
|
-
super.supportsInterface(interfaceId);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @inheritdoc IERC20
|
|
132
|
-
* @dev Function to get operator allowance allowed to spend on behalf of `tokenOwner` from the ERC20 standard interface.
|
|
133
|
-
*
|
|
134
|
-
* @param tokenOwner The address of the token owner
|
|
135
|
-
* @param operator The address approved by the `tokenOwner`
|
|
136
|
-
*
|
|
137
|
-
* @return The amount `operator` is approved by `tokenOwner`
|
|
138
|
-
*/
|
|
139
|
-
function allowance(
|
|
140
|
-
address tokenOwner,
|
|
141
|
-
address operator
|
|
142
|
-
) public view virtual override returns (uint256) {
|
|
143
|
-
return authorizedAmountFor(operator, tokenOwner);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @inheritdoc IERC20
|
|
148
|
-
* @dev Approval function from th ERC20 standard interface.
|
|
149
|
-
*
|
|
150
|
-
* @param operator The address to approve for `amount`
|
|
151
|
-
* @param amount The amount to approve.
|
|
152
|
-
*
|
|
153
|
-
* @return `true` on successful approval.
|
|
154
|
-
*/
|
|
155
|
-
function approve(
|
|
156
|
-
address operator,
|
|
157
|
-
uint256 amount
|
|
158
|
-
) public virtual returns (bool) {
|
|
159
|
-
if (amount != 0) {
|
|
160
|
-
authorizeOperator(operator, amount, "");
|
|
161
|
-
} else {
|
|
162
|
-
revokeOperator(operator, false, "");
|
|
163
|
-
}
|
|
164
|
-
return true;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* @inheritdoc IERC20
|
|
169
|
-
* @dev Transfer functions for operators from the ERC20 standard interface.
|
|
170
|
-
*
|
|
171
|
-
* @param from The address sending tokens.
|
|
172
|
-
* @param to The address receiving tokens.
|
|
173
|
-
* @param amount The amount of tokens to transfer.
|
|
174
|
-
*
|
|
175
|
-
* @return `true` on successful transfer.
|
|
176
|
-
*
|
|
177
|
-
* @custom:info This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.
|
|
178
|
-
*/
|
|
179
|
-
function transferFrom(
|
|
180
|
-
address from,
|
|
181
|
-
address to,
|
|
182
|
-
uint256 amount
|
|
183
|
-
) public virtual returns (bool) {
|
|
184
|
-
transfer(from, to, amount, true, "");
|
|
185
|
-
return true;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
// --- Overrides
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @inheritdoc IERC20
|
|
192
|
-
* @dev Transfer function from the ERC20 standard interface.
|
|
193
|
-
*
|
|
194
|
-
* @param to The address receiving tokens.
|
|
195
|
-
* @param amount The amount of tokens to transfer.
|
|
196
|
-
*
|
|
197
|
-
* @return `true` on successful transfer.
|
|
198
|
-
*
|
|
199
|
-
* @custom:info This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.
|
|
200
|
-
*/
|
|
201
|
-
function transfer(
|
|
202
|
-
address to,
|
|
203
|
-
uint256 amount
|
|
204
|
-
) public virtual override returns (bool) {
|
|
205
|
-
transfer(msg.sender, to, amount, true, "");
|
|
206
|
-
return true;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* @inheritdoc LSP7DigitalAssetCore
|
|
211
|
-
*/
|
|
212
|
-
function _updateOperator(
|
|
213
|
-
address tokenOwner,
|
|
214
|
-
address operator,
|
|
215
|
-
uint256 amount,
|
|
216
|
-
bool notified,
|
|
217
|
-
bytes memory operatorNotificationData
|
|
218
|
-
) internal virtual override {
|
|
219
|
-
super._updateOperator(
|
|
220
|
-
tokenOwner,
|
|
221
|
-
operator,
|
|
222
|
-
amount,
|
|
223
|
-
notified,
|
|
224
|
-
operatorNotificationData
|
|
225
|
-
);
|
|
226
|
-
emit IERC20.Approval(tokenOwner, operator, amount);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* @custom:events
|
|
231
|
-
* - LSP7 {Transfer} event.
|
|
232
|
-
* - ERC20 {Transfer} event.
|
|
233
|
-
*/
|
|
234
|
-
function _transfer(
|
|
235
|
-
address from,
|
|
236
|
-
address to,
|
|
237
|
-
uint256 amount,
|
|
238
|
-
bool force,
|
|
239
|
-
bytes memory data
|
|
240
|
-
) internal virtual override {
|
|
241
|
-
emit IERC20.Transfer(from, to, amount);
|
|
242
|
-
super._transfer(from, to, amount, force, data);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* @custom:events
|
|
247
|
-
* - LSP7 {Transfer} event with `address(0)` as `from`.
|
|
248
|
-
* - ERC20 {Transfer} event with `address(0)` as `from`.
|
|
249
|
-
*/
|
|
250
|
-
function _mint(
|
|
251
|
-
address to,
|
|
252
|
-
uint256 amount,
|
|
253
|
-
bool force,
|
|
254
|
-
bytes memory data
|
|
255
|
-
) internal virtual override {
|
|
256
|
-
emit IERC20.Transfer(address(0), to, amount);
|
|
257
|
-
super._mint(to, amount, force, data);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* @custom:events
|
|
262
|
-
* - LSP7 {Transfer} event with `address(0)` as the `to` address.
|
|
263
|
-
* - ERC20 {Transfer} event with `address(0)` as the `to` address.
|
|
264
|
-
*/
|
|
265
|
-
function _burn(
|
|
266
|
-
address from,
|
|
267
|
-
uint256 amount,
|
|
268
|
-
bytes memory data
|
|
269
|
-
) internal virtual override {
|
|
270
|
-
emit IERC20.Transfer(from, address(0), amount);
|
|
271
|
-
super._burn(from, amount, data);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
pragma solidity ^0.8.7;
|
|
3
|
-
|
|
4
|
-
import {LSP7CompatibleERC20} from "../extensions/LSP7CompatibleERC20.sol";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @title LSP7CompatibleERC20 deployable preset contract with a public {mint} function callable only by the contract {owner}.
|
|
8
|
-
*/
|
|
9
|
-
contract LSP7CompatibleERC20Mintable is LSP7CompatibleERC20 {
|
|
10
|
-
/**
|
|
11
|
-
* @notice Deploying a `LSP7CompatibleERC20Mintable` token contract with: token name = `name_`, token symbol = `symbol_`, and
|
|
12
|
-
* address `newOwner_` as the token contract owner.
|
|
13
|
-
*
|
|
14
|
-
* @param name_ The name of the token.
|
|
15
|
-
* @param symbol_ The symbol of the token.
|
|
16
|
-
* @param newOwner_ The owner of the token contract.
|
|
17
|
-
* @param lsp4TokenType_ The type of token this digital asset contract represents (`1` = Token, `2` = NFT, `3` = Collection).
|
|
18
|
-
*/
|
|
19
|
-
constructor(
|
|
20
|
-
string memory name_,
|
|
21
|
-
string memory symbol_,
|
|
22
|
-
address newOwner_,
|
|
23
|
-
uint256 lsp4TokenType_
|
|
24
|
-
) LSP7CompatibleERC20(name_, symbol_, newOwner_, lsp4TokenType_) {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @dev Public {_mint} function only callable by the {owner}.
|
|
28
|
-
*/
|
|
29
|
-
function mint(
|
|
30
|
-
address to,
|
|
31
|
-
uint256 amount,
|
|
32
|
-
bool force,
|
|
33
|
-
bytes memory data
|
|
34
|
-
) public virtual onlyOwner {
|
|
35
|
-
_mint(to, amount, force, data);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
pragma solidity ^0.8.7;
|
|
3
|
-
|
|
4
|
-
// modules
|
|
5
|
-
import {
|
|
6
|
-
LSP7CompatibleERC20MintableInitAbstract
|
|
7
|
-
} from "./LSP7CompatibleERC20MintableInitAbstract.sol";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @title LSP7 deployable preset contract (proxy version) with a public mint function callable only by the contract {owner}
|
|
11
|
-
*/
|
|
12
|
-
contract LSP7CompatibleERC20MintableInit is
|
|
13
|
-
LSP7CompatibleERC20MintableInitAbstract
|
|
14
|
-
{
|
|
15
|
-
/**
|
|
16
|
-
* @dev initialize (= lock) base implementation contract on deployment
|
|
17
|
-
*/
|
|
18
|
-
constructor() {
|
|
19
|
-
_disableInitializers();
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @notice Initializing a `LSP7CompatibleERC20MintableInit` token contract with: token name = `name_`, token symbol = `symbol_`, and
|
|
24
|
-
* address `newOwner_` as the token contract owner.
|
|
25
|
-
*
|
|
26
|
-
* @param name_ The name of the token.
|
|
27
|
-
* @param symbol_ The symbol of the token.
|
|
28
|
-
* @param newOwner_ The owner of the token contract.
|
|
29
|
-
* @param lsp4TokenType_ The type of token this digital asset contract represents (`1` = Token, `2` = NFT, `3` = Collection).
|
|
30
|
-
*/
|
|
31
|
-
function initialize(
|
|
32
|
-
string memory name_,
|
|
33
|
-
string memory symbol_,
|
|
34
|
-
address newOwner_,
|
|
35
|
-
uint256 lsp4TokenType_
|
|
36
|
-
) external virtual initializer {
|
|
37
|
-
LSP7CompatibleERC20MintableInitAbstract._initialize(
|
|
38
|
-
name_,
|
|
39
|
-
symbol_,
|
|
40
|
-
newOwner_,
|
|
41
|
-
lsp4TokenType_
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
pragma solidity ^0.8.7;
|
|
3
|
-
|
|
4
|
-
// modules
|
|
5
|
-
import {
|
|
6
|
-
LSP7CompatibleERC20InitAbstract
|
|
7
|
-
} from "../extensions/LSP7CompatibleERC20InitAbstract.sol";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @title LSP7 preset contract (inheritable proxy version) with a public mint function callable only by the contract {owner}
|
|
11
|
-
*/
|
|
12
|
-
abstract contract LSP7CompatibleERC20MintableInitAbstract is
|
|
13
|
-
LSP7CompatibleERC20InitAbstract
|
|
14
|
-
{
|
|
15
|
-
/**
|
|
16
|
-
* @inheritdoc LSP7CompatibleERC20InitAbstract
|
|
17
|
-
*/
|
|
18
|
-
function _initialize(
|
|
19
|
-
string memory name_,
|
|
20
|
-
string memory symbol_,
|
|
21
|
-
address newOwner_,
|
|
22
|
-
uint256 lsp4TokenType_
|
|
23
|
-
) internal virtual override onlyInitializing {
|
|
24
|
-
LSP7CompatibleERC20InitAbstract._initialize(
|
|
25
|
-
name_,
|
|
26
|
-
symbol_,
|
|
27
|
-
newOwner_,
|
|
28
|
-
lsp4TokenType_
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @dev Public {_mint} function only callable by the {owner}.
|
|
34
|
-
*/
|
|
35
|
-
function mint(
|
|
36
|
-
address to,
|
|
37
|
-
uint256 amount,
|
|
38
|
-
bool force,
|
|
39
|
-
bytes memory data
|
|
40
|
-
) public virtual onlyOwner {
|
|
41
|
-
_mint(to, amount, force, data);
|
|
42
|
-
}
|
|
43
|
-
}
|