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

Add support to Pathfinder v0_8 #456

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

GMKrieger
Copy link
Collaborator

Issue Number: N/A

Type

  • feature
  • bugfix
  • dev (no functional changes, no API changes)
  • fmt (formatting, renaming)
  • build
  • docs
  • testing

Description

Adds support for pathfinder v0_8. It coalesces the 2 types of request on the client and then converts the new version to the one supported by snos.

Breaking changes?

  • yes
  • no

@GMKrieger GMKrieger self-assigned this Dec 30, 2024
Copy link
Collaborator

@whichqua whichqua left a comment

Choose a reason for hiding this comment

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

Left some thoughts, let me know what you think.

crates/rpc-client/src/client.rs Outdated Show resolved Hide resolved
crates/rpc-client/src/client.rs Outdated Show resolved Hide resolved
crates/rpc-client/src/client.rs Outdated Show resolved Hide resolved
#[case::missing_constant_max_high(164684)]
#[case::retdata_not_a_relocatable(160033)]
#[case::get_tx_info_using_ptr_over_relocatable(243766)]
#[case::small_block_with_only_invoke_txs(76793, "v0_7")]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this mean these tests cannot be run on v0.8?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They should be able to run on v0_8, but they were not made for that, therefore I left them using the old version to maintain their original purpose and added new tests (that repeat some of the old tests that had errors when first developing) on the new api.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that it would be good to have a default variable that is set to "v0_7" and maybe put all the "v0_8" tests in a different file / different test. So, once the v0.8 is working for all the tests, we can just replace the default. Besides, it's a little bit cleaner

crates/rpc-client/src/pathfinder/proofs.rs Outdated Show resolved Hide resolved
crates/rpc-client/src/pathfinder/proofs.rs Outdated Show resolved Hide resolved
crates/rpc-client/src/pathfinder/proofs.rs Outdated Show resolved Hide resolved
crates/rpc-client/src/pathfinder/proofs.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@glihm glihm left a comment

Choose a reason for hiding this comment

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

@GMKrieger for this PR we may also take in account that we only have one proof now for all the keys, instead of individual proofs, which should change the verification function according to that to accept the union path returned by the RPC call.

@GMKrieger GMKrieger force-pushed the feat/pathfinder_v0_8 branch from 65f0c56 to 08ba11a Compare January 8, 2025 19:12
#[case::missing_constant_max_high(164684)]
#[case::retdata_not_a_relocatable(160033)]
#[case::get_tx_info_using_ptr_over_relocatable(243766)]
#[case::small_block_with_only_invoke_txs(76793, "v0_7")]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that it would be good to have a default variable that is set to "v0_7" and maybe put all the "v0_8" tests in a different file / different test. So, once the v0.8 is working for all the tests, we can just replace the default. Besides, it's a little bit cleaner

@GMKrieger GMKrieger force-pushed the feat/pathfinder_v0_8 branch from 08ba11a to 3f291a9 Compare January 8, 2025 21:01
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.

4 participants