-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: decouple
x/params
from simapp (#12259)
- Loading branch information
1 parent
4385325
commit 669db98
Showing
16 changed files
with
210 additions
and
68 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,29 @@ | ||
package sims | ||
|
||
// Default simulation operation weights for messages and gov proposals | ||
const ( | ||
DefaultWeightMsgSend int = 100 | ||
DefaultWeightMsgMultiSend int = 10 | ||
DefaultWeightMsgSetWithdrawAddress int = 50 | ||
DefaultWeightMsgWithdrawDelegationReward int = 50 | ||
DefaultWeightMsgWithdrawValidatorCommission int = 50 | ||
DefaultWeightMsgFundCommunityPool int = 50 | ||
DefaultWeightMsgDeposit int = 100 | ||
DefaultWeightMsgVote int = 67 | ||
DefaultWeightMsgVoteWeighted int = 33 | ||
DefaultWeightMsgUnjail int = 100 | ||
DefaultWeightMsgCreateValidator int = 100 | ||
DefaultWeightMsgEditValidator int = 5 | ||
DefaultWeightMsgDelegate int = 100 | ||
DefaultWeightMsgUndelegate int = 100 | ||
DefaultWeightMsgBeginRedelegate int = 100 | ||
DefaultWeightMsgCancelUnbondingDelegation int = 100 | ||
|
||
DefaultWeightCommunitySpendProposal int = 5 | ||
DefaultWeightTextProposal int = 5 | ||
DefaultWeightParamChangeProposal int = 5 | ||
|
||
// feegrant | ||
DefaultWeightGrantAllowance int = 100 | ||
DefaultWeightRevokeAllowance int = 100 | ||
) |
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
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
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
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
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,6 @@ | ||
|
||
# App Wiring | ||
|
||
The minimal app-wiring configuration for `x/params` is as follows: | ||
|
||
+++ https://github.com/cosmos/cosmos-sdk/blob/main/x/params/testutil/app.yaml |
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,41 @@ | ||
modules: | ||
- name: runtime | ||
config: | ||
"@type": cosmos.app.runtime.v1alpha1.Module | ||
|
||
app_name: ParamsApp | ||
|
||
begin_blockers: [staking, auth, bank, genutil, params] | ||
end_blockers: [staking, auth, bank, genutil, params] | ||
init_genesis: [auth, bank, staking, genutil, params] | ||
|
||
- name: auth | ||
config: | ||
"@type": cosmos.auth.module.v1.Module | ||
bech32_prefix: cosmos | ||
module_account_permissions: | ||
- account: fee_collector | ||
- account: bonded_tokens_pool | ||
permissions: [burner, staking] | ||
- account: not_bonded_tokens_pool | ||
permissions: [burner, staking] | ||
|
||
- name: bank | ||
config: | ||
"@type": cosmos.bank.module.v1.Module | ||
|
||
- name: params | ||
config: | ||
"@type": cosmos.params.module.v1.Module | ||
|
||
- name: tx | ||
config: | ||
"@type": cosmos.tx.module.v1.Module | ||
|
||
- name: staking | ||
config: | ||
"@type": cosmos.staking.module.v1.Module | ||
|
||
- name: genutil | ||
config: | ||
"@type": cosmos.genutil.module.v1.Module |
Oops, something went wrong.