Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move pre-defined account components' source code into masm files #960

Merged
merged 6 commits into from
Nov 11, 2024

Conversation

PhilippGackstatter
Copy link
Contributor

@PhilippGackstatter PhilippGackstatter commented Nov 7, 2024

Closes #950

Move source code into masm files

Moves the source code of pre-defined account components into masm files in the asm/account_components directory. The build.rs script will build all files in that directory.

@bobbinth bobbinth changed the base branch from main to next November 8, 2024 23:39
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Thank you! Looks good. I left a few comments inline.

miden-lib/src/accounts/wallets/mod.rs Outdated Show resolved Hide resolved
Comment on lines 33 to 34
/// This can be used in the assembly of programs that want to call procedures from this
/// component.
Copy link
Contributor

Choose a reason for hiding this comment

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

One thing to note is that all the procedures in the basic wallet are just re-exports from miden-lib, and so if miden-lib is imported into an assembler, there is no need to import basic wallet code separately.

On the other hand, basic wallet code relies on miden-lib, so - importing it without importing miden-lib will not be sufficient.

We should probably adjust the comment to reflect the above.

miden-lib/src/accounts/faucets/mod.rs Outdated Show resolved Hide resolved
miden-lib/src/accounts/auth/mod.rs Outdated Show resolved Hide resolved
miden-lib/build.rs Outdated Show resolved Hide resolved
miden-lib/build.rs Outdated Show resolved Hide resolved
@PhilippGackstatter PhilippGackstatter force-pushed the pgackst-account-components-build branch from a592b03 to 005e79e Compare November 11, 2024 08:09
@PhilippGackstatter PhilippGackstatter added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Nov 11, 2024
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

All looks good! Thank you!

@bobbinth bobbinth merged commit 31b1d7a into next Nov 11, 2024
9 checks passed
@bobbinth bobbinth deleted the pgackst-account-components-build branch November 11, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog This PR does not require an entry in the `CHANGELOG.md` file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move pre-defined account component's source code into masm files
2 participants