LedgerModule
Hilt module for Ledger component dependencies.
Provided Dependencies:
NodeRpcClient: HTTP client for Midnight node JSON-RPC API
ProofServerClient: HTTP client for Midnight proof server
TransactionSerializer: SCALE serialization using Rust FFI
TransactionSubmitter: Transaction submission orchestrator
FeeCalculator: Calculates transaction fees
DustSpendCreator: Creates dust spend actions
Note: DustActionsBuilder is auto-provided by Hilt via @Inject constructor
Functions
Provide DustSpendCreator object.
Provide FeeCalculator object.
Provide NodeRpcClient singleton.
Provide ProofServerClient singleton.
Provide ProvingKeyManager for local ZK proving.
Provide TransactionSerializer singleton.
Provide TransactionSubmitter singleton with network-aware client resolution. The NetworkClientProvider creates fresh clients for the currently-selected network on each transaction, so network switches in Settings take effect without app restart.