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

chore(cairo): fix comps comments #24

Merged
merged 3 commits into from
Mar 9, 2025

Conversation

ishay-starkware
Copy link
Collaborator

@ishay-starkware ishay-starkware commented Mar 6, 2025

This change is Reviewable

Copy link
Collaborator

@MohammadNassar1 MohammadNassar1 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 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @uriel-starkware)


a discussion (no related file):
Please update spec accordingly.


src/components/deposit/deposit.cairo line 23 at r1 (raw file):

    pub struct Storage {
        registered_deposits: Map<HashType, DepositStatus>,
        aggregate_quantized_pending_deposits: Map<felt252, u128>,

Can you please explain why it's okay to remove this map?

Code quote:

aggregate_quantized_pending_deposits: Map<felt252, u128>,

src/components/deposit/errors.cairo line 10 at r1 (raw file):

pub const DEPOSIT_NOT_CANCELABLE: felt252 = 'DEPOSIT_NOT_CANCELABLE';
pub const DEPOSIT_NOT_REGISTERED: felt252 = 'DEPOSIT_NOT_REGISTERED';
pub const INVALID_cancel_delay: felt252 = 'INVALID_cancel_delay';

Please use capital letters.

Code quote:

pub const INVALID_cancel_delay: felt252 = 'INVALID_cancel_delay';

Copy link
Collaborator

@MohammadNassar1 MohammadNassar1 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: all files reviewed, 2 unresolved discussions (waiting on @ishay-starkware and @uriel-starkware)


a discussion (no related file):

Previously, MohammadNassar1 (mohammad-starkware) wrote…

Please update spec accordingly.

Ooh, the specs are not in this repo, removed.

Copy link
Collaborator Author

@ishay-starkware ishay-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: all files reviewed, 2 unresolved discussions (waiting on @MohammadNassar1 and @uriel-starkware)


src/components/deposit/deposit.cairo line 23 at r1 (raw file):

Previously, MohammadNassar1 (mohammad-starkware) wrote…

Can you please explain why it's okay to remove this map?

we decided that it's not relevant. no need to keep track of the pending deposits.


src/components/deposit/errors.cairo line 10 at r1 (raw file):

Previously, MohammadNassar1 (mohammad-starkware) wrote…

Please use capital letters.

Done.

@ishay-starkware ishay-starkware enabled auto-merge (squash) March 8, 2025 21:29
Copy link

codecov bot commented Mar 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@0c97ed1). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #24   +/-   ##
=======================================
  Coverage        ?   87.55%           
=======================================
  Files           ?       38           
  Lines           ?     1318           
  Branches        ?        0           
=======================================
  Hits            ?     1154           
  Misses          ?      164           
  Partials        ?        0           

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@MohammadNassar1 MohammadNassar1 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: all files reviewed, 1 unresolved discussion (waiting on @ishay-starkware and @uriel-starkware)


src/components/deposit/errors.cairo line 10 at r1 (raw file):

Previously, ishay-starkware wrote…

Done.

You didnt push.

Copy link
Collaborator Author

@ishay-starkware ishay-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: 2 of 4 files reviewed, 1 unresolved discussion (waiting on @MohammadNassar1 and @uriel-starkware)


src/components/deposit/errors.cairo line 10 at r1 (raw file):

Previously, MohammadNassar1 (mohammad-starkware) wrote…

You didnt push.

pused now

Copy link
Collaborator

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

@ishay-starkware ishay-starkware merged commit 18e29a0 into main Mar 9, 2025
3 of 4 checks passed
@ishay-starkware ishay-starkware deleted the ishay/cairo/deposit-requests-comments branch March 9, 2025 07:28
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.

2 participants