Skip to content

Commit 328e1a5

Browse files
Add checkers module.
1 parent 758bc29 commit 328e1a5

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

app/app.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"cosmossdk.io/log"
1414
storetypes "cosmossdk.io/store/types"
1515

16+
checkerskeeper "github.com/alice/checkers/keeper"
1617
"github.com/cosmos/cosmos-sdk/baseapp"
1718
"github.com/cosmos/cosmos-sdk/client"
1819
"github.com/cosmos/cosmos-sdk/codec"
@@ -32,6 +33,7 @@ import (
3233
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
3334

3435
_ "cosmossdk.io/api/cosmos/tx/config/v1" // import for side-effects
36+
_ "github.com/alice/checkers/module" // import for side-effects
3537
_ "github.com/cosmos/cosmos-sdk/x/auth" // import for side-effects
3638
_ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import for side-effects
3739
_ "github.com/cosmos/cosmos-sdk/x/bank" // import for side-effects
@@ -68,6 +70,7 @@ type MiniApp struct {
6870
StakingKeeper *stakingkeeper.Keeper
6971
DistrKeeper distrkeeper.Keeper
7072
ConsensusParamsKeeper consensuskeeper.Keeper
73+
CheckersKeeper checkerskeeper.Keeper
7174

7275
// simulation manager
7376
sm *module.SimulationManager
@@ -127,6 +130,7 @@ func NewMiniApp(
127130
&app.StakingKeeper,
128131
&app.DistrKeeper,
129132
&app.ConsensusParamsKeeper,
133+
&app.CheckersKeeper,
130134
); err != nil {
131135
return nil, err
132136
}

app/app.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ modules:
1010
end_blockers: [staking]
1111
# NOTE: The genutils module must occur after staking so that pools are properly initialized with tokens from genesis accounts.
1212
# NOTE: The genutils module must also occur after auth so that it can access the params from auth.
13-
init_genesis: [auth, bank, distribution, staking, genutil]
13+
init_genesis: [auth, bank, distribution, staking, genutil, checkers]
1414
override_store_keys:
1515
- module_name: auth
1616
kv_store_key: acc
@@ -45,3 +45,6 @@ modules:
4545
- name: tx
4646
config:
4747
"@type": cosmos.tx.config.v1.Config
48+
- name: checkers
49+
config:
50+
"@type": alice.checkers.module.v1.Module

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.21
55
toolchain go1.21.0
66

77
replace (
8+
github.com/alice/checkers => ../checkers-minimal/
89
// Fix upstream GHSA-h395-qcrw-5vmq vulnerability.
910
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
1011
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0
@@ -22,6 +23,7 @@ require (
2223
cosmossdk.io/math v1.2.0
2324
cosmossdk.io/store v1.0.0
2425
cosmossdk.io/tools/confix v0.1.0
26+
github.com/alice/checkers v0.0.0-00010101000000-000000000000
2527
github.com/cometbft/cometbft v0.38.0
2628
github.com/cosmos/cosmos-db v1.0.0
2729
github.com/cosmos/cosmos-sdk v0.50.1

0 commit comments

Comments
 (0)