interfaces

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirectionOutgoing = "out"
	DirectionIncoming = "in"
	DirectionLoop     = "loop"
)

Variables

This section is empty.

Functions

func InitAPIHandlers

func InitAPIHandlers(root *router.Group)

Types

type CSTXLock

type CSTXLock struct {
	Hash      string   `json:"hash"`
	TxFee     int64    `json:"txFee"`
	Addresses []string `json:"addresses"`
}

type CSTXRecord

type CSTXRecord struct {
	AgentFee         int64            `json:"agentFee"`
	SourceShard      *cstxShardRecord `json:"sourceShard"`
	DestinationShard *cstxShardRecord `json:"destinationShard"`
	// contains filtered or unexported fields
}

type HistoryResponse

type HistoryResponse struct {
	Data historyData `json:"data"`
}

type Operation

type Operation struct {
	Direction string `json:"direction"`
	// contains filtered or unexported fields
}

DEPRECATED

type RawOperation

type RawOperation struct {
	IsIncoming   bool   `json:"isIncoming"`
	IsCrossShard bool   `json:"isCrossShard"`
	OriginTXHash string `json:"originTxHash"`
	// contains filtered or unexported fields
}

func (RawOperation) AddressIsRegular

func (o RawOperation) AddressIsRegular() bool

func (RawOperation) AddressIsValidMultiSig

func (o RawOperation) AddressIsValidMultiSig() bool

func (RawOperation) IsInput

func (o RawOperation) IsInput() bool

func (RawOperation) IsOutput

func (o RawOperation) IsOutput() bool

type TxRecord

type TxRecord struct {
	Addresses []string `json:"addresses"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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