Skip to main content

Crate fx_common

Crate fx_common 

Source
Expand description

Common types and utilities for FX Forward Protocol services.

This crate provides shared functionality used by the publisher, keeper, and e2e tests.

Re-exports§

pub use types::*;

Modules§

addresses
Shared contract address loading for all Rust services (CLI, keeper, publisher).
constants
Per-chain constants auto-detected from chain ID.
forex_market
Forex market hours detection.
gas_gate
Client-side gas-price gate. Skips on-chain writes when the latest block’s base_fee_per_gas exceeds a configurable gwei threshold.
health
Shared health check server for Rust services.
network
Network resolution utilities for multi-network environment variable support.
pair_discovery
Runtime pair discovery for off-chain services.
provider
Shared provider setup for Rust service transactions.
shutdown
Shared shutdown signal handling for Rust services.
types
Core types used across FX Forward Protocol services.