# README
This package contains the Ethereum integration logic.
- The RPC connection to a geth node
- The ABIs for the smart contracts which the platform needs to know about.
# Packages
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
CalculateSlot calculates the slot number from a given timestamp, genesis time and seconds per slot.
DecodeBlobs decodes blobs into the data encoded in them accounting for excess blob bits.
EncodeBlobs converts bytes into blobs used for KZG commitment EIP-4844 transactions on Ethereum.
KZGToVersionedHash computes the versioned hash of a blob-commitment, as used in a blob-tx.
MakeSidecar builds & returns the BlobTxSidecar and corresponding blob hashes from the raw blob data.
MatchSidecarsWithHashes matches the fetched sidecars with the provided hashes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewEthClient instantiates a new ethadapter.EthClient that connects to an ethereum node.
NewEthClientFromURL instantiates a new ethadapter.EthClient that connects to an ethereum node.
NewL1BeaconClient returns a client for making requests to an L1 consensus layer node.
ReconstructRollup decodes and returns the ExtRollup in the blob.
VerifyBlobProof verifies that the given blob and proof corresponds to the given commitment.
# Constants
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ArchivalBlobResponse nested struct is needed to match the structure of the API response.
No description provided by the author
BaseHTTPClient provides common HTTP functionality for different clients.
BeaconHTTPClient implements BeaconClient.
No description provided by the author
ClientPool is a simple round-robin client pool.
Info forces the RPC EthClient to return the data in the same format (independently of its implementation).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
BeaconClient is a thin wrapper over the Beacon APIs.
BlobRetrievalService is a wrapper for clients that can fetch blobs from different sources.
EthClient defines the interface for RPC communications with the ethereum nodes todo (#1617) - some of these methods are composed calls that should be decoupled in the future (ie: BlocksBetween or IsBlockAncestor).
L1Transaction is an abstraction that transforms an Ethereum transaction into a format that can be consumed more easily by TEN.
# Type aliases
No description provided by the author
No description provided by the author
TimeToSlot cache the function to avoid recomputing it for every block.
Uint64String is a decimal string representation of an uint64, for usage in the Beacon API JSON encoding.