Expand description
This crate contains types and traits that ensure correct interfacing with Ethereum RPC providers.
The most important trait is HoprRpcOperations which allows to send arbitrary on-chain transactions and also to perform the selection of HOPR-related smart contract operations. Secondly, the HoprIndexerRpcOperations is a trait that contains all operations required by the Indexer to subscribe to the block with logs from the chain.
Both of these traits implemented and realized via the RpcOperations type, so this represents the main entry point to all RPC related operations.
Modules§
- client
- Extended
JsonRpcClient
abstraction. - errors
- indexer
- Extends the RpcOperations type with functionality needed by the Indexer component.
- rpc
- General purpose high-level RPC operations implementation (
HoprRpcOperations
).
Structs§
- Block
With Logs - Structure containing filtered logs that all belong to the same block.
- Http
Post Requestor Config - Common configuration for all native
HttpPostRequestor
s - Log
- A type containing selected fields from the
eth_getLogs
RPC calls. - LogFilter
- Represents a filter to extract logs containing specific contract events from a block.
- Node
Safe Module Status - Represents the on-chain status for the Node Safe module.
- Pending
Transaction - Represents a pending transaction that can be eventually resolved until confirmation, which is done by polling the respective RPC provider.
- Transaction
Receipt - Contains some selected fields of a receipt for a transaction that has been already included in the blockchain.
- Zero
Retry Policy - Performs no retries.
Enums§
- Retry
Action - Indicates what retry action should be taken, as result of a
RetryPolicy
implementation. - Typed
Transaction - The TypedTransaction enum represents all Ethereum transaction types.
Traits§
- Hopr
Indexer RpcOperations - Trait with RPC provider functionality required by the Indexer.
- Hopr
RpcOperations - Trait defining a general set of operations an RPC provider must provide to the HOPR node.
- Http
Post Requestor - Abstraction for an HTTP client that performs HTTP POST with serializable request data.
- Retry
Policy - Simple retry policy trait
Functions§
- create_
eip1559_ transaction - Shorthand for creating a new EIP1559 transaction object.