entities

package
v0.75.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreValidCursorBoundaries added in v0.74.0

func AreValidCursorBoundaries(start, end *TxCursor) bool

AreValidCursorBoundaries checks if the start and end cursors creates valid set boundaries for cursors, as: [start, end].

Types

type TxCursor

type TxCursor struct {
	BlockNumber uint64
	TxIndex     uint32
}

func TxCursorFromString

func TxCursorFromString(s string) (TxCursor, error)

func (*TxCursor) String

func (c *TxCursor) String() string

type TxResultRow

type TxResultRow struct {
	RowID       int64     `db:"rowid"`
	BlockHeight int64     `db:"block_height"`
	Index       int64     `db:"index"`
	CreatedAt   time.Time `db:"created_at"`
	TxHash      string    `db:"tx_hash"`
	TxResult    []byte    `db:"tx_result"`
	Submitter   string    `db:"submitter"`
	CmdType     string    `db:"cmd_type"`
}

func (*TxResultRow) Cursor

func (t *TxResultRow) Cursor() TxCursor

func (*TxResultRow) ToProto

func (t *TxResultRow) ToProto() (*pb.Transaction, error)

Jump to

Keyboard shortcuts

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