Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -68,6 +70,7 @@ type MiniApp struct {
StakingKeeper *stakingkeeper.Keeper
DistrKeeper distrkeeper.Keeper
ConsensusParamsKeeper consensuskeeper.Keeper
CheckersKeeper checkerskeeper.Keeper

// simulation manager
sm *module.SimulationManager
Expand Down Expand Up @@ -127,6 +130,7 @@ func NewMiniApp(
&app.StakingKeeper,
&app.DistrKeeper,
&app.ConsensusParamsKeeper,
&app.CheckersKeeper,
); err != nil {
return nil, err
}
Expand Down
5 changes: 4 additions & 1 deletion app/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -45,3 +45,6 @@ modules:
- name: tx
config:
"@type": cosmos.tx.config.v1.Config
- name: checkers
config:
"@type": alice.checkers.module.v1.Module
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down