view

package
v1.3.24 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountTransactionBaseRow

type AccountTransactionBaseRow struct {
	Account      string          `json:"account,omitempty"`
	BlockHeight  int64           `json:"blockHeight"`
	BlockHash    string          `json:"blockHash"`
	BlockTime    utctime.UTCTime `json:"blockTime"`
	Hash         string          `json:"hash"`
	MessageTypes []string        `json:"messageTypes"`
	Success      bool            `json:"success"`
}

type AccountTransactionData

type AccountTransactionData struct {
	// contains filtered or unexported fields
}

AccountTransactionData projection view implemented by relational database

func NewAccountTransactionData

func NewAccountTransactionData(handle *rdb.Handle) *AccountTransactionData

func (*AccountTransactionData) Insert

func (transactionsView *AccountTransactionData) Insert(transaction *TransactionRow) error

func (*AccountTransactionData) InsertAll

func (transactionsView *AccountTransactionData) InsertAll(transactions []TransactionRow) error

type AccountTransactionReadRow

type AccountTransactionReadRow struct {
	AccountTransactionBaseRow

	Success       bool                    `json:"success"`
	Code          int                     `json:"code"`
	Log           string                  `json:"log"`
	Fee           coin.Coins              `json:"fee"`
	FeePayer      string                  `json:"feePayer"`
	FeeGranter    string                  `json:"feeGranter"`
	GasWanted     int                     `json:"gasWanted"`
	GasUsed       int                     `json:"gasUsed"`
	Memo          string                  `json:"memo"`
	TimeoutHeight int64                   `json:"timeoutHeight"`
	Messages      []TransactionRowMessage `json:"messages"`
}

type AccountTransactionRecord

type AccountTransactionRecord struct {
	Row      AccountTransactionBaseRow
	Accounts []string
}

type AccountTransactions

type AccountTransactions struct {
	// contains filtered or unexported fields
}

BlockTransactions projection view implemented by relational database

func NewAccountTransactions

func NewAccountTransactions(handle *rdb.Handle) *AccountTransactions

func (*AccountTransactions) InsertAll

func (accountMessagesView *AccountTransactions) InsertAll(
	rows []AccountTransactionBaseRow,
) error

type AccountTransactionsListFilter

type AccountTransactionsListFilter struct {
	// Required account filter
	Account string
	// Optional memo filter
	Memo string
}

type AccountTransactionsListOrder

type AccountTransactionsListOrder struct {
	Id view.ORDER
}

type AccountTransactionsTotal

type AccountTransactionsTotal struct {
	*view.Total
}

func NewAccountTransactionsTotal

func NewAccountTransactionsTotal(rdbHandle *rdb.Handle) *AccountTransactionsTotal

func (*AccountTransactionsTotal) Search

func (total *AccountTransactionsTotal) Search(address string) (bool, error)

type TransactionRow

type TransactionRow struct {
	BlockHeight   int64                   `json:"blockHeight"`
	BlockHash     string                  `json:"blockHash"`
	BlockTime     utctime.UTCTime         `json:"blockTime"`
	Hash          string                  `json:"hash"`
	Index         int                     `json:"index"`
	Success       bool                    `json:"success"`
	Code          int                     `json:"code"`
	Log           string                  `json:"log"`
	Fee           coin.Coins              `json:"fee"`
	FeePayer      string                  `json:"feePayer"`
	FeeGranter    string                  `json:"feeGranter"`
	GasWanted     int                     `json:"gasWanted"`
	GasUsed       int                     `json:"gasUsed"`
	Memo          string                  `json:"memo"`
	TimeoutHeight int64                   `json:"timeoutHeight"`
	Messages      []TransactionRowMessage `json:"messages"`
}

type TransactionRowMessage

type TransactionRowMessage struct {
	Type    string      `json:"type"`
	Content interface{} `json:"content"`
}

type TransactionsListFilter

type TransactionsListFilter struct {
	MaybeBlockHeight *int64
}

type TransactionsListOrder

type TransactionsListOrder struct {
	Height view.ORDER
}

Jump to

Keyboard shortcuts

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