Skip to content

feat(agoric): support mint parameter governance updates#75

Open
dckc wants to merge 3 commits into
DCFoundation:mainfrom
agoric-labs:feat-issue-73-mint-params
Open

feat(agoric): support mint parameter governance updates#75
dckc wants to merge 3 commits into
DCFoundation:mainfrom
agoric-labs:feat-issue-73-mint-params

Conversation

@dckc

@dckc dckc commented Feb 28, 2026

Copy link
Copy Markdown
Collaborator

Closes #73

This PR closes #73 by adding working mint-parameter governance updates in the Agoric flow.

User-visible behavior:

  • Adds Mint Parameters support using the governance path required by current Agoric SDK/Cosmos SDK behavior.
  • Editable fields: inflation_min, inflation_max, inflation_rate_change, goal_bonded.
  • Read-only fields shown for context: mint_denom, blocks_per_year.
  • Wallet connect now requires a selected network.
  • Parameter table edits now persist on blur/tab/outside-click (not only Enter/Save).

Validation run locally:

  • yarn lint
  • yarn test
  • yarn run build

@netlify

netlify Bot commented Feb 28, 2026

Copy link
Copy Markdown

Deploy Preview for cosmos-proposal-builder ready!

Name Link
🔨 Latest commit 3a5060b
🔍 Latest deploy log https://app.netlify.com/projects/cosmos-proposal-builder/deploys/69a25e8f5a56360008c5ecef
😎 Deploy Preview https://deploy-preview-75--cosmos-proposal-builder.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dckc dckc force-pushed the feat-issue-73-mint-params branch 3 times, most recently from 5ede41f to 8ef0572 Compare February 28, 2026 02:48
dckc added 3 commits February 27, 2026 21:17
Add end-to-end mint parameter proposal support in the Agoric flow, including
querying, editing, message construction, and user-facing error handling.

This replaces legacy x/params subspace submission for mint changes with the
supported Cosmos SDK v0.50 governance message path:
- submit `/cosmos.gov.v1.MsgSubmitProposal`
- containing `/cosmos.mint.v1beta1.MsgUpdateParams`

Implementation details:
- add `MintParams` typing and mint params query plumbing
- include mint parameters in the parameter-change form and keep
  `mint_denom` and `blocks_per_year` read-only while allowing editable
  inflation/goal values
- resolve gov module authority dynamically from module account query
- merge edited values with current on-chain mint params before submit so all
  required fields are present
- encode LegacyDec fields in atomic 10^18 units for protobuf customtype
  compatibility (`0.003` -> `3000000000000000`)
- preserve existing legacy parameter-change flow for non-mint subspaces
- make mint query e2e assertions resilient to live-chain parameter drift
- improve unknown-subspace errors with concise user-facing messaging

Result:
users can now submit working mint parameter governance proposals on Agoric
networks that use gov-v1 MsgUpdateParams semantics.
Guard wallet connection when no network is selected.

Previously, connect flow attempted to fetch network config with an undefined
network name, producing requests like
`https://undefined.agoric.net/network-config` and a no-op user experience.

New behavior:
- show a clear toast prompting network selection first
- return early without attempting suggest-chain/connect
Commit editable table values when input focus is lost or editing context
changes, not only on Enter/Save click.

This makes parameter editing behave as users expect when tabbing between
fields or clicking elsewhere in the form.
@dckc dckc force-pushed the feat-issue-73-mint-params branch from f35fa89 to 3a5060b Compare February 28, 2026 03:18
@dckc dckc changed the title feat(agoric): add mint parameter change support for inflation settings feat(agoric): support mint parameter governance updates Feb 28, 2026
@dckc dckc marked this pull request as ready for review February 28, 2026 03:26
@dckc

dckc commented Feb 28, 2026

Copy link
Copy Markdown
Collaborator Author

@kriskowal I lack magic powers to add to the requested reviewers list. Do you want to take a look? Do you want to nominate someone?

This is in support of a proposal under discussion by the community, as noted in issue #73.

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