Skip to main content
Version: 1.15.0

Type Alias: SetPolicyEngineParams

SetPolicyEngineParams = { advancedPoolHooks: string; newPolicyEngine: string; sender?: string; }

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

Parameters for SetPolicyEngine.

Properties​

advancedPoolHooks​

advancedPoolHooks: string

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

Hooks contract to reconfigure. Must be non-zero and report type AdvancedPoolHooks.


newPolicyEngine​

newPolicyEngine: string

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

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

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

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.