-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[CORE-538] Have testing genesis.sh match expected gov parameters for 0.50 #935
Conversation
WalkthroughThe update to the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to filter (1)
- protocol/scripts/genesis/sample_pregenesis.json
Files selected for processing (1)
- protocol/testing/genesis.sh (1 hunks)
Additional comments: 2
protocol/testing/genesis.sh (2)
87-99: The changes to the
edit_genesis
function include setting the native token denomination for thegov
module, adjusting deposit and voting periods, setting the initial deposit ratio, disabling proposal cancellation, and modifying the threshold for expedited proposal approval. Ensure that these values are consistent with the intended governance parameters and that the syntax for thedasel
commands is correct.102-102: The
unbonding_time
for thestaking
module is set to 21 days (1814400s
). Confirm that this duration aligns with the governance policies and that the value is correctly formatted in seconds.
protocol/testing/genesis.sh
Outdated
@@ -85,13 +85,18 @@ function edit_genesis() { | |||
|
|||
# Update gov module. | |||
dasel put -t string -f "$GENESIS" '.app_state.gov.params.min_deposit.[0].denom' -v "$NATIVE_TOKEN" | |||
dasel put -t string -f "$GENESIS" '.app_state.gov.params.expedited_min_deposit.[0].denom' -v "$NATIVE_TOKEN" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- protocol/testing/genesis.sh (1 hunks)
Additional comments: 8
protocol/testing/genesis.sh (8)
- 88-88: The addition of the
expedited_min_deposit
parameter with the native token denomination aligns with the PR objectives to update governance parameters.- 89-89: The reduction of the
max_deposit_period
to '300s' is consistent with the PR's aim to adjust governance parameters.- 90-90: Setting the
expedited_voting_period
to '60s' is in line with the intended changes to governance parameters.- 91-91: Adjusting the
voting_period
to '300s' matches the PR's goal to modify governance module parameters.- 92-92: The
min_initial_deposit_ratio
is set to '0.20000', which is intended to prevent spamming by requiring a 20% initial deposit, aligning with the PR objectives.- 97-97: Setting the
proposal_cancel_ratio
to '1' effectively disables proposal cancellation, which is a deliberate change according to the PR description.- 99-99: The
expedited_threshold
is set to '0.75000', meaning a 75% vote requirement for expedited proposals to pass, which is consistent with the PR's changes.- 100-100: Updating the
unbonding_time
in the staking module to '1814400s' (21 days) is in accordance with the PR's objectives to adjust staking parameters.
Changelist
[CORE-538] Have testing genesis.sh match expected gov parameters for 0.50
Test Plan
Updated existing test result
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.