receipt

package
v0.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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"
	// FieldUUID holds the string denoting the uuid field in the database.
	FieldUUID = "uuid"
	// FieldGasUsed holds the string denoting the gasused 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 relayeraddress field in the database.
	FieldRelayerAddress = "relayer_address"
	// FieldSourceChainID holds the string denoting the sourcechainid field in the database.
	FieldSourceChainID = "source_chain_id"
	// FieldDestChainID holds the string denoting the destchainid field in the database.
	FieldDestChainID = "dest_chain_id"
	// FieldStreamOffset holds the string denoting the streamoffset field in the database.
	FieldStreamOffset = "stream_offset"
	// FieldTxHash holds the string denoting the txhash field in the database.
	FieldTxHash = "tx_hash"
	// FieldCreatedAt holds the string denoting the createdat field in the database.
	FieldCreatedAt = "created_at"
	// EdgeBlock holds the string denoting the block edge name in mutations.
	EdgeBlock = "Block"
	// Table holds the table name of the receipt in the database.
	Table = "receipts"
	// BlockTable is the table that holds the Block relation/edge.
	BlockTable = "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"
	// BlockColumn is the table column denoting the Block relation/edge.
	BlockColumn = "block_receipts"
)

Variables

View Source
var (
	// DefaultUUID holds the default value on creation for the "UUID" field.
	DefaultUUID func() uuid.UUID
	// RelayerAddressValidator is a validator for the "RelayerAddress" field. It is called by the builders before save.
	RelayerAddressValidator func([]byte) error
	// TxHashValidator is a validator for the "TxHash" field. It is called by the builders before save.
	TxHashValidator func([]byte) error
	// DefaultCreatedAt holds the default value on creation for the "CreatedAt" field.
	DefaultCreatedAt time.Time
)

Columns holds all SQL columns for receipt fields.

View Source
var ForeignKeys = []string{
	"block_receipts",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "receipts" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Receipt

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Receipt

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Receipt

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Receipt

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Receipt

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Receipt

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Receipt

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

func CreatedAtNotIn

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

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

func DestChainID

func DestChainID(v uint64) predicate.Receipt

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

func DestChainIDEQ

func DestChainIDEQ(v uint64) predicate.Receipt

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

func DestChainIDGT

func DestChainIDGT(v uint64) predicate.Receipt

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

func DestChainIDGTE

func DestChainIDGTE(v uint64) predicate.Receipt

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

func DestChainIDIn

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

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

func DestChainIDLT

func DestChainIDLT(v uint64) predicate.Receipt

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

func DestChainIDLTE

func DestChainIDLTE(v uint64) predicate.Receipt

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

func DestChainIDNEQ

func DestChainIDNEQ(v uint64) predicate.Receipt

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

func DestChainIDNotIn

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

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

func GasUsed

func GasUsed(v uint64) predicate.Receipt

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

func GasUsedEQ

func GasUsedEQ(v uint64) predicate.Receipt

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

func GasUsedGT

func GasUsedGT(v uint64) predicate.Receipt

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

func GasUsedGTE

func GasUsedGTE(v uint64) predicate.Receipt

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

func GasUsedIn

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

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

func GasUsedLT

func GasUsedLT(v uint64) predicate.Receipt

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

func GasUsedLTE

func GasUsedLTE(v uint64) predicate.Receipt

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

func GasUsedNEQ

func GasUsedNEQ(v uint64) predicate.Receipt

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

func GasUsedNotIn

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

GasUsedNotIn applies the NotIn predicate on the "GasUsed" 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 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 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 "RelayerAddress" field. It's identical to RelayerAddressEQ.

func RelayerAddressEQ

func RelayerAddressEQ(v []byte) predicate.Receipt

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

func RelayerAddressGT

func RelayerAddressGT(v []byte) predicate.Receipt

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

func RelayerAddressGTE

func RelayerAddressGTE(v []byte) predicate.Receipt

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

func RelayerAddressIn

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

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

func RelayerAddressLT

func RelayerAddressLT(v []byte) predicate.Receipt

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

func RelayerAddressLTE

func RelayerAddressLTE(v []byte) predicate.Receipt

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

func RelayerAddressNEQ

func RelayerAddressNEQ(v []byte) predicate.Receipt

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

func RelayerAddressNotIn

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

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

func SourceChainID

func SourceChainID(v uint64) predicate.Receipt

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

func SourceChainIDEQ

func SourceChainIDEQ(v uint64) predicate.Receipt

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

func SourceChainIDGT

func SourceChainIDGT(v uint64) predicate.Receipt

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

func SourceChainIDGTE

func SourceChainIDGTE(v uint64) predicate.Receipt

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

func SourceChainIDIn

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

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

func SourceChainIDLT

func SourceChainIDLT(v uint64) predicate.Receipt

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

func SourceChainIDLTE

func SourceChainIDLTE(v uint64) predicate.Receipt

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

func SourceChainIDNEQ

func SourceChainIDNEQ(v uint64) predicate.Receipt

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

func SourceChainIDNotIn

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

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

func StreamOffset

func StreamOffset(v uint64) predicate.Receipt

StreamOffset applies equality check predicate on the "StreamOffset" field. It's identical to StreamOffsetEQ.

func StreamOffsetEQ

func StreamOffsetEQ(v uint64) predicate.Receipt

StreamOffsetEQ applies the EQ predicate on the "StreamOffset" field.

func StreamOffsetGT

func StreamOffsetGT(v uint64) predicate.Receipt

StreamOffsetGT applies the GT predicate on the "StreamOffset" field.

func StreamOffsetGTE

func StreamOffsetGTE(v uint64) predicate.Receipt

StreamOffsetGTE applies the GTE predicate on the "StreamOffset" field.

func StreamOffsetIn

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

StreamOffsetIn applies the In predicate on the "StreamOffset" field.

func StreamOffsetLT

func StreamOffsetLT(v uint64) predicate.Receipt

StreamOffsetLT applies the LT predicate on the "StreamOffset" field.

func StreamOffsetLTE

func StreamOffsetLTE(v uint64) predicate.Receipt

StreamOffsetLTE applies the LTE predicate on the "StreamOffset" field.

func StreamOffsetNEQ

func StreamOffsetNEQ(v uint64) predicate.Receipt

StreamOffsetNEQ applies the NEQ predicate on the "StreamOffset" field.

func StreamOffsetNotIn

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

StreamOffsetNotIn applies the NotIn predicate on the "StreamOffset" 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 "TxHash" field. It's identical to TxHashEQ.

func TxHashEQ

func TxHashEQ(v []byte) predicate.Receipt

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

func TxHashGT

func TxHashGT(v []byte) predicate.Receipt

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

func TxHashGTE

func TxHashGTE(v []byte) predicate.Receipt

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

func TxHashIn

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

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

func TxHashLT

func TxHashLT(v []byte) predicate.Receipt

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

func TxHashLTE

func TxHashLTE(v []byte) predicate.Receipt

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

func TxHashNEQ

func TxHashNEQ(v []byte) predicate.Receipt

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

func TxHashNotIn

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

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

func UUID

func UUID(v uuid.UUID) predicate.Receipt

UUID applies equality check predicate on the "UUID" field. It's identical to UUIDEQ.

func UUIDEQ

func UUIDEQ(v uuid.UUID) predicate.Receipt

UUIDEQ applies the EQ predicate on the "UUID" field.

func UUIDGT

func UUIDGT(v uuid.UUID) predicate.Receipt

UUIDGT applies the GT predicate on the "UUID" field.

func UUIDGTE

func UUIDGTE(v uuid.UUID) predicate.Receipt

UUIDGTE applies the GTE predicate on the "UUID" field.

func UUIDIn

func UUIDIn(vs ...uuid.UUID) predicate.Receipt

UUIDIn applies the In predicate on the "UUID" field.

func UUIDLT

func UUIDLT(v uuid.UUID) predicate.Receipt

UUIDLT applies the LT predicate on the "UUID" field.

func UUIDLTE

func UUIDLTE(v uuid.UUID) predicate.Receipt

UUIDLTE applies the LTE predicate on the "UUID" field.

func UUIDNEQ

func UUIDNEQ(v uuid.UUID) predicate.Receipt

UUIDNEQ applies the NEQ predicate on the "UUID" field.

func UUIDNotIn

func UUIDNotIn(vs ...uuid.UUID) predicate.Receipt

UUIDNotIn applies the NotIn predicate on the "UUID" 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 ByBlockField

func ByBlockField(field string, opts ...sql.OrderTermOption) OrderOption

ByBlockField orders the results by Block field.

func ByCreatedAt

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

ByCreatedAt orders the results by the CreatedAt field.

func ByDestChainID

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

ByDestChainID orders the results by the DestChainID field.

func ByGasUsed

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

ByGasUsed orders the results by the GasUsed field.

func ByID

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

ByID orders the results by the id field.

func BySourceChainID

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

BySourceChainID orders the results by the SourceChainID field.

func ByStreamOffset

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

ByStreamOffset orders the results by the StreamOffset field.

func BySuccess

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

BySuccess orders the results by the Success field.

func ByUUID

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

ByUUID orders the results by the UUID field.

Jump to

Keyboard shortcuts

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