Documentation ¶
Index ¶
- Variables
- func NewArbitrumClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
- func NewAvacchainClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
- func NewBaseClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
- func NewBscClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
- func NewEthereumClientFactory(params internal.JsonrpcClientParams, opts ...EthereumClientOption) internal.ClientFactory
- func NewFantomClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
- func NewOptimismClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
- func NewPolygonClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
- type EthereumClient
- func (c *EthereumClient) BatchGetBlockMetadata(ctx context.Context, tag uint32, from uint64, to uint64) ([]*api.BlockMetadata, error)
- func (c *EthereumClient) CanReprocess(tag uint32, height uint64) bool
- func (c *EthereumClient) GetAccountProof(ctx context.Context, req *api.GetVerifiedAccountStateRequest) (*api.GetAccountProofResponse, error)
- func (c *EthereumClient) GetBlockByHash(ctx context.Context, tag uint32, height uint64, hash string, ...) (*api.Block, error)
- func (c *EthereumClient) GetBlockByHeight(ctx context.Context, tag uint32, height uint64, opts ...internal.ClientOption) (*api.Block, error)
- func (c *EthereumClient) GetLatestHeight(ctx context.Context) (uint64, error)
- func (c *EthereumClient) UpgradeBlock(ctx context.Context, block *api.Block, newTag uint32) (*api.Block, error)
- type EthereumClientOption
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(fx.Annotated{ Name: "arbitrum", Target: NewArbitrumClientFactory, }), fx.Provide(fx.Annotated{ Name: "avacchain", Target: NewAvacchainClientFactory, }), fx.Provide(fx.Annotated{ Name: "base", Target: NewBaseClientFactory, }), fx.Provide(fx.Annotated{ Name: "bsc", Target: NewBscClientFactory, }), fx.Provide(fx.Annotated{ Name: "ethereum", Target: NewEthereumClientFactory, }), fx.Provide(fx.Annotated{ Name: "fantom", Target: NewFantomClientFactory, }), fx.Provide(fx.Annotated{ Name: "optimism", Target: NewOptimismClientFactory, }), fx.Provide(fx.Annotated{ Name: "polygon", Target: NewPolygonClientFactory, }), beacon.Module, )
Functions ¶
func NewArbitrumClientFactory ¶
func NewArbitrumClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
func NewAvacchainClientFactory ¶
func NewAvacchainClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
func NewBaseClientFactory ¶
func NewBaseClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
func NewBscClientFactory ¶
func NewBscClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
func NewEthereumClientFactory ¶
func NewEthereumClientFactory(params internal.JsonrpcClientParams, opts ...EthereumClientOption) internal.ClientFactory
func NewFantomClientFactory ¶
func NewFantomClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
func NewOptimismClientFactory ¶
func NewOptimismClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
func NewPolygonClientFactory ¶
func NewPolygonClientFactory(params internal.JsonrpcClientParams) internal.ClientFactory
Types ¶
type EthereumClient ¶
type EthereumClient struct {
// contains filtered or unexported fields
}
func (*EthereumClient) BatchGetBlockMetadata ¶
func (c *EthereumClient) BatchGetBlockMetadata(ctx context.Context, tag uint32, from uint64, to uint64) ([]*api.BlockMetadata, error)
BatchGetBlockMetadata gets block metadatas for the height range [from, to), where "from" is the start of the range inclusive and "to" is the end exclusive.
func (*EthereumClient) CanReprocess ¶
func (c *EthereumClient) CanReprocess(tag uint32, height uint64) bool
func (*EthereumClient) GetAccountProof ¶
func (c *EthereumClient) GetAccountProof(ctx context.Context, req *api.GetVerifiedAccountStateRequest) (*api.GetAccountProofResponse, error)
func (*EthereumClient) GetBlockByHash ¶
func (*EthereumClient) GetBlockByHeight ¶
func (c *EthereumClient) GetBlockByHeight(ctx context.Context, tag uint32, height uint64, opts ...internal.ClientOption) (*api.Block, error)
func (*EthereumClient) GetLatestHeight ¶
func (c *EthereumClient) GetLatestHeight(ctx context.Context) (uint64, error)
type EthereumClientOption ¶
type EthereumClientOption func(client *EthereumClient)
func WithEthereumCommitmentLevel ¶
func WithEthereumCommitmentLevel(commitmentLevel types.CommitmentLevel) EthereumClientOption
func WithEthereumNodeType ¶
func WithEthereumNodeType(nodeType types.EthereumNodeType) EthereumClientOption
func WithEthereumTraceType ¶
func WithEthereumTraceType(traceType types.TraceType) EthereumClientOption
Source Files ¶
Click to show internal directories.
Click to hide internal directories.