store

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockStore

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

func NewBlockStore

func NewBlockStore(db store.KeyValueReaderWriter) *BlockStore

func (*BlockStore) LatestBlock

func (ns *BlockStore) LatestBlock(sourceDomainID uint8, destinationDomainID uint8) (*big.Int, error)

LatestBlock returns the latest block indexer per router

func (*BlockStore) StoreBlock

func (ns *BlockStore) StoreBlock(sourceDomainID uint8, destinationDomainID uint8, blockNumber *big.Int) error

StoreBlock stores latest block number per route

Jump to

Keyboard shortcuts

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