diff --git a/app/app.go b/app/app.go index 9a39f6c..f992d4f 100644 --- a/app/app.go +++ b/app/app.go @@ -13,6 +13,7 @@ import ( "cosmossdk.io/log" storetypes "cosmossdk.io/store/types" + checkerskeeper "github.com/alice/checkers/keeper" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -32,6 +33,7 @@ import ( stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" _ "cosmossdk.io/api/cosmos/tx/config/v1" // import for side-effects + _ "github.com/alice/checkers/module" // import for side-effects _ "github.com/cosmos/cosmos-sdk/x/auth" // import for side-effects _ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import for side-effects _ "github.com/cosmos/cosmos-sdk/x/bank" // import for side-effects @@ -68,6 +70,7 @@ type MiniApp struct { StakingKeeper *stakingkeeper.Keeper DistrKeeper distrkeeper.Keeper ConsensusParamsKeeper consensuskeeper.Keeper + CheckersKeeper checkerskeeper.Keeper // simulation manager sm *module.SimulationManager @@ -127,6 +130,7 @@ func NewMiniApp( &app.StakingKeeper, &app.DistrKeeper, &app.ConsensusParamsKeeper, + &app.CheckersKeeper, ); err != nil { return nil, err } diff --git a/app/app.yaml b/app/app.yaml index 120baba..85757c7 100644 --- a/app/app.yaml +++ b/app/app.yaml @@ -10,7 +10,7 @@ modules: end_blockers: [staking] # NOTE: The genutils module must occur after staking so that pools are properly initialized with tokens from genesis accounts. # NOTE: The genutils module must also occur after auth so that it can access the params from auth. - init_genesis: [auth, bank, distribution, staking, genutil] + init_genesis: [auth, bank, distribution, staking, genutil, checkers] override_store_keys: - module_name: auth kv_store_key: acc @@ -45,3 +45,6 @@ modules: - name: tx config: "@type": cosmos.tx.config.v1.Config + - name: checkers + config: + "@type": alice.checkers.module.v1.Module diff --git a/go.mod b/go.mod index 360e3cd..c830e67 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.21 toolchain go1.21.0 replace ( + github.com/alice/checkers => ../checkers-minimal/ // Fix upstream GHSA-h395-qcrw-5vmq vulnerability. // TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409 github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0 @@ -22,6 +23,7 @@ require ( cosmossdk.io/math v1.3.0 cosmossdk.io/store v1.0.2 cosmossdk.io/tools/confix v0.1.1 + github.com/alice/checkers v0.0.0-00010101000000-000000000000 github.com/cometbft/cometbft v0.38.5 github.com/cosmos/cosmos-db v1.0.2 github.com/cosmos/cosmos-sdk v0.50.5