Documentation ¶
Index ¶
- type Chain
- type FilterInput
- type Long
- type PageInfo
- type QueryResolver
- func (r *QueryResolver) Stats(ctx context.Context) StatsResult
- func (r *QueryResolver) SupportedChains(ctx context.Context) []Chain
- func (r *QueryResolver) XBlock(ctx context.Context, args struct{ ... }) *XBlock
- func (r *QueryResolver) Xmsgs(ctx context.Context, args XMsgsArgs) (XMsgConnection, error)
- func (r *QueryResolver) Xreceipt(ctx context.Context, args struct{ ... }) *XReceipt
- type Resolver
- type StatsResult
- type Status
- type StreamStats
- type XBlock
- type XMsg
- type XMsgConnection
- type XMsgEdge
- type XMsgsArgs
- type XReceipt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterInput ¶
type Long ¶
type Long uint64
Implements the graphql.Marshaler interface for the Long type.
func (Long) ImplementsGraphQLType ¶
func (Long) MarshalJSON ¶
func (*Long) UnmarshalGraphQL ¶
type QueryResolver ¶
type QueryResolver struct { Chains []Chain StatsResult StatsResult XBlocks []XBlock }
Define the Go struct for the Query type.
func (*QueryResolver) Stats ¶
func (r *QueryResolver) Stats(ctx context.Context) StatsResult
func (*QueryResolver) SupportedChains ¶
func (r *QueryResolver) SupportedChains(ctx context.Context) []Chain
Implement the supportedChains query resolver.
func (*QueryResolver) XBlock ¶
func (r *QueryResolver) XBlock(ctx context.Context, args struct{ ChainID, Height hexutil.Big }) *XBlock
Implement the xblock query resolver.
func (*QueryResolver) Xmsgs ¶
func (r *QueryResolver) Xmsgs(ctx context.Context, args XMsgsArgs) (XMsgConnection, error)
Implement the xmsg query resolver.
type StatsResult ¶
type StatsResult struct { TotalMsgs Long TopStreams []StreamStats }
Define the Go struct for the StatsResult type.
type StreamStats ¶
Define the Go struct for the StreamStats type.
type XBlock ¶
type XBlock struct { ID graphql.ID ChainID hexutil.Big Height hexutil.Big Hash common.Hash Messages []XMsg Timestamp graphql.Time URL string // contains filtered or unexported fields }
Define the Go struct for the XBlock type.
type XMsg ¶
type XMsg struct { ID graphql.ID Block XBlock To common.Address ToURL string DestChainID hexutil.Big GasLimit hexutil.Big DisplayID string Offset hexutil.Big Receipt *XReceipt Sender common.Address SenderURL string SourceChainID hexutil.Big Status Status TxHash common.Hash TxURL string // contains filtered or unexported fields }
Define the Go struct for the XMsg type.
func (XMsg) SourceChain ¶
type XMsgConnection ¶
Define the Go struct for the XMsgConnection type.
type XMsgEdge ¶
type XMsgEdge struct { Cursor graphql.ID Node XMsg }
Define the Go struct for the XMsgEdge type.
type XMsgsArgs ¶
type XMsgsArgs struct { Filters *[]FilterInput First *int32 After *graphql.ID Last *int32 Before *graphql.ID }
type XReceipt ¶
type XReceipt struct { ID graphql.ID GasUsed hexutil.Big Success bool Relayer common.Address SourceChainID hexutil.Big DestChainID hexutil.Big Offset hexutil.Big TxHash common.Hash TxURL string Timestamp graphql.Time RevertReason *string // contains filtered or unexported fields }
Define the Go struct for the XReceipt type.
func (*XReceipt) SourceChain ¶
Click to show internal directories.
Click to hide internal directories.