node

package
v0.0.0-...-b4b7c53 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(
	ctx context.Context,
	log zerolog.Logger,
	client client.Client,
	store *account.Store,
	pool *tx.Pool,
) error

Reader listens to committed blocks to the Celestia blockchain and updates the balances of accounts in its store

func Sync

func Sync(
	ctx context.Context,
	log zerolog.Logger,
	client client.Client,
	store *account.Store,
	pool *tx.Pool,
	signer string,
	fromHeight, toHeight uint64,
) error

Types

type FeeMonitor

type FeeMonitor struct {
	// contains filtered or unexported fields
}

func NewFeeMonitor

func NewFeeMonitor(ctx context.Context, conn *grpc.ClientConn) (*FeeMonitor, error)

func (*FeeMonitor) EstimateGas

func (fm *FeeMonitor) EstimateGas(ctx context.Context, txBytes []byte) (uint64, error)

func (*FeeMonitor) GasPrice

func (fm *FeeMonitor) GasPrice() float64

type Releaser

type Releaser struct {
	// contains filtered or unexported fields
}

func NewReleaser

func NewReleaser(client client.Client, delay time.Duration, trigger TriggerFn) *Releaser

func (*Releaser) Start

func (r *Releaser) Start(ctx context.Context) error

type TriggerFn

type TriggerFn func() error

TriggerFn is the function that is invoked by the releaser. An error here will cause the releaser to stop and error out.

Jump to

Keyboard shortcuts

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