ethereum

package
v0.0.0-...-ae0dd77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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 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 (*EthereumClient) GetBlockByHash

func (c *EthereumClient) GetBlockByHash(ctx context.Context, tag uint32, height uint64, hash string, opts ...internal.ClientOption) (*api.Block, error)

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)

func (*EthereumClient) UpgradeBlock

func (c *EthereumClient) UpgradeBlock(ctx context.Context, block *api.Block, newTag uint32) (*api.Block, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL