Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Block) predicate.Block
- func BlockHash(v string) predicate.Block
- func BlockHashContains(v string) predicate.Block
- func BlockHashContainsFold(v string) predicate.Block
- func BlockHashEQ(v string) predicate.Block
- func BlockHashEqualFold(v string) predicate.Block
- func BlockHashGT(v string) predicate.Block
- func BlockHashGTE(v string) predicate.Block
- func BlockHashHasPrefix(v string) predicate.Block
- func BlockHashHasSuffix(v string) predicate.Block
- func BlockHashIn(vs ...string) predicate.Block
- func BlockHashLT(v string) predicate.Block
- func BlockHashLTE(v string) predicate.Block
- func BlockHashNEQ(v string) predicate.Block
- func BlockHashNotIn(vs ...string) predicate.Block
- func BlockNumber(v uint64) predicate.Block
- func BlockNumberEQ(v uint64) predicate.Block
- func BlockNumberGT(v uint64) predicate.Block
- func BlockNumberGTE(v uint64) predicate.Block
- func BlockNumberIn(vs ...uint64) predicate.Block
- func BlockNumberLT(v uint64) predicate.Block
- func BlockNumberLTE(v uint64) predicate.Block
- func BlockNumberNEQ(v uint64) predicate.Block
- func BlockNumberNotIn(vs ...uint64) predicate.Block
- func HasTransactionReceipts() predicate.Block
- func HasTransactionReceiptsWith(preds ...predicate.TransactionReceipt) predicate.Block
- func HasTransactions() predicate.Block
- func HasTransactionsWith(preds ...predicate.Transaction) predicate.Block
- func ID(id string) predicate.Block
- func IDEQ(id string) predicate.Block
- func IDGT(id string) predicate.Block
- func IDGTE(id string) predicate.Block
- func IDIn(ids ...string) predicate.Block
- func IDLT(id string) predicate.Block
- func IDLTE(id string) predicate.Block
- func IDNEQ(id string) predicate.Block
- func IDNotIn(ids ...string) predicate.Block
- func Not(p predicate.Block) predicate.Block
- func Or(predicates ...predicate.Block) predicate.Block
- func ParentBlockHash(v string) predicate.Block
- func ParentBlockHashContains(v string) predicate.Block
- func ParentBlockHashContainsFold(v string) predicate.Block
- func ParentBlockHashEQ(v string) predicate.Block
- func ParentBlockHashEqualFold(v string) predicate.Block
- func ParentBlockHashGT(v string) predicate.Block
- func ParentBlockHashGTE(v string) predicate.Block
- func ParentBlockHashHasPrefix(v string) predicate.Block
- func ParentBlockHashHasSuffix(v string) predicate.Block
- func ParentBlockHashIn(vs ...string) predicate.Block
- func ParentBlockHashLT(v string) predicate.Block
- func ParentBlockHashLTE(v string) predicate.Block
- func ParentBlockHashNEQ(v string) predicate.Block
- func ParentBlockHashNotIn(vs ...string) predicate.Block
- func StateRoot(v string) predicate.Block
- func StateRootContains(v string) predicate.Block
- func StateRootContainsFold(v string) predicate.Block
- func StateRootEQ(v string) predicate.Block
- func StateRootEqualFold(v string) predicate.Block
- func StateRootGT(v string) predicate.Block
- func StateRootGTE(v string) predicate.Block
- func StateRootHasPrefix(v string) predicate.Block
- func StateRootHasSuffix(v string) predicate.Block
- func StateRootIn(vs ...string) predicate.Block
- func StateRootLT(v string) predicate.Block
- func StateRootLTE(v string) predicate.Block
- func StateRootNEQ(v string) predicate.Block
- func StateRootNotIn(vs ...string) predicate.Block
- func StatusEQ(v Status) predicate.Block
- func StatusIn(vs ...Status) predicate.Block
- func StatusNEQ(v Status) predicate.Block
- func StatusNotIn(vs ...Status) predicate.Block
- func StatusValidator(s Status) error
- func Timestamp(v time.Time) predicate.Block
- func TimestampEQ(v time.Time) predicate.Block
- func TimestampGT(v time.Time) predicate.Block
- func TimestampGTE(v time.Time) predicate.Block
- func TimestampIn(vs ...time.Time) predicate.Block
- func TimestampLT(v time.Time) predicate.Block
- func TimestampLTE(v time.Time) predicate.Block
- func TimestampNEQ(v time.Time) predicate.Block
- func TimestampNotIn(vs ...time.Time) predicate.Block
- func ValidColumn(column string) bool
- type Status
Constants ¶
const ( // Label holds the string label denoting the block type in the database. Label = "block" // 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" // FieldParentBlockHash holds the string denoting the parent_block_hash field in the database. FieldParentBlockHash = "parent_block_hash" // FieldBlockNumber holds the string denoting the block_number field in the database. FieldBlockNumber = "block_number" // FieldStateRoot holds the string denoting the state_root field in the database. FieldStateRoot = "state_root" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // EdgeTransactions holds the string denoting the transactions edge name in mutations. EdgeTransactions = "transactions" // EdgeTransactionReceipts holds the string denoting the transaction_receipts edge name in mutations. EdgeTransactionReceipts = "transaction_receipts" // Table holds the table name of the block in the database. Table = "blocks" // TransactionsTable is the table that holds the transactions relation/edge. TransactionsTable = "transactions" // TransactionsInverseTable is the table name for the Transaction entity. // It exists in this package in order to avoid circular dependency with the "transaction" package. TransactionsInverseTable = "transactions" // TransactionsColumn is the table column denoting the transactions relation/edge. TransactionsColumn = "block_transactions" // TransactionReceiptsTable is the table that holds the transaction_receipts relation/edge. TransactionReceiptsTable = "transaction_receipts" // TransactionReceiptsInverseTable is the table name for the TransactionReceipt entity. // It exists in this package in order to avoid circular dependency with the "transactionreceipt" package. TransactionReceiptsInverseTable = "transaction_receipts" // TransactionReceiptsColumn is the table column denoting the transaction_receipts relation/edge. TransactionReceiptsColumn = "block_transaction_receipts" )
Variables ¶
var Columns = []string{ FieldID, FieldBlockHash, FieldParentBlockHash, FieldBlockNumber, FieldStateRoot, FieldStatus, FieldTimestamp, }
Columns holds all SQL columns for block fields.
Functions ¶
func BlockHash ¶
BlockHash applies equality check predicate on the "block_hash" field. It's identical to BlockHashEQ.
func BlockHashContains ¶
BlockHashContains applies the Contains predicate on the "block_hash" field.
func BlockHashContainsFold ¶
BlockHashContainsFold applies the ContainsFold predicate on the "block_hash" field.
func BlockHashEQ ¶
BlockHashEQ applies the EQ predicate on the "block_hash" field.
func BlockHashEqualFold ¶
BlockHashEqualFold applies the EqualFold predicate on the "block_hash" field.
func BlockHashGT ¶
BlockHashGT applies the GT predicate on the "block_hash" field.
func BlockHashGTE ¶
BlockHashGTE applies the GTE predicate on the "block_hash" field.
func BlockHashHasPrefix ¶
BlockHashHasPrefix applies the HasPrefix predicate on the "block_hash" field.
func BlockHashHasSuffix ¶
BlockHashHasSuffix applies the HasSuffix predicate on the "block_hash" field.
func BlockHashIn ¶
BlockHashIn applies the In predicate on the "block_hash" field.
func BlockHashLT ¶
BlockHashLT applies the LT predicate on the "block_hash" field.
func BlockHashLTE ¶
BlockHashLTE applies the LTE predicate on the "block_hash" field.
func BlockHashNEQ ¶
BlockHashNEQ applies the NEQ predicate on the "block_hash" field.
func BlockHashNotIn ¶
BlockHashNotIn applies the NotIn predicate on the "block_hash" field.
func BlockNumber ¶
BlockNumber applies equality check predicate on the "block_number" field. It's identical to BlockNumberEQ.
func BlockNumberEQ ¶
BlockNumberEQ applies the EQ predicate on the "block_number" field.
func BlockNumberGT ¶
BlockNumberGT applies the GT predicate on the "block_number" field.
func BlockNumberGTE ¶
BlockNumberGTE applies the GTE predicate on the "block_number" field.
func BlockNumberIn ¶
BlockNumberIn applies the In predicate on the "block_number" field.
func BlockNumberLT ¶
BlockNumberLT applies the LT predicate on the "block_number" field.
func BlockNumberLTE ¶
BlockNumberLTE applies the LTE predicate on the "block_number" field.
func BlockNumberNEQ ¶
BlockNumberNEQ applies the NEQ predicate on the "block_number" field.
func BlockNumberNotIn ¶
BlockNumberNotIn applies the NotIn predicate on the "block_number" field.
func HasTransactionReceipts ¶
HasTransactionReceipts applies the HasEdge predicate on the "transaction_receipts" edge.
func HasTransactionReceiptsWith ¶
func HasTransactionReceiptsWith(preds ...predicate.TransactionReceipt) predicate.Block
HasTransactionReceiptsWith applies the HasEdge predicate on the "transaction_receipts" edge with a given conditions (other predicates).
func HasTransactions ¶
HasTransactions applies the HasEdge predicate on the "transactions" edge.
func HasTransactionsWith ¶
func HasTransactionsWith(preds ...predicate.Transaction) predicate.Block
HasTransactionsWith applies the HasEdge predicate on the "transactions" edge with a given conditions (other predicates).
func ParentBlockHash ¶
ParentBlockHash applies equality check predicate on the "parent_block_hash" field. It's identical to ParentBlockHashEQ.
func ParentBlockHashContains ¶
ParentBlockHashContains applies the Contains predicate on the "parent_block_hash" field.
func ParentBlockHashContainsFold ¶
ParentBlockHashContainsFold applies the ContainsFold predicate on the "parent_block_hash" field.
func ParentBlockHashEQ ¶
ParentBlockHashEQ applies the EQ predicate on the "parent_block_hash" field.
func ParentBlockHashEqualFold ¶
ParentBlockHashEqualFold applies the EqualFold predicate on the "parent_block_hash" field.
func ParentBlockHashGT ¶
ParentBlockHashGT applies the GT predicate on the "parent_block_hash" field.
func ParentBlockHashGTE ¶
ParentBlockHashGTE applies the GTE predicate on the "parent_block_hash" field.
func ParentBlockHashHasPrefix ¶
ParentBlockHashHasPrefix applies the HasPrefix predicate on the "parent_block_hash" field.
func ParentBlockHashHasSuffix ¶
ParentBlockHashHasSuffix applies the HasSuffix predicate on the "parent_block_hash" field.
func ParentBlockHashIn ¶
ParentBlockHashIn applies the In predicate on the "parent_block_hash" field.
func ParentBlockHashLT ¶
ParentBlockHashLT applies the LT predicate on the "parent_block_hash" field.
func ParentBlockHashLTE ¶
ParentBlockHashLTE applies the LTE predicate on the "parent_block_hash" field.
func ParentBlockHashNEQ ¶
ParentBlockHashNEQ applies the NEQ predicate on the "parent_block_hash" field.
func ParentBlockHashNotIn ¶
ParentBlockHashNotIn applies the NotIn predicate on the "parent_block_hash" field.
func StateRoot ¶
StateRoot applies equality check predicate on the "state_root" field. It's identical to StateRootEQ.
func StateRootContains ¶
StateRootContains applies the Contains predicate on the "state_root" field.
func StateRootContainsFold ¶
StateRootContainsFold applies the ContainsFold predicate on the "state_root" field.
func StateRootEQ ¶
StateRootEQ applies the EQ predicate on the "state_root" field.
func StateRootEqualFold ¶
StateRootEqualFold applies the EqualFold predicate on the "state_root" field.
func StateRootGT ¶
StateRootGT applies the GT predicate on the "state_root" field.
func StateRootGTE ¶
StateRootGTE applies the GTE predicate on the "state_root" field.
func StateRootHasPrefix ¶
StateRootHasPrefix applies the HasPrefix predicate on the "state_root" field.
func StateRootHasSuffix ¶
StateRootHasSuffix applies the HasSuffix predicate on the "state_root" field.
func StateRootIn ¶
StateRootIn applies the In predicate on the "state_root" field.
func StateRootLT ¶
StateRootLT applies the LT predicate on the "state_root" field.
func StateRootLTE ¶
StateRootLTE applies the LTE predicate on the "state_root" field.
func StateRootNEQ ¶
StateRootNEQ applies the NEQ predicate on the "state_root" field.
func StateRootNotIn ¶
StateRootNotIn applies the NotIn predicate on the "state_root" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func ValidColumn ¶
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 ( StatusACCEPTED_ON_L1 Status = "ACCEPTED_ON_L1" StatusACCEPTED_ON_L2 Status = "ACCEPTED_ON_L2" )
Status values.
func (Status) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Status) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.