@lukso/lsp-smart-contracts 0.12.0-rc.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/LSP0ERC725Account.json +18 -24
- package/artifacts/LSP0ERC725AccountInit.json +18 -24
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +15 -2
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +15 -2
- package/artifacts/LSP6KeyManager.json +25 -2
- package/artifacts/LSP6KeyManagerInit.json +25 -2
- package/artifacts/LSP7CappedSupply.json +22 -0
- package/artifacts/LSP7CappedSupplyInitAbstract.json +22 -0
- package/artifacts/LSP7CompatibleERC20.json +22 -0
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +22 -0
- package/artifacts/LSP7CompatibleERC20Mintable.json +24 -2
- package/artifacts/LSP7CompatibleERC20MintableInit.json +24 -2
- package/artifacts/LSP7DigitalAsset.json +22 -0
- package/artifacts/LSP7DigitalAssetInitAbstract.json +22 -0
- package/artifacts/LSP7Mintable.json +24 -2
- package/artifacts/LSP7MintableInit.json +24 -2
- package/artifacts/LSP8CappedSupply.json +11 -0
- package/artifacts/LSP8CappedSupplyInitAbstract.json +11 -0
- package/artifacts/LSP8CompatibleERC721.json +11 -0
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +11 -0
- package/artifacts/LSP8CompatibleERC721Mintable.json +13 -2
- package/artifacts/LSP8CompatibleERC721MintableInit.json +13 -2
- package/artifacts/LSP8IdentifiableDigitalAsset.json +11 -0
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +11 -0
- package/artifacts/LSP8Mintable.json +13 -2
- package/artifacts/LSP8MintableInit.json +13 -2
- package/artifacts/LSP9Vault.json +15 -21
- package/artifacts/LSP9VaultInit.json +15 -21
- package/artifacts/UniversalProfile.json +18 -24
- package/artifacts/UniversalProfileInit.json +18 -24
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +0 -8
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +6 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +18 -4
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +132 -66
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +3 -2
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +14 -3
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +11 -10
- package/contracts/LSP17ContractExtension/LSP17Extendable.sol +12 -8
- package/contracts/LSP17ContractExtension/LSP17Extension.sol +2 -1
- package/contracts/LSP17Extensions/OnERC721ReceivedExtension.sol +2 -1
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +32 -11
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +25 -9
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +4 -3
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +43 -49
- package/contracts/LSP20CallVerification/LSP20Errors.sol +2 -2
- package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +1 -5
- package/contracts/LSP6KeyManager/LSP6KeyManager.sol +2 -1
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +54 -8
- package/contracts/LSP6KeyManager/LSP6KeyManagerInit.sol +2 -1
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +14 -16
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +9 -5
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +60 -0
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -1
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +7 -5
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +111 -175
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +7 -5
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +8 -1
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +7 -1
- package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +5 -0
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +8 -5
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +6 -5
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +30 -73
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +6 -5
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +7 -7
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +7 -7
- package/contracts/LSP9Vault/ILSP9Vault.sol +0 -8
- package/contracts/LSP9Vault/LSP9Constants.sol +6 -1
- package/contracts/LSP9Vault/LSP9Vault.sol +14 -4
- package/contracts/LSP9Vault/LSP9VaultCore.sol +80 -37
- package/contracts/LSP9Vault/LSP9VaultInit.sol +3 -2
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +12 -3
- package/contracts/UniversalProfile.sol +5 -3
- package/contracts/UniversalProfileInit.sol +9 -6
- package/contracts/UniversalProfileInitAbstract.sol +5 -3
- package/contracts/Version.sol +17 -0
- package/devdocs/LSP0ERC725Account.json +11 -10
- package/devdocs/LSP0ERC725AccountInit.json +10 -9
- package/devdocs/LSP6KeyManager.json +11 -0
- package/devdocs/LSP6KeyManagerInit.json +11 -0
- package/devdocs/LSP7CappedSupply.json +10 -10
- package/devdocs/LSP7CappedSupplyInitAbstract.json +10 -10
- package/devdocs/LSP7CompatibleERC20.json +10 -10
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +10 -10
- package/devdocs/LSP7CompatibleERC20Mintable.json +10 -10
- package/devdocs/LSP7CompatibleERC20MintableInit.json +10 -10
- package/devdocs/LSP7DigitalAsset.json +10 -10
- package/devdocs/LSP7DigitalAssetInitAbstract.json +10 -10
- package/devdocs/LSP7Mintable.json +10 -10
- package/devdocs/LSP7MintableInit.json +10 -10
- package/devdocs/LSP8CappedSupply.json +3 -2
- package/devdocs/LSP8CappedSupplyInitAbstract.json +3 -2
- package/devdocs/LSP8CompatibleERC721.json +3 -2
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +3 -2
- package/devdocs/LSP8CompatibleERC721Mintable.json +3 -2
- package/devdocs/LSP8CompatibleERC721MintableInit.json +3 -2
- package/devdocs/LSP8IdentifiableDigitalAsset.json +3 -2
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +3 -2
- package/devdocs/LSP8Mintable.json +3 -2
- package/devdocs/LSP8MintableInit.json +3 -2
- package/devdocs/LSP9Vault.json +6 -6
- package/devdocs/LSP9VaultInit.json +6 -6
- package/devdocs/UniversalProfile.json +11 -10
- package/devdocs/UniversalProfileInit.json +11 -10
- package/dist/constants.cjs.js +822 -459
- package/dist/constants.d.ts +633 -298
- package/dist/constants.es.js +822 -459
- package/package.json +1 -3
- package/userdocs/LSP0ERC725Account.json +3 -3
- package/userdocs/LSP0ERC725AccountInit.json +3 -3
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +3 -0
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +3 -0
- package/userdocs/LSP6KeyManager.json +3 -0
- package/userdocs/LSP6KeyManagerInit.json +3 -0
- package/userdocs/LSP9Vault.json +3 -3
- package/userdocs/LSP9VaultInit.json +3 -3
- package/userdocs/UniversalProfile.json +3 -3
- package/userdocs/UniversalProfileInit.json +3 -3
- package/CONTRIBUTING.md +0 -188
|
@@ -22,6 +22,16 @@
|
|
|
22
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
|
+
"ERC725X_ExecuteParametersEmptyArray()": [
|
|
26
|
+
{
|
|
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."
|
|
33
|
+
}
|
|
34
|
+
],
|
|
25
35
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
26
36
|
{
|
|
27
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."
|
|
@@ -248,6 +258,7 @@
|
|
|
248
258
|
}
|
|
249
259
|
},
|
|
250
260
|
"isValidSignature(bytes32,bytes)": {
|
|
261
|
+
"custom:warning": "This function does not enforce by default the inclusion of the address of this contract in the signature digest. It is recommended that protocols or applications using this contract include the targeted address (= this contract) in the data to sign. To ensure that a signature is valid for a specific LSP6KeyManager and prevent signatures from the same EOA to be replayed across different LSP6KeyManager.",
|
|
251
262
|
"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.",
|
|
252
263
|
"params": {
|
|
253
264
|
"hash": "Hash of the data to be signed",
|
|
@@ -22,6 +22,16 @@
|
|
|
22
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
|
+
"ERC725X_ExecuteParametersEmptyArray()": [
|
|
26
|
+
{
|
|
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."
|
|
33
|
+
}
|
|
34
|
+
],
|
|
25
35
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
26
36
|
{
|
|
27
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."
|
|
@@ -251,6 +261,7 @@
|
|
|
251
261
|
}
|
|
252
262
|
},
|
|
253
263
|
"isValidSignature(bytes32,bytes)": {
|
|
264
|
+
"custom:warning": "This function does not enforce by default the inclusion of the address of this contract in the signature digest. It is recommended that protocols or applications using this contract include the targeted address (= this contract) in the data to sign. To ensure that a signature is valid for a specific LSP6KeyManager and prevent signatures from the same EOA to be replayed across different LSP6KeyManager.",
|
|
254
265
|
"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.",
|
|
255
266
|
"params": {
|
|
256
267
|
"hash": "Hash of the data to be signed",
|
|
@@ -106,6 +106,11 @@
|
|
|
106
106
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
|
+
"OperatorAllowanceCannotBeIncreasedFromZero(address)": [
|
|
110
|
+
{
|
|
111
|
+
"details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
109
114
|
"OwnableCallerNotTheOwner(address)": [
|
|
110
115
|
{
|
|
111
116
|
"details": "Reverts when only the owner is allowed to call the function.",
|
|
@@ -124,7 +129,7 @@
|
|
|
124
129
|
"methods": {
|
|
125
130
|
"authorizeOperator(address,uint256,bytes)": {
|
|
126
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/",
|
|
127
|
-
"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",
|
|
128
133
|
"params": {
|
|
129
134
|
"amount": "The allowance amount of tokens operator has access to.",
|
|
130
135
|
"operator": "The address to authorize as an operator.",
|
|
@@ -164,10 +169,7 @@
|
|
|
164
169
|
}
|
|
165
170
|
},
|
|
166
171
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
167
|
-
"
|
|
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.",
|
|
169
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
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.",
|
|
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",
|
|
171
173
|
"params": {
|
|
172
174
|
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
173
175
|
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
@@ -201,10 +203,7 @@
|
|
|
201
203
|
}
|
|
202
204
|
},
|
|
203
205
|
"increaseAllowance(address,uint256,bytes)": {
|
|
204
|
-
"
|
|
205
|
-
"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.",
|
|
206
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
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.",
|
|
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",
|
|
208
207
|
"params": {
|
|
209
208
|
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
210
209
|
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
@@ -216,9 +215,10 @@
|
|
|
216
215
|
"renounceOwnership()": {
|
|
217
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."
|
|
218
217
|
},
|
|
219
|
-
"revokeOperator(address,bytes)": {
|
|
218
|
+
"revokeOperator(address,bool,bytes)": {
|
|
220
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}.",
|
|
221
220
|
"params": {
|
|
221
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
222
222
|
"operator": "The address to revoke as an operator.",
|
|
223
223
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
224
224
|
}
|
|
@@ -106,6 +106,11 @@
|
|
|
106
106
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
|
+
"OperatorAllowanceCannotBeIncreasedFromZero(address)": [
|
|
110
|
+
{
|
|
111
|
+
"details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
109
114
|
"OwnableCallerNotTheOwner(address)": [
|
|
110
115
|
{
|
|
111
116
|
"details": "Reverts when only the owner is allowed to call the function.",
|
|
@@ -124,7 +129,7 @@
|
|
|
124
129
|
"methods": {
|
|
125
130
|
"authorizeOperator(address,uint256,bytes)": {
|
|
126
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/",
|
|
127
|
-
"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",
|
|
128
133
|
"params": {
|
|
129
134
|
"amount": "The allowance amount of tokens operator has access to.",
|
|
130
135
|
"operator": "The address to authorize as an operator.",
|
|
@@ -157,10 +162,7 @@
|
|
|
157
162
|
}
|
|
158
163
|
},
|
|
159
164
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
160
|
-
"
|
|
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.",
|
|
162
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
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.",
|
|
165
|
+
"details": "Atomically decreases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem. Notify the operator based on the LSP1-UniversalReceiver standard",
|
|
164
166
|
"params": {
|
|
165
167
|
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
166
168
|
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
@@ -194,10 +196,7 @@
|
|
|
194
196
|
}
|
|
195
197
|
},
|
|
196
198
|
"increaseAllowance(address,uint256,bytes)": {
|
|
197
|
-
"
|
|
198
|
-
"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.",
|
|
199
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
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.",
|
|
199
|
+
"details": "Atomically increases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem. Notify the operator based on the LSP1-UniversalReceiver standard",
|
|
201
200
|
"params": {
|
|
202
201
|
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
203
202
|
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
@@ -209,9 +208,10 @@
|
|
|
209
208
|
"renounceOwnership()": {
|
|
210
209
|
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
|
|
211
210
|
},
|
|
212
|
-
"revokeOperator(address,bytes)": {
|
|
211
|
+
"revokeOperator(address,bool,bytes)": {
|
|
213
212
|
"details": "Removes the `operator` address as an operator of callers tokens, disallowing it to send any amount of tokens on behalf of the token owner (the caller of the function `msg.sender`). See also {authorizedAmountFor}.",
|
|
214
213
|
"params": {
|
|
214
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
215
215
|
"operator": "The address to revoke as an operator.",
|
|
216
216
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
217
217
|
}
|
|
@@ -96,6 +96,11 @@
|
|
|
96
96
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
|
+
"OperatorAllowanceCannotBeIncreasedFromZero(address)": [
|
|
100
|
+
{
|
|
101
|
+
"details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
99
104
|
"OwnableCallerNotTheOwner(address)": [
|
|
100
105
|
{
|
|
101
106
|
"details": "Reverts when only the owner is allowed to call the function.",
|
|
@@ -134,7 +139,7 @@
|
|
|
134
139
|
},
|
|
135
140
|
"authorizeOperator(address,uint256,bytes)": {
|
|
136
141
|
"custom:danger": "To avoid front-running and Allowance Double-Spend Exploit when increasing or decreasing the authorized amount of an operator, it is advised to: 1. either call {revokeOperator} first, and then re-call {authorizeOperator} with the new amount. 2. or use the non-standard functions {increaseAllowance} or {decreaseAllowance}. For more information, see: https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/",
|
|
137
|
-
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
|
|
142
|
+
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
|
|
138
143
|
"params": {
|
|
139
144
|
"amount": "The allowance amount of tokens operator has access to.",
|
|
140
145
|
"operator": "The address to authorize as an operator.",
|
|
@@ -174,10 +179,7 @@
|
|
|
174
179
|
}
|
|
175
180
|
},
|
|
176
181
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
177
|
-
"
|
|
178
|
-
"custom:info": "This is a non-standard function, not part of the LSP7 standard interface. It has been added in the LSP7 contract implementation so that it can be used as a prevention mechanism against the double spending allowance vulnerability.",
|
|
179
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
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.",
|
|
182
|
+
"details": "Atomically decreases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem. Notify the operator based on the LSP1-UniversalReceiver standard",
|
|
181
183
|
"params": {
|
|
182
184
|
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
183
185
|
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
@@ -211,10 +213,7 @@
|
|
|
211
213
|
}
|
|
212
214
|
},
|
|
213
215
|
"increaseAllowance(address,uint256,bytes)": {
|
|
214
|
-
"
|
|
215
|
-
"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.",
|
|
216
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
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.",
|
|
216
|
+
"details": "Atomically increases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem. Notify the operator based on the LSP1-UniversalReceiver standard",
|
|
218
217
|
"params": {
|
|
219
218
|
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
220
219
|
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
@@ -232,9 +231,10 @@
|
|
|
232
231
|
"renounceOwnership()": {
|
|
233
232
|
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
|
|
234
233
|
},
|
|
235
|
-
"revokeOperator(address,bytes)": {
|
|
234
|
+
"revokeOperator(address,bool,bytes)": {
|
|
236
235
|
"details": "Removes the `operator` address as an operator of callers tokens, disallowing it to send any amount of tokens on behalf of the token owner (the caller of the function `msg.sender`). See also {authorizedAmountFor}.",
|
|
237
236
|
"params": {
|
|
237
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
238
238
|
"operator": "The address to revoke as an operator.",
|
|
239
239
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
240
240
|
}
|
|
@@ -96,6 +96,11 @@
|
|
|
96
96
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
|
+
"OperatorAllowanceCannotBeIncreasedFromZero(address)": [
|
|
100
|
+
{
|
|
101
|
+
"details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
99
104
|
"OwnableCallerNotTheOwner(address)": [
|
|
100
105
|
{
|
|
101
106
|
"details": "Reverts when only the owner is allowed to call the function.",
|
|
@@ -134,7 +139,7 @@
|
|
|
134
139
|
},
|
|
135
140
|
"authorizeOperator(address,uint256,bytes)": {
|
|
136
141
|
"custom:danger": "To avoid front-running and Allowance Double-Spend Exploit when increasing or decreasing the authorized amount of an operator, it is advised to: 1. either call {revokeOperator} first, and then re-call {authorizeOperator} with the new amount. 2. or use the non-standard functions {increaseAllowance} or {decreaseAllowance}. For more information, see: https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/",
|
|
137
|
-
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
|
|
142
|
+
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
|
|
138
143
|
"params": {
|
|
139
144
|
"amount": "The allowance amount of tokens operator has access to.",
|
|
140
145
|
"operator": "The address to authorize as an operator.",
|
|
@@ -167,10 +172,7 @@
|
|
|
167
172
|
}
|
|
168
173
|
},
|
|
169
174
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
170
|
-
"
|
|
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.",
|
|
172
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
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.",
|
|
175
|
+
"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",
|
|
174
176
|
"params": {
|
|
175
177
|
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
176
178
|
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
@@ -204,10 +206,7 @@
|
|
|
204
206
|
}
|
|
205
207
|
},
|
|
206
208
|
"increaseAllowance(address,uint256,bytes)": {
|
|
207
|
-
"
|
|
208
|
-
"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.",
|
|
209
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
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.",
|
|
209
|
+
"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",
|
|
211
210
|
"params": {
|
|
212
211
|
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
213
212
|
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
@@ -225,9 +224,10 @@
|
|
|
225
224
|
"renounceOwnership()": {
|
|
226
225
|
"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."
|
|
227
226
|
},
|
|
228
|
-
"revokeOperator(address,bytes)": {
|
|
227
|
+
"revokeOperator(address,bool,bytes)": {
|
|
229
228
|
"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}.",
|
|
230
229
|
"params": {
|
|
230
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
231
231
|
"operator": "The address to revoke as an operator.",
|
|
232
232
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
233
233
|
}
|
|
@@ -95,6 +95,11 @@
|
|
|
95
95
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
96
96
|
}
|
|
97
97
|
],
|
|
98
|
+
"OperatorAllowanceCannotBeIncreasedFromZero(address)": [
|
|
99
|
+
{
|
|
100
|
+
"details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
98
103
|
"OwnableCallerNotTheOwner(address)": [
|
|
99
104
|
{
|
|
100
105
|
"details": "Reverts when only the owner is allowed to call the function.",
|
|
@@ -133,7 +138,7 @@
|
|
|
133
138
|
},
|
|
134
139
|
"authorizeOperator(address,uint256,bytes)": {
|
|
135
140
|
"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/",
|
|
136
|
-
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
|
|
141
|
+
"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",
|
|
137
142
|
"params": {
|
|
138
143
|
"amount": "The allowance amount of tokens operator has access to.",
|
|
139
144
|
"operator": "The address to authorize as an operator.",
|
|
@@ -173,10 +178,7 @@
|
|
|
173
178
|
}
|
|
174
179
|
},
|
|
175
180
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
176
|
-
"
|
|
177
|
-
"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.",
|
|
178
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
179
|
-
"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.",
|
|
181
|
+
"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",
|
|
180
182
|
"params": {
|
|
181
183
|
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
182
184
|
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
@@ -210,10 +212,7 @@
|
|
|
210
212
|
}
|
|
211
213
|
},
|
|
212
214
|
"increaseAllowance(address,uint256,bytes)": {
|
|
213
|
-
"
|
|
214
|
-
"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.",
|
|
215
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
216
|
-
"details": "Atomically increases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem.",
|
|
215
|
+
"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",
|
|
217
216
|
"params": {
|
|
218
217
|
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
219
218
|
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
@@ -234,9 +233,10 @@
|
|
|
234
233
|
"renounceOwnership()": {
|
|
235
234
|
"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."
|
|
236
235
|
},
|
|
237
|
-
"revokeOperator(address,bytes)": {
|
|
236
|
+
"revokeOperator(address,bool,bytes)": {
|
|
238
237
|
"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}.",
|
|
239
238
|
"params": {
|
|
239
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
240
240
|
"operator": "The address to revoke as an operator.",
|
|
241
241
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
242
242
|
}
|
|
@@ -95,6 +95,11 @@
|
|
|
95
95
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
96
96
|
}
|
|
97
97
|
],
|
|
98
|
+
"OperatorAllowanceCannotBeIncreasedFromZero(address)": [
|
|
99
|
+
{
|
|
100
|
+
"details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
98
103
|
"OwnableCallerNotTheOwner(address)": [
|
|
99
104
|
{
|
|
100
105
|
"details": "Reverts when only the owner is allowed to call the function.",
|
|
@@ -133,7 +138,7 @@
|
|
|
133
138
|
},
|
|
134
139
|
"authorizeOperator(address,uint256,bytes)": {
|
|
135
140
|
"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/",
|
|
136
|
-
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
|
|
141
|
+
"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",
|
|
137
142
|
"params": {
|
|
138
143
|
"amount": "The allowance amount of tokens operator has access to.",
|
|
139
144
|
"operator": "The address to authorize as an operator.",
|
|
@@ -169,10 +174,7 @@
|
|
|
169
174
|
}
|
|
170
175
|
},
|
|
171
176
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
172
|
-
"
|
|
173
|
-
"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.",
|
|
174
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
175
|
-
"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.",
|
|
177
|
+
"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",
|
|
176
178
|
"params": {
|
|
177
179
|
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
178
180
|
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
@@ -206,10 +208,7 @@
|
|
|
206
208
|
}
|
|
207
209
|
},
|
|
208
210
|
"increaseAllowance(address,uint256,bytes)": {
|
|
209
|
-
"
|
|
210
|
-
"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.",
|
|
211
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
212
|
-
"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.",
|
|
211
|
+
"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",
|
|
213
212
|
"params": {
|
|
214
213
|
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
215
214
|
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
@@ -237,9 +236,10 @@
|
|
|
237
236
|
"renounceOwnership()": {
|
|
238
237
|
"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."
|
|
239
238
|
},
|
|
240
|
-
"revokeOperator(address,bytes)": {
|
|
239
|
+
"revokeOperator(address,bool,bytes)": {
|
|
241
240
|
"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}.",
|
|
242
241
|
"params": {
|
|
242
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
243
243
|
"operator": "The address to revoke as an operator.",
|
|
244
244
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
245
245
|
}
|
|
@@ -97,6 +97,11 @@
|
|
|
97
97
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
98
98
|
}
|
|
99
99
|
],
|
|
100
|
+
"OperatorAllowanceCannotBeIncreasedFromZero(address)": [
|
|
101
|
+
{
|
|
102
|
+
"details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
100
105
|
"OwnableCallerNotTheOwner(address)": [
|
|
101
106
|
{
|
|
102
107
|
"details": "Reverts when only the owner is allowed to call the function.",
|
|
@@ -115,7 +120,7 @@
|
|
|
115
120
|
"methods": {
|
|
116
121
|
"authorizeOperator(address,uint256,bytes)": {
|
|
117
122
|
"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/",
|
|
118
|
-
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
|
|
123
|
+
"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",
|
|
119
124
|
"params": {
|
|
120
125
|
"amount": "The allowance amount of tokens operator has access to.",
|
|
121
126
|
"operator": "The address to authorize as an operator.",
|
|
@@ -156,10 +161,7 @@
|
|
|
156
161
|
}
|
|
157
162
|
},
|
|
158
163
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
159
|
-
"
|
|
160
|
-
"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.",
|
|
161
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
162
|
-
"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.",
|
|
164
|
+
"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",
|
|
163
165
|
"params": {
|
|
164
166
|
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
165
167
|
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
@@ -193,10 +195,7 @@
|
|
|
193
195
|
}
|
|
194
196
|
},
|
|
195
197
|
"increaseAllowance(address,uint256,bytes)": {
|
|
196
|
-
"
|
|
197
|
-
"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.",
|
|
198
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
199
|
-
"details": "Atomically increases the allowance granted to `operator` by the caller. This is an alternative approach to {authorizeOperator} that can be used as a mitigation for the double spending allowance problem.",
|
|
198
|
+
"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",
|
|
200
199
|
"params": {
|
|
201
200
|
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
202
201
|
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
@@ -208,9 +207,10 @@
|
|
|
208
207
|
"renounceOwnership()": {
|
|
209
208
|
"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."
|
|
210
209
|
},
|
|
211
|
-
"revokeOperator(address,bytes)": {
|
|
210
|
+
"revokeOperator(address,bool,bytes)": {
|
|
212
211
|
"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}.",
|
|
213
212
|
"params": {
|
|
213
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
214
214
|
"operator": "The address to revoke as an operator.",
|
|
215
215
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
216
216
|
}
|
|
@@ -97,6 +97,11 @@
|
|
|
97
97
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
98
98
|
}
|
|
99
99
|
],
|
|
100
|
+
"OperatorAllowanceCannotBeIncreasedFromZero(address)": [
|
|
101
|
+
{
|
|
102
|
+
"details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
100
105
|
"OwnableCallerNotTheOwner(address)": [
|
|
101
106
|
{
|
|
102
107
|
"details": "Reverts when only the owner is allowed to call the function.",
|
|
@@ -115,7 +120,7 @@
|
|
|
115
120
|
"methods": {
|
|
116
121
|
"authorizeOperator(address,uint256,bytes)": {
|
|
117
122
|
"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/",
|
|
118
|
-
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
|
|
123
|
+
"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",
|
|
119
124
|
"params": {
|
|
120
125
|
"amount": "The allowance amount of tokens operator has access to.",
|
|
121
126
|
"operator": "The address to authorize as an operator.",
|
|
@@ -148,10 +153,7 @@
|
|
|
148
153
|
}
|
|
149
154
|
},
|
|
150
155
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
151
|
-
"
|
|
152
|
-
"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.",
|
|
153
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
154
|
-
"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.",
|
|
156
|
+
"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",
|
|
155
157
|
"params": {
|
|
156
158
|
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
157
159
|
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
@@ -185,10 +187,7 @@
|
|
|
185
187
|
}
|
|
186
188
|
},
|
|
187
189
|
"increaseAllowance(address,uint256,bytes)": {
|
|
188
|
-
"
|
|
189
|
-
"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.",
|
|
190
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
191
|
-
"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.",
|
|
190
|
+
"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",
|
|
192
191
|
"params": {
|
|
193
192
|
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
194
193
|
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
@@ -200,9 +199,10 @@
|
|
|
200
199
|
"renounceOwnership()": {
|
|
201
200
|
"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."
|
|
202
201
|
},
|
|
203
|
-
"revokeOperator(address,bytes)": {
|
|
202
|
+
"revokeOperator(address,bool,bytes)": {
|
|
204
203
|
"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}.",
|
|
205
204
|
"params": {
|
|
205
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
206
206
|
"operator": "The address to revoke as an operator.",
|
|
207
207
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
208
208
|
}
|
|
@@ -96,6 +96,11 @@
|
|
|
96
96
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
|
+
"OperatorAllowanceCannotBeIncreasedFromZero(address)": [
|
|
100
|
+
{
|
|
101
|
+
"details": "Reverts when token owner call {increaseAllowance} for an operator that does not have any allowance"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
99
104
|
"OwnableCallerNotTheOwner(address)": [
|
|
100
105
|
{
|
|
101
106
|
"details": "Reverts when only the owner is allowed to call the function.",
|
|
@@ -114,7 +119,7 @@
|
|
|
114
119
|
"methods": {
|
|
115
120
|
"authorizeOperator(address,uint256,bytes)": {
|
|
116
121
|
"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/",
|
|
117
|
-
"details": "Sets an `amount` of tokens that an `operator` has access from the caller's balance (allowance). See {authorizedAmountFor}.",
|
|
122
|
+
"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",
|
|
118
123
|
"params": {
|
|
119
124
|
"amount": "The allowance amount of tokens operator has access to.",
|
|
120
125
|
"operator": "The address to authorize as an operator.",
|
|
@@ -154,10 +159,7 @@
|
|
|
154
159
|
}
|
|
155
160
|
},
|
|
156
161
|
"decreaseAllowance(address,uint256,bytes)": {
|
|
157
|
-
"
|
|
158
|
-
"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.",
|
|
159
|
-
"custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
|
|
160
|
-
"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.",
|
|
162
|
+
"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",
|
|
161
163
|
"params": {
|
|
162
164
|
"operator": "The operator to decrease allowance for `msg.sender`",
|
|
163
165
|
"subtractedAmount": "The amount to decrease by in the operator's allowance."
|
|
@@ -191,10 +193,7 @@
|
|
|
191
193
|
}
|
|
192
194
|
},
|
|
193
195
|
"increaseAllowance(address,uint256,bytes)": {
|
|
194
|
-
"
|
|
195
|
-
"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.",
|
|
196
|
-
"custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
|
|
197
|
-
"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.",
|
|
196
|
+
"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",
|
|
198
197
|
"params": {
|
|
199
198
|
"addedAmount": "The additional amount to add on top of the current operator's allowance",
|
|
200
199
|
"operator": "The operator to increase the allowance for `msg.sender`"
|
|
@@ -209,9 +208,10 @@
|
|
|
209
208
|
"renounceOwnership()": {
|
|
210
209
|
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
|
|
211
210
|
},
|
|
212
|
-
"revokeOperator(address,bytes)": {
|
|
211
|
+
"revokeOperator(address,bool,bytes)": {
|
|
213
212
|
"details": "Removes the `operator` address as an operator of callers tokens, disallowing it to send any amount of tokens on behalf of the token owner (the caller of the function `msg.sender`). See also {authorizedAmountFor}.",
|
|
214
213
|
"params": {
|
|
214
|
+
"notify": "Boolean indicating whether to notify the operator or not.",
|
|
215
215
|
"operator": "The address to revoke as an operator.",
|
|
216
216
|
"operatorNotificationData": "The data to notify the operator about via LSP1."
|
|
217
217
|
}
|