DiodeClient.Contracts.Registry (Diode Client v1.4.12)
View SourceRead-only accessors for the Moonbeam DiodeRegistryLight contract.
Uses on-chain view calls only (no direct storage reads).
seconds_per_epoch/0 returns a fixed protocol constant (30 days), not a value
read from the contract.
Summary
Functions
Returns the DiodeRegistryLight contract address on Moonbeam.
Returns the epoch stored in contract state.
Returns the epoch computed from the current block timestamp.
Returns whether the computed epoch differs from the stored epoch.
Returns the list of registered fleet contract addresses.
Returns fleet state for the given fleet address.
Returns node state for the given fleet and node addresses.
Returns the list of registered relay addresses.
Returns the protocol constant for seconds per epoch (30 days, 2_592_000).
Returns the shell used for registry view calls (DiodeClient.Shell.Moonbeam).
Returns the DIODE token contract address used by the registry.
Returns the on-chain registry version.
Functions
Returns the DiodeRegistryLight contract address on Moonbeam.
Returns the epoch stored in contract state.
Optional block selects the block for the view call (defaults to latest).
Returns the epoch computed from the current block timestamp.
Optional block selects the block for the view call (defaults to latest).
Returns whether the computed epoch differs from the stored epoch.
When true, an epoch sync transaction is needed on-chain.
Optional block selects the block for the view call (defaults to latest).
Returns the list of registered fleet contract addresses.
Optional block selects the block for the view call (defaults to latest).
Returns fleet state for the given fleet address.
Returns a map with:
:exists- whether the fleet is registered:current_balance- fleet balance in wei:withdraw_request_size- pending withdraw request size:withdrawable_balance- balance available to withdraw:current_epoch- fleet's stored epoch:score- fleet score
Optional block selects the block for the view call (defaults to latest).
Returns node state for the given fleet and node addresses.
Returns a map with:
:node- the node's on-chain address:score- the node's score
Optional block selects the block for the view call (defaults to latest).
Returns the list of registered relay addresses.
Optional block selects the block for the view call (defaults to latest).
Returns the protocol constant for seconds per epoch (30 days, 2_592_000).
This value is not queried on-chain; the contract does not expose an accessor for it.
Returns the shell used for registry view calls (DiodeClient.Shell.Moonbeam).
Returns the DIODE token contract address used by the registry.
Optional block selects the block for the view call (defaults to latest).
Returns the on-chain registry version.
Optional block selects the block for the view call (defaults to latest).