Integrate registry module into the chain
This commit is contained in:
parent
812683724e
commit
f20364de05
@ -15,6 +15,7 @@ import (
|
||||
|
||||
auctionkeeper "git.vdb.to/cerc-io/laconic2d/x/auction/keeper"
|
||||
bondkeeper "git.vdb.to/cerc-io/laconic2d/x/bond/keeper"
|
||||
registrykeeper "git.vdb.to/cerc-io/laconic2d/x/registry/keeper"
|
||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
@ -36,6 +37,7 @@ import (
|
||||
_ "cosmossdk.io/api/cosmos/tx/config/v1" // import for side-effects
|
||||
_ "git.vdb.to/cerc-io/laconic2d/x/auction/module" // import for side-effects
|
||||
_ "git.vdb.to/cerc-io/laconic2d/x/bond/module" // import for side-effects
|
||||
_ "git.vdb.to/cerc-io/laconic2d/x/registry/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
|
||||
@ -76,7 +78,7 @@ type LaconicApp struct {
|
||||
// laconic keepers
|
||||
AuctionKeeper auctionkeeper.Keeper
|
||||
BondKeeper bondkeeper.Keeper
|
||||
// RegistryKeeper registrykeeper.Keeper
|
||||
RegistryKeeper registrykeeper.Keeper
|
||||
// RegistryRecordKeeper registrykeeper.RecordKeeper
|
||||
|
||||
// simulation manager
|
||||
@ -139,6 +141,8 @@ func NewLaconicApp(
|
||||
&app.ConsensusParamsKeeper,
|
||||
&app.AuctionKeeper,
|
||||
&app.BondKeeper,
|
||||
// &app.RegistryRecordKeeper,
|
||||
&app.RegistryKeeper,
|
||||
); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
10
app/app.yaml
10
app/app.yaml
@ -7,10 +7,10 @@ modules:
|
||||
# there is nothing left over in the validator fee pool, so as to keep the CanWithdrawInvariant invariant.
|
||||
# NOTE: staking module is required if HistoricalEntries param > 0
|
||||
begin_blockers: [distribution, staking]
|
||||
end_blockers: [staking, auction]
|
||||
end_blockers: [staking, auction, registry]
|
||||
# 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, auction, bond]
|
||||
init_genesis: [auth, bank, distribution, staking, genutil, auction, bond, registry]
|
||||
override_store_keys:
|
||||
- module_name: auth
|
||||
kv_store_key: acc
|
||||
@ -28,6 +28,9 @@ modules:
|
||||
- account: auction
|
||||
- account: auction_burn
|
||||
- account: bond
|
||||
- account: registry
|
||||
- account: record_rent
|
||||
- account: authority_rent
|
||||
- name: bank
|
||||
config:
|
||||
"@type": cosmos.bank.module.v1.Module
|
||||
@ -54,3 +57,6 @@ modules:
|
||||
- name: auction
|
||||
config:
|
||||
"@type": cerc.auction.module.v1.Module
|
||||
- name: registry
|
||||
config:
|
||||
"@type": cerc.registry.module.v1.Module
|
||||
|
Loading…
Reference in New Issue
Block a user