Skip to main content
Version: 1.15.0

Type Alias: DeployAdvancedPoolHooksParams

DeployAdvancedPoolHooksParams = { allowlist?: string[]; authorizedCallers?: string[]; policyEngine?: string; sender?: string; thresholdAmount?: bigint; }

Defined in: cct/evm/advanced-pool-hooks/operations/deploy-advanced-pool-hooks.ts:24

Parameters for DeployAdvancedPoolHooks — deploys AdvancedPoolHooks (v2.0.0).

Properties​

allowlist?​

optional allowlist?: string[]

Defined in: cct/evm/advanced-pool-hooks/operations/deploy-advanced-pool-hooks.ts:31

Senders permitted to lockOrBurn through pools bound to these hooks; defaults to [].

Remarks​

Permanent: i_allowlistEnabled is immutable, set to allowlist.length > 0. Deploy with [] and the contract can never gain an allowlist; deploy with entries and it can be edited but never switched off.


authorizedCallers?​

optional authorizedCallers?: string[]

Defined in: cct/evm/advanced-pool-hooks/operations/deploy-advanced-pool-hooks.ts:47

Pools permitted to call preflightCheck / postflightCheck on these hooks; defaults to [].

Remarks​

Binding a pool with updateAdvancedPoolHooks does not authorize it here; a pool missing from this set reverts UnauthorizedCaller on every transfer.


policyEngine?​

optional policyEngine?: string

Defined in: cct/evm/advanced-pool-hooks/operations/deploy-advanced-pool-hooks.ts:41

Policy engine run on every pre/postflight check; the zero address (the default) disables policy checks.


sender?​

optional sender?: string

Defined in: cct/evm/advanced-pool-hooks/operations/deploy-advanced-pool-hooks.ts:49

Deployer address; sets tx.from for offline / multisig signing.


thresholdAmount?​

optional thresholdAmount?: bigint

Defined in: cct/evm/advanced-pool-hooks/operations/deploy-advanced-pool-hooks.ts:36

Amount at or above which the threshold CCVs also apply; 0n (the default) disables the threshold.