transfer

package
v0.0.3-rc-5 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hedera added in v1.4.0

type Hedera struct {
	AccountID hedera.AccountID
	Amount    int64
}

Hedera is used as a data transfer struct between packages

type Transfer

type Transfer struct {
	TransactionId string
	SourceChainId uint64
	TargetChainId uint64
	NativeChainId uint64
	SourceAsset   string
	TargetAsset   string
	NativeAsset   string
	Receiver      string
	Amount        string
	SerialNum     int64
	Metadata      string
	IsNft         bool
	Timestamp     string
}

Transfer serves as a model between Transfer Watcher and Handler

func New

func New(txId string,
	sourceChainId, targetChainId, nativeChainId uint64,
	receiver, sourceAsset, targetAsset, nativeAsset, amount string) *Transfer

New instantiates Transfer struct ready for submission to the handler

func NewNft

func NewNft(
	txId string,
	sourceChainId, targetChainId, nativeChainId uint64, receiver, sourceAsset, targetAsset, nativeAsset string, serialNum int64, metadata string) *Transfer

NewNft instantiates a Transfer, consisting of serial num and metadata for a given NFT

Jump to

Keyboard shortcuts

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