generated

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	MemPoolTx struct {
		From       func(childComplexity int) int
		Gas        func(childComplexity int) int
		GasPrice   func(childComplexity int) int
		Hash       func(childComplexity int) int
		Input      func(childComplexity int) int
		Nonce      func(childComplexity int) int
		PendingFor func(childComplexity int) int
		Pool       func(childComplexity int) int
		QueuedFor  func(childComplexity int) int
		R          func(childComplexity int) int
		S          func(childComplexity int) int
		To         func(childComplexity int) int
		V          func(childComplexity int) int
		Value      func(childComplexity int) int
	}

	Query struct {
		PendingForLessThan          func(childComplexity int, x string) int
		PendingForMoreThan          func(childComplexity int, x string) int
		PendingFrom                 func(childComplexity int, addr string) int
		PendingTo                   func(childComplexity int, addr string) int
		QueuedForLessThan           func(childComplexity int, x string) int
		QueuedForMoreThan           func(childComplexity int, x string) int
		QueuedFrom                  func(childComplexity int, addr string) int
		QueuedTo                    func(childComplexity int, addr string) int
		TopXPendingWithHighGasPrice func(childComplexity int, x int) int
		TopXPendingWithLowGasPrice  func(childComplexity int, x int) int
		TopXQueuedWithHighGasPrice  func(childComplexity int, x int) int
		TopXQueuedWithLowGasPrice   func(childComplexity int, x int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	PendingForMoreThan(ctx context.Context, x string) ([]*model.MemPoolTx, error)
	PendingForLessThan(ctx context.Context, x string) ([]*model.MemPoolTx, error)
	QueuedForMoreThan(ctx context.Context, x string) ([]*model.MemPoolTx, error)
	QueuedForLessThan(ctx context.Context, x string) ([]*model.MemPoolTx, error)
	PendingFrom(ctx context.Context, addr string) ([]*model.MemPoolTx, error)
	PendingTo(ctx context.Context, addr string) ([]*model.MemPoolTx, error)
	QueuedFrom(ctx context.Context, addr string) ([]*model.MemPoolTx, error)
	QueuedTo(ctx context.Context, addr string) ([]*model.MemPoolTx, error)
	TopXPendingWithHighGasPrice(ctx context.Context, x int) ([]*model.MemPoolTx, error)
	TopXQueuedWithHighGasPrice(ctx context.Context, x int) ([]*model.MemPoolTx, error)
	TopXPendingWithLowGasPrice(ctx context.Context, x int) ([]*model.MemPoolTx, error)
	TopXQueuedWithLowGasPrice(ctx context.Context, x int) ([]*model.MemPoolTx, error)
}

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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