cosmos-sdk/runtime/environment.go
samricotta 33868606a8
feat(mint): add env bundler to mint module (#19398)
Co-authored-by: Marko <marbar3778@yahoo.com>
2024-02-13 23:17:13 +00:00

21 lines
608 B
Go

package runtime
import (
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/store"
"cosmossdk.io/log"
)
// 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, logger log.Logger) appmodule.Environment {
return appmodule.Environment{
EventService: EventService{},
HeaderService: HeaderService{},
BranchService: BranchService{},
GasService: GasService{},
KVStoreService: kvService,
Logger: logger,
}
}