generated

package
v0.0.0-...-a1ac4f3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 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 {
	Actor struct {
		Balance   func(childComplexity int, unit *model.FilUnit) int
		Code      func(childComplexity int) int
		Head      func(childComplexity int) int
		Height    func(childComplexity int) int
		ID        func(childComplexity int) int
		Nonce     func(childComplexity int) int
		StateRoot func(childComplexity int) int
	}

	Address struct {
		ID     func(childComplexity int) int
		Robust func(childComplexity int) int
	}

	Block struct {
		Cid             func(childComplexity int) int
		ForkSignaling   func(childComplexity int) int
		Height          func(childComplexity int) int
		Messages        func(childComplexity int) int
		Miner           func(childComplexity int) int
		ParentBaseFee   func(childComplexity int) int
		ParentStateRoot func(childComplexity int) int
		ParentWeight    func(childComplexity int) int
		Parents         func(childComplexity int) int
		Timestamp       func(childComplexity int) int
		WinCount        func(childComplexity int) int
	}

	ChainHead struct {
		Height func(childComplexity int) int
	}

	ExecutionTrace struct {
		ExecutionTrace func(childComplexity int) int
	}

	GasCost struct {
		BaseFeeBurn        func(childComplexity int) int
		GasUsed            func(childComplexity int) int
		MinerPenalty       func(childComplexity int) int
		MinerTip           func(childComplexity int) int
		OverEstimationBurn func(childComplexity int) int
		Refund             func(childComplexity int) int
		TotalCost          func(childComplexity int) int
	}

	InvocResult struct {
		ExecutionTrace func(childComplexity int) int
		GasCost        func(childComplexity int) int
		Receipt        func(childComplexity int) int
	}

	Message struct {
		Cid        func(childComplexity int) int
		From       func(childComplexity int) int
		GasCost    func(childComplexity int) int
		GasFeeCap  func(childComplexity int) int
		GasLimit   func(childComplexity int) int
		GasPremium func(childComplexity int) int
		Height     func(childComplexity int) int
		Method     func(childComplexity int) int
		Nonce      func(childComplexity int) int
		Params     func(childComplexity int) int
		Receipt    func(childComplexity int) int
		To         func(childComplexity int) int
		Value      func(childComplexity int) int
		Version    func(childComplexity int) int
	}

	MessageConfirmed struct {
		ActorFamily        func(childComplexity int) int
		ActorName          func(childComplexity int) int
		BaseFeeBurn        func(childComplexity int) int
		Block              func(childComplexity int) int
		Cid                func(childComplexity int) int
		ExitCode           func(childComplexity int) int
		From               func(childComplexity int) int
		GasBurned          func(childComplexity int) int
		GasFeeCap          func(childComplexity int) int
		GasLimit           func(childComplexity int) int
		GasPremium         func(childComplexity int) int
		GasRefund          func(childComplexity int) int
		GasUsed            func(childComplexity int) int
		Height             func(childComplexity int) int
		Method             func(childComplexity int) int
		MethodName         func(childComplexity int) int
		MinerPenalty       func(childComplexity int) int
		MinerTip           func(childComplexity int) int
		Nonce              func(childComplexity int) int
		OverEstimationBurn func(childComplexity int) int
		Params             func(childComplexity int) int
		ParentBaseFee      func(childComplexity int) int
		Refund             func(childComplexity int) int
		SizeBytes          func(childComplexity int) int
		StateRoot          func(childComplexity int) int
		To                 func(childComplexity int) int
		Value              func(childComplexity int) int
		Version            func(childComplexity int) int
	}

	MessagePending struct {
		Cid        func(childComplexity int) int
		From       func(childComplexity int) int
		GasFeeCap  func(childComplexity int) int
		GasLimit   func(childComplexity int) int
		GasPremium func(childComplexity int) int
		Height     func(childComplexity int) int
		Method     func(childComplexity int) int
		Nonce      func(childComplexity int) int
		Params     func(childComplexity int) int
		To         func(childComplexity int) int
		Value      func(childComplexity int) int
		Version    func(childComplexity int) int
	}

	MessageReceipt struct {
		ExitCode func(childComplexity int) int
		GasUsed  func(childComplexity int) int
		Return   func(childComplexity int) int
	}

	MpoolUpdate struct {
		Message func(childComplexity int) int
		Type    func(childComplexity int) int
	}

	MsigTransaction struct {
		Approved     func(childComplexity int) int
		ID           func(childComplexity int) int
		Method       func(childComplexity int) int
		Params       func(childComplexity int) int
		ProposalHash func(childComplexity int) int
		To           func(childComplexity int) int
		Value        func(childComplexity int) int
	}

	Query struct {
		Actor                func(childComplexity int, address string) int
		Actors               func(childComplexity int) int
		Address              func(childComplexity int, str string) int
		Block                func(childComplexity int, address string, height int64) int
		ExecutionTrace       func(childComplexity int, cid string) int
		Gascost              func(childComplexity int, cid string) int
		Message              func(childComplexity int, cid string, height *int) int
		MessageLowConfidence func(childComplexity int, cid string) int
		Messages             func(childComplexity int, address *string, limit *int, offset *int) int
		MessagesByHeight     func(childComplexity int, height uint64, limit *int, offset *int) int
		MessagesConfirmed    func(childComplexity int, address *string, limit *int, offset *int) int
		MpoolPending         func(childComplexity int, address *string) int
		MsigPending          func(childComplexity int, address string) int
		PendingMessage       func(childComplexity int, cid string) int
		PendingMessages      func(childComplexity int, address *string) int
		Receipt              func(childComplexity int, cid string) int
		StateListMessages    func(childComplexity int, address string, lookback *int) int
		StateReplay          func(childComplexity int, cid string) int
		Status               func(childComplexity int) int
		Tipset               func(childComplexity int, height uint64) int
	}

	QueryMessage struct {
		Messages func(childComplexity int) int
	}

	Status struct {
		Estimate func(childComplexity int) int
		Height   func(childComplexity int) int
	}

	Subscription struct {
		ChainHead   func(childComplexity int) int
		Messages    func(childComplexity int) int
		MpoolUpdate func(childComplexity int, address *string) int
		Status      func(childComplexity int) int
	}

	TipSet struct {
		Blks         func(childComplexity int) int
		Cids         func(childComplexity int) int
		Height       func(childComplexity int) int
		Key          func(childComplexity int) int
		MinTimestamp func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MessageConfirmedResolver

type MessageConfirmedResolver interface {
	From(ctx context.Context, obj *model.MessageConfirmed) (*model.Address, error)
	To(ctx context.Context, obj *model.MessageConfirmed) (*model.Address, error)

	MethodName(ctx context.Context, obj *model.MessageConfirmed) (string, error)

	Block(ctx context.Context, obj *model.MessageConfirmed) (*model.Block, error)
}

type MessagePendingResolver

type MessagePendingResolver interface {
	To(ctx context.Context, obj *model.MessagePending) (*model.Address, error)
	From(ctx context.Context, obj *model.MessagePending) (*model.Address, error)
}

type MessageResolver

type MessageResolver interface {
	To(ctx context.Context, obj *model.Message) (*model.Address, error)
	From(ctx context.Context, obj *model.Message) (*model.Address, error)

	GasCost(ctx context.Context, obj *model.Message) (*model.GasCost, error)
	Receipt(ctx context.Context, obj *model.Message) (*model.MessageReceipt, error)
}

type QueryResolver

type QueryResolver interface {
	Status(ctx context.Context) (*model.Status, error)
	Block(ctx context.Context, address string, height int64) (*model.Block, error)
	Tipset(ctx context.Context, height uint64) (*model.TipSet, error)
	Message(ctx context.Context, cid string, height *int) (*model.Message, error)
	Messages(ctx context.Context, address *string, limit *int, offset *int) ([]*model.Message, error)
	MessagesByHeight(ctx context.Context, height uint64, limit *int, offset *int) ([]*model.Message, error)
	PendingMessage(ctx context.Context, cid string) (*model.MessagePending, error)
	PendingMessages(ctx context.Context, address *string) ([]*model.MessagePending, error)
	MpoolPending(ctx context.Context, address *string) ([]*model.MpoolUpdate, error)
	MessagesConfirmed(ctx context.Context, address *string, limit *int, offset *int) ([]*model.MessageConfirmed, error)
	Address(ctx context.Context, str string) (*model.Address, error)
	Gascost(ctx context.Context, cid string) (*model.GasCost, error)
	Receipt(ctx context.Context, cid string) (*model.MessageReceipt, error)
	ExecutionTrace(ctx context.Context, cid string) (*model.ExecutionTrace, error)
	StateReplay(ctx context.Context, cid string) (*model.InvocResult, error)
	Actor(ctx context.Context, address string) (*model.Actor, error)
	Actors(ctx context.Context) ([]*model.Actor, error)
	MsigPending(ctx context.Context, address string) ([]*model.MsigTransaction, error)
	StateListMessages(ctx context.Context, address string, lookback *int) ([]*model.MessageConfirmed, error)
	MessageLowConfidence(ctx context.Context, cid string) (*model.MessageConfirmed, error)
}

type ResolverRoot

type ResolverRoot interface {
	Message() MessageResolver
	MessageConfirmed() MessageConfirmedResolver
	MessagePending() MessagePendingResolver
	Query() QueryResolver
	Subscription() SubscriptionResolver
}

type SubscriptionResolver

type SubscriptionResolver interface {
	Messages(ctx context.Context) (<-chan []*model.Message, error)
	ChainHead(ctx context.Context) (<-chan *model.ChainHead, error)
	MpoolUpdate(ctx context.Context, address *string) (<-chan *model.MpoolUpdate, error)
	Status(ctx context.Context) (<-chan *model.Status, error)
}

Jump to

Keyboard shortcuts

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