Skip to main content
Version: 1.15.0

Type Alias: SetPolicyEngineParams

SetPolicyEngineParams = AdvancedPoolHooksTarget & { newPolicyEngine: string; sender?: string; }

Defined in: cct/evm/advanced-pool-hooks/operations/set-policy-engine.ts:33

Parameters for SetPolicyEngine.

Type Declaration​

newPolicyEngine​

newPolicyEngine: string

Policy engine to attach; must have deployed code unless zero, which disables policy checks. It must also implement the required attach() / detach() hooks.

sender?​

optional sender?: string

Hooks owner. Sets tx.from for offline / multisig signing and, when supplied, is checked against the hooks' on-chain owner() before calldata is built. Optional for SetPolicyEngine.generate; SetPolicyEngine.execute defaults it to the signing wallet.