read_only

package
v0.2.0-alpha-2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CryptoTransfer = "CRYPTOTRANSFER"

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(
	mirrorNode client.MirrorNode,
	transferRepository repository.Transfer,
	pollingInterval time.Duration) *Service

func (Service) FindAssetTransfer

func (s Service) FindAssetTransfer(
	transferID string,
	asset string,
	expectedTransfers []model.Hedera,
	fetch func() (*mirror_node.Response, error),
	save func(transactionID, scheduleID, status string) error)

func (Service) FindNftTransfer

func (s Service) FindNftTransfer(
	transferID string, tokenID string, serialNum int64, sender string, receiver string,
	save func(transactionID, scheduleID, status string) error)

func (Service) FindTransfer

func (s Service) FindTransfer(
	transferID string,
	fetch func() (*mirror_node.Response, error),
	save func(transactionID, scheduleID, status string) error)

Jump to

Keyboard shortcuts

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