batcher

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batcher

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

Batcher batches signed transactions to the Gno Tendermint node

func NewBatcher

func NewBatcher(cli Client) *Batcher

NewBatcher creates a new Batcher instance

func (*Batcher) BatchTransactions

func (b *Batcher) BatchTransactions(txs []*std.Tx, batchSize int) (*TxBatchResult, error)

BatchTransactions batches provided transactions using the specified batch size

type Client

type Client interface {
	CreateBatch() common.Batch
	GetLatestBlockHeight() (int64, error)
}

type TxBatchResult

type TxBatchResult struct {
	TxHashes   [][]byte // the tx hashes
	StartBlock int64    // the initial block for querying
}

TxBatchResult contains batching results

Jump to

Keyboard shortcuts

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