refactor(serverv2): remove unused interface methods, honuor context (#22394)
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"cosmossdk.io/core/store"
|
||||
"cosmossdk.io/server/v2/stf"
|
||||
storev2 "cosmossdk.io/store/v2"
|
||||
"cosmossdk.io/store/v2/proof"
|
||||
)
|
||||
|
||||
// NewKVStoreService creates a new KVStoreService.
|
||||
@@ -29,34 +28,12 @@ type Store interface {
|
||||
// version. Must error when the version does not exist.
|
||||
StateAt(version uint64) (store.ReaderMap, error)
|
||||
|
||||
// SetInitialVersion sets the initial version of the store.
|
||||
SetInitialVersion(uint64) error
|
||||
|
||||
// WorkingHash writes the provided changeset to the state and returns
|
||||
// the working hash of the state.
|
||||
WorkingHash(changeset *store.Changeset) (store.Hash, error)
|
||||
|
||||
// Commit commits the provided changeset and returns the new state root of the state.
|
||||
Commit(changeset *store.Changeset) (store.Hash, error)
|
||||
|
||||
// Query is a key/value query directly to the underlying database. This skips the appmanager
|
||||
Query(storeKey []byte, version uint64, key []byte, prove bool) (storev2.QueryResult, error)
|
||||
|
||||
// GetStateStorage returns the SS backend.
|
||||
GetStateStorage() storev2.VersionedWriter
|
||||
|
||||
// GetStateCommitment returns the SC backend.
|
||||
GetStateCommitment() storev2.Committer
|
||||
|
||||
// LoadVersion loads the RootStore to the given version.
|
||||
LoadVersion(version uint64) error
|
||||
|
||||
// LoadLatestVersion behaves identically to LoadVersion except it loads the
|
||||
// latest version implicitly.
|
||||
LoadLatestVersion() error
|
||||
|
||||
// LastCommitID returns the latest commit ID
|
||||
LastCommitID() (proof.CommitID, error)
|
||||
}
|
||||
|
||||
// StoreLoader allows for custom loading of the store, this is useful when upgrading the store from a previous version
|
||||
|
||||
Reference in New Issue
Block a user