data

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntBlockToGraphQLBlock added in v0.1.2

func EntBlockToGraphQLBlock(block *ent.Block) (*resolvers.XBlock, error)

EntBlockToGraphQLBlock converts an ent.Block to a resolvers.XBlock.

func EntMsgToGraphQLXMsg added in v0.1.2

func EntMsgToGraphQLXMsg(msg *ent.Msg) (*resolvers.XMsg, error)

EntMsgToGraphQLXMsg converts an ent.Msg to a resolvers.XMsg.

func EntReceiptToGraphQLXReceipt added in v0.1.2

func EntReceiptToGraphQLXReceipt(receipt *ent.Receipt) (*resolvers.XReceipt, error)

EntReceiptToGraphQLXReceipt converts an ent.Receipt to a resolvers.XReceipt.

func Uint2Big added in v0.1.2

func Uint2Big(u uint64) (big.Int, error)

func Uint2Hex added in v0.1.2

func Uint2Hex(u uint64) (hexutil.Big, error)

Types

type Provider

type Provider struct {
	EntClient *ent.Client
}

func (Provider) XBlock

func (p Provider) XBlock(ctx context.Context, sourceChainID uint64, height uint64) (*resolvers.XBlock, bool, error)

func (Provider) XBlockCount added in v0.1.2

func (p Provider) XBlockCount(ctx context.Context) (*hexutil.Big, bool, error)

func (Provider) XBlockRange added in v0.1.2

func (p Provider) XBlockRange(ctx context.Context, amount uint64, offset uint64) ([]*resolvers.XBlock, bool, error)

func (Provider) XMsgCount added in v0.1.2

func (p Provider) XMsgCount(ctx context.Context) (*hexutil.Big, bool, error)

func (Provider) XReceiptCount added in v0.1.2

func (p Provider) XReceiptCount(ctx context.Context) (*hexutil.Big, bool, error)

Jump to

Keyboard shortcuts

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