@lukso/lsp-smart-contracts 0.11.1 → 0.12.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/CONTRIBUTING.md +4 -0
- package/README.md +10 -2
- package/artifacts/Create2Factory.json +2 -2
- package/artifacts/LSP0ERC725Account.json +52 -25
- package/artifacts/LSP0ERC725AccountInit.json +52 -25
- package/artifacts/LSP11BasicSocialRecovery.json +18 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +18 -2
- package/artifacts/LSP16UniversalFactory.json +3 -3
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +14 -46
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +14 -46
- package/artifacts/LSP23LinkedContractsFactory.json +3 -3
- package/artifacts/LSP4DigitalAssetMetadata.json +16 -0
- package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +16 -0
- package/artifacts/LSP6KeyManager.json +14 -9
- package/artifacts/LSP6KeyManagerInit.json +14 -9
- package/artifacts/LSP7CappedSupply.json +29 -4
- package/artifacts/LSP7CappedSupplyInitAbstract.json +29 -4
- package/artifacts/LSP7CompatibleERC20.json +48 -23
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +48 -23
- package/artifacts/LSP7CompatibleERC20Mintable.json +51 -26
- package/artifacts/LSP7CompatibleERC20MintableInit.json +51 -26
- package/artifacts/LSP7DigitalAsset.json +29 -4
- package/artifacts/LSP7DigitalAssetInitAbstract.json +29 -4
- package/artifacts/LSP7Mintable.json +32 -7
- package/artifacts/LSP7MintableInit.json +32 -7
- package/artifacts/LSP8CappedSupply.json +33 -3
- package/artifacts/LSP8CappedSupplyInitAbstract.json +33 -3
- package/artifacts/LSP8CompatibleERC721.json +55 -25
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +55 -25
- package/artifacts/LSP8CompatibleERC721Mintable.json +63 -28
- package/artifacts/LSP8CompatibleERC721MintableInit.json +63 -28
- package/artifacts/LSP8IdentifiableDigitalAsset.json +33 -3
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +33 -3
- package/artifacts/LSP8Mintable.json +41 -6
- package/artifacts/LSP8MintableInit.json +41 -6
- package/artifacts/LSP9Vault.json +38 -16
- package/artifacts/LSP9VaultInit.json +38 -16
- package/artifacts/UniversalProfile.json +52 -25
- package/artifacts/UniversalProfileInit.json +52 -25
- package/contracts/Factories/Create2Factory.sol +1 -1
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +0 -14
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +122 -94
- 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 +10 -7
- package/contracts/LSP17ContractExtension/LSP17Extension.sol +4 -4
- 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 +20 -27
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +18 -21
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +2 -46
- package/contracts/LSP20CallVerification/ILSP20CallVerifier.sol +13 -9
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +39 -14
- package/contracts/LSP20CallVerification/LSP20Constants.sol +6 -6
- package/contracts/LSP20CallVerification/LSP20Errors.sol +9 -3
- 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 +134 -99
- 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 +31 -25
- package/contracts/LSP6KeyManager/LSP6Utils.sol +29 -2
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +10 -10
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -1
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +22 -8
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +180 -118
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +21 -7
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +12 -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 +120 -53
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +122 -53
- 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 +11 -11
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +12 -1
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +32 -16
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +61 -11
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +113 -74
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +63 -10
- 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 +162 -73
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +168 -84
- 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 -13
- package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
- package/contracts/LSP9Vault/LSP9Errors.sol +1 -1
- package/contracts/LSP9Vault/LSP9VaultCore.sol +58 -41
- package/devdocs/LSP0ERC725Account.json +73 -45
- package/devdocs/LSP0ERC725AccountInit.json +73 -45
- package/devdocs/LSP11BasicSocialRecovery.json +13 -0
- package/devdocs/LSP11BasicSocialRecoveryInit.json +13 -0
- package/devdocs/LSP16UniversalFactory.json +9 -9
- package/devdocs/LSP1UniversalReceiverDelegateUP.json +1 -6
- package/devdocs/LSP1UniversalReceiverDelegateVault.json +1 -6
- package/devdocs/LSP4DigitalAssetMetadata.json +32 -10
- package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +32 -10
- package/devdocs/LSP6KeyManager.json +12 -14
- package/devdocs/LSP6KeyManagerInit.json +12 -14
- package/devdocs/LSP7CappedSupply.json +47 -20
- package/devdocs/LSP7CappedSupplyInitAbstract.json +47 -20
- package/devdocs/LSP7CompatibleERC20.json +88 -24
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +88 -24
- package/devdocs/LSP7CompatibleERC20Mintable.json +88 -24
- package/devdocs/LSP7CompatibleERC20MintableInit.json +88 -24
- package/devdocs/LSP7DigitalAsset.json +47 -20
- package/devdocs/LSP7DigitalAssetInitAbstract.json +47 -20
- package/devdocs/LSP7Mintable.json +47 -20
- package/devdocs/LSP7MintableInit.json +47 -20
- package/devdocs/LSP8CappedSupply.json +57 -25
- package/devdocs/LSP8CappedSupplyInitAbstract.json +57 -25
- package/devdocs/LSP8CompatibleERC721.json +84 -31
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +84 -31
- package/devdocs/LSP8CompatibleERC721Mintable.json +86 -33
- package/devdocs/LSP8CompatibleERC721MintableInit.json +87 -34
- package/devdocs/LSP8IdentifiableDigitalAsset.json +61 -26
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +57 -25
- package/devdocs/LSP8Mintable.json +59 -27
- package/devdocs/LSP8MintableInit.json +60 -28
- package/devdocs/LSP9Vault.json +57 -35
- package/devdocs/LSP9VaultInit.json +57 -35
- package/devdocs/UniversalProfile.json +73 -45
- package/devdocs/UniversalProfileInit.json +73 -45
- package/dist/constants.cjs.js +4323 -2361
- package/dist/constants.d.ts +2933 -1022
- package/dist/constants.es.js +4322 -2361
- package/package.json +8 -6
- package/userdocs/LSP0ERC725Account.json +17 -8
- package/userdocs/LSP0ERC725AccountInit.json +17 -8
- package/userdocs/LSP16UniversalFactory.json +26 -1
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +1 -11
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +1 -11
- package/userdocs/LSP4DigitalAssetMetadata.json +7 -4
- package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +7 -4
- package/userdocs/LSP6KeyManager.json +0 -5
- package/userdocs/LSP6KeyManagerInit.json +0 -5
- package/userdocs/LSP7CappedSupply.json +14 -6
- package/userdocs/LSP7CappedSupplyInitAbstract.json +13 -5
- package/userdocs/LSP7CompatibleERC20.json +15 -5
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +15 -5
- package/userdocs/LSP7CompatibleERC20Mintable.json +15 -5
- package/userdocs/LSP7CompatibleERC20MintableInit.json +15 -5
- package/userdocs/LSP7DigitalAsset.json +15 -5
- package/userdocs/LSP7DigitalAssetInitAbstract.json +15 -5
- package/userdocs/LSP7Mintable.json +15 -5
- package/userdocs/LSP7MintableInit.json +15 -5
- package/userdocs/LSP8CappedSupply.json +13 -5
- package/userdocs/LSP8CappedSupplyInitAbstract.json +12 -4
- package/userdocs/LSP8CompatibleERC721.json +27 -17
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +27 -17
- package/userdocs/LSP8CompatibleERC721Mintable.json +28 -18
- package/userdocs/LSP8CompatibleERC721MintableInit.json +29 -19
- package/userdocs/LSP8IdentifiableDigitalAsset.json +15 -5
- package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +14 -4
- package/userdocs/LSP8Mintable.json +15 -5
- package/userdocs/LSP8MintableInit.json +16 -6
- package/userdocs/LSP9Vault.json +20 -11
- package/userdocs/LSP9VaultInit.json +20 -11
- package/userdocs/UniversalProfile.json +17 -8
- package/userdocs/UniversalProfileInit.json +17 -8
- 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)": [
|
|
@@ -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,10 +95,43 @@
|
|
|
90
95
|
{
|
|
91
96
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
92
97
|
}
|
|
98
|
+
],
|
|
99
|
+
"OwnableCallerNotTheOwner(address)": [
|
|
100
|
+
{
|
|
101
|
+
"details": "Reverts when only the owner is allowed to call the function.",
|
|
102
|
+
"params": {
|
|
103
|
+
"callerAddress": "The address that tried to make the call."
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
108
|
+
{
|
|
109
|
+
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
110
|
+
}
|
|
93
111
|
]
|
|
94
112
|
},
|
|
95
113
|
"kind": "dev",
|
|
96
114
|
"methods": {
|
|
115
|
+
"allowance(address,address)": {
|
|
116
|
+
"details": "Function to get operator allowance allowed to spend on behalf of `tokenOwner` from the ERC20 standard interface.",
|
|
117
|
+
"params": {
|
|
118
|
+
"operator": "The address approved by the `tokenOwner`",
|
|
119
|
+
"tokenOwner": "The address of the token owner"
|
|
120
|
+
},
|
|
121
|
+
"returns": {
|
|
122
|
+
"_0": "The amount `operator` is approved by `tokenOwner`"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"approve(address,uint256)": {
|
|
126
|
+
"details": "Approval function from th ERC20 standard interface.",
|
|
127
|
+
"params": {
|
|
128
|
+
"amount": "The amount to approve.",
|
|
129
|
+
"operator": "The address to approve for `amount`"
|
|
130
|
+
},
|
|
131
|
+
"returns": {
|
|
132
|
+
"_0": "`true` on successful approval."
|
|
133
|
+
}
|
|
134
|
+
},
|
|
97
135
|
"authorizeOperator(address,uint256,bytes)": {
|
|
98
136
|
"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
137
|
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
|
|
@@ -136,24 +174,26 @@
|
|
|
136
174
|
}
|
|
137
175
|
},
|
|
138
176
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
139
|
-
"custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `
|
|
177
|
+
"custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
|
|
140
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 the double spending allowance vulnerability.",
|
|
141
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `
|
|
179
|
+
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
142
180
|
"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.",
|
|
143
181
|
"params": {
|
|
144
|
-
"operator": "
|
|
145
|
-
"
|
|
182
|
+
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
183
|
+
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
146
184
|
}
|
|
147
185
|
},
|
|
148
186
|
"getData(bytes32)": {
|
|
187
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
149
188
|
"params": {
|
|
150
|
-
"dataKey": "The key which
|
|
189
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
151
190
|
},
|
|
152
191
|
"returns": {
|
|
153
|
-
"dataValue": "The
|
|
192
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
154
193
|
}
|
|
155
194
|
},
|
|
156
195
|
"getDataBatch(bytes32[])": {
|
|
196
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
157
197
|
"params": {
|
|
158
198
|
"dataKeys": "The array of keys which values to retrieve"
|
|
159
199
|
},
|
|
@@ -176,12 +216,12 @@
|
|
|
176
216
|
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
177
217
|
"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.",
|
|
178
218
|
"params": {
|
|
179
|
-
"addedAmount": "
|
|
180
|
-
"operator": "
|
|
219
|
+
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
220
|
+
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
181
221
|
}
|
|
182
222
|
},
|
|
183
223
|
"name()": {
|
|
184
|
-
"details": "Returns the name of the token.",
|
|
224
|
+
"details": "Returns the name of the token. For compatibility with clients & tools that expect ERC20.",
|
|
185
225
|
"returns": {
|
|
186
226
|
"_0": "The name of the token"
|
|
187
227
|
}
|
|
@@ -200,23 +240,30 @@
|
|
|
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,28 +277,45 @@
|
|
|
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."
|
|
@@ -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,10 +95,43 @@
|
|
|
90
95
|
{
|
|
91
96
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
92
97
|
}
|
|
98
|
+
],
|
|
99
|
+
"OwnableCallerNotTheOwner(address)": [
|
|
100
|
+
{
|
|
101
|
+
"details": "Reverts when only the owner is allowed to call the function.",
|
|
102
|
+
"params": {
|
|
103
|
+
"callerAddress": "The address that tried to make the call."
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
108
|
+
{
|
|
109
|
+
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
110
|
+
}
|
|
93
111
|
]
|
|
94
112
|
},
|
|
95
113
|
"kind": "dev",
|
|
96
114
|
"methods": {
|
|
115
|
+
"allowance(address,address)": {
|
|
116
|
+
"details": "Function to get operator allowance allowed to spend on behalf of `tokenOwner` from the ERC20 standard interface.",
|
|
117
|
+
"params": {
|
|
118
|
+
"operator": "The address approved by the `tokenOwner`",
|
|
119
|
+
"tokenOwner": "The address of the token owner"
|
|
120
|
+
},
|
|
121
|
+
"returns": {
|
|
122
|
+
"_0": "The amount `operator` is approved by `tokenOwner`"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"approve(address,uint256)": {
|
|
126
|
+
"details": "Approval function from th ERC20 standard interface.",
|
|
127
|
+
"params": {
|
|
128
|
+
"amount": "The amount to approve.",
|
|
129
|
+
"operator": "The address to approve for `amount`"
|
|
130
|
+
},
|
|
131
|
+
"returns": {
|
|
132
|
+
"_0": "`true` on successful approval."
|
|
133
|
+
}
|
|
134
|
+
},
|
|
97
135
|
"authorizeOperator(address,uint256,bytes)": {
|
|
98
136
|
"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
137
|
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
|
|
@@ -129,24 +167,26 @@
|
|
|
129
167
|
}
|
|
130
168
|
},
|
|
131
169
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
132
|
-
"custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `
|
|
170
|
+
"custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
|
|
133
171
|
"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.",
|
|
134
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `
|
|
172
|
+
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
135
173
|
"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.",
|
|
136
174
|
"params": {
|
|
137
|
-
"operator": "
|
|
138
|
-
"
|
|
175
|
+
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
176
|
+
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
139
177
|
}
|
|
140
178
|
},
|
|
141
179
|
"getData(bytes32)": {
|
|
180
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
142
181
|
"params": {
|
|
143
|
-
"dataKey": "The key which
|
|
182
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
144
183
|
},
|
|
145
184
|
"returns": {
|
|
146
|
-
"dataValue": "The
|
|
185
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
147
186
|
}
|
|
148
187
|
},
|
|
149
188
|
"getDataBatch(bytes32[])": {
|
|
189
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
150
190
|
"params": {
|
|
151
191
|
"dataKeys": "The array of keys which values to retrieve"
|
|
152
192
|
},
|
|
@@ -169,12 +209,12 @@
|
|
|
169
209
|
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
170
210
|
"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.",
|
|
171
211
|
"params": {
|
|
172
|
-
"addedAmount": "
|
|
173
|
-
"operator": "
|
|
212
|
+
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
213
|
+
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
174
214
|
}
|
|
175
215
|
},
|
|
176
216
|
"name()": {
|
|
177
|
-
"details": "Returns the name of the token.",
|
|
217
|
+
"details": "Returns the name of the token. For compatibility with clients & tools that expect ERC20.",
|
|
178
218
|
"returns": {
|
|
179
219
|
"_0": "The name of the token"
|
|
180
220
|
}
|
|
@@ -193,23 +233,30 @@
|
|
|
193
233
|
}
|
|
194
234
|
},
|
|
195
235
|
"setData(bytes32,bytes)": {
|
|
236
|
+
"custom:events": "{DataChanged} event.",
|
|
237
|
+
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
238
|
+
"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**.",
|
|
239
|
+
"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.",
|
|
196
240
|
"params": {
|
|
197
|
-
"dataKey": "The key to
|
|
198
|
-
"dataValue": "The
|
|
241
|
+
"dataKey": "The data key for which to set a new value.",
|
|
242
|
+
"dataValue": "The new bytes value to set."
|
|
199
243
|
}
|
|
200
244
|
},
|
|
201
245
|
"setDataBatch(bytes32[],bytes[])": {
|
|
202
|
-
"
|
|
246
|
+
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
247
|
+
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
248
|
+
"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**.",
|
|
249
|
+
"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.",
|
|
203
250
|
"params": {
|
|
204
|
-
"dataKeys": "
|
|
205
|
-
"dataValues": "
|
|
251
|
+
"dataKeys": "An array of data keys to set bytes values for.",
|
|
252
|
+
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
206
253
|
}
|
|
207
254
|
},
|
|
208
255
|
"supportsInterface(bytes4)": {
|
|
209
256
|
"details": "See {IERC165-supportsInterface}."
|
|
210
257
|
},
|
|
211
258
|
"symbol()": {
|
|
212
|
-
"details": "Returns the symbol of the token, usually a shorter version of the name.",
|
|
259
|
+
"details": "Returns the symbol of the token, usually a shorter version of the name. For compatibility with clients & tools that expect ERC20.",
|
|
213
260
|
"returns": {
|
|
214
261
|
"_0": "The symbol of the token"
|
|
215
262
|
}
|
|
@@ -223,28 +270,45 @@
|
|
|
223
270
|
"transfer(address,address,uint256,bool,bytes)": {
|
|
224
271
|
"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}).",
|
|
225
272
|
"params": {
|
|
226
|
-
"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.",
|
|
227
273
|
"amount": "The amount of tokens to transfer.",
|
|
228
274
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
275
|
+
"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.",
|
|
229
276
|
"from": "The sender address.",
|
|
230
277
|
"to": "The recipient address."
|
|
231
278
|
}
|
|
232
279
|
},
|
|
233
280
|
"transfer(address,uint256)": {
|
|
234
|
-
"custom:info": "This function uses the `
|
|
281
|
+
"custom:info": "This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.",
|
|
282
|
+
"details": "Transfer function from the ERC20 standard interface.",
|
|
283
|
+
"params": {
|
|
284
|
+
"amount": "The amount of tokens to transfer.",
|
|
285
|
+
"to": "The address receiving tokens."
|
|
286
|
+
},
|
|
287
|
+
"returns": {
|
|
288
|
+
"_0": "`true` on successful transfer."
|
|
289
|
+
}
|
|
235
290
|
},
|
|
236
291
|
"transferBatch(address[],address[],uint256[],bool[],bytes[])": {
|
|
237
292
|
"details": "Same as {`transfer(...)`} but transfer multiple tokens based on the arrays of `from`, `to`, `amount`.",
|
|
238
293
|
"params": {
|
|
239
|
-
"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.",
|
|
240
294
|
"amount": "An array of amount of tokens to transfer for each `from -> to` transfer.",
|
|
241
295
|
"data": "An array of additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
|
|
296
|
+
"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.",
|
|
242
297
|
"from": "An array of sending addresses.",
|
|
243
298
|
"to": "An array of receiving addresses."
|
|
244
299
|
}
|
|
245
300
|
},
|
|
246
301
|
"transferFrom(address,address,uint256)": {
|
|
247
|
-
"custom:info": "This function uses the `
|
|
302
|
+
"custom:info": "This function uses the `force` parameter as `true` so that EOA and any contract can receive tokens.",
|
|
303
|
+
"details": "Transfer functions for operators from the ERC20 standard interface.",
|
|
304
|
+
"params": {
|
|
305
|
+
"amount": "The amount of tokens to transfer.",
|
|
306
|
+
"from": "The address sending tokens.",
|
|
307
|
+
"to": "The address receiving tokens."
|
|
308
|
+
},
|
|
309
|
+
"returns": {
|
|
310
|
+
"_0": "`true` on successful transfer."
|
|
311
|
+
}
|
|
248
312
|
},
|
|
249
313
|
"transferOwnership(address)": {
|
|
250
314
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|