@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.
- package/artifacts/LSP0ERC725Account.json +18 -24
- package/artifacts/LSP0ERC725AccountInit.json +18 -24
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +15 -2
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +15 -2
- package/artifacts/LSP6KeyManager.json +25 -2
- package/artifacts/LSP6KeyManagerInit.json +25 -2
- package/artifacts/LSP7CappedSupply.json +35 -0
- package/artifacts/LSP7CappedSupplyInitAbstract.json +35 -0
- package/artifacts/LSP7CompatibleERC20.json +35 -0
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +35 -0
- package/artifacts/LSP7CompatibleERC20Mintable.json +37 -2
- package/artifacts/LSP7CompatibleERC20MintableInit.json +37 -2
- package/artifacts/LSP7DigitalAsset.json +35 -0
- package/artifacts/LSP7DigitalAssetInitAbstract.json +35 -0
- package/artifacts/LSP7Mintable.json +37 -2
- package/artifacts/LSP7MintableInit.json +37 -2
- package/artifacts/LSP8CappedSupply.json +24 -0
- package/artifacts/LSP8CappedSupplyInitAbstract.json +24 -0
- package/artifacts/LSP8CompatibleERC721.json +24 -0
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +24 -0
- package/artifacts/LSP8CompatibleERC721Mintable.json +26 -2
- package/artifacts/LSP8CompatibleERC721MintableInit.json +26 -2
- package/artifacts/LSP8IdentifiableDigitalAsset.json +24 -0
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +24 -0
- package/artifacts/LSP8Mintable.json +26 -2
- package/artifacts/LSP8MintableInit.json +26 -2
- package/artifacts/LSP9Vault.json +15 -21
- package/artifacts/LSP9VaultInit.json +15 -21
- package/artifacts/UniversalProfile.json +18 -24
- package/artifacts/UniversalProfileInit.json +18 -24
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +0 -8
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +5 -0
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +12 -2
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +75 -30
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +11 -2
- package/contracts/LSP17ContractExtension/LSP17Extendable.sol +12 -8
- package/contracts/LSP17ContractExtension/LSP17Extension.sol +2 -1
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +30 -7
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +16 -7
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +3 -2
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +43 -49
- package/contracts/LSP20CallVerification/LSP20Errors.sol +2 -2
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +42 -2
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +3 -3
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +60 -0
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -1
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +7 -5
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +122 -176
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +7 -5
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +8 -1
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +7 -1
- package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +5 -0
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +8 -5
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +6 -5
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +41 -74
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +6 -5
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +10 -7
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +10 -7
- package/contracts/LSP9Vault/ILSP9Vault.sol +0 -8
- package/contracts/LSP9Vault/LSP9Constants.sol +5 -0
- package/contracts/LSP9Vault/LSP9Vault.sol +11 -2
- package/contracts/LSP9Vault/LSP9VaultCore.sol +63 -27
- package/contracts/LSP9Vault/LSP9VaultInit.sol +1 -1
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +11 -2
- package/contracts/UniversalProfile.sol +1 -1
- package/contracts/UniversalProfileInit.sol +1 -1
- package/contracts/UniversalProfileInitAbstract.sol +1 -1
- package/contracts/Version.sol +16 -0
- package/devdocs/LSP0ERC725Account.json +14 -8
- package/devdocs/LSP0ERC725AccountInit.json +14 -8
- package/devdocs/LSP1UniversalReceiverDelegateUP.json +6 -0
- package/devdocs/LSP1UniversalReceiverDelegateVault.json +6 -0
- package/devdocs/LSP6KeyManager.json +16 -0
- package/devdocs/LSP6KeyManagerInit.json +16 -0
- package/devdocs/LSP7CappedSupply.json +16 -10
- package/devdocs/LSP7CappedSupplyInitAbstract.json +16 -10
- package/devdocs/LSP7CompatibleERC20.json +16 -10
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +16 -10
- package/devdocs/LSP7CompatibleERC20Mintable.json +16 -10
- package/devdocs/LSP7CompatibleERC20MintableInit.json +16 -10
- package/devdocs/LSP7DigitalAsset.json +16 -10
- package/devdocs/LSP7DigitalAssetInitAbstract.json +16 -10
- package/devdocs/LSP7Mintable.json +16 -10
- package/devdocs/LSP7MintableInit.json +16 -10
- package/devdocs/LSP8CappedSupply.json +9 -2
- package/devdocs/LSP8CappedSupplyInitAbstract.json +9 -2
- package/devdocs/LSP8CompatibleERC721.json +9 -2
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +9 -2
- package/devdocs/LSP8CompatibleERC721Mintable.json +9 -2
- package/devdocs/LSP8CompatibleERC721MintableInit.json +9 -2
- package/devdocs/LSP8IdentifiableDigitalAsset.json +9 -2
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +9 -2
- package/devdocs/LSP8Mintable.json +9 -2
- package/devdocs/LSP8MintableInit.json +9 -2
- package/devdocs/LSP9Vault.json +12 -6
- package/devdocs/LSP9VaultInit.json +12 -6
- package/devdocs/UniversalProfile.json +14 -8
- package/devdocs/UniversalProfileInit.json +14 -8
- package/dist/constants.cjs.js +1211 -454
- package/dist/constants.d.ts +1277 -374
- package/dist/constants.es.js +1211 -454
- package/package.json +1 -3
- package/userdocs/LSP0ERC725Account.json +3 -3
- package/userdocs/LSP0ERC725AccountInit.json +3 -3
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +3 -0
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +3 -0
- package/userdocs/LSP6KeyManager.json +3 -0
- package/userdocs/LSP6KeyManagerInit.json +3 -0
- package/userdocs/LSP7CappedSupply.json +3 -0
- package/userdocs/LSP7CappedSupplyInitAbstract.json +3 -0
- package/userdocs/LSP7CompatibleERC20.json +3 -0
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +3 -0
- package/userdocs/LSP7CompatibleERC20Mintable.json +3 -0
- package/userdocs/LSP7CompatibleERC20MintableInit.json +3 -0
- package/userdocs/LSP7DigitalAsset.json +3 -0
- package/userdocs/LSP7DigitalAssetInitAbstract.json +3 -0
- package/userdocs/LSP7Mintable.json +3 -0
- package/userdocs/LSP7MintableInit.json +3 -0
- package/userdocs/LSP8CappedSupply.json +3 -0
- package/userdocs/LSP8CappedSupplyInitAbstract.json +3 -0
- package/userdocs/LSP8CompatibleERC721.json +3 -0
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +3 -0
- package/userdocs/LSP8CompatibleERC721Mintable.json +3 -0
- package/userdocs/LSP8CompatibleERC721MintableInit.json +3 -0
- package/userdocs/LSP8IdentifiableDigitalAsset.json +3 -0
- package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +3 -0
- package/userdocs/LSP8Mintable.json +3 -0
- package/userdocs/LSP8MintableInit.json +3 -0
- package/userdocs/LSP9Vault.json +3 -3
- package/userdocs/LSP9VaultInit.json +3 -3
- package/userdocs/UniversalProfile.json +3 -3
- package/userdocs/UniversalProfileInit.json +3 -3
- package/CONTRIBUTING.md +0 -188
|
@@ -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
|
-
"
|
|
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
|
-
"
|
|
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
|
}
|
|
@@ -270,6 +270,12 @@
|
|
|
270
270
|
},
|
|
271
271
|
"transferOwnership(address)": {
|
|
272
272
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
273
|
+
},
|
|
274
|
+
"version()": {
|
|
275
|
+
"details": "Get the version of the contract.",
|
|
276
|
+
"returns": {
|
|
277
|
+
"_0": "The version of the the contract."
|
|
278
|
+
}
|
|
273
279
|
}
|
|
274
280
|
},
|
|
275
281
|
"version": 1
|
|
@@ -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."
|
|
@@ -287,6 +288,12 @@
|
|
|
287
288
|
},
|
|
288
289
|
"transferOwnership(address)": {
|
|
289
290
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
291
|
+
},
|
|
292
|
+
"version()": {
|
|
293
|
+
"details": "Get the version of the contract.",
|
|
294
|
+
"returns": {
|
|
295
|
+
"_0": "The version of the the contract."
|
|
296
|
+
}
|
|
290
297
|
}
|
|
291
298
|
},
|
|
292
299
|
"version": 1
|
|
@@ -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."
|
|
@@ -280,6 +281,12 @@
|
|
|
280
281
|
},
|
|
281
282
|
"transferOwnership(address)": {
|
|
282
283
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
284
|
+
},
|
|
285
|
+
"version()": {
|
|
286
|
+
"details": "Get the version of the contract.",
|
|
287
|
+
"returns": {
|
|
288
|
+
"_0": "The version of the the contract."
|
|
289
|
+
}
|
|
283
290
|
}
|
|
284
291
|
},
|
|
285
292
|
"version": 1
|
|
@@ -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."
|
|
@@ -361,6 +362,12 @@
|
|
|
361
362
|
},
|
|
362
363
|
"transferOwnership(address)": {
|
|
363
364
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
365
|
+
},
|
|
366
|
+
"version()": {
|
|
367
|
+
"details": "Get the version of the contract.",
|
|
368
|
+
"returns": {
|
|
369
|
+
"_0": "The version of the the contract."
|
|
370
|
+
}
|
|
364
371
|
}
|
|
365
372
|
},
|
|
366
373
|
"stateVariables": {
|
|
@@ -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."
|
|
@@ -354,6 +355,12 @@
|
|
|
354
355
|
},
|
|
355
356
|
"transferOwnership(address)": {
|
|
356
357
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
358
|
+
},
|
|
359
|
+
"version()": {
|
|
360
|
+
"details": "Get the version of the contract.",
|
|
361
|
+
"returns": {
|
|
362
|
+
"_0": "The version of the the contract."
|
|
363
|
+
}
|
|
357
364
|
}
|
|
358
365
|
},
|
|
359
366
|
"stateVariables": {
|
|
@@ -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."
|
|
@@ -374,6 +375,12 @@
|
|
|
374
375
|
},
|
|
375
376
|
"transferOwnership(address)": {
|
|
376
377
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
378
|
+
},
|
|
379
|
+
"version()": {
|
|
380
|
+
"details": "Get the version of the contract.",
|
|
381
|
+
"returns": {
|
|
382
|
+
"_0": "The version of the the contract."
|
|
383
|
+
}
|
|
377
384
|
}
|
|
378
385
|
},
|
|
379
386
|
"title": "LSP8CompatibleERC721Mintable deployable preset contract with a public {mint} function callable only by the contract {owner}.",
|
|
@@ -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."
|
|
@@ -377,6 +378,12 @@
|
|
|
377
378
|
},
|
|
378
379
|
"transferOwnership(address)": {
|
|
379
380
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
381
|
+
},
|
|
382
|
+
"version()": {
|
|
383
|
+
"details": "Get the version of the contract.",
|
|
384
|
+
"returns": {
|
|
385
|
+
"_0": "The version of the the contract."
|
|
386
|
+
}
|
|
380
387
|
}
|
|
381
388
|
},
|
|
382
389
|
"title": "LSP8CompatibleERC721MintableInit deployable preset contract (proxy version) with a public mint function callable only by the contract {owner}",
|
|
@@ -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."
|
|
@@ -275,6 +276,12 @@
|
|
|
275
276
|
},
|
|
276
277
|
"transferOwnership(address)": {
|
|
277
278
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
279
|
+
},
|
|
280
|
+
"version()": {
|
|
281
|
+
"details": "Get the version of the contract.",
|
|
282
|
+
"returns": {
|
|
283
|
+
"_0": "The version of the the contract."
|
|
284
|
+
}
|
|
278
285
|
}
|
|
279
286
|
},
|
|
280
287
|
"title": "Implementation of a LSP8 Identifiable Digital Asset, a contract that represents a non-fungible token.",
|
|
@@ -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."
|
|
@@ -265,6 +266,12 @@
|
|
|
265
266
|
},
|
|
266
267
|
"transferOwnership(address)": {
|
|
267
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
|
+
}
|
|
268
275
|
}
|
|
269
276
|
},
|
|
270
277
|
"title": "Implementation of a LSP8 Identifiable Digital Asset, a contract that represents a non-fungible token.",
|
|
@@ -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."
|
|
@@ -284,6 +285,12 @@
|
|
|
284
285
|
},
|
|
285
286
|
"transferOwnership(address)": {
|
|
286
287
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
288
|
+
},
|
|
289
|
+
"version()": {
|
|
290
|
+
"details": "Get the version of the contract.",
|
|
291
|
+
"returns": {
|
|
292
|
+
"_0": "The version of the the contract."
|
|
293
|
+
}
|
|
287
294
|
}
|
|
288
295
|
},
|
|
289
296
|
"title": "LSP8IdentifiableDigitalAsset deployable preset contract with a public {mint} function callable only by the contract {owner}.",
|
|
@@ -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."
|
|
@@ -288,6 +289,12 @@
|
|
|
288
289
|
},
|
|
289
290
|
"transferOwnership(address)": {
|
|
290
291
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
292
|
+
},
|
|
293
|
+
"version()": {
|
|
294
|
+
"details": "Get the version of the contract.",
|
|
295
|
+
"returns": {
|
|
296
|
+
"_0": "The version of the the contract."
|
|
297
|
+
}
|
|
291
298
|
}
|
|
292
299
|
},
|
|
293
300
|
"version": 1
|
package/devdocs/LSP9Vault.json
CHANGED
|
@@ -125,14 +125,14 @@
|
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
"constructor": {
|
|
128
|
-
"custom:events": "- {
|
|
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). - {
|
|
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) - {
|
|
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": "- {
|
|
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": "- {
|
|
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": "- {
|
|
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.",
|
|
@@ -229,6 +229,12 @@
|
|
|
229
229
|
"returns": {
|
|
230
230
|
"returnedValues": "The ABI encoded return value of the LSP1UniversalReceiverDelegate call and the LSP1TypeIdDelegate call."
|
|
231
231
|
}
|
|
232
|
+
},
|
|
233
|
+
"version()": {
|
|
234
|
+
"details": "Get the version of the contract.",
|
|
235
|
+
"returns": {
|
|
236
|
+
"_0": "The version of the the contract."
|
|
237
|
+
}
|
|
232
238
|
}
|
|
233
239
|
},
|
|
234
240
|
"title": "Implementation of LSP9Vault built on top of [ERC725], [LSP-1-UniversalReceiver]",
|
|
@@ -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). - {
|
|
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) - {
|
|
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": "- {
|
|
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": "- {
|
|
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": "- {
|
|
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": "- {
|
|
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.",
|
|
@@ -232,6 +232,12 @@
|
|
|
232
232
|
"returns": {
|
|
233
233
|
"returnedValues": "The ABI encoded return value of the LSP1UniversalReceiverDelegate call and the LSP1TypeIdDelegate call."
|
|
234
234
|
}
|
|
235
|
+
},
|
|
236
|
+
"version()": {
|
|
237
|
+
"details": "Get the version of the contract.",
|
|
238
|
+
"returns": {
|
|
239
|
+
"_0": "The version of the the contract."
|
|
240
|
+
}
|
|
235
241
|
}
|
|
236
242
|
},
|
|
237
243
|
"title": "Deployable Proxy Implementation of LSP9Vault built on top of ERC725, LSP1UniversalReceiver",
|