@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
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
"errors": {
|
|
5
5
|
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
6
6
|
{
|
|
7
|
-
"details": "
|
|
7
|
+
"details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
10
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
11
11
|
{
|
|
12
|
-
"details": "
|
|
12
|
+
"details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"ERC725Y_MsgValueDisallowed()": [
|
|
16
16
|
{
|
|
17
|
-
"details": "
|
|
17
|
+
"details": "Reverts when sending value to the {setData} or {setDataBatch} function."
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"LSP4TokenNameNotEditable()": [
|
|
@@ -26,19 +26,34 @@
|
|
|
26
26
|
{
|
|
27
27
|
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed. The `LSP4TokenSymbol` data key is located inside the ERC725Y Data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed."
|
|
28
28
|
}
|
|
29
|
+
],
|
|
30
|
+
"OwnableCallerNotTheOwner(address)": [
|
|
31
|
+
{
|
|
32
|
+
"details": "Reverts when only the owner is allowed to call the function.",
|
|
33
|
+
"params": {
|
|
34
|
+
"callerAddress": "The address that tried to make the call."
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
39
|
+
{
|
|
40
|
+
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
41
|
+
}
|
|
29
42
|
]
|
|
30
43
|
},
|
|
31
44
|
"kind": "dev",
|
|
32
45
|
"methods": {
|
|
33
46
|
"getData(bytes32)": {
|
|
47
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
34
48
|
"params": {
|
|
35
|
-
"dataKey": "The key which
|
|
49
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
36
50
|
},
|
|
37
51
|
"returns": {
|
|
38
|
-
"dataValue": "The
|
|
52
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
39
53
|
}
|
|
40
54
|
},
|
|
41
55
|
"getDataBatch(bytes32[])": {
|
|
56
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
42
57
|
"params": {
|
|
43
58
|
"dataKeys": "The array of keys which values to retrieve"
|
|
44
59
|
},
|
|
@@ -53,16 +68,23 @@
|
|
|
53
68
|
"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."
|
|
54
69
|
},
|
|
55
70
|
"setData(bytes32,bytes)": {
|
|
71
|
+
"custom:events": "{DataChanged} event.",
|
|
72
|
+
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
73
|
+
"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**.",
|
|
74
|
+
"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.",
|
|
56
75
|
"params": {
|
|
57
|
-
"dataKey": "The key to
|
|
58
|
-
"dataValue": "The
|
|
76
|
+
"dataKey": "The data key for which to set a new value.",
|
|
77
|
+
"dataValue": "The new bytes value to set."
|
|
59
78
|
}
|
|
60
79
|
},
|
|
61
80
|
"setDataBatch(bytes32[],bytes[])": {
|
|
62
|
-
"
|
|
81
|
+
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
82
|
+
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
83
|
+
"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**.",
|
|
84
|
+
"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.",
|
|
63
85
|
"params": {
|
|
64
|
-
"dataKeys": "
|
|
65
|
-
"dataValues": "
|
|
86
|
+
"dataKeys": "An array of data keys to set bytes values for.",
|
|
87
|
+
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
66
88
|
}
|
|
67
89
|
},
|
|
68
90
|
"supportsInterface(bytes4)": {
|
|
@@ -17,19 +17,24 @@
|
|
|
17
17
|
"details": "Reverts when calling the KeyManager through `execute(uint256,address,uint256,bytes)`."
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
-
"
|
|
20
|
+
"DelegateCallDisallowedViaKeyManager()": [
|
|
21
21
|
{
|
|
22
|
-
"details": "Reverts when
|
|
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."
|
|
23
23
|
}
|
|
24
24
|
],
|
|
25
|
-
"
|
|
25
|
+
"ERC725X_ExecuteParametersEmptyArray()": [
|
|
26
26
|
{
|
|
27
|
-
"details": "Reverts when
|
|
27
|
+
"details": "Reverts when one of the array parameter provided to the {executeBatch} function is an empty array."
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"ERC725X_ExecuteParametersLengthMismatch()": [
|
|
31
|
+
{
|
|
32
|
+
"details": "Reverts when there is not the same number of elements in the `operationTypes`, `targets` addresses, `values`, and `datas` array parameters provided when calling the {executeBatch} function."
|
|
28
33
|
}
|
|
29
34
|
],
|
|
30
35
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
31
36
|
{
|
|
32
|
-
"details": "
|
|
37
|
+
"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
38
|
}
|
|
34
39
|
],
|
|
35
40
|
"InvalidDataValuesForDataKeys(bytes32,bytes)": [
|
|
@@ -43,7 +48,7 @@
|
|
|
43
48
|
],
|
|
44
49
|
"InvalidERC725Function(bytes4)": [
|
|
45
50
|
{
|
|
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)",
|
|
51
|
+
"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
52
|
"params": {
|
|
48
53
|
"invalidFunction": "The `bytes4` selector of the function that was attempted to be called on the linked {target} but not recognised."
|
|
49
54
|
}
|
|
@@ -253,19 +258,22 @@
|
|
|
253
258
|
}
|
|
254
259
|
},
|
|
255
260
|
"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
|
|
261
|
+
"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
262
|
"params": {
|
|
258
263
|
"hash": "Hash of the data to be signed",
|
|
259
264
|
"signature": "Signature byte array associated with _data"
|
|
260
265
|
},
|
|
261
266
|
"returns": {
|
|
262
|
-
"
|
|
267
|
+
"returnedStatus": "`0x1626ba7e` on success, or `0xffffffff` on failure."
|
|
263
268
|
}
|
|
264
269
|
},
|
|
265
|
-
"lsp20VerifyCall(address,uint256,bytes)": {
|
|
270
|
+
"lsp20VerifyCall(address,address,address,uint256,bytes)": {
|
|
271
|
+
"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
272
|
"params": {
|
|
267
|
-
"
|
|
268
|
-
"
|
|
273
|
+
"callData": "The calldata sent by the caller to the msg.sender",
|
|
274
|
+
"caller": "The address who called the function on the `target` contract.",
|
|
275
|
+
"requestor": "The address that requested to make the call to `target`.",
|
|
276
|
+
"target": "The address of the contract that implements the `LSP20CallVerification` interface.",
|
|
269
277
|
"value": "The value sent by the caller to the function called on the msg.sender"
|
|
270
278
|
},
|
|
271
279
|
"returns": {
|
|
@@ -274,8 +282,8 @@
|
|
|
274
282
|
},
|
|
275
283
|
"lsp20VerifyCallResult(bytes32,bytes)": {
|
|
276
284
|
"params": {
|
|
277
|
-
"callHash": "The keccak256 of the parameters of {lsp20VerifyCall} concatenated",
|
|
278
|
-
"
|
|
285
|
+
"callHash": "The keccak256 hash of the parameters of {lsp20VerifyCall} concatenated",
|
|
286
|
+
"callResult": "The value result of the function called on the msg.sender"
|
|
279
287
|
},
|
|
280
288
|
"returns": {
|
|
281
289
|
"_0": "MUST return the lsp20VerifyCallResult function selector if the call to the function is allowed"
|
|
@@ -289,6 +297,12 @@
|
|
|
289
297
|
"returns": {
|
|
290
298
|
"_0": "The address of the linked contract"
|
|
291
299
|
}
|
|
300
|
+
},
|
|
301
|
+
"version()": {
|
|
302
|
+
"details": "Get the version of the contract.",
|
|
303
|
+
"returns": {
|
|
304
|
+
"_0": "The version of the the contract."
|
|
305
|
+
}
|
|
292
306
|
}
|
|
293
307
|
},
|
|
294
308
|
"title": "Implementation of a contract acting as a controller of an ERC725 Account, using permissions stored in the ERC725Y storage.",
|
|
@@ -17,19 +17,24 @@
|
|
|
17
17
|
"details": "Reverts when calling the KeyManager through `execute(uint256,address,uint256,bytes)`."
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
-
"
|
|
20
|
+
"DelegateCallDisallowedViaKeyManager()": [
|
|
21
21
|
{
|
|
22
|
-
"details": "Reverts when
|
|
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."
|
|
23
23
|
}
|
|
24
24
|
],
|
|
25
|
-
"
|
|
25
|
+
"ERC725X_ExecuteParametersEmptyArray()": [
|
|
26
26
|
{
|
|
27
|
-
"details": "Reverts when
|
|
27
|
+
"details": "Reverts when one of the array parameter provided to the {executeBatch} function is an empty array."
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"ERC725X_ExecuteParametersLengthMismatch()": [
|
|
31
|
+
{
|
|
32
|
+
"details": "Reverts when there is not the same number of elements in the `operationTypes`, `targets` addresses, `values`, and `datas` array parameters provided when calling the {executeBatch} function."
|
|
28
33
|
}
|
|
29
34
|
],
|
|
30
35
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
31
36
|
{
|
|
32
|
-
"details": "
|
|
37
|
+
"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
38
|
}
|
|
34
39
|
],
|
|
35
40
|
"InvalidDataValuesForDataKeys(bytes32,bytes)": [
|
|
@@ -43,7 +48,7 @@
|
|
|
43
48
|
],
|
|
44
49
|
"InvalidERC725Function(bytes4)": [
|
|
45
50
|
{
|
|
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)",
|
|
51
|
+
"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
52
|
"params": {
|
|
48
53
|
"invalidFunction": "The `bytes4` selector of the function that was attempted to be called on the linked {target} but not recognised."
|
|
49
54
|
}
|
|
@@ -256,19 +261,22 @@
|
|
|
256
261
|
}
|
|
257
262
|
},
|
|
258
263
|
"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
|
|
264
|
+
"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
265
|
"params": {
|
|
261
266
|
"hash": "Hash of the data to be signed",
|
|
262
267
|
"signature": "Signature byte array associated with _data"
|
|
263
268
|
},
|
|
264
269
|
"returns": {
|
|
265
|
-
"
|
|
270
|
+
"returnedStatus": "`0x1626ba7e` on success, or `0xffffffff` on failure."
|
|
266
271
|
}
|
|
267
272
|
},
|
|
268
|
-
"lsp20VerifyCall(address,uint256,bytes)": {
|
|
273
|
+
"lsp20VerifyCall(address,address,address,uint256,bytes)": {
|
|
274
|
+
"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
275
|
"params": {
|
|
270
|
-
"
|
|
271
|
-
"
|
|
276
|
+
"callData": "The calldata sent by the caller to the msg.sender",
|
|
277
|
+
"caller": "The address who called the function on the `target` contract.",
|
|
278
|
+
"requestor": "The address that requested to make the call to `target`.",
|
|
279
|
+
"target": "The address of the contract that implements the `LSP20CallVerification` interface.",
|
|
272
280
|
"value": "The value sent by the caller to the function called on the msg.sender"
|
|
273
281
|
},
|
|
274
282
|
"returns": {
|
|
@@ -277,8 +285,8 @@
|
|
|
277
285
|
},
|
|
278
286
|
"lsp20VerifyCallResult(bytes32,bytes)": {
|
|
279
287
|
"params": {
|
|
280
|
-
"callHash": "The keccak256 of the parameters of {lsp20VerifyCall} concatenated",
|
|
281
|
-
"
|
|
288
|
+
"callHash": "The keccak256 hash of the parameters of {lsp20VerifyCall} concatenated",
|
|
289
|
+
"callResult": "The value result of the function called on the msg.sender"
|
|
282
290
|
},
|
|
283
291
|
"returns": {
|
|
284
292
|
"_0": "MUST return the lsp20VerifyCallResult function selector if the call to the function is allowed"
|
|
@@ -292,6 +300,12 @@
|
|
|
292
300
|
"returns": {
|
|
293
301
|
"_0": "The address of the linked contract"
|
|
294
302
|
}
|
|
303
|
+
},
|
|
304
|
+
"version()": {
|
|
305
|
+
"details": "Get the version of the contract.",
|
|
306
|
+
"returns": {
|
|
307
|
+
"_0": "The version of the the contract."
|
|
308
|
+
}
|
|
295
309
|
}
|
|
296
310
|
},
|
|
297
311
|
"title": "Proxy implementation of a contract acting as a controller of an ERC725 Account, using permissions stored in the ERC725Y storage",
|
|
@@ -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.",
|
|
@@ -146,24 +169,23 @@
|
|
|
146
169
|
}
|
|
147
170
|
},
|
|
148
171
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
149
|
-
"
|
|
150
|
-
"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 `substractedAmount`.",
|
|
152
|
-
"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.",
|
|
172
|
+
"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",
|
|
153
173
|
"params": {
|
|
154
|
-
"operator": "
|
|
155
|
-
"
|
|
174
|
+
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
175
|
+
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
156
176
|
}
|
|
157
177
|
},
|
|
158
178
|
"getData(bytes32)": {
|
|
179
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
159
180
|
"params": {
|
|
160
|
-
"dataKey": "The key which
|
|
181
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
161
182
|
},
|
|
162
183
|
"returns": {
|
|
163
|
-
"dataValue": "The
|
|
184
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
164
185
|
}
|
|
165
186
|
},
|
|
166
187
|
"getDataBatch(bytes32[])": {
|
|
188
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
167
189
|
"params": {
|
|
168
190
|
"dataKeys": "The array of keys which values to retrieve"
|
|
169
191
|
},
|
|
@@ -181,13 +203,10 @@
|
|
|
181
203
|
}
|
|
182
204
|
},
|
|
183
205
|
"increaseAllowance(address,uint256,bytes)": {
|
|
184
|
-
"
|
|
185
|
-
"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.",
|
|
186
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
187
|
-
"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.",
|
|
206
|
+
"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",
|
|
188
207
|
"params": {
|
|
189
|
-
"addedAmount": "
|
|
190
|
-
"operator": "
|
|
208
|
+
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
209
|
+
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
191
210
|
}
|
|
192
211
|
},
|
|
193
212
|
"owner()": {
|
|
@@ -196,24 +215,32 @@
|
|
|
196
215
|
"renounceOwnership()": {
|
|
197
216
|
"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."
|
|
198
217
|
},
|
|
199
|
-
"revokeOperator(address,bytes)": {
|
|
218
|
+
"revokeOperator(address,bool,bytes)": {
|
|
200
219
|
"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}.",
|
|
201
220
|
"params": {
|
|
221
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
202
222
|
"operator": "The address to revoke as an operator.",
|
|
203
223
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
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,15 +271,21 @@
|
|
|
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
|
}
|
|
253
280
|
},
|
|
254
281
|
"transferOwnership(address)": {
|
|
255
282
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
283
|
+
},
|
|
284
|
+
"version()": {
|
|
285
|
+
"details": "Get the version of the contract.",
|
|
286
|
+
"returns": {
|
|
287
|
+
"_0": "The version of the the contract."
|
|
288
|
+
}
|
|
256
289
|
}
|
|
257
290
|
},
|
|
258
291
|
"version": 1
|