receipt

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the receipt type in the database.
	Label = "receipt"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBlockHash holds the string denoting the block_hash field in the database.
	FieldBlockHash = "block_hash"
	// FieldGasUsed holds the string denoting the gas_used field in the database.
	FieldGasUsed = "gas_used"
	// FieldSuccess holds the string denoting the success field in the database.
	FieldSuccess = "success"
	// FieldRelayerAddress holds the string denoting the relayer_address field in the database.
	FieldRelayerAddress = "relayer_address"
	// FieldSourceChainID holds the string denoting the source_chain_id field in the database.
	FieldSourceChainID = "source_chain_id"
	// FieldDestChainID holds the string denoting the dest_chain_id field in the database.
	FieldDestChainID = "dest_chain_id"
	// FieldOffset holds the string denoting the offset field in the database.
	FieldOffset = "offset"
	// FieldTxHash holds the string denoting the tx_hash field in the database.
	FieldTxHash = "tx_hash"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldRevertReason holds the string denoting the revert_reason field in the database.
	FieldRevertReason = "revert_reason"
	// EdgeBlock holds the string denoting the block edge name in mutations.
	EdgeBlock = "block"
	// EdgeMsgs holds the string denoting the msgs edge name in mutations.
	EdgeMsgs = "msgs"
	// Table holds the table name of the receipt in the database.
	Table = "receipts"
	// BlockTable is the table that holds the block relation/edge. The primary key declared below.
	BlockTable = "block_receipts"
	// BlockInverseTable is the table name for the Block entity.
	// It exists in this package in order to avoid circular dependency with the "block" package.
	BlockInverseTable = "blocks"
	// MsgsTable is the table that holds the msgs relation/edge. The primary key declared below.
	MsgsTable = "msg_receipts"
	// MsgsInverseTable is the table name for the Msg entity.
	// It exists in this package in order to avoid circular dependency with the "msg" package.
	MsgsInverseTable = "msgs"
)

Variables

View Source
var (
	// BlockPrimaryKey and BlockColumn2 are the table columns denoting the
	// primary key for the block relation (M2M).
	BlockPrimaryKey = []string{"block_id", "receipt_id"}
	// MsgsPrimaryKey and MsgsColumn2 are the table columns denoting the
	// primary key for the msgs relation (M2M).
	MsgsPrimaryKey = []string{"msg_id", "receipt_id"}
)
View Source
var (
	Hooks [1]ent.Hook
	// BlockHashValidator is a validator for the "block_hash" field. It is called by the builders before save.
	BlockHashValidator func([]byte) error
	// RelayerAddressValidator is a validator for the "relayer_address" field. It is called by the builders before save.
	RelayerAddressValidator func([]byte) error
	// TxHashValidator is a validator for the "tx_hash" field. It is called by the builders before save.
	TxHashValidator func([]byte) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
	// RevertReasonValidator is a validator for the "revert_reason" field. It is called by the builders before save.
	RevertReasonValidator func(string) error
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/omni-network/omni/explorer/db/ent/runtime"

Columns holds all SQL columns for receipt fields.

Functions

func And

func And(predicates ...predicate.Receipt) predicate.Receipt

And groups predicates with the AND operator between them.

func BlockHash added in v0.1.7

func BlockHash(v []byte) predicate.Receipt

BlockHash applies equality check predicate on the "block_hash" field. It's identical to BlockHashEQ.

func BlockHashEQ added in v0.1.7

func BlockHashEQ(v []byte) predicate.Receipt

BlockHashEQ applies the EQ predicate on the "block_hash" field.

func BlockHashGT added in v0.1.7

func BlockHashGT(v []byte) predicate.Receipt

BlockHashGT applies the GT predicate on the "block_hash" field.

func BlockHashGTE added in v0.1.7

func BlockHashGTE(v []byte) predicate.Receipt

BlockHashGTE applies the GTE predicate on the "block_hash" field.

func BlockHashIn added in v0.1.7

func BlockHashIn(vs ...[]byte) predicate.Receipt

BlockHashIn applies the In predicate on the "block_hash" field.

func BlockHashLT added in v0.1.7

func BlockHashLT(v []byte) predicate.Receipt

BlockHashLT applies the LT predicate on the "block_hash" field.

func BlockHashLTE added in v0.1.7

func BlockHashLTE(v []byte) predicate.Receipt

BlockHashLTE applies the LTE predicate on the "block_hash" field.

func BlockHashNEQ added in v0.1.7

func BlockHashNEQ(v []byte) predicate.Receipt

BlockHashNEQ applies the NEQ predicate on the "block_hash" field.

func BlockHashNotIn added in v0.1.7

func BlockHashNotIn(vs ...[]byte) predicate.Receipt

BlockHashNotIn applies the NotIn predicate on the "block_hash" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Receipt

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Receipt

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Receipt

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Receipt

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Receipt

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Receipt

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Receipt

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Receipt

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Receipt

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DestChainID

func DestChainID(v uint64) predicate.Receipt

DestChainID applies equality check predicate on the "dest_chain_id" field. It's identical to DestChainIDEQ.

func DestChainIDEQ

func DestChainIDEQ(v uint64) predicate.Receipt

DestChainIDEQ applies the EQ predicate on the "dest_chain_id" field.

func DestChainIDGT

func DestChainIDGT(v uint64) predicate.Receipt

DestChainIDGT applies the GT predicate on the "dest_chain_id" field.

func DestChainIDGTE

func DestChainIDGTE(v uint64) predicate.Receipt

DestChainIDGTE applies the GTE predicate on the "dest_chain_id" field.

func DestChainIDIn

func DestChainIDIn(vs ...uint64) predicate.Receipt

DestChainIDIn applies the In predicate on the "dest_chain_id" field.

func DestChainIDLT

func DestChainIDLT(v uint64) predicate.Receipt

DestChainIDLT applies the LT predicate on the "dest_chain_id" field.

func DestChainIDLTE

func DestChainIDLTE(v uint64) predicate.Receipt

DestChainIDLTE applies the LTE predicate on the "dest_chain_id" field.

func DestChainIDNEQ

func DestChainIDNEQ(v uint64) predicate.Receipt

DestChainIDNEQ applies the NEQ predicate on the "dest_chain_id" field.

func DestChainIDNotIn

func DestChainIDNotIn(vs ...uint64) predicate.Receipt

DestChainIDNotIn applies the NotIn predicate on the "dest_chain_id" field.

func GasUsed

func GasUsed(v uint64) predicate.Receipt

GasUsed applies equality check predicate on the "gas_used" field. It's identical to GasUsedEQ.

func GasUsedEQ

func GasUsedEQ(v uint64) predicate.Receipt

GasUsedEQ applies the EQ predicate on the "gas_used" field.

func GasUsedGT

func GasUsedGT(v uint64) predicate.Receipt

GasUsedGT applies the GT predicate on the "gas_used" field.

func GasUsedGTE

func GasUsedGTE(v uint64) predicate.Receipt

GasUsedGTE applies the GTE predicate on the "gas_used" field.

func GasUsedIn

func GasUsedIn(vs ...uint64) predicate.Receipt

GasUsedIn applies the In predicate on the "gas_used" field.

func GasUsedLT

func GasUsedLT(v uint64) predicate.Receipt

GasUsedLT applies the LT predicate on the "gas_used" field.

func GasUsedLTE

func GasUsedLTE(v uint64) predicate.Receipt

GasUsedLTE applies the LTE predicate on the "gas_used" field.

func GasUsedNEQ

func GasUsedNEQ(v uint64) predicate.Receipt

GasUsedNEQ applies the NEQ predicate on the "gas_used" field.

func GasUsedNotIn

func GasUsedNotIn(vs ...uint64) predicate.Receipt

GasUsedNotIn applies the NotIn predicate on the "gas_used" field.

func HasBlock

func HasBlock() predicate.Receipt

HasBlock applies the HasEdge predicate on the "block" edge.

func HasBlockWith

func HasBlockWith(preds ...predicate.Block) predicate.Receipt

HasBlockWith applies the HasEdge predicate on the "block" edge with a given conditions (other predicates).

func HasMsgs added in v0.1.3

func HasMsgs() predicate.Receipt

HasMsgs applies the HasEdge predicate on the "msgs" edge.

func HasMsgsWith added in v0.1.3

func HasMsgsWith(preds ...predicate.Msg) predicate.Receipt

HasMsgsWith applies the HasEdge predicate on the "msgs" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Receipt

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Receipt

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Receipt

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Receipt

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Receipt

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Receipt

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Receipt

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Receipt

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Receipt

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Offset added in v0.1.7

func Offset(v uint64) predicate.Receipt

Offset applies equality check predicate on the "offset" field. It's identical to OffsetEQ.

func OffsetEQ added in v0.1.7

func OffsetEQ(v uint64) predicate.Receipt

OffsetEQ applies the EQ predicate on the "offset" field.

func OffsetGT added in v0.1.7

func OffsetGT(v uint64) predicate.Receipt

OffsetGT applies the GT predicate on the "offset" field.

func OffsetGTE added in v0.1.7

func OffsetGTE(v uint64) predicate.Receipt

OffsetGTE applies the GTE predicate on the "offset" field.

func OffsetIn added in v0.1.7

func OffsetIn(vs ...uint64) predicate.Receipt

OffsetIn applies the In predicate on the "offset" field.

func OffsetLT added in v0.1.7

func OffsetLT(v uint64) predicate.Receipt

OffsetLT applies the LT predicate on the "offset" field.

func OffsetLTE added in v0.1.7

func OffsetLTE(v uint64) predicate.Receipt

OffsetLTE applies the LTE predicate on the "offset" field.

func OffsetNEQ added in v0.1.7

func OffsetNEQ(v uint64) predicate.Receipt

OffsetNEQ applies the NEQ predicate on the "offset" field.

func OffsetNotIn added in v0.1.7

func OffsetNotIn(vs ...uint64) predicate.Receipt

OffsetNotIn applies the NotIn predicate on the "offset" field.

func Or

func Or(predicates ...predicate.Receipt) predicate.Receipt

Or groups predicates with the OR operator between them.

func RelayerAddress

func RelayerAddress(v []byte) predicate.Receipt

RelayerAddress applies equality check predicate on the "relayer_address" field. It's identical to RelayerAddressEQ.

func RelayerAddressEQ

func RelayerAddressEQ(v []byte) predicate.Receipt

RelayerAddressEQ applies the EQ predicate on the "relayer_address" field.

func RelayerAddressGT

func RelayerAddressGT(v []byte) predicate.Receipt

RelayerAddressGT applies the GT predicate on the "relayer_address" field.

func RelayerAddressGTE

func RelayerAddressGTE(v []byte) predicate.Receipt

RelayerAddressGTE applies the GTE predicate on the "relayer_address" field.

func RelayerAddressIn

func RelayerAddressIn(vs ...[]byte) predicate.Receipt

RelayerAddressIn applies the In predicate on the "relayer_address" field.

func RelayerAddressLT

func RelayerAddressLT(v []byte) predicate.Receipt

RelayerAddressLT applies the LT predicate on the "relayer_address" field.

func RelayerAddressLTE

func RelayerAddressLTE(v []byte) predicate.Receipt

RelayerAddressLTE applies the LTE predicate on the "relayer_address" field.

func RelayerAddressNEQ

func RelayerAddressNEQ(v []byte) predicate.Receipt

RelayerAddressNEQ applies the NEQ predicate on the "relayer_address" field.

func RelayerAddressNotIn

func RelayerAddressNotIn(vs ...[]byte) predicate.Receipt

RelayerAddressNotIn applies the NotIn predicate on the "relayer_address" field.

func RevertReason added in v0.1.9

func RevertReason(v string) predicate.Receipt

RevertReason applies equality check predicate on the "revert_reason" field. It's identical to RevertReasonEQ.

func RevertReasonContains added in v0.1.9

func RevertReasonContains(v string) predicate.Receipt

RevertReasonContains applies the Contains predicate on the "revert_reason" field.

func RevertReasonContainsFold added in v0.1.9

func RevertReasonContainsFold(v string) predicate.Receipt

RevertReasonContainsFold applies the ContainsFold predicate on the "revert_reason" field.

func RevertReasonEQ added in v0.1.9

func RevertReasonEQ(v string) predicate.Receipt

RevertReasonEQ applies the EQ predicate on the "revert_reason" field.

func RevertReasonEqualFold added in v0.1.9

func RevertReasonEqualFold(v string) predicate.Receipt

RevertReasonEqualFold applies the EqualFold predicate on the "revert_reason" field.

func RevertReasonGT added in v0.1.9

func RevertReasonGT(v string) predicate.Receipt

RevertReasonGT applies the GT predicate on the "revert_reason" field.

func RevertReasonGTE added in v0.1.9

func RevertReasonGTE(v string) predicate.Receipt

RevertReasonGTE applies the GTE predicate on the "revert_reason" field.

func RevertReasonHasPrefix added in v0.1.9

func RevertReasonHasPrefix(v string) predicate.Receipt

RevertReasonHasPrefix applies the HasPrefix predicate on the "revert_reason" field.

func RevertReasonHasSuffix added in v0.1.9

func RevertReasonHasSuffix(v string) predicate.Receipt

RevertReasonHasSuffix applies the HasSuffix predicate on the "revert_reason" field.

func RevertReasonIn added in v0.1.9

func RevertReasonIn(vs ...string) predicate.Receipt

RevertReasonIn applies the In predicate on the "revert_reason" field.

func RevertReasonIsNil added in v0.1.9

func RevertReasonIsNil() predicate.Receipt

RevertReasonIsNil applies the IsNil predicate on the "revert_reason" field.

func RevertReasonLT added in v0.1.9

func RevertReasonLT(v string) predicate.Receipt

RevertReasonLT applies the LT predicate on the "revert_reason" field.

func RevertReasonLTE added in v0.1.9

func RevertReasonLTE(v string) predicate.Receipt

RevertReasonLTE applies the LTE predicate on the "revert_reason" field.

func RevertReasonNEQ added in v0.1.9

func RevertReasonNEQ(v string) predicate.Receipt

RevertReasonNEQ applies the NEQ predicate on the "revert_reason" field.

func RevertReasonNotIn added in v0.1.9

func RevertReasonNotIn(vs ...string) predicate.Receipt

RevertReasonNotIn applies the NotIn predicate on the "revert_reason" field.

func RevertReasonNotNil added in v0.1.9

func RevertReasonNotNil() predicate.Receipt

RevertReasonNotNil applies the NotNil predicate on the "revert_reason" field.

func SourceChainID

func SourceChainID(v uint64) predicate.Receipt

SourceChainID applies equality check predicate on the "source_chain_id" field. It's identical to SourceChainIDEQ.

func SourceChainIDEQ

func SourceChainIDEQ(v uint64) predicate.Receipt

SourceChainIDEQ applies the EQ predicate on the "source_chain_id" field.

func SourceChainIDGT

func SourceChainIDGT(v uint64) predicate.Receipt

SourceChainIDGT applies the GT predicate on the "source_chain_id" field.

func SourceChainIDGTE

func SourceChainIDGTE(v uint64) predicate.Receipt

SourceChainIDGTE applies the GTE predicate on the "source_chain_id" field.

func SourceChainIDIn

func SourceChainIDIn(vs ...uint64) predicate.Receipt

SourceChainIDIn applies the In predicate on the "source_chain_id" field.

func SourceChainIDLT

func SourceChainIDLT(v uint64) predicate.Receipt

SourceChainIDLT applies the LT predicate on the "source_chain_id" field.

func SourceChainIDLTE

func SourceChainIDLTE(v uint64) predicate.Receipt

SourceChainIDLTE applies the LTE predicate on the "source_chain_id" field.

func SourceChainIDNEQ

func SourceChainIDNEQ(v uint64) predicate.Receipt

SourceChainIDNEQ applies the NEQ predicate on the "source_chain_id" field.

func SourceChainIDNotIn

func SourceChainIDNotIn(vs ...uint64) predicate.Receipt

SourceChainIDNotIn applies the NotIn predicate on the "source_chain_id" field.

func Success

func Success(v bool) predicate.Receipt

Success applies equality check predicate on the "success" field. It's identical to SuccessEQ.

func SuccessEQ

func SuccessEQ(v bool) predicate.Receipt

SuccessEQ applies the EQ predicate on the "success" field.

func SuccessNEQ

func SuccessNEQ(v bool) predicate.Receipt

SuccessNEQ applies the NEQ predicate on the "success" field.

func TxHash

func TxHash(v []byte) predicate.Receipt

TxHash applies equality check predicate on the "tx_hash" field. It's identical to TxHashEQ.

func TxHashEQ

func TxHashEQ(v []byte) predicate.Receipt

TxHashEQ applies the EQ predicate on the "tx_hash" field.

func TxHashGT

func TxHashGT(v []byte) predicate.Receipt

TxHashGT applies the GT predicate on the "tx_hash" field.

func TxHashGTE

func TxHashGTE(v []byte) predicate.Receipt

TxHashGTE applies the GTE predicate on the "tx_hash" field.

func TxHashIn

func TxHashIn(vs ...[]byte) predicate.Receipt

TxHashIn applies the In predicate on the "tx_hash" field.

func TxHashLT

func TxHashLT(v []byte) predicate.Receipt

TxHashLT applies the LT predicate on the "tx_hash" field.

func TxHashLTE

func TxHashLTE(v []byte) predicate.Receipt

TxHashLTE applies the LTE predicate on the "tx_hash" field.

func TxHashNEQ

func TxHashNEQ(v []byte) predicate.Receipt

TxHashNEQ applies the NEQ predicate on the "tx_hash" field.

func TxHashNotIn

func TxHashNotIn(vs ...[]byte) predicate.Receipt

TxHashNotIn applies the NotIn predicate on the "tx_hash" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Receipt queries.

func ByBlock added in v0.1.7

func ByBlock(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByBlock orders the results by block terms.

func ByBlockCount added in v0.1.7

func ByBlockCount(opts ...sql.OrderTermOption) OrderOption

ByBlockCount orders the results by block count.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDestChainID

func ByDestChainID(opts ...sql.OrderTermOption) OrderOption

ByDestChainID orders the results by the dest_chain_id field.

func ByGasUsed

func ByGasUsed(opts ...sql.OrderTermOption) OrderOption

ByGasUsed orders the results by the gas_used field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByMsgs added in v0.1.3

func ByMsgs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByMsgs orders the results by msgs terms.

func ByMsgsCount added in v0.1.3

func ByMsgsCount(opts ...sql.OrderTermOption) OrderOption

ByMsgsCount orders the results by msgs count.

func ByOffset added in v0.1.7

func ByOffset(opts ...sql.OrderTermOption) OrderOption

ByOffset orders the results by the offset field.

func ByRevertReason added in v0.1.9

func ByRevertReason(opts ...sql.OrderTermOption) OrderOption

ByRevertReason orders the results by the revert_reason field.

func BySourceChainID

func BySourceChainID(opts ...sql.OrderTermOption) OrderOption

BySourceChainID orders the results by the source_chain_id field.

func BySuccess

func BySuccess(opts ...sql.OrderTermOption) OrderOption

BySuccess orders the results by the success field.

Jump to

Keyboard shortcuts

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