@lukso/lsp-smart-contracts 0.11.1 → 0.12.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 +10 -2
- package/artifacts/Create2Factory.json +2 -2
- package/artifacts/LSP0ERC725Account.json +68 -47
- package/artifacts/LSP0ERC725AccountInit.json +68 -47
- package/artifacts/LSP11BasicSocialRecovery.json +18 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +18 -2
- package/artifacts/LSP16UniversalFactory.json +3 -3
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +27 -46
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +27 -46
- package/artifacts/LSP23LinkedContractsFactory.json +3 -3
- package/artifacts/LSP4DigitalAssetMetadata.json +16 -0
- package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +16 -0
- package/artifacts/LSP6KeyManager.json +34 -6
- package/artifacts/LSP6KeyManagerInit.json +34 -6
- package/artifacts/LSP7CappedSupply.json +64 -4
- package/artifacts/LSP7CappedSupplyInitAbstract.json +64 -4
- package/artifacts/LSP7CompatibleERC20.json +83 -23
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +83 -23
- package/artifacts/LSP7CompatibleERC20Mintable.json +86 -26
- package/artifacts/LSP7CompatibleERC20MintableInit.json +86 -26
- package/artifacts/LSP7DigitalAsset.json +64 -4
- package/artifacts/LSP7DigitalAssetInitAbstract.json +64 -4
- package/artifacts/LSP7Mintable.json +67 -7
- package/artifacts/LSP7MintableInit.json +67 -7
- package/artifacts/LSP8CappedSupply.json +57 -3
- package/artifacts/LSP8CappedSupplyInitAbstract.json +57 -3
- package/artifacts/LSP8CompatibleERC721.json +79 -25
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +79 -25
- package/artifacts/LSP8CompatibleERC721Mintable.json +87 -28
- package/artifacts/LSP8CompatibleERC721MintableInit.json +87 -28
- package/artifacts/LSP8IdentifiableDigitalAsset.json +57 -3
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +57 -3
- package/artifacts/LSP8Mintable.json +65 -6
- package/artifacts/LSP8MintableInit.json +65 -6
- package/artifacts/LSP9Vault.json +51 -35
- package/artifacts/LSP9VaultInit.json +51 -35
- package/artifacts/UniversalProfile.json +68 -47
- package/artifacts/UniversalProfileInit.json +68 -47
- package/contracts/Factories/Create2Factory.sol +1 -1
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +0 -22
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +6 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +12 -2
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +196 -123
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +11 -2
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +5 -3
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +54 -14
- package/contracts/LSP11BasicSocialRecovery/LSP11Constants.sol +1 -1
- package/contracts/LSP11BasicSocialRecovery/LSP11Errors.sol +1 -1
- package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +2 -2
- package/contracts/LSP14Ownable2Step/LSP14Constants.sol +1 -1
- package/contracts/LSP14Ownable2Step/LSP14Errors.sol +9 -3
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +16 -12
- package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +65 -96
- package/contracts/LSP17ContractExtension/LSP17Errors.sol +1 -1
- package/contracts/LSP17ContractExtension/LSP17Extendable.sol +22 -15
- package/contracts/LSP17ContractExtension/LSP17Extension.sol +6 -5
- package/contracts/LSP17Extensions/Extension4337.sol +101 -0
- package/contracts/LSP17Extensions/OnERC721ReceivedExtension.sol +15 -0
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +1 -2
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiverDelegate.sol +24 -0
- package/contracts/LSP1UniversalReceiver/LSP1Constants.sol +1 -0
- package/contracts/LSP1UniversalReceiver/LSP1Errors.sol +0 -6
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +49 -33
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +33 -27
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +5 -48
- package/contracts/LSP20CallVerification/ILSP20CallVerifier.sol +13 -9
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +64 -45
- package/contracts/LSP20CallVerification/LSP20Constants.sol +6 -6
- package/contracts/LSP20CallVerification/LSP20Errors.sol +10 -4
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/ILSP23LinkedContractsFactory.sol +1 -1
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/IPostDeploymentModule.sol +1 -1
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/LSP23Errors.sol +1 -1
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/LSP23LinkedContractsFactory.sol +5 -1
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/modules/UniversalProfileInitPostDeploymentModule.sol +1 -1
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/modules/UniversalProfilePostDeploymentModule.sol +1 -1
- package/contracts/LSP25ExecuteRelayCall/LSP25Constants.sol +1 -1
- package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +8 -3
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +1 -97
- package/contracts/LSP3ProfileMetadata/LSP3Constants.sol +1 -1
- package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +1 -1
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +8 -3
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +8 -3
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +4 -3
- package/contracts/LSP6KeyManager/LSP6Constants.sol +4 -3
- package/contracts/LSP6KeyManager/LSP6Errors.sol +2 -23
- package/contracts/LSP6KeyManager/LSP6KeyManager.sol +0 -1
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +176 -101
- package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +0 -1
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +1 -2
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteRelayCallModule.sol +27 -0
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +34 -28
- package/contracts/LSP6KeyManager/LSP6Utils.sol +29 -2
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +70 -10
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +2 -2
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +29 -13
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +273 -265
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +28 -12
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +17 -3
- package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +5 -1
- package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +4 -1
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +7 -7
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +3 -3
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +128 -54
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +129 -54
- package/contracts/LSP7DigitalAsset/presets/ILSP7Mintable.sol +3 -3
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +4 -4
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +2 -2
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +4 -4
- package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +4 -4
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +1 -1
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +4 -4
- package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +16 -11
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +20 -6
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +32 -16
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +67 -16
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +143 -137
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +69 -15
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +1 -1
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +1 -1
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +7 -7
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +3 -3
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +172 -80
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +178 -91
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +7 -7
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +7 -7
- package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +3 -3
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +8 -7
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +5 -3
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +13 -7
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +9 -8
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +9 -3
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +10 -8
- package/contracts/LSP9Vault/ILSP9Vault.sol +0 -21
- package/contracts/LSP9Vault/LSP9Constants.sol +6 -1
- package/contracts/LSP9Vault/LSP9Errors.sol +1 -1
- package/contracts/LSP9Vault/LSP9Vault.sol +11 -2
- package/contracts/LSP9Vault/LSP9VaultCore.sol +119 -66
- package/contracts/LSP9Vault/LSP9VaultInit.sol +1 -1
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +11 -2
- package/contracts/UniversalProfile.sol +1 -1
- package/contracts/UniversalProfileInit.sol +1 -1
- package/contracts/UniversalProfileInitAbstract.sol +1 -1
- package/contracts/Version.sol +16 -0
- package/devdocs/LSP0ERC725Account.json +86 -52
- package/devdocs/LSP0ERC725AccountInit.json +86 -52
- package/devdocs/LSP11BasicSocialRecovery.json +13 -0
- package/devdocs/LSP11BasicSocialRecoveryInit.json +13 -0
- package/devdocs/LSP16UniversalFactory.json +9 -9
- package/devdocs/LSP1UniversalReceiverDelegateUP.json +7 -6
- package/devdocs/LSP1UniversalReceiverDelegateVault.json +7 -6
- package/devdocs/LSP4DigitalAssetMetadata.json +32 -10
- package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +32 -10
- package/devdocs/LSP6KeyManager.json +27 -13
- package/devdocs/LSP6KeyManagerInit.json +27 -13
- package/devdocs/LSP7CappedSupply.json +61 -28
- package/devdocs/LSP7CappedSupplyInitAbstract.json +61 -28
- package/devdocs/LSP7CompatibleERC20.json +102 -32
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +102 -32
- package/devdocs/LSP7CompatibleERC20Mintable.json +102 -32
- package/devdocs/LSP7CompatibleERC20MintableInit.json +102 -32
- package/devdocs/LSP7DigitalAsset.json +61 -28
- package/devdocs/LSP7DigitalAssetInitAbstract.json +61 -28
- package/devdocs/LSP7Mintable.json +61 -28
- package/devdocs/LSP7MintableInit.json +61 -28
- package/devdocs/LSP8CappedSupply.json +66 -27
- package/devdocs/LSP8CappedSupplyInitAbstract.json +66 -27
- package/devdocs/LSP8CompatibleERC721.json +93 -33
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +93 -33
- package/devdocs/LSP8CompatibleERC721Mintable.json +95 -35
- package/devdocs/LSP8CompatibleERC721MintableInit.json +96 -36
- package/devdocs/LSP8IdentifiableDigitalAsset.json +70 -28
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +66 -27
- package/devdocs/LSP8Mintable.json +68 -29
- package/devdocs/LSP8MintableInit.json +69 -30
- package/devdocs/LSP9Vault.json +69 -41
- package/devdocs/LSP9VaultInit.json +69 -41
- package/devdocs/UniversalProfile.json +86 -52
- package/devdocs/UniversalProfileInit.json +86 -52
- package/dist/constants.cjs.js +5565 -2846
- package/dist/constants.d.ts +3996 -1182
- package/dist/constants.es.js +5564 -2846
- package/package.json +8 -8
- package/userdocs/LSP0ERC725Account.json +20 -11
- package/userdocs/LSP0ERC725AccountInit.json +20 -11
- package/userdocs/LSP16UniversalFactory.json +26 -1
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +4 -11
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +4 -11
- package/userdocs/LSP4DigitalAssetMetadata.json +7 -4
- package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +7 -4
- package/userdocs/LSP6KeyManager.json +3 -5
- package/userdocs/LSP6KeyManagerInit.json +3 -5
- package/userdocs/LSP7CappedSupply.json +17 -6
- package/userdocs/LSP7CappedSupplyInitAbstract.json +16 -5
- package/userdocs/LSP7CompatibleERC20.json +18 -5
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +18 -5
- package/userdocs/LSP7CompatibleERC20Mintable.json +18 -5
- package/userdocs/LSP7CompatibleERC20MintableInit.json +18 -5
- package/userdocs/LSP7DigitalAsset.json +18 -5
- package/userdocs/LSP7DigitalAssetInitAbstract.json +18 -5
- package/userdocs/LSP7Mintable.json +18 -5
- package/userdocs/LSP7MintableInit.json +18 -5
- package/userdocs/LSP8CappedSupply.json +16 -5
- package/userdocs/LSP8CappedSupplyInitAbstract.json +15 -4
- package/userdocs/LSP8CompatibleERC721.json +30 -17
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +30 -17
- package/userdocs/LSP8CompatibleERC721Mintable.json +31 -18
- package/userdocs/LSP8CompatibleERC721MintableInit.json +32 -19
- package/userdocs/LSP8IdentifiableDigitalAsset.json +18 -5
- package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +17 -4
- package/userdocs/LSP8Mintable.json +18 -5
- package/userdocs/LSP8MintableInit.json +19 -6
- package/userdocs/LSP9Vault.json +23 -14
- package/userdocs/LSP9VaultInit.json +23 -14
- package/userdocs/UniversalProfile.json +20 -11
- package/userdocs/UniversalProfileInit.json +20 -11
- package/CONTRIBUTING.md +0 -184
- package/artifacts/LSP4Compatibility.json +0 -216
- package/contracts/LSP4DigitalAssetMetadata/ILSP4Compatibility.sol +0 -25
- package/contracts/LSP4DigitalAssetMetadata/LSP4Compatibility.sol +0 -38
- package/contracts/LSP7DigitalAsset/extensions/ILSP7CompatibleERC20.sol +0 -83
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +0 -175
- package/devdocs/LSP4Compatibility.json +0 -79
- package/userdocs/LSP4Compatibility.json +0 -20
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"errors": {
|
|
4
4
|
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
5
5
|
{
|
|
6
|
-
"details": "
|
|
6
|
+
"details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
9
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
10
10
|
{
|
|
11
|
-
"details": "
|
|
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
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"ERC725Y_MsgValueDisallowed()": [
|
|
15
15
|
{
|
|
16
|
-
"details": "
|
|
16
|
+
"details": "Reverts when sending value to the {setData} or {setDataBatch} function."
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
19
|
"InvalidExtensionAddress(bytes)": [
|
|
@@ -83,12 +83,17 @@
|
|
|
83
83
|
],
|
|
84
84
|
"LSP7NotifyTokenReceiverContractMissingLSP1Interface(address)": [
|
|
85
85
|
{
|
|
86
|
-
"details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool
|
|
86
|
+
"details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
|
|
87
87
|
}
|
|
88
88
|
],
|
|
89
89
|
"LSP7NotifyTokenReceiverIsEOA(address)": [
|
|
90
90
|
{
|
|
91
|
-
"details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool
|
|
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."
|
|
92
97
|
}
|
|
93
98
|
],
|
|
94
99
|
"LSP7TokenOwnerCannotBeOperator()": [
|
|
@@ -100,13 +105,31 @@
|
|
|
100
105
|
{
|
|
101
106
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
102
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
|
+
}
|
|
103
126
|
]
|
|
104
127
|
},
|
|
105
128
|
"kind": "dev",
|
|
106
129
|
"methods": {
|
|
107
130
|
"authorizeOperator(address,uint256,bytes)": {
|
|
108
131
|
"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/",
|
|
109
|
-
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
|
|
132
|
+
"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",
|
|
110
133
|
"params": {
|
|
111
134
|
"amount": "The allowance amount of tokens operator has access to.",
|
|
112
135
|
"operator": "The address to authorize as an operator.",
|
|
@@ -139,24 +162,23 @@
|
|
|
139
162
|
}
|
|
140
163
|
},
|
|
141
164
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
142
|
-
"
|
|
143
|
-
"custom:info": "This is a non-standard function, not part of the LSP7 standard interface. It has been added in the LSP7 contract implementation so that it can be used as a prevention mechanism against the double spending allowance vulnerability.",
|
|
144
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `substractedAmount`.",
|
|
145
|
-
"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.",
|
|
165
|
+
"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",
|
|
146
166
|
"params": {
|
|
147
|
-
"operator": "
|
|
148
|
-
"
|
|
167
|
+
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
168
|
+
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
149
169
|
}
|
|
150
170
|
},
|
|
151
171
|
"getData(bytes32)": {
|
|
172
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
152
173
|
"params": {
|
|
153
|
-
"dataKey": "The key which
|
|
174
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
154
175
|
},
|
|
155
176
|
"returns": {
|
|
156
|
-
"dataValue": "The
|
|
177
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
157
178
|
}
|
|
158
179
|
},
|
|
159
180
|
"getDataBatch(bytes32[])": {
|
|
181
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
160
182
|
"params": {
|
|
161
183
|
"dataKeys": "The array of keys which values to retrieve"
|
|
162
184
|
},
|
|
@@ -174,13 +196,10 @@
|
|
|
174
196
|
}
|
|
175
197
|
},
|
|
176
198
|
"increaseAllowance(address,uint256,bytes)": {
|
|
177
|
-
"
|
|
178
|
-
"custom:info": "This is a non-standard function, not part of the LSP7 standard interface. It has been added in the LSP7 contract implementation so that it can be used as a prevention mechanism against double spending allowance vulnerability.",
|
|
179
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
180
|
-
"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.",
|
|
199
|
+
"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",
|
|
181
200
|
"params": {
|
|
182
|
-
"addedAmount": "
|
|
183
|
-
"operator": "
|
|
201
|
+
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
202
|
+
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
184
203
|
}
|
|
185
204
|
},
|
|
186
205
|
"owner()": {
|
|
@@ -189,24 +208,32 @@
|
|
|
189
208
|
"renounceOwnership()": {
|
|
190
209
|
"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."
|
|
191
210
|
},
|
|
192
|
-
"revokeOperator(address,bytes)": {
|
|
211
|
+
"revokeOperator(address,bool,bytes)": {
|
|
193
212
|
"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}.",
|
|
194
213
|
"params": {
|
|
214
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
195
215
|
"operator": "The address to revoke as an operator.",
|
|
196
216
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
197
217
|
}
|
|
198
218
|
},
|
|
199
219
|
"setData(bytes32,bytes)": {
|
|
220
|
+
"custom:events": "{DataChanged} event.",
|
|
221
|
+
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
222
|
+
"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**.",
|
|
223
|
+
"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.",
|
|
200
224
|
"params": {
|
|
201
|
-
"dataKey": "The key to
|
|
202
|
-
"dataValue": "The
|
|
225
|
+
"dataKey": "The data key for which to set a new value.",
|
|
226
|
+
"dataValue": "The new bytes value to set."
|
|
203
227
|
}
|
|
204
228
|
},
|
|
205
229
|
"setDataBatch(bytes32[],bytes[])": {
|
|
206
|
-
"
|
|
230
|
+
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
231
|
+
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
232
|
+
"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**.",
|
|
233
|
+
"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.",
|
|
207
234
|
"params": {
|
|
208
|
-
"dataKeys": "
|
|
209
|
-
"dataValues": "
|
|
235
|
+
"dataKeys": "An array of data keys to set bytes values for.",
|
|
236
|
+
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
210
237
|
}
|
|
211
238
|
},
|
|
212
239
|
"supportsInterface(bytes4)": {
|
|
@@ -227,9 +254,9 @@
|
|
|
227
254
|
"transfer(address,address,uint256,bool,bytes)": {
|
|
228
255
|
"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}).",
|
|
229
256
|
"params": {
|
|
230
|
-
"allowNonLSP1Recipient": "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.",
|
|
231
257
|
"amount": "The amount of tokens to transfer.",
|
|
232
258
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
259
|
+
"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.",
|
|
233
260
|
"from": "The sender address.",
|
|
234
261
|
"to": "The recipient address."
|
|
235
262
|
}
|
|
@@ -237,15 +264,21 @@
|
|
|
237
264
|
"transferBatch(address[],address[],uint256[],bool[],bytes[])": {
|
|
238
265
|
"details": "Same as {`transfer(...)`} but transfer multiple tokens based on the arrays of `from`, `to`, `amount`.",
|
|
239
266
|
"params": {
|
|
240
|
-
"allowNonLSP1Recipient": "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.",
|
|
241
267
|
"amount": "An array of amount of tokens to transfer for each `from -> to` transfer.",
|
|
242
268
|
"data": "An array of additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
|
|
269
|
+
"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.",
|
|
243
270
|
"from": "An array of sending addresses.",
|
|
244
271
|
"to": "An array of receiving addresses."
|
|
245
272
|
}
|
|
246
273
|
},
|
|
247
274
|
"transferOwnership(address)": {
|
|
248
275
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
276
|
+
},
|
|
277
|
+
"version()": {
|
|
278
|
+
"details": "Get the version of the contract.",
|
|
279
|
+
"returns": {
|
|
280
|
+
"_0": "The version of the the contract."
|
|
281
|
+
}
|
|
249
282
|
}
|
|
250
283
|
},
|
|
251
284
|
"version": 1
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"errors": {
|
|
4
4
|
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
5
5
|
{
|
|
6
|
-
"details": "
|
|
6
|
+
"details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
9
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
10
10
|
{
|
|
11
|
-
"details": "
|
|
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
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"ERC725Y_MsgValueDisallowed()": [
|
|
15
15
|
{
|
|
16
|
-
"details": "
|
|
16
|
+
"details": "Reverts when sending value to the {setData} or {setDataBatch} function."
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
19
|
"InvalidExtensionAddress(bytes)": [
|
|
@@ -73,12 +73,17 @@
|
|
|
73
73
|
],
|
|
74
74
|
"LSP7NotifyTokenReceiverContractMissingLSP1Interface(address)": [
|
|
75
75
|
{
|
|
76
|
-
"details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool
|
|
76
|
+
"details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"LSP7NotifyTokenReceiverIsEOA(address)": [
|
|
80
80
|
{
|
|
81
|
-
"details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool
|
|
81
|
+
"details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"LSP7TokenContractCannotHoldValue()": [
|
|
85
|
+
{
|
|
86
|
+
"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."
|
|
82
87
|
}
|
|
83
88
|
],
|
|
84
89
|
"LSP7TokenOwnerCannotBeOperator()": [
|
|
@@ -90,13 +95,51 @@
|
|
|
90
95
|
{
|
|
91
96
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
92
97
|
}
|
|
98
|
+
],
|
|
99
|
+
"OperatorAllowanceCannotBeIncreasedFromZero(address)": [
|
|
100
|
+
{
|
|
101
|
+
"details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"OwnableCallerNotTheOwner(address)": [
|
|
105
|
+
{
|
|
106
|
+
"details": "Reverts when only the owner is allowed to call the function.",
|
|
107
|
+
"params": {
|
|
108
|
+
"callerAddress": "The address that tried to make the call."
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
113
|
+
{
|
|
114
|
+
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
115
|
+
}
|
|
93
116
|
]
|
|
94
117
|
},
|
|
95
118
|
"kind": "dev",
|
|
96
119
|
"methods": {
|
|
120
|
+
"allowance(address,address)": {
|
|
121
|
+
"details": "Function to get operator allowance allowed to spend on behalf of `tokenOwner` from the ERC20 standard interface.",
|
|
122
|
+
"params": {
|
|
123
|
+
"operator": "The address approved by the `tokenOwner`",
|
|
124
|
+
"tokenOwner": "The address of the token owner"
|
|
125
|
+
},
|
|
126
|
+
"returns": {
|
|
127
|
+
"_0": "The amount `operator` is approved by `tokenOwner`"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"approve(address,uint256)": {
|
|
131
|
+
"details": "Approval function from th ERC20 standard interface.",
|
|
132
|
+
"params": {
|
|
133
|
+
"amount": "The amount to approve.",
|
|
134
|
+
"operator": "The address to approve for `amount`"
|
|
135
|
+
},
|
|
136
|
+
"returns": {
|
|
137
|
+
"_0": "`true` on successful approval."
|
|
138
|
+
}
|
|
139
|
+
},
|
|
97
140
|
"authorizeOperator(address,uint256,bytes)": {
|
|
98
141
|
"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/",
|
|
99
|
-
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
|
|
142
|
+
"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",
|
|
100
143
|
"params": {
|
|
101
144
|
"amount": "The allowance amount of tokens operator has access to.",
|
|
102
145
|
"operator": "The address to authorize as an operator.",
|
|
@@ -136,24 +179,23 @@
|
|
|
136
179
|
}
|
|
137
180
|
},
|
|
138
181
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
139
|
-
"
|
|
140
|
-
"custom:info": "This is a non-standard function, not part of the LSP7 standard interface. It has been added in the LSP7 contract implementation so that it can be used as a prevention mechanism against the double spending allowance vulnerability.",
|
|
141
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `substractedAmount`.",
|
|
142
|
-
"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.",
|
|
182
|
+
"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",
|
|
143
183
|
"params": {
|
|
144
|
-
"operator": "
|
|
145
|
-
"
|
|
184
|
+
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
185
|
+
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
146
186
|
}
|
|
147
187
|
},
|
|
148
188
|
"getData(bytes32)": {
|
|
189
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
149
190
|
"params": {
|
|
150
|
-
"dataKey": "The key which
|
|
191
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
151
192
|
},
|
|
152
193
|
"returns": {
|
|
153
|
-
"dataValue": "The
|
|
194
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
154
195
|
}
|
|
155
196
|
},
|
|
156
197
|
"getDataBatch(bytes32[])": {
|
|
198
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
157
199
|
"params": {
|
|
158
200
|
"dataKeys": "The array of keys which values to retrieve"
|
|
159
201
|
},
|
|
@@ -171,17 +213,14 @@
|
|
|
171
213
|
}
|
|
172
214
|
},
|
|
173
215
|
"increaseAllowance(address,uint256,bytes)": {
|
|
174
|
-
"
|
|
175
|
-
"custom:info": "This is a non-standard function, not part of the LSP7 standard interface. It has been added in the LSP7 contract implementation so that it can be used as a prevention mechanism against double spending allowance vulnerability.",
|
|
176
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
177
|
-
"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.",
|
|
216
|
+
"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",
|
|
178
217
|
"params": {
|
|
179
|
-
"addedAmount": "
|
|
180
|
-
"operator": "
|
|
218
|
+
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
219
|
+
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
181
220
|
}
|
|
182
221
|
},
|
|
183
222
|
"name()": {
|
|
184
|
-
"details": "Returns the name of the token.",
|
|
223
|
+
"details": "Returns the name of the token. For compatibility with clients & tools that expect ERC20.",
|
|
185
224
|
"returns": {
|
|
186
225
|
"_0": "The name of the token"
|
|
187
226
|
}
|
|
@@ -192,31 +231,39 @@
|
|
|
192
231
|
"renounceOwnership()": {
|
|
193
232
|
"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."
|
|
194
233
|
},
|
|
195
|
-
"revokeOperator(address,bytes)": {
|
|
234
|
+
"revokeOperator(address,bool,bytes)": {
|
|
196
235
|
"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}.",
|
|
197
236
|
"params": {
|
|
237
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
198
238
|
"operator": "The address to revoke as an operator.",
|
|
199
239
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
200
240
|
}
|
|
201
241
|
},
|
|
202
242
|
"setData(bytes32,bytes)": {
|
|
243
|
+
"custom:events": "{DataChanged} event.",
|
|
244
|
+
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
245
|
+
"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**.",
|
|
246
|
+
"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.",
|
|
203
247
|
"params": {
|
|
204
|
-
"dataKey": "The key to
|
|
205
|
-
"dataValue": "The
|
|
248
|
+
"dataKey": "The data key for which to set a new value.",
|
|
249
|
+
"dataValue": "The new bytes value to set."
|
|
206
250
|
}
|
|
207
251
|
},
|
|
208
252
|
"setDataBatch(bytes32[],bytes[])": {
|
|
209
|
-
"
|
|
253
|
+
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
254
|
+
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
255
|
+
"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**.",
|
|
256
|
+
"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.",
|
|
210
257
|
"params": {
|
|
211
|
-
"dataKeys": "
|
|
212
|
-
"dataValues": "
|
|
258
|
+
"dataKeys": "An array of data keys to set bytes values for.",
|
|
259
|
+
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
213
260
|
}
|
|
214
261
|
},
|
|
215
262
|
"supportsInterface(bytes4)": {
|
|
216
263
|
"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."
|
|
217
264
|
},
|
|
218
265
|
"symbol()": {
|
|
219
|
-
"details": "Returns the symbol of the token, usually a shorter version of the name.",
|
|
266
|
+
"details": "Returns the symbol of the token, usually a shorter version of the name. For compatibility with clients & tools that expect ERC20.",
|
|
220
267
|
"returns": {
|
|
221
268
|
"_0": "The symbol of the token"
|
|
222
269
|
}
|
|
@@ -230,31 +277,54 @@
|
|
|
230
277
|
"transfer(address,address,uint256,bool,bytes)": {
|
|
231
278
|
"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}).",
|
|
232
279
|
"params": {
|
|
233
|
-
"allowNonLSP1Recipient": "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.",
|
|
234
280
|
"amount": "The amount of tokens to transfer.",
|
|
235
281
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
282
|
+
"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.",
|
|
236
283
|
"from": "The sender address.",
|
|
237
284
|
"to": "The recipient address."
|
|
238
285
|
}
|
|
239
286
|
},
|
|
240
287
|
"transfer(address,uint256)": {
|
|
241
|
-
"custom:info": "This function uses the `
|
|
288
|
+
"custom:info": "This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.",
|
|
289
|
+
"details": "Transfer function from the ERC20 standard interface.",
|
|
290
|
+
"params": {
|
|
291
|
+
"amount": "The amount of tokens to transfer. ",
|
|
292
|
+
"to": "The address receiving tokens."
|
|
293
|
+
},
|
|
294
|
+
"returns": {
|
|
295
|
+
"_0": "`true` on successful transfer."
|
|
296
|
+
}
|
|
242
297
|
},
|
|
243
298
|
"transferBatch(address[],address[],uint256[],bool[],bytes[])": {
|
|
244
299
|
"details": "Same as {`transfer(...)`} but transfer multiple tokens based on the arrays of `from`, `to`, `amount`.",
|
|
245
300
|
"params": {
|
|
246
|
-
"allowNonLSP1Recipient": "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.",
|
|
247
301
|
"amount": "An array of amount of tokens to transfer for each `from -> to` transfer.",
|
|
248
302
|
"data": "An array of additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
|
|
303
|
+
"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.",
|
|
249
304
|
"from": "An array of sending addresses.",
|
|
250
305
|
"to": "An array of receiving addresses."
|
|
251
306
|
}
|
|
252
307
|
},
|
|
253
308
|
"transferFrom(address,address,uint256)": {
|
|
254
|
-
"custom:info": "This function uses the `
|
|
309
|
+
"custom:info": "This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.",
|
|
310
|
+
"details": "Transfer functions for operators from the ERC20 standard interface.",
|
|
311
|
+
"params": {
|
|
312
|
+
"amount": "The amount of tokens to transfer.",
|
|
313
|
+
"from": "The address sending tokens.",
|
|
314
|
+
"to": "The address receiving tokens."
|
|
315
|
+
},
|
|
316
|
+
"returns": {
|
|
317
|
+
"_0": "`true` on successful transfer."
|
|
318
|
+
}
|
|
255
319
|
},
|
|
256
320
|
"transferOwnership(address)": {
|
|
257
321
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
322
|
+
},
|
|
323
|
+
"version()": {
|
|
324
|
+
"details": "Get the version of the contract.",
|
|
325
|
+
"returns": {
|
|
326
|
+
"_0": "The version of the the contract."
|
|
327
|
+
}
|
|
258
328
|
}
|
|
259
329
|
},
|
|
260
330
|
"version": 1
|