transfer

package
v0.1.0-alpha-10 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 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 int64
	TargetChainId int64
	NativeChainId int64
	SourceAsset   string
	TargetAsset   string
	NativeAsset   string
	Receiver      string
	Amount        string
	Timestamp     string
}

Transfer serves as a model between Transfer Watcher and Handler

func New

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

New instantiates Transfer struct ready for submission to the handler

Jump to

Keyboard shortcuts

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