Skip to content

feat(agoric): add mint parameter change support for inflation settings#74

Closed
dckc wants to merge 2 commits into
DCFoundation:mainfrom
agoric-labs:gibson-2025-05-drop-ist
Closed

feat(agoric): add mint parameter change support for inflation settings#74
dckc wants to merge 2 commits into
DCFoundation:mainfrom
agoric-labs:gibson-2025-05-drop-ist

Conversation

@dckc

@dckc dckc commented Feb 28, 2026

Copy link
Copy Markdown
Collaborator

WARNING: Unreviewed LLM output.

Adds mint parameter adjustments support to the Agoric parameter change flow, covering:

  • inflation_min
  • inflation_max
  • inflation_rate_change

Implementation details:

  • adds MintParams typing and mintParamsQuery for /cosmos/mint/v1beta1/params
  • adds selectMintParams to expose only the inflation fields in the form
  • adds a new Mint Parameters descriptor in the Agoric param descriptor list
  • maps submitted keys to legacy chain-compatible param keys:
    • inflation_min -> InflationMin
    • inflation_max -> InflationMax
    • inflation_rate_change -> InflationRateChange
  • adds query e2e coverage for mint params

Validation:

  • yarn lint
  • yarn ts:check

Closes #73

Add mint module support to the Agoric parameter-change proposal flow so users can draft inflation parameter updates from the UI, similar to existing gov voting/tally support.\n\nWhat is included:\n- add MintParams typing for /cosmos/mint/v1beta1/params response shape\n- add mintParamsQuery in lib/queries\n- add selectMintParams selector and limit editable rows to inflation_min, inflation_max, inflation_rate_change\n- add a new "Mint Parameters" descriptor in config/agoric/params so it appears in the Parameter Change Type selector\n- add submit mapping from snake_case API fields to legacy ParameterChangeProposal keys required by chain params updates:\n  - inflation_min -> InflationMin\n  - inflation_max -> InflationMax\n  - inflation_rate_change -> InflationRateChange\n  with subspace "mint" and JSON-stringified values\n- extend query e2e coverage with a mint params snapshot test\n\nWhy this mapping is explicit:\nAgoric governance parameter-change execution uses MsgExecLegacyContent + ParameterChangeProposal key names in PascalCase for mint fields. Historical passed proposals use the exact keys above. Capturing this map in code avoids accidental regressions (for example, submitting snake_case keys that look valid in UI but fail at execution time).\n\nScope notes:\n- this change intentionally does not expose mint_denom, goal_bonded, or blocks_per_year in the editable table because issue DCFoundation#73 requested inflation parameter adjustments specifically\n- existing swingset/gov parameter behavior is unchanged\n\nValidation performed:\n- yarn lint\n- yarn ts:check
@netlify

netlify Bot commented Feb 28, 2026

Copy link
Copy Markdown

Deploy Preview for cosmos-proposal-builder failed.

Name Link
🔨 Latest commit efd032f
🔍 Latest deploy log https://app.netlify.com/projects/cosmos-proposal-builder/deploys/69a236b8216c860008aa40cd

@dckc dckc force-pushed the gibson-2025-05-drop-ist branch from b32afad to 6c9188d Compare February 28, 2026 00:26
Remove `main` from the selectable network list in the network context so
deploy-preview environments cannot target mainnet during manual testing.

This is intentionally a minimal one-file change and easy to revert by
re-adding `"main"` to `_netNames`.

Behavior change:
- `main` no longer appears in the network dropdown
- `?network=main` is treated as invalid and not selected

Rationale:
- reduce risk of accidental mainnet proposal submissions while validating
  preview builds
- keep the change isolated from feature work so it can be removed cleanly
  after testing
@dckc dckc force-pushed the gibson-2025-05-drop-ist branch from 6c9188d to efd032f Compare February 28, 2026 00:28
@dckc dckc closed this Feb 28, 2026
@dckc dckc deleted the gibson-2025-05-drop-ist branch February 28, 2026 00:31
@dckc

dckc commented Feb 28, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #75.\n\nThis PR was auto-closed by GitHub after I renamed the fork head branch. The commits/content are unchanged; please continue review on #75:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🪄 Feature Request:] mint parameter adjustments

1 participant