@lukso/lsp-smart-contracts 0.10.1 → 0.10.3

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 +26 -23
  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
@@ -235,7 +235,8 @@ const ErrorSelectors = {
235
235
  {
236
236
  details: "reverts when the call to the owner does not return the magic value",
237
237
  params: {
238
- postCall: "The data returned by the call to the logic verifier"
238
+ postCall: "True if the execution call was done, False otherwise",
239
+ returnedData: "The data returned by the call to the logic verifier"
239
240
  }
240
241
  }
241
242
  ]
@@ -527,7 +528,8 @@ const ErrorSelectors = {
527
528
  {
528
529
  details: "reverts when the call to the owner does not return the magic value",
529
530
  params: {
530
- postCall: "The data returned by the call to the logic verifier"
531
+ postCall: "True if the execution call was done, False otherwise",
532
+ returnedData: "The data returned by the call to the logic verifier"
531
533
  }
532
534
  }
533
535
  ]
@@ -9127,7 +9129,8 @@ const ErrorSelectors = {
9127
9129
  {
9128
9130
  details: "reverts when the call to the owner does not return the magic value",
9129
9131
  params: {
9130
- postCall: "The data returned by the call to the logic verifier"
9132
+ postCall: "True if the execution call was done, False otherwise",
9133
+ returnedData: "The data returned by the call to the logic verifier"
9131
9134
  }
9132
9135
  }
9133
9136
  ]
@@ -9419,7 +9422,8 @@ const ErrorSelectors = {
9419
9422
  {
9420
9423
  details: "reverts when the call to the owner does not return the magic value",
9421
9424
  params: {
9422
- postCall: "The data returned by the call to the logic verifier"
9425
+ postCall: "True if the execution call was done, False otherwise",
9426
+ returnedData: "The data returned by the call to the logic verifier"
9423
9427
  }
9424
9428
  }
9425
9429
  ]
@@ -16587,7 +16591,8 @@ const FunctionSelectors = {
16587
16591
  stateMutability: "nonpayable",
16588
16592
  type: "function",
16589
16593
  devdoc: {
16590
- 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')."
16594
+ "custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
16595
+ details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
16591
16596
  },
16592
16597
  userdoc: {
16593
16598
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -16640,11 +16645,13 @@ const FunctionSelectors = {
16640
16645
  stateMutability: "payable",
16641
16646
  type: "function",
16642
16647
  devdoc: {
16648
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
16649
+ "custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
16643
16650
  details: "Executes any call on other addresses.",
16644
16651
  params: {
16645
- 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.",
16646
- operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
16647
- target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (operation 1 and 2)",
16652
+ data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
16653
+ operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
16654
+ target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
16648
16655
  value: "The amount of native tokens to transfer (in Wei)."
16649
16656
  }
16650
16657
  }
@@ -16676,12 +16683,14 @@ const FunctionSelectors = {
16676
16683
  stateMutability: "payable",
16677
16684
  type: "function",
16678
16685
  devdoc: {
16686
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
16687
+ "custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
16679
16688
  details: "Generic batch executor function that executes any call on other addresses",
16680
16689
  params: {
16681
- 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.",
16682
- operationsType: "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
16683
- targets: "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
16684
- values: "The list of native token amounts to transfer (in Wei)"
16690
+ datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
16691
+ operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
16692
+ targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
16693
+ values: "The list of native token amounts to transfer (in Wei)."
16685
16694
  }
16686
16695
  }
16687
16696
  },
@@ -16748,7 +16757,7 @@ const FunctionSelectors = {
16748
16757
  stateMutability: "view",
16749
16758
  type: "function",
16750
16759
  devdoc: {
16751
- 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.",
16760
+ details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue if the address recovered is the same as the owner, indicating that it was a valid signature. - If the address is different, it returns the fail value indicating that the signature is not valid. 2. If the owner is a smart contract, it forwards the call of {isValidSignature()} to the owner contract: - If the contract fails or returns the fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
16752
16761
  params: {
16753
16762
  dataHash: "The hash of the data to be validated.",
16754
16763
  signature: "A signature that can validate the previous parameter (Hash)."
@@ -16758,7 +16767,7 @@ const FunctionSelectors = {
16758
16767
  }
16759
16768
  },
16760
16769
  userdoc: {
16761
- notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
16770
+ notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
16762
16771
  }
16763
16772
  },
16764
16773
  /**
@@ -16788,7 +16797,7 @@ const FunctionSelectors = {
16788
16797
  stateMutability: "view",
16789
16798
  type: "function",
16790
16799
  devdoc: {
16791
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
16800
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
16792
16801
  }
16793
16802
  },
16794
16803
  /**
@@ -16804,7 +16813,8 @@ const FunctionSelectors = {
16804
16813
  stateMutability: "nonpayable",
16805
16814
  type: "function",
16806
16815
  devdoc: {
16807
- 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."
16816
+ "custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
16817
+ details: "Renounce ownership of the contract in a 2-step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
16808
16818
  },
16809
16819
  userdoc: {
16810
16820
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
@@ -16829,10 +16839,12 @@ const FunctionSelectors = {
16829
16839
  stateMutability: "payable",
16830
16840
  type: "function",
16831
16841
  devdoc: {
16842
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
16843
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
16832
16844
  details: "Sets singular data for a given `dataKey`",
16833
16845
  params: {
16834
16846
  dataKey: "The key to retrieve stored value",
16835
- 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."
16847
+ dataValue: "The value to set"
16836
16848
  }
16837
16849
  }
16838
16850
  },
@@ -16855,10 +16867,12 @@ const FunctionSelectors = {
16855
16867
  stateMutability: "payable",
16856
16868
  type: "function",
16857
16869
  devdoc: {
16870
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
16871
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
16858
16872
  details: "Sets array of data for multiple given `dataKeys`",
16859
16873
  params: {
16860
16874
  dataKeys: "The array of data keys for values to set",
16861
- 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)"
16875
+ dataValues: "The array of values to set"
16862
16876
  }
16863
16877
  }
16864
16878
  },
@@ -16885,7 +16899,7 @@ const FunctionSelectors = {
16885
16899
  },
16886
16900
  /**
16887
16901
  * function transferOwnership(
16888
- * address _pendingOwner
16902
+ * address pendingNewOwner
16889
16903
  * )
16890
16904
  *
16891
16905
  * 0xf2fde38b = keccak256('transferOwnership(address)')
@@ -16893,17 +16907,16 @@ const FunctionSelectors = {
16893
16907
  "0xf2fde38b": {
16894
16908
  sig: "transferOwnership(address)",
16895
16909
  inputs: [
16896
- { internalType: "address", name: "_pendingOwner", type: "address" }
16910
+ { internalType: "address", name: "pendingNewOwner", type: "address" }
16897
16911
  ],
16898
16912
  name: "transferOwnership",
16899
16913
  outputs: [],
16900
16914
  stateMutability: "nonpayable",
16901
16915
  type: "function",
16902
16916
  devdoc: {
16903
- 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.",
16904
- params: {
16905
- _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."
16906
- }
16917
+ "custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
16918
+ details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
16919
+ params: { pendingNewOwner: "The address of the new pending owner." }
16907
16920
  },
16908
16921
  userdoc: {
16909
16922
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -16930,7 +16943,8 @@ const FunctionSelectors = {
16930
16943
  stateMutability: "payable",
16931
16944
  type: "function",
16932
16945
  devdoc: {
16933
- 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.",
16946
+ "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
16947
+ details: "The function performs the following steps: 1. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]`. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
16934
16948
  params: {
16935
16949
  receivedData: "The data received.",
16936
16950
  typeId: "The type of call received."
@@ -16940,7 +16954,7 @@ const FunctionSelectors = {
16940
16954
  }
16941
16955
  },
16942
16956
  userdoc: {
16943
- notice: "Achieves the goal of LSP1-UniversalReceiver by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
16957
+ notice: "Achieves the goal of [LSP1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
16944
16958
  }
16945
16959
  }
16946
16960
  },
@@ -16984,7 +16998,8 @@ const FunctionSelectors = {
16984
16998
  stateMutability: "nonpayable",
16985
16999
  type: "function",
16986
17000
  devdoc: {
16987
- 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')."
17001
+ "custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
17002
+ details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
16988
17003
  },
16989
17004
  userdoc: {
16990
17005
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -17037,11 +17052,13 @@ const FunctionSelectors = {
17037
17052
  stateMutability: "payable",
17038
17053
  type: "function",
17039
17054
  devdoc: {
17055
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
17056
+ "custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
17040
17057
  details: "Executes any call on other addresses.",
17041
17058
  params: {
17042
- 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.",
17043
- operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
17044
- target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (operation 1 and 2)",
17059
+ data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
17060
+ operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
17061
+ target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
17045
17062
  value: "The amount of native tokens to transfer (in Wei)."
17046
17063
  }
17047
17064
  }
@@ -17073,12 +17090,14 @@ const FunctionSelectors = {
17073
17090
  stateMutability: "payable",
17074
17091
  type: "function",
17075
17092
  devdoc: {
17093
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
17094
+ "custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
17076
17095
  details: "Generic batch executor function that executes any call on other addresses",
17077
17096
  params: {
17078
- 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.",
17079
- operationsType: "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
17080
- targets: "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
17081
- values: "The list of native token amounts to transfer (in Wei)"
17097
+ datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
17098
+ operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
17099
+ targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
17100
+ values: "The list of native token amounts to transfer (in Wei)."
17082
17101
  }
17083
17102
  }
17084
17103
  },
@@ -17167,7 +17186,7 @@ const FunctionSelectors = {
17167
17186
  stateMutability: "view",
17168
17187
  type: "function",
17169
17188
  devdoc: {
17170
- 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.",
17189
+ details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue if the address recovered is the same as the owner, indicating that it was a valid signature. - If the address is different, it returns the fail value indicating that the signature is not valid. 2. If the owner is a smart contract, it forwards the call of {isValidSignature()} to the owner contract: - If the contract fails or returns the fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
17171
17190
  params: {
17172
17191
  dataHash: "The hash of the data to be validated.",
17173
17192
  signature: "A signature that can validate the previous parameter (Hash)."
@@ -17177,7 +17196,7 @@ const FunctionSelectors = {
17177
17196
  }
17178
17197
  },
17179
17198
  userdoc: {
17180
- notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
17199
+ notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
17181
17200
  }
17182
17201
  },
17183
17202
  /**
@@ -17207,7 +17226,7 @@ const FunctionSelectors = {
17207
17226
  stateMutability: "view",
17208
17227
  type: "function",
17209
17228
  devdoc: {
17210
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
17229
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
17211
17230
  }
17212
17231
  },
17213
17232
  /**
@@ -17223,7 +17242,8 @@ const FunctionSelectors = {
17223
17242
  stateMutability: "nonpayable",
17224
17243
  type: "function",
17225
17244
  devdoc: {
17226
- 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."
17245
+ "custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
17246
+ details: "Renounce ownership of the contract in a 2-step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
17227
17247
  },
17228
17248
  userdoc: {
17229
17249
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
@@ -17248,10 +17268,12 @@ const FunctionSelectors = {
17248
17268
  stateMutability: "payable",
17249
17269
  type: "function",
17250
17270
  devdoc: {
17271
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
17272
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
17251
17273
  details: "Sets singular data for a given `dataKey`",
17252
17274
  params: {
17253
17275
  dataKey: "The key to retrieve stored value",
17254
- 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."
17276
+ dataValue: "The value to set"
17255
17277
  }
17256
17278
  }
17257
17279
  },
@@ -17274,10 +17296,12 @@ const FunctionSelectors = {
17274
17296
  stateMutability: "payable",
17275
17297
  type: "function",
17276
17298
  devdoc: {
17299
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
17300
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
17277
17301
  details: "Sets array of data for multiple given `dataKeys`",
17278
17302
  params: {
17279
17303
  dataKeys: "The array of data keys for values to set",
17280
- 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)"
17304
+ dataValues: "The array of values to set"
17281
17305
  }
17282
17306
  }
17283
17307
  },
@@ -17304,7 +17328,7 @@ const FunctionSelectors = {
17304
17328
  },
17305
17329
  /**
17306
17330
  * function transferOwnership(
17307
- * address _pendingOwner
17331
+ * address pendingNewOwner
17308
17332
  * )
17309
17333
  *
17310
17334
  * 0xf2fde38b = keccak256('transferOwnership(address)')
@@ -17312,17 +17336,16 @@ const FunctionSelectors = {
17312
17336
  "0xf2fde38b": {
17313
17337
  sig: "transferOwnership(address)",
17314
17338
  inputs: [
17315
- { internalType: "address", name: "_pendingOwner", type: "address" }
17339
+ { internalType: "address", name: "pendingNewOwner", type: "address" }
17316
17340
  ],
17317
17341
  name: "transferOwnership",
17318
17342
  outputs: [],
17319
17343
  stateMutability: "nonpayable",
17320
17344
  type: "function",
17321
17345
  devdoc: {
17322
- 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.",
17323
- params: {
17324
- _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."
17325
- }
17346
+ "custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
17347
+ details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
17348
+ params: { pendingNewOwner: "The address of the new pending owner." }
17326
17349
  },
17327
17350
  userdoc: {
17328
17351
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -17349,7 +17372,8 @@ const FunctionSelectors = {
17349
17372
  stateMutability: "payable",
17350
17373
  type: "function",
17351
17374
  devdoc: {
17352
- 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.",
17375
+ "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
17376
+ details: "The function performs the following steps: 1. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]`. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
17353
17377
  params: {
17354
17378
  receivedData: "The data received.",
17355
17379
  typeId: "The type of call received."
@@ -17359,7 +17383,7 @@ const FunctionSelectors = {
17359
17383
  }
17360
17384
  },
17361
17385
  userdoc: {
17362
- notice: "Achieves the goal of LSP1-UniversalReceiver by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
17386
+ notice: "Achieves the goal of [LSP1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
17363
17387
  }
17364
17388
  }
17365
17389
  },
@@ -29917,7 +29941,7 @@ const FunctionSelectors = {
29917
29941
  stateMutability: "view",
29918
29942
  type: "function",
29919
29943
  devdoc: {
29920
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
29944
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
29921
29945
  }
29922
29946
  },
29923
29947
  /**
@@ -29933,7 +29957,7 @@ const FunctionSelectors = {
29933
29957
  stateMutability: "nonpayable",
29934
29958
  type: "function",
29935
29959
  devdoc: {
29936
- 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."
29960
+ details: "Renounce ownership of the contract in a two step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner."
29937
29961
  }
29938
29962
  },
29939
29963
  /**
@@ -30023,9 +30047,7 @@ const FunctionSelectors = {
30023
30047
  type: "function",
30024
30048
  devdoc: {
30025
30049
  details: "same as ILSP14.transferOwnership with the additional requirement: Requirements: - when notifying the new owner via LSP1, the typeId used MUST be keccak256('LSP9OwnershipTransferStarted')",
30026
- params: {
30027
- newOwner: "the address of the new owner. Requirements: - `newOwner` MUST NOT accept ownership of the contract in the same transaction."
30028
- }
30050
+ params: { newOwner: "the address of the new owner." }
30029
30051
  }
30030
30052
  },
30031
30053
  /**
@@ -30279,7 +30301,7 @@ const FunctionSelectors = {
30279
30301
  stateMutability: "view",
30280
30302
  type: "function",
30281
30303
  devdoc: {
30282
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
30304
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
30283
30305
  }
30284
30306
  },
30285
30307
  /**
@@ -30295,7 +30317,7 @@ const FunctionSelectors = {
30295
30317
  stateMutability: "nonpayable",
30296
30318
  type: "function",
30297
30319
  devdoc: {
30298
- 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."
30320
+ details: "Renounce ownership of the contract in a two step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner."
30299
30321
  }
30300
30322
  },
30301
30323
  /**
@@ -30385,9 +30407,7 @@ const FunctionSelectors = {
30385
30407
  type: "function",
30386
30408
  devdoc: {
30387
30409
  details: "same as ILSP14.transferOwnership with the additional requirement: Requirements: - when notifying the new owner via LSP1, the typeId used MUST be keccak256('LSP9OwnershipTransferStarted')",
30388
- params: {
30389
- newOwner: "the address of the new owner. Requirements: - `newOwner` MUST NOT accept ownership of the contract in the same transaction."
30390
- }
30410
+ params: { newOwner: "the address of the new owner." }
30391
30411
  }
30392
30412
  },
30393
30413
  /**
@@ -30619,7 +30639,8 @@ const FunctionSelectors = {
30619
30639
  stateMutability: "nonpayable",
30620
30640
  type: "function",
30621
30641
  devdoc: {
30622
- 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')."
30642
+ "custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
30643
+ details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
30623
30644
  },
30624
30645
  userdoc: {
30625
30646
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -30672,11 +30693,13 @@ const FunctionSelectors = {
30672
30693
  stateMutability: "payable",
30673
30694
  type: "function",
30674
30695
  devdoc: {
30696
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
30697
+ "custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
30675
30698
  details: "Executes any call on other addresses.",
30676
30699
  params: {
30677
- 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.",
30678
- operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
30679
- target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (operation 1 and 2)",
30700
+ data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
30701
+ operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
30702
+ target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
30680
30703
  value: "The amount of native tokens to transfer (in Wei)."
30681
30704
  }
30682
30705
  }
@@ -30708,12 +30731,14 @@ const FunctionSelectors = {
30708
30731
  stateMutability: "payable",
30709
30732
  type: "function",
30710
30733
  devdoc: {
30734
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
30735
+ "custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
30711
30736
  details: "Generic batch executor function that executes any call on other addresses",
30712
30737
  params: {
30713
- 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.",
30714
- operationsType: "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
30715
- targets: "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
30716
- values: "The list of native token amounts to transfer (in Wei)"
30738
+ datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
30739
+ operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
30740
+ targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
30741
+ values: "The list of native token amounts to transfer (in Wei)."
30717
30742
  }
30718
30743
  }
30719
30744
  },
@@ -30780,7 +30805,7 @@ const FunctionSelectors = {
30780
30805
  stateMutability: "view",
30781
30806
  type: "function",
30782
30807
  devdoc: {
30783
- 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.",
30808
+ details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue if the address recovered is the same as the owner, indicating that it was a valid signature. - If the address is different, it returns the fail value indicating that the signature is not valid. 2. If the owner is a smart contract, it forwards the call of {isValidSignature()} to the owner contract: - If the contract fails or returns the fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
30784
30809
  params: {
30785
30810
  dataHash: "The hash of the data to be validated.",
30786
30811
  signature: "A signature that can validate the previous parameter (Hash)."
@@ -30790,7 +30815,7 @@ const FunctionSelectors = {
30790
30815
  }
30791
30816
  },
30792
30817
  userdoc: {
30793
- notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
30818
+ notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
30794
30819
  }
30795
30820
  },
30796
30821
  /**
@@ -30820,7 +30845,7 @@ const FunctionSelectors = {
30820
30845
  stateMutability: "view",
30821
30846
  type: "function",
30822
30847
  devdoc: {
30823
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
30848
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
30824
30849
  }
30825
30850
  },
30826
30851
  /**
@@ -30836,7 +30861,8 @@ const FunctionSelectors = {
30836
30861
  stateMutability: "nonpayable",
30837
30862
  type: "function",
30838
30863
  devdoc: {
30839
- 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."
30864
+ "custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
30865
+ details: "Renounce ownership of the contract in a 2-step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
30840
30866
  },
30841
30867
  userdoc: {
30842
30868
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
@@ -30861,10 +30887,12 @@ const FunctionSelectors = {
30861
30887
  stateMutability: "payable",
30862
30888
  type: "function",
30863
30889
  devdoc: {
30890
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
30891
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
30864
30892
  details: "Sets singular data for a given `dataKey`",
30865
30893
  params: {
30866
30894
  dataKey: "The key to retrieve stored value",
30867
- 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."
30895
+ dataValue: "The value to set"
30868
30896
  }
30869
30897
  }
30870
30898
  },
@@ -30887,10 +30915,12 @@ const FunctionSelectors = {
30887
30915
  stateMutability: "payable",
30888
30916
  type: "function",
30889
30917
  devdoc: {
30918
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
30919
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
30890
30920
  details: "Sets array of data for multiple given `dataKeys`",
30891
30921
  params: {
30892
30922
  dataKeys: "The array of data keys for values to set",
30893
- 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)"
30923
+ dataValues: "The array of values to set"
30894
30924
  }
30895
30925
  }
30896
30926
  },
@@ -30917,7 +30947,7 @@ const FunctionSelectors = {
30917
30947
  },
30918
30948
  /**
30919
30949
  * function transferOwnership(
30920
- * address _pendingOwner
30950
+ * address pendingNewOwner
30921
30951
  * )
30922
30952
  *
30923
30953
  * 0xf2fde38b = keccak256('transferOwnership(address)')
@@ -30925,17 +30955,16 @@ const FunctionSelectors = {
30925
30955
  "0xf2fde38b": {
30926
30956
  sig: "transferOwnership(address)",
30927
30957
  inputs: [
30928
- { internalType: "address", name: "_pendingOwner", type: "address" }
30958
+ { internalType: "address", name: "pendingNewOwner", type: "address" }
30929
30959
  ],
30930
30960
  name: "transferOwnership",
30931
30961
  outputs: [],
30932
30962
  stateMutability: "nonpayable",
30933
30963
  type: "function",
30934
30964
  devdoc: {
30935
- 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.",
30936
- params: {
30937
- _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."
30938
- }
30965
+ "custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
30966
+ details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
30967
+ params: { pendingNewOwner: "The address of the new pending owner." }
30939
30968
  },
30940
30969
  userdoc: {
30941
30970
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -30962,7 +30991,8 @@ const FunctionSelectors = {
30962
30991
  stateMutability: "payable",
30963
30992
  type: "function",
30964
30993
  devdoc: {
30965
- 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.",
30994
+ "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
30995
+ details: "The function performs the following steps: 1. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]`. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
30966
30996
  params: {
30967
30997
  receivedData: "The data received.",
30968
30998
  typeId: "The type of call received."
@@ -30972,7 +31002,7 @@ const FunctionSelectors = {
30972
31002
  }
30973
31003
  },
30974
31004
  userdoc: {
30975
- notice: "Achieves the goal of LSP1-UniversalReceiver by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
31005
+ notice: "Achieves the goal of [LSP1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
30976
31006
  }
30977
31007
  }
30978
31008
  },
@@ -31016,7 +31046,8 @@ const FunctionSelectors = {
31016
31046
  stateMutability: "nonpayable",
31017
31047
  type: "function",
31018
31048
  devdoc: {
31019
- 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')."
31049
+ "custom:requirements": "- MUST be called by the pendingOwner. - When notifying the previous owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_SenderNotification')`. - When notifying the new owner via LSP1, the typeId used MUST be `keccak256('LSP0OwnershipTransferred_RecipientNotification')`.",
31050
+ details: "Transfer ownership of the contract from the current {`owner()`} to the {`pendingOwner()`}. Once this function is called: - the current {`owner()`} will loose access to the functions restricted to the {`owner()`} only. - the {`pendingOwner()`} will gain access to the functions restricted to the {`owner()`} only."
31020
31051
  },
31021
31052
  userdoc: {
31022
31053
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -31069,11 +31100,13 @@ const FunctionSelectors = {
31069
31100
  stateMutability: "payable",
31070
31101
  type: "function",
31071
31102
  devdoc: {
31103
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 - {ValueReceived} event when receiving native tokens.",
31104
+ "custom:requirements": "- if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
31072
31105
  details: "Executes any call on other addresses.",
31073
31106
  params: {
31074
- 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.",
31075
- operationType: "The operation to execute: CALL = 0 CREATE = 1 CREATE2 = 2 STATICCALL = 3 DELEGATECALL = 4",
31076
- target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (operation 1 and 2)",
31107
+ data: "The call data to execute on `target`, or the bytecode of the contract to deploy.",
31108
+ operationType: "The operation to execute: `CALL = 0`, `CREATE = 1` `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
31109
+ target: "The address (smart contract/EOA) to interact with, `target` will be unused if a contract is created (`CREATE` & `CREATE2`).",
31077
31110
  value: "The amount of native tokens to transfer (in Wei)."
31078
31111
  }
31079
31112
  }
@@ -31105,12 +31138,14 @@ const FunctionSelectors = {
31105
31138
  stateMutability: "payable",
31106
31139
  type: "function",
31107
31140
  devdoc: {
31141
+ "custom:events": "- {Executed} event, when a call is executed under `operationType` 0, 3 and 4 (each iteration) - {ContractCreated} event, when a contract is created under `operationType` 1 and 2 (each iteration) - {ValueReceived} event when receiving native tokens.",
31142
+ "custom:requirements": "- The length of the parameters provided MUST be equal - if a `value` is provided, the contract MUST have at least this amount in its balance to execute successfully. - if the operation type is `STATICCALL` or `DELEGATECALL`, `value` SHOULD be 0. - `target` SHOULD be `address(0)` when deploying a contract. - MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
31108
31143
  details: "Generic batch executor function that executes any call on other addresses",
31109
31144
  params: {
31110
- 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.",
31111
- operationsType: "The list of operations type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
31112
- targets: "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
31113
- values: "The list of native token amounts to transfer (in Wei)"
31145
+ datas: "The list of call data to execute on `targets`, or the creation bytecode of the contracts to deploy.",
31146
+ operationsType: "The list of operations type used: `CALL = 0`, `CREATE = 1`, `CREATE2 = 2`, `STATICCALL = 3`, `DELEGATECALL = 4`.",
31147
+ targets: "The list of addresses to call. `targets` will be unused if a contract is created (`CREATE` & `CREATE2`).",
31148
+ values: "The list of native token amounts to transfer (in Wei)."
31114
31149
  }
31115
31150
  }
31116
31151
  },
@@ -31199,7 +31234,7 @@ const FunctionSelectors = {
31199
31234
  stateMutability: "view",
31200
31235
  type: "function",
31201
31236
  devdoc: {
31202
- 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.",
31237
+ details: "Handles two cases: 1. If the owner is an EOA, recovers an address from the hash and the signature provided: - Returns the magicValue if the address recovered is the same as the owner, indicating that it was a valid signature. - If the address is different, it returns the fail value indicating that the signature is not valid. 2. If the owner is a smart contract, it forwards the call of {isValidSignature()} to the owner contract: - If the contract fails or returns the fail value, the {isValidSignature()} on the account returns the fail value, indicating that the signature is not valid. - If the {isValidSignature()} on the owner returned the magicValue, the {isValidSignature()} on the account returns the magicValue, indicating that it's a valid signature.",
31203
31238
  params: {
31204
31239
  dataHash: "The hash of the data to be validated.",
31205
31240
  signature: "A signature that can validate the previous parameter (Hash)."
@@ -31209,7 +31244,7 @@ const FunctionSelectors = {
31209
31244
  }
31210
31245
  },
31211
31246
  userdoc: {
31212
- notice: "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
31247
+ notice: "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
31213
31248
  }
31214
31249
  },
31215
31250
  /**
@@ -31239,7 +31274,7 @@ const FunctionSelectors = {
31239
31274
  stateMutability: "view",
31240
31275
  type: "function",
31241
31276
  devdoc: {
31242
- details: "The address that ownership of the contract is transferred to. This address may use `acceptOwnership()` to gain ownership of the contract."
31277
+ details: "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
31243
31278
  }
31244
31279
  },
31245
31280
  /**
@@ -31255,7 +31290,8 @@ const FunctionSelectors = {
31255
31290
  stateMutability: "nonpayable",
31256
31291
  type: "function",
31257
31292
  devdoc: {
31258
- 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."
31293
+ "custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
31294
+ details: "Renounce ownership of the contract in a 2-step process. 1. the first call will initiate the process of renouncing ownership. 2. the second is used as a confirmation and will leave the contract without an owner. MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification"
31259
31295
  },
31260
31296
  userdoc: {
31261
31297
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
@@ -31280,10 +31316,12 @@ const FunctionSelectors = {
31280
31316
  stateMutability: "payable",
31281
31317
  type: "function",
31282
31318
  devdoc: {
31319
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event.",
31320
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
31283
31321
  details: "Sets singular data for a given `dataKey`",
31284
31322
  params: {
31285
31323
  dataKey: "The key to retrieve stored value",
31286
- 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."
31324
+ dataValue: "The value to set"
31287
31325
  }
31288
31326
  }
31289
31327
  },
@@ -31306,10 +31344,12 @@ const FunctionSelectors = {
31306
31344
  stateMutability: "payable",
31307
31345
  type: "function",
31308
31346
  devdoc: {
31347
+ "custom:events": "- {ValueReceived} event when receiving native tokens. - {DataChanged} event. (on each iteration of setting data)",
31348
+ "custom:requirements": "- MUST pass when called by the owner or by an authorised address that pass the verification check performed on the owner accordinng to [LSP20-CallVerification] specification",
31309
31349
  details: "Sets array of data for multiple given `dataKeys`",
31310
31350
  params: {
31311
31351
  dataKeys: "The array of data keys for values to set",
31312
- 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)"
31352
+ dataValues: "The array of values to set"
31313
31353
  }
31314
31354
  }
31315
31355
  },
@@ -31336,7 +31376,7 @@ const FunctionSelectors = {
31336
31376
  },
31337
31377
  /**
31338
31378
  * function transferOwnership(
31339
- * address _pendingOwner
31379
+ * address pendingNewOwner
31340
31380
  * )
31341
31381
  *
31342
31382
  * 0xf2fde38b = keccak256('transferOwnership(address)')
@@ -31344,17 +31384,16 @@ const FunctionSelectors = {
31344
31384
  "0xf2fde38b": {
31345
31385
  sig: "transferOwnership(address)",
31346
31386
  inputs: [
31347
- { internalType: "address", name: "_pendingOwner", type: "address" }
31387
+ { internalType: "address", name: "pendingNewOwner", type: "address" }
31348
31388
  ],
31349
31389
  name: "transferOwnership",
31350
31390
  outputs: [],
31351
31391
  stateMutability: "nonpayable",
31352
31392
  type: "function",
31353
31393
  devdoc: {
31354
- 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.",
31355
- params: {
31356
- _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."
31357
- }
31394
+ "custom:requirements": "- MUST pass when called by the owner or by an authorized address that passes the verification check performed on the owner according to [LSP20-CallVerification] specification. - When notifying the new owner via LSP1, the `typeId` used MUST be `keccak256('LSP0OwnershipTransferStarted')`. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
31395
+ details: "Sets the address of the `pendingNewOwner` as a pending owner that should call {`acceptOwnership()`} in order to complete the ownership transfer to become the new {`owner()`} of the account. Notifies the pending owner via LSP1Standard by calling {universalReceiver()} on the pending owner if it's an address that supports LSP1.",
31396
+ params: { pendingNewOwner: "The address of the new pending owner." }
31358
31397
  },
31359
31398
  userdoc: {
31360
31399
  notice: "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
@@ -31381,7 +31420,8 @@ const FunctionSelectors = {
31381
31420
  stateMutability: "payable",
31382
31421
  type: "function",
31383
31422
  devdoc: {
31384
- 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.",
31423
+ "custom:events": "- {ValueReceived} when receiving native tokens. - {UniversalReceiver} event.",
31424
+ details: "The function performs the following steps: 1. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]`. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the ERC725Y storage with the data key `[_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY] + <bytes32 typeId>`. (Check [LSP2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
31385
31425
  params: {
31386
31426
  receivedData: "The data received.",
31387
31427
  typeId: "The type of call received."
@@ -31391,7 +31431,7 @@ const FunctionSelectors = {
31391
31431
  }
31392
31432
  },
31393
31433
  userdoc: {
31394
- notice: "Achieves the goal of LSP1-UniversalReceiver by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
31434
+ notice: "Achieves the goal of [LSP1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
31395
31435
  }
31396
31436
  }
31397
31437
  }