view

package
v1.7.41 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRawTransactionRow

type AccountRawTransactionRow struct {
	Account       string                           `json:"account,omitempty"`
	BlockHeight   int64                            `json:"blockHeight"`
	BlockHash     string                           `json:"blockHash"`
	BlockTime     utctime.UTCTime                  `json:"blockTime"`
	Hash          string                           `json:"hash"`
	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      []map[string]interface{}         `json:"messages"`
	Signers       []AccountRawTransactionRowSigner `json:"signers"`
}

type AccountRawTransactionRowSigner

type AccountRawTransactionRowSigner struct {
	MaybeKeyInfo *AccountRawTransactionRowSignerKeyInfo `json:"keyInfo"`

	Address         string `json:"address"`
	AccountSequence uint64 `json:"accountSequence"`
}

type AccountRawTransactionRowSignerKeyInfo

type AccountRawTransactionRowSignerKeyInfo struct {
	Type           string   `json:"type"`
	IsMultiSig     bool     `json:"isMultiSig"`
	Pubkeys        []string `json:"pubkeys"`
	MaybeThreshold *int     `json:"threshold,omitempty"`
}

type AccountRawTransactions

type AccountRawTransactions interface {
	InsertAll(rows []AccountRawTransactionRow) error
	List(
		filter AccountRawTransactionsListFilter,
		order AccountRawTransactionsListOrder,
		pagination *pagination_interface.Pagination,
	) ([]AccountRawTransactionRow, *pagination_interface.PaginationResult, error)
	AccountListByHeight(int64) ([]string, error)
}

func NewAccountRawTransactionsView

func NewAccountRawTransactionsView(handle *rdb.Handle) AccountRawTransactions

func NewMockAccountRawTransactionsView

func NewMockAccountRawTransactionsView(_ *rdb.Handle) AccountRawTransactions

type AccountRawTransactionsListFilter

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

type AccountRawTransactionsListOrder

type AccountRawTransactionsListOrder struct {
	Id view.ORDER
}

type AccountRawTransactionsTotal

type AccountRawTransactionsTotal interface {
	Set(string, int64) error
	Increment(string, int64) error
	IncrementAll([]string, int64) error
	DecrementAll([]string, int64) error
	FindBy(string) (int64, error)
	SumBy([]string) (int64, error)
}

func NewAccountRawTransactionsTotalView

func NewAccountRawTransactionsTotalView(rdbHandle *rdb.Handle) AccountRawTransactionsTotal

func NewMockAccountRawTransactionsTotalView

func NewMockAccountRawTransactionsTotalView(_ *rdb.Handle) AccountRawTransactionsTotal

type AccountRawTransactionsTotalView

type AccountRawTransactionsTotalView struct {
	*view.Total
}

type AccountRawTransactionsView

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

AccountRawTransactionsView projection view implemented by relational database

func (*AccountRawTransactionsView) AccountListByHeight added in v1.5.7

func (accountMessagesView *AccountRawTransactionsView) AccountListByHeight(height int64) ([]string, error)

func (*AccountRawTransactionsView) InsertAll

func (accountMessagesView *AccountRawTransactionsView) InsertAll(
	rows []AccountRawTransactionRow,
) error

type MockAccountRawTransactionsTotalView

type MockAccountRawTransactionsTotalView struct {
	mock.Mock
}

func (*MockAccountRawTransactionsTotalView) DecrementAll

func (view *MockAccountRawTransactionsTotalView) DecrementAll(identities []string, total int64) error

func (*MockAccountRawTransactionsTotalView) FindBy

func (view *MockAccountRawTransactionsTotalView) FindBy(identity string) (int64, error)

func (*MockAccountRawTransactionsTotalView) Increment

func (view *MockAccountRawTransactionsTotalView) Increment(identity string, total int64) error

func (*MockAccountRawTransactionsTotalView) IncrementAll

func (view *MockAccountRawTransactionsTotalView) IncrementAll(identities []string, total int64) error

func (*MockAccountRawTransactionsTotalView) Set

func (view *MockAccountRawTransactionsTotalView) Set(identity string, total int64) error

func (*MockAccountRawTransactionsTotalView) SumBy

func (view *MockAccountRawTransactionsTotalView) SumBy(identities []string) (int64, error)

type MockAccountRawTransactionsView

type MockAccountRawTransactionsView struct {
	testify_mock.Mock
}

func (*MockAccountRawTransactionsView) AccountListByHeight added in v1.5.7

func (accountRawTransactionsView *MockAccountRawTransactionsView) AccountListByHeight(height int64) ([]string, error)

func (*MockAccountRawTransactionsView) InsertAll

func (accountRawTransactionsView *MockAccountRawTransactionsView) InsertAll(
	rows []AccountRawTransactionRow,
) error

Jump to

Keyboard shortcuts

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