outtxprocessor

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToOutTxID

func ToOutTxID(index string, receiverChainID int64, nonce uint64) string

ToOutTxID returns the outTxID for OutTxProcessorManager to track

Types

type Processor

type Processor struct {
	Logger zerolog.Logger
	// contains filtered or unexported fields
}

Processor is a struct that contains data about outbound being processed TODO(revamp): rename this struct as it is not used to process outbound but track their processing We can also consider removing it once we refactor chain client to contains common logic to sign outbounds

func NewOutTxProcessor

func NewOutTxProcessor(logger zerolog.Logger) *Processor

NewProcessor creates a new Processor

func (*Processor) EndTryProcess

func (outTxMan *Processor) EndTryProcess(outTxID string)

func (*Processor) IsOutTxActive

func (outTxMan *Processor) IsOutTxActive(outTxID string) bool

func (*Processor) StartTryProcess

func (outTxMan *Processor) StartTryProcess(outTxID string)

func (*Processor) TimeInTryProcess

func (outTxMan *Processor) TimeInTryProcess(outTxID string) time.Duration

Jump to

Keyboard shortcuts

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