Documentation ¶
Index ¶
- func EntBlockToGraphQLBlock(block *ent.Block) (*resolvers.XBlock, error)
- func EntMsgToGraphQLXMsg(msg *ent.Msg) (*resolvers.XMsg, error)
- func EntReceiptToGraphQLXReceipt(receipt *ent.Receipt) (*resolvers.XReceipt, error)
- func Uint2Big(u uint64) (big.Int, error)
- func Uint2Hex(u uint64) (hexutil.Big, error)
- type Provider
- func (p Provider) XBlock(ctx context.Context, sourceChainID uint64, height uint64) (*resolvers.XBlock, bool, error)
- func (p Provider) XBlockCount(ctx context.Context) (*hexutil.Big, bool, error)
- func (p Provider) XBlockRange(ctx context.Context, amount uint64, offset uint64) ([]*resolvers.XBlock, bool, error)
- func (p Provider) XMsgCount(ctx context.Context) (*hexutil.Big, bool, error)
- func (p Provider) XReceiptCount(ctx context.Context) (*hexutil.Big, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntBlockToGraphQLBlock ¶ added in v0.1.2
EntBlockToGraphQLBlock converts an ent.Block to a resolvers.XBlock.
func EntMsgToGraphQLXMsg ¶ added in v0.1.2
EntMsgToGraphQLXMsg converts an ent.Msg to a resolvers.XMsg.
func EntReceiptToGraphQLXReceipt ¶ added in v0.1.2
EntReceiptToGraphQLXReceipt converts an ent.Receipt to a resolvers.XReceipt.
Types ¶
type Provider ¶
func (Provider) XBlockCount ¶ added in v0.1.2
func (Provider) XBlockRange ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.