Skip to content

Mint PSE module account balances in znet#33

Merged
TxCorpi0x merged 3 commits into
masterfrom
mehdi/pse-znet-clearing-mint
Nov 24, 2025
Merged

Mint PSE module account balances in znet#33
TxCorpi0x merged 3 commits into
masterfrom
mehdi/pse-znet-clearing-mint

Conversation

@TxCorpi0x

@TxCorpi0x TxCorpi0x commented Nov 21, 2025

Copy link
Copy Markdown
Contributor

Description

This pull request introduces support for initializing module accounts with balances as part of the genesis configuration. The main changes involve updating the genesis config structures, adding a new type for module balances, and modifying the genesis initialization logic to handle these accounts.

Genesis configuration enhancements:

  • Added a new ModuleBalance type to represent module accounts and their initial balances in pkg/config/genesis.go.
  • Extended the GenesisInitConfig struct to include a ModuleBalances field, allowing specification of module account balances during genesis initialization.

Genesis initialization logic:

  • Modified the defaultAuthAndBankParams function to create module accounts and assign their initial balances during genesis setup. The accounts are created without permissions, which will be assigned by the app's AccountKeeper later.

Dependency updates:

  • Updated the versions of github.com/tokenize-x/tx-chain/v6, github.com/tokenize-x/tx-crust, and github.com/tokenize-x/tx-crust/znet in build/go.mod to ensure compatibility with the new module account features.

Reviewers checklist:

  • Try to write more meaningful comments with clear actions to be taken.
  • Nit-picking should be unblocking. Focus on core issues.

Authors checklist

  • Provide a concise and meaningful description
  • Review the code yourself first, before making the PR.
  • Annotate your PR in places that require explanation.
  • Think and try to split the PR to smaller PR if it is big.

This change is Reviewable

@TxCorpi0x TxCorpi0x requested review from a team, masihyeganeh, miladz68 and ysv and removed request for a team November 21, 2025 06:10
@TxCorpi0x TxCorpi0x requested a review from a team as a code owner November 21, 2025 06:10

@miladz68 miladz68 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miladz68 reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @masihyeganeh and @ysv)

@ysv ysv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ysv reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @masihyeganeh)

@TxCorpi0x TxCorpi0x merged commit ac70714 into master Nov 24, 2025
9 checks passed
@ysv ysv deleted the mehdi/pse-znet-clearing-mint branch December 19, 2025 14:40
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.

3 participants