feat: decouple x/nft from simapp (#12233)
This commit is contained in:
+14
-8
@@ -3,11 +3,11 @@ modules:
|
||||
config:
|
||||
"@type": cosmos.app.runtime.v1alpha1.Module
|
||||
|
||||
app_name: NftApp
|
||||
app_name: NFTApp
|
||||
|
||||
begin_blockers: [staking, auth, bank, genutil, nft, params]
|
||||
end_blockers: [staking, auth, bank, genutil, nft, params]
|
||||
init_genesis: [auth, bank, staking, genutil, nft, params]
|
||||
begin_blockers: [mint, staking, auth, bank, mint, genutil, nft, params]
|
||||
end_blockers: [mint, staking, auth, bank, mint, genutil, nft, params]
|
||||
init_genesis: [auth, bank, mint, staking, mint, genutil, nft, params]
|
||||
|
||||
- name: auth
|
||||
config:
|
||||
@@ -15,6 +15,8 @@ modules:
|
||||
bech32_prefix: cosmos
|
||||
module_account_permissions:
|
||||
- account: fee_collector
|
||||
- account: mint
|
||||
permissions: [minter]
|
||||
- account: bonded_tokens_pool
|
||||
permissions: [burner, staking]
|
||||
- account: not_bonded_tokens_pool
|
||||
@@ -33,10 +35,6 @@ modules:
|
||||
config:
|
||||
"@type": cosmos.tx.module.v1.Module
|
||||
|
||||
- name: nft
|
||||
config:
|
||||
"@type": cosmos.nft.module.v1.Module
|
||||
|
||||
- name: staking
|
||||
config:
|
||||
"@type": cosmos.staking.module.v1.Module
|
||||
@@ -44,3 +42,11 @@ modules:
|
||||
- name: genutil
|
||||
config:
|
||||
"@type": cosmos.genutil.module.v1.Module
|
||||
|
||||
- name: mint
|
||||
config:
|
||||
"@type": cosmos.mint.module.v1.Module
|
||||
|
||||
- name: nft
|
||||
config:
|
||||
"@type": cosmos.nft.module.v1.Module
|
||||
|
||||
@@ -4,6 +4,14 @@ import (
|
||||
_ "embed"
|
||||
|
||||
"cosmossdk.io/core/appconfig"
|
||||
_ "github.com/cosmos/cosmos-sdk/x/auth"
|
||||
_ "github.com/cosmos/cosmos-sdk/x/auth/tx/module"
|
||||
_ "github.com/cosmos/cosmos-sdk/x/bank"
|
||||
_ "github.com/cosmos/cosmos-sdk/x/genutil"
|
||||
_ "github.com/cosmos/cosmos-sdk/x/mint"
|
||||
_ "github.com/cosmos/cosmos-sdk/x/nft/module"
|
||||
_ "github.com/cosmos/cosmos-sdk/x/params"
|
||||
_ "github.com/cosmos/cosmos-sdk/x/staking"
|
||||
)
|
||||
|
||||
//go:embed app.yaml
|
||||
|
||||
Reference in New Issue
Block a user