eth

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, MIT Imports: 51 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EthSubscribeEventTypeHeads               = "newHeads"
	EthSubscribeEventTypeLogs                = "logs"
	EthSubscribeEventTypePendingTransactions = "newPendingTransactions"
)

Variables

View Source
var ErrModuleDisabled = errors.New("module disabled, enable with Fevm.EnableEthRPC / VENUS_FEVM_ENABLEETHRPC")
View Source
var ErrNullRound = errors.New("requested epoch was a null round")
View Source
var ErrUnsupported = errors.New("unsupported method")

Functions

This section is empty.

Types

type EthSubModule

type EthSubModule struct {
	// contains filtered or unexported fields
}

func NewEthSubModule

func NewEthSubModule(ctx context.Context,
	cfg *config.Config,
	chainModule *chain.ChainSubmodule,
	mpoolModule *mpool.MessagePoolSubmodule,
	sqlitePath string,
	syncAPI v1api.ISyncer,
) (*EthSubModule, error)

func (*EthSubModule) API

func (em *EthSubModule) API() v1api.FullETH

func (*EthSubModule) Close

func (em *EthSubModule) Close(ctx context.Context) error

func (*EthSubModule) GetEventFilterManager added in v1.15.0

func (em *EthSubModule) GetEventFilterManager() *filter.EventFilterManager

func (*EthSubModule) Start

func (em *EthSubModule) Start(_ context.Context) error

type EthSubscriptionManager

type EthSubscriptionManager struct {
	ChainAPI v1.IChain
	// contains filtered or unexported fields
}

func (*EthSubscriptionManager) StartSubscription

func (e *EthSubscriptionManager) StartSubscription(ctx context.Context, out ethSubscriptionCallback, dropFilter func(context.Context, filter.Filter) error) (*ethSubscription, error)

func (*EthSubscriptionManager) StopSubscription

func (e *EthSubscriptionManager) StopSubscription(ctx context.Context, id types.EthSubscriptionID) error

Jump to

Keyboard shortcuts

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