Skip to content
Alchemy Logo

PaymasterGuardModule

const PaymasterGuardModule: object;

Defined in: packages/smart-accounts/src/ma-v2/modules/paymaster-guard-module/module.ts:4

NameTypeDefault value

abi

readonly [{ inputs: readonly []; name: "moduleId"; outputs: readonly [{ internalType: "string"; name: ""; type: "string"; }]; stateMutability: "pure"; type: "function"; }, { inputs: readonly [{ internalType: "bytes"; name: "data"; type: "bytes"; }]; name: "onInstall"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "bytes"; name: "data"; type: "bytes"; }]; name: "onUninstall"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint32"; name: "entityId"; type: "uint32"; }, { internalType: "address"; name: "account"; type: "address"; }]; name: "paymasters"; outputs: readonly [{ internalType: "address"; name: "paymaster"; type: "address"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint32"; name: ""; type: "uint32"; }, { internalType: "address"; name: ""; type: "address"; }, { internalType: "uint256"; name: ""; type: "uint256"; }, { internalType: "bytes"; name: ""; type: "bytes"; }, { internalType: "bytes"; name: ""; type: "bytes"; }]; name: "preRuntimeValidationHook"; outputs: readonly []; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint32"; name: ""; type: "uint32"; }, { internalType: "address"; name: ""; type: "address"; }, { internalType: "bytes32"; name: ""; type: "bytes32"; }, { internalType: "bytes"; name: ""; type: "bytes"; }]; name: "preSignatureValidationHook"; outputs: readonly []; stateMutability: "pure"; type: "function"; }, { inputs: readonly [{ internalType: "uint32"; name: "entityId"; type: "uint32"; }, { components: readonly [{ internalType: "address"; name: "sender"; type: "address"; }, { internalType: "uint256"; name: "nonce"; type: "uint256"; }, { internalType: "bytes"; name: "initCode"; type: "bytes"; }, { internalType: "bytes"; name: "callData"; type: "bytes"; }, { internalType: "bytes32"; name: "accountGasLimits"; type: "bytes32"; }, { internalType: "uint256"; name: "preVerificationGas"; type: "uint256"; }, { internalType: "bytes32"; name: "gasFees"; type: "bytes32"; }, { internalType: "bytes"; name: "paymasterAndData"; type: "bytes"; }, { internalType: "bytes"; name: "signature"; type: "bytes"; }]; internalType: "struct PackedUserOperation"; name: "userOp"; type: "tuple"; }, { internalType: "bytes32"; name: ""; type: "bytes32"; }]; name: "preUserOpValidationHook"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes4"; name: "interfaceId"; type: "bytes4"; }]; name: "supportsInterface"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "BadPaymasterSpecified"; type: "error"; }, { inputs: readonly []; name: "InvalidPaymaster"; type: "error"; }, { inputs: readonly []; name: "NotImplemented"; type: "error"; }, { inputs: readonly []; name: "UnexpectedDataPassed"; type: "error"; }]

paymasterGuardModuleAbi

encodeOnInstallData()

(args) => `0x${string}`

encodeOnUninstallData()

(args) => `0x${string}`

Was this page helpful?