IAccount.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. methods {
  2. // Account
  3. function entryPoint() external returns (address) envfree;
  4. function getNonce() external returns (uint256) envfree;
  5. function getNonce(uint192) external returns (uint256) envfree;
  6. function validateUserOp(Account.PackedUserOperation,bytes32,uint256) external returns (uint256);
  7. // IERC1271
  8. function isValidSignature(bytes32,bytes) external returns (bytes4);
  9. // IERC7579AccountConfig
  10. function accountId() external returns (string) envfree;
  11. function supportsExecutionMode(bytes32) external returns (bool) envfree;
  12. function supportsModule(uint256) external returns (bool) envfree;
  13. // IERC7579ModuleConfig
  14. function installModule(uint256,address,bytes) external;
  15. function uninstallModule(uint256,address,bytes) external;
  16. function isModuleInstalled(uint256,address,bytes) external returns (bool) envfree;
  17. // IERC7579Execution
  18. function execute(bytes32,bytes) external;
  19. function executeFromExecutor(bytes32,bytes) external returns (bytes[]);
  20. // IERC721Receiver
  21. function onERC721Received(address,address,uint256,bytes) external returns (bytes4) envfree;
  22. // IERC1155Receiver
  23. function onERC1155Received(address,address,uint256,uint256,bytes) external returns (bytes4) envfree;
  24. function onERC1155BatchReceived(address,address,uint256[],uint256[],bytes) external returns (bytes4) envfree;
  25. // IERC165
  26. function supportsInterface(bytes4) external returns (bool) envfree;
  27. }