Skip to content
Alchemy Logo

TimeRangeModule

const TimeRangeModule: object;

Defined in: packages/smart-accounts/src/ma-v2/modules/time-range-module/module.ts:7

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: ""; 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: "uint32"; name: "entityId"; type: "uint32"; }, { internalType: "uint48"; name: "validUntil"; type: "uint48"; }, { internalType: "uint48"; name: "validAfter"; type: "uint48"; }]; name: "setTimeRange"; outputs: readonly []; stateMutability: "nonpayable"; 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 [{ internalType: "uint32"; name: "entityId"; type: "uint32"; }, { internalType: "address"; name: "account"; type: "address"; }]; name: "timeRanges"; outputs: readonly [{ internalType: "uint48"; name: "validUntil"; type: "uint48"; }, { internalType: "uint48"; name: "validAfter"; type: "uint48"; }]; stateMutability: "view"; type: "function"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "uint32"; name: "entityId"; type: "uint32"; }, { indexed: true; internalType: "address"; name: "account"; type: "address"; }, { indexed: false; internalType: "uint48"; name: "validUntil"; type: "uint48"; }, { indexed: false; internalType: "uint48"; name: "validAfter"; type: "uint48"; }]; name: "TimeRangeSet"; type: "event"; }, { inputs: readonly []; name: "NotImplemented"; type: "error"; }, { inputs: readonly []; name: "TimeRangeNotValid"; type: "error"; }, { inputs: readonly []; name: "UnexpectedDataPassed"; type: "error"; }]

timeRangeModuleAbi

buildHook()

(installArgs, address) => object

encodeOnInstallData()

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

encodeOnUninstallData()

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

encodeSetTimeRange()

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

Was this page helpful?