@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.es.js
CHANGED
|
@@ -235,7 +235,8 @@ const ErrorSelectors = {
|
|
|
235
235
|
{
|
|
236
236
|
details: "reverts when the call to the owner does not return the magic value",
|
|
237
237
|
params: {
|
|
238
|
-
postCall: "
|
|
238
|
+
postCall: "True if the execution call was done, False otherwise",
|
|
239
|
+
returnedData: "The data returned by the call to the logic verifier"
|
|
239
240
|
}
|
|
240
241
|
}
|
|
241
242
|
]
|
|
@@ -527,7 +528,8 @@ const ErrorSelectors = {
|
|
|
527
528
|
{
|
|
528
529
|
details: "reverts when the call to the owner does not return the magic value",
|
|
529
530
|
params: {
|
|
530
|
-
postCall: "
|
|
531
|
+
postCall: "True if the execution call was done, False otherwise",
|
|
532
|
+
returnedData: "The data returned by the call to the logic verifier"
|
|
531
533
|
}
|
|
532
534
|
}
|
|
533
535
|
]
|
|
@@ -931,34 +933,34 @@ const ErrorSelectors = {
|
|
|
931
933
|
},
|
|
932
934
|
LSP16UniversalFactory: {
|
|
933
935
|
/**
|
|
934
|
-
* error
|
|
936
|
+
* error ContractInitializationFailed()
|
|
935
937
|
*
|
|
936
|
-
*
|
|
938
|
+
* 0xc1ee8543 = keccak256('ContractInitializationFailed()')
|
|
937
939
|
*/
|
|
938
|
-
"
|
|
939
|
-
sig: "
|
|
940
|
+
"0xc1ee8543": {
|
|
941
|
+
sig: "ContractInitializationFailed()",
|
|
940
942
|
inputs: [],
|
|
941
|
-
name: "
|
|
943
|
+
name: "ContractInitializationFailed",
|
|
942
944
|
type: "error",
|
|
943
945
|
userdoc: [
|
|
944
946
|
{
|
|
945
|
-
details: "
|
|
947
|
+
details: "Reverts when there is no revert reason bubbled up by the contract created when initializing"
|
|
946
948
|
}
|
|
947
949
|
]
|
|
948
950
|
},
|
|
949
951
|
/**
|
|
950
|
-
* error
|
|
952
|
+
* error InvalidValueSum()
|
|
951
953
|
*
|
|
952
|
-
*
|
|
954
|
+
* 0x2fd9ca91 = keccak256('InvalidValueSum()')
|
|
953
955
|
*/
|
|
954
|
-
"
|
|
955
|
-
sig: "
|
|
956
|
+
"0x2fd9ca91": {
|
|
957
|
+
sig: "InvalidValueSum()",
|
|
956
958
|
inputs: [],
|
|
957
|
-
name: "
|
|
959
|
+
name: "InvalidValueSum",
|
|
958
960
|
type: "error",
|
|
959
961
|
userdoc: [
|
|
960
962
|
{
|
|
961
|
-
details: "
|
|
963
|
+
details: "Reverts when msg.value sent to {deployCreate2AndInitialize} function is not equal to the sum of the `initializeCalldataMsgValue` and `constructorMsgValue`"
|
|
962
964
|
}
|
|
963
965
|
]
|
|
964
966
|
}
|
|
@@ -9127,7 +9129,8 @@ const ErrorSelectors = {
|
|
|
9127
9129
|
{
|
|
9128
9130
|
details: "reverts when the call to the owner does not return the magic value",
|
|
9129
9131
|
params: {
|
|
9130
|
-
postCall: "
|
|
9132
|
+
postCall: "True if the execution call was done, False otherwise",
|
|
9133
|
+
returnedData: "The data returned by the call to the logic verifier"
|
|
9131
9134
|
}
|
|
9132
9135
|
}
|
|
9133
9136
|
]
|
|
@@ -9419,7 +9422,8 @@ const ErrorSelectors = {
|
|
|
9419
9422
|
{
|
|
9420
9423
|
details: "reverts when the call to the owner does not return the magic value",
|
|
9421
9424
|
params: {
|
|
9422
|
-
postCall: "
|
|
9425
|
+
postCall: "True if the execution call was done, False otherwise",
|
|
9426
|
+
returnedData: "The data returned by the call to the logic verifier"
|
|
9423
9427
|
}
|
|
9424
9428
|
}
|
|
9425
9429
|
]
|
|
@@ -10516,14 +10520,15 @@ const EventSigHashes = {
|
|
|
10516
10520
|
* event ContractCreated(
|
|
10517
10521
|
* address indexed contractCreated,
|
|
10518
10522
|
* bytes32 indexed providedSalt,
|
|
10519
|
-
*
|
|
10523
|
+
* bytes32 generatedSalt,
|
|
10524
|
+
* bool indexed initialized,
|
|
10520
10525
|
* bytes initializeCalldata
|
|
10521
10526
|
* )
|
|
10522
10527
|
*
|
|
10523
|
-
*
|
|
10528
|
+
* 0x8872a323d65599f01bf90dc61c94b4e0cc8e2347d6af4122fccc3e112ee34a84 = keccak256('ContractCreated(address,bytes32,bytes32,bool,bytes)')
|
|
10524
10529
|
*/
|
|
10525
|
-
"
|
|
10526
|
-
sig: "ContractCreated(address,bytes32,bool,bytes)",
|
|
10530
|
+
"0x8872a323d65599f01bf90dc61c94b4e0cc8e2347d6af4122fccc3e112ee34a84": {
|
|
10531
|
+
sig: "ContractCreated(address,bytes32,bytes32,bool,bytes)",
|
|
10527
10532
|
anonymous: false,
|
|
10528
10533
|
inputs: [
|
|
10529
10534
|
{
|
|
@@ -10538,10 +10543,16 @@ const EventSigHashes = {
|
|
|
10538
10543
|
name: "providedSalt",
|
|
10539
10544
|
type: "bytes32"
|
|
10540
10545
|
},
|
|
10546
|
+
{
|
|
10547
|
+
indexed: false,
|
|
10548
|
+
internalType: "bytes32",
|
|
10549
|
+
name: "generatedSalt",
|
|
10550
|
+
type: "bytes32"
|
|
10551
|
+
},
|
|
10541
10552
|
{
|
|
10542
10553
|
indexed: true,
|
|
10543
10554
|
internalType: "bool",
|
|
10544
|
-
name: "
|
|
10555
|
+
name: "initialized",
|
|
10545
10556
|
type: "bool"
|
|
10546
10557
|
},
|
|
10547
10558
|
{
|
|
@@ -10557,9 +10568,10 @@ const EventSigHashes = {
|
|
|
10557
10568
|
details: "Emitted whenever a contract is created",
|
|
10558
10569
|
params: {
|
|
10559
10570
|
contractCreated: "The address of the contract created",
|
|
10560
|
-
|
|
10561
|
-
initializeCalldata: "The bytes provided as initializeCalldata",
|
|
10562
|
-
|
|
10571
|
+
generatedSalt: "The salt used by the `CREATE2` opcode for contract deployment",
|
|
10572
|
+
initializeCalldata: "The bytes provided as initializeCalldata (Empty string when `initialized` is set to false)",
|
|
10573
|
+
initialized: "The Boolean that specifies if the contract must be initialized or not",
|
|
10574
|
+
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"
|
|
10563
10575
|
}
|
|
10564
10576
|
}
|
|
10565
10577
|
}
|
|
@@ -16579,7 +16591,8 @@ const FunctionSelectors = {
|
|
|
16579
16591
|
stateMutability: "nonpayable",
|
|
16580
16592
|
type: "function",
|
|
16581
16593
|
devdoc: {
|
|
16582
|
-
|
|
16594
|
+
"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')`.",
|
|
16595
|
+
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."
|
|
16583
16596
|
},
|
|
16584
16597
|
userdoc: {
|
|
16585
16598
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -16632,11 +16645,13 @@ const FunctionSelectors = {
|
|
|
16632
16645
|
stateMutability: "payable",
|
|
16633
16646
|
type: "function",
|
|
16634
16647
|
devdoc: {
|
|
16648
|
+
"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.",
|
|
16649
|
+
"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",
|
|
16635
16650
|
details: "Executes any call on other addresses.",
|
|
16636
16651
|
params: {
|
|
16637
|
-
data: "The call data to execute on `target`, or the bytecode of the contract to deploy
|
|
16638
|
-
operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
|
|
16639
|
-
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (
|
|
16652
|
+
data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
|
|
16653
|
+
operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
16654
|
+
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
16640
16655
|
value: "The amount of native tokens to transfer (in Wei)."
|
|
16641
16656
|
}
|
|
16642
16657
|
}
|
|
@@ -16668,12 +16683,14 @@ const FunctionSelectors = {
|
|
|
16668
16683
|
stateMutability: "payable",
|
|
16669
16684
|
type: "function",
|
|
16670
16685
|
devdoc: {
|
|
16686
|
+
"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.",
|
|
16687
|
+
"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",
|
|
16671
16688
|
details: "Generic batch executor function that executes any call on other addresses",
|
|
16672
16689
|
params: {
|
|
16673
|
-
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy
|
|
16674
|
-
operationsType: "The list of operations type used: CALL = 0
|
|
16675
|
-
targets: "The list of addresses to call. `targets` will be unused if a contract is created (
|
|
16676
|
-
values: "The list of native token amounts to transfer (in Wei)"
|
|
16690
|
+
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
|
|
16691
|
+
operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
16692
|
+
targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
16693
|
+
values: "The list of native token amounts to transfer (in Wei)."
|
|
16677
16694
|
}
|
|
16678
16695
|
}
|
|
16679
16696
|
},
|
|
@@ -16740,7 +16757,7 @@ const FunctionSelectors = {
|
|
|
16740
16757
|
stateMutability: "view",
|
|
16741
16758
|
type: "function",
|
|
16742
16759
|
devdoc: {
|
|
16743
|
-
details: "Handles two cases:
|
|
16760
|
+
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.",
|
|
16744
16761
|
params: {
|
|
16745
16762
|
dataHash: "The hash of the data to be validated.",
|
|
16746
16763
|
signature: "A signature that can validate the previous parameter (Hash)."
|
|
@@ -16750,7 +16767,7 @@ const FunctionSelectors = {
|
|
|
16750
16767
|
}
|
|
16751
16768
|
},
|
|
16752
16769
|
userdoc: {
|
|
16753
|
-
notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
|
|
16770
|
+
notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
|
|
16754
16771
|
}
|
|
16755
16772
|
},
|
|
16756
16773
|
/**
|
|
@@ -16780,7 +16797,7 @@ const FunctionSelectors = {
|
|
|
16780
16797
|
stateMutability: "view",
|
|
16781
16798
|
type: "function",
|
|
16782
16799
|
devdoc: {
|
|
16783
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
16800
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
16784
16801
|
}
|
|
16785
16802
|
},
|
|
16786
16803
|
/**
|
|
@@ -16796,7 +16813,8 @@ const FunctionSelectors = {
|
|
|
16796
16813
|
stateMutability: "nonpayable",
|
|
16797
16814
|
type: "function",
|
|
16798
16815
|
devdoc: {
|
|
16799
|
-
|
|
16816
|
+
"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.",
|
|
16817
|
+
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"
|
|
16800
16818
|
},
|
|
16801
16819
|
userdoc: {
|
|
16802
16820
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
|
|
@@ -16821,10 +16839,12 @@ const FunctionSelectors = {
|
|
|
16821
16839
|
stateMutability: "payable",
|
|
16822
16840
|
type: "function",
|
|
16823
16841
|
devdoc: {
|
|
16842
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
|
|
16843
|
+
"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",
|
|
16824
16844
|
details: "Sets singular data for a given `dataKey`",
|
|
16825
16845
|
params: {
|
|
16826
16846
|
dataKey: "The key to retrieve stored value",
|
|
16827
|
-
dataValue: "The value to set
|
|
16847
|
+
dataValue: "The value to set"
|
|
16828
16848
|
}
|
|
16829
16849
|
}
|
|
16830
16850
|
},
|
|
@@ -16847,10 +16867,12 @@ const FunctionSelectors = {
|
|
|
16847
16867
|
stateMutability: "payable",
|
|
16848
16868
|
type: "function",
|
|
16849
16869
|
devdoc: {
|
|
16870
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
|
|
16871
|
+
"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",
|
|
16850
16872
|
details: "Sets array of data for multiple given `dataKeys`",
|
|
16851
16873
|
params: {
|
|
16852
16874
|
dataKeys: "The array of data keys for values to set",
|
|
16853
|
-
dataValues: "The array of values to set
|
|
16875
|
+
dataValues: "The array of values to set"
|
|
16854
16876
|
}
|
|
16855
16877
|
}
|
|
16856
16878
|
},
|
|
@@ -16877,7 +16899,7 @@ const FunctionSelectors = {
|
|
|
16877
16899
|
},
|
|
16878
16900
|
/**
|
|
16879
16901
|
* function transferOwnership(
|
|
16880
|
-
* address
|
|
16902
|
+
* address pendingNewOwner
|
|
16881
16903
|
* )
|
|
16882
16904
|
*
|
|
16883
16905
|
* 0xf2fde38b = keccak256('transferOwnership(address)')
|
|
@@ -16885,17 +16907,16 @@ const FunctionSelectors = {
|
|
|
16885
16907
|
"0xf2fde38b": {
|
|
16886
16908
|
sig: "transferOwnership(address)",
|
|
16887
16909
|
inputs: [
|
|
16888
|
-
{ internalType: "address", name: "
|
|
16910
|
+
{ internalType: "address", name: "pendingNewOwner", type: "address" }
|
|
16889
16911
|
],
|
|
16890
16912
|
name: "transferOwnership",
|
|
16891
16913
|
outputs: [],
|
|
16892
16914
|
stateMutability: "nonpayable",
|
|
16893
16915
|
type: "function",
|
|
16894
16916
|
devdoc: {
|
|
16895
|
-
|
|
16896
|
-
|
|
16897
|
-
|
|
16898
|
-
}
|
|
16917
|
+
"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.",
|
|
16918
|
+
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.",
|
|
16919
|
+
params: { pendingNewOwner: "The address of the new pending owner." }
|
|
16899
16920
|
},
|
|
16900
16921
|
userdoc: {
|
|
16901
16922
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -16922,7 +16943,8 @@ const FunctionSelectors = {
|
|
|
16922
16943
|
stateMutability: "payable",
|
|
16923
16944
|
type: "function",
|
|
16924
16945
|
devdoc: {
|
|
16925
|
-
|
|
16946
|
+
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
|
|
16947
|
+
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.",
|
|
16926
16948
|
params: {
|
|
16927
16949
|
receivedData: "The data received.",
|
|
16928
16950
|
typeId: "The type of call received."
|
|
@@ -16932,7 +16954,7 @@ const FunctionSelectors = {
|
|
|
16932
16954
|
}
|
|
16933
16955
|
},
|
|
16934
16956
|
userdoc: {
|
|
16935
|
-
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."
|
|
16957
|
+
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."
|
|
16936
16958
|
}
|
|
16937
16959
|
}
|
|
16938
16960
|
},
|
|
@@ -16976,7 +16998,8 @@ const FunctionSelectors = {
|
|
|
16976
16998
|
stateMutability: "nonpayable",
|
|
16977
16999
|
type: "function",
|
|
16978
17000
|
devdoc: {
|
|
16979
|
-
|
|
17001
|
+
"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')`.",
|
|
17002
|
+
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."
|
|
16980
17003
|
},
|
|
16981
17004
|
userdoc: {
|
|
16982
17005
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -17029,11 +17052,13 @@ const FunctionSelectors = {
|
|
|
17029
17052
|
stateMutability: "payable",
|
|
17030
17053
|
type: "function",
|
|
17031
17054
|
devdoc: {
|
|
17055
|
+
"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.",
|
|
17056
|
+
"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",
|
|
17032
17057
|
details: "Executes any call on other addresses.",
|
|
17033
17058
|
params: {
|
|
17034
|
-
data: "The call data to execute on `target`, or the bytecode of the contract to deploy
|
|
17035
|
-
operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
|
|
17036
|
-
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (
|
|
17059
|
+
data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
|
|
17060
|
+
operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
17061
|
+
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
17037
17062
|
value: "The amount of native tokens to transfer (in Wei)."
|
|
17038
17063
|
}
|
|
17039
17064
|
}
|
|
@@ -17065,12 +17090,14 @@ const FunctionSelectors = {
|
|
|
17065
17090
|
stateMutability: "payable",
|
|
17066
17091
|
type: "function",
|
|
17067
17092
|
devdoc: {
|
|
17093
|
+
"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.",
|
|
17094
|
+
"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",
|
|
17068
17095
|
details: "Generic batch executor function that executes any call on other addresses",
|
|
17069
17096
|
params: {
|
|
17070
|
-
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy
|
|
17071
|
-
operationsType: "The list of operations type used: CALL = 0
|
|
17072
|
-
targets: "The list of addresses to call. `targets` will be unused if a contract is created (
|
|
17073
|
-
values: "The list of native token amounts to transfer (in Wei)"
|
|
17097
|
+
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
|
|
17098
|
+
operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
17099
|
+
targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
17100
|
+
values: "The list of native token amounts to transfer (in Wei)."
|
|
17074
17101
|
}
|
|
17075
17102
|
}
|
|
17076
17103
|
},
|
|
@@ -17120,22 +17147,25 @@ const FunctionSelectors = {
|
|
|
17120
17147
|
},
|
|
17121
17148
|
/**
|
|
17122
17149
|
* function initialize(
|
|
17123
|
-
* address
|
|
17150
|
+
* address initialOwner
|
|
17124
17151
|
* )
|
|
17125
17152
|
*
|
|
17126
17153
|
* 0xc4d66de8 = keccak256('initialize(address)')
|
|
17127
17154
|
*/
|
|
17128
17155
|
"0xc4d66de8": {
|
|
17129
17156
|
sig: "initialize(address)",
|
|
17130
|
-
inputs: [
|
|
17157
|
+
inputs: [
|
|
17158
|
+
{ internalType: "address", name: "initialOwner", type: "address" }
|
|
17159
|
+
],
|
|
17131
17160
|
name: "initialize",
|
|
17132
17161
|
outputs: [],
|
|
17133
17162
|
stateMutability: "payable",
|
|
17134
17163
|
type: "function",
|
|
17135
17164
|
devdoc: {
|
|
17136
|
-
details: "
|
|
17137
|
-
params: {
|
|
17138
|
-
}
|
|
17165
|
+
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.",
|
|
17166
|
+
params: { initialOwner: "the owner of the contract" }
|
|
17167
|
+
},
|
|
17168
|
+
userdoc: { notice: "Initializing the contract owner to: `initialOwner`" }
|
|
17139
17169
|
},
|
|
17140
17170
|
/**
|
|
17141
17171
|
* function isValidSignature(
|
|
@@ -17156,7 +17186,7 @@ const FunctionSelectors = {
|
|
|
17156
17186
|
stateMutability: "view",
|
|
17157
17187
|
type: "function",
|
|
17158
17188
|
devdoc: {
|
|
17159
|
-
details: "Handles two cases:
|
|
17189
|
+
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.",
|
|
17160
17190
|
params: {
|
|
17161
17191
|
dataHash: "The hash of the data to be validated.",
|
|
17162
17192
|
signature: "A signature that can validate the previous parameter (Hash)."
|
|
@@ -17166,7 +17196,7 @@ const FunctionSelectors = {
|
|
|
17166
17196
|
}
|
|
17167
17197
|
},
|
|
17168
17198
|
userdoc: {
|
|
17169
|
-
notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
|
|
17199
|
+
notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
|
|
17170
17200
|
}
|
|
17171
17201
|
},
|
|
17172
17202
|
/**
|
|
@@ -17196,7 +17226,7 @@ const FunctionSelectors = {
|
|
|
17196
17226
|
stateMutability: "view",
|
|
17197
17227
|
type: "function",
|
|
17198
17228
|
devdoc: {
|
|
17199
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
17229
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
17200
17230
|
}
|
|
17201
17231
|
},
|
|
17202
17232
|
/**
|
|
@@ -17212,7 +17242,8 @@ const FunctionSelectors = {
|
|
|
17212
17242
|
stateMutability: "nonpayable",
|
|
17213
17243
|
type: "function",
|
|
17214
17244
|
devdoc: {
|
|
17215
|
-
|
|
17245
|
+
"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.",
|
|
17246
|
+
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"
|
|
17216
17247
|
},
|
|
17217
17248
|
userdoc: {
|
|
17218
17249
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
|
|
@@ -17237,10 +17268,12 @@ const FunctionSelectors = {
|
|
|
17237
17268
|
stateMutability: "payable",
|
|
17238
17269
|
type: "function",
|
|
17239
17270
|
devdoc: {
|
|
17271
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
|
|
17272
|
+
"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",
|
|
17240
17273
|
details: "Sets singular data for a given `dataKey`",
|
|
17241
17274
|
params: {
|
|
17242
17275
|
dataKey: "The key to retrieve stored value",
|
|
17243
|
-
dataValue: "The value to set
|
|
17276
|
+
dataValue: "The value to set"
|
|
17244
17277
|
}
|
|
17245
17278
|
}
|
|
17246
17279
|
},
|
|
@@ -17263,10 +17296,12 @@ const FunctionSelectors = {
|
|
|
17263
17296
|
stateMutability: "payable",
|
|
17264
17297
|
type: "function",
|
|
17265
17298
|
devdoc: {
|
|
17299
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
|
|
17300
|
+
"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",
|
|
17266
17301
|
details: "Sets array of data for multiple given `dataKeys`",
|
|
17267
17302
|
params: {
|
|
17268
17303
|
dataKeys: "The array of data keys for values to set",
|
|
17269
|
-
dataValues: "The array of values to set
|
|
17304
|
+
dataValues: "The array of values to set"
|
|
17270
17305
|
}
|
|
17271
17306
|
}
|
|
17272
17307
|
},
|
|
@@ -17293,7 +17328,7 @@ const FunctionSelectors = {
|
|
|
17293
17328
|
},
|
|
17294
17329
|
/**
|
|
17295
17330
|
* function transferOwnership(
|
|
17296
|
-
* address
|
|
17331
|
+
* address pendingNewOwner
|
|
17297
17332
|
* )
|
|
17298
17333
|
*
|
|
17299
17334
|
* 0xf2fde38b = keccak256('transferOwnership(address)')
|
|
@@ -17301,17 +17336,16 @@ const FunctionSelectors = {
|
|
|
17301
17336
|
"0xf2fde38b": {
|
|
17302
17337
|
sig: "transferOwnership(address)",
|
|
17303
17338
|
inputs: [
|
|
17304
|
-
{ internalType: "address", name: "
|
|
17339
|
+
{ internalType: "address", name: "pendingNewOwner", type: "address" }
|
|
17305
17340
|
],
|
|
17306
17341
|
name: "transferOwnership",
|
|
17307
17342
|
outputs: [],
|
|
17308
17343
|
stateMutability: "nonpayable",
|
|
17309
17344
|
type: "function",
|
|
17310
17345
|
devdoc: {
|
|
17311
|
-
|
|
17312
|
-
|
|
17313
|
-
|
|
17314
|
-
}
|
|
17346
|
+
"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.",
|
|
17347
|
+
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.",
|
|
17348
|
+
params: { pendingNewOwner: "The address of the new pending owner." }
|
|
17315
17349
|
},
|
|
17316
17350
|
userdoc: {
|
|
17317
17351
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -17338,7 +17372,8 @@ const FunctionSelectors = {
|
|
|
17338
17372
|
stateMutability: "payable",
|
|
17339
17373
|
type: "function",
|
|
17340
17374
|
devdoc: {
|
|
17341
|
-
|
|
17375
|
+
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
|
|
17376
|
+
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.",
|
|
17342
17377
|
params: {
|
|
17343
17378
|
receivedData: "The data received.",
|
|
17344
17379
|
typeId: "The type of call received."
|
|
@@ -17348,7 +17383,7 @@ const FunctionSelectors = {
|
|
|
17348
17383
|
}
|
|
17349
17384
|
},
|
|
17350
17385
|
userdoc: {
|
|
17351
|
-
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."
|
|
17386
|
+
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."
|
|
17352
17387
|
}
|
|
17353
17388
|
}
|
|
17354
17389
|
},
|
|
@@ -18042,55 +18077,75 @@ const FunctionSelectors = {
|
|
|
18042
18077
|
},
|
|
18043
18078
|
LSP16UniversalFactory: {
|
|
18044
18079
|
/**
|
|
18045
|
-
* function
|
|
18080
|
+
* function computeAddress(
|
|
18046
18081
|
* bytes32 byteCodeHash,
|
|
18047
18082
|
* bytes32 providedSalt,
|
|
18048
18083
|
* bool initializable,
|
|
18049
|
-
* bytes
|
|
18084
|
+
* bytes initializeCalldata
|
|
18050
18085
|
* )
|
|
18051
18086
|
*
|
|
18052
|
-
*
|
|
18087
|
+
* 0x3b315680 = keccak256('computeAddress(bytes32,bytes32,bool,bytes)')
|
|
18053
18088
|
*/
|
|
18054
|
-
"
|
|
18055
|
-
sig: "
|
|
18089
|
+
"0x3b315680": {
|
|
18090
|
+
sig: "computeAddress(bytes32,bytes32,bool,bytes)",
|
|
18056
18091
|
inputs: [
|
|
18057
18092
|
{ internalType: "bytes32", name: "byteCodeHash", type: "bytes32" },
|
|
18058
18093
|
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" },
|
|
18059
18094
|
{ internalType: "bool", name: "initializable", type: "bool" },
|
|
18060
|
-
{ internalType: "bytes", name: "
|
|
18095
|
+
{ internalType: "bytes", name: "initializeCalldata", type: "bytes" }
|
|
18061
18096
|
],
|
|
18062
|
-
name: "
|
|
18097
|
+
name: "computeAddress",
|
|
18063
18098
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
18064
18099
|
stateMutability: "view",
|
|
18065
18100
|
type: "function",
|
|
18066
18101
|
devdoc: {
|
|
18067
|
-
details: "
|
|
18102
|
+
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.",
|
|
18103
|
+
params: {
|
|
18104
|
+
byteCodeHash: "The keccak256 hash of the bytecode to be deployed",
|
|
18105
|
+
initializable: "A boolean that indicates whether an external call should be made to initialize the contract after deployment",
|
|
18106
|
+
initializeCalldata: "The calldata to be executed on the created contract if `initializable` is set to `true`",
|
|
18107
|
+
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"
|
|
18108
|
+
},
|
|
18109
|
+
returns: { _0: "The address where the contract will be deployed" }
|
|
18068
18110
|
}
|
|
18069
18111
|
},
|
|
18070
18112
|
/**
|
|
18071
|
-
* function
|
|
18072
|
-
* address
|
|
18113
|
+
* function computeERC1167Address(
|
|
18114
|
+
* address implementationContract,
|
|
18073
18115
|
* bytes32 providedSalt,
|
|
18074
18116
|
* bool initializable,
|
|
18075
|
-
* bytes
|
|
18117
|
+
* bytes initializeCalldata
|
|
18076
18118
|
* )
|
|
18077
18119
|
*
|
|
18078
|
-
*
|
|
18120
|
+
* 0xe888edcb = keccak256('computeERC1167Address(address,bytes32,bool,bytes)')
|
|
18079
18121
|
*/
|
|
18080
|
-
"
|
|
18081
|
-
sig: "
|
|
18122
|
+
"0xe888edcb": {
|
|
18123
|
+
sig: "computeERC1167Address(address,bytes32,bool,bytes)",
|
|
18082
18124
|
inputs: [
|
|
18083
|
-
{
|
|
18125
|
+
{
|
|
18126
|
+
internalType: "address",
|
|
18127
|
+
name: "implementationContract",
|
|
18128
|
+
type: "address"
|
|
18129
|
+
},
|
|
18084
18130
|
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" },
|
|
18085
18131
|
{ internalType: "bool", name: "initializable", type: "bool" },
|
|
18086
|
-
{ internalType: "bytes", name: "
|
|
18132
|
+
{ internalType: "bytes", name: "initializeCalldata", type: "bytes" }
|
|
18087
18133
|
],
|
|
18088
|
-
name: "
|
|
18134
|
+
name: "computeERC1167Address",
|
|
18089
18135
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
18090
18136
|
stateMutability: "view",
|
|
18091
18137
|
type: "function",
|
|
18092
18138
|
devdoc: {
|
|
18093
|
-
details: "
|
|
18139
|
+
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.",
|
|
18140
|
+
params: {
|
|
18141
|
+
implementationContract: "The contract to create a clone of according to ERC1167",
|
|
18142
|
+
initializable: "A boolean that indicates whether an external call should be made to initialize the proxy contract after deployment",
|
|
18143
|
+
initializeCalldata: "The calldata to be executed on the created contract if `initializable` is set to `true`",
|
|
18144
|
+
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"
|
|
18145
|
+
},
|
|
18146
|
+
returns: {
|
|
18147
|
+
_0: "The address where the ERC1167 proxy contract will be deployed"
|
|
18148
|
+
}
|
|
18094
18149
|
}
|
|
18095
18150
|
},
|
|
18096
18151
|
/**
|
|
@@ -18112,11 +18167,16 @@ const FunctionSelectors = {
|
|
|
18112
18167
|
stateMutability: "payable",
|
|
18113
18168
|
type: "function",
|
|
18114
18169
|
devdoc: {
|
|
18115
|
-
details: "Deploys a contract using
|
|
18170
|
+
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.",
|
|
18171
|
+
params: {
|
|
18172
|
+
byteCode: "The bytecode of the contract to be deployed",
|
|
18173
|
+
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"
|
|
18174
|
+
},
|
|
18175
|
+
returns: { _0: "The address of the deployed contract" }
|
|
18116
18176
|
}
|
|
18117
18177
|
},
|
|
18118
18178
|
/**
|
|
18119
|
-
* function
|
|
18179
|
+
* function deployCreate2AndInitialize(
|
|
18120
18180
|
* bytes byteCode,
|
|
18121
18181
|
* bytes32 providedSalt,
|
|
18122
18182
|
* bytes initializeCalldata,
|
|
@@ -18124,10 +18184,10 @@ const FunctionSelectors = {
|
|
|
18124
18184
|
* uint256 initializeCalldataMsgValue
|
|
18125
18185
|
* )
|
|
18126
18186
|
*
|
|
18127
|
-
*
|
|
18187
|
+
* 0xcdbd473a = keccak256('deployCreate2AndInitialize(bytes,bytes32,bytes,uint256,uint256)')
|
|
18128
18188
|
*/
|
|
18129
|
-
"
|
|
18130
|
-
sig: "
|
|
18189
|
+
"0xcdbd473a": {
|
|
18190
|
+
sig: "deployCreate2AndInitialize(bytes,bytes32,bytes,uint256,uint256)",
|
|
18131
18191
|
inputs: [
|
|
18132
18192
|
{ internalType: "bytes", name: "byteCode", type: "bytes" },
|
|
18133
18193
|
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" },
|
|
@@ -18143,82 +18203,117 @@ const FunctionSelectors = {
|
|
|
18143
18203
|
type: "uint256"
|
|
18144
18204
|
}
|
|
18145
18205
|
],
|
|
18146
|
-
name: "
|
|
18206
|
+
name: "deployCreate2AndInitialize",
|
|
18147
18207
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
18148
18208
|
stateMutability: "payable",
|
|
18149
18209
|
type: "function",
|
|
18150
18210
|
devdoc: {
|
|
18151
|
-
details: "Deploys a contract using
|
|
18211
|
+
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`.",
|
|
18212
|
+
params: {
|
|
18213
|
+
byteCode: "The bytecode of the contract to be deployed",
|
|
18214
|
+
constructorMsgValue: "The value sent to the contract during deployment",
|
|
18215
|
+
initializeCalldata: "The calldata to be executed on the created contract",
|
|
18216
|
+
initializeCalldataMsgValue: "The value sent to the contract during initialization",
|
|
18217
|
+
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"
|
|
18218
|
+
},
|
|
18219
|
+
returns: { _0: "The address of the deployed contract" }
|
|
18152
18220
|
}
|
|
18153
18221
|
},
|
|
18154
18222
|
/**
|
|
18155
|
-
* function
|
|
18156
|
-
* address
|
|
18223
|
+
* function deployERC1167Proxy(
|
|
18224
|
+
* address implementationContract,
|
|
18157
18225
|
* bytes32 providedSalt
|
|
18158
18226
|
* )
|
|
18159
18227
|
*
|
|
18160
|
-
*
|
|
18228
|
+
* 0x49d8abed = keccak256('deployERC1167Proxy(address,bytes32)')
|
|
18161
18229
|
*/
|
|
18162
|
-
"
|
|
18163
|
-
sig: "
|
|
18230
|
+
"0x49d8abed": {
|
|
18231
|
+
sig: "deployERC1167Proxy(address,bytes32)",
|
|
18164
18232
|
inputs: [
|
|
18165
|
-
{
|
|
18233
|
+
{
|
|
18234
|
+
internalType: "address",
|
|
18235
|
+
name: "implementationContract",
|
|
18236
|
+
type: "address"
|
|
18237
|
+
},
|
|
18166
18238
|
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" }
|
|
18167
18239
|
],
|
|
18168
|
-
name: "
|
|
18240
|
+
name: "deployERC1167Proxy",
|
|
18169
18241
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
18170
18242
|
stateMutability: "nonpayable",
|
|
18171
18243
|
type: "function",
|
|
18172
18244
|
devdoc: {
|
|
18173
|
-
details: "Deploys
|
|
18245
|
+
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.",
|
|
18246
|
+
params: {
|
|
18247
|
+
implementationContract: "The contract address to use as the base implementation behind the proxy that will be deployed",
|
|
18248
|
+
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"
|
|
18249
|
+
},
|
|
18250
|
+
returns: { _0: "The address of the minimal proxy deployed" }
|
|
18174
18251
|
}
|
|
18175
18252
|
},
|
|
18176
18253
|
/**
|
|
18177
|
-
* function
|
|
18178
|
-
* address
|
|
18254
|
+
* function deployERC1167ProxyAndInitialize(
|
|
18255
|
+
* address implementationContract,
|
|
18179
18256
|
* bytes32 providedSalt,
|
|
18180
18257
|
* bytes initializeCalldata
|
|
18181
18258
|
* )
|
|
18182
18259
|
*
|
|
18183
|
-
*
|
|
18260
|
+
* 0x5340165f = keccak256('deployERC1167ProxyAndInitialize(address,bytes32,bytes)')
|
|
18184
18261
|
*/
|
|
18185
|
-
"
|
|
18186
|
-
sig: "
|
|
18262
|
+
"0x5340165f": {
|
|
18263
|
+
sig: "deployERC1167ProxyAndInitialize(address,bytes32,bytes)",
|
|
18187
18264
|
inputs: [
|
|
18188
|
-
{
|
|
18265
|
+
{
|
|
18266
|
+
internalType: "address",
|
|
18267
|
+
name: "implementationContract",
|
|
18268
|
+
type: "address"
|
|
18269
|
+
},
|
|
18189
18270
|
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" },
|
|
18190
18271
|
{ internalType: "bytes", name: "initializeCalldata", type: "bytes" }
|
|
18191
18272
|
],
|
|
18192
|
-
name: "
|
|
18273
|
+
name: "deployERC1167ProxyAndInitialize",
|
|
18193
18274
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
18194
18275
|
stateMutability: "payable",
|
|
18195
18276
|
type: "function",
|
|
18196
18277
|
devdoc: {
|
|
18197
|
-
details: "Deploys
|
|
18278
|
+
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.",
|
|
18279
|
+
params: {
|
|
18280
|
+
implementationContract: "The contract address to use as the base implementation behind the proxy that will be deployed",
|
|
18281
|
+
initializeCalldata: "The calldata to be executed on the created contract",
|
|
18282
|
+
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"
|
|
18283
|
+
},
|
|
18284
|
+
returns: { _0: "The address of the minimal proxy deployed" }
|
|
18198
18285
|
}
|
|
18199
18286
|
},
|
|
18200
18287
|
/**
|
|
18201
18288
|
* function generateSalt(
|
|
18289
|
+
* bytes32 providedSalt,
|
|
18202
18290
|
* bool initializable,
|
|
18203
|
-
* bytes
|
|
18204
|
-
* bytes32 providedSalt
|
|
18291
|
+
* bytes initializeCalldata
|
|
18205
18292
|
* )
|
|
18206
18293
|
*
|
|
18207
|
-
*
|
|
18294
|
+
* 0x1a17ccbf = keccak256('generateSalt(bytes32,bool,bytes)')
|
|
18208
18295
|
*/
|
|
18209
|
-
"
|
|
18210
|
-
sig: "generateSalt(bool,bytes
|
|
18296
|
+
"0x1a17ccbf": {
|
|
18297
|
+
sig: "generateSalt(bytes32,bool,bytes)",
|
|
18211
18298
|
inputs: [
|
|
18299
|
+
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" },
|
|
18212
18300
|
{ internalType: "bool", name: "initializable", type: "bool" },
|
|
18213
|
-
{ internalType: "bytes", name: "
|
|
18214
|
-
{ internalType: "bytes32", name: "providedSalt", type: "bytes32" }
|
|
18301
|
+
{ internalType: "bytes", name: "initializeCalldata", type: "bytes" }
|
|
18215
18302
|
],
|
|
18216
18303
|
name: "generateSalt",
|
|
18217
18304
|
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
18218
18305
|
stateMutability: "pure",
|
|
18219
18306
|
type: "function",
|
|
18220
18307
|
devdoc: {
|
|
18221
|
-
details: "
|
|
18308
|
+
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.",
|
|
18309
|
+
params: {
|
|
18310
|
+
initializable: "The Boolean that specifies if the contract must be initialized or not",
|
|
18311
|
+
initializeCalldata: "The calldata to be executed on the created contract if `initializable` is set to `true`",
|
|
18312
|
+
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"
|
|
18313
|
+
},
|
|
18314
|
+
returns: {
|
|
18315
|
+
_0: "The generated salt which will be used for CREATE2 deployment"
|
|
18316
|
+
}
|
|
18222
18317
|
}
|
|
18223
18318
|
}
|
|
18224
18319
|
},
|
|
@@ -29846,7 +29941,7 @@ const FunctionSelectors = {
|
|
|
29846
29941
|
stateMutability: "view",
|
|
29847
29942
|
type: "function",
|
|
29848
29943
|
devdoc: {
|
|
29849
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
29944
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
29850
29945
|
}
|
|
29851
29946
|
},
|
|
29852
29947
|
/**
|
|
@@ -29862,7 +29957,7 @@ const FunctionSelectors = {
|
|
|
29862
29957
|
stateMutability: "nonpayable",
|
|
29863
29958
|
type: "function",
|
|
29864
29959
|
devdoc: {
|
|
29865
|
-
details: "Renounce ownership of the contract in a
|
|
29960
|
+
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."
|
|
29866
29961
|
}
|
|
29867
29962
|
},
|
|
29868
29963
|
/**
|
|
@@ -29952,9 +30047,7 @@ const FunctionSelectors = {
|
|
|
29952
30047
|
type: "function",
|
|
29953
30048
|
devdoc: {
|
|
29954
30049
|
details: "same as ILSP14.transferOwnership with the additional requirement: Requirements: - when notifying the new owner via LSP1, the typeId used MUST be keccak256('LSP9OwnershipTransferStarted')",
|
|
29955
|
-
params: {
|
|
29956
|
-
newOwner: "the address of the new owner. Requirements: - `newOwner` MUST NOT accept ownership of the contract in the same transaction."
|
|
29957
|
-
}
|
|
30050
|
+
params: { newOwner: "the address of the new owner." }
|
|
29958
30051
|
}
|
|
29959
30052
|
},
|
|
29960
30053
|
/**
|
|
@@ -30208,7 +30301,7 @@ const FunctionSelectors = {
|
|
|
30208
30301
|
stateMutability: "view",
|
|
30209
30302
|
type: "function",
|
|
30210
30303
|
devdoc: {
|
|
30211
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
30304
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
30212
30305
|
}
|
|
30213
30306
|
},
|
|
30214
30307
|
/**
|
|
@@ -30224,7 +30317,7 @@ const FunctionSelectors = {
|
|
|
30224
30317
|
stateMutability: "nonpayable",
|
|
30225
30318
|
type: "function",
|
|
30226
30319
|
devdoc: {
|
|
30227
|
-
details: "Renounce ownership of the contract in a
|
|
30320
|
+
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."
|
|
30228
30321
|
}
|
|
30229
30322
|
},
|
|
30230
30323
|
/**
|
|
@@ -30314,9 +30407,7 @@ const FunctionSelectors = {
|
|
|
30314
30407
|
type: "function",
|
|
30315
30408
|
devdoc: {
|
|
30316
30409
|
details: "same as ILSP14.transferOwnership with the additional requirement: Requirements: - when notifying the new owner via LSP1, the typeId used MUST be keccak256('LSP9OwnershipTransferStarted')",
|
|
30317
|
-
params: {
|
|
30318
|
-
newOwner: "the address of the new owner. Requirements: - `newOwner` MUST NOT accept ownership of the contract in the same transaction."
|
|
30319
|
-
}
|
|
30410
|
+
params: { newOwner: "the address of the new owner." }
|
|
30320
30411
|
}
|
|
30321
30412
|
},
|
|
30322
30413
|
/**
|
|
@@ -30548,7 +30639,8 @@ const FunctionSelectors = {
|
|
|
30548
30639
|
stateMutability: "nonpayable",
|
|
30549
30640
|
type: "function",
|
|
30550
30641
|
devdoc: {
|
|
30551
|
-
|
|
30642
|
+
"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')`.",
|
|
30643
|
+
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."
|
|
30552
30644
|
},
|
|
30553
30645
|
userdoc: {
|
|
30554
30646
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -30601,11 +30693,13 @@ const FunctionSelectors = {
|
|
|
30601
30693
|
stateMutability: "payable",
|
|
30602
30694
|
type: "function",
|
|
30603
30695
|
devdoc: {
|
|
30696
|
+
"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.",
|
|
30697
|
+
"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",
|
|
30604
30698
|
details: "Executes any call on other addresses.",
|
|
30605
30699
|
params: {
|
|
30606
|
-
data: "The call data to execute on `target`, or the bytecode of the contract to deploy
|
|
30607
|
-
operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
|
|
30608
|
-
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (
|
|
30700
|
+
data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
|
|
30701
|
+
operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
30702
|
+
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
30609
30703
|
value: "The amount of native tokens to transfer (in Wei)."
|
|
30610
30704
|
}
|
|
30611
30705
|
}
|
|
@@ -30637,12 +30731,14 @@ const FunctionSelectors = {
|
|
|
30637
30731
|
stateMutability: "payable",
|
|
30638
30732
|
type: "function",
|
|
30639
30733
|
devdoc: {
|
|
30734
|
+
"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.",
|
|
30735
|
+
"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",
|
|
30640
30736
|
details: "Generic batch executor function that executes any call on other addresses",
|
|
30641
30737
|
params: {
|
|
30642
|
-
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy
|
|
30643
|
-
operationsType: "The list of operations type used: CALL = 0
|
|
30644
|
-
targets: "The list of addresses to call. `targets` will be unused if a contract is created (
|
|
30645
|
-
values: "The list of native token amounts to transfer (in Wei)"
|
|
30738
|
+
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
|
|
30739
|
+
operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
30740
|
+
targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
30741
|
+
values: "The list of native token amounts to transfer (in Wei)."
|
|
30646
30742
|
}
|
|
30647
30743
|
}
|
|
30648
30744
|
},
|
|
@@ -30709,7 +30805,7 @@ const FunctionSelectors = {
|
|
|
30709
30805
|
stateMutability: "view",
|
|
30710
30806
|
type: "function",
|
|
30711
30807
|
devdoc: {
|
|
30712
|
-
details: "Handles two cases:
|
|
30808
|
+
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.",
|
|
30713
30809
|
params: {
|
|
30714
30810
|
dataHash: "The hash of the data to be validated.",
|
|
30715
30811
|
signature: "A signature that can validate the previous parameter (Hash)."
|
|
@@ -30719,7 +30815,7 @@ const FunctionSelectors = {
|
|
|
30719
30815
|
}
|
|
30720
30816
|
},
|
|
30721
30817
|
userdoc: {
|
|
30722
|
-
notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
|
|
30818
|
+
notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
|
|
30723
30819
|
}
|
|
30724
30820
|
},
|
|
30725
30821
|
/**
|
|
@@ -30749,7 +30845,7 @@ const FunctionSelectors = {
|
|
|
30749
30845
|
stateMutability: "view",
|
|
30750
30846
|
type: "function",
|
|
30751
30847
|
devdoc: {
|
|
30752
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
30848
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
30753
30849
|
}
|
|
30754
30850
|
},
|
|
30755
30851
|
/**
|
|
@@ -30765,7 +30861,8 @@ const FunctionSelectors = {
|
|
|
30765
30861
|
stateMutability: "nonpayable",
|
|
30766
30862
|
type: "function",
|
|
30767
30863
|
devdoc: {
|
|
30768
|
-
|
|
30864
|
+
"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.",
|
|
30865
|
+
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"
|
|
30769
30866
|
},
|
|
30770
30867
|
userdoc: {
|
|
30771
30868
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
|
|
@@ -30790,10 +30887,12 @@ const FunctionSelectors = {
|
|
|
30790
30887
|
stateMutability: "payable",
|
|
30791
30888
|
type: "function",
|
|
30792
30889
|
devdoc: {
|
|
30890
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
|
|
30891
|
+
"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",
|
|
30793
30892
|
details: "Sets singular data for a given `dataKey`",
|
|
30794
30893
|
params: {
|
|
30795
30894
|
dataKey: "The key to retrieve stored value",
|
|
30796
|
-
dataValue: "The value to set
|
|
30895
|
+
dataValue: "The value to set"
|
|
30797
30896
|
}
|
|
30798
30897
|
}
|
|
30799
30898
|
},
|
|
@@ -30816,10 +30915,12 @@ const FunctionSelectors = {
|
|
|
30816
30915
|
stateMutability: "payable",
|
|
30817
30916
|
type: "function",
|
|
30818
30917
|
devdoc: {
|
|
30918
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
|
|
30919
|
+
"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",
|
|
30819
30920
|
details: "Sets array of data for multiple given `dataKeys`",
|
|
30820
30921
|
params: {
|
|
30821
30922
|
dataKeys: "The array of data keys for values to set",
|
|
30822
|
-
dataValues: "The array of values to set
|
|
30923
|
+
dataValues: "The array of values to set"
|
|
30823
30924
|
}
|
|
30824
30925
|
}
|
|
30825
30926
|
},
|
|
@@ -30846,7 +30947,7 @@ const FunctionSelectors = {
|
|
|
30846
30947
|
},
|
|
30847
30948
|
/**
|
|
30848
30949
|
* function transferOwnership(
|
|
30849
|
-
* address
|
|
30950
|
+
* address pendingNewOwner
|
|
30850
30951
|
* )
|
|
30851
30952
|
*
|
|
30852
30953
|
* 0xf2fde38b = keccak256('transferOwnership(address)')
|
|
@@ -30854,17 +30955,16 @@ const FunctionSelectors = {
|
|
|
30854
30955
|
"0xf2fde38b": {
|
|
30855
30956
|
sig: "transferOwnership(address)",
|
|
30856
30957
|
inputs: [
|
|
30857
|
-
{ internalType: "address", name: "
|
|
30958
|
+
{ internalType: "address", name: "pendingNewOwner", type: "address" }
|
|
30858
30959
|
],
|
|
30859
30960
|
name: "transferOwnership",
|
|
30860
30961
|
outputs: [],
|
|
30861
30962
|
stateMutability: "nonpayable",
|
|
30862
30963
|
type: "function",
|
|
30863
30964
|
devdoc: {
|
|
30864
|
-
|
|
30865
|
-
|
|
30866
|
-
|
|
30867
|
-
}
|
|
30965
|
+
"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.",
|
|
30966
|
+
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.",
|
|
30967
|
+
params: { pendingNewOwner: "The address of the new pending owner." }
|
|
30868
30968
|
},
|
|
30869
30969
|
userdoc: {
|
|
30870
30970
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -30891,7 +30991,8 @@ const FunctionSelectors = {
|
|
|
30891
30991
|
stateMutability: "payable",
|
|
30892
30992
|
type: "function",
|
|
30893
30993
|
devdoc: {
|
|
30894
|
-
|
|
30994
|
+
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
|
|
30995
|
+
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.",
|
|
30895
30996
|
params: {
|
|
30896
30997
|
receivedData: "The data received.",
|
|
30897
30998
|
typeId: "The type of call received."
|
|
@@ -30901,7 +31002,7 @@ const FunctionSelectors = {
|
|
|
30901
31002
|
}
|
|
30902
31003
|
},
|
|
30903
31004
|
userdoc: {
|
|
30904
|
-
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."
|
|
31005
|
+
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."
|
|
30905
31006
|
}
|
|
30906
31007
|
}
|
|
30907
31008
|
},
|
|
@@ -30945,7 +31046,8 @@ const FunctionSelectors = {
|
|
|
30945
31046
|
stateMutability: "nonpayable",
|
|
30946
31047
|
type: "function",
|
|
30947
31048
|
devdoc: {
|
|
30948
|
-
|
|
31049
|
+
"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')`.",
|
|
31050
|
+
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."
|
|
30949
31051
|
},
|
|
30950
31052
|
userdoc: {
|
|
30951
31053
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -30998,11 +31100,13 @@ const FunctionSelectors = {
|
|
|
30998
31100
|
stateMutability: "payable",
|
|
30999
31101
|
type: "function",
|
|
31000
31102
|
devdoc: {
|
|
31103
|
+
"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.",
|
|
31104
|
+
"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",
|
|
31001
31105
|
details: "Executes any call on other addresses.",
|
|
31002
31106
|
params: {
|
|
31003
|
-
data: "The call data to execute on `target`, or the bytecode of the contract to deploy
|
|
31004
|
-
operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
|
|
31005
|
-
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (
|
|
31107
|
+
data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
|
|
31108
|
+
operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
31109
|
+
target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
31006
31110
|
value: "The amount of native tokens to transfer (in Wei)."
|
|
31007
31111
|
}
|
|
31008
31112
|
}
|
|
@@ -31034,12 +31138,14 @@ const FunctionSelectors = {
|
|
|
31034
31138
|
stateMutability: "payable",
|
|
31035
31139
|
type: "function",
|
|
31036
31140
|
devdoc: {
|
|
31141
|
+
"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.",
|
|
31142
|
+
"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",
|
|
31037
31143
|
details: "Generic batch executor function that executes any call on other addresses",
|
|
31038
31144
|
params: {
|
|
31039
|
-
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy
|
|
31040
|
-
operationsType: "The list of operations type used: CALL = 0
|
|
31041
|
-
targets: "The list of addresses to call. `targets` will be unused if a contract is created (
|
|
31042
|
-
values: "The list of native token amounts to transfer (in Wei)"
|
|
31145
|
+
datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
|
|
31146
|
+
operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
|
|
31147
|
+
targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
|
|
31148
|
+
values: "The list of native token amounts to transfer (in Wei)."
|
|
31043
31149
|
}
|
|
31044
31150
|
}
|
|
31045
31151
|
},
|
|
@@ -31089,22 +31195,25 @@ const FunctionSelectors = {
|
|
|
31089
31195
|
},
|
|
31090
31196
|
/**
|
|
31091
31197
|
* function initialize(
|
|
31092
|
-
* address
|
|
31198
|
+
* address initialOwner
|
|
31093
31199
|
* )
|
|
31094
31200
|
*
|
|
31095
31201
|
* 0xc4d66de8 = keccak256('initialize(address)')
|
|
31096
31202
|
*/
|
|
31097
31203
|
"0xc4d66de8": {
|
|
31098
31204
|
sig: "initialize(address)",
|
|
31099
|
-
inputs: [
|
|
31205
|
+
inputs: [
|
|
31206
|
+
{ internalType: "address", name: "initialOwner", type: "address" }
|
|
31207
|
+
],
|
|
31100
31208
|
name: "initialize",
|
|
31101
31209
|
outputs: [],
|
|
31102
31210
|
stateMutability: "payable",
|
|
31103
31211
|
type: "function",
|
|
31104
|
-
devdoc: {
|
|
31105
|
-
|
|
31106
|
-
|
|
31107
|
-
}
|
|
31212
|
+
devdoc: {
|
|
31213
|
+
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.",
|
|
31214
|
+
params: { initialOwner: "the owner of the contract" }
|
|
31215
|
+
},
|
|
31216
|
+
userdoc: { notice: "Initializing the contract owner to: `initialOwner`" }
|
|
31108
31217
|
},
|
|
31109
31218
|
/**
|
|
31110
31219
|
* function isValidSignature(
|
|
@@ -31125,7 +31234,7 @@ const FunctionSelectors = {
|
|
|
31125
31234
|
stateMutability: "view",
|
|
31126
31235
|
type: "function",
|
|
31127
31236
|
devdoc: {
|
|
31128
|
-
details: "Handles two cases:
|
|
31237
|
+
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.",
|
|
31129
31238
|
params: {
|
|
31130
31239
|
dataHash: "The hash of the data to be validated.",
|
|
31131
31240
|
signature: "A signature that can validate the previous parameter (Hash)."
|
|
@@ -31135,7 +31244,7 @@ const FunctionSelectors = {
|
|
|
31135
31244
|
}
|
|
31136
31245
|
},
|
|
31137
31246
|
userdoc: {
|
|
31138
|
-
notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
|
|
31247
|
+
notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
|
|
31139
31248
|
}
|
|
31140
31249
|
},
|
|
31141
31250
|
/**
|
|
@@ -31165,7 +31274,7 @@ const FunctionSelectors = {
|
|
|
31165
31274
|
stateMutability: "view",
|
|
31166
31275
|
type: "function",
|
|
31167
31276
|
devdoc: {
|
|
31168
|
-
details: "The address that ownership of the contract is transferred to. This address may use
|
|
31277
|
+
details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
|
|
31169
31278
|
}
|
|
31170
31279
|
},
|
|
31171
31280
|
/**
|
|
@@ -31181,7 +31290,8 @@ const FunctionSelectors = {
|
|
|
31181
31290
|
stateMutability: "nonpayable",
|
|
31182
31291
|
type: "function",
|
|
31183
31292
|
devdoc: {
|
|
31184
|
-
|
|
31293
|
+
"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.",
|
|
31294
|
+
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"
|
|
31185
31295
|
},
|
|
31186
31296
|
userdoc: {
|
|
31187
31297
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
|
|
@@ -31206,10 +31316,12 @@ const FunctionSelectors = {
|
|
|
31206
31316
|
stateMutability: "payable",
|
|
31207
31317
|
type: "function",
|
|
31208
31318
|
devdoc: {
|
|
31319
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
|
|
31320
|
+
"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",
|
|
31209
31321
|
details: "Sets singular data for a given `dataKey`",
|
|
31210
31322
|
params: {
|
|
31211
31323
|
dataKey: "The key to retrieve stored value",
|
|
31212
|
-
dataValue: "The value to set
|
|
31324
|
+
dataValue: "The value to set"
|
|
31213
31325
|
}
|
|
31214
31326
|
}
|
|
31215
31327
|
},
|
|
@@ -31232,10 +31344,12 @@ const FunctionSelectors = {
|
|
|
31232
31344
|
stateMutability: "payable",
|
|
31233
31345
|
type: "function",
|
|
31234
31346
|
devdoc: {
|
|
31347
|
+
"custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
|
|
31348
|
+
"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",
|
|
31235
31349
|
details: "Sets array of data for multiple given `dataKeys`",
|
|
31236
31350
|
params: {
|
|
31237
31351
|
dataKeys: "The array of data keys for values to set",
|
|
31238
|
-
dataValues: "The array of values to set
|
|
31352
|
+
dataValues: "The array of values to set"
|
|
31239
31353
|
}
|
|
31240
31354
|
}
|
|
31241
31355
|
},
|
|
@@ -31262,7 +31376,7 @@ const FunctionSelectors = {
|
|
|
31262
31376
|
},
|
|
31263
31377
|
/**
|
|
31264
31378
|
* function transferOwnership(
|
|
31265
|
-
* address
|
|
31379
|
+
* address pendingNewOwner
|
|
31266
31380
|
* )
|
|
31267
31381
|
*
|
|
31268
31382
|
* 0xf2fde38b = keccak256('transferOwnership(address)')
|
|
@@ -31270,17 +31384,16 @@ const FunctionSelectors = {
|
|
|
31270
31384
|
"0xf2fde38b": {
|
|
31271
31385
|
sig: "transferOwnership(address)",
|
|
31272
31386
|
inputs: [
|
|
31273
|
-
{ internalType: "address", name: "
|
|
31387
|
+
{ internalType: "address", name: "pendingNewOwner", type: "address" }
|
|
31274
31388
|
],
|
|
31275
31389
|
name: "transferOwnership",
|
|
31276
31390
|
outputs: [],
|
|
31277
31391
|
stateMutability: "nonpayable",
|
|
31278
31392
|
type: "function",
|
|
31279
31393
|
devdoc: {
|
|
31280
|
-
|
|
31281
|
-
|
|
31282
|
-
|
|
31283
|
-
}
|
|
31394
|
+
"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.",
|
|
31395
|
+
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.",
|
|
31396
|
+
params: { pendingNewOwner: "The address of the new pending owner." }
|
|
31284
31397
|
},
|
|
31285
31398
|
userdoc: {
|
|
31286
31399
|
notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
|
|
@@ -31307,7 +31420,8 @@ const FunctionSelectors = {
|
|
|
31307
31420
|
stateMutability: "payable",
|
|
31308
31421
|
type: "function",
|
|
31309
31422
|
devdoc: {
|
|
31310
|
-
|
|
31423
|
+
"custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
|
|
31424
|
+
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.",
|
|
31311
31425
|
params: {
|
|
31312
31426
|
receivedData: "The data received.",
|
|
31313
31427
|
typeId: "The type of call received."
|
|
@@ -31317,13 +31431,27 @@ const FunctionSelectors = {
|
|
|
31317
31431
|
}
|
|
31318
31432
|
},
|
|
31319
31433
|
userdoc: {
|
|
31320
|
-
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."
|
|
31434
|
+
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."
|
|
31321
31435
|
}
|
|
31322
31436
|
}
|
|
31323
31437
|
}
|
|
31324
31438
|
};
|
|
31325
31439
|
const ContractsDocs = {};
|
|
31326
31440
|
const StateVariables = {
|
|
31441
|
+
LSP16UniversalFactory: {
|
|
31442
|
+
/**
|
|
31443
|
+
* stateVariable _EMPTY_BYTE()
|
|
31444
|
+
*
|
|
31445
|
+
* 0x3bc60789 = keccak256('_EMPTY_BYTE()')
|
|
31446
|
+
*/
|
|
31447
|
+
"0x3bc60789": {
|
|
31448
|
+
sig: "_EMPTY_BYTE()",
|
|
31449
|
+
type: "stateVariable",
|
|
31450
|
+
devdoc: {
|
|
31451
|
+
details: "placeholder for the `initializeCallData` param when the `initializable` boolean is set to `false`."
|
|
31452
|
+
}
|
|
31453
|
+
}
|
|
31454
|
+
},
|
|
31327
31455
|
LSP8CompatibleERC721: {
|
|
31328
31456
|
/**
|
|
31329
31457
|
* stateVariable _operatorApprovals()
|