Documentation ¶
Index ¶
- type Config
- type Exporter
- type IavlTree
- func (t *IavlTree) Close() error
- func (t *IavlTree) Commit() ([]byte, uint64, error)
- func (t *IavlTree) Export(version uint64) (commitment.Exporter, error)
- func (t *IavlTree) Get(version uint64, key []byte) ([]byte, error)
- func (t *IavlTree) GetLatestVersion() uint64
- func (t *IavlTree) GetProof(version uint64, key []byte) (*ics23.CommitmentProof, error)
- func (t *IavlTree) Hash() []byte
- func (t *IavlTree) Import(version uint64) (commitment.Importer, error)
- func (t *IavlTree) LoadVersion(version uint64) error
- func (t *IavlTree) PausePruning(pause bool)
- func (t *IavlTree) Prune(version uint64) error
- func (t *IavlTree) Remove(key []byte) error
- func (t *IavlTree) Set(key, value []byte) error
- func (t *IavlTree) SetInitialVersion(version uint64) error
- func (t *IavlTree) WorkingHash() []byte
- type Importer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { CacheSize int `mapstructure:"cache_size"` SkipFastStorageUpgrade bool `mapstructure:"skip_fast_storage_upgrade"` }
Config is the configuration for the IAVL tree.
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is a wrapper around iavl.Exporter.
func (*Exporter) Next ¶
func (e *Exporter) Next() (*snapshotstypes.SnapshotIAVLItem, error)
Next returns the next item in the exporter.
type IavlTree ¶
type IavlTree struct {
// contains filtered or unexported fields
}
IavlTree is a wrapper around iavl.MutableTree.
func NewIavlTree ¶
NewIavlTree creates a new IavlTree instance.
func (*IavlTree) Commit ¶
Commit commits the current state to the tree.
func (*IavlTree) Export ¶
func (t *IavlTree) Export(version uint64) (commitment.Exporter, error)
Export exports the tree exporter at the given version.
func (*IavlTree) GetLatestVersion ¶
GetLatestVersion returns the latest version of the tree.
func (*IavlTree) GetProof ¶
GetProof returns a proof for the given key and version.
func (*IavlTree) Hash ¶
Hash returns the hash of the latest saved version of the tree.
func (*IavlTree) Import ¶
func (t *IavlTree) Import(version uint64) (commitment.Importer, error)
Import imports the tree importer at the given version.
func (*IavlTree) LoadVersion ¶
LoadVersion loads the state at the given version.
func (*IavlTree) PausePruning ¶
PausePruning pauses the pruning process.
func (*IavlTree) Prune ¶
Prune prunes all versions up to and including the provided version.
func (*IavlTree) Remove ¶
Remove removes the given key from the tree.
func (*IavlTree) Set ¶
Set sets the given key-value pair in the tree.
func (*IavlTree) SetInitialVersion ¶
SetInitialVersion sets the initial version of the database.
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
Importer is a wrapper around iavl.Importer.
func (*Importer) Add ¶
func (i *Importer) Add(item *snapshotstypes.SnapshotIAVLItem) error
Add adds the given item to the importer.