Skip to content
    hazBasehazBaseDocs
    SMART CONTRACTS
    Contract catalog

    TimelockController

    Schedule approved operations with an execution delay.

    GovernanceTimelockController.sol@hazbase/kit@0.9.0

    Role and use

    Use when administrative or governance actions need a review period before execution.

    Integration considerationsConfigure proposers, executors, cancellers and minimum delay. Treat schedule and execute as separate transactions.

    Key SDK operations

    These operations are exposed by TimelockControllerHelper in @hazbase/kit@0.9.0. The signatures below are type definitions; see the SDK reference for parameter structures and the complete interface.

    typescript
    import { TimelockControllerHelper } from '@hazbase/kit';

    schedule

    typescript
    async schedule(
        target: Address,
        value: BigNumberish,
        data: BytesLike,
        predecessor: BytesLike = ZERO_BYTES32,
        salt: BytesLike,
        delay: BigNumberish
      ): Promise<TransactionReceipt>

    execute

    typescript
    async execute(
        target: Address,
        value: BigNumberish,
        data: BytesLike,
        predecessor: BytesLike = ZERO_BYTES32,
        salt: BytesLike
      ): Promise<TransactionReceipt>

    cancel

    typescript
    async cancel(id: BytesLike): Promise<TransactionReceipt>

    operationState

    typescript
    async operationState(id: BytesLike): Promise<OperationState>
    View parameters, return types and all methods

    Related contracts

    Put it into practice

    Community & governance

    See the data model, processing sequence and SDK code for an application-level implementation.

    Read the implementation pattern

    Specification and source

    The Solidity source is pinned to the revision below. Match it with the SDK version and your network’s implementation address and ABI.

    timelock-controller/contracts/TimelockController.sol

    Source revision: b53a5b5