@lukso/lsp-smart-contracts 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/artifacts/Create2Factory.json +2 -2
- package/artifacts/LSP0ERC725Account.json +4 -4
- package/artifacts/LSP0ERC725AccountInit.json +4 -4
- package/artifacts/LSP11BasicSocialRecovery.json +2 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
- package/artifacts/LSP16UniversalFactory.json +27 -21
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +2 -2
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +2 -2
- package/artifacts/LSP6KeyManager.json +2 -2
- package/artifacts/LSP6KeyManagerInit.json +2 -2
- package/artifacts/LSP7CompatibleERC20Mintable.json +2 -2
- package/artifacts/LSP7CompatibleERC20MintableInit.json +2 -2
- package/artifacts/LSP7Mintable.json +2 -2
- package/artifacts/LSP7MintableInit.json +2 -2
- package/artifacts/LSP8CompatibleERC721Mintable.json +2 -2
- package/artifacts/LSP8CompatibleERC721MintableInit.json +2 -2
- package/artifacts/LSP8Mintable.json +2 -2
- package/artifacts/LSP8MintableInit.json +2 -2
- package/artifacts/LSP9Vault.json +2 -2
- package/artifacts/LSP9VaultInit.json +2 -2
- package/artifacts/UniversalProfile.json +4 -4
- package/artifacts/UniversalProfileInit.json +4 -4
- package/artifacts/UniversalReceiverAddressStore.json +2 -2
- package/contracts/Factories/Create2Factory.sol +11 -3
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +13 -5
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +11 -6
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +256 -186
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +20 -6
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +23 -9
- package/contracts/LSP0ERC725Account/LSP0Utils.sol +3 -5
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +25 -10
- package/contracts/LSP11BasicSocialRecovery/ILSP11BasicSocialRecovery.sol +4 -2
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.sol +3 -1
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +65 -23
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.sol +7 -2
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInitAbstract.sol +14 -4
- package/contracts/LSP11BasicSocialRecovery/LSP11Errors.sol +4 -1
- package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +17 -16
- package/contracts/LSP14Ownable2Step/LSP14Errors.sol +4 -1
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +22 -11
- package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +333 -128
- package/contracts/LSP17ContractExtension/LSP17Extendable.sol +38 -16
- package/contracts/LSP17ContractExtension/LSP17Extension.sol +20 -8
- package/contracts/LSP17ContractExtension/LSP17Utils.sol +4 -5
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +5 -5
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +38 -14
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +31 -11
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +34 -9
- package/contracts/LSP20CallVerification/{ILSP20CallVerification.sol → ILSP20CallVerifier.sol} +7 -2
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +24 -9
- package/contracts/LSP20CallVerification/LSP20Errors.sol +1 -1
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +62 -36
- package/contracts/LSP4DigitalAssetMetadata/ILSP4Compatibility.sol +3 -1
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +15 -4
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +18 -5
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +32 -12
- package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +17 -8
- package/contracts/LSP6KeyManager/LSP6Constants.sol +3 -9
- package/contracts/LSP6KeyManager/LSP6Errors.sol +4 -1
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +114 -72
- package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +7 -2
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +96 -46
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6OwnershipModule.sol +10 -5
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +98 -32
- package/contracts/LSP6KeyManager/LSP6Utils.sol +42 -34
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +8 -6
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +13 -10
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +96 -26
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +11 -9
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +8 -2
- package/contracts/LSP7DigitalAsset/extensions/ILSP7CompatibleERC20.sol +9 -2
- package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +1 -5
- package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +4 -6
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +6 -2
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +32 -12
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +28 -7
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +8 -2
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +6 -2
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +6 -1
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +13 -3
- package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +14 -5
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +3 -1
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +12 -10
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +95 -28
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +14 -10
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +23 -10
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +3 -1
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +3 -1
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +6 -2
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +72 -30
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +77 -27
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +6 -2
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +6 -2
- package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +3 -1
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +8 -2
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +6 -2
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +3 -1
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +5 -1
- package/contracts/LSP9Vault/ILSP9Vault.sol +13 -5
- package/contracts/LSP9Vault/LSP9Vault.sol +7 -2
- package/contracts/LSP9Vault/LSP9VaultCore.sol +108 -51
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +10 -3
- package/contracts/Legacy/Registries/AddressRegistry.sol +13 -4
- package/contracts/Legacy/Registries/AddressRegistryRequiresERC725.sol +6 -2
- package/contracts/Legacy/UniversalReceiverAddressStore.sol +17 -6
- package/contracts/UniversalProfile.sol +14 -5
- package/contracts/UniversalProfileInit.sol +17 -5
- package/contracts/UniversalProfileInitAbstract.sol +17 -9
- package/devdocs/LSP0ERC725Account.json +33 -19
- package/devdocs/LSP0ERC725AccountInit.json +33 -20
- package/devdocs/LSP16UniversalFactory.json +87 -22
- package/devdocs/LSP9Vault.json +3 -3
- package/devdocs/LSP9VaultInit.json +3 -3
- package/devdocs/UniversalProfile.json +32 -18
- package/devdocs/UniversalProfileInit.json +33 -19
- package/dist/constants.cjs.js +310 -182
- package/dist/constants.d.ts +178 -48
- package/dist/constants.es.js +310 -182
- package/package.json +19 -17
- package/userdocs/LSP0ERC725Account.json +5 -2
- package/userdocs/LSP0ERC725AccountInit.json +8 -2
- package/userdocs/UniversalProfile.json +3 -3
- package/userdocs/UniversalProfileInit.json +6 -3
- package/contracts/Custom/EIP191Signer.sol +0 -12
package/dist/constants.cjs.js
CHANGED
|
@@ -239,7 +239,8 @@ const ErrorSelectors = {
|
|
|
239
239
|
{
|
|
240
240
|
details: "reverts when the call to the owner does not return the magic value",
|
|
241
241
|
params: {
|
|
242
|
-
postCall: "
|
|
242
|
+
postCall: "True if the execution call was done, False otherwise",
|
|
243
|
+
returnedData: "The data returned by the call to the logic verifier"
|
|
243
244
|
}
|
|
244
245
|
}
|
|
245
246
|
]
|
|
@@ -531,7 +532,8 @@ const ErrorSelectors = {
|
|
|
531
532
|
{
|
|
532
533
|
details: "reverts when the call to the owner does not return the magic value",
|
|
533
534
|
params: {
|
|
534
|
-
postCall: "
|
|
535
|
+
postCall: "True if the execution call was done, False otherwise",
|
|
536
|
+
returnedData: "The data returned by the call to the logic verifier"
|
|
535
537
|
}
|
|
536
538
|
}
|
|
537
539
|
]
|
|
@@ -935,34 +937,34 @@ const ErrorSelectors = {
|
|
|
935
937
|
},
|
|
936
938
|
LSP16UniversalFactory: {
|
|
937
939
|
/**
|
|
938
|
-
* error
|
|
940
|
+
* error ContractInitializationFailed()
|
|
939
941
|
*
|
|
940
|
-
*
|
|
942
|
+
* 0xc1ee8543 = keccak256('ContractInitializationFailed()')
|
|
941
943
|
*/
|
|
942
|
-
"
|
|
943
|
-
sig: "
|
|
944
|
+
"0xc1ee8543": {
|
|
945
|
+
sig: "ContractInitializationFailed()",
|
|
944
946
|
inputs: [],
|
|
945
|
-
name: "
|
|
947
|
+
name: "ContractInitializationFailed",
|
|
946
948
|
type: "error",
|
|
947
949
|
userdoc: [
|
|
948
950
|
{
|
|
949
|
-
details: "
|
|
951
|
+
details: "Reverts when there is no revert reason bubbled up by the contract created when initializing"
|
|
950
952
|
}
|
|
951
953
|
]
|
|
952
954
|
},
|
|
953
955
|
/**
|
|
954
|
-
* error
|
|
956
|
+
* error InvalidValueSum()
|
|
955
957
|
*
|
|
956
|
-
*
|
|
958
|
+
* 0x2fd9ca91 = keccak256('InvalidValueSum()')
|
|
957
959
|
*/
|
|
958
|
-
"
|
|
959
|
-
sig: "
|
|
960
|
+
"0x2fd9ca91": {
|
|
961
|
+
sig: "InvalidValueSum()",
|
|
960
962
|
inputs: [],
|
|
961
|
-
name: "
|
|
963
|
+
name: "InvalidValueSum",
|
|
962
964
|
type: "error",
|
|
963
965
|
userdoc: [
|
|
964
966
|
{
|
|
965
|
-
details: "
|
|
967
|
+
details: "Reverts when msg.value sent to {deployCreate2AndInitialize} function is not equal to the sum of the `initializeCalldataMsgValue` and `constructorMsgValue`"
|
|
966
968
|
}
|
|
967
969
|
]
|
|
968
970
|
}
|
|
@@ -9131,7 +9133,8 @@ const ErrorSelectors = {
|
|
|
9131
9133
|
{
|
|
9132
9134
|
details: "reverts when the call to the owner does not return the magic value",
|
|
9133
9135
|
params: {
|
|
9134
|
-
postCall: "
|
|
9136
|
+
postCall: "True if the execution call was done, False otherwise",
|
|
9137
|
+
returnedData: "The data returned by the call to the logic verifier"
|
|
9135
9138
|
}
|
|
9136
9139
|
}
|
|
9137
9140
|
]
|
|
@@ -9423,7 +9426,8 @@ const ErrorSelectors = {
|
|
|
9423
9426
|
{
|
|
9424
9427
|
details: "reverts when the call to the owner does not return the magic value",
|
|
9425
9428
|
params: {
|
|
9426
|
-
postCall: "
|
|
9429
|
+
postCall: "True if the execution call was done, False otherwise",
|
|
9430
|
+
returnedData: "The data returned by the call to the logic verifier"
|
|
9427
9431
|
}
|
|
9428
9432
|
}
|
|
9429
9433
|
]
|
|
@@ -10520,14 +10524,15 @@ const EventSigHashes = {
|
|
|
10520
10524
|
* event ContractCreated(
|
|
10521
10525
|
* address indexed contractCreated,
|
|
10522
10526
|
* bytes32 indexed providedSalt,
|
|
10523
|
-
*
|
|
10527
|
+
* bytes32 generatedSalt,
|
|
10528
|
+
* bool indexed initialized,
|
|
10524
10529
|
* bytes initializeCalldata
|
|
10525
10530
|
* )
|
|
10526
10531
|
*
|
|
10527
|
-
*
|
|
10532
|
+
* 0x8872a323d65599f01bf90dc61c94b4e0cc8e2347d6af4122fccc3e112ee34a84 = keccak256('ContractCreated(address,bytes32,bytes32,bool,bytes)')
|
|
10528
10533
|
*/
|
|
10529
|
-
"
|
|
10530
|
-
sig: "ContractCreated(address,bytes32,bool,bytes)",
|
|
10534
|
+
"0x8872a323d65599f01bf90dc61c94b4e0cc8e2347d6af4122fccc3e112ee34a84": {
|
|
10535
|
+
sig: "ContractCreated(address,bytes32,bytes32,bool,bytes)",
|
|
10531
10536
|
anonymous: false,
|
|
10532
10537
|
inputs: [
|
|
10533
10538
|
{
|
|
@@ -10542,10 +10547,16 @@ const EventSigHashes = {
|
|
|
10542
10547
|
name: "providedSalt",
|
|
10543
10548
|
type: "bytes32"
|
|
10544
10549
|
},
|
|
10550
|
+
{
|
|
10551
|
+
indexed: false,
|
|
10552
|
+
internalType: "bytes32",
|
|
10553
|
+
name: "generatedSalt",
|
|
10554
|
+
type: "bytes32"
|
|
10555
|
+
},
|
|
10545
10556
|
{
|
|
10546
10557
|
indexed: true,
|
|
10547
10558
|
internalType: "bool",
|
|
10548
|
-
name: "
|
|
10559
|
+
name: "initialized",
|
|
10549
10560
|
type: "bool"
|
|
10550
10561
|
},
|
|
10551
10562
|
{
|
|
@@ -10561,9 +10572,10 @@ const EventSigHashes = {
|
|
|
10561
10572
|
details: "Emitted whenever a contract is created",
|
|
10562
10573
|
params: {
|
|
10563
10574
|
contractCreated: "The address of the contract created",
|
|
10564
|
-
|
|
10565
|
-
initializeCalldata: "The bytes provided as initializeCalldata",
|
|
10566
|
-
|
|
10575
|
+
generatedSalt: "The salt used by the `CREATE2` opcode for contract deployment",
|
|
10576
|
+
initializeCalldata: "The bytes provided as initializeCalldata (Empty string when `initialized` is set to false)",
|
|
10577
|
+
initialized: "The Boolean that specifies if the contract must be initialized or not",
|
|
10578
|
+
providedSalt: "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
10567
10579
|
}
|
|
10568
10580
|
}
|
|
10569
10581
|
}
|
|
@@ -16583,7 +16595,8 @@ const FunctionSelectors = {
|
|
|
16583
16595
|
stateMutability: "nonpayable",
|
|
16584
16596
|
type: "function",
|
|
16585
16597
|
devdoc: {
|
|
16586
|
-
|
|
16598
|
+
"custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
|
|
16599
|
+
details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
|
|
16587
16600
|
},
|
|
16588
16601
|
userdoc: {
|
|
16589
16602
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -16636,11 +16649,13 @@ const FunctionSelectors = {
|
|
|
16636
16649
|
stateMutability: "payable",
|
|
16637
16650
|
type: "function",
|
|
16638
16651
|
devdoc: {
|
|
16652
|
+
"custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
|
|
16653
|
+
"custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
16639
16654
|
details: "Executes any call on other addresses.",
|
|
16640
16655
|
params: {
|
|
16641
|
-
data: "The call data to execute on `target`, or the bytecode of the contract to deploy
|
|
16642
|
-
operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
|
|
16643
|
-
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (
|
|
16656
|
+
data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
|
|
16657
|
+
operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
16658
|
+
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
16644
16659
|
value: "The amount of native tokens to transfer (in Wei)."
|
|
16645
16660
|
}
|
|
16646
16661
|
}
|
|
@@ -16672,12 +16687,14 @@ const FunctionSelectors = {
|
|
|
16672
16687
|
stateMutability: "payable",
|
|
16673
16688
|
type: "function",
|
|
16674
16689
|
devdoc: {
|
|
16690
|
+
"custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
|
|
16691
|
+
"custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
16675
16692
|
details: "Generic batch executor function that executes any call on other addresses",
|
|
16676
16693
|
params: {
|
|
16677
|
-
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy
|
|
16678
|
-
operationsType: "The list of operations type used: CALL = 0
|
|
16679
|
-
targets: "The list of addresses to call. `targets` will be unused if a contract is created (
|
|
16680
|
-
values: "The list of native token amounts to transfer (in Wei)"
|
|
16694
|
+
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
|
|
16695
|
+
operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
16696
|
+
targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
16697
|
+
values: "The list of native token amounts to transfer (in Wei)."
|
|
16681
16698
|
}
|
|
16682
16699
|
}
|
|
16683
16700
|
},
|
|
@@ -16744,7 +16761,7 @@ const FunctionSelectors = {
|
|
|
16744
16761
|
stateMutability: "view",
|
|
16745
16762
|
type: "function",
|
|
16746
16763
|
devdoc: {
|
|
16747
|
-
details: "Handles two cases:
|
|
16764
|
+
details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue 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 fail value 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 fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
|
|
16748
16765
|
params: {
|
|
16749
16766
|
dataHash: "The hash of the data to be validated.",
|
|
16750
16767
|
signature: "A signature that can validate the previous parameter (Hash)."
|
|
@@ -16754,7 +16771,7 @@ const FunctionSelectors = {
|
|
|
16754
16771
|
}
|
|
16755
16772
|
},
|
|
16756
16773
|
userdoc: {
|
|
16757
|
-
notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
|
|
16774
|
+
notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
|
|
16758
16775
|
}
|
|
16759
16776
|
},
|
|
16760
16777
|
/**
|
|
@@ -16784,7 +16801,7 @@ const FunctionSelectors = {
|
|
|
16784
16801
|
stateMutability: "view",
|
|
16785
16802
|
type: "function",
|
|
16786
16803
|
devdoc: {
|
|
16787
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
16804
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
16788
16805
|
}
|
|
16789
16806
|
},
|
|
16790
16807
|
/**
|
|
@@ -16800,7 +16817,8 @@ const FunctionSelectors = {
|
|
|
16800
16817
|
stateMutability: "nonpayable",
|
|
16801
16818
|
type: "function",
|
|
16802
16819
|
devdoc: {
|
|
16803
|
-
|
|
16820
|
+
"custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
|
|
16821
|
+
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 is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
|
|
16804
16822
|
},
|
|
16805
16823
|
userdoc: {
|
|
16806
16824
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
|
|
@@ -16825,10 +16843,12 @@ const FunctionSelectors = {
|
|
|
16825
16843
|
stateMutability: "payable",
|
|
16826
16844
|
type: "function",
|
|
16827
16845
|
devdoc: {
|
|
16846
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
|
|
16847
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
16828
16848
|
details: "Sets singular data for a given `dataKey`",
|
|
16829
16849
|
params: {
|
|
16830
16850
|
dataKey: "The key to retrieve stored value",
|
|
16831
|
-
dataValue: "The value to set
|
|
16851
|
+
dataValue: "The value to set"
|
|
16832
16852
|
}
|
|
16833
16853
|
}
|
|
16834
16854
|
},
|
|
@@ -16851,10 +16871,12 @@ const FunctionSelectors = {
|
|
|
16851
16871
|
stateMutability: "payable",
|
|
16852
16872
|
type: "function",
|
|
16853
16873
|
devdoc: {
|
|
16874
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
|
|
16875
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
16854
16876
|
details: "Sets array of data for multiple given `dataKeys`",
|
|
16855
16877
|
params: {
|
|
16856
16878
|
dataKeys: "The array of data keys for values to set",
|
|
16857
|
-
dataValues: "The array of values to set
|
|
16879
|
+
dataValues: "The array of values to set"
|
|
16858
16880
|
}
|
|
16859
16881
|
}
|
|
16860
16882
|
},
|
|
@@ -16881,7 +16903,7 @@ const FunctionSelectors = {
|
|
|
16881
16903
|
},
|
|
16882
16904
|
/**
|
|
16883
16905
|
* function transferOwnership(
|
|
16884
|
-
* address
|
|
16906
|
+
* address pendingNewOwner
|
|
16885
16907
|
* )
|
|
16886
16908
|
*
|
|
16887
16909
|
* 0xf2fde38b = keccak256('transferOwnership(address)')
|
|
@@ -16889,17 +16911,16 @@ const FunctionSelectors = {
|
|
|
16889
16911
|
"0xf2fde38b": {
|
|
16890
16912
|
sig: "transferOwnership(address)",
|
|
16891
16913
|
inputs: [
|
|
16892
|
-
{ internalType: "address", name: "
|
|
16914
|
+
{ internalType: "address", name: "pendingNewOwner", type: "address" }
|
|
16893
16915
|
],
|
|
16894
16916
|
name: "transferOwnership",
|
|
16895
16917
|
outputs: [],
|
|
16896
16918
|
stateMutability: "nonpayable",
|
|
16897
16919
|
type: "function",
|
|
16898
16920
|
devdoc: {
|
|
16899
|
-
|
|
16900
|
-
|
|
16901
|
-
|
|
16902
|
-
}
|
|
16921
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
|
|
16922
|
+
details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
|
|
16923
|
+
params: { pendingNewOwner: "The address of the new pending owner." }
|
|
16903
16924
|
},
|
|
16904
16925
|
userdoc: {
|
|
16905
16926
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -16926,7 +16947,8 @@ const FunctionSelectors = {
|
|
|
16926
16947
|
stateMutability: "payable",
|
|
16927
16948
|
type: "function",
|
|
16928
16949
|
devdoc: {
|
|
16929
|
-
|
|
16950
|
+
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
|
|
16951
|
+
details: "The function performs the following steps: 1. Query the ERC725Y 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 ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-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.",
|
|
16930
16952
|
params: {
|
|
16931
16953
|
receivedData: "The data received.",
|
|
16932
16954
|
typeId: "The type of call received."
|
|
@@ -16936,7 +16958,7 @@ const FunctionSelectors = {
|
|
|
16936
16958
|
}
|
|
16937
16959
|
},
|
|
16938
16960
|
userdoc: {
|
|
16939
|
-
notice: "Achieves the goal of LSP1-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 (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
|
|
16961
|
+
notice: "Achieves the goal of [LSP1-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 (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
|
|
16940
16962
|
}
|
|
16941
16963
|
}
|
|
16942
16964
|
},
|
|
@@ -16980,7 +17002,8 @@ const FunctionSelectors = {
|
|
|
16980
17002
|
stateMutability: "nonpayable",
|
|
16981
17003
|
type: "function",
|
|
16982
17004
|
devdoc: {
|
|
16983
|
-
|
|
17005
|
+
"custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
|
|
17006
|
+
details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
|
|
16984
17007
|
},
|
|
16985
17008
|
userdoc: {
|
|
16986
17009
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -17033,11 +17056,13 @@ const FunctionSelectors = {
|
|
|
17033
17056
|
stateMutability: "payable",
|
|
17034
17057
|
type: "function",
|
|
17035
17058
|
devdoc: {
|
|
17059
|
+
"custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
|
|
17060
|
+
"custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
17036
17061
|
details: "Executes any call on other addresses.",
|
|
17037
17062
|
params: {
|
|
17038
|
-
data: "The call data to execute on `target`, or the bytecode of the contract to deploy
|
|
17039
|
-
operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
|
|
17040
|
-
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (
|
|
17063
|
+
data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
|
|
17064
|
+
operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
17065
|
+
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
17041
17066
|
value: "The amount of native tokens to transfer (in Wei)."
|
|
17042
17067
|
}
|
|
17043
17068
|
}
|
|
@@ -17069,12 +17094,14 @@ const FunctionSelectors = {
|
|
|
17069
17094
|
stateMutability: "payable",
|
|
17070
17095
|
type: "function",
|
|
17071
17096
|
devdoc: {
|
|
17097
|
+
"custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
|
|
17098
|
+
"custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
17072
17099
|
details: "Generic batch executor function that executes any call on other addresses",
|
|
17073
17100
|
params: {
|
|
17074
|
-
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy
|
|
17075
|
-
operationsType: "The list of operations type used: CALL = 0
|
|
17076
|
-
targets: "The list of addresses to call. `targets` will be unused if a contract is created (
|
|
17077
|
-
values: "The list of native token amounts to transfer (in Wei)"
|
|
17101
|
+
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
|
|
17102
|
+
operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
17103
|
+
targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
17104
|
+
values: "The list of native token amounts to transfer (in Wei)."
|
|
17078
17105
|
}
|
|
17079
17106
|
}
|
|
17080
17107
|
},
|
|
@@ -17124,22 +17151,25 @@ const FunctionSelectors = {
|
|
|
17124
17151
|
},
|
|
17125
17152
|
/**
|
|
17126
17153
|
* function initialize(
|
|
17127
|
-
* address
|
|
17154
|
+
* address initialOwner
|
|
17128
17155
|
* )
|
|
17129
17156
|
*
|
|
17130
17157
|
* 0xc4d66de8 = keccak256('initialize(address)')
|
|
17131
17158
|
*/
|
|
17132
17159
|
"0xc4d66de8": {
|
|
17133
17160
|
sig: "initialize(address)",
|
|
17134
|
-
inputs: [
|
|
17161
|
+
inputs: [
|
|
17162
|
+
{ internalType: "address", name: "initialOwner", type: "address" }
|
|
17163
|
+
],
|
|
17135
17164
|
name: "initialize",
|
|
17136
17165
|
outputs: [],
|
|
17137
17166
|
stateMutability: "payable",
|
|
17138
17167
|
type: "function",
|
|
17139
17168
|
devdoc: {
|
|
17140
|
-
details: "
|
|
17141
|
-
params: {
|
|
17142
|
-
}
|
|
17169
|
+
details: "Set `initialOwner` as the contract owner. 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. Emitted Events: - ValueReceived: when the contract is funded on initialization.",
|
|
17170
|
+
params: { initialOwner: "the owner of the contract" }
|
|
17171
|
+
},
|
|
17172
|
+
userdoc: { notice: "Initializing the contract owner to: `initialOwner`" }
|
|
17143
17173
|
},
|
|
17144
17174
|
/**
|
|
17145
17175
|
* function isValidSignature(
|
|
@@ -17160,7 +17190,7 @@ const FunctionSelectors = {
|
|
|
17160
17190
|
stateMutability: "view",
|
|
17161
17191
|
type: "function",
|
|
17162
17192
|
devdoc: {
|
|
17163
|
-
details: "Handles two cases:
|
|
17193
|
+
details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue 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 fail value 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 fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
|
|
17164
17194
|
params: {
|
|
17165
17195
|
dataHash: "The hash of the data to be validated.",
|
|
17166
17196
|
signature: "A signature that can validate the previous parameter (Hash)."
|
|
@@ -17170,7 +17200,7 @@ const FunctionSelectors = {
|
|
|
17170
17200
|
}
|
|
17171
17201
|
},
|
|
17172
17202
|
userdoc: {
|
|
17173
|
-
notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
|
|
17203
|
+
notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
|
|
17174
17204
|
}
|
|
17175
17205
|
},
|
|
17176
17206
|
/**
|
|
@@ -17200,7 +17230,7 @@ const FunctionSelectors = {
|
|
|
17200
17230
|
stateMutability: "view",
|
|
17201
17231
|
type: "function",
|
|
17202
17232
|
devdoc: {
|
|
17203
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
17233
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
17204
17234
|
}
|
|
17205
17235
|
},
|
|
17206
17236
|
/**
|
|
@@ -17216,7 +17246,8 @@ const FunctionSelectors = {
|
|
|
17216
17246
|
stateMutability: "nonpayable",
|
|
17217
17247
|
type: "function",
|
|
17218
17248
|
devdoc: {
|
|
17219
|
-
|
|
17249
|
+
"custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
|
|
17250
|
+
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 is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
|
|
17220
17251
|
},
|
|
17221
17252
|
userdoc: {
|
|
17222
17253
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
|
|
@@ -17241,10 +17272,12 @@ const FunctionSelectors = {
|
|
|
17241
17272
|
stateMutability: "payable",
|
|
17242
17273
|
type: "function",
|
|
17243
17274
|
devdoc: {
|
|
17275
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
|
|
17276
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
17244
17277
|
details: "Sets singular data for a given `dataKey`",
|
|
17245
17278
|
params: {
|
|
17246
17279
|
dataKey: "The key to retrieve stored value",
|
|
17247
|
-
dataValue: "The value to set
|
|
17280
|
+
dataValue: "The value to set"
|
|
17248
17281
|
}
|
|
17249
17282
|
}
|
|
17250
17283
|
},
|
|
@@ -17267,10 +17300,12 @@ const FunctionSelectors = {
|
|
|
17267
17300
|
stateMutability: "payable",
|
|
17268
17301
|
type: "function",
|
|
17269
17302
|
devdoc: {
|
|
17303
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
|
|
17304
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
17270
17305
|
details: "Sets array of data for multiple given `dataKeys`",
|
|
17271
17306
|
params: {
|
|
17272
17307
|
dataKeys: "The array of data keys for values to set",
|
|
17273
|
-
dataValues: "The array of values to set
|
|
17308
|
+
dataValues: "The array of values to set"
|
|
17274
17309
|
}
|
|
17275
17310
|
}
|
|
17276
17311
|
},
|
|
@@ -17297,7 +17332,7 @@ const FunctionSelectors = {
|
|
|
17297
17332
|
},
|
|
17298
17333
|
/**
|
|
17299
17334
|
* function transferOwnership(
|
|
17300
|
-
* address
|
|
17335
|
+
* address pendingNewOwner
|
|
17301
17336
|
* )
|
|
17302
17337
|
*
|
|
17303
17338
|
* 0xf2fde38b = keccak256('transferOwnership(address)')
|
|
@@ -17305,17 +17340,16 @@ const FunctionSelectors = {
|
|
|
17305
17340
|
"0xf2fde38b": {
|
|
17306
17341
|
sig: "transferOwnership(address)",
|
|
17307
17342
|
inputs: [
|
|
17308
|
-
{ internalType: "address", name: "
|
|
17343
|
+
{ internalType: "address", name: "pendingNewOwner", type: "address" }
|
|
17309
17344
|
],
|
|
17310
17345
|
name: "transferOwnership",
|
|
17311
17346
|
outputs: [],
|
|
17312
17347
|
stateMutability: "nonpayable",
|
|
17313
17348
|
type: "function",
|
|
17314
17349
|
devdoc: {
|
|
17315
|
-
|
|
17316
|
-
|
|
17317
|
-
|
|
17318
|
-
}
|
|
17350
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
|
|
17351
|
+
details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
|
|
17352
|
+
params: { pendingNewOwner: "The address of the new pending owner." }
|
|
17319
17353
|
},
|
|
17320
17354
|
userdoc: {
|
|
17321
17355
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -17342,7 +17376,8 @@ const FunctionSelectors = {
|
|
|
17342
17376
|
stateMutability: "payable",
|
|
17343
17377
|
type: "function",
|
|
17344
17378
|
devdoc: {
|
|
17345
|
-
|
|
17379
|
+
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
|
|
17380
|
+
details: "The function performs the following steps: 1. Query the ERC725Y 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 ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-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.",
|
|
17346
17381
|
params: {
|
|
17347
17382
|
receivedData: "The data received.",
|
|
17348
17383
|
typeId: "The type of call received."
|
|
@@ -17352,7 +17387,7 @@ const FunctionSelectors = {
|
|
|
17352
17387
|
}
|
|
17353
17388
|
},
|
|
17354
17389
|
userdoc: {
|
|
17355
|
-
notice: "Achieves the goal of LSP1-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 (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
|
|
17390
|
+
notice: "Achieves the goal of [LSP1-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 (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
|
|
17356
17391
|
}
|
|
17357
17392
|
}
|
|
17358
17393
|
},
|
|
@@ -18046,55 +18081,75 @@ const FunctionSelectors = {
|
|
|
18046
18081
|
},
|
|
18047
18082
|
LSP16UniversalFactory: {
|
|
18048
18083
|
/**
|
|
18049
|
-
* function
|
|
18084
|
+
* function computeAddress(
|
|
18050
18085
|
* bytes32 byteCodeHash,
|
|
18051
18086
|
* bytes32 providedSalt,
|
|
18052
18087
|
* bool initializable,
|
|
18053
|
-
* bytes
|
|
18088
|
+
* bytes initializeCalldata
|
|
18054
18089
|
* )
|
|
18055
18090
|
*
|
|
18056
|
-
*
|
|
18091
|
+
* 0x3b315680 = keccak256('computeAddress(bytes32,bytes32,bool,bytes)')
|
|
18057
18092
|
*/
|
|
18058
|
-
"
|
|
18059
|
-
sig: "
|
|
18093
|
+
"0x3b315680": {
|
|
18094
|
+
sig: "computeAddress(bytes32,bytes32,bool,bytes)",
|
|
18060
18095
|
inputs: [
|
|
18061
18096
|
{ internalType: "bytes32", name: "byteCodeHash", type: "bytes32" },
|
|
18062
18097
|
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" },
|
|
18063
18098
|
{ internalType: "bool", name: "initializable", type: "bool" },
|
|
18064
|
-
{ internalType: "bytes", name: "
|
|
18099
|
+
{ internalType: "bytes", name: "initializeCalldata", type: "bytes" }
|
|
18065
18100
|
],
|
|
18066
|
-
name: "
|
|
18101
|
+
name: "computeAddress",
|
|
18067
18102
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
18068
18103
|
stateMutability: "view",
|
|
18069
18104
|
type: "function",
|
|
18070
18105
|
devdoc: {
|
|
18071
|
-
details: "
|
|
18106
|
+
details: "Computes the address of a contract to be deployed using CREATE2, based on the input parameters. Any change in one of these parameters will result in a different address. When the `initializable` boolean is set to `false`, `initializeCalldata` will not affect the function output.",
|
|
18107
|
+
params: {
|
|
18108
|
+
byteCodeHash: "The keccak256 hash of the bytecode to be deployed",
|
|
18109
|
+
initializable: "A boolean that indicates whether an external call should be made to initialize the contract after deployment",
|
|
18110
|
+
initializeCalldata: "The calldata to be executed on the created contract if `initializable` is set to `true`",
|
|
18111
|
+
providedSalt: "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
18112
|
+
},
|
|
18113
|
+
returns: { _0: "The address where the contract will be deployed" }
|
|
18072
18114
|
}
|
|
18073
18115
|
},
|
|
18074
18116
|
/**
|
|
18075
|
-
* function
|
|
18076
|
-
* address
|
|
18117
|
+
* function computeERC1167Address(
|
|
18118
|
+
* address implementationContract,
|
|
18077
18119
|
* bytes32 providedSalt,
|
|
18078
18120
|
* bool initializable,
|
|
18079
|
-
* bytes
|
|
18121
|
+
* bytes initializeCalldata
|
|
18080
18122
|
* )
|
|
18081
18123
|
*
|
|
18082
|
-
*
|
|
18124
|
+
* 0xe888edcb = keccak256('computeERC1167Address(address,bytes32,bool,bytes)')
|
|
18083
18125
|
*/
|
|
18084
|
-
"
|
|
18085
|
-
sig: "
|
|
18126
|
+
"0xe888edcb": {
|
|
18127
|
+
sig: "computeERC1167Address(address,bytes32,bool,bytes)",
|
|
18086
18128
|
inputs: [
|
|
18087
|
-
{
|
|
18129
|
+
{
|
|
18130
|
+
internalType: "address",
|
|
18131
|
+
name: "implementationContract",
|
|
18132
|
+
type: "address"
|
|
18133
|
+
},
|
|
18088
18134
|
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" },
|
|
18089
18135
|
{ internalType: "bool", name: "initializable", type: "bool" },
|
|
18090
|
-
{ internalType: "bytes", name: "
|
|
18136
|
+
{ internalType: "bytes", name: "initializeCalldata", type: "bytes" }
|
|
18091
18137
|
],
|
|
18092
|
-
name: "
|
|
18138
|
+
name: "computeERC1167Address",
|
|
18093
18139
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
18094
18140
|
stateMutability: "view",
|
|
18095
18141
|
type: "function",
|
|
18096
18142
|
devdoc: {
|
|
18097
|
-
details: "
|
|
18143
|
+
details: "Computes the address of an ERC1167 proxy contract based on the input parameters. Any change in one of these parameters will result in a different address. When the `initializable` boolean is set to `false`, `initializeCalldata` will not affect the function output.",
|
|
18144
|
+
params: {
|
|
18145
|
+
implementationContract: "The contract to create a clone of according to ERC1167",
|
|
18146
|
+
initializable: "A boolean that indicates whether an external call should be made to initialize the proxy contract after deployment",
|
|
18147
|
+
initializeCalldata: "The calldata to be executed on the created contract if `initializable` is set to `true`",
|
|
18148
|
+
providedSalt: "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
18149
|
+
},
|
|
18150
|
+
returns: {
|
|
18151
|
+
_0: "The address where the ERC1167 proxy contract will be deployed"
|
|
18152
|
+
}
|
|
18098
18153
|
}
|
|
18099
18154
|
},
|
|
18100
18155
|
/**
|
|
@@ -18116,11 +18171,16 @@ const FunctionSelectors = {
|
|
|
18116
18171
|
stateMutability: "payable",
|
|
18117
18172
|
type: "function",
|
|
18118
18173
|
devdoc: {
|
|
18119
|
-
details: "Deploys a contract using
|
|
18174
|
+
details: "Deploys a contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeAddress} function. This function deploys contracts without initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(false, providedSalt))`. See {generateSalt} function for more details. Using the same `byteCode` and `providedSalt` multiple times will revert, as the contract cannot be deployed twice at the same address. If the constructor of the contract to deploy is payable, value can be sent to this function to fund the created contract. However, sending value to this function while the constructor is not payable will result in a revert.",
|
|
18175
|
+
params: {
|
|
18176
|
+
byteCode: "The bytecode of the contract to be deployed",
|
|
18177
|
+
providedSalt: "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
18178
|
+
},
|
|
18179
|
+
returns: { _0: "The address of the deployed contract" }
|
|
18120
18180
|
}
|
|
18121
18181
|
},
|
|
18122
18182
|
/**
|
|
18123
|
-
* function
|
|
18183
|
+
* function deployCreate2AndInitialize(
|
|
18124
18184
|
* bytes byteCode,
|
|
18125
18185
|
* bytes32 providedSalt,
|
|
18126
18186
|
* bytes initializeCalldata,
|
|
@@ -18128,10 +18188,10 @@ const FunctionSelectors = {
|
|
|
18128
18188
|
* uint256 initializeCalldataMsgValue
|
|
18129
18189
|
* )
|
|
18130
18190
|
*
|
|
18131
|
-
*
|
|
18191
|
+
* 0xcdbd473a = keccak256('deployCreate2AndInitialize(bytes,bytes32,bytes,uint256,uint256)')
|
|
18132
18192
|
*/
|
|
18133
|
-
"
|
|
18134
|
-
sig: "
|
|
18193
|
+
"0xcdbd473a": {
|
|
18194
|
+
sig: "deployCreate2AndInitialize(bytes,bytes32,bytes,uint256,uint256)",
|
|
18135
18195
|
inputs: [
|
|
18136
18196
|
{ internalType: "bytes", name: "byteCode", type: "bytes" },
|
|
18137
18197
|
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" },
|
|
@@ -18147,82 +18207,117 @@ const FunctionSelectors = {
|
|
|
18147
18207
|
type: "uint256"
|
|
18148
18208
|
}
|
|
18149
18209
|
],
|
|
18150
|
-
name: "
|
|
18210
|
+
name: "deployCreate2AndInitialize",
|
|
18151
18211
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
18152
18212
|
stateMutability: "payable",
|
|
18153
18213
|
type: "function",
|
|
18154
18214
|
devdoc: {
|
|
18155
|
-
details: "Deploys a contract using
|
|
18215
|
+
details: "Deploys a contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeAddress} function. This function deploys contracts with initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(true, initializeCalldata, providedSalt))`. See {generateSalt} function for more details. Using the same `byteCode`, `providedSalt` and `initializeCalldata` multiple times will revert, as the contract cannot be deployed twice at the same address. If the constructor or the initialize function of the contract to deploy is payable, value can be sent along with the deployment/initialization to fund the created contract. However, sending value to this function while the constructor/initialize function is not payable will result in a revert. Will revert if the `msg.value` sent to the function is not equal to the sum of `constructorMsgValue` and `initializeCalldataMsgValue`.",
|
|
18216
|
+
params: {
|
|
18217
|
+
byteCode: "The bytecode of the contract to be deployed",
|
|
18218
|
+
constructorMsgValue: "The value sent to the contract during deployment",
|
|
18219
|
+
initializeCalldata: "The calldata to be executed on the created contract",
|
|
18220
|
+
initializeCalldataMsgValue: "The value sent to the contract during initialization",
|
|
18221
|
+
providedSalt: "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
18222
|
+
},
|
|
18223
|
+
returns: { _0: "The address of the deployed contract" }
|
|
18156
18224
|
}
|
|
18157
18225
|
},
|
|
18158
18226
|
/**
|
|
18159
|
-
* function
|
|
18160
|
-
* address
|
|
18227
|
+
* function deployERC1167Proxy(
|
|
18228
|
+
* address implementationContract,
|
|
18161
18229
|
* bytes32 providedSalt
|
|
18162
18230
|
* )
|
|
18163
18231
|
*
|
|
18164
|
-
*
|
|
18232
|
+
* 0x49d8abed = keccak256('deployERC1167Proxy(address,bytes32)')
|
|
18165
18233
|
*/
|
|
18166
|
-
"
|
|
18167
|
-
sig: "
|
|
18234
|
+
"0x49d8abed": {
|
|
18235
|
+
sig: "deployERC1167Proxy(address,bytes32)",
|
|
18168
18236
|
inputs: [
|
|
18169
|
-
{
|
|
18237
|
+
{
|
|
18238
|
+
internalType: "address",
|
|
18239
|
+
name: "implementationContract",
|
|
18240
|
+
type: "address"
|
|
18241
|
+
},
|
|
18170
18242
|
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" }
|
|
18171
18243
|
],
|
|
18172
|
-
name: "
|
|
18244
|
+
name: "deployERC1167Proxy",
|
|
18173
18245
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
18174
18246
|
stateMutability: "nonpayable",
|
|
18175
18247
|
type: "function",
|
|
18176
18248
|
devdoc: {
|
|
18177
|
-
details: "Deploys
|
|
18249
|
+
details: "Deploys an ERC1167 minimal proxy contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeERC1167Address} function. This function deploys contracts without initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(false, providedSalt))`. See {generateSalt} function for more details. See {generateSalt} function for more details. Using the same `implementationContract` and `providedSalt` multiple times will revert, as the contract cannot be deployed twice at the same address. Sending value to the contract created is not possible since the constructor of the ERC1167 minimal proxy is not payable.",
|
|
18250
|
+
params: {
|
|
18251
|
+
implementationContract: "The contract address to use as the base implementation behind the proxy that will be deployed",
|
|
18252
|
+
providedSalt: "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
18253
|
+
},
|
|
18254
|
+
returns: { _0: "The address of the minimal proxy deployed" }
|
|
18178
18255
|
}
|
|
18179
18256
|
},
|
|
18180
18257
|
/**
|
|
18181
|
-
* function
|
|
18182
|
-
* address
|
|
18258
|
+
* function deployERC1167ProxyAndInitialize(
|
|
18259
|
+
* address implementationContract,
|
|
18183
18260
|
* bytes32 providedSalt,
|
|
18184
18261
|
* bytes initializeCalldata
|
|
18185
18262
|
* )
|
|
18186
18263
|
*
|
|
18187
|
-
*
|
|
18264
|
+
* 0x5340165f = keccak256('deployERC1167ProxyAndInitialize(address,bytes32,bytes)')
|
|
18188
18265
|
*/
|
|
18189
|
-
"
|
|
18190
|
-
sig: "
|
|
18266
|
+
"0x5340165f": {
|
|
18267
|
+
sig: "deployERC1167ProxyAndInitialize(address,bytes32,bytes)",
|
|
18191
18268
|
inputs: [
|
|
18192
|
-
{
|
|
18269
|
+
{
|
|
18270
|
+
internalType: "address",
|
|
18271
|
+
name: "implementationContract",
|
|
18272
|
+
type: "address"
|
|
18273
|
+
},
|
|
18193
18274
|
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" },
|
|
18194
18275
|
{ internalType: "bytes", name: "initializeCalldata", type: "bytes" }
|
|
18195
18276
|
],
|
|
18196
|
-
name: "
|
|
18277
|
+
name: "deployERC1167ProxyAndInitialize",
|
|
18197
18278
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
18198
18279
|
stateMutability: "payable",
|
|
18199
18280
|
type: "function",
|
|
18200
18281
|
devdoc: {
|
|
18201
|
-
details: "Deploys
|
|
18282
|
+
details: "Deploys an ERC1167 minimal proxy contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeERC1167Address} function. This function deploys contracts with initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(true, initializeCalldata, providedSalt))`. See {generateSalt} function for more details. Using the same `implementationContract`, `providedSalt` and `initializeCalldata` multiple times will revert, as the contract cannot be deployed twice at the same address. If the initialize function of the contract to deploy is payable, value can be sent along to fund the created contract while initializing. However, sending value to this function while the initialize function is not payable will result in a revert.",
|
|
18283
|
+
params: {
|
|
18284
|
+
implementationContract: "The contract address to use as the base implementation behind the proxy that will be deployed",
|
|
18285
|
+
initializeCalldata: "The calldata to be executed on the created contract",
|
|
18286
|
+
providedSalt: "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
18287
|
+
},
|
|
18288
|
+
returns: { _0: "The address of the minimal proxy deployed" }
|
|
18202
18289
|
}
|
|
18203
18290
|
},
|
|
18204
18291
|
/**
|
|
18205
18292
|
* function generateSalt(
|
|
18293
|
+
* bytes32 providedSalt,
|
|
18206
18294
|
* bool initializable,
|
|
18207
|
-
* bytes
|
|
18208
|
-
* bytes32 providedSalt
|
|
18295
|
+
* bytes initializeCalldata
|
|
18209
18296
|
* )
|
|
18210
18297
|
*
|
|
18211
|
-
*
|
|
18298
|
+
* 0x1a17ccbf = keccak256('generateSalt(bytes32,bool,bytes)')
|
|
18212
18299
|
*/
|
|
18213
|
-
"
|
|
18214
|
-
sig: "generateSalt(bool,bytes
|
|
18300
|
+
"0x1a17ccbf": {
|
|
18301
|
+
sig: "generateSalt(bytes32,bool,bytes)",
|
|
18215
18302
|
inputs: [
|
|
18303
|
+
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" },
|
|
18216
18304
|
{ internalType: "bool", name: "initializable", type: "bool" },
|
|
18217
|
-
{ internalType: "bytes", name: "
|
|
18218
|
-
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" }
|
|
18305
|
+
{ internalType: "bytes", name: "initializeCalldata", type: "bytes" }
|
|
18219
18306
|
],
|
|
18220
18307
|
name: "generateSalt",
|
|
18221
18308
|
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
18222
18309
|
stateMutability: "pure",
|
|
18223
18310
|
type: "function",
|
|
18224
18311
|
devdoc: {
|
|
18225
|
-
details: "
|
|
18312
|
+
details: "Generates the salt used to deploy the contract by hashing the following parameters (concatenated together) with keccak256: - the `providedSalt` - the `initializable` boolean - the `initializeCalldata`, only if the contract is initializable (the `initializable` boolean is set to `true`) The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is used along with these parameters: - `initializable` boolean - `initializeCalldata` (when the contract is initializable and `initializable` is set to `true`). These three parameters are concatenated together and hashed to generate the final salt for CREATE2. This approach ensures that in order to reproduce an initializable contract at the same address on another chain, not only the `providedSalt` is required to be the same, but also the initialize parameters within the `initializeCalldata` must also be the same. This maintains consistent deployment behaviour. Users are required to initialize contracts with the same parameters across different chains to ensure contracts are deployed at the same address across different chains. ----------- Example (for initializable contracts) For an existing contract A on chain 1 owned by X, to replicate the same contract at the same address with the same owner X on chain 2, the salt used to generate the address should include the initializeCalldata that assigns X as the owner of contract A. For instance, if another user, Y, tries to deploy the contract at the same address on chain 2 using the same providedSalt, but with a different initializeCalldata to make Y the owner instead of X, the generated address would be different, preventing Y from deploying the contract with different ownership at the same address. ----------- However, for non-initializable contracts, if the constructor has arguments that specify the deployment behavior, they will be included in the bytecode. Any change in the constructor arguments will lead to a different contract's bytecode which will result in a different address on other chains. ----------- Example (for non-initializable contracts) If a contract is deployed with specific constructor arguments on chain 1, these arguments are embedded within the bytecode. For instance, if contract B is deployed with a specific `tokenName` and `tokenSymbol` on chain 1, and a user wants to deploy the same contract with the same `tokenName` and `tokenSymbol` on chain 2, they must use the same constructor arguments to produce the same bytecode. This ensures that the same deployment behaviour is maintained across different chains, as long as the same bytecode is used. If another user Z, tries to deploy the same contract B at the same address on chain 2 using the same `providedSalt` but different constructor arguments (a different `tokenName` and/or `tokenSymbol`), the generated address will be different. This prevents user Z from deploying the contract with different constructor arguments at the same address on chain 2. ----------- The providedSalt was hashed to produce the salt used by CREATE2 opcode to prevent users from deploying initializable contracts using non-initializable functions such as {deployCreate2} without having the initialization call. In other words, if the providedSalt was not hashed and was used as it is as the salt by the CREATE2 opcode, malicious users can check the generated salt used for the already deployed initializable contract on chain 1, and deploy the contract from {deployCreate2} function on chain 2, with passing the generated salt of the deployed contract as providedSalt that will produce the same address but without the initialization, where the malicious user can initialize after.",
|
|
18313
|
+
params: {
|
|
18314
|
+
initializable: "The Boolean that specifies if the contract must be initialized or not",
|
|
18315
|
+
initializeCalldata: "The calldata to be executed on the created contract if `initializable` is set to `true`",
|
|
18316
|
+
providedSalt: "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
18317
|
+
},
|
|
18318
|
+
returns: {
|
|
18319
|
+
_0: "The generated salt which will be used for CREATE2 deployment"
|
|
18320
|
+
}
|
|
18226
18321
|
}
|
|
18227
18322
|
}
|
|
18228
18323
|
},
|
|
@@ -29850,7 +29945,7 @@ const FunctionSelectors = {
|
|
|
29850
29945
|
stateMutability: "view",
|
|
29851
29946
|
type: "function",
|
|
29852
29947
|
devdoc: {
|
|
29853
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
29948
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
29854
29949
|
}
|
|
29855
29950
|
},
|
|
29856
29951
|
/**
|
|
@@ -29866,7 +29961,7 @@ const FunctionSelectors = {
|
|
|
29866
29961
|
stateMutability: "nonpayable",
|
|
29867
29962
|
type: "function",
|
|
29868
29963
|
devdoc: {
|
|
29869
|
-
details: "Renounce ownership of the contract in a
|
|
29964
|
+
details: "Renounce ownership of the contract in a two step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner."
|
|
29870
29965
|
}
|
|
29871
29966
|
},
|
|
29872
29967
|
/**
|
|
@@ -29956,9 +30051,7 @@ const FunctionSelectors = {
|
|
|
29956
30051
|
type: "function",
|
|
29957
30052
|
devdoc: {
|
|
29958
30053
|
details: "same as ILSP14.transferOwnership with the additional requirement: Requirements: - when notifying the new owner via LSP1, the typeId used MUST be keccak256('LSP9OwnershipTransferStarted')",
|
|
29959
|
-
params: {
|
|
29960
|
-
newOwner: "the address of the new owner. Requirements: - `newOwner` MUST NOT accept ownership of the contract in the same transaction."
|
|
29961
|
-
}
|
|
30054
|
+
params: { newOwner: "the address of the new owner." }
|
|
29962
30055
|
}
|
|
29963
30056
|
},
|
|
29964
30057
|
/**
|
|
@@ -30212,7 +30305,7 @@ const FunctionSelectors = {
|
|
|
30212
30305
|
stateMutability: "view",
|
|
30213
30306
|
type: "function",
|
|
30214
30307
|
devdoc: {
|
|
30215
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
30308
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
30216
30309
|
}
|
|
30217
30310
|
},
|
|
30218
30311
|
/**
|
|
@@ -30228,7 +30321,7 @@ const FunctionSelectors = {
|
|
|
30228
30321
|
stateMutability: "nonpayable",
|
|
30229
30322
|
type: "function",
|
|
30230
30323
|
devdoc: {
|
|
30231
|
-
details: "Renounce ownership of the contract in a
|
|
30324
|
+
details: "Renounce ownership of the contract in a two step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner."
|
|
30232
30325
|
}
|
|
30233
30326
|
},
|
|
30234
30327
|
/**
|
|
@@ -30318,9 +30411,7 @@ const FunctionSelectors = {
|
|
|
30318
30411
|
type: "function",
|
|
30319
30412
|
devdoc: {
|
|
30320
30413
|
details: "same as ILSP14.transferOwnership with the additional requirement: Requirements: - when notifying the new owner via LSP1, the typeId used MUST be keccak256('LSP9OwnershipTransferStarted')",
|
|
30321
|
-
params: {
|
|
30322
|
-
newOwner: "the address of the new owner. Requirements: - `newOwner` MUST NOT accept ownership of the contract in the same transaction."
|
|
30323
|
-
}
|
|
30414
|
+
params: { newOwner: "the address of the new owner." }
|
|
30324
30415
|
}
|
|
30325
30416
|
},
|
|
30326
30417
|
/**
|
|
@@ -30552,7 +30643,8 @@ const FunctionSelectors = {
|
|
|
30552
30643
|
stateMutability: "nonpayable",
|
|
30553
30644
|
type: "function",
|
|
30554
30645
|
devdoc: {
|
|
30555
|
-
|
|
30646
|
+
"custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
|
|
30647
|
+
details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
|
|
30556
30648
|
},
|
|
30557
30649
|
userdoc: {
|
|
30558
30650
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -30605,11 +30697,13 @@ const FunctionSelectors = {
|
|
|
30605
30697
|
stateMutability: "payable",
|
|
30606
30698
|
type: "function",
|
|
30607
30699
|
devdoc: {
|
|
30700
|
+
"custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
|
|
30701
|
+
"custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
30608
30702
|
details: "Executes any call on other addresses.",
|
|
30609
30703
|
params: {
|
|
30610
|
-
data: "The call data to execute on `target`, or the bytecode of the contract to deploy
|
|
30611
|
-
operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
|
|
30612
|
-
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (
|
|
30704
|
+
data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
|
|
30705
|
+
operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
30706
|
+
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
30613
30707
|
value: "The amount of native tokens to transfer (in Wei)."
|
|
30614
30708
|
}
|
|
30615
30709
|
}
|
|
@@ -30641,12 +30735,14 @@ const FunctionSelectors = {
|
|
|
30641
30735
|
stateMutability: "payable",
|
|
30642
30736
|
type: "function",
|
|
30643
30737
|
devdoc: {
|
|
30738
|
+
"custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
|
|
30739
|
+
"custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
30644
30740
|
details: "Generic batch executor function that executes any call on other addresses",
|
|
30645
30741
|
params: {
|
|
30646
|
-
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy
|
|
30647
|
-
operationsType: "The list of operations type used: CALL = 0
|
|
30648
|
-
targets: "The list of addresses to call. `targets` will be unused if a contract is created (
|
|
30649
|
-
values: "The list of native token amounts to transfer (in Wei)"
|
|
30742
|
+
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
|
|
30743
|
+
operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
30744
|
+
targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
30745
|
+
values: "The list of native token amounts to transfer (in Wei)."
|
|
30650
30746
|
}
|
|
30651
30747
|
}
|
|
30652
30748
|
},
|
|
@@ -30713,7 +30809,7 @@ const FunctionSelectors = {
|
|
|
30713
30809
|
stateMutability: "view",
|
|
30714
30810
|
type: "function",
|
|
30715
30811
|
devdoc: {
|
|
30716
|
-
details: "Handles two cases:
|
|
30812
|
+
details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue 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 fail value 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 fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
|
|
30717
30813
|
params: {
|
|
30718
30814
|
dataHash: "The hash of the data to be validated.",
|
|
30719
30815
|
signature: "A signature that can validate the previous parameter (Hash)."
|
|
@@ -30723,7 +30819,7 @@ const FunctionSelectors = {
|
|
|
30723
30819
|
}
|
|
30724
30820
|
},
|
|
30725
30821
|
userdoc: {
|
|
30726
|
-
notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
|
|
30822
|
+
notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
|
|
30727
30823
|
}
|
|
30728
30824
|
},
|
|
30729
30825
|
/**
|
|
@@ -30753,7 +30849,7 @@ const FunctionSelectors = {
|
|
|
30753
30849
|
stateMutability: "view",
|
|
30754
30850
|
type: "function",
|
|
30755
30851
|
devdoc: {
|
|
30756
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
30852
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
30757
30853
|
}
|
|
30758
30854
|
},
|
|
30759
30855
|
/**
|
|
@@ -30769,7 +30865,8 @@ const FunctionSelectors = {
|
|
|
30769
30865
|
stateMutability: "nonpayable",
|
|
30770
30866
|
type: "function",
|
|
30771
30867
|
devdoc: {
|
|
30772
|
-
|
|
30868
|
+
"custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
|
|
30869
|
+
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 is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
|
|
30773
30870
|
},
|
|
30774
30871
|
userdoc: {
|
|
30775
30872
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
|
|
@@ -30794,10 +30891,12 @@ const FunctionSelectors = {
|
|
|
30794
30891
|
stateMutability: "payable",
|
|
30795
30892
|
type: "function",
|
|
30796
30893
|
devdoc: {
|
|
30894
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
|
|
30895
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
30797
30896
|
details: "Sets singular data for a given `dataKey`",
|
|
30798
30897
|
params: {
|
|
30799
30898
|
dataKey: "The key to retrieve stored value",
|
|
30800
|
-
dataValue: "The value to set
|
|
30899
|
+
dataValue: "The value to set"
|
|
30801
30900
|
}
|
|
30802
30901
|
}
|
|
30803
30902
|
},
|
|
@@ -30820,10 +30919,12 @@ const FunctionSelectors = {
|
|
|
30820
30919
|
stateMutability: "payable",
|
|
30821
30920
|
type: "function",
|
|
30822
30921
|
devdoc: {
|
|
30922
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
|
|
30923
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
30823
30924
|
details: "Sets array of data for multiple given `dataKeys`",
|
|
30824
30925
|
params: {
|
|
30825
30926
|
dataKeys: "The array of data keys for values to set",
|
|
30826
|
-
dataValues: "The array of values to set
|
|
30927
|
+
dataValues: "The array of values to set"
|
|
30827
30928
|
}
|
|
30828
30929
|
}
|
|
30829
30930
|
},
|
|
@@ -30850,7 +30951,7 @@ const FunctionSelectors = {
|
|
|
30850
30951
|
},
|
|
30851
30952
|
/**
|
|
30852
30953
|
* function transferOwnership(
|
|
30853
|
-
* address
|
|
30954
|
+
* address pendingNewOwner
|
|
30854
30955
|
* )
|
|
30855
30956
|
*
|
|
30856
30957
|
* 0xf2fde38b = keccak256('transferOwnership(address)')
|
|
@@ -30858,17 +30959,16 @@ const FunctionSelectors = {
|
|
|
30858
30959
|
"0xf2fde38b": {
|
|
30859
30960
|
sig: "transferOwnership(address)",
|
|
30860
30961
|
inputs: [
|
|
30861
|
-
{ internalType: "address", name: "
|
|
30962
|
+
{ internalType: "address", name: "pendingNewOwner", type: "address" }
|
|
30862
30963
|
],
|
|
30863
30964
|
name: "transferOwnership",
|
|
30864
30965
|
outputs: [],
|
|
30865
30966
|
stateMutability: "nonpayable",
|
|
30866
30967
|
type: "function",
|
|
30867
30968
|
devdoc: {
|
|
30868
|
-
|
|
30869
|
-
|
|
30870
|
-
|
|
30871
|
-
}
|
|
30969
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
|
|
30970
|
+
details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
|
|
30971
|
+
params: { pendingNewOwner: "The address of the new pending owner." }
|
|
30872
30972
|
},
|
|
30873
30973
|
userdoc: {
|
|
30874
30974
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -30895,7 +30995,8 @@ const FunctionSelectors = {
|
|
|
30895
30995
|
stateMutability: "payable",
|
|
30896
30996
|
type: "function",
|
|
30897
30997
|
devdoc: {
|
|
30898
|
-
|
|
30998
|
+
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
|
|
30999
|
+
details: "The function performs the following steps: 1. Query the ERC725Y 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 ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-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.",
|
|
30899
31000
|
params: {
|
|
30900
31001
|
receivedData: "The data received.",
|
|
30901
31002
|
typeId: "The type of call received."
|
|
@@ -30905,7 +31006,7 @@ const FunctionSelectors = {
|
|
|
30905
31006
|
}
|
|
30906
31007
|
},
|
|
30907
31008
|
userdoc: {
|
|
30908
|
-
notice: "Achieves the goal of LSP1-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 (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
|
|
31009
|
+
notice: "Achieves the goal of [LSP1-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 (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
|
|
30909
31010
|
}
|
|
30910
31011
|
}
|
|
30911
31012
|
},
|
|
@@ -30949,7 +31050,8 @@ const FunctionSelectors = {
|
|
|
30949
31050
|
stateMutability: "nonpayable",
|
|
30950
31051
|
type: "function",
|
|
30951
31052
|
devdoc: {
|
|
30952
|
-
|
|
31053
|
+
"custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
|
|
31054
|
+
details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
|
|
30953
31055
|
},
|
|
30954
31056
|
userdoc: {
|
|
30955
31057
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -31002,11 +31104,13 @@ const FunctionSelectors = {
|
|
|
31002
31104
|
stateMutability: "payable",
|
|
31003
31105
|
type: "function",
|
|
31004
31106
|
devdoc: {
|
|
31107
|
+
"custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
|
|
31108
|
+
"custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
31005
31109
|
details: "Executes any call on other addresses.",
|
|
31006
31110
|
params: {
|
|
31007
|
-
data: "The call data to execute on `target`, or the bytecode of the contract to deploy
|
|
31008
|
-
operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
|
|
31009
|
-
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (
|
|
31111
|
+
data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
|
|
31112
|
+
operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
31113
|
+
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
31010
31114
|
value: "The amount of native tokens to transfer (in Wei)."
|
|
31011
31115
|
}
|
|
31012
31116
|
}
|
|
@@ -31038,12 +31142,14 @@ const FunctionSelectors = {
|
|
|
31038
31142
|
stateMutability: "payable",
|
|
31039
31143
|
type: "function",
|
|
31040
31144
|
devdoc: {
|
|
31145
|
+
"custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
|
|
31146
|
+
"custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
31041
31147
|
details: "Generic batch executor function that executes any call on other addresses",
|
|
31042
31148
|
params: {
|
|
31043
|
-
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy
|
|
31044
|
-
operationsType: "The list of operations type used: CALL = 0
|
|
31045
|
-
targets: "The list of addresses to call. `targets` will be unused if a contract is created (
|
|
31046
|
-
values: "The list of native token amounts to transfer (in Wei)"
|
|
31149
|
+
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
|
|
31150
|
+
operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
31151
|
+
targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
31152
|
+
values: "The list of native token amounts to transfer (in Wei)."
|
|
31047
31153
|
}
|
|
31048
31154
|
}
|
|
31049
31155
|
},
|
|
@@ -31093,22 +31199,25 @@ const FunctionSelectors = {
|
|
|
31093
31199
|
},
|
|
31094
31200
|
/**
|
|
31095
31201
|
* function initialize(
|
|
31096
|
-
* address
|
|
31202
|
+
* address initialOwner
|
|
31097
31203
|
* )
|
|
31098
31204
|
*
|
|
31099
31205
|
* 0xc4d66de8 = keccak256('initialize(address)')
|
|
31100
31206
|
*/
|
|
31101
31207
|
"0xc4d66de8": {
|
|
31102
31208
|
sig: "initialize(address)",
|
|
31103
|
-
inputs: [
|
|
31209
|
+
inputs: [
|
|
31210
|
+
{ internalType: "address", name: "initialOwner", type: "address" }
|
|
31211
|
+
],
|
|
31104
31212
|
name: "initialize",
|
|
31105
31213
|
outputs: [],
|
|
31106
31214
|
stateMutability: "payable",
|
|
31107
31215
|
type: "function",
|
|
31108
|
-
devdoc: {
|
|
31109
|
-
|
|
31110
|
-
|
|
31111
|
-
}
|
|
31216
|
+
devdoc: {
|
|
31217
|
+
details: "Set `initialOwner` as the contract owner and set the `SupportedStandards:LSP3UniversalProfile` data key in the ERC725Y data key/value store. 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. Emitted Events: - ValueReceived: when the contract is funded on initialization.",
|
|
31218
|
+
params: { initialOwner: "the owner of the contract" }
|
|
31219
|
+
},
|
|
31220
|
+
userdoc: { notice: "Initializing the contract owner to: `initialOwner`" }
|
|
31112
31221
|
},
|
|
31113
31222
|
/**
|
|
31114
31223
|
* function isValidSignature(
|
|
@@ -31129,7 +31238,7 @@ const FunctionSelectors = {
|
|
|
31129
31238
|
stateMutability: "view",
|
|
31130
31239
|
type: "function",
|
|
31131
31240
|
devdoc: {
|
|
31132
|
-
details: "Handles two cases:
|
|
31241
|
+
details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue 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 fail value 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 fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
|
|
31133
31242
|
params: {
|
|
31134
31243
|
dataHash: "The hash of the data to be validated.",
|
|
31135
31244
|
signature: "A signature that can validate the previous parameter (Hash)."
|
|
@@ -31139,7 +31248,7 @@ const FunctionSelectors = {
|
|
|
31139
31248
|
}
|
|
31140
31249
|
},
|
|
31141
31250
|
userdoc: {
|
|
31142
|
-
notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
|
|
31251
|
+
notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
|
|
31143
31252
|
}
|
|
31144
31253
|
},
|
|
31145
31254
|
/**
|
|
@@ -31169,7 +31278,7 @@ const FunctionSelectors = {
|
|
|
31169
31278
|
stateMutability: "view",
|
|
31170
31279
|
type: "function",
|
|
31171
31280
|
devdoc: {
|
|
31172
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
31281
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
31173
31282
|
}
|
|
31174
31283
|
},
|
|
31175
31284
|
/**
|
|
@@ -31185,7 +31294,8 @@ const FunctionSelectors = {
|
|
|
31185
31294
|
stateMutability: "nonpayable",
|
|
31186
31295
|
type: "function",
|
|
31187
31296
|
devdoc: {
|
|
31188
|
-
|
|
31297
|
+
"custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
|
|
31298
|
+
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 is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
|
|
31189
31299
|
},
|
|
31190
31300
|
userdoc: {
|
|
31191
31301
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
|
|
@@ -31210,10 +31320,12 @@ const FunctionSelectors = {
|
|
|
31210
31320
|
stateMutability: "payable",
|
|
31211
31321
|
type: "function",
|
|
31212
31322
|
devdoc: {
|
|
31323
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
|
|
31324
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
31213
31325
|
details: "Sets singular data for a given `dataKey`",
|
|
31214
31326
|
params: {
|
|
31215
31327
|
dataKey: "The key to retrieve stored value",
|
|
31216
|
-
dataValue: "The value to set
|
|
31328
|
+
dataValue: "The value to set"
|
|
31217
31329
|
}
|
|
31218
31330
|
}
|
|
31219
31331
|
},
|
|
@@ -31236,10 +31348,12 @@ const FunctionSelectors = {
|
|
|
31236
31348
|
stateMutability: "payable",
|
|
31237
31349
|
type: "function",
|
|
31238
31350
|
devdoc: {
|
|
31351
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
|
|
31352
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
|
|
31239
31353
|
details: "Sets array of data for multiple given `dataKeys`",
|
|
31240
31354
|
params: {
|
|
31241
31355
|
dataKeys: "The array of data keys for values to set",
|
|
31242
|
-
dataValues: "The array of values to set
|
|
31356
|
+
dataValues: "The array of values to set"
|
|
31243
31357
|
}
|
|
31244
31358
|
}
|
|
31245
31359
|
},
|
|
@@ -31266,7 +31380,7 @@ const FunctionSelectors = {
|
|
|
31266
31380
|
},
|
|
31267
31381
|
/**
|
|
31268
31382
|
* function transferOwnership(
|
|
31269
|
-
* address
|
|
31383
|
+
* address pendingNewOwner
|
|
31270
31384
|
* )
|
|
31271
31385
|
*
|
|
31272
31386
|
* 0xf2fde38b = keccak256('transferOwnership(address)')
|
|
@@ -31274,17 +31388,16 @@ const FunctionSelectors = {
|
|
|
31274
31388
|
"0xf2fde38b": {
|
|
31275
31389
|
sig: "transferOwnership(address)",
|
|
31276
31390
|
inputs: [
|
|
31277
|
-
{ internalType: "address", name: "
|
|
31391
|
+
{ internalType: "address", name: "pendingNewOwner", type: "address" }
|
|
31278
31392
|
],
|
|
31279
31393
|
name: "transferOwnership",
|
|
31280
31394
|
outputs: [],
|
|
31281
31395
|
stateMutability: "nonpayable",
|
|
31282
31396
|
type: "function",
|
|
31283
31397
|
devdoc: {
|
|
31284
|
-
|
|
31285
|
-
|
|
31286
|
-
|
|
31287
|
-
}
|
|
31398
|
+
"custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
|
|
31399
|
+
details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
|
|
31400
|
+
params: { pendingNewOwner: "The address of the new pending owner." }
|
|
31288
31401
|
},
|
|
31289
31402
|
userdoc: {
|
|
31290
31403
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -31311,7 +31424,8 @@ const FunctionSelectors = {
|
|
|
31311
31424
|
stateMutability: "payable",
|
|
31312
31425
|
type: "function",
|
|
31313
31426
|
devdoc: {
|
|
31314
|
-
|
|
31427
|
+
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
|
|
31428
|
+
details: "The function performs the following steps: 1. Query the ERC725Y 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 ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-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.",
|
|
31315
31429
|
params: {
|
|
31316
31430
|
receivedData: "The data received.",
|
|
31317
31431
|
typeId: "The type of call received."
|
|
@@ -31321,13 +31435,27 @@ const FunctionSelectors = {
|
|
|
31321
31435
|
}
|
|
31322
31436
|
},
|
|
31323
31437
|
userdoc: {
|
|
31324
|
-
notice: "Achieves the goal of LSP1-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 (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
|
|
31438
|
+
notice: "Achieves the goal of [LSP1-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 (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
|
|
31325
31439
|
}
|
|
31326
31440
|
}
|
|
31327
31441
|
}
|
|
31328
31442
|
};
|
|
31329
31443
|
const ContractsDocs = {};
|
|
31330
31444
|
const StateVariables = {
|
|
31445
|
+
LSP16UniversalFactory: {
|
|
31446
|
+
/**
|
|
31447
|
+
* stateVariable _EMPTY_BYTE()
|
|
31448
|
+
*
|
|
31449
|
+
* 0x3bc60789 = keccak256('_EMPTY_BYTE()')
|
|
31450
|
+
*/
|
|
31451
|
+
"0x3bc60789": {
|
|
31452
|
+
sig: "_EMPTY_BYTE()",
|
|
31453
|
+
type: "stateVariable",
|
|
31454
|
+
devdoc: {
|
|
31455
|
+
details: "placeholder for the `initializeCallData` param when the `initializable` boolean is set to `false`."
|
|
31456
|
+
}
|
|
31457
|
+
}
|
|
31458
|
+
},
|
|
31331
31459
|
LSP8CompatibleERC721: {
|
|
31332
31460
|
/**
|
|
31333
31461
|
* stateVariable _operatorApprovals()
|