@lukso/lsp-smart-contracts 0.10.1 → 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.
Files changed (124) hide show
  1. package/README.md +0 -1
  2. package/artifacts/Create2Factory.json +2 -2
  3. package/artifacts/LSP0ERC725Account.json +3 -3
  4. package/artifacts/LSP0ERC725AccountInit.json +3 -3
  5. package/artifacts/LSP11BasicSocialRecovery.json +2 -2
  6. package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
  7. package/artifacts/LSP16UniversalFactory.json +2 -2
  8. package/artifacts/LSP1UniversalReceiverDelegateUP.json +2 -2
  9. package/artifacts/LSP1UniversalReceiverDelegateVault.json +2 -2
  10. package/artifacts/LSP6KeyManager.json +2 -2
  11. package/artifacts/LSP6KeyManagerInit.json +2 -2
  12. package/artifacts/LSP7CompatibleERC20Mintable.json +2 -2
  13. package/artifacts/LSP7CompatibleERC20MintableInit.json +2 -2
  14. package/artifacts/LSP7Mintable.json +2 -2
  15. package/artifacts/LSP7MintableInit.json +2 -2
  16. package/artifacts/LSP8CompatibleERC721Mintable.json +2 -2
  17. package/artifacts/LSP8CompatibleERC721MintableInit.json +2 -2
  18. package/artifacts/LSP8Mintable.json +2 -2
  19. package/artifacts/LSP8MintableInit.json +2 -2
  20. package/artifacts/LSP9Vault.json +2 -2
  21. package/artifacts/LSP9VaultInit.json +2 -2
  22. package/artifacts/UniversalProfile.json +3 -3
  23. package/artifacts/UniversalProfileInit.json +3 -3
  24. package/artifacts/UniversalReceiverAddressStore.json +2 -2
  25. package/contracts/Factories/Create2Factory.sol +11 -3
  26. package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +13 -5
  27. package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +5 -5
  28. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +256 -186
  29. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +6 -2
  30. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +13 -4
  31. package/contracts/LSP0ERC725Account/LSP0Utils.sol +3 -5
  32. package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +25 -10
  33. package/contracts/LSP11BasicSocialRecovery/ILSP11BasicSocialRecovery.sol +4 -2
  34. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.sol +3 -1
  35. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +65 -23
  36. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.sol +7 -2
  37. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInitAbstract.sol +14 -4
  38. package/contracts/LSP11BasicSocialRecovery/LSP11Errors.sol +4 -1
  39. package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +17 -16
  40. package/contracts/LSP14Ownable2Step/LSP14Errors.sol +4 -1
  41. package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +22 -11
  42. package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +85 -27
  43. package/contracts/LSP17ContractExtension/LSP17Extendable.sol +38 -16
  44. package/contracts/LSP17ContractExtension/LSP17Extension.sol +20 -8
  45. package/contracts/LSP17ContractExtension/LSP17Utils.sol +4 -5
  46. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +5 -5
  47. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +38 -14
  48. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +31 -11
  49. package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +34 -9
  50. package/contracts/LSP20CallVerification/{ILSP20CallVerification.sol → ILSP20CallVerifier.sol} +7 -2
  51. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +24 -9
  52. package/contracts/LSP20CallVerification/LSP20Errors.sol +1 -1
  53. package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +62 -36
  54. package/contracts/LSP4DigitalAssetMetadata/ILSP4Compatibility.sol +3 -1
  55. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +15 -4
  56. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +18 -5
  57. package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +32 -12
  58. package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +17 -8
  59. package/contracts/LSP6KeyManager/LSP6Constants.sol +3 -9
  60. package/contracts/LSP6KeyManager/LSP6Errors.sol +4 -1
  61. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +114 -72
  62. package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +7 -2
  63. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +96 -46
  64. package/contracts/LSP6KeyManager/LSP6Modules/LSP6OwnershipModule.sol +10 -5
  65. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +98 -32
  66. package/contracts/LSP6KeyManager/LSP6Utils.sol +42 -34
  67. package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +8 -6
  68. package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +13 -10
  69. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +96 -26
  70. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +11 -9
  71. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +8 -2
  72. package/contracts/LSP7DigitalAsset/extensions/ILSP7CompatibleERC20.sol +9 -2
  73. package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +1 -5
  74. package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +4 -6
  75. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +6 -2
  76. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +32 -12
  77. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +28 -7
  78. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +8 -2
  79. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +6 -2
  80. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +6 -1
  81. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +13 -3
  82. package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +14 -5
  83. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +3 -1
  84. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +12 -10
  85. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +95 -28
  86. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +14 -10
  87. package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +23 -10
  88. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +3 -1
  89. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +3 -1
  90. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +6 -2
  91. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +72 -30
  92. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +77 -27
  93. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +6 -2
  94. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +6 -2
  95. package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +3 -1
  96. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +8 -2
  97. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +6 -2
  98. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +3 -1
  99. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +5 -1
  100. package/contracts/LSP9Vault/ILSP9Vault.sol +13 -5
  101. package/contracts/LSP9Vault/LSP9Vault.sol +7 -2
  102. package/contracts/LSP9Vault/LSP9VaultCore.sol +108 -51
  103. package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +10 -3
  104. package/contracts/Legacy/Registries/AddressRegistry.sol +13 -4
  105. package/contracts/Legacy/Registries/AddressRegistryRequiresERC725.sol +6 -2
  106. package/contracts/Legacy/UniversalReceiverAddressStore.sol +17 -6
  107. package/contracts/UniversalProfile.sol +4 -1
  108. package/contracts/UniversalProfileInit.sol +3 -1
  109. package/contracts/UniversalProfileInitAbstract.sol +13 -4
  110. package/devdocs/LSP0ERC725Account.json +33 -19
  111. package/devdocs/LSP0ERC725AccountInit.json +30 -17
  112. package/devdocs/LSP9Vault.json +3 -3
  113. package/devdocs/LSP9VaultInit.json +3 -3
  114. package/devdocs/UniversalProfile.json +30 -17
  115. package/devdocs/UniversalProfileInit.json +30 -17
  116. package/dist/constants.cjs.js +142 -102
  117. package/dist/constants.d.ts +62 -10
  118. package/dist/constants.es.js +142 -102
  119. package/package.json +17 -16
  120. package/userdocs/LSP0ERC725Account.json +2 -2
  121. package/userdocs/LSP0ERC725AccountInit.json +2 -2
  122. package/userdocs/UniversalProfile.json +2 -2
  123. package/userdocs/UniversalProfileInit.json +2 -2
  124. package/contracts/Custom/EIP191Signer.sol +0 -12
@@ -239,7 +239,8 @@ const ErrorSelectors = {
239
239
  {
240
240
  details: "reverts when the call to the owner does not return the magic value",
241
241
  params: {
242
- postCall: "The data returned by the call to the logic verifier"
242
+ postCall: "True if the execution call was done, False otherwise",
243
+ returnedData: "The data returned by the call to the logic verifier"
243
244
  }
244
245
  }
245
246
  ]
@@ -531,7 +532,8 @@ const ErrorSelectors = {
531
532
  {
532
533
  details: "reverts when the call to the owner does not return the magic value",
533
534
  params: {
534
- postCall: "The data returned by the call to the logic verifier"
535
+ postCall: "True if the execution call was done, False otherwise",
536
+ returnedData: "The data returned by the call to the logic verifier"
535
537
  }
536
538
  }
537
539
  ]
@@ -9131,7 +9133,8 @@ const ErrorSelectors = {
9131
9133
  {
9132
9134
  details: "reverts when the call to the owner does not return the magic value",
9133
9135
  params: {
9134
- postCall: "The data returned by the call to the logic verifier"
9136
+ postCall: "True if the execution call was done, False otherwise",
9137
+ returnedData: "The data returned by the call to the logic verifier"
9135
9138
  }
9136
9139
  }
9137
9140
  ]
@@ -9423,7 +9426,8 @@ const ErrorSelectors = {
9423
9426
  {
9424
9427
  details: "reverts when the call to the owner does not return the magic value",
9425
9428
  params: {
9426
- postCall: "The data returned by the call to the logic verifier"
9429
+ postCall: "True if the execution call was done, False otherwise",
9430
+ returnedData: "The data returned by the call to the logic verifier"
9427
9431
  }
9428
9432
  }
9429
9433
  ]
@@ -16591,7 +16595,8 @@ const FunctionSelectors = {
16591
16595
  stateMutability: "nonpayable",
16592
16596
  type: "function",
16593
16597
  devdoc: {
16594
- 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. 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')."
16598
+ "custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
16599
+ details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
16595
16600
  },
16596
16601
  userdoc: {
16597
16602
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -16644,11 +16649,13 @@ const FunctionSelectors = {
16644
16649
  stateMutability: "payable",
16645
16650
  type: "function",
16646
16651
  devdoc: {
16652
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
16653
+ "custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
16647
16654
  details: "Executes any call on other addresses.",
16648
16655
  params: {
16649
- data: "The call data to execute on `target`, or the bytecode of the contract to deploy 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 Emits a {Executed} event, when a call is executed under `operationType` 0, 3 and 4 Emits a {ContractCreated} event, when a contract is created under `operationType` 1 and 2 Emits a {ValueReceived} event when receiving native tokens.",
16650
- operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
16651
- target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (operation 1 and 2)",
16656
+ data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
16657
+ operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
16658
+ target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
16652
16659
  value: "The amount of native tokens to transfer (in Wei)."
16653
16660
  }
16654
16661
  }
@@ -16680,12 +16687,14 @@ const FunctionSelectors = {
16680
16687
  stateMutability: "payable",
16681
16688
  type: "function",
16682
16689
  devdoc: {
16690
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
16691
+ "custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
16683
16692
  details: "Generic batch executor function that executes any call on other addresses",
16684
16693
  params: {
16685
- datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy 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 Emits a {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) Emits a {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) Emits a {ValueReceived} event when receiving native tokens.",
16686
- operationsType: "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
16687
- targets: "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
16688
- values: "The list of native token amounts to transfer (in Wei)"
16694
+ datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
16695
+ operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
16696
+ targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
16697
+ values: "The list of native token amounts to transfer (in Wei)."
16689
16698
  }
16690
16699
  }
16691
16700
  },
@@ -16752,7 +16761,7 @@ const FunctionSelectors = {
16752
16761
  stateMutability: "view",
16753
16762
  type: "function",
16754
16763
  devdoc: {
16755
- details: "Handles two cases: - 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. - 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.",
16764
+ details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue if the address recovered is the same as the owner, indicating that it was a valid signature. - If the address is different, it returns the fail value indicating that the signature is not valid. 2. If the owner is a smart contract, it forwards the call of {isValidSignature()} to the owner contract: - If the contract fails or returns the fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
16756
16765
  params: {
16757
16766
  dataHash: "The hash of the data to be validated.",
16758
16767
  signature: "A signature that can validate the previous parameter (Hash)."
@@ -16762,7 +16771,7 @@ const FunctionSelectors = {
16762
16771
  }
16763
16772
  },
16764
16773
  userdoc: {
16765
- notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
16774
+ notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
16766
16775
  }
16767
16776
  },
16768
16777
  /**
@@ -16792,7 +16801,7 @@ const FunctionSelectors = {
16792
16801
  stateMutability: "view",
16793
16802
  type: "function",
16794
16803
  devdoc: {
16795
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
16804
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
16796
16805
  }
16797
16806
  },
16798
16807
  /**
@@ -16808,7 +16817,8 @@ const FunctionSelectors = {
16808
16817
  stateMutability: "nonpayable",
16809
16818
  type: "function",
16810
16819
  devdoc: {
16811
- 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 WARNING: 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."
16820
+ "custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
16821
+ details: "Renounce ownership of the contract in a 2-step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
16812
16822
  },
16813
16823
  userdoc: {
16814
16824
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
@@ -16833,10 +16843,12 @@ const FunctionSelectors = {
16833
16843
  stateMutability: "payable",
16834
16844
  type: "function",
16835
16845
  devdoc: {
16846
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
16847
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
16836
16848
  details: "Sets singular data for a given `dataKey`",
16837
16849
  params: {
16838
16850
  dataKey: "The key to retrieve stored value",
16839
- dataValue: "The value to set 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 Emits a {ValueReceived} event when receiving native tokens. Emits a {DataChanged} event."
16851
+ dataValue: "The value to set"
16840
16852
  }
16841
16853
  }
16842
16854
  },
@@ -16859,10 +16871,12 @@ const FunctionSelectors = {
16859
16871
  stateMutability: "payable",
16860
16872
  type: "function",
16861
16873
  devdoc: {
16874
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
16875
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
16862
16876
  details: "Sets array of data for multiple given `dataKeys`",
16863
16877
  params: {
16864
16878
  dataKeys: "The array of data keys for values to set",
16865
- dataValues: "The array of values to set 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 Emits a {ValueReceived} event when receiving native tokens. Emits a {DataChanged} event. (on each iteration of setting data)"
16879
+ dataValues: "The array of values to set"
16866
16880
  }
16867
16881
  }
16868
16882
  },
@@ -16889,7 +16903,7 @@ const FunctionSelectors = {
16889
16903
  },
16890
16904
  /**
16891
16905
  * function transferOwnership(
16892
- * address _pendingOwner
16906
+ * address pendingNewOwner
16893
16907
  * )
16894
16908
  *
16895
16909
  * 0xf2fde38b = keccak256('transferOwnership(address)')
@@ -16897,17 +16911,16 @@ const FunctionSelectors = {
16897
16911
  "0xf2fde38b": {
16898
16912
  sig: "transferOwnership(address)",
16899
16913
  inputs: [
16900
- { internalType: "address", name: "_pendingOwner", type: "address" }
16914
+ { internalType: "address", name: "pendingNewOwner", type: "address" }
16901
16915
  ],
16902
16916
  name: "transferOwnership",
16903
16917
  outputs: [],
16904
16918
  stateMutability: "nonpayable",
16905
16919
  type: "function",
16906
16920
  devdoc: {
16907
- details: "Sets the pending owner address as an address that should call {acceptOwnership} in order to complete the ownership transfer of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver} on the pending owner if it's an address that supports LSP1.",
16908
- params: {
16909
- _pendingOwner: "The address of the new pending owner. 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."
16910
- }
16921
+ "custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
16922
+ details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
16923
+ params: { pendingNewOwner: "The address of the new pending owner." }
16911
16924
  },
16912
16925
  userdoc: {
16913
16926
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -16934,7 +16947,8 @@ const FunctionSelectors = {
16934
16947
  stateMutability: "payable",
16935
16948
  type: "function",
16936
16949
  devdoc: {
16937
- details: "The function performs the following steps: - Emits {ValueReceived} when receiving native tokens. - 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. - 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. - Emits a {UniversalReceiver} event.",
16950
+ "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
16951
+ details: "The function performs the following steps: 1. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]`. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
16938
16952
  params: {
16939
16953
  receivedData: "The data received.",
16940
16954
  typeId: "The type of call received."
@@ -16944,7 +16958,7 @@ const FunctionSelectors = {
16944
16958
  }
16945
16959
  },
16946
16960
  userdoc: {
16947
- notice: "Achieves the goal of LSP1-UniversalReceiver by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
16961
+ notice: "Achieves the goal of [LSP1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
16948
16962
  }
16949
16963
  }
16950
16964
  },
@@ -16988,7 +17002,8 @@ const FunctionSelectors = {
16988
17002
  stateMutability: "nonpayable",
16989
17003
  type: "function",
16990
17004
  devdoc: {
16991
- 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. 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')."
17005
+ "custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
17006
+ details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
16992
17007
  },
16993
17008
  userdoc: {
16994
17009
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -17041,11 +17056,13 @@ const FunctionSelectors = {
17041
17056
  stateMutability: "payable",
17042
17057
  type: "function",
17043
17058
  devdoc: {
17059
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
17060
+ "custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
17044
17061
  details: "Executes any call on other addresses.",
17045
17062
  params: {
17046
- data: "The call data to execute on `target`, or the bytecode of the contract to deploy 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 Emits a {Executed} event, when a call is executed under `operationType` 0, 3 and 4 Emits a {ContractCreated} event, when a contract is created under `operationType` 1 and 2 Emits a {ValueReceived} event when receiving native tokens.",
17047
- operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
17048
- target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (operation 1 and 2)",
17063
+ data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
17064
+ operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
17065
+ target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
17049
17066
  value: "The amount of native tokens to transfer (in Wei)."
17050
17067
  }
17051
17068
  }
@@ -17077,12 +17094,14 @@ const FunctionSelectors = {
17077
17094
  stateMutability: "payable",
17078
17095
  type: "function",
17079
17096
  devdoc: {
17097
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
17098
+ "custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
17080
17099
  details: "Generic batch executor function that executes any call on other addresses",
17081
17100
  params: {
17082
- datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy 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 Emits a {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) Emits a {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) Emits a {ValueReceived} event when receiving native tokens.",
17083
- operationsType: "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
17084
- targets: "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
17085
- values: "The list of native token amounts to transfer (in Wei)"
17101
+ datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
17102
+ operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
17103
+ targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
17104
+ values: "The list of native token amounts to transfer (in Wei)."
17086
17105
  }
17087
17106
  }
17088
17107
  },
@@ -17171,7 +17190,7 @@ const FunctionSelectors = {
17171
17190
  stateMutability: "view",
17172
17191
  type: "function",
17173
17192
  devdoc: {
17174
- details: "Handles two cases: - 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. - 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.",
17193
+ details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue if the address recovered is the same as the owner, indicating that it was a valid signature. - If the address is different, it returns the fail value indicating that the signature is not valid. 2. If the owner is a smart contract, it forwards the call of {isValidSignature()} to the owner contract: - If the contract fails or returns the fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
17175
17194
  params: {
17176
17195
  dataHash: "The hash of the data to be validated.",
17177
17196
  signature: "A signature that can validate the previous parameter (Hash)."
@@ -17181,7 +17200,7 @@ const FunctionSelectors = {
17181
17200
  }
17182
17201
  },
17183
17202
  userdoc: {
17184
- notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
17203
+ notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
17185
17204
  }
17186
17205
  },
17187
17206
  /**
@@ -17211,7 +17230,7 @@ const FunctionSelectors = {
17211
17230
  stateMutability: "view",
17212
17231
  type: "function",
17213
17232
  devdoc: {
17214
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
17233
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
17215
17234
  }
17216
17235
  },
17217
17236
  /**
@@ -17227,7 +17246,8 @@ const FunctionSelectors = {
17227
17246
  stateMutability: "nonpayable",
17228
17247
  type: "function",
17229
17248
  devdoc: {
17230
- 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 WARNING: 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."
17249
+ "custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
17250
+ details: "Renounce ownership of the contract in a 2-step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
17231
17251
  },
17232
17252
  userdoc: {
17233
17253
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
@@ -17252,10 +17272,12 @@ const FunctionSelectors = {
17252
17272
  stateMutability: "payable",
17253
17273
  type: "function",
17254
17274
  devdoc: {
17275
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
17276
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
17255
17277
  details: "Sets singular data for a given `dataKey`",
17256
17278
  params: {
17257
17279
  dataKey: "The key to retrieve stored value",
17258
- dataValue: "The value to set 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 Emits a {ValueReceived} event when receiving native tokens. Emits a {DataChanged} event."
17280
+ dataValue: "The value to set"
17259
17281
  }
17260
17282
  }
17261
17283
  },
@@ -17278,10 +17300,12 @@ const FunctionSelectors = {
17278
17300
  stateMutability: "payable",
17279
17301
  type: "function",
17280
17302
  devdoc: {
17303
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
17304
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
17281
17305
  details: "Sets array of data for multiple given `dataKeys`",
17282
17306
  params: {
17283
17307
  dataKeys: "The array of data keys for values to set",
17284
- dataValues: "The array of values to set 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 Emits a {ValueReceived} event when receiving native tokens. Emits a {DataChanged} event. (on each iteration of setting data)"
17308
+ dataValues: "The array of values to set"
17285
17309
  }
17286
17310
  }
17287
17311
  },
@@ -17308,7 +17332,7 @@ const FunctionSelectors = {
17308
17332
  },
17309
17333
  /**
17310
17334
  * function transferOwnership(
17311
- * address _pendingOwner
17335
+ * address pendingNewOwner
17312
17336
  * )
17313
17337
  *
17314
17338
  * 0xf2fde38b = keccak256('transferOwnership(address)')
@@ -17316,17 +17340,16 @@ const FunctionSelectors = {
17316
17340
  "0xf2fde38b": {
17317
17341
  sig: "transferOwnership(address)",
17318
17342
  inputs: [
17319
- { internalType: "address", name: "_pendingOwner", type: "address" }
17343
+ { internalType: "address", name: "pendingNewOwner", type: "address" }
17320
17344
  ],
17321
17345
  name: "transferOwnership",
17322
17346
  outputs: [],
17323
17347
  stateMutability: "nonpayable",
17324
17348
  type: "function",
17325
17349
  devdoc: {
17326
- details: "Sets the pending owner address as an address that should call {acceptOwnership} in order to complete the ownership transfer of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver} on the pending owner if it's an address that supports LSP1.",
17327
- params: {
17328
- _pendingOwner: "The address of the new pending owner. 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."
17329
- }
17350
+ "custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
17351
+ details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
17352
+ params: { pendingNewOwner: "The address of the new pending owner." }
17330
17353
  },
17331
17354
  userdoc: {
17332
17355
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -17353,7 +17376,8 @@ const FunctionSelectors = {
17353
17376
  stateMutability: "payable",
17354
17377
  type: "function",
17355
17378
  devdoc: {
17356
- details: "The function performs the following steps: - Emits {ValueReceived} when receiving native tokens. - 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. - 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. - Emits a {UniversalReceiver} event.",
17379
+ "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
17380
+ details: "The function performs the following steps: 1. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]`. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
17357
17381
  params: {
17358
17382
  receivedData: "The data received.",
17359
17383
  typeId: "The type of call received."
@@ -17363,7 +17387,7 @@ const FunctionSelectors = {
17363
17387
  }
17364
17388
  },
17365
17389
  userdoc: {
17366
- notice: "Achieves the goal of LSP1-UniversalReceiver by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
17390
+ notice: "Achieves the goal of [LSP1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
17367
17391
  }
17368
17392
  }
17369
17393
  },
@@ -29921,7 +29945,7 @@ const FunctionSelectors = {
29921
29945
  stateMutability: "view",
29922
29946
  type: "function",
29923
29947
  devdoc: {
29924
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
29948
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
29925
29949
  }
29926
29950
  },
29927
29951
  /**
@@ -29937,7 +29961,7 @@ const FunctionSelectors = {
29937
29961
  stateMutability: "nonpayable",
29938
29962
  type: "function",
29939
29963
  devdoc: {
29940
- 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. WARNING: 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."
29964
+ details: "Renounce ownership of the contract in a two step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner."
29941
29965
  }
29942
29966
  },
29943
29967
  /**
@@ -30027,9 +30051,7 @@ const FunctionSelectors = {
30027
30051
  type: "function",
30028
30052
  devdoc: {
30029
30053
  details: "same as ILSP14.transferOwnership with the additional requirement: Requirements: - when notifying the new owner via LSP1, the typeId used MUST be keccak256('LSP9OwnershipTransferStarted')",
30030
- params: {
30031
- newOwner: "the address of the new owner. Requirements: - `newOwner` MUST NOT accept ownership of the contract in the same transaction."
30032
- }
30054
+ params: { newOwner: "the address of the new owner." }
30033
30055
  }
30034
30056
  },
30035
30057
  /**
@@ -30283,7 +30305,7 @@ const FunctionSelectors = {
30283
30305
  stateMutability: "view",
30284
30306
  type: "function",
30285
30307
  devdoc: {
30286
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
30308
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
30287
30309
  }
30288
30310
  },
30289
30311
  /**
@@ -30299,7 +30321,7 @@ const FunctionSelectors = {
30299
30321
  stateMutability: "nonpayable",
30300
30322
  type: "function",
30301
30323
  devdoc: {
30302
- 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. WARNING: 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."
30324
+ details: "Renounce ownership of the contract in a two step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner."
30303
30325
  }
30304
30326
  },
30305
30327
  /**
@@ -30389,9 +30411,7 @@ const FunctionSelectors = {
30389
30411
  type: "function",
30390
30412
  devdoc: {
30391
30413
  details: "same as ILSP14.transferOwnership with the additional requirement: Requirements: - when notifying the new owner via LSP1, the typeId used MUST be keccak256('LSP9OwnershipTransferStarted')",
30392
- params: {
30393
- newOwner: "the address of the new owner. Requirements: - `newOwner` MUST NOT accept ownership of the contract in the same transaction."
30394
- }
30414
+ params: { newOwner: "the address of the new owner." }
30395
30415
  }
30396
30416
  },
30397
30417
  /**
@@ -30623,7 +30643,8 @@ const FunctionSelectors = {
30623
30643
  stateMutability: "nonpayable",
30624
30644
  type: "function",
30625
30645
  devdoc: {
30626
- 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. 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')."
30646
+ "custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
30647
+ details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
30627
30648
  },
30628
30649
  userdoc: {
30629
30650
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -30676,11 +30697,13 @@ const FunctionSelectors = {
30676
30697
  stateMutability: "payable",
30677
30698
  type: "function",
30678
30699
  devdoc: {
30700
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
30701
+ "custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
30679
30702
  details: "Executes any call on other addresses.",
30680
30703
  params: {
30681
- data: "The call data to execute on `target`, or the bytecode of the contract to deploy 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 Emits a {Executed} event, when a call is executed under `operationType` 0, 3 and 4 Emits a {ContractCreated} event, when a contract is created under `operationType` 1 and 2 Emits a {ValueReceived} event when receiving native tokens.",
30682
- operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
30683
- target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (operation 1 and 2)",
30704
+ data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
30705
+ operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
30706
+ target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
30684
30707
  value: "The amount of native tokens to transfer (in Wei)."
30685
30708
  }
30686
30709
  }
@@ -30712,12 +30735,14 @@ const FunctionSelectors = {
30712
30735
  stateMutability: "payable",
30713
30736
  type: "function",
30714
30737
  devdoc: {
30738
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
30739
+ "custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
30715
30740
  details: "Generic batch executor function that executes any call on other addresses",
30716
30741
  params: {
30717
- datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy 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 Emits a {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) Emits a {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) Emits a {ValueReceived} event when receiving native tokens.",
30718
- operationsType: "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
30719
- targets: "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
30720
- values: "The list of native token amounts to transfer (in Wei)"
30742
+ datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
30743
+ operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
30744
+ targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
30745
+ values: "The list of native token amounts to transfer (in Wei)."
30721
30746
  }
30722
30747
  }
30723
30748
  },
@@ -30784,7 +30809,7 @@ const FunctionSelectors = {
30784
30809
  stateMutability: "view",
30785
30810
  type: "function",
30786
30811
  devdoc: {
30787
- details: "Handles two cases: - 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. - 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.",
30812
+ details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue if the address recovered is the same as the owner, indicating that it was a valid signature. - If the address is different, it returns the fail value indicating that the signature is not valid. 2. If the owner is a smart contract, it forwards the call of {isValidSignature()} to the owner contract: - If the contract fails or returns the fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
30788
30813
  params: {
30789
30814
  dataHash: "The hash of the data to be validated.",
30790
30815
  signature: "A signature that can validate the previous parameter (Hash)."
@@ -30794,7 +30819,7 @@ const FunctionSelectors = {
30794
30819
  }
30795
30820
  },
30796
30821
  userdoc: {
30797
- notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
30822
+ notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
30798
30823
  }
30799
30824
  },
30800
30825
  /**
@@ -30824,7 +30849,7 @@ const FunctionSelectors = {
30824
30849
  stateMutability: "view",
30825
30850
  type: "function",
30826
30851
  devdoc: {
30827
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
30852
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
30828
30853
  }
30829
30854
  },
30830
30855
  /**
@@ -30840,7 +30865,8 @@ const FunctionSelectors = {
30840
30865
  stateMutability: "nonpayable",
30841
30866
  type: "function",
30842
30867
  devdoc: {
30843
- 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 WARNING: 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."
30868
+ "custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
30869
+ details: "Renounce ownership of the contract in a 2-step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
30844
30870
  },
30845
30871
  userdoc: {
30846
30872
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
@@ -30865,10 +30891,12 @@ const FunctionSelectors = {
30865
30891
  stateMutability: "payable",
30866
30892
  type: "function",
30867
30893
  devdoc: {
30894
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
30895
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
30868
30896
  details: "Sets singular data for a given `dataKey`",
30869
30897
  params: {
30870
30898
  dataKey: "The key to retrieve stored value",
30871
- dataValue: "The value to set 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 Emits a {ValueReceived} event when receiving native tokens. Emits a {DataChanged} event."
30899
+ dataValue: "The value to set"
30872
30900
  }
30873
30901
  }
30874
30902
  },
@@ -30891,10 +30919,12 @@ const FunctionSelectors = {
30891
30919
  stateMutability: "payable",
30892
30920
  type: "function",
30893
30921
  devdoc: {
30922
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
30923
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
30894
30924
  details: "Sets array of data for multiple given `dataKeys`",
30895
30925
  params: {
30896
30926
  dataKeys: "The array of data keys for values to set",
30897
- dataValues: "The array of values to set 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 Emits a {ValueReceived} event when receiving native tokens. Emits a {DataChanged} event. (on each iteration of setting data)"
30927
+ dataValues: "The array of values to set"
30898
30928
  }
30899
30929
  }
30900
30930
  },
@@ -30921,7 +30951,7 @@ const FunctionSelectors = {
30921
30951
  },
30922
30952
  /**
30923
30953
  * function transferOwnership(
30924
- * address _pendingOwner
30954
+ * address pendingNewOwner
30925
30955
  * )
30926
30956
  *
30927
30957
  * 0xf2fde38b = keccak256('transferOwnership(address)')
@@ -30929,17 +30959,16 @@ const FunctionSelectors = {
30929
30959
  "0xf2fde38b": {
30930
30960
  sig: "transferOwnership(address)",
30931
30961
  inputs: [
30932
- { internalType: "address", name: "_pendingOwner", type: "address" }
30962
+ { internalType: "address", name: "pendingNewOwner", type: "address" }
30933
30963
  ],
30934
30964
  name: "transferOwnership",
30935
30965
  outputs: [],
30936
30966
  stateMutability: "nonpayable",
30937
30967
  type: "function",
30938
30968
  devdoc: {
30939
- details: "Sets the pending owner address as an address that should call {acceptOwnership} in order to complete the ownership transfer of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver} on the pending owner if it's an address that supports LSP1.",
30940
- params: {
30941
- _pendingOwner: "The address of the new pending owner. 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."
30942
- }
30969
+ "custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
30970
+ details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
30971
+ params: { pendingNewOwner: "The address of the new pending owner." }
30943
30972
  },
30944
30973
  userdoc: {
30945
30974
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -30966,7 +30995,8 @@ const FunctionSelectors = {
30966
30995
  stateMutability: "payable",
30967
30996
  type: "function",
30968
30997
  devdoc: {
30969
- details: "The function performs the following steps: - Emits {ValueReceived} when receiving native tokens. - 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. - 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. - Emits a {UniversalReceiver} event.",
30998
+ "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
30999
+ details: "The function performs the following steps: 1. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]`. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
30970
31000
  params: {
30971
31001
  receivedData: "The data received.",
30972
31002
  typeId: "The type of call received."
@@ -30976,7 +31006,7 @@ const FunctionSelectors = {
30976
31006
  }
30977
31007
  },
30978
31008
  userdoc: {
30979
- notice: "Achieves the goal of LSP1-UniversalReceiver by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
31009
+ notice: "Achieves the goal of [LSP1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
30980
31010
  }
30981
31011
  }
30982
31012
  },
@@ -31020,7 +31050,8 @@ const FunctionSelectors = {
31020
31050
  stateMutability: "nonpayable",
31021
31051
  type: "function",
31022
31052
  devdoc: {
31023
- 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. 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')."
31053
+ "custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
31054
+ details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
31024
31055
  },
31025
31056
  userdoc: {
31026
31057
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -31073,11 +31104,13 @@ const FunctionSelectors = {
31073
31104
  stateMutability: "payable",
31074
31105
  type: "function",
31075
31106
  devdoc: {
31107
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
31108
+ "custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
31076
31109
  details: "Executes any call on other addresses.",
31077
31110
  params: {
31078
- data: "The call data to execute on `target`, or the bytecode of the contract to deploy 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 Emits a {Executed} event, when a call is executed under `operationType` 0, 3 and 4 Emits a {ContractCreated} event, when a contract is created under `operationType` 1 and 2 Emits a {ValueReceived} event when receiving native tokens.",
31079
- operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
31080
- target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (operation 1 and 2)",
31111
+ data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
31112
+ operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
31113
+ target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
31081
31114
  value: "The amount of native tokens to transfer (in Wei)."
31082
31115
  }
31083
31116
  }
@@ -31109,12 +31142,14 @@ const FunctionSelectors = {
31109
31142
  stateMutability: "payable",
31110
31143
  type: "function",
31111
31144
  devdoc: {
31145
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
31146
+ "custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
31112
31147
  details: "Generic batch executor function that executes any call on other addresses",
31113
31148
  params: {
31114
- datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy 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 Emits a {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) Emits a {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) Emits a {ValueReceived} event when receiving native tokens.",
31115
- operationsType: "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
31116
- targets: "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
31117
- values: "The list of native token amounts to transfer (in Wei)"
31149
+ datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
31150
+ operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
31151
+ targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
31152
+ values: "The list of native token amounts to transfer (in Wei)."
31118
31153
  }
31119
31154
  }
31120
31155
  },
@@ -31203,7 +31238,7 @@ const FunctionSelectors = {
31203
31238
  stateMutability: "view",
31204
31239
  type: "function",
31205
31240
  devdoc: {
31206
- details: "Handles two cases: - 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. - 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.",
31241
+ details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue if the address recovered is the same as the owner, indicating that it was a valid signature. - If the address is different, it returns the fail value indicating that the signature is not valid. 2. If the owner is a smart contract, it forwards the call of {isValidSignature()} to the owner contract: - If the contract fails or returns the fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
31207
31242
  params: {
31208
31243
  dataHash: "The hash of the data to be validated.",
31209
31244
  signature: "A signature that can validate the previous parameter (Hash)."
@@ -31213,7 +31248,7 @@ const FunctionSelectors = {
31213
31248
  }
31214
31249
  },
31215
31250
  userdoc: {
31216
- notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
31251
+ notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
31217
31252
  }
31218
31253
  },
31219
31254
  /**
@@ -31243,7 +31278,7 @@ const FunctionSelectors = {
31243
31278
  stateMutability: "view",
31244
31279
  type: "function",
31245
31280
  devdoc: {
31246
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
31281
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
31247
31282
  }
31248
31283
  },
31249
31284
  /**
@@ -31259,7 +31294,8 @@ const FunctionSelectors = {
31259
31294
  stateMutability: "nonpayable",
31260
31295
  type: "function",
31261
31296
  devdoc: {
31262
- 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 WARNING: 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."
31297
+ "custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
31298
+ details: "Renounce ownership of the contract in a 2-step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
31263
31299
  },
31264
31300
  userdoc: {
31265
31301
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
@@ -31284,10 +31320,12 @@ const FunctionSelectors = {
31284
31320
  stateMutability: "payable",
31285
31321
  type: "function",
31286
31322
  devdoc: {
31323
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
31324
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
31287
31325
  details: "Sets singular data for a given `dataKey`",
31288
31326
  params: {
31289
31327
  dataKey: "The key to retrieve stored value",
31290
- dataValue: "The value to set 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 Emits a {ValueReceived} event when receiving native tokens. Emits a {DataChanged} event."
31328
+ dataValue: "The value to set"
31291
31329
  }
31292
31330
  }
31293
31331
  },
@@ -31310,10 +31348,12 @@ const FunctionSelectors = {
31310
31348
  stateMutability: "payable",
31311
31349
  type: "function",
31312
31350
  devdoc: {
31351
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
31352
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
31313
31353
  details: "Sets array of data for multiple given `dataKeys`",
31314
31354
  params: {
31315
31355
  dataKeys: "The array of data keys for values to set",
31316
- dataValues: "The array of values to set 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 Emits a {ValueReceived} event when receiving native tokens. Emits a {DataChanged} event. (on each iteration of setting data)"
31356
+ dataValues: "The array of values to set"
31317
31357
  }
31318
31358
  }
31319
31359
  },
@@ -31340,7 +31380,7 @@ const FunctionSelectors = {
31340
31380
  },
31341
31381
  /**
31342
31382
  * function transferOwnership(
31343
- * address _pendingOwner
31383
+ * address pendingNewOwner
31344
31384
  * )
31345
31385
  *
31346
31386
  * 0xf2fde38b = keccak256('transferOwnership(address)')
@@ -31348,17 +31388,16 @@ const FunctionSelectors = {
31348
31388
  "0xf2fde38b": {
31349
31389
  sig: "transferOwnership(address)",
31350
31390
  inputs: [
31351
- { internalType: "address", name: "_pendingOwner", type: "address" }
31391
+ { internalType: "address", name: "pendingNewOwner", type: "address" }
31352
31392
  ],
31353
31393
  name: "transferOwnership",
31354
31394
  outputs: [],
31355
31395
  stateMutability: "nonpayable",
31356
31396
  type: "function",
31357
31397
  devdoc: {
31358
- details: "Sets the pending owner address as an address that should call {acceptOwnership} in order to complete the ownership transfer of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver} on the pending owner if it's an address that supports LSP1.",
31359
- params: {
31360
- _pendingOwner: "The address of the new pending owner. 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."
31361
- }
31398
+ "custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
31399
+ details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
31400
+ params: { pendingNewOwner: "The address of the new pending owner." }
31362
31401
  },
31363
31402
  userdoc: {
31364
31403
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -31385,7 +31424,8 @@ const FunctionSelectors = {
31385
31424
  stateMutability: "payable",
31386
31425
  type: "function",
31387
31426
  devdoc: {
31388
- details: "The function performs the following steps: - Emits {ValueReceived} when receiving native tokens. - 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. - 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. - Emits a {UniversalReceiver} event.",
31427
+ "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
31428
+ details: "The function performs the following steps: 1. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]`. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
31389
31429
  params: {
31390
31430
  receivedData: "The data received.",
31391
31431
  typeId: "The type of call received."
@@ -31395,7 +31435,7 @@ const FunctionSelectors = {
31395
31435
  }
31396
31436
  },
31397
31437
  userdoc: {
31398
- notice: "Achieves the goal of LSP1-UniversalReceiver by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
31438
+ notice: "Achieves the goal of [LSP1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
31399
31439
  }
31400
31440
  }
31401
31441
  }