synapsecns/sanguine

View on GitHub
services/scribe/graphql/server/graph/resolver/server.go

Summary

Maintainability
F
10 mos
Test Coverage
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.

package resolvers

import (
    "bytes"
    "context"
    "errors"
    "fmt"
    "strconv"
    "sync"
    "sync/atomic"

    "github.com/99designs/gqlgen/graphql"
    "github.com/99designs/gqlgen/graphql/introspection"
    "github.com/synapsecns/sanguine/services/scribe/graphql/server/graph/model"
    "github.com/synapsecns/sanguine/services/scribe/graphql/server/types"
    gqlparser "github.com/vektah/gqlparser/v2"
    "github.com/vektah/gqlparser/v2/ast"
)

// region    ************************** generated!.gotpl **************************

// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
    return &executableSchema{
        resolvers:  cfg.Resolvers,
        directives: cfg.Directives,
        complexity: cfg.Complexity,
    }
}

type Config struct {
    Resolvers  ResolverRoot
    Directives DirectiveRoot
    Complexity ComplexityRoot
}

type ResolverRoot interface {
    Log() LogResolver
    Query() QueryResolver
    Receipt() ReceiptResolver
    Transaction() TransactionResolver
}

type DirectiveRoot struct {
}

type ComplexityRoot struct {
    BlockTime struct {
        BlockNumber func(childComplexity int) int
        ChainID     func(childComplexity int) int
        Timestamp   func(childComplexity int) int
    }

    Log struct {
        BlockHash       func(childComplexity int) int
        BlockNumber     func(childComplexity int) int
        ChainID         func(childComplexity int) int
        ContractAddress func(childComplexity int) int
        Data            func(childComplexity int) int
        Index           func(childComplexity int) int
        JSON            func(childComplexity int) int
        Page            func(childComplexity int) int
        Receipt         func(childComplexity int) int
        Removed         func(childComplexity int) int
        Topics          func(childComplexity int) int
        Transaction     func(childComplexity int) int
        TxHash          func(childComplexity int) int
        TxIndex         func(childComplexity int) int
    }

    Query struct {
        BlockTime                func(childComplexity int, chainID int, blockNumber int) int
        BlockTimeCount           func(childComplexity int, chainID int) int
        FirstStoredBlockNumber   func(childComplexity int, chainID int) int
        LastConfirmedBlockNumber func(childComplexity int, chainID int) int
        LastIndexed              func(childComplexity int, contractAddress string, chainID int) int
        LastStoredBlockNumber    func(childComplexity int, chainID int) int
        LogCount                 func(childComplexity int, contractAddress string, chainID int) int
        Logs                     func(childComplexity int, contractAddress *string, chainID int, blockNumber *int, txHash *string, txIndex *int, blockHash *string, index *int, confirmed *bool, page int) int
        LogsAtHeadRange          func(childComplexity int, contractAddress *string, chainID int, blockNumber *int, txHash *string, txIndex *int, blockHash *string, index *int, confirmed *bool, startBlock int, endBlock int, page int) int
        LogsRange                func(childComplexity int, contractAddress *string, chainID int, blockNumber *int, txHash *string, txIndex *int, blockHash *string, index *int, confirmed *bool, startBlock int, endBlock int, page int, asc *bool) int
        ReceiptCount             func(childComplexity int, chainID int) int
        Receipts                 func(childComplexity int, chainID int, txHash *string, contractAddress *string, blockHash *string, blockNumber *int, txIndex *int, confirmed *bool, page int) int
        ReceiptsAtHeadRange      func(childComplexity int, chainID int, txHash *string, contractAddress *string, blockHash *string, blockNumber *int, txIndex *int, confirmed *bool, startBlock int, endBlock int, page int) int
        ReceiptsRange            func(childComplexity int, chainID int, txHash *string, contractAddress *string, blockHash *string, blockNumber *int, txIndex *int, confirmed *bool, startBlock int, endBlock int, page int) int
        Transactions             func(childComplexity int, txHash *string, chainID int, blockNumber *int, blockHash *string, confirmed *bool, page int) int
        TransactionsAtHeadRange  func(childComplexity int, txHash *string, chainID int, blockNumber *int, blockHash *string, confirmed *bool, startBlock int, endBlock int, lastIndexed int, page int) int
        TransactionsRange        func(childComplexity int, txHash *string, chainID int, blockNumber *int, blockHash *string, confirmed *bool, startBlock int, endBlock int, page int) int
        TxSender                 func(childComplexity int, txHash string, chainID int) int
    }

    Receipt struct {
        BlockNumber       func(childComplexity int) int
        Bloom             func(childComplexity int) int
        ChainID           func(childComplexity int) int
        ContractAddress   func(childComplexity int) int
        CumulativeGasUsed func(childComplexity int) int
        GasUsed           func(childComplexity int) int
        JSON              func(childComplexity int) int
        Logs              func(childComplexity int) int
        Page              func(childComplexity int) int
        PostState         func(childComplexity int) int
        Status            func(childComplexity int) int
        Transaction       func(childComplexity int) int
        TransactionIndex  func(childComplexity int) int
        TxHash            func(childComplexity int) int
        Type              func(childComplexity int) int
    }

    Transaction struct {
        ChainID   func(childComplexity int) int
        Data      func(childComplexity int) int
        Gas       func(childComplexity int) int
        GasFeeCap func(childComplexity int) int
        GasPrice  func(childComplexity int) int
        GasTipCap func(childComplexity int) int
        JSON      func(childComplexity int) int
        Logs      func(childComplexity int) int
        Nonce     func(childComplexity int) int
        Page      func(childComplexity int) int
        Protected func(childComplexity int) int
        Receipt   func(childComplexity int) int
        Sender    func(childComplexity int) int
        Timestamp func(childComplexity int) int
        To        func(childComplexity int) int
        TxHash    func(childComplexity int) int
        Type      func(childComplexity int) int
        Value     func(childComplexity int) int
    }
}

type LogResolver interface {
    Transaction(ctx context.Context, obj *model.Log) (*model.Transaction, error)
    Receipt(ctx context.Context, obj *model.Log) (*model.Receipt, error)
    JSON(ctx context.Context, obj *model.Log) (types.JSON, error)
}
type QueryResolver interface {
    Logs(ctx context.Context, contractAddress *string, chainID int, blockNumber *int, txHash *string, txIndex *int, blockHash *string, index *int, confirmed *bool, page int) ([]*model.Log, error)
    LogsRange(ctx context.Context, contractAddress *string, chainID int, blockNumber *int, txHash *string, txIndex *int, blockHash *string, index *int, confirmed *bool, startBlock int, endBlock int, page int, asc *bool) ([]*model.Log, error)
    Receipts(ctx context.Context, chainID int, txHash *string, contractAddress *string, blockHash *string, blockNumber *int, txIndex *int, confirmed *bool, page int) ([]*model.Receipt, error)
    ReceiptsRange(ctx context.Context, chainID int, txHash *string, contractAddress *string, blockHash *string, blockNumber *int, txIndex *int, confirmed *bool, startBlock int, endBlock int, page int) ([]*model.Receipt, error)
    Transactions(ctx context.Context, txHash *string, chainID int, blockNumber *int, blockHash *string, confirmed *bool, page int) ([]*model.Transaction, error)
    TransactionsRange(ctx context.Context, txHash *string, chainID int, blockNumber *int, blockHash *string, confirmed *bool, startBlock int, endBlock int, page int) ([]*model.Transaction, error)
    BlockTime(ctx context.Context, chainID int, blockNumber int) (*int, error)
    LastStoredBlockNumber(ctx context.Context, chainID int) (*int, error)
    FirstStoredBlockNumber(ctx context.Context, chainID int) (*int, error)
    LastConfirmedBlockNumber(ctx context.Context, chainID int) (*int, error)
    TxSender(ctx context.Context, txHash string, chainID int) (*string, error)
    LastIndexed(ctx context.Context, contractAddress string, chainID int) (*int, error)
    LogCount(ctx context.Context, contractAddress string, chainID int) (*int, error)
    ReceiptCount(ctx context.Context, chainID int) (*int, error)
    BlockTimeCount(ctx context.Context, chainID int) (*int, error)
    LogsAtHeadRange(ctx context.Context, contractAddress *string, chainID int, blockNumber *int, txHash *string, txIndex *int, blockHash *string, index *int, confirmed *bool, startBlock int, endBlock int, page int) ([]*model.Log, error)
    ReceiptsAtHeadRange(ctx context.Context, chainID int, txHash *string, contractAddress *string, blockHash *string, blockNumber *int, txIndex *int, confirmed *bool, startBlock int, endBlock int, page int) ([]*model.Receipt, error)
    TransactionsAtHeadRange(ctx context.Context, txHash *string, chainID int, blockNumber *int, blockHash *string, confirmed *bool, startBlock int, endBlock int, lastIndexed int, page int) ([]*model.Transaction, error)
}
type ReceiptResolver interface {
    Logs(ctx context.Context, obj *model.Receipt) ([]*model.Log, error)
    Transaction(ctx context.Context, obj *model.Receipt) (*model.Transaction, error)
    JSON(ctx context.Context, obj *model.Receipt) (types.JSON, error)
}
type TransactionResolver interface {
    Logs(ctx context.Context, obj *model.Transaction) ([]*model.Log, error)
    Receipt(ctx context.Context, obj *model.Transaction) (*model.Receipt, error)
    JSON(ctx context.Context, obj *model.Transaction) (types.JSON, error)
}

type executableSchema struct {
    resolvers  ResolverRoot
    directives DirectiveRoot
    complexity ComplexityRoot
}

func (e *executableSchema) Schema() *ast.Schema {
    return parsedSchema
}

func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
    ec := executionContext{nil, e, 0, 0, nil}
    _ = ec
    switch typeName + "." + field {

    case "BlockTime.block_number":
        if e.complexity.BlockTime.BlockNumber == nil {
            break
        }

        return e.complexity.BlockTime.BlockNumber(childComplexity), true

    case "BlockTime.chain_id":
        if e.complexity.BlockTime.ChainID == nil {
            break
        }

        return e.complexity.BlockTime.ChainID(childComplexity), true

    case "BlockTime.timestamp":
        if e.complexity.BlockTime.Timestamp == nil {
            break
        }

        return e.complexity.BlockTime.Timestamp(childComplexity), true

    case "Log.block_hash":
        if e.complexity.Log.BlockHash == nil {
            break
        }

        return e.complexity.Log.BlockHash(childComplexity), true

    case "Log.block_number":
        if e.complexity.Log.BlockNumber == nil {
            break
        }

        return e.complexity.Log.BlockNumber(childComplexity), true

    case "Log.chain_id":
        if e.complexity.Log.ChainID == nil {
            break
        }

        return e.complexity.Log.ChainID(childComplexity), true

    case "Log.contract_address":
        if e.complexity.Log.ContractAddress == nil {
            break
        }

        return e.complexity.Log.ContractAddress(childComplexity), true

    case "Log.data":
        if e.complexity.Log.Data == nil {
            break
        }

        return e.complexity.Log.Data(childComplexity), true

    case "Log.index":
        if e.complexity.Log.Index == nil {
            break
        }

        return e.complexity.Log.Index(childComplexity), true

    case "Log.json":
        if e.complexity.Log.JSON == nil {
            break
        }

        return e.complexity.Log.JSON(childComplexity), true

    case "Log.page":
        if e.complexity.Log.Page == nil {
            break
        }

        return e.complexity.Log.Page(childComplexity), true

    case "Log.receipt":
        if e.complexity.Log.Receipt == nil {
            break
        }

        return e.complexity.Log.Receipt(childComplexity), true

    case "Log.removed":
        if e.complexity.Log.Removed == nil {
            break
        }

        return e.complexity.Log.Removed(childComplexity), true

    case "Log.topics":
        if e.complexity.Log.Topics == nil {
            break
        }

        return e.complexity.Log.Topics(childComplexity), true

    case "Log.transaction":
        if e.complexity.Log.Transaction == nil {
            break
        }

        return e.complexity.Log.Transaction(childComplexity), true

    case "Log.tx_hash":
        if e.complexity.Log.TxHash == nil {
            break
        }

        return e.complexity.Log.TxHash(childComplexity), true

    case "Log.tx_index":
        if e.complexity.Log.TxIndex == nil {
            break
        }

        return e.complexity.Log.TxIndex(childComplexity), true

    case "Query.blockTime":
        if e.complexity.Query.BlockTime == nil {
            break
        }

        args, err := ec.field_Query_blockTime_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.BlockTime(childComplexity, args["chain_id"].(int), args["block_number"].(int)), true

    case "Query.blockTimeCount":
        if e.complexity.Query.BlockTimeCount == nil {
            break
        }

        args, err := ec.field_Query_blockTimeCount_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.BlockTimeCount(childComplexity, args["chain_id"].(int)), true

    case "Query.firstStoredBlockNumber":
        if e.complexity.Query.FirstStoredBlockNumber == nil {
            break
        }

        args, err := ec.field_Query_firstStoredBlockNumber_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.FirstStoredBlockNumber(childComplexity, args["chain_id"].(int)), true

    case "Query.lastConfirmedBlockNumber":
        if e.complexity.Query.LastConfirmedBlockNumber == nil {
            break
        }

        args, err := ec.field_Query_lastConfirmedBlockNumber_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.LastConfirmedBlockNumber(childComplexity, args["chain_id"].(int)), true

    case "Query.lastIndexed":
        if e.complexity.Query.LastIndexed == nil {
            break
        }

        args, err := ec.field_Query_lastIndexed_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.LastIndexed(childComplexity, args["contract_address"].(string), args["chain_id"].(int)), true

    case "Query.lastStoredBlockNumber":
        if e.complexity.Query.LastStoredBlockNumber == nil {
            break
        }

        args, err := ec.field_Query_lastStoredBlockNumber_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.LastStoredBlockNumber(childComplexity, args["chain_id"].(int)), true

    case "Query.logCount":
        if e.complexity.Query.LogCount == nil {
            break
        }

        args, err := ec.field_Query_logCount_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.LogCount(childComplexity, args["contract_address"].(string), args["chain_id"].(int)), true

    case "Query.logs":
        if e.complexity.Query.Logs == nil {
            break
        }

        args, err := ec.field_Query_logs_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.Logs(childComplexity, args["contract_address"].(*string), args["chain_id"].(int), args["block_number"].(*int), args["tx_hash"].(*string), args["tx_index"].(*int), args["block_hash"].(*string), args["index"].(*int), args["confirmed"].(*bool), args["page"].(int)), true

    case "Query.logsAtHeadRange":
        if e.complexity.Query.LogsAtHeadRange == nil {
            break
        }

        args, err := ec.field_Query_logsAtHeadRange_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.LogsAtHeadRange(childComplexity, args["contract_address"].(*string), args["chain_id"].(int), args["block_number"].(*int), args["tx_hash"].(*string), args["tx_index"].(*int), args["block_hash"].(*string), args["index"].(*int), args["confirmed"].(*bool), args["start_block"].(int), args["end_block"].(int), args["page"].(int)), true

    case "Query.logsRange":
        if e.complexity.Query.LogsRange == nil {
            break
        }

        args, err := ec.field_Query_logsRange_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.LogsRange(childComplexity, args["contract_address"].(*string), args["chain_id"].(int), args["block_number"].(*int), args["tx_hash"].(*string), args["tx_index"].(*int), args["block_hash"].(*string), args["index"].(*int), args["confirmed"].(*bool), args["start_block"].(int), args["end_block"].(int), args["page"].(int), args["asc"].(*bool)), true

    case "Query.receiptCount":
        if e.complexity.Query.ReceiptCount == nil {
            break
        }

        args, err := ec.field_Query_receiptCount_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.ReceiptCount(childComplexity, args["chain_id"].(int)), true

    case "Query.receipts":
        if e.complexity.Query.Receipts == nil {
            break
        }

        args, err := ec.field_Query_receipts_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.Receipts(childComplexity, args["chain_id"].(int), args["tx_hash"].(*string), args["contract_address"].(*string), args["block_hash"].(*string), args["block_number"].(*int), args["tx_index"].(*int), args["confirmed"].(*bool), args["page"].(int)), true

    case "Query.receiptsAtHeadRange":
        if e.complexity.Query.ReceiptsAtHeadRange == nil {
            break
        }

        args, err := ec.field_Query_receiptsAtHeadRange_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.ReceiptsAtHeadRange(childComplexity, args["chain_id"].(int), args["tx_hash"].(*string), args["contract_address"].(*string), args["block_hash"].(*string), args["block_number"].(*int), args["tx_index"].(*int), args["confirmed"].(*bool), args["start_block"].(int), args["end_block"].(int), args["page"].(int)), true

    case "Query.receiptsRange":
        if e.complexity.Query.ReceiptsRange == nil {
            break
        }

        args, err := ec.field_Query_receiptsRange_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.ReceiptsRange(childComplexity, args["chain_id"].(int), args["tx_hash"].(*string), args["contract_address"].(*string), args["block_hash"].(*string), args["block_number"].(*int), args["tx_index"].(*int), args["confirmed"].(*bool), args["start_block"].(int), args["end_block"].(int), args["page"].(int)), true

    case "Query.transactions":
        if e.complexity.Query.Transactions == nil {
            break
        }

        args, err := ec.field_Query_transactions_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.Transactions(childComplexity, args["tx_hash"].(*string), args["chain_id"].(int), args["block_number"].(*int), args["block_hash"].(*string), args["confirmed"].(*bool), args["page"].(int)), true

    case "Query.transactionsAtHeadRange":
        if e.complexity.Query.TransactionsAtHeadRange == nil {
            break
        }

        args, err := ec.field_Query_transactionsAtHeadRange_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.TransactionsAtHeadRange(childComplexity, args["tx_hash"].(*string), args["chain_id"].(int), args["block_number"].(*int), args["block_hash"].(*string), args["confirmed"].(*bool), args["start_block"].(int), args["end_block"].(int), args["last_indexed"].(int), args["page"].(int)), true

    case "Query.transactionsRange":
        if e.complexity.Query.TransactionsRange == nil {
            break
        }

        args, err := ec.field_Query_transactionsRange_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.TransactionsRange(childComplexity, args["tx_hash"].(*string), args["chain_id"].(int), args["block_number"].(*int), args["block_hash"].(*string), args["confirmed"].(*bool), args["start_block"].(int), args["end_block"].(int), args["page"].(int)), true

    case "Query.txSender":
        if e.complexity.Query.TxSender == nil {
            break
        }

        args, err := ec.field_Query_txSender_args(context.TODO(), rawArgs)
        if err != nil {
            return 0, false
        }

        return e.complexity.Query.TxSender(childComplexity, args["tx_hash"].(string), args["chain_id"].(int)), true

    case "Receipt.block_number":
        if e.complexity.Receipt.BlockNumber == nil {
            break
        }

        return e.complexity.Receipt.BlockNumber(childComplexity), true

    case "Receipt.bloom":
        if e.complexity.Receipt.Bloom == nil {
            break
        }

        return e.complexity.Receipt.Bloom(childComplexity), true

    case "Receipt.chain_id":
        if e.complexity.Receipt.ChainID == nil {
            break
        }

        return e.complexity.Receipt.ChainID(childComplexity), true

    case "Receipt.contract_address":
        if e.complexity.Receipt.ContractAddress == nil {
            break
        }

        return e.complexity.Receipt.ContractAddress(childComplexity), true

    case "Receipt.cumulative_gas_used":
        if e.complexity.Receipt.CumulativeGasUsed == nil {
            break
        }

        return e.complexity.Receipt.CumulativeGasUsed(childComplexity), true

    case "Receipt.gas_used":
        if e.complexity.Receipt.GasUsed == nil {
            break
        }

        return e.complexity.Receipt.GasUsed(childComplexity), true

    case "Receipt.json":
        if e.complexity.Receipt.JSON == nil {
            break
        }

        return e.complexity.Receipt.JSON(childComplexity), true

    case "Receipt.logs":
        if e.complexity.Receipt.Logs == nil {
            break
        }

        return e.complexity.Receipt.Logs(childComplexity), true

    case "Receipt.page":
        if e.complexity.Receipt.Page == nil {
            break
        }

        return e.complexity.Receipt.Page(childComplexity), true

    case "Receipt.post_state":
        if e.complexity.Receipt.PostState == nil {
            break
        }

        return e.complexity.Receipt.PostState(childComplexity), true

    case "Receipt.status":
        if e.complexity.Receipt.Status == nil {
            break
        }

        return e.complexity.Receipt.Status(childComplexity), true

    case "Receipt.transaction":
        if e.complexity.Receipt.Transaction == nil {
            break
        }

        return e.complexity.Receipt.Transaction(childComplexity), true

    case "Receipt.transaction_index":
        if e.complexity.Receipt.TransactionIndex == nil {
            break
        }

        return e.complexity.Receipt.TransactionIndex(childComplexity), true

    case "Receipt.tx_hash":
        if e.complexity.Receipt.TxHash == nil {
            break
        }

        return e.complexity.Receipt.TxHash(childComplexity), true

    case "Receipt.type":
        if e.complexity.Receipt.Type == nil {
            break
        }

        return e.complexity.Receipt.Type(childComplexity), true

    case "Transaction.chain_id":
        if e.complexity.Transaction.ChainID == nil {
            break
        }

        return e.complexity.Transaction.ChainID(childComplexity), true

    case "Transaction.data":
        if e.complexity.Transaction.Data == nil {
            break
        }

        return e.complexity.Transaction.Data(childComplexity), true

    case "Transaction.gas":
        if e.complexity.Transaction.Gas == nil {
            break
        }

        return e.complexity.Transaction.Gas(childComplexity), true

    case "Transaction.gas_fee_cap":
        if e.complexity.Transaction.GasFeeCap == nil {
            break
        }

        return e.complexity.Transaction.GasFeeCap(childComplexity), true

    case "Transaction.gas_price":
        if e.complexity.Transaction.GasPrice == nil {
            break
        }

        return e.complexity.Transaction.GasPrice(childComplexity), true

    case "Transaction.gas_tip_cap":
        if e.complexity.Transaction.GasTipCap == nil {
            break
        }

        return e.complexity.Transaction.GasTipCap(childComplexity), true

    case "Transaction.json":
        if e.complexity.Transaction.JSON == nil {
            break
        }

        return e.complexity.Transaction.JSON(childComplexity), true

    case "Transaction.logs":
        if e.complexity.Transaction.Logs == nil {
            break
        }

        return e.complexity.Transaction.Logs(childComplexity), true

    case "Transaction.nonce":
        if e.complexity.Transaction.Nonce == nil {
            break
        }

        return e.complexity.Transaction.Nonce(childComplexity), true

    case "Transaction.page":
        if e.complexity.Transaction.Page == nil {
            break
        }

        return e.complexity.Transaction.Page(childComplexity), true

    case "Transaction.protected":
        if e.complexity.Transaction.Protected == nil {
            break
        }

        return e.complexity.Transaction.Protected(childComplexity), true

    case "Transaction.receipt":
        if e.complexity.Transaction.Receipt == nil {
            break
        }

        return e.complexity.Transaction.Receipt(childComplexity), true

    case "Transaction.sender":
        if e.complexity.Transaction.Sender == nil {
            break
        }

        return e.complexity.Transaction.Sender(childComplexity), true

    case "Transaction.timestamp":
        if e.complexity.Transaction.Timestamp == nil {
            break
        }

        return e.complexity.Transaction.Timestamp(childComplexity), true

    case "Transaction.to":
        if e.complexity.Transaction.To == nil {
            break
        }

        return e.complexity.Transaction.To(childComplexity), true

    case "Transaction.tx_hash":
        if e.complexity.Transaction.TxHash == nil {
            break
        }

        return e.complexity.Transaction.TxHash(childComplexity), true

    case "Transaction.type":
        if e.complexity.Transaction.Type == nil {
            break
        }

        return e.complexity.Transaction.Type(childComplexity), true

    case "Transaction.value":
        if e.complexity.Transaction.Value == nil {
            break
        }

        return e.complexity.Transaction.Value(childComplexity), true

    }
    return 0, false
}

func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
    rc := graphql.GetOperationContext(ctx)
    ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)}
    inputUnmarshalMap := graphql.BuildUnmarshalerMap()
    first := true

    switch rc.Operation.Operation {
    case ast.Query:
        return func(ctx context.Context) *graphql.Response {
            var response graphql.Response
            var data graphql.Marshaler
            if first {
                first = false
                ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
                data = ec._Query(ctx, rc.Operation.SelectionSet)
            } else {
                if atomic.LoadInt32(&ec.pendingDeferred) > 0 {
                    result := <-ec.deferredResults
                    atomic.AddInt32(&ec.pendingDeferred, -1)
                    data = result.Result
                    response.Path = result.Path
                    response.Label = result.Label
                    response.Errors = result.Errors
                } else {
                    return nil
                }
            }
            var buf bytes.Buffer
            data.MarshalGQL(&buf)
            response.Data = buf.Bytes()
            if atomic.LoadInt32(&ec.deferred) > 0 {
                hasNext := atomic.LoadInt32(&ec.pendingDeferred) > 0
                response.HasNext = &hasNext
            }

            return &response
        }

    default:
        return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
    }
}

type executionContext struct {
    *graphql.OperationContext
    *executableSchema
    deferred        int32
    pendingDeferred int32
    deferredResults chan graphql.DeferredResult
}

func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) {
    atomic.AddInt32(&ec.pendingDeferred, 1)
    go func() {
        ctx := graphql.WithFreshResponseContext(dg.Context)
        dg.FieldSet.Dispatch(ctx)
        ds := graphql.DeferredResult{
            Path:   dg.Path,
            Label:  dg.Label,
            Result: dg.FieldSet,
            Errors: graphql.GetErrors(ctx),
        }
        // null fields should bubble up
        if dg.FieldSet.Invalids > 0 {
            ds.Result = graphql.Null
        }
        ec.deferredResults <- ds
    }()
}

func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
    if ec.DisableIntrospection {
        return nil, errors.New("introspection disabled")
    }
    return introspection.WrapSchema(parsedSchema), nil
}

func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
    if ec.DisableIntrospection {
        return nil, errors.New("introspection disabled")
    }
    return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
}

var sources = []*ast.Source{
    {Name: "../schema/directives.graphql", Input: `directive @goModel(model: String, models: [String!]) on OBJECT
  | INPUT_OBJECT
  | SCALAR
  | ENUM
  | INTERFACE
  | UNION

directive @goField(forceResolver: Boolean, name: String) on INPUT_FIELD_DEFINITION
  | FIELD_DEFINITION
`, BuiltIn: false},
    {Name: "../schema/queries.graphql", Input: `type Query {
  # returns all logs that match the given filter
  logs(
    contract_address: String
    chain_id: Int!
    block_number: Int
    tx_hash: String
    tx_index: Int
    block_hash: String
    index: Int
    confirmed: Boolean
    page: Int!
  ): [Log]
  # returns all logs that match the given filter and range
  logsRange(
    contract_address: String
    chain_id: Int!
    block_number: Int
    tx_hash: String
    tx_index: Int
    block_hash: String
    index: Int
    confirmed: Boolean
    start_block: Int!
    end_block: Int!
    page: Int!
    asc: Boolean = False
  ): [Log]
  # returns all receipts that match the given filter
  receipts(
    chain_id: Int!
    tx_hash: String
    contract_address: String
    block_hash: String
    block_number: Int
    tx_index: Int
    confirmed: Boolean
    page: Int!
  ): [Receipt]
  # returns all receipts that match the given filter and range
  receiptsRange(
    chain_id: Int!
    tx_hash: String
    contract_address: String
    block_hash: String
    block_number: Int
    tx_index: Int
    confirmed: Boolean
    start_block: Int!
    end_block: Int!
    page: Int!
  ): [Receipt]
  # returns all transactions that match the given filter
  transactions(
    tx_hash: String
    chain_id: Int!
    block_number: Int
    block_hash: String
    confirmed: Boolean
    page: Int!
  ): [Transaction]
  # returns all transactions that match the given filter and range
  transactionsRange(
    tx_hash: String
    chain_id: Int!
    block_number: Int
    block_hash: String
    confirmed: Boolean
    start_block: Int!
    end_block: Int!
    page: Int!
  ): [Transaction]
  # returns the timestamp of a given block for a chain
  blockTime(
    chain_id: Int!
    block_number: Int!
  ): Int
  # returns the last block number that has a block time for a chain
  lastStoredBlockNumber(
    chain_id: Int!
  ): Int
  # returns the first block number that has a block time for a chain
  firstStoredBlockNumber(
    chain_id: Int!
  ): Int
  # returns the last confirmed block number for a chain
  lastConfirmedBlockNumber(
    chain_id: Int!
  ): Int
  # returns the sender of a transaction
  txSender(
    tx_hash: String!
    chain_id: Int!
  ): String
  # returns the last indexed block number for a chain
  lastIndexed(
    contract_address: String!
    chain_id: Int!
  ): Int
  # returns the amount of logs stored per contract address
  logCount(
  contract_address: String!
  chain_id: Int!
  ): Int
  # returns the amount of receipts stored per contract address
  receiptCount(
    chain_id: Int!
  ): Int
  # returns the amount of block times stored per chain
  blockTimeCount(
    chain_id: Int!
  ): Int
  # returns all logs that match the given filter and range (including from the unconfirmed logs table)
  logsAtHeadRange(
    contract_address: String
    chain_id: Int!
    block_number: Int
    tx_hash: String
    tx_index: Int
    block_hash: String
    index: Int
    confirmed: Boolean
    start_block: Int!
    end_block: Int!
    page: Int!
  ): [Log]
  # returns all receipts that match the given filter and range (including from the unconfirmed receipts table)
  receiptsAtHeadRange(
    chain_id: Int!
    tx_hash: String
    contract_address: String
    block_hash: String
    block_number: Int
    tx_index: Int
    confirmed: Boolean
    start_block: Int!
    end_block: Int!
    page: Int!
  ): [Receipt]
  # returns all transactions that match the given filter and range (including from the unconfirmed transactions table)
  transactionsAtHeadRange(
    tx_hash: String
    chain_id: Int!
    block_number: Int
    block_hash: String
    confirmed: Boolean
    start_block: Int!
    end_block: Int!
    last_indexed: Int!
    page: Int!
  ): [Transaction]


}
`, BuiltIn: false},
    {Name: "../schema/types.graphql", Input: `scalar JSON

type Receipt {
  chain_id: Int!
  type: Int!
  post_state: String!
  status: Int!
  cumulative_gas_used: Int!
  bloom: String!
  tx_hash: String!
  contract_address: String!
  gas_used: Int!
  block_number: Int!
  transaction_index: Int!
  page: Int!
  logs: [Log!] @goField(forceResolver:true)
  transaction: Transaction! @goField(forceResolver:true)
  json: JSON! @goField(forceResolver:true)
}

type Transaction {
  chain_id: Int!
  tx_hash: String!
  protected: Boolean!
  type:  Int!
  data: String!
  gas: Int!
  gas_price: Int!
  gas_tip_cap: String!
  gas_fee_cap: String!
  value: String!
  nonce: Int!
  to: String!
  page: Int!
  sender: String!
  timestamp: Int!
  logs: [Log!] @goField(forceResolver: true)
  receipt: Receipt! @goField(forceResolver: true)
  json: JSON! @goField(forceResolver:true)
}

type Log {
  contract_address: String!
  chain_id: Int!
  topics: [String!]!
  data: String!
  block_number: Int!
  tx_hash: String!
  tx_index: Int!
  block_hash: String!
  index: Int!
  removed: Boolean!
  page: Int!
  transaction: Transaction! @goField(forceResolver: true)
  receipt: Receipt! @goField(forceResolver: true)
  json: JSON! @goField(forceResolver:true)
}

type BlockTime {
  chain_id: Int!
  block_number: Int!
  timestamp: Int!

}
`, BuiltIn: false},
}
var parsedSchema = gqlparser.MustLoadSchema(sources...)

// endregion ************************** generated!.gotpl **************************

// region    ***************************** args.gotpl *****************************

func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 string
    if tmp, ok := rawArgs["name"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
        arg0, err = ec.unmarshalNString2string(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["name"] = arg0
    return args, nil
}

func (ec *executionContext) field_Query_blockTimeCount_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg0, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg0
    return args, nil
}

func (ec *executionContext) field_Query_blockTime_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg0, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg0
    var arg1 int
    if tmp, ok := rawArgs["block_number"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_number"))
        arg1, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_number"] = arg1
    return args, nil
}

func (ec *executionContext) field_Query_firstStoredBlockNumber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg0, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg0
    return args, nil
}

func (ec *executionContext) field_Query_lastConfirmedBlockNumber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg0, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg0
    return args, nil
}

func (ec *executionContext) field_Query_lastIndexed_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 string
    if tmp, ok := rawArgs["contract_address"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contract_address"))
        arg0, err = ec.unmarshalNString2string(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["contract_address"] = arg0
    var arg1 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg1, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg1
    return args, nil
}

func (ec *executionContext) field_Query_lastStoredBlockNumber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg0, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg0
    return args, nil
}

func (ec *executionContext) field_Query_logCount_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 string
    if tmp, ok := rawArgs["contract_address"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contract_address"))
        arg0, err = ec.unmarshalNString2string(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["contract_address"] = arg0
    var arg1 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg1, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg1
    return args, nil
}

func (ec *executionContext) field_Query_logsAtHeadRange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 *string
    if tmp, ok := rawArgs["contract_address"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contract_address"))
        arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["contract_address"] = arg0
    var arg1 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg1, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg1
    var arg2 *int
    if tmp, ok := rawArgs["block_number"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_number"))
        arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_number"] = arg2
    var arg3 *string
    if tmp, ok := rawArgs["tx_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_hash"))
        arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_hash"] = arg3
    var arg4 *int
    if tmp, ok := rawArgs["tx_index"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_index"))
        arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_index"] = arg4
    var arg5 *string
    if tmp, ok := rawArgs["block_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_hash"))
        arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_hash"] = arg5
    var arg6 *int
    if tmp, ok := rawArgs["index"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("index"))
        arg6, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["index"] = arg6
    var arg7 *bool
    if tmp, ok := rawArgs["confirmed"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("confirmed"))
        arg7, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["confirmed"] = arg7
    var arg8 int
    if tmp, ok := rawArgs["start_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_block"))
        arg8, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["start_block"] = arg8
    var arg9 int
    if tmp, ok := rawArgs["end_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_block"))
        arg9, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["end_block"] = arg9
    var arg10 int
    if tmp, ok := rawArgs["page"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page"))
        arg10, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["page"] = arg10
    return args, nil
}

func (ec *executionContext) field_Query_logsRange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 *string
    if tmp, ok := rawArgs["contract_address"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contract_address"))
        arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["contract_address"] = arg0
    var arg1 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg1, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg1
    var arg2 *int
    if tmp, ok := rawArgs["block_number"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_number"))
        arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_number"] = arg2
    var arg3 *string
    if tmp, ok := rawArgs["tx_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_hash"))
        arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_hash"] = arg3
    var arg4 *int
    if tmp, ok := rawArgs["tx_index"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_index"))
        arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_index"] = arg4
    var arg5 *string
    if tmp, ok := rawArgs["block_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_hash"))
        arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_hash"] = arg5
    var arg6 *int
    if tmp, ok := rawArgs["index"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("index"))
        arg6, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["index"] = arg6
    var arg7 *bool
    if tmp, ok := rawArgs["confirmed"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("confirmed"))
        arg7, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["confirmed"] = arg7
    var arg8 int
    if tmp, ok := rawArgs["start_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_block"))
        arg8, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["start_block"] = arg8
    var arg9 int
    if tmp, ok := rawArgs["end_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_block"))
        arg9, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["end_block"] = arg9
    var arg10 int
    if tmp, ok := rawArgs["page"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page"))
        arg10, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["page"] = arg10
    var arg11 *bool
    if tmp, ok := rawArgs["asc"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("asc"))
        arg11, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["asc"] = arg11
    return args, nil
}

func (ec *executionContext) field_Query_logs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 *string
    if tmp, ok := rawArgs["contract_address"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contract_address"))
        arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["contract_address"] = arg0
    var arg1 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg1, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg1
    var arg2 *int
    if tmp, ok := rawArgs["block_number"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_number"))
        arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_number"] = arg2
    var arg3 *string
    if tmp, ok := rawArgs["tx_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_hash"))
        arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_hash"] = arg3
    var arg4 *int
    if tmp, ok := rawArgs["tx_index"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_index"))
        arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_index"] = arg4
    var arg5 *string
    if tmp, ok := rawArgs["block_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_hash"))
        arg5, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_hash"] = arg5
    var arg6 *int
    if tmp, ok := rawArgs["index"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("index"))
        arg6, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["index"] = arg6
    var arg7 *bool
    if tmp, ok := rawArgs["confirmed"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("confirmed"))
        arg7, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["confirmed"] = arg7
    var arg8 int
    if tmp, ok := rawArgs["page"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page"))
        arg8, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["page"] = arg8
    return args, nil
}

func (ec *executionContext) field_Query_receiptCount_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg0, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg0
    return args, nil
}

func (ec *executionContext) field_Query_receiptsAtHeadRange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg0, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg0
    var arg1 *string
    if tmp, ok := rawArgs["tx_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_hash"))
        arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_hash"] = arg1
    var arg2 *string
    if tmp, ok := rawArgs["contract_address"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contract_address"))
        arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["contract_address"] = arg2
    var arg3 *string
    if tmp, ok := rawArgs["block_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_hash"))
        arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_hash"] = arg3
    var arg4 *int
    if tmp, ok := rawArgs["block_number"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_number"))
        arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_number"] = arg4
    var arg5 *int
    if tmp, ok := rawArgs["tx_index"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_index"))
        arg5, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_index"] = arg5
    var arg6 *bool
    if tmp, ok := rawArgs["confirmed"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("confirmed"))
        arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["confirmed"] = arg6
    var arg7 int
    if tmp, ok := rawArgs["start_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_block"))
        arg7, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["start_block"] = arg7
    var arg8 int
    if tmp, ok := rawArgs["end_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_block"))
        arg8, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["end_block"] = arg8
    var arg9 int
    if tmp, ok := rawArgs["page"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page"))
        arg9, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["page"] = arg9
    return args, nil
}

func (ec *executionContext) field_Query_receiptsRange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg0, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg0
    var arg1 *string
    if tmp, ok := rawArgs["tx_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_hash"))
        arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_hash"] = arg1
    var arg2 *string
    if tmp, ok := rawArgs["contract_address"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contract_address"))
        arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["contract_address"] = arg2
    var arg3 *string
    if tmp, ok := rawArgs["block_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_hash"))
        arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_hash"] = arg3
    var arg4 *int
    if tmp, ok := rawArgs["block_number"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_number"))
        arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_number"] = arg4
    var arg5 *int
    if tmp, ok := rawArgs["tx_index"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_index"))
        arg5, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_index"] = arg5
    var arg6 *bool
    if tmp, ok := rawArgs["confirmed"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("confirmed"))
        arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["confirmed"] = arg6
    var arg7 int
    if tmp, ok := rawArgs["start_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_block"))
        arg7, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["start_block"] = arg7
    var arg8 int
    if tmp, ok := rawArgs["end_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_block"))
        arg8, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["end_block"] = arg8
    var arg9 int
    if tmp, ok := rawArgs["page"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page"))
        arg9, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["page"] = arg9
    return args, nil
}

func (ec *executionContext) field_Query_receipts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg0, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg0
    var arg1 *string
    if tmp, ok := rawArgs["tx_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_hash"))
        arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_hash"] = arg1
    var arg2 *string
    if tmp, ok := rawArgs["contract_address"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contract_address"))
        arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["contract_address"] = arg2
    var arg3 *string
    if tmp, ok := rawArgs["block_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_hash"))
        arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_hash"] = arg3
    var arg4 *int
    if tmp, ok := rawArgs["block_number"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_number"))
        arg4, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_number"] = arg4
    var arg5 *int
    if tmp, ok := rawArgs["tx_index"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_index"))
        arg5, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_index"] = arg5
    var arg6 *bool
    if tmp, ok := rawArgs["confirmed"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("confirmed"))
        arg6, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["confirmed"] = arg6
    var arg7 int
    if tmp, ok := rawArgs["page"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page"))
        arg7, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["page"] = arg7
    return args, nil
}

func (ec *executionContext) field_Query_transactionsAtHeadRange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 *string
    if tmp, ok := rawArgs["tx_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_hash"))
        arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_hash"] = arg0
    var arg1 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg1, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg1
    var arg2 *int
    if tmp, ok := rawArgs["block_number"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_number"))
        arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_number"] = arg2
    var arg3 *string
    if tmp, ok := rawArgs["block_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_hash"))
        arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_hash"] = arg3
    var arg4 *bool
    if tmp, ok := rawArgs["confirmed"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("confirmed"))
        arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["confirmed"] = arg4
    var arg5 int
    if tmp, ok := rawArgs["start_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_block"))
        arg5, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["start_block"] = arg5
    var arg6 int
    if tmp, ok := rawArgs["end_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_block"))
        arg6, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["end_block"] = arg6
    var arg7 int
    if tmp, ok := rawArgs["last_indexed"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last_indexed"))
        arg7, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["last_indexed"] = arg7
    var arg8 int
    if tmp, ok := rawArgs["page"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page"))
        arg8, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["page"] = arg8
    return args, nil
}

func (ec *executionContext) field_Query_transactionsRange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 *string
    if tmp, ok := rawArgs["tx_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_hash"))
        arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_hash"] = arg0
    var arg1 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg1, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg1
    var arg2 *int
    if tmp, ok := rawArgs["block_number"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_number"))
        arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_number"] = arg2
    var arg3 *string
    if tmp, ok := rawArgs["block_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_hash"))
        arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_hash"] = arg3
    var arg4 *bool
    if tmp, ok := rawArgs["confirmed"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("confirmed"))
        arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["confirmed"] = arg4
    var arg5 int
    if tmp, ok := rawArgs["start_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("start_block"))
        arg5, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["start_block"] = arg5
    var arg6 int
    if tmp, ok := rawArgs["end_block"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("end_block"))
        arg6, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["end_block"] = arg6
    var arg7 int
    if tmp, ok := rawArgs["page"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page"))
        arg7, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["page"] = arg7
    return args, nil
}

func (ec *executionContext) field_Query_transactions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 *string
    if tmp, ok := rawArgs["tx_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_hash"))
        arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_hash"] = arg0
    var arg1 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg1, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg1
    var arg2 *int
    if tmp, ok := rawArgs["block_number"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_number"))
        arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_number"] = arg2
    var arg3 *string
    if tmp, ok := rawArgs["block_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("block_hash"))
        arg3, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["block_hash"] = arg3
    var arg4 *bool
    if tmp, ok := rawArgs["confirmed"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("confirmed"))
        arg4, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["confirmed"] = arg4
    var arg5 int
    if tmp, ok := rawArgs["page"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("page"))
        arg5, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["page"] = arg5
    return args, nil
}

func (ec *executionContext) field_Query_txSender_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 string
    if tmp, ok := rawArgs["tx_hash"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tx_hash"))
        arg0, err = ec.unmarshalNString2string(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["tx_hash"] = arg0
    var arg1 int
    if tmp, ok := rawArgs["chain_id"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chain_id"))
        arg1, err = ec.unmarshalNInt2int(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["chain_id"] = arg1
    return args, nil
}

func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 bool
    if tmp, ok := rawArgs["includeDeprecated"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
        arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["includeDeprecated"] = arg0
    return args, nil
}

func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
    var err error
    args := map[string]interface{}{}
    var arg0 bool
    if tmp, ok := rawArgs["includeDeprecated"]; ok {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
        arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
        if err != nil {
            return nil, err
        }
    }
    args["includeDeprecated"] = arg0
    return args, nil
}

// endregion ***************************** args.gotpl *****************************

// region    ************************** directives.gotpl **************************

// endregion ************************** directives.gotpl **************************

// region    **************************** field.gotpl *****************************

func (ec *executionContext) _BlockTime_chain_id(ctx context.Context, field graphql.CollectedField, obj *model.BlockTime) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_BlockTime_chain_id(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.ChainID, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_BlockTime_chain_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "BlockTime",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _BlockTime_block_number(ctx context.Context, field graphql.CollectedField, obj *model.BlockTime) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_BlockTime_block_number(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.BlockNumber, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_BlockTime_block_number(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "BlockTime",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _BlockTime_timestamp(ctx context.Context, field graphql.CollectedField, obj *model.BlockTime) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_BlockTime_timestamp(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Timestamp, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_BlockTime_timestamp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "BlockTime",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_contract_address(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_contract_address(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.ContractAddress, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_contract_address(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_chain_id(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_chain_id(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.ChainID, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_chain_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_topics(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_topics(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Topics, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.([]string)
    fc.Result = res
    return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_topics(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_data(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_data(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Data, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_data(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_block_number(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_block_number(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.BlockNumber, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_block_number(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_tx_hash(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_tx_hash(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.TxHash, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_tx_hash(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_tx_index(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_tx_index(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.TxIndex, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_tx_index(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_block_hash(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_block_hash(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.BlockHash, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_block_hash(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_index(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_index(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Index, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_index(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_removed(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_removed(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Removed, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(bool)
    fc.Result = res
    return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_removed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Boolean does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_page(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_page(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Page, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_transaction(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_transaction(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Log().Transaction(rctx, obj)
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(*model.Transaction)
    fc.Result = res
    return ec.marshalNTransaction2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐTransaction(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_transaction(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "chain_id":
                return ec.fieldContext_Transaction_chain_id(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Transaction_tx_hash(ctx, field)
            case "protected":
                return ec.fieldContext_Transaction_protected(ctx, field)
            case "type":
                return ec.fieldContext_Transaction_type(ctx, field)
            case "data":
                return ec.fieldContext_Transaction_data(ctx, field)
            case "gas":
                return ec.fieldContext_Transaction_gas(ctx, field)
            case "gas_price":
                return ec.fieldContext_Transaction_gas_price(ctx, field)
            case "gas_tip_cap":
                return ec.fieldContext_Transaction_gas_tip_cap(ctx, field)
            case "gas_fee_cap":
                return ec.fieldContext_Transaction_gas_fee_cap(ctx, field)
            case "value":
                return ec.fieldContext_Transaction_value(ctx, field)
            case "nonce":
                return ec.fieldContext_Transaction_nonce(ctx, field)
            case "to":
                return ec.fieldContext_Transaction_to(ctx, field)
            case "page":
                return ec.fieldContext_Transaction_page(ctx, field)
            case "sender":
                return ec.fieldContext_Transaction_sender(ctx, field)
            case "timestamp":
                return ec.fieldContext_Transaction_timestamp(ctx, field)
            case "logs":
                return ec.fieldContext_Transaction_logs(ctx, field)
            case "receipt":
                return ec.fieldContext_Transaction_receipt(ctx, field)
            case "json":
                return ec.fieldContext_Transaction_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Transaction", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_receipt(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_receipt(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Log().Receipt(rctx, obj)
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(*model.Receipt)
    fc.Result = res
    return ec.marshalNReceipt2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐReceipt(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_receipt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "chain_id":
                return ec.fieldContext_Receipt_chain_id(ctx, field)
            case "type":
                return ec.fieldContext_Receipt_type(ctx, field)
            case "post_state":
                return ec.fieldContext_Receipt_post_state(ctx, field)
            case "status":
                return ec.fieldContext_Receipt_status(ctx, field)
            case "cumulative_gas_used":
                return ec.fieldContext_Receipt_cumulative_gas_used(ctx, field)
            case "bloom":
                return ec.fieldContext_Receipt_bloom(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Receipt_tx_hash(ctx, field)
            case "contract_address":
                return ec.fieldContext_Receipt_contract_address(ctx, field)
            case "gas_used":
                return ec.fieldContext_Receipt_gas_used(ctx, field)
            case "block_number":
                return ec.fieldContext_Receipt_block_number(ctx, field)
            case "transaction_index":
                return ec.fieldContext_Receipt_transaction_index(ctx, field)
            case "page":
                return ec.fieldContext_Receipt_page(ctx, field)
            case "logs":
                return ec.fieldContext_Receipt_logs(ctx, field)
            case "transaction":
                return ec.fieldContext_Receipt_transaction(ctx, field)
            case "json":
                return ec.fieldContext_Receipt_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Receipt", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) _Log_json(ctx context.Context, field graphql.CollectedField, obj *model.Log) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Log_json(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Log().JSON(rctx, obj)
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(types.JSON)
    fc.Result = res
    return ec.marshalNJSON2githubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋtypesᚐJSON(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Log_json(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Log",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type JSON does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Query_logs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_logs(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().Logs(rctx, fc.Args["contract_address"].(*string), fc.Args["chain_id"].(int), fc.Args["block_number"].(*int), fc.Args["tx_hash"].(*string), fc.Args["tx_index"].(*int), fc.Args["block_hash"].(*string), fc.Args["index"].(*int), fc.Args["confirmed"].(*bool), fc.Args["page"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]*model.Log)
    fc.Result = res
    return ec.marshalOLog2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐLog(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_logs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "contract_address":
                return ec.fieldContext_Log_contract_address(ctx, field)
            case "chain_id":
                return ec.fieldContext_Log_chain_id(ctx, field)
            case "topics":
                return ec.fieldContext_Log_topics(ctx, field)
            case "data":
                return ec.fieldContext_Log_data(ctx, field)
            case "block_number":
                return ec.fieldContext_Log_block_number(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Log_tx_hash(ctx, field)
            case "tx_index":
                return ec.fieldContext_Log_tx_index(ctx, field)
            case "block_hash":
                return ec.fieldContext_Log_block_hash(ctx, field)
            case "index":
                return ec.fieldContext_Log_index(ctx, field)
            case "removed":
                return ec.fieldContext_Log_removed(ctx, field)
            case "page":
                return ec.fieldContext_Log_page(ctx, field)
            case "transaction":
                return ec.fieldContext_Log_transaction(ctx, field)
            case "receipt":
                return ec.fieldContext_Log_receipt(ctx, field)
            case "json":
                return ec.fieldContext_Log_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Log", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_logs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_logsRange(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_logsRange(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().LogsRange(rctx, fc.Args["contract_address"].(*string), fc.Args["chain_id"].(int), fc.Args["block_number"].(*int), fc.Args["tx_hash"].(*string), fc.Args["tx_index"].(*int), fc.Args["block_hash"].(*string), fc.Args["index"].(*int), fc.Args["confirmed"].(*bool), fc.Args["start_block"].(int), fc.Args["end_block"].(int), fc.Args["page"].(int), fc.Args["asc"].(*bool))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]*model.Log)
    fc.Result = res
    return ec.marshalOLog2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐLog(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_logsRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "contract_address":
                return ec.fieldContext_Log_contract_address(ctx, field)
            case "chain_id":
                return ec.fieldContext_Log_chain_id(ctx, field)
            case "topics":
                return ec.fieldContext_Log_topics(ctx, field)
            case "data":
                return ec.fieldContext_Log_data(ctx, field)
            case "block_number":
                return ec.fieldContext_Log_block_number(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Log_tx_hash(ctx, field)
            case "tx_index":
                return ec.fieldContext_Log_tx_index(ctx, field)
            case "block_hash":
                return ec.fieldContext_Log_block_hash(ctx, field)
            case "index":
                return ec.fieldContext_Log_index(ctx, field)
            case "removed":
                return ec.fieldContext_Log_removed(ctx, field)
            case "page":
                return ec.fieldContext_Log_page(ctx, field)
            case "transaction":
                return ec.fieldContext_Log_transaction(ctx, field)
            case "receipt":
                return ec.fieldContext_Log_receipt(ctx, field)
            case "json":
                return ec.fieldContext_Log_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Log", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_logsRange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_receipts(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_receipts(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().Receipts(rctx, fc.Args["chain_id"].(int), fc.Args["tx_hash"].(*string), fc.Args["contract_address"].(*string), fc.Args["block_hash"].(*string), fc.Args["block_number"].(*int), fc.Args["tx_index"].(*int), fc.Args["confirmed"].(*bool), fc.Args["page"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]*model.Receipt)
    fc.Result = res
    return ec.marshalOReceipt2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐReceipt(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_receipts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "chain_id":
                return ec.fieldContext_Receipt_chain_id(ctx, field)
            case "type":
                return ec.fieldContext_Receipt_type(ctx, field)
            case "post_state":
                return ec.fieldContext_Receipt_post_state(ctx, field)
            case "status":
                return ec.fieldContext_Receipt_status(ctx, field)
            case "cumulative_gas_used":
                return ec.fieldContext_Receipt_cumulative_gas_used(ctx, field)
            case "bloom":
                return ec.fieldContext_Receipt_bloom(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Receipt_tx_hash(ctx, field)
            case "contract_address":
                return ec.fieldContext_Receipt_contract_address(ctx, field)
            case "gas_used":
                return ec.fieldContext_Receipt_gas_used(ctx, field)
            case "block_number":
                return ec.fieldContext_Receipt_block_number(ctx, field)
            case "transaction_index":
                return ec.fieldContext_Receipt_transaction_index(ctx, field)
            case "page":
                return ec.fieldContext_Receipt_page(ctx, field)
            case "logs":
                return ec.fieldContext_Receipt_logs(ctx, field)
            case "transaction":
                return ec.fieldContext_Receipt_transaction(ctx, field)
            case "json":
                return ec.fieldContext_Receipt_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Receipt", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_receipts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_receiptsRange(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_receiptsRange(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().ReceiptsRange(rctx, fc.Args["chain_id"].(int), fc.Args["tx_hash"].(*string), fc.Args["contract_address"].(*string), fc.Args["block_hash"].(*string), fc.Args["block_number"].(*int), fc.Args["tx_index"].(*int), fc.Args["confirmed"].(*bool), fc.Args["start_block"].(int), fc.Args["end_block"].(int), fc.Args["page"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]*model.Receipt)
    fc.Result = res
    return ec.marshalOReceipt2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐReceipt(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_receiptsRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "chain_id":
                return ec.fieldContext_Receipt_chain_id(ctx, field)
            case "type":
                return ec.fieldContext_Receipt_type(ctx, field)
            case "post_state":
                return ec.fieldContext_Receipt_post_state(ctx, field)
            case "status":
                return ec.fieldContext_Receipt_status(ctx, field)
            case "cumulative_gas_used":
                return ec.fieldContext_Receipt_cumulative_gas_used(ctx, field)
            case "bloom":
                return ec.fieldContext_Receipt_bloom(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Receipt_tx_hash(ctx, field)
            case "contract_address":
                return ec.fieldContext_Receipt_contract_address(ctx, field)
            case "gas_used":
                return ec.fieldContext_Receipt_gas_used(ctx, field)
            case "block_number":
                return ec.fieldContext_Receipt_block_number(ctx, field)
            case "transaction_index":
                return ec.fieldContext_Receipt_transaction_index(ctx, field)
            case "page":
                return ec.fieldContext_Receipt_page(ctx, field)
            case "logs":
                return ec.fieldContext_Receipt_logs(ctx, field)
            case "transaction":
                return ec.fieldContext_Receipt_transaction(ctx, field)
            case "json":
                return ec.fieldContext_Receipt_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Receipt", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_receiptsRange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_transactions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_transactions(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().Transactions(rctx, fc.Args["tx_hash"].(*string), fc.Args["chain_id"].(int), fc.Args["block_number"].(*int), fc.Args["block_hash"].(*string), fc.Args["confirmed"].(*bool), fc.Args["page"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]*model.Transaction)
    fc.Result = res
    return ec.marshalOTransaction2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐTransaction(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_transactions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "chain_id":
                return ec.fieldContext_Transaction_chain_id(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Transaction_tx_hash(ctx, field)
            case "protected":
                return ec.fieldContext_Transaction_protected(ctx, field)
            case "type":
                return ec.fieldContext_Transaction_type(ctx, field)
            case "data":
                return ec.fieldContext_Transaction_data(ctx, field)
            case "gas":
                return ec.fieldContext_Transaction_gas(ctx, field)
            case "gas_price":
                return ec.fieldContext_Transaction_gas_price(ctx, field)
            case "gas_tip_cap":
                return ec.fieldContext_Transaction_gas_tip_cap(ctx, field)
            case "gas_fee_cap":
                return ec.fieldContext_Transaction_gas_fee_cap(ctx, field)
            case "value":
                return ec.fieldContext_Transaction_value(ctx, field)
            case "nonce":
                return ec.fieldContext_Transaction_nonce(ctx, field)
            case "to":
                return ec.fieldContext_Transaction_to(ctx, field)
            case "page":
                return ec.fieldContext_Transaction_page(ctx, field)
            case "sender":
                return ec.fieldContext_Transaction_sender(ctx, field)
            case "timestamp":
                return ec.fieldContext_Transaction_timestamp(ctx, field)
            case "logs":
                return ec.fieldContext_Transaction_logs(ctx, field)
            case "receipt":
                return ec.fieldContext_Transaction_receipt(ctx, field)
            case "json":
                return ec.fieldContext_Transaction_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Transaction", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_transactions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_transactionsRange(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_transactionsRange(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().TransactionsRange(rctx, fc.Args["tx_hash"].(*string), fc.Args["chain_id"].(int), fc.Args["block_number"].(*int), fc.Args["block_hash"].(*string), fc.Args["confirmed"].(*bool), fc.Args["start_block"].(int), fc.Args["end_block"].(int), fc.Args["page"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]*model.Transaction)
    fc.Result = res
    return ec.marshalOTransaction2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐTransaction(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_transactionsRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "chain_id":
                return ec.fieldContext_Transaction_chain_id(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Transaction_tx_hash(ctx, field)
            case "protected":
                return ec.fieldContext_Transaction_protected(ctx, field)
            case "type":
                return ec.fieldContext_Transaction_type(ctx, field)
            case "data":
                return ec.fieldContext_Transaction_data(ctx, field)
            case "gas":
                return ec.fieldContext_Transaction_gas(ctx, field)
            case "gas_price":
                return ec.fieldContext_Transaction_gas_price(ctx, field)
            case "gas_tip_cap":
                return ec.fieldContext_Transaction_gas_tip_cap(ctx, field)
            case "gas_fee_cap":
                return ec.fieldContext_Transaction_gas_fee_cap(ctx, field)
            case "value":
                return ec.fieldContext_Transaction_value(ctx, field)
            case "nonce":
                return ec.fieldContext_Transaction_nonce(ctx, field)
            case "to":
                return ec.fieldContext_Transaction_to(ctx, field)
            case "page":
                return ec.fieldContext_Transaction_page(ctx, field)
            case "sender":
                return ec.fieldContext_Transaction_sender(ctx, field)
            case "timestamp":
                return ec.fieldContext_Transaction_timestamp(ctx, field)
            case "logs":
                return ec.fieldContext_Transaction_logs(ctx, field)
            case "receipt":
                return ec.fieldContext_Transaction_receipt(ctx, field)
            case "json":
                return ec.fieldContext_Transaction_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Transaction", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_transactionsRange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_blockTime(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_blockTime(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().BlockTime(rctx, fc.Args["chain_id"].(int), fc.Args["block_number"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*int)
    fc.Result = res
    return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_blockTime(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_blockTime_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_lastStoredBlockNumber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_lastStoredBlockNumber(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().LastStoredBlockNumber(rctx, fc.Args["chain_id"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*int)
    fc.Result = res
    return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_lastStoredBlockNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_lastStoredBlockNumber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_firstStoredBlockNumber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_firstStoredBlockNumber(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().FirstStoredBlockNumber(rctx, fc.Args["chain_id"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*int)
    fc.Result = res
    return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_firstStoredBlockNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_firstStoredBlockNumber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_lastConfirmedBlockNumber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_lastConfirmedBlockNumber(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().LastConfirmedBlockNumber(rctx, fc.Args["chain_id"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*int)
    fc.Result = res
    return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_lastConfirmedBlockNumber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_lastConfirmedBlockNumber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_txSender(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_txSender(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().TxSender(rctx, fc.Args["tx_hash"].(string), fc.Args["chain_id"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_txSender(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_txSender_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_lastIndexed(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_lastIndexed(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().LastIndexed(rctx, fc.Args["contract_address"].(string), fc.Args["chain_id"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*int)
    fc.Result = res
    return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_lastIndexed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_lastIndexed_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_logCount(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_logCount(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().LogCount(rctx, fc.Args["contract_address"].(string), fc.Args["chain_id"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*int)
    fc.Result = res
    return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_logCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_logCount_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_receiptCount(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_receiptCount(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().ReceiptCount(rctx, fc.Args["chain_id"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*int)
    fc.Result = res
    return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_receiptCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_receiptCount_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_blockTimeCount(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_blockTimeCount(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().BlockTimeCount(rctx, fc.Args["chain_id"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*int)
    fc.Result = res
    return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_blockTimeCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_blockTimeCount_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_logsAtHeadRange(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_logsAtHeadRange(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().LogsAtHeadRange(rctx, fc.Args["contract_address"].(*string), fc.Args["chain_id"].(int), fc.Args["block_number"].(*int), fc.Args["tx_hash"].(*string), fc.Args["tx_index"].(*int), fc.Args["block_hash"].(*string), fc.Args["index"].(*int), fc.Args["confirmed"].(*bool), fc.Args["start_block"].(int), fc.Args["end_block"].(int), fc.Args["page"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]*model.Log)
    fc.Result = res
    return ec.marshalOLog2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐLog(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_logsAtHeadRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "contract_address":
                return ec.fieldContext_Log_contract_address(ctx, field)
            case "chain_id":
                return ec.fieldContext_Log_chain_id(ctx, field)
            case "topics":
                return ec.fieldContext_Log_topics(ctx, field)
            case "data":
                return ec.fieldContext_Log_data(ctx, field)
            case "block_number":
                return ec.fieldContext_Log_block_number(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Log_tx_hash(ctx, field)
            case "tx_index":
                return ec.fieldContext_Log_tx_index(ctx, field)
            case "block_hash":
                return ec.fieldContext_Log_block_hash(ctx, field)
            case "index":
                return ec.fieldContext_Log_index(ctx, field)
            case "removed":
                return ec.fieldContext_Log_removed(ctx, field)
            case "page":
                return ec.fieldContext_Log_page(ctx, field)
            case "transaction":
                return ec.fieldContext_Log_transaction(ctx, field)
            case "receipt":
                return ec.fieldContext_Log_receipt(ctx, field)
            case "json":
                return ec.fieldContext_Log_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Log", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_logsAtHeadRange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_receiptsAtHeadRange(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_receiptsAtHeadRange(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().ReceiptsAtHeadRange(rctx, fc.Args["chain_id"].(int), fc.Args["tx_hash"].(*string), fc.Args["contract_address"].(*string), fc.Args["block_hash"].(*string), fc.Args["block_number"].(*int), fc.Args["tx_index"].(*int), fc.Args["confirmed"].(*bool), fc.Args["start_block"].(int), fc.Args["end_block"].(int), fc.Args["page"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]*model.Receipt)
    fc.Result = res
    return ec.marshalOReceipt2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐReceipt(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_receiptsAtHeadRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "chain_id":
                return ec.fieldContext_Receipt_chain_id(ctx, field)
            case "type":
                return ec.fieldContext_Receipt_type(ctx, field)
            case "post_state":
                return ec.fieldContext_Receipt_post_state(ctx, field)
            case "status":
                return ec.fieldContext_Receipt_status(ctx, field)
            case "cumulative_gas_used":
                return ec.fieldContext_Receipt_cumulative_gas_used(ctx, field)
            case "bloom":
                return ec.fieldContext_Receipt_bloom(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Receipt_tx_hash(ctx, field)
            case "contract_address":
                return ec.fieldContext_Receipt_contract_address(ctx, field)
            case "gas_used":
                return ec.fieldContext_Receipt_gas_used(ctx, field)
            case "block_number":
                return ec.fieldContext_Receipt_block_number(ctx, field)
            case "transaction_index":
                return ec.fieldContext_Receipt_transaction_index(ctx, field)
            case "page":
                return ec.fieldContext_Receipt_page(ctx, field)
            case "logs":
                return ec.fieldContext_Receipt_logs(ctx, field)
            case "transaction":
                return ec.fieldContext_Receipt_transaction(ctx, field)
            case "json":
                return ec.fieldContext_Receipt_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Receipt", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_receiptsAtHeadRange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query_transactionsAtHeadRange(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query_transactionsAtHeadRange(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Query().TransactionsAtHeadRange(rctx, fc.Args["tx_hash"].(*string), fc.Args["chain_id"].(int), fc.Args["block_number"].(*int), fc.Args["block_hash"].(*string), fc.Args["confirmed"].(*bool), fc.Args["start_block"].(int), fc.Args["end_block"].(int), fc.Args["last_indexed"].(int), fc.Args["page"].(int))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]*model.Transaction)
    fc.Result = res
    return ec.marshalOTransaction2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐTransaction(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query_transactionsAtHeadRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "chain_id":
                return ec.fieldContext_Transaction_chain_id(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Transaction_tx_hash(ctx, field)
            case "protected":
                return ec.fieldContext_Transaction_protected(ctx, field)
            case "type":
                return ec.fieldContext_Transaction_type(ctx, field)
            case "data":
                return ec.fieldContext_Transaction_data(ctx, field)
            case "gas":
                return ec.fieldContext_Transaction_gas(ctx, field)
            case "gas_price":
                return ec.fieldContext_Transaction_gas_price(ctx, field)
            case "gas_tip_cap":
                return ec.fieldContext_Transaction_gas_tip_cap(ctx, field)
            case "gas_fee_cap":
                return ec.fieldContext_Transaction_gas_fee_cap(ctx, field)
            case "value":
                return ec.fieldContext_Transaction_value(ctx, field)
            case "nonce":
                return ec.fieldContext_Transaction_nonce(ctx, field)
            case "to":
                return ec.fieldContext_Transaction_to(ctx, field)
            case "page":
                return ec.fieldContext_Transaction_page(ctx, field)
            case "sender":
                return ec.fieldContext_Transaction_sender(ctx, field)
            case "timestamp":
                return ec.fieldContext_Transaction_timestamp(ctx, field)
            case "logs":
                return ec.fieldContext_Transaction_logs(ctx, field)
            case "receipt":
                return ec.fieldContext_Transaction_receipt(ctx, field)
            case "json":
                return ec.fieldContext_Transaction_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Transaction", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query_transactionsAtHeadRange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query___type(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.introspectType(fc.Args["name"].(string))
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*introspection.Type)
    fc.Result = res
    return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "kind":
                return ec.fieldContext___Type_kind(ctx, field)
            case "name":
                return ec.fieldContext___Type_name(ctx, field)
            case "description":
                return ec.fieldContext___Type_description(ctx, field)
            case "fields":
                return ec.fieldContext___Type_fields(ctx, field)
            case "interfaces":
                return ec.fieldContext___Type_interfaces(ctx, field)
            case "possibleTypes":
                return ec.fieldContext___Type_possibleTypes(ctx, field)
            case "enumValues":
                return ec.fieldContext___Type_enumValues(ctx, field)
            case "inputFields":
                return ec.fieldContext___Type_inputFields(ctx, field)
            case "ofType":
                return ec.fieldContext___Type_ofType(ctx, field)
            case "specifiedByURL":
                return ec.fieldContext___Type_specifiedByURL(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Query___schema(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.introspectSchema()
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*introspection.Schema)
    fc.Result = res
    return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Query___schema(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Query",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "description":
                return ec.fieldContext___Schema_description(ctx, field)
            case "types":
                return ec.fieldContext___Schema_types(ctx, field)
            case "queryType":
                return ec.fieldContext___Schema_queryType(ctx, field)
            case "mutationType":
                return ec.fieldContext___Schema_mutationType(ctx, field)
            case "subscriptionType":
                return ec.fieldContext___Schema_subscriptionType(ctx, field)
            case "directives":
                return ec.fieldContext___Schema_directives(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_chain_id(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_chain_id(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.ChainID, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_chain_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_type(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_type(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Type, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_post_state(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_post_state(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.PostState, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_post_state(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_status(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_status(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Status, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_status(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_cumulative_gas_used(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_cumulative_gas_used(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.CumulativeGasUsed, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_cumulative_gas_used(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_bloom(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_bloom(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Bloom, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_bloom(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_tx_hash(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_tx_hash(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.TxHash, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_tx_hash(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_contract_address(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_contract_address(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.ContractAddress, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_contract_address(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_gas_used(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_gas_used(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.GasUsed, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_gas_used(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_block_number(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_block_number(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.BlockNumber, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_block_number(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_transaction_index(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_transaction_index(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.TransactionIndex, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_transaction_index(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_page(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_page(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Page, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_logs(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_logs(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Receipt().Logs(rctx, obj)
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]*model.Log)
    fc.Result = res
    return ec.marshalOLog2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐLogᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_logs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "contract_address":
                return ec.fieldContext_Log_contract_address(ctx, field)
            case "chain_id":
                return ec.fieldContext_Log_chain_id(ctx, field)
            case "topics":
                return ec.fieldContext_Log_topics(ctx, field)
            case "data":
                return ec.fieldContext_Log_data(ctx, field)
            case "block_number":
                return ec.fieldContext_Log_block_number(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Log_tx_hash(ctx, field)
            case "tx_index":
                return ec.fieldContext_Log_tx_index(ctx, field)
            case "block_hash":
                return ec.fieldContext_Log_block_hash(ctx, field)
            case "index":
                return ec.fieldContext_Log_index(ctx, field)
            case "removed":
                return ec.fieldContext_Log_removed(ctx, field)
            case "page":
                return ec.fieldContext_Log_page(ctx, field)
            case "transaction":
                return ec.fieldContext_Log_transaction(ctx, field)
            case "receipt":
                return ec.fieldContext_Log_receipt(ctx, field)
            case "json":
                return ec.fieldContext_Log_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Log", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_transaction(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_transaction(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Receipt().Transaction(rctx, obj)
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(*model.Transaction)
    fc.Result = res
    return ec.marshalNTransaction2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐTransaction(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_transaction(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "chain_id":
                return ec.fieldContext_Transaction_chain_id(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Transaction_tx_hash(ctx, field)
            case "protected":
                return ec.fieldContext_Transaction_protected(ctx, field)
            case "type":
                return ec.fieldContext_Transaction_type(ctx, field)
            case "data":
                return ec.fieldContext_Transaction_data(ctx, field)
            case "gas":
                return ec.fieldContext_Transaction_gas(ctx, field)
            case "gas_price":
                return ec.fieldContext_Transaction_gas_price(ctx, field)
            case "gas_tip_cap":
                return ec.fieldContext_Transaction_gas_tip_cap(ctx, field)
            case "gas_fee_cap":
                return ec.fieldContext_Transaction_gas_fee_cap(ctx, field)
            case "value":
                return ec.fieldContext_Transaction_value(ctx, field)
            case "nonce":
                return ec.fieldContext_Transaction_nonce(ctx, field)
            case "to":
                return ec.fieldContext_Transaction_to(ctx, field)
            case "page":
                return ec.fieldContext_Transaction_page(ctx, field)
            case "sender":
                return ec.fieldContext_Transaction_sender(ctx, field)
            case "timestamp":
                return ec.fieldContext_Transaction_timestamp(ctx, field)
            case "logs":
                return ec.fieldContext_Transaction_logs(ctx, field)
            case "receipt":
                return ec.fieldContext_Transaction_receipt(ctx, field)
            case "json":
                return ec.fieldContext_Transaction_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Transaction", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) _Receipt_json(ctx context.Context, field graphql.CollectedField, obj *model.Receipt) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Receipt_json(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Receipt().JSON(rctx, obj)
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(types.JSON)
    fc.Result = res
    return ec.marshalNJSON2githubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋtypesᚐJSON(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Receipt_json(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Receipt",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type JSON does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_chain_id(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_chain_id(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.ChainID, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_chain_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_tx_hash(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_tx_hash(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.TxHash, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_tx_hash(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_protected(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_protected(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Protected, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(bool)
    fc.Result = res
    return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_protected(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Boolean does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_type(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_type(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Type, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_data(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_data(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Data, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_data(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_gas(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_gas(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Gas, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_gas(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_gas_price(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_gas_price(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.GasPrice, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_gas_price(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_gas_tip_cap(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_gas_tip_cap(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.GasTipCap, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_gas_tip_cap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_gas_fee_cap(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_gas_fee_cap(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.GasFeeCap, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_gas_fee_cap(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_value(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_value(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Value, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_value(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_nonce(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_nonce(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Nonce, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_nonce(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_to(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_to(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.To, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_to(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_page(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_page(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Page, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_page(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_sender(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_sender(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Sender, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_sender(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_timestamp(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_timestamp(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Timestamp, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(int)
    fc.Result = res
    return ec.marshalNInt2int(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_timestamp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Int does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_logs(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_logs(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Transaction().Logs(rctx, obj)
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]*model.Log)
    fc.Result = res
    return ec.marshalOLog2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐLogᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_logs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "contract_address":
                return ec.fieldContext_Log_contract_address(ctx, field)
            case "chain_id":
                return ec.fieldContext_Log_chain_id(ctx, field)
            case "topics":
                return ec.fieldContext_Log_topics(ctx, field)
            case "data":
                return ec.fieldContext_Log_data(ctx, field)
            case "block_number":
                return ec.fieldContext_Log_block_number(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Log_tx_hash(ctx, field)
            case "tx_index":
                return ec.fieldContext_Log_tx_index(ctx, field)
            case "block_hash":
                return ec.fieldContext_Log_block_hash(ctx, field)
            case "index":
                return ec.fieldContext_Log_index(ctx, field)
            case "removed":
                return ec.fieldContext_Log_removed(ctx, field)
            case "page":
                return ec.fieldContext_Log_page(ctx, field)
            case "transaction":
                return ec.fieldContext_Log_transaction(ctx, field)
            case "receipt":
                return ec.fieldContext_Log_receipt(ctx, field)
            case "json":
                return ec.fieldContext_Log_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Log", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_receipt(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_receipt(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Transaction().Receipt(rctx, obj)
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(*model.Receipt)
    fc.Result = res
    return ec.marshalNReceipt2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐReceipt(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_receipt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "chain_id":
                return ec.fieldContext_Receipt_chain_id(ctx, field)
            case "type":
                return ec.fieldContext_Receipt_type(ctx, field)
            case "post_state":
                return ec.fieldContext_Receipt_post_state(ctx, field)
            case "status":
                return ec.fieldContext_Receipt_status(ctx, field)
            case "cumulative_gas_used":
                return ec.fieldContext_Receipt_cumulative_gas_used(ctx, field)
            case "bloom":
                return ec.fieldContext_Receipt_bloom(ctx, field)
            case "tx_hash":
                return ec.fieldContext_Receipt_tx_hash(ctx, field)
            case "contract_address":
                return ec.fieldContext_Receipt_contract_address(ctx, field)
            case "gas_used":
                return ec.fieldContext_Receipt_gas_used(ctx, field)
            case "block_number":
                return ec.fieldContext_Receipt_block_number(ctx, field)
            case "transaction_index":
                return ec.fieldContext_Receipt_transaction_index(ctx, field)
            case "page":
                return ec.fieldContext_Receipt_page(ctx, field)
            case "logs":
                return ec.fieldContext_Receipt_logs(ctx, field)
            case "transaction":
                return ec.fieldContext_Receipt_transaction(ctx, field)
            case "json":
                return ec.fieldContext_Receipt_json(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type Receipt", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) _Transaction_json(ctx context.Context, field graphql.CollectedField, obj *model.Transaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_Transaction_json(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return ec.resolvers.Transaction().JSON(rctx, obj)
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(types.JSON)
    fc.Result = res
    return ec.marshalNJSON2githubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋtypesᚐJSON(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext_Transaction_json(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "Transaction",
        Field:      field,
        IsMethod:   true,
        IsResolver: true,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type JSON does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Directive_name(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Name, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Directive_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Directive",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Directive_description(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Description(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Directive_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Directive",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Directive_locations(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Locations, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.([]string)
    fc.Result = res
    return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Directive_locations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Directive",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type __DirectiveLocation does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Directive_args(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Args, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.([]introspection.InputValue)
    fc.Result = res
    return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Directive",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "name":
                return ec.fieldContext___InputValue_name(ctx, field)
            case "description":
                return ec.fieldContext___InputValue_description(ctx, field)
            case "type":
                return ec.fieldContext___InputValue_type(ctx, field)
            case "defaultValue":
                return ec.fieldContext___InputValue_defaultValue(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.IsRepeatable, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(bool)
    fc.Result = res
    return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Directive",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Boolean does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___EnumValue_name(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Name, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___EnumValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__EnumValue",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___EnumValue_description(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Description(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___EnumValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__EnumValue",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.IsDeprecated(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(bool)
    fc.Result = res
    return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__EnumValue",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Boolean does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.DeprecationReason(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__EnumValue",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Field_name(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Name, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Field_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Field",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Field_description(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Description(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Field_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Field",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Field_args(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Args, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.([]introspection.InputValue)
    fc.Result = res
    return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Field",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "name":
                return ec.fieldContext___InputValue_name(ctx, field)
            case "description":
                return ec.fieldContext___InputValue_description(ctx, field)
            case "type":
                return ec.fieldContext___InputValue_type(ctx, field)
            case "defaultValue":
                return ec.fieldContext___InputValue_defaultValue(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Field_type(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Type, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(*introspection.Type)
    fc.Result = res
    return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Field_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Field",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "kind":
                return ec.fieldContext___Type_kind(ctx, field)
            case "name":
                return ec.fieldContext___Type_name(ctx, field)
            case "description":
                return ec.fieldContext___Type_description(ctx, field)
            case "fields":
                return ec.fieldContext___Type_fields(ctx, field)
            case "interfaces":
                return ec.fieldContext___Type_interfaces(ctx, field)
            case "possibleTypes":
                return ec.fieldContext___Type_possibleTypes(ctx, field)
            case "enumValues":
                return ec.fieldContext___Type_enumValues(ctx, field)
            case "inputFields":
                return ec.fieldContext___Type_inputFields(ctx, field)
            case "ofType":
                return ec.fieldContext___Type_ofType(ctx, field)
            case "specifiedByURL":
                return ec.fieldContext___Type_specifiedByURL(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Field_isDeprecated(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.IsDeprecated(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(bool)
    fc.Result = res
    return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Field_isDeprecated(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Field",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type Boolean does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Field_deprecationReason(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.DeprecationReason(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Field_deprecationReason(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Field",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___InputValue_name(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Name, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalNString2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___InputValue_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__InputValue",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___InputValue_description(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Description(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___InputValue_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__InputValue",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___InputValue_type(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Type, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(*introspection.Type)
    fc.Result = res
    return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___InputValue_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__InputValue",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "kind":
                return ec.fieldContext___Type_kind(ctx, field)
            case "name":
                return ec.fieldContext___Type_name(ctx, field)
            case "description":
                return ec.fieldContext___Type_description(ctx, field)
            case "fields":
                return ec.fieldContext___Type_fields(ctx, field)
            case "interfaces":
                return ec.fieldContext___Type_interfaces(ctx, field)
            case "possibleTypes":
                return ec.fieldContext___Type_possibleTypes(ctx, field)
            case "enumValues":
                return ec.fieldContext___Type_enumValues(ctx, field)
            case "inputFields":
                return ec.fieldContext___Type_inputFields(ctx, field)
            case "ofType":
                return ec.fieldContext___Type_ofType(ctx, field)
            case "specifiedByURL":
                return ec.fieldContext___Type_specifiedByURL(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.DefaultValue, nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__InputValue",
        Field:      field,
        IsMethod:   false,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Schema_description(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Description(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Schema_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Schema",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Schema_types(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Types(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.([]introspection.Type)
    fc.Result = res
    return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Schema_types(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Schema",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "kind":
                return ec.fieldContext___Type_kind(ctx, field)
            case "name":
                return ec.fieldContext___Type_name(ctx, field)
            case "description":
                return ec.fieldContext___Type_description(ctx, field)
            case "fields":
                return ec.fieldContext___Type_fields(ctx, field)
            case "interfaces":
                return ec.fieldContext___Type_interfaces(ctx, field)
            case "possibleTypes":
                return ec.fieldContext___Type_possibleTypes(ctx, field)
            case "enumValues":
                return ec.fieldContext___Type_enumValues(ctx, field)
            case "inputFields":
                return ec.fieldContext___Type_inputFields(ctx, field)
            case "ofType":
                return ec.fieldContext___Type_ofType(ctx, field)
            case "specifiedByURL":
                return ec.fieldContext___Type_specifiedByURL(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Schema_queryType(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.QueryType(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(*introspection.Type)
    fc.Result = res
    return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Schema_queryType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Schema",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "kind":
                return ec.fieldContext___Type_kind(ctx, field)
            case "name":
                return ec.fieldContext___Type_name(ctx, field)
            case "description":
                return ec.fieldContext___Type_description(ctx, field)
            case "fields":
                return ec.fieldContext___Type_fields(ctx, field)
            case "interfaces":
                return ec.fieldContext___Type_interfaces(ctx, field)
            case "possibleTypes":
                return ec.fieldContext___Type_possibleTypes(ctx, field)
            case "enumValues":
                return ec.fieldContext___Type_enumValues(ctx, field)
            case "inputFields":
                return ec.fieldContext___Type_inputFields(ctx, field)
            case "ofType":
                return ec.fieldContext___Type_ofType(ctx, field)
            case "specifiedByURL":
                return ec.fieldContext___Type_specifiedByURL(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Schema_mutationType(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.MutationType(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*introspection.Type)
    fc.Result = res
    return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Schema_mutationType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Schema",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "kind":
                return ec.fieldContext___Type_kind(ctx, field)
            case "name":
                return ec.fieldContext___Type_name(ctx, field)
            case "description":
                return ec.fieldContext___Type_description(ctx, field)
            case "fields":
                return ec.fieldContext___Type_fields(ctx, field)
            case "interfaces":
                return ec.fieldContext___Type_interfaces(ctx, field)
            case "possibleTypes":
                return ec.fieldContext___Type_possibleTypes(ctx, field)
            case "enumValues":
                return ec.fieldContext___Type_enumValues(ctx, field)
            case "inputFields":
                return ec.fieldContext___Type_inputFields(ctx, field)
            case "ofType":
                return ec.fieldContext___Type_ofType(ctx, field)
            case "specifiedByURL":
                return ec.fieldContext___Type_specifiedByURL(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.SubscriptionType(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*introspection.Type)
    fc.Result = res
    return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Schema",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "kind":
                return ec.fieldContext___Type_kind(ctx, field)
            case "name":
                return ec.fieldContext___Type_name(ctx, field)
            case "description":
                return ec.fieldContext___Type_description(ctx, field)
            case "fields":
                return ec.fieldContext___Type_fields(ctx, field)
            case "interfaces":
                return ec.fieldContext___Type_interfaces(ctx, field)
            case "possibleTypes":
                return ec.fieldContext___Type_possibleTypes(ctx, field)
            case "enumValues":
                return ec.fieldContext___Type_enumValues(ctx, field)
            case "inputFields":
                return ec.fieldContext___Type_inputFields(ctx, field)
            case "ofType":
                return ec.fieldContext___Type_ofType(ctx, field)
            case "specifiedByURL":
                return ec.fieldContext___Type_specifiedByURL(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Schema_directives(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Directives(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.([]introspection.Directive)
    fc.Result = res
    return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Schema_directives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Schema",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "name":
                return ec.fieldContext___Directive_name(ctx, field)
            case "description":
                return ec.fieldContext___Directive_description(ctx, field)
            case "locations":
                return ec.fieldContext___Directive_locations(ctx, field)
            case "args":
                return ec.fieldContext___Directive_args(ctx, field)
            case "isRepeatable":
                return ec.fieldContext___Directive_isRepeatable(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Type_kind(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Kind(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        if !graphql.HasFieldError(ctx, fc) {
            ec.Errorf(ctx, "must not be null")
        }
        return graphql.Null
    }
    res := resTmp.(string)
    fc.Result = res
    return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Type_kind(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Type",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type __TypeKind does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Type_name(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Name(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Type_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Type",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Type_description(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Description(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Type_description(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Type",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Type_fields(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]introspection.Field)
    fc.Result = res
    return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Type",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "name":
                return ec.fieldContext___Field_name(ctx, field)
            case "description":
                return ec.fieldContext___Field_description(ctx, field)
            case "args":
                return ec.fieldContext___Field_args(ctx, field)
            case "type":
                return ec.fieldContext___Field_type(ctx, field)
            case "isDeprecated":
                return ec.fieldContext___Field_isDeprecated(ctx, field)
            case "deprecationReason":
                return ec.fieldContext___Field_deprecationReason(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Type_interfaces(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.Interfaces(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]introspection.Type)
    fc.Result = res
    return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Type_interfaces(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Type",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "kind":
                return ec.fieldContext___Type_kind(ctx, field)
            case "name":
                return ec.fieldContext___Type_name(ctx, field)
            case "description":
                return ec.fieldContext___Type_description(ctx, field)
            case "fields":
                return ec.fieldContext___Type_fields(ctx, field)
            case "interfaces":
                return ec.fieldContext___Type_interfaces(ctx, field)
            case "possibleTypes":
                return ec.fieldContext___Type_possibleTypes(ctx, field)
            case "enumValues":
                return ec.fieldContext___Type_enumValues(ctx, field)
            case "inputFields":
                return ec.fieldContext___Type_inputFields(ctx, field)
            case "ofType":
                return ec.fieldContext___Type_ofType(ctx, field)
            case "specifiedByURL":
                return ec.fieldContext___Type_specifiedByURL(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Type_possibleTypes(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.PossibleTypes(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]introspection.Type)
    fc.Result = res
    return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Type_possibleTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Type",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "kind":
                return ec.fieldContext___Type_kind(ctx, field)
            case "name":
                return ec.fieldContext___Type_name(ctx, field)
            case "description":
                return ec.fieldContext___Type_description(ctx, field)
            case "fields":
                return ec.fieldContext___Type_fields(ctx, field)
            case "interfaces":
                return ec.fieldContext___Type_interfaces(ctx, field)
            case "possibleTypes":
                return ec.fieldContext___Type_possibleTypes(ctx, field)
            case "enumValues":
                return ec.fieldContext___Type_enumValues(ctx, field)
            case "inputFields":
                return ec.fieldContext___Type_inputFields(ctx, field)
            case "ofType":
                return ec.fieldContext___Type_ofType(ctx, field)
            case "specifiedByURL":
                return ec.fieldContext___Type_specifiedByURL(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Type_enumValues(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]introspection.EnumValue)
    fc.Result = res
    return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Type",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "name":
                return ec.fieldContext___EnumValue_name(ctx, field)
            case "description":
                return ec.fieldContext___EnumValue_description(ctx, field)
            case "isDeprecated":
                return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
            case "deprecationReason":
                return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name)
        },
    }
    defer func() {
        if r := recover(); r != nil {
            err = ec.Recover(ctx, r)
            ec.Error(ctx, err)
        }
    }()
    ctx = graphql.WithFieldContext(ctx, fc)
    if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
        ec.Error(ctx, err)
        return fc, err
    }
    return fc, nil
}

func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Type_inputFields(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.InputFields(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.([]introspection.InputValue)
    fc.Result = res
    return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Type_inputFields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Type",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "name":
                return ec.fieldContext___InputValue_name(ctx, field)
            case "description":
                return ec.fieldContext___InputValue_description(ctx, field)
            case "type":
                return ec.fieldContext___InputValue_type(ctx, field)
            case "defaultValue":
                return ec.fieldContext___InputValue_defaultValue(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Type_ofType(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.OfType(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*introspection.Type)
    fc.Result = res
    return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Type_ofType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Type",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            switch field.Name {
            case "kind":
                return ec.fieldContext___Type_kind(ctx, field)
            case "name":
                return ec.fieldContext___Type_name(ctx, field)
            case "description":
                return ec.fieldContext___Type_description(ctx, field)
            case "fields":
                return ec.fieldContext___Type_fields(ctx, field)
            case "interfaces":
                return ec.fieldContext___Type_interfaces(ctx, field)
            case "possibleTypes":
                return ec.fieldContext___Type_possibleTypes(ctx, field)
            case "enumValues":
                return ec.fieldContext___Type_enumValues(ctx, field)
            case "inputFields":
                return ec.fieldContext___Type_inputFields(ctx, field)
            case "ofType":
                return ec.fieldContext___Type_ofType(ctx, field)
            case "specifiedByURL":
                return ec.fieldContext___Type_specifiedByURL(ctx, field)
            }
            return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
        },
    }
    return fc, nil
}

func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field)
    if err != nil {
        return graphql.Null
    }
    ctx = graphql.WithFieldContext(ctx, fc)
    defer func() {
        if r := recover(); r != nil {
            ec.Error(ctx, ec.Recover(ctx, r))
            ret = graphql.Null
        }
    }()
    resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
        ctx = rctx // use context from middleware stack in children
        return obj.SpecifiedByURL(), nil
    })
    if err != nil {
        ec.Error(ctx, err)
        return graphql.Null
    }
    if resTmp == nil {
        return graphql.Null
    }
    res := resTmp.(*string)
    fc.Result = res
    return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}

func (ec *executionContext) fieldContext___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
    fc = &graphql.FieldContext{
        Object:     "__Type",
        Field:      field,
        IsMethod:   true,
        IsResolver: false,
        Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
            return nil, errors.New("field of type String does not have child fields")
        },
    }
    return fc, nil
}

// endregion **************************** field.gotpl *****************************

// region    **************************** input.gotpl *****************************

// endregion **************************** input.gotpl *****************************

// region    ************************** interface.gotpl ***************************

// endregion ************************** interface.gotpl ***************************

// region    **************************** object.gotpl ****************************

var blockTimeImplementors = []string{"BlockTime"}

func (ec *executionContext) _BlockTime(ctx context.Context, sel ast.SelectionSet, obj *model.BlockTime) graphql.Marshaler {
    fields := graphql.CollectFields(ec.OperationContext, sel, blockTimeImplementors)

    out := graphql.NewFieldSet(fields)
    deferred := make(map[string]*graphql.FieldSet)
    for i, field := range fields {
        switch field.Name {
        case "__typename":
            out.Values[i] = graphql.MarshalString("BlockTime")
        case "chain_id":
            out.Values[i] = ec._BlockTime_chain_id(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "block_number":
            out.Values[i] = ec._BlockTime_block_number(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "timestamp":
            out.Values[i] = ec._BlockTime_timestamp(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        default:
            panic("unknown field " + strconv.Quote(field.Name))
        }
    }
    out.Dispatch(ctx)
    if out.Invalids > 0 {
        return graphql.Null
    }

    atomic.AddInt32(&ec.deferred, int32(len(deferred)))

    for label, dfs := range deferred {
        ec.processDeferredGroup(graphql.DeferredGroup{
            Label:    label,
            Path:     graphql.GetPath(ctx),
            FieldSet: dfs,
            Context:  ctx,
        })
    }

    return out
}

var logImplementors = []string{"Log"}

func (ec *executionContext) _Log(ctx context.Context, sel ast.SelectionSet, obj *model.Log) graphql.Marshaler {
    fields := graphql.CollectFields(ec.OperationContext, sel, logImplementors)

    out := graphql.NewFieldSet(fields)
    deferred := make(map[string]*graphql.FieldSet)
    for i, field := range fields {
        switch field.Name {
        case "__typename":
            out.Values[i] = graphql.MarshalString("Log")
        case "contract_address":
            out.Values[i] = ec._Log_contract_address(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "chain_id":
            out.Values[i] = ec._Log_chain_id(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "topics":
            out.Values[i] = ec._Log_topics(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "data":
            out.Values[i] = ec._Log_data(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "block_number":
            out.Values[i] = ec._Log_block_number(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "tx_hash":
            out.Values[i] = ec._Log_tx_hash(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "tx_index":
            out.Values[i] = ec._Log_tx_index(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "block_hash":
            out.Values[i] = ec._Log_block_hash(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "index":
            out.Values[i] = ec._Log_index(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "removed":
            out.Values[i] = ec._Log_removed(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "page":
            out.Values[i] = ec._Log_page(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "transaction":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Log_transaction(ctx, field, obj)
                if res == graphql.Null {
                    atomic.AddUint32(&fs.Invalids, 1)
                }
                return res
            }

            if field.Deferrable != nil {
                dfs, ok := deferred[field.Deferrable.Label]
                di := 0
                if ok {
                    dfs.AddField(field)
                    di = len(dfs.Values) - 1
                } else {
                    dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
                    deferred[field.Deferrable.Label] = dfs
                }
                dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
                    return innerFunc(ctx, dfs)
                })

                // don't run the out.Concurrently() call below
                out.Values[i] = graphql.Null
                continue
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
        case "receipt":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Log_receipt(ctx, field, obj)
                if res == graphql.Null {
                    atomic.AddUint32(&fs.Invalids, 1)
                }
                return res
            }

            if field.Deferrable != nil {
                dfs, ok := deferred[field.Deferrable.Label]
                di := 0
                if ok {
                    dfs.AddField(field)
                    di = len(dfs.Values) - 1
                } else {
                    dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
                    deferred[field.Deferrable.Label] = dfs
                }
                dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
                    return innerFunc(ctx, dfs)
                })

                // don't run the out.Concurrently() call below
                out.Values[i] = graphql.Null
                continue
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
        case "json":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Log_json(ctx, field, obj)
                if res == graphql.Null {
                    atomic.AddUint32(&fs.Invalids, 1)
                }
                return res
            }

            if field.Deferrable != nil {
                dfs, ok := deferred[field.Deferrable.Label]
                di := 0
                if ok {
                    dfs.AddField(field)
                    di = len(dfs.Values) - 1
                } else {
                    dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
                    deferred[field.Deferrable.Label] = dfs
                }
                dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
                    return innerFunc(ctx, dfs)
                })

                // don't run the out.Concurrently() call below
                out.Values[i] = graphql.Null
                continue
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
        default:
            panic("unknown field " + strconv.Quote(field.Name))
        }
    }
    out.Dispatch(ctx)
    if out.Invalids > 0 {
        return graphql.Null
    }

    atomic.AddInt32(&ec.deferred, int32(len(deferred)))

    for label, dfs := range deferred {
        ec.processDeferredGroup(graphql.DeferredGroup{
            Label:    label,
            Path:     graphql.GetPath(ctx),
            FieldSet: dfs,
            Context:  ctx,
        })
    }

    return out
}

var queryImplementors = []string{"Query"}

func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
    fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
    ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
        Object: "Query",
    })

    out := graphql.NewFieldSet(fields)
    deferred := make(map[string]*graphql.FieldSet)
    for i, field := range fields {
        innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
            Object: field.Name,
            Field:  field,
        })

        switch field.Name {
        case "__typename":
            out.Values[i] = graphql.MarshalString("Query")
        case "logs":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_logs(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "logsRange":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_logsRange(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "receipts":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_receipts(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "receiptsRange":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_receiptsRange(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "transactions":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_transactions(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "transactionsRange":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_transactionsRange(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "blockTime":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_blockTime(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "lastStoredBlockNumber":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_lastStoredBlockNumber(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "firstStoredBlockNumber":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_firstStoredBlockNumber(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "lastConfirmedBlockNumber":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_lastConfirmedBlockNumber(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "txSender":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_txSender(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "lastIndexed":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_lastIndexed(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "logCount":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_logCount(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "receiptCount":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_receiptCount(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "blockTimeCount":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_blockTimeCount(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "logsAtHeadRange":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_logsAtHeadRange(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "receiptsAtHeadRange":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_receiptsAtHeadRange(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "transactionsAtHeadRange":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Query_transactionsAtHeadRange(ctx, field)
                return res
            }

            rrm := func(ctx context.Context) graphql.Marshaler {
                return ec.OperationContext.RootResolverMiddleware(ctx,
                    func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
        case "__type":
            out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
                return ec._Query___type(ctx, field)
            })
        case "__schema":
            out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
                return ec._Query___schema(ctx, field)
            })
        default:
            panic("unknown field " + strconv.Quote(field.Name))
        }
    }
    out.Dispatch(ctx)
    if out.Invalids > 0 {
        return graphql.Null
    }

    atomic.AddInt32(&ec.deferred, int32(len(deferred)))

    for label, dfs := range deferred {
        ec.processDeferredGroup(graphql.DeferredGroup{
            Label:    label,
            Path:     graphql.GetPath(ctx),
            FieldSet: dfs,
            Context:  ctx,
        })
    }

    return out
}

var receiptImplementors = []string{"Receipt"}

func (ec *executionContext) _Receipt(ctx context.Context, sel ast.SelectionSet, obj *model.Receipt) graphql.Marshaler {
    fields := graphql.CollectFields(ec.OperationContext, sel, receiptImplementors)

    out := graphql.NewFieldSet(fields)
    deferred := make(map[string]*graphql.FieldSet)
    for i, field := range fields {
        switch field.Name {
        case "__typename":
            out.Values[i] = graphql.MarshalString("Receipt")
        case "chain_id":
            out.Values[i] = ec._Receipt_chain_id(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "type":
            out.Values[i] = ec._Receipt_type(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "post_state":
            out.Values[i] = ec._Receipt_post_state(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "status":
            out.Values[i] = ec._Receipt_status(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "cumulative_gas_used":
            out.Values[i] = ec._Receipt_cumulative_gas_used(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "bloom":
            out.Values[i] = ec._Receipt_bloom(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "tx_hash":
            out.Values[i] = ec._Receipt_tx_hash(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "contract_address":
            out.Values[i] = ec._Receipt_contract_address(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "gas_used":
            out.Values[i] = ec._Receipt_gas_used(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "block_number":
            out.Values[i] = ec._Receipt_block_number(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "transaction_index":
            out.Values[i] = ec._Receipt_transaction_index(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "page":
            out.Values[i] = ec._Receipt_page(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "logs":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Receipt_logs(ctx, field, obj)
                return res
            }

            if field.Deferrable != nil {
                dfs, ok := deferred[field.Deferrable.Label]
                di := 0
                if ok {
                    dfs.AddField(field)
                    di = len(dfs.Values) - 1
                } else {
                    dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
                    deferred[field.Deferrable.Label] = dfs
                }
                dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
                    return innerFunc(ctx, dfs)
                })

                // don't run the out.Concurrently() call below
                out.Values[i] = graphql.Null
                continue
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
        case "transaction":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Receipt_transaction(ctx, field, obj)
                if res == graphql.Null {
                    atomic.AddUint32(&fs.Invalids, 1)
                }
                return res
            }

            if field.Deferrable != nil {
                dfs, ok := deferred[field.Deferrable.Label]
                di := 0
                if ok {
                    dfs.AddField(field)
                    di = len(dfs.Values) - 1
                } else {
                    dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
                    deferred[field.Deferrable.Label] = dfs
                }
                dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
                    return innerFunc(ctx, dfs)
                })

                // don't run the out.Concurrently() call below
                out.Values[i] = graphql.Null
                continue
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
        case "json":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Receipt_json(ctx, field, obj)
                if res == graphql.Null {
                    atomic.AddUint32(&fs.Invalids, 1)
                }
                return res
            }

            if field.Deferrable != nil {
                dfs, ok := deferred[field.Deferrable.Label]
                di := 0
                if ok {
                    dfs.AddField(field)
                    di = len(dfs.Values) - 1
                } else {
                    dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
                    deferred[field.Deferrable.Label] = dfs
                }
                dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
                    return innerFunc(ctx, dfs)
                })

                // don't run the out.Concurrently() call below
                out.Values[i] = graphql.Null
                continue
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
        default:
            panic("unknown field " + strconv.Quote(field.Name))
        }
    }
    out.Dispatch(ctx)
    if out.Invalids > 0 {
        return graphql.Null
    }

    atomic.AddInt32(&ec.deferred, int32(len(deferred)))

    for label, dfs := range deferred {
        ec.processDeferredGroup(graphql.DeferredGroup{
            Label:    label,
            Path:     graphql.GetPath(ctx),
            FieldSet: dfs,
            Context:  ctx,
        })
    }

    return out
}

var transactionImplementors = []string{"Transaction"}

func (ec *executionContext) _Transaction(ctx context.Context, sel ast.SelectionSet, obj *model.Transaction) graphql.Marshaler {
    fields := graphql.CollectFields(ec.OperationContext, sel, transactionImplementors)

    out := graphql.NewFieldSet(fields)
    deferred := make(map[string]*graphql.FieldSet)
    for i, field := range fields {
        switch field.Name {
        case "__typename":
            out.Values[i] = graphql.MarshalString("Transaction")
        case "chain_id":
            out.Values[i] = ec._Transaction_chain_id(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "tx_hash":
            out.Values[i] = ec._Transaction_tx_hash(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "protected":
            out.Values[i] = ec._Transaction_protected(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "type":
            out.Values[i] = ec._Transaction_type(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "data":
            out.Values[i] = ec._Transaction_data(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "gas":
            out.Values[i] = ec._Transaction_gas(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "gas_price":
            out.Values[i] = ec._Transaction_gas_price(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "gas_tip_cap":
            out.Values[i] = ec._Transaction_gas_tip_cap(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "gas_fee_cap":
            out.Values[i] = ec._Transaction_gas_fee_cap(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "value":
            out.Values[i] = ec._Transaction_value(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "nonce":
            out.Values[i] = ec._Transaction_nonce(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "to":
            out.Values[i] = ec._Transaction_to(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "page":
            out.Values[i] = ec._Transaction_page(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "sender":
            out.Values[i] = ec._Transaction_sender(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "timestamp":
            out.Values[i] = ec._Transaction_timestamp(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                atomic.AddUint32(&out.Invalids, 1)
            }
        case "logs":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Transaction_logs(ctx, field, obj)
                return res
            }

            if field.Deferrable != nil {
                dfs, ok := deferred[field.Deferrable.Label]
                di := 0
                if ok {
                    dfs.AddField(field)
                    di = len(dfs.Values) - 1
                } else {
                    dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
                    deferred[field.Deferrable.Label] = dfs
                }
                dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
                    return innerFunc(ctx, dfs)
                })

                // don't run the out.Concurrently() call below
                out.Values[i] = graphql.Null
                continue
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
        case "receipt":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Transaction_receipt(ctx, field, obj)
                if res == graphql.Null {
                    atomic.AddUint32(&fs.Invalids, 1)
                }
                return res
            }

            if field.Deferrable != nil {
                dfs, ok := deferred[field.Deferrable.Label]
                di := 0
                if ok {
                    dfs.AddField(field)
                    di = len(dfs.Values) - 1
                } else {
                    dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
                    deferred[field.Deferrable.Label] = dfs
                }
                dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
                    return innerFunc(ctx, dfs)
                })

                // don't run the out.Concurrently() call below
                out.Values[i] = graphql.Null
                continue
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
        case "json":
            field := field

            innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
                defer func() {
                    if r := recover(); r != nil {
                        ec.Error(ctx, ec.Recover(ctx, r))
                    }
                }()
                res = ec._Transaction_json(ctx, field, obj)
                if res == graphql.Null {
                    atomic.AddUint32(&fs.Invalids, 1)
                }
                return res
            }

            if field.Deferrable != nil {
                dfs, ok := deferred[field.Deferrable.Label]
                di := 0
                if ok {
                    dfs.AddField(field)
                    di = len(dfs.Values) - 1
                } else {
                    dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
                    deferred[field.Deferrable.Label] = dfs
                }
                dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
                    return innerFunc(ctx, dfs)
                })

                // don't run the out.Concurrently() call below
                out.Values[i] = graphql.Null
                continue
            }

            out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
        default:
            panic("unknown field " + strconv.Quote(field.Name))
        }
    }
    out.Dispatch(ctx)
    if out.Invalids > 0 {
        return graphql.Null
    }

    atomic.AddInt32(&ec.deferred, int32(len(deferred)))

    for label, dfs := range deferred {
        ec.processDeferredGroup(graphql.DeferredGroup{
            Label:    label,
            Path:     graphql.GetPath(ctx),
            FieldSet: dfs,
            Context:  ctx,
        })
    }

    return out
}

var __DirectiveImplementors = []string{"__Directive"}

func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
    fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)

    out := graphql.NewFieldSet(fields)
    deferred := make(map[string]*graphql.FieldSet)
    for i, field := range fields {
        switch field.Name {
        case "__typename":
            out.Values[i] = graphql.MarshalString("__Directive")
        case "name":
            out.Values[i] = ec.___Directive_name(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "description":
            out.Values[i] = ec.___Directive_description(ctx, field, obj)
        case "locations":
            out.Values[i] = ec.___Directive_locations(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "args":
            out.Values[i] = ec.___Directive_args(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "isRepeatable":
            out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        default:
            panic("unknown field " + strconv.Quote(field.Name))
        }
    }
    out.Dispatch(ctx)
    if out.Invalids > 0 {
        return graphql.Null
    }

    atomic.AddInt32(&ec.deferred, int32(len(deferred)))

    for label, dfs := range deferred {
        ec.processDeferredGroup(graphql.DeferredGroup{
            Label:    label,
            Path:     graphql.GetPath(ctx),
            FieldSet: dfs,
            Context:  ctx,
        })
    }

    return out
}

var __EnumValueImplementors = []string{"__EnumValue"}

func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
    fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)

    out := graphql.NewFieldSet(fields)
    deferred := make(map[string]*graphql.FieldSet)
    for i, field := range fields {
        switch field.Name {
        case "__typename":
            out.Values[i] = graphql.MarshalString("__EnumValue")
        case "name":
            out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "description":
            out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
        case "isDeprecated":
            out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "deprecationReason":
            out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
        default:
            panic("unknown field " + strconv.Quote(field.Name))
        }
    }
    out.Dispatch(ctx)
    if out.Invalids > 0 {
        return graphql.Null
    }

    atomic.AddInt32(&ec.deferred, int32(len(deferred)))

    for label, dfs := range deferred {
        ec.processDeferredGroup(graphql.DeferredGroup{
            Label:    label,
            Path:     graphql.GetPath(ctx),
            FieldSet: dfs,
            Context:  ctx,
        })
    }

    return out
}

var __FieldImplementors = []string{"__Field"}

func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
    fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)

    out := graphql.NewFieldSet(fields)
    deferred := make(map[string]*graphql.FieldSet)
    for i, field := range fields {
        switch field.Name {
        case "__typename":
            out.Values[i] = graphql.MarshalString("__Field")
        case "name":
            out.Values[i] = ec.___Field_name(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "description":
            out.Values[i] = ec.___Field_description(ctx, field, obj)
        case "args":
            out.Values[i] = ec.___Field_args(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "type":
            out.Values[i] = ec.___Field_type(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "isDeprecated":
            out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "deprecationReason":
            out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
        default:
            panic("unknown field " + strconv.Quote(field.Name))
        }
    }
    out.Dispatch(ctx)
    if out.Invalids > 0 {
        return graphql.Null
    }

    atomic.AddInt32(&ec.deferred, int32(len(deferred)))

    for label, dfs := range deferred {
        ec.processDeferredGroup(graphql.DeferredGroup{
            Label:    label,
            Path:     graphql.GetPath(ctx),
            FieldSet: dfs,
            Context:  ctx,
        })
    }

    return out
}

var __InputValueImplementors = []string{"__InputValue"}

func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
    fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)

    out := graphql.NewFieldSet(fields)
    deferred := make(map[string]*graphql.FieldSet)
    for i, field := range fields {
        switch field.Name {
        case "__typename":
            out.Values[i] = graphql.MarshalString("__InputValue")
        case "name":
            out.Values[i] = ec.___InputValue_name(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "description":
            out.Values[i] = ec.___InputValue_description(ctx, field, obj)
        case "type":
            out.Values[i] = ec.___InputValue_type(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "defaultValue":
            out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
        default:
            panic("unknown field " + strconv.Quote(field.Name))
        }
    }
    out.Dispatch(ctx)
    if out.Invalids > 0 {
        return graphql.Null
    }

    atomic.AddInt32(&ec.deferred, int32(len(deferred)))

    for label, dfs := range deferred {
        ec.processDeferredGroup(graphql.DeferredGroup{
            Label:    label,
            Path:     graphql.GetPath(ctx),
            FieldSet: dfs,
            Context:  ctx,
        })
    }

    return out
}

var __SchemaImplementors = []string{"__Schema"}

func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
    fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)

    out := graphql.NewFieldSet(fields)
    deferred := make(map[string]*graphql.FieldSet)
    for i, field := range fields {
        switch field.Name {
        case "__typename":
            out.Values[i] = graphql.MarshalString("__Schema")
        case "description":
            out.Values[i] = ec.___Schema_description(ctx, field, obj)
        case "types":
            out.Values[i] = ec.___Schema_types(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "queryType":
            out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "mutationType":
            out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
        case "subscriptionType":
            out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
        case "directives":
            out.Values[i] = ec.___Schema_directives(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        default:
            panic("unknown field " + strconv.Quote(field.Name))
        }
    }
    out.Dispatch(ctx)
    if out.Invalids > 0 {
        return graphql.Null
    }

    atomic.AddInt32(&ec.deferred, int32(len(deferred)))

    for label, dfs := range deferred {
        ec.processDeferredGroup(graphql.DeferredGroup{
            Label:    label,
            Path:     graphql.GetPath(ctx),
            FieldSet: dfs,
            Context:  ctx,
        })
    }

    return out
}

var __TypeImplementors = []string{"__Type"}

func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
    fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)

    out := graphql.NewFieldSet(fields)
    deferred := make(map[string]*graphql.FieldSet)
    for i, field := range fields {
        switch field.Name {
        case "__typename":
            out.Values[i] = graphql.MarshalString("__Type")
        case "kind":
            out.Values[i] = ec.___Type_kind(ctx, field, obj)
            if out.Values[i] == graphql.Null {
                out.Invalids++
            }
        case "name":
            out.Values[i] = ec.___Type_name(ctx, field, obj)
        case "description":
            out.Values[i] = ec.___Type_description(ctx, field, obj)
        case "fields":
            out.Values[i] = ec.___Type_fields(ctx, field, obj)
        case "interfaces":
            out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
        case "possibleTypes":
            out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
        case "enumValues":
            out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
        case "inputFields":
            out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
        case "ofType":
            out.Values[i] = ec.___Type_ofType(ctx, field, obj)
        case "specifiedByURL":
            out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
        default:
            panic("unknown field " + strconv.Quote(field.Name))
        }
    }
    out.Dispatch(ctx)
    if out.Invalids > 0 {
        return graphql.Null
    }

    atomic.AddInt32(&ec.deferred, int32(len(deferred)))

    for label, dfs := range deferred {
        ec.processDeferredGroup(graphql.DeferredGroup{
            Label:    label,
            Path:     graphql.GetPath(ctx),
            FieldSet: dfs,
            Context:  ctx,
        })
    }

    return out
}

// endregion **************************** object.gotpl ****************************

// region    ***************************** type.gotpl *****************************

func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
    res, err := graphql.UnmarshalBoolean(v)
    return res, graphql.ErrorOnPath(ctx, err)
}

func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
    res := graphql.MarshalBoolean(v)
    if res == graphql.Null {
        if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
            ec.Errorf(ctx, "the requested element is null which the schema does not allow")
        }
    }
    return res
}

func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) {
    res, err := graphql.UnmarshalInt(v)
    return res, graphql.ErrorOnPath(ctx, err)
}

func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
    res := graphql.MarshalInt(v)
    if res == graphql.Null {
        if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
            ec.Errorf(ctx, "the requested element is null which the schema does not allow")
        }
    }
    return res
}

func (ec *executionContext) unmarshalNJSON2githubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋtypesᚐJSON(ctx context.Context, v interface{}) (types.JSON, error) {
    res, err := types.UnmarshalJSON(v)
    return res, graphql.ErrorOnPath(ctx, err)
}

func (ec *executionContext) marshalNJSON2githubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋtypesᚐJSON(ctx context.Context, sel ast.SelectionSet, v types.JSON) graphql.Marshaler {
    if v == nil {
        if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
            ec.Errorf(ctx, "the requested element is null which the schema does not allow")
        }
        return graphql.Null
    }
    res := types.MarshalJSON(v)
    if res == graphql.Null {
        if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
            ec.Errorf(ctx, "the requested element is null which the schema does not allow")
        }
    }
    return res
}

func (ec *executionContext) marshalNLog2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐLog(ctx context.Context, sel ast.SelectionSet, v *model.Log) graphql.Marshaler {
    if v == nil {
        if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
            ec.Errorf(ctx, "the requested element is null which the schema does not allow")
        }
        return graphql.Null
    }
    return ec._Log(ctx, sel, v)
}

func (ec *executionContext) marshalNReceipt2githubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐReceipt(ctx context.Context, sel ast.SelectionSet, v model.Receipt) graphql.Marshaler {
    return ec._Receipt(ctx, sel, &v)
}

func (ec *executionContext) marshalNReceipt2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐReceipt(ctx context.Context, sel ast.SelectionSet, v *model.Receipt) graphql.Marshaler {
    if v == nil {
        if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
            ec.Errorf(ctx, "the requested element is null which the schema does not allow")
        }
        return graphql.Null
    }
    return ec._Receipt(ctx, sel, v)
}

func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
    res, err := graphql.UnmarshalString(v)
    return res, graphql.ErrorOnPath(ctx, err)
}

func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
    res := graphql.MarshalString(v)
    if res == graphql.Null {
        if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
            ec.Errorf(ctx, "the requested element is null which the schema does not allow")
        }
    }
    return res
}

func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
    var vSlice []interface{}
    if v != nil {
        vSlice = graphql.CoerceList(v)
    }
    var err error
    res := make([]string, len(vSlice))
    for i := range vSlice {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
        res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
        if err != nil {
            return nil, err
        }
    }
    return res, nil
}

func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
    ret := make(graphql.Array, len(v))
    for i := range v {
        ret[i] = ec.marshalNString2string(ctx, sel, v[i])
    }

    for _, e := range ret {
        if e == graphql.Null {
            return graphql.Null
        }
    }

    return ret
}

func (ec *executionContext) marshalNTransaction2githubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐTransaction(ctx context.Context, sel ast.SelectionSet, v model.Transaction) graphql.Marshaler {
    return ec._Transaction(ctx, sel, &v)
}

func (ec *executionContext) marshalNTransaction2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐTransaction(ctx context.Context, sel ast.SelectionSet, v *model.Transaction) graphql.Marshaler {
    if v == nil {
        if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
            ec.Errorf(ctx, "the requested element is null which the schema does not allow")
        }
        return graphql.Null
    }
    return ec._Transaction(ctx, sel, v)
}

func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
    return ec.___Directive(ctx, sel, &v)
}

func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    for _, e := range ret {
        if e == graphql.Null {
            return graphql.Null
        }
    }

    return ret
}

func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
    res, err := graphql.UnmarshalString(v)
    return res, graphql.ErrorOnPath(ctx, err)
}

func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
    res := graphql.MarshalString(v)
    if res == graphql.Null {
        if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
            ec.Errorf(ctx, "the requested element is null which the schema does not allow")
        }
    }
    return res
}

func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
    var vSlice []interface{}
    if v != nil {
        vSlice = graphql.CoerceList(v)
    }
    var err error
    res := make([]string, len(vSlice))
    for i := range vSlice {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
        res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
        if err != nil {
            return nil, err
        }
    }
    return res, nil
}

func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    for _, e := range ret {
        if e == graphql.Null {
            return graphql.Null
        }
    }

    return ret
}

func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
    return ec.___EnumValue(ctx, sel, &v)
}

func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
    return ec.___Field(ctx, sel, &v)
}

func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
    return ec.___InputValue(ctx, sel, &v)
}

func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    for _, e := range ret {
        if e == graphql.Null {
            return graphql.Null
        }
    }

    return ret
}

func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
    return ec.___Type(ctx, sel, &v)
}

func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    for _, e := range ret {
        if e == graphql.Null {
            return graphql.Null
        }
    }

    return ret
}

func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
    if v == nil {
        if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
            ec.Errorf(ctx, "the requested element is null which the schema does not allow")
        }
        return graphql.Null
    }
    return ec.___Type(ctx, sel, v)
}

func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
    res, err := graphql.UnmarshalString(v)
    return res, graphql.ErrorOnPath(ctx, err)
}

func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
    res := graphql.MarshalString(v)
    if res == graphql.Null {
        if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
            ec.Errorf(ctx, "the requested element is null which the schema does not allow")
        }
    }
    return res
}

func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
    res, err := graphql.UnmarshalBoolean(v)
    return res, graphql.ErrorOnPath(ctx, err)
}

func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
    res := graphql.MarshalBoolean(v)
    return res
}

func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
    if v == nil {
        return nil, nil
    }
    res, err := graphql.UnmarshalBoolean(v)
    return &res, graphql.ErrorOnPath(ctx, err)
}

func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    res := graphql.MarshalBoolean(*v)
    return res
}

func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) {
    if v == nil {
        return nil, nil
    }
    res, err := graphql.UnmarshalInt(v)
    return &res, graphql.ErrorOnPath(ctx, err)
}

func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    res := graphql.MarshalInt(*v)
    return res
}

func (ec *executionContext) marshalOLog2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐLog(ctx context.Context, sel ast.SelectionSet, v []*model.Log) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalOLog2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐLog(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    return ret
}

func (ec *executionContext) marshalOLog2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐLogᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Log) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalNLog2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐLog(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    for _, e := range ret {
        if e == graphql.Null {
            return graphql.Null
        }
    }

    return ret
}

func (ec *executionContext) marshalOLog2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐLog(ctx context.Context, sel ast.SelectionSet, v *model.Log) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    return ec._Log(ctx, sel, v)
}

func (ec *executionContext) marshalOReceipt2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐReceipt(ctx context.Context, sel ast.SelectionSet, v []*model.Receipt) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalOReceipt2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐReceipt(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    return ret
}

func (ec *executionContext) marshalOReceipt2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐReceipt(ctx context.Context, sel ast.SelectionSet, v *model.Receipt) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    return ec._Receipt(ctx, sel, v)
}

func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
    if v == nil {
        return nil, nil
    }
    var vSlice []interface{}
    if v != nil {
        vSlice = graphql.CoerceList(v)
    }
    var err error
    res := make([]string, len(vSlice))
    for i := range vSlice {
        ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
        res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
        if err != nil {
            return nil, err
        }
    }
    return res, nil
}

func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    ret := make(graphql.Array, len(v))
    for i := range v {
        ret[i] = ec.marshalNString2string(ctx, sel, v[i])
    }

    for _, e := range ret {
        if e == graphql.Null {
            return graphql.Null
        }
    }

    return ret
}

func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
    if v == nil {
        return nil, nil
    }
    res, err := graphql.UnmarshalString(v)
    return &res, graphql.ErrorOnPath(ctx, err)
}

func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    res := graphql.MarshalString(*v)
    return res
}

func (ec *executionContext) marshalOTransaction2ᚕᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐTransaction(ctx context.Context, sel ast.SelectionSet, v []*model.Transaction) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalOTransaction2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐTransaction(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    return ret
}

func (ec *executionContext) marshalOTransaction2ᚖgithubᚗcomᚋsynapsecnsᚋsanguineᚋservicesᚋscribeᚋgraphqlᚋserverᚋgraphᚋmodelᚐTransaction(ctx context.Context, sel ast.SelectionSet, v *model.Transaction) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    return ec._Transaction(ctx, sel, v)
}

func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    for _, e := range ret {
        if e == graphql.Null {
            return graphql.Null
        }
    }

    return ret
}

func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    for _, e := range ret {
        if e == graphql.Null {
            return graphql.Null
        }
    }

    return ret
}

func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    for _, e := range ret {
        if e == graphql.Null {
            return graphql.Null
        }
    }

    return ret
}

func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    return ec.___Schema(ctx, sel, v)
}

func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    ret := make(graphql.Array, len(v))
    var wg sync.WaitGroup
    isLen1 := len(v) == 1
    if !isLen1 {
        wg.Add(len(v))
    }
    for i := range v {
        i := i
        fc := &graphql.FieldContext{
            Index:  &i,
            Result: &v[i],
        }
        ctx := graphql.WithFieldContext(ctx, fc)
        f := func(i int) {
            defer func() {
                if r := recover(); r != nil {
                    ec.Error(ctx, ec.Recover(ctx, r))
                    ret = nil
                }
            }()
            if !isLen1 {
                defer wg.Done()
            }
            ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
        }
        if isLen1 {
            f(i)
        } else {
            go f(i)
        }

    }
    wg.Wait()

    for _, e := range ret {
        if e == graphql.Null {
            return graphql.Null
        }
    }

    return ret
}

func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
    if v == nil {
        return graphql.Null
    }
    return ec.___Type(ctx, sel, v)
}

// endregion ***************************** type.gotpl *****************************