Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Receipt) predicate.Receipt
- func BlockHash(v []byte) predicate.Receipt
- func BlockHashEQ(v []byte) predicate.Receipt
- func BlockHashGT(v []byte) predicate.Receipt
- func BlockHashGTE(v []byte) predicate.Receipt
- func BlockHashIn(vs ...[]byte) predicate.Receipt
- func BlockHashLT(v []byte) predicate.Receipt
- func BlockHashLTE(v []byte) predicate.Receipt
- func BlockHashNEQ(v []byte) predicate.Receipt
- func BlockHashNotIn(vs ...[]byte) predicate.Receipt
- func CreatedAt(v time.Time) predicate.Receipt
- func CreatedAtEQ(v time.Time) predicate.Receipt
- func CreatedAtGT(v time.Time) predicate.Receipt
- func CreatedAtGTE(v time.Time) predicate.Receipt
- func CreatedAtIn(vs ...time.Time) predicate.Receipt
- func CreatedAtLT(v time.Time) predicate.Receipt
- func CreatedAtLTE(v time.Time) predicate.Receipt
- func CreatedAtNEQ(v time.Time) predicate.Receipt
- func CreatedAtNotIn(vs ...time.Time) predicate.Receipt
- func DestChainID(v uint64) predicate.Receipt
- func DestChainIDEQ(v uint64) predicate.Receipt
- func DestChainIDGT(v uint64) predicate.Receipt
- func DestChainIDGTE(v uint64) predicate.Receipt
- func DestChainIDIn(vs ...uint64) predicate.Receipt
- func DestChainIDLT(v uint64) predicate.Receipt
- func DestChainIDLTE(v uint64) predicate.Receipt
- func DestChainIDNEQ(v uint64) predicate.Receipt
- func DestChainIDNotIn(vs ...uint64) predicate.Receipt
- func GasUsed(v uint64) predicate.Receipt
- func GasUsedEQ(v uint64) predicate.Receipt
- func GasUsedGT(v uint64) predicate.Receipt
- func GasUsedGTE(v uint64) predicate.Receipt
- func GasUsedIn(vs ...uint64) predicate.Receipt
- func GasUsedLT(v uint64) predicate.Receipt
- func GasUsedLTE(v uint64) predicate.Receipt
- func GasUsedNEQ(v uint64) predicate.Receipt
- func GasUsedNotIn(vs ...uint64) predicate.Receipt
- func HasBlock() predicate.Receipt
- func HasBlockWith(preds ...predicate.Block) predicate.Receipt
- func HasMsgs() predicate.Receipt
- func HasMsgsWith(preds ...predicate.Msg) predicate.Receipt
- func ID(id int) predicate.Receipt
- func IDEQ(id int) predicate.Receipt
- func IDGT(id int) predicate.Receipt
- func IDGTE(id int) predicate.Receipt
- func IDIn(ids ...int) predicate.Receipt
- func IDLT(id int) predicate.Receipt
- func IDLTE(id int) predicate.Receipt
- func IDNEQ(id int) predicate.Receipt
- func IDNotIn(ids ...int) predicate.Receipt
- func Not(p predicate.Receipt) predicate.Receipt
- func Offset(v uint64) predicate.Receipt
- func OffsetEQ(v uint64) predicate.Receipt
- func OffsetGT(v uint64) predicate.Receipt
- func OffsetGTE(v uint64) predicate.Receipt
- func OffsetIn(vs ...uint64) predicate.Receipt
- func OffsetLT(v uint64) predicate.Receipt
- func OffsetLTE(v uint64) predicate.Receipt
- func OffsetNEQ(v uint64) predicate.Receipt
- func OffsetNotIn(vs ...uint64) predicate.Receipt
- func Or(predicates ...predicate.Receipt) predicate.Receipt
- func RelayerAddress(v []byte) predicate.Receipt
- func RelayerAddressEQ(v []byte) predicate.Receipt
- func RelayerAddressGT(v []byte) predicate.Receipt
- func RelayerAddressGTE(v []byte) predicate.Receipt
- func RelayerAddressIn(vs ...[]byte) predicate.Receipt
- func RelayerAddressLT(v []byte) predicate.Receipt
- func RelayerAddressLTE(v []byte) predicate.Receipt
- func RelayerAddressNEQ(v []byte) predicate.Receipt
- func RelayerAddressNotIn(vs ...[]byte) predicate.Receipt
- func RevertReason(v string) predicate.Receipt
- func RevertReasonContains(v string) predicate.Receipt
- func RevertReasonContainsFold(v string) predicate.Receipt
- func RevertReasonEQ(v string) predicate.Receipt
- func RevertReasonEqualFold(v string) predicate.Receipt
- func RevertReasonGT(v string) predicate.Receipt
- func RevertReasonGTE(v string) predicate.Receipt
- func RevertReasonHasPrefix(v string) predicate.Receipt
- func RevertReasonHasSuffix(v string) predicate.Receipt
- func RevertReasonIn(vs ...string) predicate.Receipt
- func RevertReasonIsNil() predicate.Receipt
- func RevertReasonLT(v string) predicate.Receipt
- func RevertReasonLTE(v string) predicate.Receipt
- func RevertReasonNEQ(v string) predicate.Receipt
- func RevertReasonNotIn(vs ...string) predicate.Receipt
- func RevertReasonNotNil() predicate.Receipt
- func SourceChainID(v uint64) predicate.Receipt
- func SourceChainIDEQ(v uint64) predicate.Receipt
- func SourceChainIDGT(v uint64) predicate.Receipt
- func SourceChainIDGTE(v uint64) predicate.Receipt
- func SourceChainIDIn(vs ...uint64) predicate.Receipt
- func SourceChainIDLT(v uint64) predicate.Receipt
- func SourceChainIDLTE(v uint64) predicate.Receipt
- func SourceChainIDNEQ(v uint64) predicate.Receipt
- func SourceChainIDNotIn(vs ...uint64) predicate.Receipt
- func Success(v bool) predicate.Receipt
- func SuccessEQ(v bool) predicate.Receipt
- func SuccessNEQ(v bool) predicate.Receipt
- func TxHash(v []byte) predicate.Receipt
- func TxHashEQ(v []byte) predicate.Receipt
- func TxHashGT(v []byte) predicate.Receipt
- func TxHashGTE(v []byte) predicate.Receipt
- func TxHashIn(vs ...[]byte) predicate.Receipt
- func TxHashLT(v []byte) predicate.Receipt
- func TxHashLTE(v []byte) predicate.Receipt
- func TxHashNEQ(v []byte) predicate.Receipt
- func TxHashNotIn(vs ...[]byte) predicate.Receipt
- func ValidColumn(column string) bool
- type OrderOption
- func ByBlock(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBlockCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDestChainID(opts ...sql.OrderTermOption) OrderOption
- func ByGasUsed(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMsgs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMsgsCount(opts ...sql.OrderTermOption) OrderOption
- func ByOffset(opts ...sql.OrderTermOption) OrderOption
- func ByRevertReason(opts ...sql.OrderTermOption) OrderOption
- func BySourceChainID(opts ...sql.OrderTermOption) OrderOption
- func BySuccess(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"} )
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"
var Columns = []string{ FieldID, FieldBlockHash, FieldGasUsed, FieldSuccess, FieldRelayerAddress, FieldSourceChainID, FieldDestChainID, FieldOffset, FieldTxHash, FieldCreatedAt, FieldRevertReason, }
Columns holds all SQL columns for receipt fields.
Functions ¶
func BlockHash ¶ added in v0.1.7
BlockHash applies equality check predicate on the "block_hash" field. It's identical to BlockHashEQ.
func BlockHashEQ ¶ added in v0.1.7
BlockHashEQ applies the EQ predicate on the "block_hash" field.
func BlockHashGT ¶ added in v0.1.7
BlockHashGT applies the GT predicate on the "block_hash" field.
func BlockHashGTE ¶ added in v0.1.7
BlockHashGTE applies the GTE predicate on the "block_hash" field.
func BlockHashIn ¶ added in v0.1.7
BlockHashIn applies the In predicate on the "block_hash" field.
func BlockHashLT ¶ added in v0.1.7
BlockHashLT applies the LT predicate on the "block_hash" field.
func BlockHashLTE ¶ added in v0.1.7
BlockHashLTE applies the LTE predicate on the "block_hash" field.
func BlockHashNEQ ¶ added in v0.1.7
BlockHashNEQ applies the NEQ predicate on the "block_hash" field.
func BlockHashNotIn ¶ added in v0.1.7
BlockHashNotIn applies the NotIn predicate on the "block_hash" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DestChainID ¶
DestChainID applies equality check predicate on the "dest_chain_id" field. It's identical to DestChainIDEQ.
func DestChainIDEQ ¶
DestChainIDEQ applies the EQ predicate on the "dest_chain_id" field.
func DestChainIDGT ¶
DestChainIDGT applies the GT predicate on the "dest_chain_id" field.
func DestChainIDGTE ¶
DestChainIDGTE applies the GTE predicate on the "dest_chain_id" field.
func DestChainIDIn ¶
DestChainIDIn applies the In predicate on the "dest_chain_id" field.
func DestChainIDLT ¶
DestChainIDLT applies the LT predicate on the "dest_chain_id" field.
func DestChainIDLTE ¶
DestChainIDLTE applies the LTE predicate on the "dest_chain_id" field.
func DestChainIDNEQ ¶
DestChainIDNEQ applies the NEQ predicate on the "dest_chain_id" field.
func DestChainIDNotIn ¶
DestChainIDNotIn applies the NotIn predicate on the "dest_chain_id" field.
func GasUsed ¶
GasUsed applies equality check predicate on the "gas_used" field. It's identical to GasUsedEQ.
func GasUsedGTE ¶
GasUsedGTE applies the GTE predicate on the "gas_used" field.
func GasUsedLTE ¶
GasUsedLTE applies the LTE predicate on the "gas_used" field.
func GasUsedNEQ ¶
GasUsedNEQ applies the NEQ predicate on the "gas_used" field.
func GasUsedNotIn ¶
GasUsedNotIn applies the NotIn predicate on the "gas_used" field.
func HasBlockWith ¶
HasBlockWith applies the HasEdge predicate on the "block" edge with a given conditions (other predicates).
func HasMsgsWith ¶ added in v0.1.3
HasMsgsWith applies the HasEdge predicate on the "msgs" edge with a given conditions (other predicates).
func Offset ¶ added in v0.1.7
Offset applies equality check predicate on the "offset" field. It's identical to OffsetEQ.
func OffsetNotIn ¶ added in v0.1.7
OffsetNotIn applies the NotIn predicate on the "offset" field.
func RelayerAddress ¶
RelayerAddress applies equality check predicate on the "relayer_address" field. It's identical to RelayerAddressEQ.
func RelayerAddressEQ ¶
RelayerAddressEQ applies the EQ predicate on the "relayer_address" field.
func RelayerAddressGT ¶
RelayerAddressGT applies the GT predicate on the "relayer_address" field.
func RelayerAddressGTE ¶
RelayerAddressGTE applies the GTE predicate on the "relayer_address" field.
func RelayerAddressIn ¶
RelayerAddressIn applies the In predicate on the "relayer_address" field.
func RelayerAddressLT ¶
RelayerAddressLT applies the LT predicate on the "relayer_address" field.
func RelayerAddressLTE ¶
RelayerAddressLTE applies the LTE predicate on the "relayer_address" field.
func RelayerAddressNEQ ¶
RelayerAddressNEQ applies the NEQ predicate on the "relayer_address" field.
func RelayerAddressNotIn ¶
RelayerAddressNotIn applies the NotIn predicate on the "relayer_address" field.
func RevertReason ¶ added in v0.1.9
RevertReason applies equality check predicate on the "revert_reason" field. It's identical to RevertReasonEQ.
func RevertReasonContains ¶ added in v0.1.9
RevertReasonContains applies the Contains predicate on the "revert_reason" field.
func RevertReasonContainsFold ¶ added in v0.1.9
RevertReasonContainsFold applies the ContainsFold predicate on the "revert_reason" field.
func RevertReasonEQ ¶ added in v0.1.9
RevertReasonEQ applies the EQ predicate on the "revert_reason" field.
func RevertReasonEqualFold ¶ added in v0.1.9
RevertReasonEqualFold applies the EqualFold predicate on the "revert_reason" field.
func RevertReasonGT ¶ added in v0.1.9
RevertReasonGT applies the GT predicate on the "revert_reason" field.
func RevertReasonGTE ¶ added in v0.1.9
RevertReasonGTE applies the GTE predicate on the "revert_reason" field.
func RevertReasonHasPrefix ¶ added in v0.1.9
RevertReasonHasPrefix applies the HasPrefix predicate on the "revert_reason" field.
func RevertReasonHasSuffix ¶ added in v0.1.9
RevertReasonHasSuffix applies the HasSuffix predicate on the "revert_reason" field.
func RevertReasonIn ¶ added in v0.1.9
RevertReasonIn applies the In predicate on the "revert_reason" field.
func RevertReasonIsNil ¶ added in v0.1.9
RevertReasonIsNil applies the IsNil predicate on the "revert_reason" field.
func RevertReasonLT ¶ added in v0.1.9
RevertReasonLT applies the LT predicate on the "revert_reason" field.
func RevertReasonLTE ¶ added in v0.1.9
RevertReasonLTE applies the LTE predicate on the "revert_reason" field.
func RevertReasonNEQ ¶ added in v0.1.9
RevertReasonNEQ applies the NEQ predicate on the "revert_reason" field.
func RevertReasonNotIn ¶ added in v0.1.9
RevertReasonNotIn applies the NotIn predicate on the "revert_reason" field.
func RevertReasonNotNil ¶ added in v0.1.9
RevertReasonNotNil applies the NotNil predicate on the "revert_reason" field.
func SourceChainID ¶
SourceChainID applies equality check predicate on the "source_chain_id" field. It's identical to SourceChainIDEQ.
func SourceChainIDEQ ¶
SourceChainIDEQ applies the EQ predicate on the "source_chain_id" field.
func SourceChainIDGT ¶
SourceChainIDGT applies the GT predicate on the "source_chain_id" field.
func SourceChainIDGTE ¶
SourceChainIDGTE applies the GTE predicate on the "source_chain_id" field.
func SourceChainIDIn ¶
SourceChainIDIn applies the In predicate on the "source_chain_id" field.
func SourceChainIDLT ¶
SourceChainIDLT applies the LT predicate on the "source_chain_id" field.
func SourceChainIDLTE ¶
SourceChainIDLTE applies the LTE predicate on the "source_chain_id" field.
func SourceChainIDNEQ ¶
SourceChainIDNEQ applies the NEQ predicate on the "source_chain_id" field.
func SourceChainIDNotIn ¶
SourceChainIDNotIn applies the NotIn predicate on the "source_chain_id" field.
func Success ¶
Success applies equality check predicate on the "success" field. It's identical to SuccessEQ.
func SuccessNEQ ¶
SuccessNEQ applies the NEQ predicate on the "success" field.
func TxHash ¶
TxHash applies equality check predicate on the "tx_hash" field. It's identical to TxHashEQ.
func TxHashNotIn ¶
TxHashNotIn applies the NotIn predicate on the "tx_hash" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.