@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
|
@@ -17,11 +17,6 @@
|
|
|
17
17
|
"details": "Reverts when calling the KeyManager through `execute(uint256,address,uint256,bytes)`."
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
-
"CannotSendValueToSetData()": [
|
|
21
|
-
{
|
|
22
|
-
"details": "Reverts when calling the `setData(byte32,bytes)` or `setData(bytes32[],bytes[]) functions on the linked {target} while sending value."
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
20
|
"DelegateCallDisallowedViaKeyManager()": [
|
|
26
21
|
{
|
|
27
22
|
"details": "Reverts when trying to do a `delegatecall` via the ERC725X.execute(uint256,address,uint256,bytes) (operation type 4) function of the linked {target}. `DELEGATECALL` is disallowed by default on the LSP6KeyManager."
|
|
@@ -29,7 +24,7 @@
|
|
|
29
24
|
],
|
|
30
25
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
31
26
|
{
|
|
32
|
-
"details": "
|
|
27
|
+
"details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
|
|
33
28
|
}
|
|
34
29
|
],
|
|
35
30
|
"InvalidDataValuesForDataKeys(bytes32,bytes)": [
|
|
@@ -43,7 +38,7 @@
|
|
|
43
38
|
],
|
|
44
39
|
"InvalidERC725Function(bytes4)": [
|
|
45
40
|
{
|
|
46
|
-
"details": "Reverts when trying to call a function on the linked {target}, that is not any of the following: - `setData(bytes32,bytes)` (ERC725Y) - `setDataBatch(bytes32[],bytes[])` (ERC725Y) - `execute(uint256,address,uint256,bytes)` (ERC725X) - `transferOwnership(address)` - `acceptOwnership()` (LSP14)",
|
|
41
|
+
"details": "Reverts when trying to call a function on the linked {target}, that is not any of the following: - `setData(bytes32,bytes)` (ERC725Y) - `setDataBatch(bytes32[],bytes[])` (ERC725Y) - `execute(uint256,address,uint256,bytes)` (ERC725X) - `transferOwnership(address)` (LSP14) - `acceptOwnership()` (LSP14) - `renounceOwnership()` (LSP14)",
|
|
47
42
|
"params": {
|
|
48
43
|
"invalidFunction": "The `bytes4` selector of the function that was attempted to be called on the linked {target} but not recognised."
|
|
49
44
|
}
|
|
@@ -253,19 +248,22 @@
|
|
|
253
248
|
}
|
|
254
249
|
},
|
|
255
250
|
"isValidSignature(bytes32,bytes)": {
|
|
256
|
-
"details": "Checks if a signature was signed by a controller that has the permission `SIGN`. If the signer is a controller with the permission `SIGN`, it will return the ERC1271
|
|
251
|
+
"details": "Checks if a signature was signed by a controller that has the permission `SIGN`. If the signer is a controller with the permission `SIGN`, it will return the ERC1271 success value.",
|
|
257
252
|
"params": {
|
|
258
253
|
"hash": "Hash of the data to be signed",
|
|
259
254
|
"signature": "Signature byte array associated with _data"
|
|
260
255
|
},
|
|
261
256
|
"returns": {
|
|
262
|
-
"
|
|
257
|
+
"returnedStatus": "`0x1626ba7e` on success, or `0xffffffff` on failure."
|
|
263
258
|
}
|
|
264
259
|
},
|
|
265
|
-
"lsp20VerifyCall(address,uint256,bytes)": {
|
|
260
|
+
"lsp20VerifyCall(address,address,address,uint256,bytes)": {
|
|
261
|
+
"custom:hint": "This function can call by any other address than the {`target`}. This allows to verify permissions in a _\"read-only\"_ manner. Anyone can call this function to verify if the `caller` has the right permissions to perform the abi-encoded function call `data` on the {`target`} contract (while sending `msgValue` alongside the call). If the permissions have been verified successfully and `caller` is authorized, one of the following two LSP20 success value will be returned: - `0x1a238000`: LSP20 success value **without** post verification (last byte is `0x00`). - `0x1a238001`: LSP20 success value **with** post-verification (last byte is `0x01`).",
|
|
266
262
|
"params": {
|
|
267
|
-
"
|
|
268
|
-
"
|
|
263
|
+
"callData": "The calldata sent by the caller to the msg.sender",
|
|
264
|
+
"caller": "The address who called the function on the `target` contract.",
|
|
265
|
+
"requestor": "The address that requested to make the call to `target`.",
|
|
266
|
+
"target": "The address of the contract that implements the `LSP20CallVerification` interface.",
|
|
269
267
|
"value": "The value sent by the caller to the function called on the msg.sender"
|
|
270
268
|
},
|
|
271
269
|
"returns": {
|
|
@@ -274,8 +272,8 @@
|
|
|
274
272
|
},
|
|
275
273
|
"lsp20VerifyCallResult(bytes32,bytes)": {
|
|
276
274
|
"params": {
|
|
277
|
-
"callHash": "The keccak256 of the parameters of {lsp20VerifyCall} concatenated",
|
|
278
|
-
"
|
|
275
|
+
"callHash": "The keccak256 hash of the parameters of {lsp20VerifyCall} concatenated",
|
|
276
|
+
"callResult": "The value result of the function called on the msg.sender"
|
|
279
277
|
},
|
|
280
278
|
"returns": {
|
|
281
279
|
"_0": "MUST return the lsp20VerifyCallResult function selector if the call to the function is allowed"
|
|
@@ -17,11 +17,6 @@
|
|
|
17
17
|
"details": "Reverts when calling the KeyManager through `execute(uint256,address,uint256,bytes)`."
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
-
"CannotSendValueToSetData()": [
|
|
21
|
-
{
|
|
22
|
-
"details": "Reverts when calling the `setData(byte32,bytes)` or `setData(bytes32[],bytes[]) functions on the linked {target} while sending value."
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
20
|
"DelegateCallDisallowedViaKeyManager()": [
|
|
26
21
|
{
|
|
27
22
|
"details": "Reverts when trying to do a `delegatecall` via the ERC725X.execute(uint256,address,uint256,bytes) (operation type 4) function of the linked {target}. `DELEGATECALL` is disallowed by default on the LSP6KeyManager."
|
|
@@ -29,7 +24,7 @@
|
|
|
29
24
|
],
|
|
30
25
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
31
26
|
{
|
|
32
|
-
"details": "
|
|
27
|
+
"details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
|
|
33
28
|
}
|
|
34
29
|
],
|
|
35
30
|
"InvalidDataValuesForDataKeys(bytes32,bytes)": [
|
|
@@ -43,7 +38,7 @@
|
|
|
43
38
|
],
|
|
44
39
|
"InvalidERC725Function(bytes4)": [
|
|
45
40
|
{
|
|
46
|
-
"details": "Reverts when trying to call a function on the linked {target}, that is not any of the following: - `setData(bytes32,bytes)` (ERC725Y) - `setDataBatch(bytes32[],bytes[])` (ERC725Y) - `execute(uint256,address,uint256,bytes)` (ERC725X) - `transferOwnership(address)` - `acceptOwnership()` (LSP14)",
|
|
41
|
+
"details": "Reverts when trying to call a function on the linked {target}, that is not any of the following: - `setData(bytes32,bytes)` (ERC725Y) - `setDataBatch(bytes32[],bytes[])` (ERC725Y) - `execute(uint256,address,uint256,bytes)` (ERC725X) - `transferOwnership(address)` (LSP14) - `acceptOwnership()` (LSP14) - `renounceOwnership()` (LSP14)",
|
|
47
42
|
"params": {
|
|
48
43
|
"invalidFunction": "The `bytes4` selector of the function that was attempted to be called on the linked {target} but not recognised."
|
|
49
44
|
}
|
|
@@ -256,19 +251,22 @@
|
|
|
256
251
|
}
|
|
257
252
|
},
|
|
258
253
|
"isValidSignature(bytes32,bytes)": {
|
|
259
|
-
"details": "Checks if a signature was signed by a controller that has the permission `SIGN`. If the signer is a controller with the permission `SIGN`, it will return the ERC1271
|
|
254
|
+
"details": "Checks if a signature was signed by a controller that has the permission `SIGN`. If the signer is a controller with the permission `SIGN`, it will return the ERC1271 success value.",
|
|
260
255
|
"params": {
|
|
261
256
|
"hash": "Hash of the data to be signed",
|
|
262
257
|
"signature": "Signature byte array associated with _data"
|
|
263
258
|
},
|
|
264
259
|
"returns": {
|
|
265
|
-
"
|
|
260
|
+
"returnedStatus": "`0x1626ba7e` on success, or `0xffffffff` on failure."
|
|
266
261
|
}
|
|
267
262
|
},
|
|
268
|
-
"lsp20VerifyCall(address,uint256,bytes)": {
|
|
263
|
+
"lsp20VerifyCall(address,address,address,uint256,bytes)": {
|
|
264
|
+
"custom:hint": "This function can call by any other address than the {`target`}. This allows to verify permissions in a _\"read-only\"_ manner. Anyone can call this function to verify if the `caller` has the right permissions to perform the abi-encoded function call `data` on the {`target`} contract (while sending `msgValue` alongside the call). If the permissions have been verified successfully and `caller` is authorized, one of the following two LSP20 success value will be returned: - `0x1a238000`: LSP20 success value **without** post verification (last byte is `0x00`). - `0x1a238001`: LSP20 success value **with** post-verification (last byte is `0x01`).",
|
|
269
265
|
"params": {
|
|
270
|
-
"
|
|
271
|
-
"
|
|
266
|
+
"callData": "The calldata sent by the caller to the msg.sender",
|
|
267
|
+
"caller": "The address who called the function on the `target` contract.",
|
|
268
|
+
"requestor": "The address that requested to make the call to `target`.",
|
|
269
|
+
"target": "The address of the contract that implements the `LSP20CallVerification` interface.",
|
|
272
270
|
"value": "The value sent by the caller to the function called on the msg.sender"
|
|
273
271
|
},
|
|
274
272
|
"returns": {
|
|
@@ -277,8 +275,8 @@
|
|
|
277
275
|
},
|
|
278
276
|
"lsp20VerifyCallResult(bytes32,bytes)": {
|
|
279
277
|
"params": {
|
|
280
|
-
"callHash": "The keccak256 of the parameters of {lsp20VerifyCall} concatenated",
|
|
281
|
-
"
|
|
278
|
+
"callHash": "The keccak256 hash of the parameters of {lsp20VerifyCall} concatenated",
|
|
279
|
+
"callResult": "The value result of the function called on the msg.sender"
|
|
282
280
|
},
|
|
283
281
|
"returns": {
|
|
284
282
|
"_0": "MUST return the lsp20VerifyCallResult function selector if the call to the function is allowed"
|
|
@@ -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,6 +105,19 @@
|
|
|
100
105
|
{
|
|
101
106
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
102
107
|
}
|
|
108
|
+
],
|
|
109
|
+
"OwnableCallerNotTheOwner(address)": [
|
|
110
|
+
{
|
|
111
|
+
"details": "Reverts when only the owner is allowed to call the function.",
|
|
112
|
+
"params": {
|
|
113
|
+
"callerAddress": "The address that tried to make the call."
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
118
|
+
{
|
|
119
|
+
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
120
|
+
}
|
|
103
121
|
]
|
|
104
122
|
},
|
|
105
123
|
"kind": "dev",
|
|
@@ -146,24 +164,26 @@
|
|
|
146
164
|
}
|
|
147
165
|
},
|
|
148
166
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
149
|
-
"custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `
|
|
167
|
+
"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`.",
|
|
150
168
|
"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.",
|
|
151
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `
|
|
169
|
+
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
152
170
|
"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.",
|
|
153
171
|
"params": {
|
|
154
|
-
"operator": "
|
|
155
|
-
"
|
|
172
|
+
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
173
|
+
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
156
174
|
}
|
|
157
175
|
},
|
|
158
176
|
"getData(bytes32)": {
|
|
177
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
159
178
|
"params": {
|
|
160
|
-
"dataKey": "The key which
|
|
179
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
161
180
|
},
|
|
162
181
|
"returns": {
|
|
163
|
-
"dataValue": "The
|
|
182
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
164
183
|
}
|
|
165
184
|
},
|
|
166
185
|
"getDataBatch(bytes32[])": {
|
|
186
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
167
187
|
"params": {
|
|
168
188
|
"dataKeys": "The array of keys which values to retrieve"
|
|
169
189
|
},
|
|
@@ -186,8 +206,8 @@
|
|
|
186
206
|
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
187
207
|
"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.",
|
|
188
208
|
"params": {
|
|
189
|
-
"addedAmount": "
|
|
190
|
-
"operator": "
|
|
209
|
+
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
210
|
+
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
191
211
|
}
|
|
192
212
|
},
|
|
193
213
|
"owner()": {
|
|
@@ -204,16 +224,23 @@
|
|
|
204
224
|
}
|
|
205
225
|
},
|
|
206
226
|
"setData(bytes32,bytes)": {
|
|
227
|
+
"custom:events": "{DataChanged} event.",
|
|
228
|
+
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
229
|
+
"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**.",
|
|
230
|
+
"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.",
|
|
207
231
|
"params": {
|
|
208
|
-
"dataKey": "The key to
|
|
209
|
-
"dataValue": "The
|
|
232
|
+
"dataKey": "The data key for which to set a new value.",
|
|
233
|
+
"dataValue": "The new bytes value to set."
|
|
210
234
|
}
|
|
211
235
|
},
|
|
212
236
|
"setDataBatch(bytes32[],bytes[])": {
|
|
213
|
-
"
|
|
237
|
+
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
238
|
+
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
239
|
+
"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**.",
|
|
240
|
+
"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.",
|
|
214
241
|
"params": {
|
|
215
|
-
"dataKeys": "
|
|
216
|
-
"dataValues": "
|
|
242
|
+
"dataKeys": "An array of data keys to set bytes values for.",
|
|
243
|
+
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
217
244
|
}
|
|
218
245
|
},
|
|
219
246
|
"supportsInterface(bytes4)": {
|
|
@@ -234,9 +261,9 @@
|
|
|
234
261
|
"transfer(address,address,uint256,bool,bytes)": {
|
|
235
262
|
"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}).",
|
|
236
263
|
"params": {
|
|
237
|
-
"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.",
|
|
238
264
|
"amount": "The amount of tokens to transfer.",
|
|
239
265
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
266
|
+
"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.",
|
|
240
267
|
"from": "The sender address.",
|
|
241
268
|
"to": "The recipient address."
|
|
242
269
|
}
|
|
@@ -244,9 +271,9 @@
|
|
|
244
271
|
"transferBatch(address[],address[],uint256[],bool[],bytes[])": {
|
|
245
272
|
"details": "Same as {`transfer(...)`} but transfer multiple tokens based on the arrays of `from`, `to`, `amount`.",
|
|
246
273
|
"params": {
|
|
247
|
-
"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.",
|
|
248
274
|
"amount": "An array of amount of tokens to transfer for each `from -> to` transfer.",
|
|
249
275
|
"data": "An array of additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
|
|
276
|
+
"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.",
|
|
250
277
|
"from": "An array of sending addresses.",
|
|
251
278
|
"to": "An array of receiving addresses."
|
|
252
279
|
}
|
|
@@ -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,6 +105,19 @@
|
|
|
100
105
|
{
|
|
101
106
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
102
107
|
}
|
|
108
|
+
],
|
|
109
|
+
"OwnableCallerNotTheOwner(address)": [
|
|
110
|
+
{
|
|
111
|
+
"details": "Reverts when only the owner is allowed to call the function.",
|
|
112
|
+
"params": {
|
|
113
|
+
"callerAddress": "The address that tried to make the call."
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
118
|
+
{
|
|
119
|
+
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
120
|
+
}
|
|
103
121
|
]
|
|
104
122
|
},
|
|
105
123
|
"kind": "dev",
|
|
@@ -139,24 +157,26 @@
|
|
|
139
157
|
}
|
|
140
158
|
},
|
|
141
159
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
142
|
-
"custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `
|
|
160
|
+
"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`.",
|
|
143
161
|
"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 `
|
|
162
|
+
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
145
163
|
"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.",
|
|
146
164
|
"params": {
|
|
147
|
-
"operator": "
|
|
148
|
-
"
|
|
165
|
+
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
166
|
+
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
149
167
|
}
|
|
150
168
|
},
|
|
151
169
|
"getData(bytes32)": {
|
|
170
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
152
171
|
"params": {
|
|
153
|
-
"dataKey": "The key which
|
|
172
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
154
173
|
},
|
|
155
174
|
"returns": {
|
|
156
|
-
"dataValue": "The
|
|
175
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
157
176
|
}
|
|
158
177
|
},
|
|
159
178
|
"getDataBatch(bytes32[])": {
|
|
179
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
160
180
|
"params": {
|
|
161
181
|
"dataKeys": "The array of keys which values to retrieve"
|
|
162
182
|
},
|
|
@@ -179,8 +199,8 @@
|
|
|
179
199
|
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
180
200
|
"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.",
|
|
181
201
|
"params": {
|
|
182
|
-
"addedAmount": "
|
|
183
|
-
"operator": "
|
|
202
|
+
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
203
|
+
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
184
204
|
}
|
|
185
205
|
},
|
|
186
206
|
"owner()": {
|
|
@@ -197,16 +217,23 @@
|
|
|
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,9 +264,9 @@
|
|
|
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
|
}
|