feat(core): add store API (#14227)

This commit is contained in:
Aaron Craelius
2022-12-15 12:49:43 -05:00
committed by GitHub
parent 5573a2f26b
commit ec73fbdd6f
6 changed files with 214 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package appmodule
import (
"cosmossdk.io/core/intermodule"
"cosmossdk.io/core/store"
)
// Service bundles all the core services provided by a compliant runtime
// implementation into a single services.
//
// NOTE: If new core services are provided after core v1, they shouldn't be added to this
// interface which would be API breaking, but rather a cosmossdk.io/core/appmodule/v2.Service
// should be created which extends this Service interface with new services.
type Service interface {
store.KVStoreService
store.MemoryStoreService
store.TransientStoreService
intermodule.Client
}