state

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: GPL-3.0, LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomicRepository

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

AtomicRepository manages the database interactions for atomic operations.

func NewAtomicTxRepository

func NewAtomicTxRepository(db database.Database, codec codec.Manager, lastAcceptedHeight uint64) (*AtomicRepository, error)

NewAtomicTxRepository creates a new AtomicRepository instance

func (*AtomicRepository) GetByHeight

func (a *AtomicRepository) GetByHeight(height uint64) ([]*atomic.Tx, error)

GetByHeight retrieves all atomic transactions at a given height

func (*AtomicRepository) Write

func (a *AtomicRepository) Write(height uint64, txs []*atomic.Tx) error

Write stores atomic transactions at a given height

Jump to

Keyboard shortcuts

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