Documentation
¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type BalanceWhereInput
- type BlockWhereInput
- type ComplexityRoot
- type Config
- type ContractWhereInput
- type DirectiveRoot
- type EventWhereInput
- type QueryResolver
- type ResolverRoot
- type SubscriptionResolver
- type TransactionReceiptWhereInput
- type TransactionWhereInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type BalanceWhereInput ¶
type BalanceWhereInput struct {
Not *BalanceWhereInput `json:"not"`
And []*BalanceWhereInput `json:"and"`
Or []*BalanceWhereInput `json:"or"`
// tokenId field predicates
Tokenid *big.Int `json:"tokenid"`
TokenidNeq *big.Int `json:"tokenidNEQ"`
TokenidIn []*big.Int `json:"tokenidIn"`
TokenidNotIn []*big.Int `json:"tokenidNotIn"`
TokenidGt *big.Int `json:"tokenidGT"`
TokenidGte *big.Int `json:"tokenidGTE"`
TokenidLt *big.Int `json:"tokenidLT"`
TokenidLte *big.Int `json:"tokenidLTE"`
TokenidIsNil *bool `json:"tokenidIsNil"`
TokenidNotNil *bool `json:"tokenidNotNil"`
// balance field predicates
Balance *big.Int `json:"balance"`
BalanceNeq *big.Int `json:"balanceNEQ"`
BalanceIn []*big.Int `json:"balanceIn"`
BalanceNotIn []*big.Int `json:"balanceNotIn"`
BalanceGt *big.Int `json:"balanceGT"`
BalanceGte *big.Int `json:"balanceGTE"`
BalanceLt *big.Int `json:"balanceLT"`
BalanceLte *big.Int `json:"balanceLTE"`
// id field predicates
ID *string `json:"id"`
IDNeq *string `json:"idNEQ"`
IDIn []string `json:"idIn"`
IDNotIn []string `json:"idNotIn"`
IDGt *string `json:"idGT"`
IDGte *string `json:"idGTE"`
IDLt *string `json:"idLT"`
IDLte *string `json:"idLTE"`
// account edge predicates
HasAccount *bool `json:"hasAccount"`
HasAccountWith []*ContractWhereInput `json:"hasAccountWith"`
// contract edge predicates
HasContract *bool `json:"hasContract"`
HasContractWith []*ContractWhereInput `json:"hasContractWith"`
}
BalanceWhereInput is used for filtering Balance objects. Input was generated by ent.
type BlockWhereInput ¶
type BlockWhereInput struct {
Not *BlockWhereInput `json:"not"`
And []*BlockWhereInput `json:"and"`
Or []*BlockWhereInput `json:"or"`
// block_hash field predicates
BlockHash *string `json:"blockHash"`
BlockHashNeq *string `json:"blockHashNEQ"`
BlockHashIn []string `json:"blockHashIn"`
BlockHashNotIn []string `json:"blockHashNotIn"`
BlockHashGt *string `json:"blockHashGT"`
BlockHashGte *string `json:"blockHashGTE"`
BlockHashLt *string `json:"blockHashLT"`
BlockHashLte *string `json:"blockHashLTE"`
BlockHashContains *string `json:"blockHashContains"`
BlockHashHasPrefix *string `json:"blockHashHasPrefix"`
BlockHashHasSuffix *string `json:"blockHashHasSuffix"`
BlockHashEqualFold *string `json:"blockHashEqualFold"`
BlockHashContainsFold *string `json:"blockHashContainsFold"`
// parent_block_hash field predicates
ParentBlockHash *string `json:"parentBlockHash"`
ParentBlockHashNeq *string `json:"parentBlockHashNEQ"`
ParentBlockHashIn []string `json:"parentBlockHashIn"`
ParentBlockHashNotIn []string `json:"parentBlockHashNotIn"`
ParentBlockHashGt *string `json:"parentBlockHashGT"`
ParentBlockHashGte *string `json:"parentBlockHashGTE"`
ParentBlockHashLt *string `json:"parentBlockHashLT"`
ParentBlockHashLte *string `json:"parentBlockHashLTE"`
ParentBlockHashContains *string `json:"parentBlockHashContains"`
ParentBlockHashHasPrefix *string `json:"parentBlockHashHasPrefix"`
ParentBlockHashHasSuffix *string `json:"parentBlockHashHasSuffix"`
ParentBlockHashEqualFold *string `json:"parentBlockHashEqualFold"`
ParentBlockHashContainsFold *string `json:"parentBlockHashContainsFold"`
// block_number field predicates
BlockNumber *uint64 `json:"blockNumber"`
BlockNumberNeq *uint64 `json:"blockNumberNEQ"`
BlockNumberIn []uint64 `json:"blockNumberIn"`
BlockNumberNotIn []uint64 `json:"blockNumberNotIn"`
BlockNumberGt *uint64 `json:"blockNumberGT"`
BlockNumberGte *uint64 `json:"blockNumberGTE"`
BlockNumberLt *uint64 `json:"blockNumberLT"`
BlockNumberLte *uint64 `json:"blockNumberLTE"`
// state_root field predicates
StateRoot *string `json:"stateRoot"`
StateRootNeq *string `json:"stateRootNEQ"`
StateRootIn []string `json:"stateRootIn"`
StateRootNotIn []string `json:"stateRootNotIn"`
StateRootGt *string `json:"stateRootGT"`
StateRootGte *string `json:"stateRootGTE"`
StateRootLt *string `json:"stateRootLT"`
StateRootLte *string `json:"stateRootLTE"`
StateRootContains *string `json:"stateRootContains"`
StateRootHasPrefix *string `json:"stateRootHasPrefix"`
StateRootHasSuffix *string `json:"stateRootHasSuffix"`
StateRootEqualFold *string `json:"stateRootEqualFold"`
StateRootContainsFold *string `json:"stateRootContainsFold"`
// status field predicates
Status *block.Status `json:"status"`
StatusNeq *block.Status `json:"statusNEQ"`
StatusIn []block.Status `json:"statusIn"`
StatusNotIn []block.Status `json:"statusNotIn"`
// timestamp field predicates
Timestamp *time.Time `json:"timestamp"`
TimestampNeq *time.Time `json:"timestampNEQ"`
TimestampIn []*time.Time `json:"timestampIn"`
TimestampNotIn []*time.Time `json:"timestampNotIn"`
TimestampGt *time.Time `json:"timestampGT"`
TimestampGte *time.Time `json:"timestampGTE"`
TimestampLt *time.Time `json:"timestampLT"`
TimestampLte *time.Time `json:"timestampLTE"`
// id field predicates
ID *string `json:"id"`
IDNeq *string `json:"idNEQ"`
IDIn []string `json:"idIn"`
IDNotIn []string `json:"idNotIn"`
IDGt *string `json:"idGT"`
IDGte *string `json:"idGTE"`
IDLt *string `json:"idLT"`
IDLte *string `json:"idLTE"`
// transactions edge predicates
HasTransactions *bool `json:"hasTransactions"`
HasTransactionsWith []*TransactionWhereInput `json:"hasTransactionsWith"`
// transaction_receipts edge predicates
HasTransactionReceipts *bool `json:"hasTransactionReceipts"`
HasTransactionReceiptsWith []*TransactionReceiptWhereInput `json:"hasTransactionReceiptsWith"`
}
BlockWhereInput is used for filtering Block objects. Input was generated by ent.
type ComplexityRoot ¶
type ComplexityRoot struct {
Balance struct {
Account func(childComplexity int) int
Balance func(childComplexity int) int
Contract func(childComplexity int) int
ID func(childComplexity int) int
TokenId func(childComplexity int) int
}
BalanceConnection struct {
Edges func(childComplexity int) int
PageInfo func(childComplexity int) int
TotalCount func(childComplexity int) int
}
BalanceEdge struct {
Cursor func(childComplexity int) int
Node func(childComplexity int) int
}
Block struct {
BlockHash func(childComplexity int) int
BlockNumber func(childComplexity int) int
ID func(childComplexity int) int
ParentBlockHash func(childComplexity int) int
StateRoot func(childComplexity int) int
Status func(childComplexity int) int
Timestamp func(childComplexity int) int
TransactionReceipts func(childComplexity int) int
Transactions func(childComplexity int) int
}
BlockConnection struct {
Edges func(childComplexity int) int
PageInfo func(childComplexity int) int
TotalCount func(childComplexity int) int
}
BlockEdge struct {
Cursor func(childComplexity int) int
Node func(childComplexity int) int
}
Contract struct {
CreatedAt func(childComplexity int) int
ID func(childComplexity int) int
Transactions func(childComplexity int) int
Type func(childComplexity int) int
UpdatedAt func(childComplexity int) int
}
ContractConnection struct {
Edges func(childComplexity int) int
PageInfo func(childComplexity int) int
TotalCount func(childComplexity int) int
}
ContractEdge struct {
Cursor func(childComplexity int) int
Node func(childComplexity int) int
}
Event struct {
Data func(childComplexity int) int
From func(childComplexity int) int
ID func(childComplexity int) int
Keys func(childComplexity int) int
Transaction func(childComplexity int) int
}
EventConnection struct {
Edges func(childComplexity int) int
PageInfo func(childComplexity int) int
TotalCount func(childComplexity int) int
}
EventEdge struct {
Cursor func(childComplexity int) int
Node func(childComplexity int) int
}
L1Message struct {
Payload func(childComplexity int) int
ToAddress func(childComplexity int) int
}
L2Message struct {
FromAddress func(childComplexity int) int
Payload func(childComplexity int) int
}
PageInfo struct {
EndCursor func(childComplexity int) int
HasNextPage func(childComplexity int) int
HasPreviousPage func(childComplexity int) int
StartCursor func(childComplexity int) int
}
Query struct {
Blocks func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.BlockOrder, where *BlockWhereInput) int
Events func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *EventWhereInput) int
Node func(childComplexity int, id string) int
Nodes func(childComplexity int, ids []string) int
Transactions func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *TransactionWhereInput) int
}
Subscription struct {
WatchEvent func(childComplexity int, address string, keys []*types.Felt) int
}
Transaction struct {
Block func(childComplexity int) int
Calldata func(childComplexity int) int
ContractAddress func(childComplexity int) int
EntryPointSelector func(childComplexity int) int
Events func(childComplexity int) int
ID func(childComplexity int) int
Nonce func(childComplexity int) int
Receipt func(childComplexity int) int
Signature func(childComplexity int) int
TransactionHash func(childComplexity int) int
}
TransactionConnection struct {
Edges func(childComplexity int) int
PageInfo func(childComplexity int) int
TotalCount func(childComplexity int) int
}
TransactionEdge struct {
Cursor func(childComplexity int) int
Node func(childComplexity int) int
}
TransactionReceipt struct {
Block func(childComplexity int) int
ID func(childComplexity int) int
L1OriginMessage func(childComplexity int) int
MessagesSent func(childComplexity int) int
Status func(childComplexity int) int
StatusData func(childComplexity int) int
Transaction func(childComplexity int) int
TransactionHash func(childComplexity int) int
}
TransactionReceiptConnection struct {
Edges func(childComplexity int) int
PageInfo func(childComplexity int) int
TotalCount func(childComplexity int) int
}
TransactionReceiptEdge struct {
Cursor func(childComplexity int) int
Node func(childComplexity int) int
}
}
type Config ¶
type Config struct {
Resolvers ResolverRoot
Directives DirectiveRoot
Complexity ComplexityRoot
}
type ContractWhereInput ¶
type ContractWhereInput struct {
Not *ContractWhereInput `json:"not"`
And []*ContractWhereInput `json:"and"`
Or []*ContractWhereInput `json:"or"`
// type field predicates
Type *contract.Type `json:"type"`
TypeNeq *contract.Type `json:"typeNEQ"`
TypeIn []contract.Type `json:"typeIn"`
TypeNotIn []contract.Type `json:"typeNotIn"`
// created_at field predicates
CreatedAt *time.Time `json:"createdAt"`
CreatedAtNeq *time.Time `json:"createdAtNEQ"`
CreatedAtIn []*time.Time `json:"createdAtIn"`
CreatedAtNotIn []*time.Time `json:"createdAtNotIn"`
CreatedAtGt *time.Time `json:"createdAtGT"`
CreatedAtGte *time.Time `json:"createdAtGTE"`
CreatedAtLt *time.Time `json:"createdAtLT"`
CreatedAtLte *time.Time `json:"createdAtLTE"`
// updated_at field predicates
UpdatedAt *time.Time `json:"updatedAt"`
UpdatedAtNeq *time.Time `json:"updatedAtNEQ"`
UpdatedAtIn []*time.Time `json:"updatedAtIn"`
UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn"`
UpdatedAtGt *time.Time `json:"updatedAtGT"`
UpdatedAtGte *time.Time `json:"updatedAtGTE"`
UpdatedAtLt *time.Time `json:"updatedAtLT"`
UpdatedAtLte *time.Time `json:"updatedAtLTE"`
// id field predicates
ID *string `json:"id"`
IDNeq *string `json:"idNEQ"`
IDIn []string `json:"idIn"`
IDNotIn []string `json:"idNotIn"`
IDGt *string `json:"idGT"`
IDGte *string `json:"idGTE"`
IDLt *string `json:"idLT"`
IDLte *string `json:"idLTE"`
// transactions edge predicates
HasTransactions *bool `json:"hasTransactions"`
HasTransactionsWith []*TransactionWhereInput `json:"hasTransactionsWith"`
}
ContractWhereInput is used for filtering Contract objects. Input was generated by ent.
type DirectiveRoot ¶
type DirectiveRoot struct {
}
type EventWhereInput ¶
type EventWhereInput struct {
Not *EventWhereInput `json:"not"`
And []*EventWhereInput `json:"and"`
Or []*EventWhereInput `json:"or"`
// from field predicates
From *string `json:"from"`
FromNeq *string `json:"fromNEQ"`
FromIn []string `json:"fromIn"`
FromNotIn []string `json:"fromNotIn"`
FromGt *string `json:"fromGT"`
FromGte *string `json:"fromGTE"`
FromLt *string `json:"fromLT"`
FromLte *string `json:"fromLTE"`
FromContains *string `json:"fromContains"`
FromHasPrefix *string `json:"fromHasPrefix"`
FromHasSuffix *string `json:"fromHasSuffix"`
FromEqualFold *string `json:"fromEqualFold"`
FromContainsFold *string `json:"fromContainsFold"`
// id field predicates
ID *string `json:"id"`
IDNeq *string `json:"idNEQ"`
IDIn []string `json:"idIn"`
IDNotIn []string `json:"idNotIn"`
IDGt *string `json:"idGT"`
IDGte *string `json:"idGTE"`
IDLt *string `json:"idLT"`
IDLte *string `json:"idLTE"`
// transaction edge predicates
HasTransaction *bool `json:"hasTransaction"`
HasTransactionWith []*TransactionWhereInput `json:"hasTransactionWith"`
}
EventWhereInput is used for filtering Event objects. Input was generated by ent.
type QueryResolver ¶
type QueryResolver interface {
Node(ctx context.Context, id string) (ent.Noder, error)
Nodes(ctx context.Context, ids []string) ([]ent.Noder, error)
Blocks(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.BlockOrder, where *BlockWhereInput) (*ent.BlockConnection, error)
Events(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *EventWhereInput) (*ent.EventConnection, error)
Transactions(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *TransactionWhereInput) (*ent.TransactionConnection, error)
}
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
Subscription() SubscriptionResolver
}
type SubscriptionResolver ¶
type TransactionReceiptWhereInput ¶
type TransactionReceiptWhereInput struct {
Not *TransactionReceiptWhereInput `json:"not"`
And []*TransactionReceiptWhereInput `json:"and"`
Or []*TransactionReceiptWhereInput `json:"or"`
// transaction_hash field predicates
TransactionHash *string `json:"transactionHash"`
TransactionHashNeq *string `json:"transactionHashNEQ"`
TransactionHashIn []string `json:"transactionHashIn"`
TransactionHashNotIn []string `json:"transactionHashNotIn"`
TransactionHashGt *string `json:"transactionHashGT"`
TransactionHashGte *string `json:"transactionHashGTE"`
TransactionHashLt *string `json:"transactionHashLT"`
TransactionHashLte *string `json:"transactionHashLTE"`
TransactionHashContains *string `json:"transactionHashContains"`
TransactionHashHasPrefix *string `json:"transactionHashHasPrefix"`
TransactionHashHasSuffix *string `json:"transactionHashHasSuffix"`
TransactionHashEqualFold *string `json:"transactionHashEqualFold"`
TransactionHashContainsFold *string `json:"transactionHashContainsFold"`
// status field predicates
Status *transactionreceipt.Status `json:"status"`
StatusNeq *transactionreceipt.Status `json:"statusNEQ"`
StatusIn []transactionreceipt.Status `json:"statusIn"`
StatusNotIn []transactionreceipt.Status `json:"statusNotIn"`
// status_data field predicates
StatusData *string `json:"statusData"`
StatusDataNeq *string `json:"statusDataNEQ"`
StatusDataIn []string `json:"statusDataIn"`
StatusDataNotIn []string `json:"statusDataNotIn"`
StatusDataGt *string `json:"statusDataGT"`
StatusDataGte *string `json:"statusDataGTE"`
StatusDataLt *string `json:"statusDataLT"`
StatusDataLte *string `json:"statusDataLTE"`
StatusDataContains *string `json:"statusDataContains"`
StatusDataHasPrefix *string `json:"statusDataHasPrefix"`
StatusDataHasSuffix *string `json:"statusDataHasSuffix"`
StatusDataEqualFold *string `json:"statusDataEqualFold"`
StatusDataContainsFold *string `json:"statusDataContainsFold"`
// id field predicates
ID *string `json:"id"`
IDNeq *string `json:"idNEQ"`
IDIn []string `json:"idIn"`
IDNotIn []string `json:"idNotIn"`
IDGt *string `json:"idGT"`
IDGte *string `json:"idGTE"`
IDLt *string `json:"idLT"`
IDLte *string `json:"idLTE"`
// block edge predicates
HasBlock *bool `json:"hasBlock"`
HasBlockWith []*BlockWhereInput `json:"hasBlockWith"`
// transaction edge predicates
HasTransaction *bool `json:"hasTransaction"`
HasTransactionWith []*TransactionWhereInput `json:"hasTransactionWith"`
}
TransactionReceiptWhereInput is used for filtering TransactionReceipt objects. Input was generated by ent.
type TransactionWhereInput ¶
type TransactionWhereInput struct {
Not *TransactionWhereInput `json:"not"`
And []*TransactionWhereInput `json:"and"`
Or []*TransactionWhereInput `json:"or"`
// contract_address field predicates
ContractAddress *string `json:"contractAddress"`
ContractAddressNeq *string `json:"contractAddressNEQ"`
ContractAddressIn []string `json:"contractAddressIn"`
ContractAddressNotIn []string `json:"contractAddressNotIn"`
ContractAddressGt *string `json:"contractAddressGT"`
ContractAddressGte *string `json:"contractAddressGTE"`
ContractAddressLt *string `json:"contractAddressLT"`
ContractAddressLte *string `json:"contractAddressLTE"`
ContractAddressContains *string `json:"contractAddressContains"`
ContractAddressHasPrefix *string `json:"contractAddressHasPrefix"`
ContractAddressHasSuffix *string `json:"contractAddressHasSuffix"`
ContractAddressEqualFold *string `json:"contractAddressEqualFold"`
ContractAddressContainsFold *string `json:"contractAddressContainsFold"`
// entry_point_selector field predicates
EntryPointSelector *string `json:"entryPointSelector"`
EntryPointSelectorNeq *string `json:"entryPointSelectorNEQ"`
EntryPointSelectorIn []string `json:"entryPointSelectorIn"`
EntryPointSelectorNotIn []string `json:"entryPointSelectorNotIn"`
EntryPointSelectorGt *string `json:"entryPointSelectorGT"`
EntryPointSelectorGte *string `json:"entryPointSelectorGTE"`
EntryPointSelectorLt *string `json:"entryPointSelectorLT"`
EntryPointSelectorLte *string `json:"entryPointSelectorLTE"`
EntryPointSelectorContains *string `json:"entryPointSelectorContains"`
EntryPointSelectorHasPrefix *string `json:"entryPointSelectorHasPrefix"`
EntryPointSelectorHasSuffix *string `json:"entryPointSelectorHasSuffix"`
EntryPointSelectorIsNil *bool `json:"entryPointSelectorIsNil"`
EntryPointSelectorNotNil *bool `json:"entryPointSelectorNotNil"`
EntryPointSelectorEqualFold *string `json:"entryPointSelectorEqualFold"`
EntryPointSelectorContainsFold *string `json:"entryPointSelectorContainsFold"`
// transaction_hash field predicates
TransactionHash *string `json:"transactionHash"`
TransactionHashNeq *string `json:"transactionHashNEQ"`
TransactionHashIn []string `json:"transactionHashIn"`
TransactionHashNotIn []string `json:"transactionHashNotIn"`
TransactionHashGt *string `json:"transactionHashGT"`
TransactionHashGte *string `json:"transactionHashGTE"`
TransactionHashLt *string `json:"transactionHashLT"`
TransactionHashLte *string `json:"transactionHashLTE"`
TransactionHashContains *string `json:"transactionHashContains"`
TransactionHashHasPrefix *string `json:"transactionHashHasPrefix"`
TransactionHashHasSuffix *string `json:"transactionHashHasSuffix"`
TransactionHashEqualFold *string `json:"transactionHashEqualFold"`
TransactionHashContainsFold *string `json:"transactionHashContainsFold"`
// nonce field predicates
Nonce *string `json:"nonce"`
NonceNeq *string `json:"nonceNEQ"`
NonceIn []string `json:"nonceIn"`
NonceNotIn []string `json:"nonceNotIn"`
NonceGt *string `json:"nonceGT"`
NonceGte *string `json:"nonceGTE"`
NonceLt *string `json:"nonceLT"`
NonceLte *string `json:"nonceLTE"`
NonceContains *string `json:"nonceContains"`
NonceHasPrefix *string `json:"nonceHasPrefix"`
NonceHasSuffix *string `json:"nonceHasSuffix"`
NonceIsNil *bool `json:"nonceIsNil"`
NonceNotNil *bool `json:"nonceNotNil"`
NonceEqualFold *string `json:"nonceEqualFold"`
NonceContainsFold *string `json:"nonceContainsFold"`
// id field predicates
ID *string `json:"id"`
IDNeq *string `json:"idNEQ"`
IDIn []string `json:"idIn"`
IDNotIn []string `json:"idNotIn"`
IDGt *string `json:"idGT"`
IDGte *string `json:"idGTE"`
IDLt *string `json:"idLT"`
IDLte *string `json:"idLTE"`
// block edge predicates
HasBlock *bool `json:"hasBlock"`
HasBlockWith []*BlockWhereInput `json:"hasBlockWith"`
// receipt edge predicates
HasReceipt *bool `json:"hasReceipt"`
HasReceiptWith []*TransactionReceiptWhereInput `json:"hasReceiptWith"`
// events edge predicates
HasEvents *bool `json:"hasEvents"`
HasEventsWith []*EventWhereInput `json:"hasEventsWith"`
}
TransactionWhereInput is used for filtering Transaction objects. Input was generated by ent.
Click to show internal directories.
Click to hide internal directories.