payload

package
v1.5.2-rc-3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 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 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
	Originator       string
	Timestamp        time.Time
	NetworkTimestamp string
	Fee              int64
}

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, fee int64) *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