resp

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetStatus added in v0.43.2

type AssetStatus string
const (
	CLAIMABLE AssetStatus = "claimable"
	FIXED     AssetStatus = "fixed"
)

type BalanceResp added in v0.43.2

type BalanceResp struct {
	Address   string
	AssetInfo *common.AssetInfo
	Free      *big.Int
	Claimable *big.Int
	Freezed   *big.Int
}

type BlockInfoResponse added in v0.43.2

type BlockInfoResponse struct {
	BlockNumber     uint64                     `json:"block_number"`
	BlockHash       string                     `json:"block_hash"`
	ParentBlockHash string                     `json:"parent_block_hash"`
	Timestamp       uint64                     `json:"timestamp"`
	Transactions    []*TransactionInfoResponse `json:"transactions"`
}

type GetBalanceResponse added in v0.43.0

type GetBalanceResponse struct {
	Balances []*BalanceResp `json:"balances"`
}

type QueryGenericTransactionsResponse added in v0.43.0

type QueryGenericTransactionsResponse struct {
	Txs        []*TransactionInfoResponse `json:"txs"`
	TotalCount uint64                     `json:"total_count"`
	NextOffset uint64                     `json:"next_offset"`
}

type RecordResponse added in v0.43.2

type RecordResponse struct {
	Id          uint
	Address     string
	Amount      string
	AssetInfo   *common.AssetInfo
	Status      AssetStatus
	BlockNumber uint
}

type ScriptGroup

type ScriptGroup struct {
	Group       []int
	WitnessArgs *types.WitnessArgs
	PubKey      string
}

type SignatureEntry

type SignatureEntry struct {
	Type     string `json:"type"`
	Index    int    `json:"index"`
	PubKey   string `json:"pub_key"`
	GroupLen int    `json:"group_len"`
}

type TransactionInfoResponse added in v0.43.2

type TransactionInfoResponse struct {
	TxHash     string
	Operations []*RecordResponse
}

type TransactionInfoWithStatusResponse added in v0.43.2

type TransactionInfoWithStatusResponse struct {
	Transaction     *TransactionInfoResponse
	Status          types.TransactionStatus
	BlockHash       string
	BlockNumber     uint64
	ConfirmedNumber uint64
}

type TransferCompletionResponse

type TransferCompletionResponse struct {
	TxView    transactionResp   `json:"tx_view"`
	SigsEntry []*SignatureEntry `json:"sigs_entry"`
}

func (*TransferCompletionResponse) GetScriptGroup

func (self *TransferCompletionResponse) GetScriptGroup() []*ScriptGroup

func (*TransferCompletionResponse) GetTransaction

func (self *TransferCompletionResponse) GetTransaction() *types.Transaction

Jump to

Keyboard shortcuts

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