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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBCChannelMessageRow

type IBCChannelMessageRow struct {
	ChannelID       string          `json:"channelId"`
	BlockHeight     int64           `json:"blockHeight"`
	BlockTime       utctime.UTCTime `json:"blockTime"`
	TransactionHash string          `json:"transactionHash"`
	MaybeRelayer    *string         `json:"relayer"`
	MaybeSuccess    *bool           `json:"success"`
	MaybeError      *string         `json:"error"`
	MaybeSender     *string         `json:"sender"`
	MaybeReceiver   *string         `json:"receiver"`
	MaybeDenom      *string         `json:"denom"`
	MaybeAmount     *string         `json:"amount"`
	MessageType     string          `json:"messageType"`
	Message         interface{}     `json:"message"`
}

type IBCChannelMessages

type IBCChannelMessages interface {
	Insert(*IBCChannelMessageRow) error
	ListByChannelID(
		channelID string,
		order IBCChannelMessagesListOrder,
		filter IBCChannelMessagesListFilter,
		pagination *pagination.Pagination,
	) (
		[]IBCChannelMessageRow,
		*pagination.PaginationResult,
		error,
	)
}

func NewIBCChannelMessagesView

func NewIBCChannelMessagesView(handle *rdb.Handle) IBCChannelMessages

type IBCChannelMessagesListFilter

type IBCChannelMessagesListFilter struct {
	MaybeMsgTypes []string
}

type IBCChannelMessagesListOrder

type IBCChannelMessagesListOrder struct {
	BlockTime view.ORDER
}

type IBCChannelMessagesTotal

type IBCChannelMessagesTotal interface {
	Increment(identity string, total int64) error
	SumBy(identities []string) (int64, error)
}

func NewIBCChannelMessagesTotalView

func NewIBCChannelMessagesTotalView(rdbHandle *rdb.Handle) IBCChannelMessagesTotal

type IBCChannelMessagesTotalView

type IBCChannelMessagesTotalView struct {
	*view.Total
}

type IBCChannelMessagesView

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

func (*IBCChannelMessagesView) Insert

func (ibcChannelMessagesView *IBCChannelMessagesView) Insert(ibcChannelMessage *IBCChannelMessageRow) error

func (*IBCChannelMessagesView) ListByChannelID

func (ibcChannelMessagesView *IBCChannelMessagesView) ListByChannelID(
	channelID string,
	order IBCChannelMessagesListOrder,
	filter IBCChannelMessagesListFilter,
	pagination *pagination.Pagination,
) (
	[]IBCChannelMessageRow,
	*pagination.PaginationResult,
	error,
)

type MockIBCChannelMessageTotalView

type MockIBCChannelMessageTotalView struct {
	testify_mock.Mock
}

func (*MockIBCChannelMessageTotalView) Increment

func (totalView *MockIBCChannelMessageTotalView) Increment(identity string, total int64) error

func (*MockIBCChannelMessageTotalView) SumBy

func (totalView *MockIBCChannelMessageTotalView) SumBy(identities []string) (int64, error)

type MockIBCChannelMessageView

type MockIBCChannelMessageView struct {
	testify_mock.Mock
}

func (*MockIBCChannelMessageView) Insert

func (ibcChannelMessagesView *MockIBCChannelMessageView) Insert(ibcChannelMessage *IBCChannelMessageRow) error

func (*MockIBCChannelMessageView) ListByChannelID

func (ibcChannelMessagesView *MockIBCChannelMessageView) ListByChannelID(
	channelID string,
	order IBCChannelMessagesListOrder,
	filter IBCChannelMessagesListFilter,
	pagination *pagination2.Pagination,
) (
	[]IBCChannelMessageRow,
	*pagination2.PaginationResult,
	error,
)

Jump to

Keyboard shortcuts

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