Documentation ¶
Index ¶
- func EntBlockToGraphQLBlock(ctx context.Context, block *ent.Block) (*resolvers.XBlock, error)
- func EntChainToGraphQLChain(chain *ent.Chain) resolvers.Chain
- func EntMsgToGraphQLXMsg(msg *ent.Msg) (*resolvers.XMsg, error)
- func EntMsgToGraphQLXMsgWithEdges(ctx context.Context, msg *ent.Msg) (*resolvers.XMsg, error)
- func EntReceiptToGraphQLXReceipt(ctx context.Context, receipt *ent.Receipt, block *ent.Block) (*resolvers.XReceipt, error)
- type Provider
- func (p Provider) Search(ctx context.Context, query string) (*resolvers.SearchResult, bool, error)
- func (p Provider) SupportedChains(ctx context.Context) ([]*resolvers.Chain, bool, error)
- 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, from uint64, to uint64) ([]*resolvers.XBlock, bool, error)
- func (p Provider) XMsg(ctx context.Context, sourceChainID, destChainID, offset uint64) (*resolvers.XMsg, bool, error)
- func (p Provider) XMsgCount(ctx context.Context) (*hexutil.Big, bool, error)
- func (p Provider) XMsgRange(ctx context.Context, from uint64, to uint64) ([]*resolvers.XMsg, bool, error)
- func (p Provider) XMsgs(ctx context.Context, limit uint64, cursor *uint64) (*resolvers.XMsgResult, bool, error)
- func (p Provider) XReceipt(ctx context.Context, sourceChainID, destChainID, offset uint64) (*resolvers.XReceipt, 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 EntChainToGraphQLChain ¶ added in v0.1.3
func EntMsgToGraphQLXMsg ¶ added in v0.1.2
EntMsgToGraphQLXMsg converts an ent.Msg to a resolvers.XMsg.
func EntMsgToGraphQLXMsgWithEdges ¶ added in v0.1.4
EntMsgToGraphQLXMsg converts an ent.Msg to a resolvers.XMsg.
Types ¶
type Provider ¶
func (Provider) Search ¶ added in v0.1.4
This searches for matches for the following: - Block (finds matching block hash) - Message (finds matching tx hash) - Receipt (finds matching tx hash) TODO (Dan): This is a very naive search implementation. It should be improved. We also should search by address?
func (Provider) SupportedChains ¶ added in v0.1.3
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.