db

package
v0.0.0-...-e8e2c10 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVAANotFound = errors.New("requested VAA not found in store")
)

Functions

func VaaIDFromVAA

func VaaIDFromVAA(v *vaa.VAA) *vaa.VAAID

Types

type Database

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

func Open

func Open(path string) (*Database, error)

func (*Database) Close

func (d *Database) Close() error

func (*Database) FindEmitterSequenceGap

func (d *Database) FindEmitterSequenceGap(prefix vaa.VAAID) (resp []uint64, firstSeq uint64, lastSeq uint64, err error)

func (*Database) GetGovernanceVAABatch

func (d *Database) GetGovernanceVAABatch(governanceChainId vaa.ChainID, governanceEmitter vaa.Address, sequences []uint64) ([]*GovernanceVAA, error)

func (*Database) GetSignedVAABytes

func (d *Database) GetSignedVAABytes(id vaa.VAAID) (b []byte, err error)

func (*Database) StoreSignedVAA

func (d *Database) StoreSignedVAA(v *vaa.VAA) error

type GovernanceVAA

type GovernanceVAA struct {
	TargetChain vaa.ChainID
	Sequence    uint64
	VaaBytes    []byte
}

Jump to

Keyboard shortcuts

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