fetch_onyx_current_deposit_permissions
Documentation for eth_defi.enzyme.onyx_permission.fetch_onyx_current_deposit_permissions function.
- fetch_onyx_current_deposit_permissions(chain_id, web3factory, active_handlers, block_identifier, max_workers)
Fetch current Onyx permission status using one batched Multicall pass.
Every reviewed getter for every active handler is read at the same fixed block. This makes the output internally consistent and avoids serial RPC calls from individual vault adapters. The event-derived handler set must be fixed at the same block by the caller.
Handler interfaces and their canonical source are documented in Enzyme’s Onyx issuance components.
- Parameters
chain_id (int) – EVM chain containing the Shares vaults.
web3factory (eth_defi.event_reader.web3factory.Web3Factory) – Reusable provider factory for Multicall workers.
active_handlers (collections.abc.Mapping[eth_typing.evm.HexAddress, collections.abc.Iterable[eth_typing.evm.HexAddress]]) – Shares-to-handler mapping reconstructed through the target block.
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) – Current metadata block shared with handler event discovery.
max_workers (int) – Number of threaded Multicall workers.
- Returns
Lower-case Shares addresses mapped to current deposit permission.
- Return type
dict[eth_typing.evm.HexAddress, eth_defi.vault.deposit_redeem.VaultDepositPermission]