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(fee): rename ResourceBoundsMapping => DeprecatedResourceBoundsMapping #504

Merged

Conversation

nimrod-starkware
Copy link
Contributor

@nimrod-starkware nimrod-starkware commented Aug 19, 2024

This change is Reviewable

Copy link

codecov bot commented Aug 19, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 12 lines in your changes missing coverage. Please review.

Project coverage is 76.46%. Comparing base (e2f2f4a) to head (f607fcc).
Report is 2 commits behind head on main.

Files Patch % Lines
...tes/papyrus_protobuf/src/converters/transaction.rs 57.14% 3 Missing and 3 partials ⚠️
crates/starknet_api/src/transaction.rs 0.00% 3 Missing ⚠️
crates/native_blockifier/src/py_declare.rs 0.00% 1 Missing ⚠️
crates/native_blockifier/src/py_deploy_account.rs 0.00% 1 Missing ⚠️
crates/native_blockifier/src/py_invoke_function.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #504      +/-   ##
==========================================
- Coverage   76.46%   76.46%   -0.01%     
==========================================
  Files         349      349              
  Lines       36872    36874       +2     
  Branches    36872    36874       +2     
==========================================
  Hits        28195    28195              
- Misses       6353     6355       +2     
  Partials     2324     2324              

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

@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from 0467b89 to 1f18451 Compare August 19, 2024 11:14
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from fd9e97e to 24e0819 Compare August 19, 2024 11:15
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from 1f18451 to 58bda33 Compare August 19, 2024 11:54
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from 24e0819 to b1beef0 Compare August 19, 2024 11:55
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from 58bda33 to d6c1477 Compare August 19, 2024 12:38
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch 2 times, most recently from 8139ddb to 59b3b0b Compare August 20, 2024 08:38
Copy link
Contributor Author

@nimrod-starkware nimrod-starkware left a comment

Choose a reason for hiding this comment

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

All this PR is doing is renaming ResourceBoundsMapping => DeprecatedResourceBoundsMapping

Reviewable status: 0 of 33 files reviewed, all discussions resolved (waiting on @dorimedini-starkware and @TzahiTaub)

Copy link
Collaborator

@dorimedini-starkware dorimedini-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 33 of 33 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @nimrod-starkware and @TzahiTaub)


crates/papyrus_test_utils/src/lib.rs line 725 at r1 (raw file):

        pub max_price_per_unit: u128,
    }
    pub struct DeprecatedResourceBoundsMapping(pub BTreeMap<Resource, ResourceBounds>);

this type is imported and defined in the same module; why?

Code quote:

pub struct DeprecatedResourceBoundsMapping(pub BTreeMap<Resource, ResourceBounds>);

@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from d6c1477 to 4de6e17 Compare August 20, 2024 10:10
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from 59b3b0b to f902df7 Compare August 20, 2024 10:10
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from 4de6e17 to b64b716 Compare August 20, 2024 10:35
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from f902df7 to 06f10d5 Compare August 20, 2024 10:35
Copy link
Contributor Author

@nimrod-starkware nimrod-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: 32 of 35 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware and @TzahiTaub)


crates/papyrus_test_utils/src/lib.rs line 725 at r1 (raw file):

Previously, dorimedini-starkware wrote…

this type is imported and defined in the same module; why?

It's under a weird macro that generates some trait implementations, all the types here were declared before

Copy link
Collaborator

@dorimedini-starkware dorimedini-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 3 of 3 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from b64b716 to d9382db Compare August 20, 2024 12:38
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from 06f10d5 to 420e3a1 Compare August 20, 2024 12:38
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from d9382db to a8a48f5 Compare August 20, 2024 13:16
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from 420e3a1 to b6332ce Compare August 20, 2024 13:16
Copy link
Collaborator

@dorimedini-starkware dorimedini-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 7 of 7 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from a8a48f5 to d3d02ab Compare August 21, 2024 06:37
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from b6332ce to 91adc91 Compare August 21, 2024 06:38
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from d3d02ab to 3b7454f Compare August 21, 2024 08:31
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from 91adc91 to ca7e160 Compare August 21, 2024 08:31
Copy link
Collaborator

@dorimedini-starkware dorimedini-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 2 of 2 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from 3b7454f to 2f91ef5 Compare August 21, 2024 12:29
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from ca7e160 to 63148b5 Compare August 21, 2024 12:30
Copy link
Collaborator

@dorimedini-starkware dorimedini-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 3 of 3 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from 2f91ef5 to ac66153 Compare August 22, 2024 05:46
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from 63148b5 to 95a4d6e Compare August 22, 2024 05:46
Copy link
Collaborator

@dorimedini-starkware dorimedini-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 2 of 2 files at r6, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/define branch from ac66153 to df36dc5 Compare August 25, 2024 06:26
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from 95a4d6e to a02fbc9 Compare August 25, 2024 06:26
Copy link
Contributor Author

nimrod-starkware commented Aug 25, 2024

Merge activity

  • Aug 25, 3:32 AM EDT: @nimrod-starkware started a stack merge that includes this pull request via Graphite.
  • Aug 25, 3:34 AM EDT: Graphite rebased this pull request as part of a merge.
  • Aug 25, 3:44 AM EDT: Graphite couldn't merge this PR because it was not satisfying all requirements (Failed CI: 'merge-gatekeeper', 'run-tests').

@nimrod-starkware nimrod-starkware changed the base branch from nimrod/resources_enum/define to graphite-base/504 August 25, 2024 07:32
@nimrod-starkware nimrod-starkware changed the base branch from graphite-base/504 to main August 25, 2024 07:32
@nimrod-starkware nimrod-starkware force-pushed the nimrod/resources_enum/rename_resource_bounds_mapping branch from a02fbc9 to f607fcc Compare August 25, 2024 07:33
Copy link
Collaborator

@dorimedini-starkware dorimedini-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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

@nimrod-starkware nimrod-starkware merged commit 618cb78 into main Aug 25, 2024
25 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 27, 2024
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.

2 participants