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

refactor(config): move execution config to default #1828

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

eitanm-starkware
Copy link
Contributor

@eitanm-starkware eitanm-starkware commented Mar 21, 2024

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information


This change is Reviewable

Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.27%. Comparing base (ed9c7ad) to head (a947c5c).
Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1828      +/-   ##
==========================================
+ Coverage   72.04%   73.27%   +1.22%     
==========================================
  Files         142      141       -1     
  Lines       20314    19969     -345     
  Branches    20314    19969     -345     
==========================================
- Hits        14636    14632       -4     
- Misses       3508     3569      +61     
+ Partials     2170     1768     -402     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@yair-starkware yair-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 20 of 23 files at r1, all commit messages.
Reviewable status: 20 of 23 files reviewed, 5 unresolved discussions (waiting on @dan-starkware and @eitanm-starkware)

a discussion (no related file):
Why are there changes related to load_test?



config/default_config.json line 173 at r1 (raw file):

  },
  "rpc.execution_config.eth_fee_contract_address": {
    "description": "For executing transactions, the eth address to receive fees",

The ETH fee token contract address

Code quote:

For executing transactions, the eth address to receive fees

config/default_config.json line 183 at r1 (raw file):

  },
  "rpc.execution_config.strk_fee_contract_address": {
    "description": "For executing transactions, the strk address to receive fees",

The STRK fee token contract address

Code quote:

For executing transactions, the strk address to receive fees

crates/papyrus_execution/src/testing_instances.rs line 34 at r1 (raw file):

/// Creates ExecutionConfig for tests.
pub fn get_mock_execution_config() -> ExecutionConfig {

get_test_execution_config (mock is a different thing)

Can you also add a todo to make the execution tests use the default execution config?

Code quote:

get_mock_execution_config

crates/papyrus_rpc/src/lib.rs line 146 at r1 (raw file):

                &param.description[1..]
            );
        }

Why to do this?

Code quote:

        for param in execution_config_dump.values_mut() {
            param.description = format!(
                "For executing transactions, {}{}",
                param.description[0..1].to_lowercase(),
                &param.description[1..]
            );
        }

@eitanm-starkware eitanm-starkware force-pushed the eitan/move_execution_config_to_default branch 3 times, most recently from 55f4a7f to 434c0f6 Compare March 25, 2024 09:12
Copy link
Contributor Author

@eitanm-starkware eitanm-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: 13 of 23 files reviewed, 5 unresolved discussions (waiting on @dan-starkware and @yair-starkware)

a discussion (no related file):

Previously, yair-starkware (Yair) wrote…

Why are there changes related to load_test?

reverted



config/default_config.json line 173 at r1 (raw file):

Previously, yair-starkware (Yair) wrote…

The ETH fee token contract address

Done.


config/default_config.json line 183 at r1 (raw file):

Previously, yair-starkware (Yair) wrote…

The STRK fee token contract address

Done.


crates/papyrus_execution/src/testing_instances.rs line 34 at r1 (raw file):

Previously, yair-starkware (Yair) wrote…

get_test_execution_config (mock is a different thing)

Can you also add a todo to make the execution tests use the default execution config?

Done.


crates/papyrus_rpc/src/lib.rs line 146 at r1 (raw file):

Previously, yair-starkware (Yair) wrote…

Why to do this?

Reused this style from other dumps

@eitanm-starkware eitanm-starkware force-pushed the eitan/move_execution_config_to_default branch from 434c0f6 to 3bef1c0 Compare March 26, 2024 08:28
@eitanm-starkware eitanm-starkware force-pushed the eitan/move_execution_config_to_default branch from 3bef1c0 to a947c5c Compare March 26, 2024 11:45
Copy link
Contributor

@yair-starkware yair-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 10 of 10 files at r2, 3 of 3 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dan-starkware)

@eitanm-starkware eitanm-starkware added this pull request to the merge queue Mar 28, 2024
Merged via the queue into main with commit f1e9d4f Mar 28, 2024
19 checks passed
@eitanm-starkware eitanm-starkware deleted the eitan/move_execution_config_to_default branch March 28, 2024 11:37
@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2024
@dan-starkware
Copy link
Collaborator

Please revert preset deletion

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