SMART CONTRACTS
← Contract catalogTimelockController
Schedule approved operations with an execution delay.
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>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 patternSpecification 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.solSource revision: b53a5b5