Documentation ¶
Index ¶
- type BlocksProvider
- type BlocksResolver
- func (b *BlocksResolver) XBlock(ctx context.Context, args XBlockArgs) (*XBlock, error)
- func (b *BlocksResolver) XBlockCount(ctx context.Context) (*hexutil.Big, error)
- func (b *BlocksResolver) XBlockRange(ctx context.Context, args XBlockRangeArgs) ([]*XBlock, error)
- func (b *BlocksResolver) XMsgCount(ctx context.Context) (*hexutil.Big, error)
- func (b *BlocksResolver) XReceiptCount(ctx context.Context) (*hexutil.Big, error)
- type Query
- type XBlock
- type XBlockArgs
- type XBlockRangeArgs
- type XMsg
- type XReceipt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlocksProvider ¶
type BlocksProvider interface { XBlock(ctx context.Context, SourceChainID uint64, Height uint64) (*XBlock, bool, error) XBlockRange(ctx context.Context, Amount uint64, Offset uint64) ([]*XBlock, bool, error) XBlockCount(ctx context.Context) (*hexutil.Big, bool, error) XMsgCount(ctx context.Context) (*hexutil.Big, bool, error) XReceiptCount(ctx context.Context) (*hexutil.Big, bool, error) }
type BlocksResolver ¶
type BlocksResolver struct {
BlocksProvider BlocksProvider
}
func (*BlocksResolver) XBlock ¶
func (b *BlocksResolver) XBlock(ctx context.Context, args XBlockArgs) (*XBlock, error)
func (*BlocksResolver) XBlockCount ¶ added in v0.1.2
func (*BlocksResolver) XBlockRange ¶ added in v0.1.2
func (b *BlocksResolver) XBlockRange(ctx context.Context, args XBlockRangeArgs) ([]*XBlock, error)
func (*BlocksResolver) XReceiptCount ¶ added in v0.1.2
type Query ¶
type Query struct {
BlocksResolver
}
type XBlockArgs ¶ added in v0.1.2
type XBlockRangeArgs ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.