transfer

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Msg

type Msg struct {
	From      string
	To        string
	Amount    string
	Token     string
	TokenName string
	TxHash    string
}

func (Msg) String

func (msg Msg) String() string

type TransferProcessor

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

func NewTransferProcessor

func NewTransferProcessor(cfg TransferProcessorConfig,
	cosmosClient *cosmos.CosmosClient,
	db *store.Store,
	log logger.Logger,
) (*TransferProcessor, error)

func (*TransferProcessor) Process

func (p *TransferProcessor) Process(_ context.Context, receipt *sdk.TxResponse) error

func (*TransferProcessor) Queue

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

func (*TransferProcessor) Start

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

type TransferProcessorConfig

type TransferProcessorConfig struct {
	common.BaseConfig
}

func DefaultConfig

func DefaultConfig() TransferProcessorConfig

func (TransferProcessorConfig) IsValid

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

Jump to

Keyboard shortcuts

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