2024-11-18 19:04:10 -05:00
|
|
|
package appmodule
|
|
|
|
|
|
|
|
import (
|
|
|
|
"cosmossdk.io/core/event"
|
|
|
|
"cosmossdk.io/core/gas"
|
|
|
|
"cosmossdk.io/core/header"
|
|
|
|
"cosmossdk.io/core/store"
|
|
|
|
|
2025-01-06 12:06:10 -05:00
|
|
|
"github.com/onsonr/sonr/internal/branch"
|
|
|
|
"github.com/onsonr/sonr/internal/log"
|
|
|
|
"github.com/onsonr/sonr/internal/router"
|
|
|
|
"github.com/onsonr/sonr/internal/transaction"
|
2024-11-18 19:04:10 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
// Environment is used to get all services to their respective module.
|
|
|
|
// Contract: All fields of environment are always populated by runtime.
|
|
|
|
type Environment struct {
|
|
|
|
Logger log.Logger
|
|
|
|
|
|
|
|
BranchService branch.Service
|
|
|
|
EventService event.Service
|
|
|
|
GasService gas.Service
|
|
|
|
HeaderService header.Service
|
|
|
|
QueryRouterService router.Service
|
|
|
|
MsgRouterService router.Service
|
|
|
|
TransactionService transaction.Service
|
|
|
|
|
|
|
|
KVStoreService store.KVStoreService
|
|
|
|
MemStoreService store.MemoryStoreService
|
|
|
|
}
|