transfer

package
v1.4.1-rc-1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter added in v1.4.0

type Filter struct {
	Originator    string    `json:"originator"`
	Timestamp     time.Time `json:"timestamp"`
	TokenId       string    `json:"tokenId"`
	TransactionId string    `json:"transactionId"`
}

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 Paged added in v1.4.0

type Paged struct {
	Items      []*Transfer `json:"items"`
	TotalCount int64       `json:"totalCount"`
}

type PagedRequest added in v1.4.0

type PagedRequest struct {
	Page     uint64 `json:"page"`
	PageSize uint64 `json:"pageSize"`
	Filter   Filter `json:"filter"`
}

type SanityCheckResult added in v1.4.0

type SanityCheckResult struct {
	ChainId    uint64
	EvmAddress string
	NftId      *hedera.NftID
	Err        error
}

type Transfer

type Transfer struct {
	TransactionId string    `json:"transactionId"`
	SourceChainId uint64    `json:"sourceChainId"`
	TargetChainId uint64    `json:"targetChainId"`
	NativeChainId uint64    `json:"nativeChainId"`
	SourceAsset   string    `json:"sourceAsset"`
	TargetAsset   string    `json:"targetAsset"`
	NativeAsset   string    `json:"nativeAsset"`
	Receiver      string    `json:"receiver"`
	Amount        string    `json:"amount,omitempty"`
	SerialNum     int64     `json:"serialNum,omitempty"`
	Metadata      string    `json:"metadata,omitempty"`
	IsNft         bool      `json:"isNft"`
	Originator    string    `json:"originator"`
	Timestamp     time.Time `json:"timestamp"`
	Fee           string    `json:"fee,omitempty"`
	Status        string    `json:"status"`
}

Transfer serves as a data transfer object and response model

type TransferReset added in v1.4.0

type TransferReset struct {
	TransactionId string `json:"transactionId"`
	SourceChainId uint64 `json:"sourceChainId"`
	TargetChainId uint64 `json:"targetChainId"`
	SourceToken   string `json:"sourceToken"`
	Password      string `json:"password"`
}

Jump to

Keyboard shortcuts

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