@lukso/lsp-smart-contracts 0.12.0-rc.0 → 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.
Files changed (135) hide show
  1. package/artifacts/LSP0ERC725Account.json +18 -24
  2. package/artifacts/LSP0ERC725AccountInit.json +18 -24
  3. package/artifacts/LSP1UniversalReceiverDelegateUP.json +15 -2
  4. package/artifacts/LSP1UniversalReceiverDelegateVault.json +15 -2
  5. package/artifacts/LSP6KeyManager.json +25 -2
  6. package/artifacts/LSP6KeyManagerInit.json +25 -2
  7. package/artifacts/LSP7CappedSupply.json +35 -0
  8. package/artifacts/LSP7CappedSupplyInitAbstract.json +35 -0
  9. package/artifacts/LSP7CompatibleERC20.json +35 -0
  10. package/artifacts/LSP7CompatibleERC20InitAbstract.json +35 -0
  11. package/artifacts/LSP7CompatibleERC20Mintable.json +37 -2
  12. package/artifacts/LSP7CompatibleERC20MintableInit.json +37 -2
  13. package/artifacts/LSP7DigitalAsset.json +35 -0
  14. package/artifacts/LSP7DigitalAssetInitAbstract.json +35 -0
  15. package/artifacts/LSP7Mintable.json +37 -2
  16. package/artifacts/LSP7MintableInit.json +37 -2
  17. package/artifacts/LSP8CappedSupply.json +24 -0
  18. package/artifacts/LSP8CappedSupplyInitAbstract.json +24 -0
  19. package/artifacts/LSP8CompatibleERC721.json +24 -0
  20. package/artifacts/LSP8CompatibleERC721InitAbstract.json +24 -0
  21. package/artifacts/LSP8CompatibleERC721Mintable.json +26 -2
  22. package/artifacts/LSP8CompatibleERC721MintableInit.json +26 -2
  23. package/artifacts/LSP8IdentifiableDigitalAsset.json +24 -0
  24. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +24 -0
  25. package/artifacts/LSP8Mintable.json +26 -2
  26. package/artifacts/LSP8MintableInit.json +26 -2
  27. package/artifacts/LSP9Vault.json +15 -21
  28. package/artifacts/LSP9VaultInit.json +15 -21
  29. package/artifacts/UniversalProfile.json +18 -24
  30. package/artifacts/UniversalProfileInit.json +18 -24
  31. package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +0 -8
  32. package/contracts/LSP0ERC725Account/LSP0Constants.sol +5 -0
  33. package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +12 -2
  34. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +75 -30
  35. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +1 -1
  36. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +11 -2
  37. package/contracts/LSP17ContractExtension/LSP17Extendable.sol +12 -8
  38. package/contracts/LSP17ContractExtension/LSP17Extension.sol +2 -1
  39. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +30 -7
  40. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +16 -7
  41. package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +3 -2
  42. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +43 -49
  43. package/contracts/LSP20CallVerification/LSP20Errors.sol +2 -2
  44. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +42 -2
  45. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +3 -3
  46. package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +60 -0
  47. package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -1
  48. package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +7 -5
  49. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +122 -176
  50. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +7 -5
  51. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
  52. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +8 -1
  53. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +7 -1
  54. package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +5 -0
  55. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +8 -5
  56. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +6 -5
  57. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +41 -74
  58. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +6 -5
  59. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +10 -7
  60. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +10 -7
  61. package/contracts/LSP9Vault/ILSP9Vault.sol +0 -8
  62. package/contracts/LSP9Vault/LSP9Constants.sol +5 -0
  63. package/contracts/LSP9Vault/LSP9Vault.sol +11 -2
  64. package/contracts/LSP9Vault/LSP9VaultCore.sol +63 -27
  65. package/contracts/LSP9Vault/LSP9VaultInit.sol +1 -1
  66. package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +11 -2
  67. package/contracts/UniversalProfile.sol +1 -1
  68. package/contracts/UniversalProfileInit.sol +1 -1
  69. package/contracts/UniversalProfileInitAbstract.sol +1 -1
  70. package/contracts/Version.sol +16 -0
  71. package/devdocs/LSP0ERC725Account.json +14 -8
  72. package/devdocs/LSP0ERC725AccountInit.json +14 -8
  73. package/devdocs/LSP1UniversalReceiverDelegateUP.json +6 -0
  74. package/devdocs/LSP1UniversalReceiverDelegateVault.json +6 -0
  75. package/devdocs/LSP6KeyManager.json +16 -0
  76. package/devdocs/LSP6KeyManagerInit.json +16 -0
  77. package/devdocs/LSP7CappedSupply.json +16 -10
  78. package/devdocs/LSP7CappedSupplyInitAbstract.json +16 -10
  79. package/devdocs/LSP7CompatibleERC20.json +16 -10
  80. package/devdocs/LSP7CompatibleERC20InitAbstract.json +16 -10
  81. package/devdocs/LSP7CompatibleERC20Mintable.json +16 -10
  82. package/devdocs/LSP7CompatibleERC20MintableInit.json +16 -10
  83. package/devdocs/LSP7DigitalAsset.json +16 -10
  84. package/devdocs/LSP7DigitalAssetInitAbstract.json +16 -10
  85. package/devdocs/LSP7Mintable.json +16 -10
  86. package/devdocs/LSP7MintableInit.json +16 -10
  87. package/devdocs/LSP8CappedSupply.json +9 -2
  88. package/devdocs/LSP8CappedSupplyInitAbstract.json +9 -2
  89. package/devdocs/LSP8CompatibleERC721.json +9 -2
  90. package/devdocs/LSP8CompatibleERC721InitAbstract.json +9 -2
  91. package/devdocs/LSP8CompatibleERC721Mintable.json +9 -2
  92. package/devdocs/LSP8CompatibleERC721MintableInit.json +9 -2
  93. package/devdocs/LSP8IdentifiableDigitalAsset.json +9 -2
  94. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +9 -2
  95. package/devdocs/LSP8Mintable.json +9 -2
  96. package/devdocs/LSP8MintableInit.json +9 -2
  97. package/devdocs/LSP9Vault.json +12 -6
  98. package/devdocs/LSP9VaultInit.json +12 -6
  99. package/devdocs/UniversalProfile.json +14 -8
  100. package/devdocs/UniversalProfileInit.json +14 -8
  101. package/dist/constants.cjs.js +1211 -454
  102. package/dist/constants.d.ts +1277 -374
  103. package/dist/constants.es.js +1211 -454
  104. package/package.json +1 -3
  105. package/userdocs/LSP0ERC725Account.json +3 -3
  106. package/userdocs/LSP0ERC725AccountInit.json +3 -3
  107. package/userdocs/LSP1UniversalReceiverDelegateUP.json +3 -0
  108. package/userdocs/LSP1UniversalReceiverDelegateVault.json +3 -0
  109. package/userdocs/LSP6KeyManager.json +3 -0
  110. package/userdocs/LSP6KeyManagerInit.json +3 -0
  111. package/userdocs/LSP7CappedSupply.json +3 -0
  112. package/userdocs/LSP7CappedSupplyInitAbstract.json +3 -0
  113. package/userdocs/LSP7CompatibleERC20.json +3 -0
  114. package/userdocs/LSP7CompatibleERC20InitAbstract.json +3 -0
  115. package/userdocs/LSP7CompatibleERC20Mintable.json +3 -0
  116. package/userdocs/LSP7CompatibleERC20MintableInit.json +3 -0
  117. package/userdocs/LSP7DigitalAsset.json +3 -0
  118. package/userdocs/LSP7DigitalAssetInitAbstract.json +3 -0
  119. package/userdocs/LSP7Mintable.json +3 -0
  120. package/userdocs/LSP7MintableInit.json +3 -0
  121. package/userdocs/LSP8CappedSupply.json +3 -0
  122. package/userdocs/LSP8CappedSupplyInitAbstract.json +3 -0
  123. package/userdocs/LSP8CompatibleERC721.json +3 -0
  124. package/userdocs/LSP8CompatibleERC721InitAbstract.json +3 -0
  125. package/userdocs/LSP8CompatibleERC721Mintable.json +3 -0
  126. package/userdocs/LSP8CompatibleERC721MintableInit.json +3 -0
  127. package/userdocs/LSP8IdentifiableDigitalAsset.json +3 -0
  128. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +3 -0
  129. package/userdocs/LSP8Mintable.json +3 -0
  130. package/userdocs/LSP8MintableInit.json +3 -0
  131. package/userdocs/LSP9Vault.json +3 -3
  132. package/userdocs/LSP9VaultInit.json +3 -3
  133. package/userdocs/UniversalProfile.json +3 -3
  134. package/userdocs/UniversalProfileInit.json +3 -3
  135. package/CONTRIBUTING.md +0 -188
@@ -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
- "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
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
- "custom:events": "{AuthorizedOperator} indicating the updated allowance",
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
  }
@@ -273,6 +273,12 @@
273
273
  },
274
274
  "transferOwnership(address)": {
275
275
  "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
276
+ },
277
+ "version()": {
278
+ "details": "Get the version of the contract.",
279
+ "returns": {
280
+ "_0": "The version of the the contract."
281
+ }
276
282
  }
277
283
  },
278
284
  "version": 1
@@ -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
- "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
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
- "custom:events": "{AuthorizedOperator} indicating the updated allowance",
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
  }
@@ -319,6 +319,12 @@
319
319
  },
320
320
  "transferOwnership(address)": {
321
321
  "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
322
+ },
323
+ "version()": {
324
+ "details": "Get the version of the contract.",
325
+ "returns": {
326
+ "_0": "The version of the the contract."
327
+ }
322
328
  }
323
329
  },
324
330
  "version": 1
@@ -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
- "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
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
- "custom:events": "{AuthorizedOperator} indicating the updated allowance",
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
  }
@@ -312,6 +312,12 @@
312
312
  },
313
313
  "transferOwnership(address)": {
314
314
  "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
315
+ },
316
+ "version()": {
317
+ "details": "Get the version of the contract.",
318
+ "returns": {
319
+ "_0": "The version of the the contract."
320
+ }
315
321
  }
316
322
  },
317
323
  "version": 1
@@ -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
- "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
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
- "custom:events": "{AuthorizedOperator} indicating the updated allowance",
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
  }
@@ -321,6 +321,12 @@
321
321
  },
322
322
  "transferOwnership(address)": {
323
323
  "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
324
+ },
325
+ "version()": {
326
+ "details": "Get the version of the contract.",
327
+ "returns": {
328
+ "_0": "The version of the the contract."
329
+ }
324
330
  }
325
331
  },
326
332
  "title": "LSP7CompatibleERC20 deployable preset contract with a public {mint} function callable only by the contract {owner}.",
@@ -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
- "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
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
- "custom:events": "{AuthorizedOperator} indicating the updated allowance",
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
  }
@@ -324,6 +324,12 @@
324
324
  },
325
325
  "transferOwnership(address)": {
326
326
  "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
327
+ },
328
+ "version()": {
329
+ "details": "Get the version of the contract.",
330
+ "returns": {
331
+ "_0": "The version of the the contract."
332
+ }
327
333
  }
328
334
  },
329
335
  "title": "LSP7 deployable preset contract (proxy version) with a public mint function callable only by the contract {owner}",
@@ -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
- "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
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
- "custom:events": "{AuthorizedOperator} indicating the updated allowance",
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
  }
@@ -266,6 +266,12 @@
266
266
  },
267
267
  "transferOwnership(address)": {
268
268
  "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
269
+ },
270
+ "version()": {
271
+ "details": "Get the version of the contract.",
272
+ "returns": {
273
+ "_0": "The version of the the contract."
274
+ }
269
275
  }
270
276
  },
271
277
  "title": "Implementation of a LSP7 Digital Asset, a contract that represents a fungible token.",
@@ -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
- "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
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
- "custom:events": "{AuthorizedOperator} indicating the updated allowance",
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
  }
@@ -258,6 +258,12 @@
258
258
  },
259
259
  "transferOwnership(address)": {
260
260
  "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
261
+ },
262
+ "version()": {
263
+ "details": "Get the version of the contract.",
264
+ "returns": {
265
+ "_0": "The version of the the contract."
266
+ }
261
267
  }
262
268
  },
263
269
  "title": "LSP7DigitalAsset contract",
@@ -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
- "custom:events": "- {AuthorizedOperator} event indicating the updated allowance after decreasing it. - {RevokeOperator} event if `subtractedAmount` is the full allowance, indicating `operator` does not have any alauthorizedAmountForlowance left for `msg.sender`.",
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
- "custom:events": "{AuthorizedOperator} indicating the updated allowance",
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
  }
@@ -267,6 +267,12 @@
267
267
  },
268
268
  "transferOwnership(address)": {
269
269
  "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
270
+ },
271
+ "version()": {
272
+ "details": "Get the version of the contract.",
273
+ "returns": {
274
+ "_0": "The version of the the contract."
275
+ }
270
276
  }
271
277
  },
272
278
  "title": "LSP7DigitalAsset deployable preset contract with a public {mint} function callable only by the contract {owner}.",