eth

package
v1.10.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0, MIT Imports: 44 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var ErrModuleDisabled = errors.New("module disabled, enable with Fevm.EnableEthRPC / VENUS_FEVM_ENABLEETHRPC")

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,
) (*EthSubModule, error)

func (*EthSubModule) API

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

func (*EthSubModule) Close

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

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) (*ethSubscription, error)

func (*EthSubscriptionManager) StopSubscription

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

Jump to

Keyboard shortcuts

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