Skip to content

Conversation

@DeVikingMark
Copy link

Description

Split the large $kernel::account module into submodules to improve code organization and maintainability. Closes #2146

Changes

  • Created account/storage.masm - storage-related procedures (get_item, set_item, get_map_item, etc.)
  • Created account/vault.masm - vault-related procedures (add_asset_to_vault, get_balance, etc.)
  • Created account/code.masm - code-related procedures (authenticate_and_track_procedure, has_procedure, etc.)
  • Created account/mod.masm - main module with commitments, validation, data loaders, and re-exports
  • Removed original account.masm file

@bobbinth
Copy link
Contributor

Thank you! This will conflict with a couple of things currently in progress. Could you rebase this on top of #2197?

@DeVikingMark DeVikingMark force-pushed the refactor/account-submodules branch from ac31446 to eb3c574 Compare December 20, 2025 21:44
@DeVikingMark DeVikingMark force-pushed the refactor/account-submodules branch from eb3c574 to ee72c2d Compare December 20, 2025 21:48
@DeVikingMark
Copy link
Author

Thank you! This will conflict with a couple of things currently in progress. Could you rebase this on top of #2197?

Hey boss! Is everything correct now?

@mmagician
Copy link
Contributor

The current changes seem to only add new code, whereas splitting would typically involve moving files (some code deleted, some added).
If you intend to continue this PR, please make sure to self-review the changes before requesting further reviews from the team - thank you!

@mmagician mmagician marked this pull request as draft December 22, 2025 12:12
@DeVikingMark DeVikingMark marked this pull request as ready for review January 9, 2026 21:23
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.

Split $kernel::account into sub modules

3 participants