transactionreceipt

package
v0.0.0-...-1971f33 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the transactionreceipt type in the database.
	Label = "transaction_receipt"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTransactionHash holds the string denoting the transaction_hash field in the database.
	FieldTransactionHash = "transaction_hash"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldStatusData holds the string denoting the status_data field in the database.
	FieldStatusData = "status_data"
	// FieldMessagesSent holds the string denoting the messages_sent field in the database.
	FieldMessagesSent = "messages_sent"
	// FieldL1OriginMessage holds the string denoting the l1_origin_message field in the database.
	FieldL1OriginMessage = "l1_origin_message"
	// EdgeBlock holds the string denoting the block edge name in mutations.
	EdgeBlock = "block"
	// EdgeTransaction holds the string denoting the transaction edge name in mutations.
	EdgeTransaction = "transaction"
	// Table holds the table name of the transactionreceipt in the database.
	Table = "transaction_receipts"
	// BlockTable is the table that holds the block relation/edge.
	BlockTable = "transaction_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_transaction_receipts"
	// TransactionTable is the table that holds the transaction relation/edge.
	TransactionTable = "transaction_receipts"
	// TransactionInverseTable is the table name for the Transaction entity.
	// It exists in this package in order to avoid circular dependency with the "transaction" package.
	TransactionInverseTable = "transactions"
	// TransactionColumn is the table column denoting the transaction relation/edge.
	TransactionColumn = "transaction_receipt"
)

Variables

Columns holds all SQL columns for transactionreceipt fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func HasBlock

func HasBlock() predicate.TransactionReceipt

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

func HasBlockWith

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

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

func HasTransaction

func HasTransaction() predicate.TransactionReceipt

HasTransaction applies the HasEdge predicate on the "transaction" edge.

func HasTransactionWith

func HasTransactionWith(preds ...predicate.Transaction) predicate.TransactionReceipt

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.TransactionReceipt

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.TransactionReceipt

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func StatusData

func StatusData(v string) predicate.TransactionReceipt

StatusData applies equality check predicate on the "status_data" field. It's identical to StatusDataEQ.

func StatusDataContains

func StatusDataContains(v string) predicate.TransactionReceipt

StatusDataContains applies the Contains predicate on the "status_data" field.

func StatusDataContainsFold

func StatusDataContainsFold(v string) predicate.TransactionReceipt

StatusDataContainsFold applies the ContainsFold predicate on the "status_data" field.

func StatusDataEQ

func StatusDataEQ(v string) predicate.TransactionReceipt

StatusDataEQ applies the EQ predicate on the "status_data" field.

func StatusDataEqualFold

func StatusDataEqualFold(v string) predicate.TransactionReceipt

StatusDataEqualFold applies the EqualFold predicate on the "status_data" field.

func StatusDataGT

func StatusDataGT(v string) predicate.TransactionReceipt

StatusDataGT applies the GT predicate on the "status_data" field.

func StatusDataGTE

func StatusDataGTE(v string) predicate.TransactionReceipt

StatusDataGTE applies the GTE predicate on the "status_data" field.

func StatusDataHasPrefix

func StatusDataHasPrefix(v string) predicate.TransactionReceipt

StatusDataHasPrefix applies the HasPrefix predicate on the "status_data" field.

func StatusDataHasSuffix

func StatusDataHasSuffix(v string) predicate.TransactionReceipt

StatusDataHasSuffix applies the HasSuffix predicate on the "status_data" field.

func StatusDataIn

func StatusDataIn(vs ...string) predicate.TransactionReceipt

StatusDataIn applies the In predicate on the "status_data" field.

func StatusDataLT

func StatusDataLT(v string) predicate.TransactionReceipt

StatusDataLT applies the LT predicate on the "status_data" field.

func StatusDataLTE

func StatusDataLTE(v string) predicate.TransactionReceipt

StatusDataLTE applies the LTE predicate on the "status_data" field.

func StatusDataNEQ

func StatusDataNEQ(v string) predicate.TransactionReceipt

StatusDataNEQ applies the NEQ predicate on the "status_data" field.

func StatusDataNotIn

func StatusDataNotIn(vs ...string) predicate.TransactionReceipt

StatusDataNotIn applies the NotIn predicate on the "status_data" field.

func StatusEQ

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.TransactionReceipt

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.TransactionReceipt

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.TransactionReceipt

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func TransactionHash

func TransactionHash(v string) predicate.TransactionReceipt

TransactionHash applies equality check predicate on the "transaction_hash" field. It's identical to TransactionHashEQ.

func TransactionHashContains

func TransactionHashContains(v string) predicate.TransactionReceipt

TransactionHashContains applies the Contains predicate on the "transaction_hash" field.

func TransactionHashContainsFold

func TransactionHashContainsFold(v string) predicate.TransactionReceipt

TransactionHashContainsFold applies the ContainsFold predicate on the "transaction_hash" field.

func TransactionHashEQ

func TransactionHashEQ(v string) predicate.TransactionReceipt

TransactionHashEQ applies the EQ predicate on the "transaction_hash" field.

func TransactionHashEqualFold

func TransactionHashEqualFold(v string) predicate.TransactionReceipt

TransactionHashEqualFold applies the EqualFold predicate on the "transaction_hash" field.

func TransactionHashGT

func TransactionHashGT(v string) predicate.TransactionReceipt

TransactionHashGT applies the GT predicate on the "transaction_hash" field.

func TransactionHashGTE

func TransactionHashGTE(v string) predicate.TransactionReceipt

TransactionHashGTE applies the GTE predicate on the "transaction_hash" field.

func TransactionHashHasPrefix

func TransactionHashHasPrefix(v string) predicate.TransactionReceipt

TransactionHashHasPrefix applies the HasPrefix predicate on the "transaction_hash" field.

func TransactionHashHasSuffix

func TransactionHashHasSuffix(v string) predicate.TransactionReceipt

TransactionHashHasSuffix applies the HasSuffix predicate on the "transaction_hash" field.

func TransactionHashIn

func TransactionHashIn(vs ...string) predicate.TransactionReceipt

TransactionHashIn applies the In predicate on the "transaction_hash" field.

func TransactionHashLT

func TransactionHashLT(v string) predicate.TransactionReceipt

TransactionHashLT applies the LT predicate on the "transaction_hash" field.

func TransactionHashLTE

func TransactionHashLTE(v string) predicate.TransactionReceipt

TransactionHashLTE applies the LTE predicate on the "transaction_hash" field.

func TransactionHashNEQ

func TransactionHashNEQ(v string) predicate.TransactionReceipt

TransactionHashNEQ applies the NEQ predicate on the "transaction_hash" field.

func TransactionHashNotIn

func TransactionHashNotIn(vs ...string) predicate.TransactionReceipt

TransactionHashNotIn applies the NotIn predicate on the "transaction_hash" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusUNKNOWN        Status = "UNKNOWN"
	StatusRECEIVED       Status = "RECEIVED"
	StatusPENDING        Status = "PENDING"
	StatusACCEPTED_ON_L2 Status = "ACCEPTED_ON_L2"
	StatusACCEPTED_ON_L1 Status = "ACCEPTED_ON_L1"
	StatusREJECTED       Status = "REJECTED"
)

Status values.

func (Status) MarshalGQL

func (e Status) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Status) String

func (s Status) String() string

func (*Status) UnmarshalGQL

func (e *Status) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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