account_watcher

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EvmUnknownMsgType  = "EVM-UNKNOWN"
	EvmTransferMsgType = "EVM-TRANSFER"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountWatchProcessor

type AccountWatchProcessor struct {
	*processorCommon.BaseProcessor
	*evm.EvmClient
	*cosmos.CosmosClient
	// contains filtered or unexported fields
}

func NewAccountWatchProcessor

func NewAccountWatchProcessor(cfg AccountWatchProcessorConfig,
	evmClient *evm.EvmClient,
	cosmosClient *cosmos.CosmosClient,
	db *store.Store,
	log logger.Logger,
) (*AccountWatchProcessor, error)

func (*AccountWatchProcessor) Process

func (p *AccountWatchProcessor) Process(ctx context.Context, receipt interface{}) error

func (*AccountWatchProcessor) Queue

func (p *AccountWatchProcessor) Queue(msg interface{})

func (*AccountWatchProcessor) Start

func (p *AccountWatchProcessor) Start(ctx context.Context)

type AccountWatchProcessorConfig

type AccountWatchProcessorConfig struct {
	common.BaseConfig
}

func DefaultConfig

func DefaultConfig() AccountWatchProcessorConfig

func (AccountWatchProcessorConfig) IsValid

func (cfg AccountWatchProcessorConfig) IsValid() (bool, error)

type Direction

type Direction string

type Msg

type Msg struct {
	processorCommon.TxMsg
	Account   []string
	Direction Direction
	Type      string
}

func (Msg) String

func (msg Msg) String() string

Jump to

Keyboard shortcuts

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