Crate relay_utils
source ·Expand description
Utilities used by different relays.
Re-exports§
pub use error::Error;
pub use relay_loop::relay_loop;
pub use relay_loop::relay_metrics;
Modules§
- Relayer initialization functions.
Macros§
- Macro that returns (client, Err(error)) tuple from function if result is Err(error).
- Macro that returns (client, Err(error)) tuple from function if result is Err(error).
Structs§
- Generic header Id.
Enums§
- Which client has caused error.
- Future process result.
- Stringified error that may be either connection-related or not.
- Final status of the tracked transaction.
Constants§
- Delay after connection-related error happened before we’ll try reconnection again.
- Max delay after connection-unrelated error happened before we’ll try the same request again.
- Default relay loop stall timeout. If transactions generated by relay are immortal, then this timeout is used.
Traits§
- Block number traits shared by all chains that relay is able to serve.
- Error type that can signal connection errors.
- Transaction tracker.
- Just like
From
except that if the source value is too big to fit into the destination type then it’ll saturate the destination. - Just like
Into
except that if the source value is too big to fit into the destination type then it’ll saturate the destination.
Functions§
- Compact format of IDs vector.
- Stream that emits item every
timeout_ms
milliseconds. - Process result of the future from a client.
- Exponential backoff for connection-unrelated errors retries.
Type Aliases§
- Future associated with
TransactionTracker
, monitoring the transaction status.