txsync

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is meant to handle the ARC callback and update the transaction status in the database.

func NewService

func NewService(logger zerolog.Logger, transactionsRepo TransactionsRepo) *Service

NewService creates a new transaction sync service.

func (*Service) Handle

func (s *Service) Handle(ctx context.Context, txInfo chainmodels.TXInfo) error

Handle processes the ARC callback and updates the transaction status in the database.

type TransactionsRepo

type TransactionsRepo interface {
	UpdateTransaction(ctx context.Context, trackedTx *txmodels.TrackedTransaction) error
	GetTransaction(ctx context.Context, txID string) (transaction *txmodels.TrackedTransaction, err error)
}

TransactionsRepo is an interface for transactions repository.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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