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
type EthSubscriptionManager ¶
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)
Click to show internal directories.
Click to hide internal directories.