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

feat(blockifier): add config- allowlist of contracts to compile natively #4552

Conversation

avivg-starkware
Copy link
Contributor

@avivg-starkware avivg-starkware commented Mar 1, 2025

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

avivg-starkware commented Mar 1, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/native_compile_multiple_contracts branch from e742340 to c07fc80 Compare March 1, 2025 12:50
@avivg-starkware avivg-starkware changed the title feat(blockifier): list feat(blockifier): add config- allowlist of contracts to compile natively Mar 1, 2025
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/native_compile_multiple_contracts branch 3 times, most recently from b47b6c5 to b9fadaa Compare March 2, 2025 08:21
Copy link
Contributor Author

@avivg-starkware avivg-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion


crates/blockifier/src/blockifier/config.rs line 190 at r1 (raw file):

            ParamPrivacyInput::Public,
        )]);
        dump

I am unsure about this change - whether ser_optional_param is preferable here.
I am especially concerned about not being able to differentiate while looking at the config JSON between an empty list and None

Code quote:

        dump.extend([ser_param(
            "contract_to_compile_natively",
            &serialize_optional_vec_class_hash(&self.contract_to_compile_natively),
            "Contracts to compile natively (None means all).",
            ParamPrivacyInput::Public,
        )]);
        dump

Copy link
Contributor

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 5 files at r1, all commit messages.
Reviewable status: 4 of 5 files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @noaov1)

Copy link
Contributor

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @noaov1)

@avivg-starkware avivg-starkware changed the base branch from avivg/blockifier/contract_to_compile_natively to graphite-base/4552 March 2, 2025 10:57
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/native_compile_multiple_contracts branch from b9fadaa to 09f6611 Compare March 2, 2025 14:52
@avivg-starkware avivg-starkware changed the base branch from graphite-base/4552 to avivg/blockifier/contract_to_compile_natively March 2, 2025 14:53
@github-actions github-actions bot locked and limited conversation to collaborators Mar 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants