cosmos-sdk/runtime/environment.go
Marko ca04e1144c
refactor!(core): add in environment bundler of service (#19041)
Co-authored-by: Facundo <facundomedica@gmail.com>
2024-01-30 12:22:35 +00:00

19 lines
543 B
Go

package runtime
import (
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/store"
)
// NewEnvironment creates a new environment for the application
// if memstoreservice is needed, it can be added to the environment: environment.MemStoreService = memstoreservice
func NewEnvironment(kvService store.KVStoreService) appmodule.Environment {
return appmodule.Environment{
EventService: EventService{},
HeaderService: HeaderService{},
BranchService: BranchService{},
GasService: GasService{},
KVStoreService: kvService,
}
}