laconicd/app/app.yaml
Prathamesh Musale debfb82205
All checks were successful
SDK Tests / sdk_tests (push) Successful in 10m32s
SDK Tests / sdk_tests_auctions (push) Successful in 14m45s
Integration Tests / test-integration (push) Successful in 2m55s
E2E Tests / test-e2e (push) Successful in 4m7s
Unit Tests / test-unit (push) Successful in 2m48s
Publish on release / Run docker build and publish (release) Successful in 3m11s
SDK Tests / sdk_tests_nameservice_expiry (push) Successful in 9m33s
Integrate slashing module in the app (#53)
Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675)

Add `slashing` module for penalizing / jailing offline validators
Reference: https://docs.cosmos.network/main/build/modules/slashing#liveness-tracking

Note: Breaking change, an existing chain cannot be run with the updated binary

Reviewed-on: #53
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-08-16 06:23:56 +00:00

72 lines
2.4 KiB
YAML

modules:
- name: runtime
config:
"@type": cosmos.app.runtime.v1alpha1.Module
app_name: LaconicApp
# 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, slashing, staking]
end_blockers: [crisis, 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, slashing, crisis, genutil, auction, bond, registry, onboarding]
override_store_keys:
- module_name: auth
kv_store_key: acc
- name: auth
config:
"@type": cosmos.auth.module.v1.Module
bech32_prefix: laconic
module_account_permissions:
- account: fee_collector
- account: distribution
- account: bonded_tokens_pool
permissions: [burner, staking]
- account: not_bonded_tokens_pool
permissions: [burner, staking]
- account: auction
- account: auction_burn
- account: bond
- account: registry
- account: record_rent
- account: authority_rent
- 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: slashing
config:
"@type": cosmos.slashing.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
- name: crisis
config:
"@type": cosmos.crisis.module.v1.Module
- name: bond
config:
"@type": cerc.bond.module.v1.Module
- name: auction
config:
"@type": cerc.auction.module.v1.Module
- name: registry
config:
"@type": cerc.registry.module.v1.Module
- name: onboarding
config:
"@type": cerc.onboarding.module.v1.Module