graph

package
v0.0.0-...-20fe128 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 12 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 {
	DelegateCallVoucher struct {
		Destination     func(childComplexity int) int
		Executed        func(childComplexity int) int
		Index           func(childComplexity int) int
		Input           func(childComplexity int) int
		Payload         func(childComplexity int) int
		Proof           func(childComplexity int) int
		TransactionHash func(childComplexity int) int
	}

	DelegateCallVoucherConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	DelegateCallVoucherEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Input struct {
		BlockNumber          func(childComplexity int) int
		BlockTimestamp       func(childComplexity int) int
		DelegateCallVouchers func(childComplexity int, first *int, last *int, after *string, before *string) int
		EspressoBlockNumber  func(childComplexity int) int
		EspressoTimestamp    func(childComplexity int) int
		ID                   func(childComplexity int) int
		Index                func(childComplexity int) int
		InputBoxIndex        func(childComplexity int) int
		MsgSender            func(childComplexity int) int
		Notices              func(childComplexity int, first *int, last *int, after *string, before *string) int
		Payload              func(childComplexity int) int
		PrevRandao           func(childComplexity int) int
		Reports              func(childComplexity int, first *int, last *int, after *string, before *string) int
		Status               func(childComplexity int) int
		Timestamp            func(childComplexity int) int
		Vouchers             func(childComplexity int, first *int, last *int, after *string, before *string) int
	}

	InputConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	InputEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Notice struct {
		Index   func(childComplexity int) int
		Input   func(childComplexity int) int
		Payload func(childComplexity int) int
		Proof   func(childComplexity int) int
	}

	NoticeConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	NoticeEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	PageInfo struct {
		EndCursor       func(childComplexity int) int
		HasNextPage     func(childComplexity int) int
		HasPreviousPage func(childComplexity int) int
		StartCursor     func(childComplexity int) int
	}

	Proof struct {
		OutputHashesSiblings func(childComplexity int) int
		OutputIndex          func(childComplexity int) int
	}

	Query struct {
		DelegateCallVoucher  func(childComplexity int, outputIndex int) int
		DelegateCallVouchers func(childComplexity int, first *int, last *int, after *string, before *string, filter []*model.ConvenientFilter) int
		Input                func(childComplexity int, id string) int
		Inputs               func(childComplexity int, first *int, last *int, after *string, before *string, where *model.InputFilter) int
		Notice               func(childComplexity int, outputIndex int) int
		Notices              func(childComplexity int, first *int, last *int, after *string, before *string) int
		Report               func(childComplexity int, reportIndex int) int
		Reports              func(childComplexity int, first *int, last *int, after *string, before *string) int
		Voucher              func(childComplexity int, outputIndex int) int
		Vouchers             func(childComplexity int, first *int, last *int, after *string, before *string, filter []*model.ConvenientFilter) int
	}

	Report struct {
		Index   func(childComplexity int) int
		Input   func(childComplexity int) int
		Payload func(childComplexity int) int
	}

	ReportConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	ReportEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Voucher struct {
		Destination     func(childComplexity int) int
		Executed        func(childComplexity int) int
		Index           func(childComplexity int) int
		Input           func(childComplexity int) int
		Payload         func(childComplexity int) int
		Proof           func(childComplexity int) int
		TransactionHash func(childComplexity int) int
		Value           func(childComplexity int) int
	}

	VoucherConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	VoucherEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}
}

type Config

type Config struct {
	Schema     *ast.Schema
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DelegateCallVoucherResolver

type DelegateCallVoucherResolver interface {
	Input(ctx context.Context, obj *model.DelegateCallVoucher) (*model.Input, error)
}

type DirectiveRoot

type DirectiveRoot struct {
}

type InputResolver

type InputResolver interface {
	Vouchers(ctx context.Context, obj *model.Input, first *int, last *int, after *string, before *string) (*model.Connection[*model.Voucher], error)
	DelegateCallVouchers(ctx context.Context, obj *model.Input, first *int, last *int, after *string, before *string) (*model.Connection[*model.DelegateCallVoucher], error)
	Notices(ctx context.Context, obj *model.Input, first *int, last *int, after *string, before *string) (*model.Connection[*model.Notice], error)
	Reports(ctx context.Context, obj *model.Input, first *int, last *int, after *string, before *string) (*model.Connection[*model.Report], error)
}

type NoticeResolver

type NoticeResolver interface {
	Input(ctx context.Context, obj *model.Notice) (*model.Input, error)
}

type QueryResolver

type QueryResolver interface {
	Input(ctx context.Context, id string) (*model.Input, error)
	Voucher(ctx context.Context, outputIndex int) (*model.Voucher, error)
	DelegateCallVoucher(ctx context.Context, outputIndex int) (*model.DelegateCallVoucher, error)
	Notice(ctx context.Context, outputIndex int) (*model.Notice, error)
	Report(ctx context.Context, reportIndex int) (*model.Report, error)
	Inputs(ctx context.Context, first *int, last *int, after *string, before *string, where *model.InputFilter) (*model.Connection[*model.Input], error)
	Vouchers(ctx context.Context, first *int, last *int, after *string, before *string, filter []*model.ConvenientFilter) (*model.Connection[*model.Voucher], error)
	DelegateCallVouchers(ctx context.Context, first *int, last *int, after *string, before *string, filter []*model.ConvenientFilter) (*model.Connection[*model.DelegateCallVoucher], error)
	Notices(ctx context.Context, first *int, last *int, after *string, before *string) (*model.Connection[*model.Notice], error)
	Reports(ctx context.Context, first *int, last *int, after *string, before *string) (*model.Connection[*model.Report], error)
}

type ReportResolver

type ReportResolver interface {
	Input(ctx context.Context, obj *model.Report) (*model.Input, error)
}

type ResolverRoot

type ResolverRoot interface {
	DelegateCallVoucher() DelegateCallVoucherResolver
	Input() InputResolver
	Notice() NoticeResolver
	Query() QueryResolver
	Report() ReportResolver
	Voucher() VoucherResolver
}

type VoucherResolver

type VoucherResolver interface {
	Input(ctx context.Context, obj *model.Voucher) (*model.Input, error)
}

Jump to

Keyboard shortcuts

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