@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,346 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"details": "LSP7 extension, for compatibility for clients / tools that expect ERC20.",
|
|
3
|
-
"errors": {
|
|
4
|
-
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
5
|
-
{
|
|
6
|
-
"details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
|
|
7
|
-
}
|
|
8
|
-
],
|
|
9
|
-
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
10
|
-
{
|
|
11
|
-
"details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"ERC725Y_MsgValueDisallowed()": [
|
|
15
|
-
{
|
|
16
|
-
"details": "Reverts when sending value to the {setData} or {setDataBatch} function."
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"InvalidExtensionAddress(bytes)": [
|
|
20
|
-
{
|
|
21
|
-
"details": "reverts when the bytes retrieved from the LSP17 data key is not a valid address (not 20 bytes)"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"InvalidFunctionSelector(bytes)": [
|
|
25
|
-
{
|
|
26
|
-
"details": "reverts when the contract is called with a function selector not valid (less than 4 bytes of data)"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"LSP4TokenNameNotEditable()": [
|
|
30
|
-
{
|
|
31
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed / initialized. The `LSP4TokenName` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed / initialized."
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"LSP4TokenSymbolNotEditable()": [
|
|
35
|
-
{
|
|
36
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed / initialized. The `LSP4TokenSymbol` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed / initialized."
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"LSP4TokenTypeNotEditable()": [
|
|
40
|
-
{
|
|
41
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenType` after the digital asset contract has been deployed / initialized. The `LSP4TokenType` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor / initializer when the digital asset contract is being deployed / initialized."
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"LSP7AmountExceedsAuthorizedAmount(address,uint256,address,uint256)": [
|
|
45
|
-
{
|
|
46
|
-
"details": "reverts when `operator` of `tokenOwner` send an `amount` of tokens larger than the `authorizedAmount`."
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"LSP7AmountExceedsBalance(uint256,address,uint256)": [
|
|
50
|
-
{
|
|
51
|
-
"details": "reverts when sending an `amount` of tokens larger than the current `balance` of the `tokenOwner`."
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"LSP7BatchCallFailed(uint256)": [
|
|
55
|
-
{
|
|
56
|
-
"details": "Reverts when a batch call failed."
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"LSP7CannotSendToSelf()": [
|
|
60
|
-
{
|
|
61
|
-
"details": "reverts when specifying the same address for `from` or `to` in a token transfer."
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
"LSP7CannotSendWithAddressZero()": [
|
|
65
|
-
{
|
|
66
|
-
"details": "reverts when trying to: - mint tokens to the zero address. - burn tokens from the zero address. - transfer tokens from or to the zero address."
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"LSP7CannotUseAddressZeroAsOperator()": [
|
|
70
|
-
{
|
|
71
|
-
"details": "reverts when trying to set the zero address as an operator."
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"LSP7DecreasedAllowanceBelowZero()": [
|
|
75
|
-
{
|
|
76
|
-
"details": "Reverts when trying to decrease an operator's allowance to more than its current allowance."
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"LSP7InvalidTransferBatch()": [
|
|
80
|
-
{
|
|
81
|
-
"details": "reverts when the array parameters used in {transferBatch} have different lengths."
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"LSP7NotifyTokenReceiverContractMissingLSP1Interface(address)": [
|
|
85
|
-
{
|
|
86
|
-
"details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"LSP7NotifyTokenReceiverIsEOA(address)": [
|
|
90
|
-
{
|
|
91
|
-
"details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"LSP7TokenContractCannotHoldValue()": [
|
|
95
|
-
{
|
|
96
|
-
"details": "Error occurs when sending native tokens to the LSP7 contract without sending any data. E.g. Sending value without passing a bytes4 function selector to call a LSP17 Extension."
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"LSP7TokenOwnerCannotBeOperator()": [
|
|
100
|
-
{
|
|
101
|
-
"details": "reverts when trying to authorize or revoke the token's owner as an operator."
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"NoExtensionFoundForFunctionSelector(bytes4)": [
|
|
105
|
-
{
|
|
106
|
-
"details": "reverts when there is no extension for the function selector being called with"
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"OperatorAllowanceCannotBeIncreasedFromZero(address)": [
|
|
110
|
-
{
|
|
111
|
-
"details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"OwnableCallerNotTheOwner(address)": [
|
|
115
|
-
{
|
|
116
|
-
"details": "Reverts when only the owner is allowed to call the function.",
|
|
117
|
-
"params": {
|
|
118
|
-
"callerAddress": "The address that tried to make the call."
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
123
|
-
{
|
|
124
|
-
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
125
|
-
}
|
|
126
|
-
]
|
|
127
|
-
},
|
|
128
|
-
"kind": "dev",
|
|
129
|
-
"methods": {
|
|
130
|
-
"allowance(address,address)": {
|
|
131
|
-
"details": "Function to get operator allowance allowed to spend on behalf of `tokenOwner` from the ERC20 standard interface.",
|
|
132
|
-
"params": {
|
|
133
|
-
"operator": "The address approved by the `tokenOwner`",
|
|
134
|
-
"tokenOwner": "The address of the token owner"
|
|
135
|
-
},
|
|
136
|
-
"returns": {
|
|
137
|
-
"_0": "The amount `operator` is approved by `tokenOwner`"
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
"approve(address,uint256)": {
|
|
141
|
-
"details": "Approval function from th ERC20 standard interface.",
|
|
142
|
-
"params": {
|
|
143
|
-
"amount": "The amount to approve.",
|
|
144
|
-
"operator": "The address to approve for `amount`"
|
|
145
|
-
},
|
|
146
|
-
"returns": {
|
|
147
|
-
"_0": "`true` on successful approval."
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"authorizeOperator(address,uint256,bytes)": {
|
|
151
|
-
"custom:danger": "To avoid front-running and Allowance Double-Spend Exploit when increasing or decreasing the authorized amount of an operator, it is advised to: 1. either call {revokeOperator} first, and then re-call {authorizeOperator} with the new amount. 2. or use the non-standard functions {increaseAllowance} or {decreaseAllowance}. For more information, see: https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/",
|
|
152
|
-
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
|
|
153
|
-
"params": {
|
|
154
|
-
"amount": "The allowance amount of tokens operator has access to.",
|
|
155
|
-
"operator": "The address to authorize as an operator.",
|
|
156
|
-
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"authorizedAmountFor(address,address)": {
|
|
160
|
-
"details": "Get the amount of tokens `operator` address has access to from `tokenOwner`. Operators can send and burn tokens on behalf of their owners.",
|
|
161
|
-
"params": {
|
|
162
|
-
"operator": "The operator's address to query the authorized amount for.",
|
|
163
|
-
"tokenOwner": "The token owner that `operator` has allowance on."
|
|
164
|
-
},
|
|
165
|
-
"returns": {
|
|
166
|
-
"_0": "The amount of tokens the `operator`'s address has access on the `tokenOwner`'s balance."
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
"balanceOf(address)": {
|
|
170
|
-
"details": "Get the number of tokens owned by `tokenOwner`. If the token is divisible (the {decimals} function returns `18`), the amount returned should be divided by 1e18 to get a better picture of the actual balance of the `tokenOwner`. _Example:_ ``` balanceOf(someAddress) -> 42_000_000_000_000_000_000 / 1e18 = 42 tokens ```",
|
|
171
|
-
"params": {
|
|
172
|
-
"tokenOwner": "The address of the token holder to query the balance for."
|
|
173
|
-
},
|
|
174
|
-
"returns": {
|
|
175
|
-
"_0": "The amount of tokens owned by `tokenOwner`."
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
"batchCalls(bytes[])": {
|
|
179
|
-
"custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
|
|
180
|
-
"details": "Allows a caller to batch different function calls in one call. Perform a `delegatecall` on self, to call different functions with preserving the context.",
|
|
181
|
-
"params": {
|
|
182
|
-
"data": "An array of ABI encoded function calls to be called on the contract."
|
|
183
|
-
},
|
|
184
|
-
"returns": {
|
|
185
|
-
"results": "An array of abi-encoded data returned by the functions executed."
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
"constructor": {
|
|
189
|
-
"params": {
|
|
190
|
-
"lsp4TokenType_": "The type of token this digital asset contract represents (`0` = Token, `1` = NFT, `2` = Collection).",
|
|
191
|
-
"name_": "The name of the token.",
|
|
192
|
-
"newOwner_": "The owner of the token contract.",
|
|
193
|
-
"symbol_": "The symbol of the token."
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
"decimals()": {
|
|
197
|
-
"details": "Returns the number of decimals used to get its user representation. If the asset contract has been set to be non-divisible via the `isNonDivisible_` parameter in the `constructor`, the decimals returned wiil be `0`. Otherwise `18` is the common value.",
|
|
198
|
-
"returns": {
|
|
199
|
-
"_0": "the number of decimals. If `0` is returned, the asset is non-divisible."
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
"decreaseAllowance(address,uint256,bytes)": {
|
|
203
|
-
"details": "Atomically decreases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem. Notify the operator based on the LSP1-UniversalReceiver standard",
|
|
204
|
-
"params": {
|
|
205
|
-
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
206
|
-
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
"getData(bytes32)": {
|
|
210
|
-
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
211
|
-
"params": {
|
|
212
|
-
"dataKey": "The data key for which to retrieve the value."
|
|
213
|
-
},
|
|
214
|
-
"returns": {
|
|
215
|
-
"dataValue": "The bytes value stored under the specified data key."
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"getDataBatch(bytes32[])": {
|
|
219
|
-
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
220
|
-
"params": {
|
|
221
|
-
"dataKeys": "The array of keys which values to retrieve"
|
|
222
|
-
},
|
|
223
|
-
"returns": {
|
|
224
|
-
"dataValues": "The array of data stored at multiple keys"
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
"getOperatorsOf(address)": {
|
|
228
|
-
"details": "Returns all `operator` addresses that are allowed to transfer or burn on behalf of `tokenOwner`.",
|
|
229
|
-
"params": {
|
|
230
|
-
"tokenOwner": "The token owner to get the operators for."
|
|
231
|
-
},
|
|
232
|
-
"returns": {
|
|
233
|
-
"_0": "An array of operators allowed to transfer or burn tokens on behalf of `tokenOwner`."
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
"increaseAllowance(address,uint256,bytes)": {
|
|
237
|
-
"details": "Atomically increases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem. Notify the operator based on the LSP1-UniversalReceiver standard",
|
|
238
|
-
"params": {
|
|
239
|
-
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
240
|
-
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
"name()": {
|
|
244
|
-
"details": "Returns the name of the token. For compatibility with clients & tools that expect ERC20.",
|
|
245
|
-
"returns": {
|
|
246
|
-
"_0": "The name of the token"
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
"owner()": {
|
|
250
|
-
"details": "Returns the address of the current owner."
|
|
251
|
-
},
|
|
252
|
-
"renounceOwnership()": {
|
|
253
|
-
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
|
|
254
|
-
},
|
|
255
|
-
"revokeOperator(address,bool,bytes)": {
|
|
256
|
-
"details": "Removes the `operator` address as an operator of callers tokens, disallowing it to send any amount of tokens on behalf of the token owner (the caller of the function `msg.sender`). See also {authorizedAmountFor}.",
|
|
257
|
-
"params": {
|
|
258
|
-
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
259
|
-
"operator": "The address to revoke as an operator.",
|
|
260
|
-
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
"setData(bytes32,bytes)": {
|
|
264
|
-
"custom:events": "{DataChanged} event.",
|
|
265
|
-
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
266
|
-
"custom:warning": "**Note for developers:** despite the fact that this function is set as `payable`, if the function is not intended to receive value (= native tokens), **an additional check should be implemented to ensure that `msg.value` sent was equal to 0**.",
|
|
267
|
-
"details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
|
|
268
|
-
"params": {
|
|
269
|
-
"dataKey": "The data key for which to set a new value.",
|
|
270
|
-
"dataValue": "The new bytes value to set."
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
"setDataBatch(bytes32[],bytes[])": {
|
|
274
|
-
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
275
|
-
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
276
|
-
"custom:warning": "**Note for developers:** despite the fact that this function is set as `payable`, if the function is not intended to receive value (= native tokens), **an additional check should be implemented to ensure that `msg.value` sent was equal to 0**.",
|
|
277
|
-
"details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
|
|
278
|
-
"params": {
|
|
279
|
-
"dataKeys": "An array of data keys to set bytes values for.",
|
|
280
|
-
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
"supportsInterface(bytes4)": {
|
|
284
|
-
"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."
|
|
285
|
-
},
|
|
286
|
-
"symbol()": {
|
|
287
|
-
"details": "Returns the symbol of the token, usually a shorter version of the name. For compatibility with clients & tools that expect ERC20.",
|
|
288
|
-
"returns": {
|
|
289
|
-
"_0": "The symbol of the token"
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
"totalSupply()": {
|
|
293
|
-
"details": "Returns the number of existing tokens that have been minted in this contract.",
|
|
294
|
-
"returns": {
|
|
295
|
-
"_0": "The number of existing tokens."
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
"transfer(address,address,uint256,bool,bytes)": {
|
|
299
|
-
"details": "Transfers an `amount` of tokens from the `from` address to the `to` address and notify both sender and recipients via the LSP1 {`universalReceiver(...)`} function. If the tokens are transferred by an operator on behalf of a token holder, the allowance for the operator will be decreased by `amount` once the token transfer has been completed (See {authorizedAmountFor}).",
|
|
300
|
-
"params": {
|
|
301
|
-
"amount": "The amount of tokens to transfer.",
|
|
302
|
-
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
303
|
-
"force": "When set to `true`, the `to` address CAN be any address. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
|
|
304
|
-
"from": "The sender address.",
|
|
305
|
-
"to": "The recipient address."
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
"transfer(address,uint256)": {
|
|
309
|
-
"custom:info": "This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.",
|
|
310
|
-
"details": "Transfer function from the ERC20 standard interface.",
|
|
311
|
-
"params": {
|
|
312
|
-
"amount": "The amount of tokens to transfer. ",
|
|
313
|
-
"to": "The address receiving tokens."
|
|
314
|
-
},
|
|
315
|
-
"returns": {
|
|
316
|
-
"_0": "`true` on successful transfer."
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
"transferBatch(address[],address[],uint256[],bool[],bytes[])": {
|
|
320
|
-
"details": "Same as {`transfer(...)`} but transfer multiple tokens based on the arrays of `from`, `to`, `amount`.",
|
|
321
|
-
"params": {
|
|
322
|
-
"amount": "An array of amount of tokens to transfer for each `from -> to` transfer.",
|
|
323
|
-
"data": "An array of additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
|
|
324
|
-
"force": "For each transfer, when set to `true`, the `to` address CAN be any address. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
|
|
325
|
-
"from": "An array of sending addresses.",
|
|
326
|
-
"to": "An array of receiving addresses."
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
"transferFrom(address,address,uint256)": {
|
|
330
|
-
"custom:info": "This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.",
|
|
331
|
-
"details": "Transfer functions for operators from the ERC20 standard interface.",
|
|
332
|
-
"params": {
|
|
333
|
-
"amount": "The amount of tokens to transfer.",
|
|
334
|
-
"from": "The address sending tokens.",
|
|
335
|
-
"to": "The address receiving tokens."
|
|
336
|
-
},
|
|
337
|
-
"returns": {
|
|
338
|
-
"_0": "`true` on successful transfer."
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
"transferOwnership(address)": {
|
|
342
|
-
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
"version": 1
|
|
346
|
-
}
|