transfers

package
v1.3.1-alpha-1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 27 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
}

func NewService

func NewService(
	hederaNode client.HederaNode,
	mirrorNode client.MirrorNode,
	contractServices map[uint64]service.Contracts,
	transferRepository repository.Transfer,
	scheduleRepository repository.Schedule,
	feeRepository repository.Fee,
	feeService service.Fee,
	distributor service.Distributor,
	topicID string,
	bridgeAccount string,
	scheduledService service.Scheduled,
	messageService service.Messages,
	prometheusService service.Prometheus,
	assetsService service.Assets,
) *Service

func (*Service) InitiateNewTransfer

func (ts *Service) InitiateNewTransfer(tm payload.Transfer) (*entity.Transfer, error)

InitiateNewTransfer Stores the incoming transfer message into the Database aware of already processed transfers

func (*Service) Paged added in v1.4.0

func (ts *Service) Paged(req *model.PagedRequest) (*model.Paged, error)

func (*Service) ProcessNativeNftTransfer added in v1.4.0

func (ts *Service) ProcessNativeNftTransfer(tm payload.Transfer) error

func (*Service) ProcessNativeTransfer added in v1.4.0

func (ts *Service) ProcessNativeTransfer(tm payload.Transfer) error

func (*Service) ProcessWrappedTransfer added in v1.4.0

func (ts *Service) ProcessWrappedTransfer(tm payload.Transfer) error

func (*Service) SanityCheckTransfer

func (ts *Service) SanityCheckTransfer(tx mirrorNodeTransaction.Transaction) model.SanityCheckResult

SanityCheckTransfer performs validation on the memo and state proof for the transaction

func (*Service) TransferData

func (ts *Service) TransferData(txId string) (interface{}, error)

TransferData returns from the database the given transfer, its signatures and calculates if its messages have reached super majority

Jump to

Keyboard shortcuts

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