should_enable_hypercore_guard

Documentation for eth_defi.lagoon.deployment.should_enable_hypercore_guard function.

should_enable_hypercore_guard(*, chain_id, any_hypercore_vault, hypercore_vaults)

Should Hypercore guard support be enabled for this deployment.

any_hypercore_vault=True intentionally bypasses only the per-vault Hypercore address check. Hypercore deposits and withdrawals still require CoreWriter actions, the CoreDepositWallet approval/target, and ERC-20 token validation to be explicitly whitelisted.

Parameters
  • chain_id (int) – EVM chain ID for the deployment.

  • any_hypercore_vault (bool) – Whether to enable the narrow dynamic Hypercore vault policy.

  • hypercore_vaults (Optional[list[eth_typing.evm.HexAddress | str]]) – Explicit Hypercore vault addresses, if any.

Returns

True when the deployment must install Hypercore guard rules.

Return type

bool