database

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainpointDatabase

type ChainpointDatabase interface {
	GetProofIdsByAggIds(aggIds []string) ([]string, error)
	GetProofsByProofIds(proofIds []string) (map[string]types.ProofState, error)
	GetProofIdsByBtcTxId(btcTxId string) ([]string, error)
	GetCalStateObjectsByAggIds(aggIds []string) ([]types.CalStateObject, error)
	GetAggStateObjectsByProofIds(proofIds []string) ([]types.AggState, error)
	GetAnchorBTCAggStateObjectsByCalIds(calIds []string) ([]types.AnchorBtcAggState, error)
	GetBTCTxStateObjectByAnchorBTCAggId(aggId string) (types.AnchorBtcTxState, error)
	GetBTCTxStateObjectByBtcHeadState(btctx string) (types.AnchorBtcTxState, error)
	BulkInsertProofs(proofs []types.ProofState) error
	BulkInsertAggState(aggStates []types.AggState) error
	BulkInsertCalState(calStates []types.CalStateObject) error
	BulkInsertBtcAggState(aggStates []types.AnchorBtcAggState) error
	BulkInsertBtcTxState(txStates []types.AnchorBtcTxState) error
	PruneOldState()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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