-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: demonstrate
app.yaml
instead of app_config.go
- Loading branch information
1 parent
e1c37c1
commit ca8a997
Showing
4 changed files
with
97 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
modules: | ||
- name: runtime | ||
config: | ||
"@type": cosmos.app.runtime.v1alpha1.Module | ||
app_name: MiniApp | ||
# During begin block slashing happens after distr.BeginBlocker so that | ||
# 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] | ||
# 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] | ||
override_store_keys: | ||
- module_name: auth | ||
kv_store_key: acc | ||
|
||
- name: auth | ||
config: | ||
"@type": cosmos.auth.module.v1.Module | ||
bech32_prefix: mini | ||
module_account_permissions: | ||
- account: fee_collector | ||
- account: distribution | ||
- account: bonded_tokens_pool | ||
permissions: [burner, staking] | ||
- account: not_bonded_tokens_pool | ||
permissions: [burner, staking] | ||
|
||
- name: bank | ||
config: | ||
"@type": cosmos.bank.module.v1.Module | ||
blocked_module_accounts_override: | ||
[auth, distribution, bonded_tokens_pool, not_bonded_tokens_pool] | ||
|
||
- name: staking | ||
config: | ||
"@type": cosmos.staking.module.v1.Module | ||
|
||
- name: distribution | ||
config: | ||
"@type": cosmos.distribution.module.v1.Module | ||
|
||
- name: consensus | ||
config: | ||
"@type": cosmos.consensus.module.v1.Module | ||
|
||
- name: genutil | ||
config: | ||
"@type": cosmos.genutil.module.v1.Module | ||
|
||
- name: tx | ||
config: | ||
"@type": cosmos.tx.config.v1.Config |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters