-
Notifications
You must be signed in to change notification settings - Fork 52
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(deps): internalize rpc types #490
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//! This crate is a fork of the original [starknet-types-rpc](https://github.com/starknet-io/types-rs) v0.7.1, | ||
//! which was originally developed by the Starknet team under the MIT license. | ||
//! | ||
//! The original crate is no longer actively maintained, so this fork has been created | ||
//! to ensure continued maintenance and compatibility with our project needs. | ||
//! | ||
//! Original authors: | ||
//! - Pedro Fontana (@pefontana) | ||
//! - Mario Rugiero (@Oppen) | ||
//! - Lucas Levy (@LucasLvy) | ||
//! - Shahar Papini (@spapinistarkware) | ||
//! - Abdelhamid Bakhta (@abdelhamidbakhta) | ||
//! - Dan Brownstein (@dan-starkware) | ||
//! - Federico Carrone (@unbalancedparentheses) | ||
//! - Jonathan Lei (@xJonathanLEI) | ||
//! - Maciej Kamiński (@maciejka) | ||
//! | ||
//! Original repository: https://github.com/starknet-io/types-rs | ||
//! Original version: 0.7.1 | ||
//! License: MIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add this in a .md
at the crate level?
@@ -291,10 +291,10 @@ impl Default for TrieLogConfig { | |||
/// by subscribing to the corresponding channel. | |||
pub struct EventChannels { | |||
/// Broadcast channel that receives all events regardless of their sender's address | |||
all_channels: tokio::sync::broadcast::Sender<EmittedEvent<Felt>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In https://github.dev/jbcaron/types-rs
v0_6_0 :
pub type BlockHash = Felt;
v0_7_1 :
pub type BlockHash<F> = F;
This PR's description says we are following v0_7_1
but the code suggests that we are falling back to v0_6_0
,
Can you clear this confusion @jbcaron ?
Thanks
This seems to be followed throughout the PR.
- BroadcastedInvokeTxn
- EmittedEvent
- AddInvokeTransactionResult
and so on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ve removed the genericity on Felt to simplify the codebase.
That’s why it might seem like we’re falling back to v0_6_0, but it’s intentional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I notice you have also updates the PR description,
looks good to me now!
Pull Request type
Please add the labels corresponding to the type of changes your PR introduces:
What is the current behavior?
Currently, Madara relies on the external starknet-types-rpc crate from the Starknet team, which is no longer actively maintained. This creates a dependency on an unmaintained third-party library for critical RPC types and functionality.
Resolves: #NA
What is the new behavior?
Key changes:
Felt
to reduce complexityDoes this introduce a breaking change?
No
Other information