repository

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fee added in v1.4.0

type Fee interface {
	// Returns Fee. Returns nil if not found
	Get(txId string) (*entity.Fee, error)
	Create(entity *entity.Fee) error
	UpdateStatusCompleted(txId string) error
	UpdateStatusFailed(txId string) error
	GetAllSubmittedIds() ([]*entity.Fee, error)
}

type Message

type Message interface {
	Create(message *entity.Message) error
	Exist(transferID, signature, hash string) (bool, error)
	Get(transferID string) ([]entity.Message, error)
	GetMessageWith(transferID, signature, hash string) (*entity.Message, error)
}

type Schedule added in v1.4.0

type Schedule interface {
	// Returns Schedule. Returns nil if not found
	Get(txId string) (*entity.Schedule, error)
	Create(entity *entity.Schedule) error
	UpdateStatusCompleted(txId string) error
	UpdateStatusFailed(txId string) error
	GetReceiverTransferByTransactionID(id string) (*entity.Schedule, error)
	GetAllSubmittedIds() ([]*entity.Schedule, error)
}

type Status

type Status interface {
	Get(entityID string) (int64, error)
	Update(entityID string, timestampOrBlockNumber int64) error
	Create(entityID string, timestampOrBlockNumber int64) error
}

type Transfer

type Transfer interface {
	// Returns Transfer. Returns nil if not found
	GetByTransactionId(txId string) (*entity.Transfer, error)
	// Returns Transfer with preloaded Fee table. Returns nil if not found
	GetWithFee(txId string) (*entity.Transfer, error)
	GetWithPreloads(txId string) (*entity.Transfer, error)
	UpdateFee(txId string, fee string) error

	Create(ct *payload.Transfer) (*entity.Transfer, error)
	UpdateStatusCompleted(txId string) error
	UpdateStatusFailed(txId string) error
	Paged(req *transfer.PagedRequest) ([]*entity.Transfer, int64, error)
}

Jump to

Keyboard shortcuts

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