build_permission_observation
Documentation for eth_defi.hyperliquid.permission.build_permission_observation function.
- build_permission_observation(vault, info)
Capture the successful response before portfolio processing starts.
The client retains trimmed raw flags and their receipt clock. Test doubles without this envelope use the immediately returned parsed response instead.
- Parameters
vault (eth_defi.hyperliquid.vault.HyperliquidVault) – Client that just fetched
vaultDetails.info (Optional[eth_defi.hyperliquid.vault.VaultInfo]) – Parsed response, including nullable flags and policy inputs.
- Returns
New immutable coherent observation, even without price history.
- Return type