@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.
Files changed (119) 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 +22 -0
  8. package/artifacts/LSP7CappedSupplyInitAbstract.json +22 -0
  9. package/artifacts/LSP7CompatibleERC20.json +22 -0
  10. package/artifacts/LSP7CompatibleERC20InitAbstract.json +22 -0
  11. package/artifacts/LSP7CompatibleERC20Mintable.json +24 -2
  12. package/artifacts/LSP7CompatibleERC20MintableInit.json +24 -2
  13. package/artifacts/LSP7DigitalAsset.json +22 -0
  14. package/artifacts/LSP7DigitalAssetInitAbstract.json +22 -0
  15. package/artifacts/LSP7Mintable.json +24 -2
  16. package/artifacts/LSP7MintableInit.json +24 -2
  17. package/artifacts/LSP8CappedSupply.json +11 -0
  18. package/artifacts/LSP8CappedSupplyInitAbstract.json +11 -0
  19. package/artifacts/LSP8CompatibleERC721.json +11 -0
  20. package/artifacts/LSP8CompatibleERC721InitAbstract.json +11 -0
  21. package/artifacts/LSP8CompatibleERC721Mintable.json +13 -2
  22. package/artifacts/LSP8CompatibleERC721MintableInit.json +13 -2
  23. package/artifacts/LSP8IdentifiableDigitalAsset.json +11 -0
  24. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +11 -0
  25. package/artifacts/LSP8Mintable.json +13 -2
  26. package/artifacts/LSP8MintableInit.json +13 -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 +6 -1
  33. package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +18 -4
  34. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +132 -66
  35. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +3 -2
  36. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +14 -3
  37. package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +11 -10
  38. package/contracts/LSP17ContractExtension/LSP17Extendable.sol +12 -8
  39. package/contracts/LSP17ContractExtension/LSP17Extension.sol +2 -1
  40. package/contracts/LSP17Extensions/OnERC721ReceivedExtension.sol +2 -1
  41. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +32 -11
  42. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +25 -9
  43. package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +4 -3
  44. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +43 -49
  45. package/contracts/LSP20CallVerification/LSP20Errors.sol +2 -2
  46. package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +1 -5
  47. package/contracts/LSP6KeyManager/LSP6KeyManager.sol +2 -1
  48. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +54 -8
  49. package/contracts/LSP6KeyManager/LSP6KeyManagerInit.sol +2 -1
  50. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +14 -16
  51. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +9 -5
  52. package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +60 -0
  53. package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -1
  54. package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +7 -5
  55. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +111 -175
  56. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +7 -5
  57. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
  58. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +8 -1
  59. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +7 -1
  60. package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +5 -0
  61. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +8 -5
  62. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +6 -5
  63. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +30 -73
  64. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +6 -5
  65. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +7 -7
  66. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +7 -7
  67. package/contracts/LSP9Vault/ILSP9Vault.sol +0 -8
  68. package/contracts/LSP9Vault/LSP9Constants.sol +6 -1
  69. package/contracts/LSP9Vault/LSP9Vault.sol +14 -4
  70. package/contracts/LSP9Vault/LSP9VaultCore.sol +80 -37
  71. package/contracts/LSP9Vault/LSP9VaultInit.sol +3 -2
  72. package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +12 -3
  73. package/contracts/UniversalProfile.sol +5 -3
  74. package/contracts/UniversalProfileInit.sol +9 -6
  75. package/contracts/UniversalProfileInitAbstract.sol +5 -3
  76. package/contracts/Version.sol +17 -0
  77. package/devdocs/LSP0ERC725Account.json +11 -10
  78. package/devdocs/LSP0ERC725AccountInit.json +10 -9
  79. package/devdocs/LSP6KeyManager.json +11 -0
  80. package/devdocs/LSP6KeyManagerInit.json +11 -0
  81. package/devdocs/LSP7CappedSupply.json +10 -10
  82. package/devdocs/LSP7CappedSupplyInitAbstract.json +10 -10
  83. package/devdocs/LSP7CompatibleERC20.json +10 -10
  84. package/devdocs/LSP7CompatibleERC20InitAbstract.json +10 -10
  85. package/devdocs/LSP7CompatibleERC20Mintable.json +10 -10
  86. package/devdocs/LSP7CompatibleERC20MintableInit.json +10 -10
  87. package/devdocs/LSP7DigitalAsset.json +10 -10
  88. package/devdocs/LSP7DigitalAssetInitAbstract.json +10 -10
  89. package/devdocs/LSP7Mintable.json +10 -10
  90. package/devdocs/LSP7MintableInit.json +10 -10
  91. package/devdocs/LSP8CappedSupply.json +3 -2
  92. package/devdocs/LSP8CappedSupplyInitAbstract.json +3 -2
  93. package/devdocs/LSP8CompatibleERC721.json +3 -2
  94. package/devdocs/LSP8CompatibleERC721InitAbstract.json +3 -2
  95. package/devdocs/LSP8CompatibleERC721Mintable.json +3 -2
  96. package/devdocs/LSP8CompatibleERC721MintableInit.json +3 -2
  97. package/devdocs/LSP8IdentifiableDigitalAsset.json +3 -2
  98. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +3 -2
  99. package/devdocs/LSP8Mintable.json +3 -2
  100. package/devdocs/LSP8MintableInit.json +3 -2
  101. package/devdocs/LSP9Vault.json +6 -6
  102. package/devdocs/LSP9VaultInit.json +6 -6
  103. package/devdocs/UniversalProfile.json +11 -10
  104. package/devdocs/UniversalProfileInit.json +11 -10
  105. package/dist/constants.cjs.js +822 -459
  106. package/dist/constants.d.ts +633 -298
  107. package/dist/constants.es.js +822 -459
  108. package/package.json +1 -3
  109. package/userdocs/LSP0ERC725Account.json +3 -3
  110. package/userdocs/LSP0ERC725AccountInit.json +3 -3
  111. package/userdocs/LSP1UniversalReceiverDelegateUP.json +3 -0
  112. package/userdocs/LSP1UniversalReceiverDelegateVault.json +3 -0
  113. package/userdocs/LSP6KeyManager.json +3 -0
  114. package/userdocs/LSP6KeyManagerInit.json +3 -0
  115. package/userdocs/LSP9Vault.json +3 -3
  116. package/userdocs/LSP9VaultInit.json +3 -3
  117. package/userdocs/UniversalProfile.json +3 -3
  118. package/userdocs/UniversalProfileInit.json +3 -3
  119. package/CONTRIBUTING.md +0 -188
@@ -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.",
@@ -150,10 +155,7 @@
150
155
  }
151
156
  },
152
157
  "decreaseAllowance(address,uint256,bytes)": {
153
- "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`.",
154
- "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.",
155
- "custom:requirements": "- `operator` cannot be the zero address. - `operator` must have allowance for the caller of at least `subtractedAmount`.",
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.",
158
+ "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",
157
159
  "params": {
158
160
  "operator": "The operator to decrease allowance for `msg.sender`",
159
161
  "subtractedAmount": "The amount to decrease by in the operator's allowance."
@@ -187,10 +189,7 @@
187
189
  }
188
190
  },
189
191
  "increaseAllowance(address,uint256,bytes)": {
190
- "custom:events": "{AuthorizedOperator} indicating the updated allowance",
191
- "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.",
192
- "custom:requirements": "- `operator` cannot be the same address as `msg.sender` - `operator` cannot be the zero address.",
193
- "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.",
192
+ "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",
194
193
  "params": {
195
194
  "addedAmount": "The additional amount to add on top of the current operator's allowance",
196
195
  "operator": "The operator to increase the allowance for `msg.sender`"
@@ -212,9 +211,10 @@
212
211
  "renounceOwnership()": {
213
212
  "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."
214
213
  },
215
- "revokeOperator(address,bytes)": {
214
+ "revokeOperator(address,bool,bytes)": {
216
215
  "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}.",
217
216
  "params": {
217
+ "notify": "Boolean indicating whether to notify the operator or not.",
218
218
  "operator": "The address to revoke as an operator.",
219
219
  "operatorNotificationData": "The data to notify the operator about via LSP1."
220
220
  }
@@ -138,7 +138,7 @@
138
138
  "kind": "dev",
139
139
  "methods": {
140
140
  "authorizeOperator(address,bytes32,bytes)": {
141
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
141
+ "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
142
142
  "params": {
143
143
  "operator": "The address to authorize as an operator.",
144
144
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
@@ -204,9 +204,10 @@
204
204
  "renounceOwnership()": {
205
205
  "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."
206
206
  },
207
- "revokeOperator(address,bytes32,bytes)": {
207
+ "revokeOperator(address,bytes32,bool,bytes)": {
208
208
  "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
209
209
  "params": {
210
+ "notify": "Boolean indicating whether to notify the operator or not",
210
211
  "operator": "The address to revoke as an operator.",
211
212
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
212
213
  "tokenId": "The tokenId `operator` is revoked from operating on."
@@ -138,7 +138,7 @@
138
138
  "kind": "dev",
139
139
  "methods": {
140
140
  "authorizeOperator(address,bytes32,bytes)": {
141
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
141
+ "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
142
142
  "params": {
143
143
  "operator": "The address to authorize as an operator.",
144
144
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
@@ -197,9 +197,10 @@
197
197
  "renounceOwnership()": {
198
198
  "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."
199
199
  },
200
- "revokeOperator(address,bytes32,bytes)": {
200
+ "revokeOperator(address,bytes32,bool,bytes)": {
201
201
  "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
202
202
  "params": {
203
+ "notify": "Boolean indicating whether to notify the operator or not",
203
204
  "operator": "The address to revoke as an operator.",
204
205
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
205
206
  "tokenId": "The tokenId `operator` is revoked from operating on."
@@ -136,7 +136,7 @@
136
136
  },
137
137
  "authorizeOperator(address,bytes32,bytes)": {
138
138
  "custom:events": "- LSP7 {AuthorizedOperator} event. - ERC721 {Approval} event.",
139
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
139
+ "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
140
140
  "params": {
141
141
  "operator": "The address to authorize as an operator.",
142
142
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
@@ -236,9 +236,10 @@
236
236
  "renounceOwnership()": {
237
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."
238
238
  },
239
- "revokeOperator(address,bytes32,bytes)": {
239
+ "revokeOperator(address,bytes32,bool,bytes)": {
240
240
  "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
241
241
  "params": {
242
+ "notify": "Boolean indicating whether to notify the operator or not",
242
243
  "operator": "The address to revoke as an operator.",
243
244
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
244
245
  "tokenId": "The tokenId `operator` is revoked from operating on."
@@ -136,7 +136,7 @@
136
136
  },
137
137
  "authorizeOperator(address,bytes32,bytes)": {
138
138
  "custom:events": "- LSP7 {AuthorizedOperator} event. - ERC721 {Approval} event.",
139
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
139
+ "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
140
140
  "params": {
141
141
  "operator": "The address to authorize as an operator.",
142
142
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
@@ -229,9 +229,10 @@
229
229
  "renounceOwnership()": {
230
230
  "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."
231
231
  },
232
- "revokeOperator(address,bytes32,bytes)": {
232
+ "revokeOperator(address,bytes32,bool,bytes)": {
233
233
  "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
234
234
  "params": {
235
+ "notify": "Boolean indicating whether to notify the operator or not",
235
236
  "operator": "The address to revoke as an operator.",
236
237
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
237
238
  "tokenId": "The tokenId `operator` is revoked from operating on."
@@ -140,7 +140,7 @@
140
140
  },
141
141
  "authorizeOperator(address,bytes32,bytes)": {
142
142
  "custom:events": "- LSP7 {AuthorizedOperator} event. - ERC721 {Approval} event.",
143
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
143
+ "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
144
144
  "params": {
145
145
  "operator": "The address to authorize as an operator.",
146
146
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
@@ -249,9 +249,10 @@
249
249
  "renounceOwnership()": {
250
250
  "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."
251
251
  },
252
- "revokeOperator(address,bytes32,bytes)": {
252
+ "revokeOperator(address,bytes32,bool,bytes)": {
253
253
  "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
254
254
  "params": {
255
+ "notify": "Boolean indicating whether to notify the operator or not",
255
256
  "operator": "The address to revoke as an operator.",
256
257
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
257
258
  "tokenId": "The tokenId `operator` is revoked from operating on."
@@ -140,7 +140,7 @@
140
140
  },
141
141
  "authorizeOperator(address,bytes32,bytes)": {
142
142
  "custom:events": "- LSP7 {AuthorizedOperator} event. - ERC721 {Approval} event.",
143
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
143
+ "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
144
144
  "params": {
145
145
  "operator": "The address to authorize as an operator.",
146
146
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
@@ -252,9 +252,10 @@
252
252
  "renounceOwnership()": {
253
253
  "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."
254
254
  },
255
- "revokeOperator(address,bytes32,bytes)": {
255
+ "revokeOperator(address,bytes32,bool,bytes)": {
256
256
  "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
257
257
  "params": {
258
+ "notify": "Boolean indicating whether to notify the operator or not",
258
259
  "operator": "The address to revoke as an operator.",
259
260
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
260
261
  "tokenId": "The tokenId `operator` is revoked from operating on."
@@ -129,7 +129,7 @@
129
129
  "kind": "dev",
130
130
  "methods": {
131
131
  "authorizeOperator(address,bytes32,bytes)": {
132
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
132
+ "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
133
133
  "params": {
134
134
  "operator": "The address to authorize as an operator.",
135
135
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
@@ -198,9 +198,10 @@
198
198
  "renounceOwnership()": {
199
199
  "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."
200
200
  },
201
- "revokeOperator(address,bytes32,bytes)": {
201
+ "revokeOperator(address,bytes32,bool,bytes)": {
202
202
  "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
203
203
  "params": {
204
+ "notify": "Boolean indicating whether to notify the operator or not",
204
205
  "operator": "The address to revoke as an operator.",
205
206
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
206
207
  "tokenId": "The tokenId `operator` is revoked from operating on."
@@ -129,7 +129,7 @@
129
129
  "kind": "dev",
130
130
  "methods": {
131
131
  "authorizeOperator(address,bytes32,bytes)": {
132
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
132
+ "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
133
133
  "params": {
134
134
  "operator": "The address to authorize as an operator.",
135
135
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
@@ -188,9 +188,10 @@
188
188
  "renounceOwnership()": {
189
189
  "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."
190
190
  },
191
- "revokeOperator(address,bytes32,bytes)": {
191
+ "revokeOperator(address,bytes32,bool,bytes)": {
192
192
  "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
193
193
  "params": {
194
+ "notify": "Boolean indicating whether to notify the operator or not",
194
195
  "operator": "The address to revoke as an operator.",
195
196
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
196
197
  "tokenId": "The tokenId `operator` is revoked from operating on."
@@ -132,7 +132,7 @@
132
132
  "kind": "dev",
133
133
  "methods": {
134
134
  "authorizeOperator(address,bytes32,bytes)": {
135
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
135
+ "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
136
136
  "params": {
137
137
  "operator": "The address to authorize as an operator.",
138
138
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
@@ -207,9 +207,10 @@
207
207
  "renounceOwnership()": {
208
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."
209
209
  },
210
- "revokeOperator(address,bytes32,bytes)": {
210
+ "revokeOperator(address,bytes32,bool,bytes)": {
211
211
  "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
212
212
  "params": {
213
+ "notify": "Boolean indicating whether to notify the operator or not",
213
214
  "operator": "The address to revoke as an operator.",
214
215
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
215
216
  "tokenId": "The tokenId `operator` is revoked from operating on."
@@ -133,7 +133,7 @@
133
133
  "kind": "dev",
134
134
  "methods": {
135
135
  "authorizeOperator(address,bytes32,bytes)": {
136
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
136
+ "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
137
137
  "params": {
138
138
  "operator": "The address to authorize as an operator.",
139
139
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
@@ -211,9 +211,10 @@
211
211
  "renounceOwnership()": {
212
212
  "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."
213
213
  },
214
- "revokeOperator(address,bytes32,bytes)": {
214
+ "revokeOperator(address,bytes32,bool,bytes)": {
215
215
  "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
216
216
  "params": {
217
+ "notify": "Boolean indicating whether to notify the operator or not",
217
218
  "operator": "The address to revoke as an operator.",
218
219
  "operatorNotificationData": "The data to notify the operator about via LSP1.",
219
220
  "tokenId": "The tokenId `operator` is revoked from operating on."
@@ -125,14 +125,14 @@
125
125
  }
126
126
  },
127
127
  "constructor": {
128
- "custom:events": "- {ValueReceived} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. - {DataChanged} event when setting the {_LSP9_SUPPORTED_STANDARDS_KEY}. - {UniversalReceiver} event when notifying the `initialOwner`.",
128
+ "custom:events": "- {UniversalReceiver} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. - {DataChanged} event when setting the {_LSP9_SUPPORTED_STANDARDS_KEY}. - {UniversalReceiver} event when notifying the `initialOwner`.",
129
129
  "details": "Sets `initialOwner` as the contract owner and the `SupportedStandards:LSP9Vault` Data Key. The `constructor` also allows funding the contract on deployment.",
130
130
  "params": {
131
131
  "newOwner": "The new owner of the contract."
132
132
  }
133
133
  },
134
134
  "execute(uint256,address,uint256,bytes)": {
135
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {ValueReceived} event when receiving native tokens.",
135
+ "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {UniversalReceiver} event when receiving native tokens.",
136
136
  "custom:info": "The `operationType` 4 `DELEGATECALL` is disabled by default in the LSP9 Vault.",
137
137
  "custom:requirements": "- Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3), `value` transfer is disallowed and must be 0.",
138
138
  "details": "Generic executor function to: - send native tokens to any address. - interact with any contract by passing an abi-encoded function call in the `data` parameter. - deploy a contract by providing its creation bytecode in the `data` parameter.",
@@ -144,7 +144,7 @@
144
144
  }
145
145
  },
146
146
  "executeBatch(uint256[],address[],uint256[],bytes[])": {
147
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). (each iteration) - {ValueReceived} event when receiving native tokens.",
147
+ "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). (each iteration) - {UniversalReceiver} event when receiving native tokens.",
148
148
  "custom:info": "The `operationType` 4 `DELEGATECALL` is disabled by default in the LSP9 Vault.",
149
149
  "custom:requirements": "- The length of the parameters provided must be equal. - Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3), `value` transfer is disallowed and must be 0.",
150
150
  "details": "Batch executor function that behaves the same as {execute} but allowing multiple operations in the same transaction.",
@@ -186,7 +186,7 @@
186
186
  "details": "Renounce ownership of the contract in a 2-step process. 1. The first call will initiate the process of renouncing ownership. 2. The second call is used as a confirmation and will leave the contract without an owner."
187
187
  },
188
188
  "setData(bytes32,bytes)": {
189
- "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
189
+ "custom:events": "- {DataChanged} event.",
190
190
  "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
191
191
  "details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
192
192
  "params": {
@@ -195,7 +195,7 @@
195
195
  }
196
196
  },
197
197
  "setDataBatch(bytes32[],bytes[])": {
198
- "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
198
+ "custom:events": "- {DataChanged} event. (on each iteration of setting data)",
199
199
  "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
200
200
  "details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
201
201
  "params": {
@@ -220,7 +220,7 @@
220
220
  }
221
221
  },
222
222
  "universalReceiver(bytes32,bytes)": {
223
- "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
223
+ "custom:events": "- {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
224
224
  "details": "Achieves the goal of [LSP-1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts ([LSP1UniversalReceiverDelegate]) that react on the whole transaction and on the specific typeId, respectively. The function performs the following steps: 1. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_PREFIX] + `bytes32(typeId)`. (Check [LSP-2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
225
225
  "params": {
226
226
  "receivedData": "The data received.",
@@ -128,7 +128,7 @@
128
128
  "details": "initialize (= lock) base implementation contract on deployment"
129
129
  },
130
130
  "execute(uint256,address,uint256,bytes)": {
131
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {ValueReceived} event when receiving native tokens.",
131
+ "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {UniversalReceiver} event when receiving native tokens.",
132
132
  "custom:info": "The `operationType` 4 `DELEGATECALL` is disabled by default in the LSP9 Vault.",
133
133
  "custom:requirements": "- Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3), `value` transfer is disallowed and must be 0.",
134
134
  "details": "Generic executor function to: - send native tokens to any address. - interact with any contract by passing an abi-encoded function call in the `data` parameter. - deploy a contract by providing its creation bytecode in the `data` parameter.",
@@ -140,7 +140,7 @@
140
140
  }
141
141
  },
142
142
  "executeBatch(uint256[],address[],uint256[],bytes[])": {
143
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). (each iteration) - {ValueReceived} event when receiving native tokens.",
143
+ "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). (each iteration) - {UniversalReceiver} event when receiving native tokens.",
144
144
  "custom:info": "The `operationType` 4 `DELEGATECALL` is disabled by default in the LSP9 Vault.",
145
145
  "custom:requirements": "- The length of the parameters provided must be equal. - Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3), `value` transfer is disallowed and must be 0.",
146
146
  "details": "Batch executor function that behaves the same as {execute} but allowing multiple operations in the same transaction.",
@@ -170,7 +170,7 @@
170
170
  }
171
171
  },
172
172
  "initialize(address)": {
173
- "custom:events": "- {ValueReceived} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. - {DataChanged} event when updating the {_LSP9_SUPPORTED_STANDARDS_KEY}. - {UniversalReceiver} event when notifying the `initialOwner`.",
173
+ "custom:events": "- {UniversalReceiver} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. - {DataChanged} event when updating the {_LSP9_SUPPORTED_STANDARDS_KEY}. - {UniversalReceiver} event when notifying the `initialOwner`.",
174
174
  "details": "Sets `initialOwner` as the contract owner and the `SupportedStandards:LSP9Vault` Data Key. The `initialize(address)` also allows funding the contract on deployment.",
175
175
  "params": {
176
176
  "newOwner": "The new owner of the contract."
@@ -189,7 +189,7 @@
189
189
  "details": "Renounce ownership of the contract in a 2-step process. 1. The first call will initiate the process of renouncing ownership. 2. The second call is used as a confirmation and will leave the contract without an owner."
190
190
  },
191
191
  "setData(bytes32,bytes)": {
192
- "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
192
+ "custom:events": "- {DataChanged} event.",
193
193
  "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
194
194
  "details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
195
195
  "params": {
@@ -198,7 +198,7 @@
198
198
  }
199
199
  },
200
200
  "setDataBatch(bytes32[],bytes[])": {
201
- "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
201
+ "custom:events": "- {DataChanged} event. (on each iteration of setting data)",
202
202
  "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
203
203
  "details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
204
204
  "params": {
@@ -223,7 +223,7 @@
223
223
  }
224
224
  },
225
225
  "universalReceiver(bytes32,bytes)": {
226
- "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
226
+ "custom:events": "- {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
227
227
  "details": "Achieves the goal of [LSP-1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts ([LSP1UniversalReceiverDelegate]) that react on the whole transaction and on the specific typeId, respectively. The function performs the following steps: 1. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_PREFIX] + `bytes32(typeId)`. (Check [LSP-2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
228
228
  "params": {
229
229
  "receivedData": "The data received.",
@@ -91,12 +91,12 @@
91
91
  }
92
92
  }
93
93
  ],
94
- "LSP20CallVerificationFailed(bool,bytes)": [
94
+ "LSP20CallVerificationFailed(bool,bytes4)": [
95
95
  {
96
96
  "details": "reverts when the call to the owner does not return the LSP20 success value",
97
97
  "params": {
98
98
  "postCall": "True if the execution call was done, False otherwise",
99
- "returnedData": "The data returned by the call to the logic verifier"
99
+ "returnedStatus": "The bytes4 decoded data returned by the logic verifier."
100
100
  }
101
101
  }
102
102
  ],
@@ -139,14 +139,14 @@
139
139
  }
140
140
  },
141
141
  "constructor": {
142
- "custom:events": "- {ValueReceived} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. - {DataChanged} event when setting the {_LSP3_SUPPORTED_STANDARDS_KEY}.",
143
- "details": "Set `initialOwner` as the contract owner and the `SupportedStandards:LSP3UniversalProfile` data key in the ERC725Y data key/value store. The `constructor` also allows funding the contract on deployment.",
142
+ "custom:events": "- {UniversalReceiver} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. - {DataChanged} event when setting the {_LSP3_SUPPORTED_STANDARDS_KEY}.",
143
+ "details": "Set `initialOwner` as the contract owner and the `SupportedStandards:LSP3Profile` data key in the ERC725Y data key/value store. - The `constructor` is payable and allows funding the contract on deployment. - The `initialOwner` will then be allowed to call protected functions marked with the `onlyOwner` modifier.",
144
144
  "params": {
145
145
  "initialOwner": "the owner of the contract"
146
146
  }
147
147
  },
148
148
  "execute(uint256,address,uint256,bytes)": {
149
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0), `STATICCALL` (3) and `DELEGATECALL` (4). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {ValueReceived} event when receiving native tokens.",
149
+ "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0), `STATICCALL` (3) and `DELEGATECALL` (4). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {UniversalReceiver} event when receiving native tokens.",
150
150
  "custom:requirements": "- Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3) or `DELEGATECALL` (4), `value` transfer is disallowed and must be 0.",
151
151
  "details": "Generic executor function to: - send native tokens to any address. - interact with any contract by passing an abi-encoded function call in the `data` parameter. - deploy a contract by providing its creation bytecode in the `data` parameter.",
152
152
  "params": {
@@ -157,7 +157,7 @@
157
157
  }
158
158
  },
159
159
  "executeBatch(uint256[],address[],uint256[],bytes[])": {
160
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0), `STATICCALL` (3) and `DELEGATECALL` (4). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2) (each iteration) - {ValueReceived} event when receiving native tokens.",
160
+ "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0), `STATICCALL` (3) and `DELEGATECALL` (4). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2) (each iteration) - {UniversalReceiver} event when receiving native tokens.",
161
161
  "custom:requirements": "- The length of the parameters provided must be equal. - Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3) or `DELEGATECALL` (4), `value` transfer is disallowed and must be 0.",
162
162
  "custom:warning": "- The `msg.value` should not be trusted for any method called within the batch with `operationType`: `DELEGATECALL` (4).",
163
163
  "details": "Batch executor function that behaves the same as {execute} but allowing multiple operations in the same transaction.",
@@ -187,6 +187,7 @@
187
187
  }
188
188
  },
189
189
  "isValidSignature(bytes32,bytes)": {
190
+ "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 LSP0ERC725Account and prevent signatures from the same EOA to be replayed across different LSP0ERC725Accounts.",
190
191
  "details": "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the `_ERC1271_SUCCESSVALUE` if the address recovered is the same as the owner, indicating that it was a valid signature. - If the address is different, it returns the `_ERC1271_FAILVALUE` indicating that the signature is not valid. 2. If the owner is a smart contract, it forwards the call of {isValidSignature()} to the owner contract: - If the contract fails or returns the `_ERC1271_FAILVALUE`, the {isValidSignature()} on the account returns the `_ERC1271_FAILVALUE`, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the `_ERC1271_SUCCESSVALUE`, the {isValidSignature()} on the account returns the `_ERC1271_SUCCESSVALUE`, indicating that it's a valid signature.",
191
192
  "params": {
192
193
  "dataHash": "The hash of the data to be validated.",
@@ -209,7 +210,7 @@
209
210
  "details": "Renounce ownership of the contract in a 2-step process. 1. The first call will initiate the process of renouncing ownership. 2. The second call is used as a confirmation and will leave the contract without an owner."
210
211
  },
211
212
  "setData(bytes32,bytes)": {
212
- "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
213
+ "custom:events": "- {UniversalReceiver} event when receiving native tokens. - {DataChanged} event.",
213
214
  "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
214
215
  "details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
215
216
  "params": {
@@ -218,7 +219,7 @@
218
219
  }
219
220
  },
220
221
  "setDataBatch(bytes32[],bytes[])": {
221
- "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
222
+ "custom:events": "- {UniversalReceiver} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
222
223
  "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
223
224
  "details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
224
225
  "params": {
@@ -243,8 +244,8 @@
243
244
  }
244
245
  },
245
246
  "universalReceiver(bytes32,bytes)": {
246
- "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
247
- "details": "Achieves the goal of [LSP-1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts ([LSP1UniversalReceiverDelegate]) that react on the whole transaction and on the specific typeId, respectively. The function performs the following steps: 1. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_PREFIX] + `bytes32(typeId)`. (Check [LSP-2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
247
+ "custom:events": "- {UniversalReceiver} when receiving native tokens. - {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
248
+ "details": "Achieves the goal of [LSP-1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts ([LSP1UniversalReceiverDelegate]) that react on the whole transaction and on the specific typeId, respectively. The function performs the following steps: 1. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_PREFIX] + `bytes32(typeId)`. (Check [LSP-2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. This function delegates internally the handling of native tokens to the {universalReceiver} function itself passing `_TYPEID_LSP0_VALUE_RECEIVED` as typeId and the calldata as received data.",
248
249
  "params": {
249
250
  "receivedData": "The data received.",
250
251
  "typeId": "The type of call received."
@@ -91,12 +91,12 @@
91
91
  }
92
92
  }
93
93
  ],
94
- "LSP20CallVerificationFailed(bool,bytes)": [
94
+ "LSP20CallVerificationFailed(bool,bytes4)": [
95
95
  {
96
96
  "details": "reverts when the call to the owner does not return the LSP20 success value",
97
97
  "params": {
98
98
  "postCall": "True if the execution call was done, False otherwise",
99
- "returnedData": "The data returned by the call to the logic verifier"
99
+ "returnedStatus": "The bytes4 decoded data returned by the logic verifier."
100
100
  }
101
101
  }
102
102
  ],
@@ -142,7 +142,7 @@
142
142
  "details": "Locks the base contract on deployment, so that it cannot be initialized, owned and controlled by anyone after it has been deployed. This is intended so that the sole purpose of this contract is to be used as a base contract behind a proxy."
143
143
  },
144
144
  "execute(uint256,address,uint256,bytes)": {
145
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0), `STATICCALL` (3) and `DELEGATECALL` (4). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {ValueReceived} event when receiving native tokens.",
145
+ "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0), `STATICCALL` (3) and `DELEGATECALL` (4). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {UniversalReceiver} event when receiving native tokens.",
146
146
  "custom:requirements": "- Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3) or `DELEGATECALL` (4), `value` transfer is disallowed and must be 0.",
147
147
  "details": "Generic executor function to: - send native tokens to any address. - interact with any contract by passing an abi-encoded function call in the `data` parameter. - deploy a contract by providing its creation bytecode in the `data` parameter.",
148
148
  "params": {
@@ -153,7 +153,7 @@
153
153
  }
154
154
  },
155
155
  "executeBatch(uint256[],address[],uint256[],bytes[])": {
156
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0), `STATICCALL` (3) and `DELEGATECALL` (4). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2) (each iteration) - {ValueReceived} event when receiving native tokens.",
156
+ "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0), `STATICCALL` (3) and `DELEGATECALL` (4). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2) (each iteration) - {UniversalReceiver} event when receiving native tokens.",
157
157
  "custom:requirements": "- The length of the parameters provided must be equal. - Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3) or `DELEGATECALL` (4), `value` transfer is disallowed and must be 0.",
158
158
  "custom:warning": "- The `msg.value` should not be trusted for any method called within the batch with `operationType`: `DELEGATECALL` (4).",
159
159
  "details": "Batch executor function that behaves the same as {execute} but allowing multiple operations in the same transaction.",
@@ -183,13 +183,14 @@
183
183
  }
184
184
  },
185
185
  "initialize(address)": {
186
- "custom:events": "- {ValueReceived} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}.",
187
- "details": "Set `initialOwner` as the contract owner and the `SupportedStandards:LSP3UniversalProfile` data key in the ERC725Y data key/value store. The `constructor` also allows funding the contract on deployment. The `initialOwner` will then be allowed to call protected functions marked with the `onlyOwner` modifier. The `initialize(address)` function also allows funding the contract on initialization.",
186
+ "custom:events": "- {UniversalReceiver} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. - {DataChanged} event when setting the {_LSP3_SUPPORTED_STANDARDS_KEY}.",
187
+ "details": "Set `initialOwner` as the contract owner and the `SupportedStandards:LSP3Profile` data key in the ERC725Y data key/value store. - The `initialize(address)` function is payable and allows funding the contract on initialization. - The `initialOwner` will then be allowed to call protected functions marked with the `onlyOwner` modifier.",
188
188
  "params": {
189
189
  "initialOwner": "the owner of the contract"
190
190
  }
191
191
  },
192
192
  "isValidSignature(bytes32,bytes)": {
193
+ "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 LSP0ERC725Account and prevent signatures from the same EOA to be replayed across different LSP0ERC725Accounts.",
193
194
  "details": "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the `_ERC1271_SUCCESSVALUE` if the address recovered is the same as the owner, indicating that it was a valid signature. - If the address is different, it returns the `_ERC1271_FAILVALUE` indicating that the signature is not valid. 2. If the owner is a smart contract, it forwards the call of {isValidSignature()} to the owner contract: - If the contract fails or returns the `_ERC1271_FAILVALUE`, the {isValidSignature()} on the account returns the `_ERC1271_FAILVALUE`, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the `_ERC1271_SUCCESSVALUE`, the {isValidSignature()} on the account returns the `_ERC1271_SUCCESSVALUE`, indicating that it's a valid signature.",
194
195
  "params": {
195
196
  "dataHash": "The hash of the data to be validated.",
@@ -212,7 +213,7 @@
212
213
  "details": "Renounce ownership of the contract in a 2-step process. 1. The first call will initiate the process of renouncing ownership. 2. The second call is used as a confirmation and will leave the contract without an owner."
213
214
  },
214
215
  "setData(bytes32,bytes)": {
215
- "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
216
+ "custom:events": "- {UniversalReceiver} event when receiving native tokens. - {DataChanged} event.",
216
217
  "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
217
218
  "details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
218
219
  "params": {
@@ -221,7 +222,7 @@
221
222
  }
222
223
  },
223
224
  "setDataBatch(bytes32[],bytes[])": {
224
- "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
225
+ "custom:events": "- {UniversalReceiver} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
225
226
  "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
226
227
  "details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
227
228
  "params": {
@@ -246,8 +247,8 @@
246
247
  }
247
248
  },
248
249
  "universalReceiver(bytes32,bytes)": {
249
- "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
250
- "details": "Achieves the goal of [LSP-1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts ([LSP1UniversalReceiverDelegate]) that react on the whole transaction and on the specific typeId, respectively. The function performs the following steps: 1. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_PREFIX] + `bytes32(typeId)`. (Check [LSP-2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
250
+ "custom:events": "- {UniversalReceiver} when receiving native tokens. - {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
251
+ "details": "Achieves the goal of [LSP-1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts ([LSP1UniversalReceiverDelegate]) that react on the whole transaction and on the specific typeId, respectively. The function performs the following steps: 1. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_PREFIX] + `bytes32(typeId)`. (Check [LSP-2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. This function delegates internally the handling of native tokens to the {universalReceiver} function itself passing `_TYPEID_LSP0_VALUE_RECEIVED` as typeId and the calldata as received data.",
251
252
  "params": {
252
253
  "receivedData": "The data received.",
253
254
  "typeId": "The type of call received."