-
Notifications
You must be signed in to change notification settings - Fork 184
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
breaking: Felt
type migration + 0.7.1
RPC update
#2126
Conversation
Important Review skippedMore than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review. 115 files out of 172 files are above the max files limit of 50. Please upgrade to Pro plan to get higher limits. You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
0.7.1
RPC updateFelt
type migration + 0.7.1
RPC update
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.
@neotheprogramist @glihm does changing the serde from decimal to hex break anything here?
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.
@neotheprogramist the serialization is mostly used to sent this input into the calldata for the world on settlement layer, correct? If yes, not breaking to have hex instead of decimal.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2126 +/- ##
==========================================
- Coverage 68.09% 67.78% -0.32%
==========================================
Files 332 332
Lines 41582 41736 +154
==========================================
- Hits 28316 28289 -27
- Misses 13266 13447 +181 ☔ View full report in Codecov by Sentry. |
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.
🚀 amazing rework mate, thanks for that!
Description
Update of the RPC to be in sync with starknet tools.
Some notable changes:
MaybePendingTransactionReceipt
. Pending or not pending, the receipt is accessible. Then we can check theblock
field to access the block status.V1
andV2
respectively, as new typeV3
is now accessible for all of them.starknet
andStarknet-crypto
.0.6.0
and0.7.1
.Some points to debug:
StarkFelt
conversion forFieldElement
.Starknet 0.7.1 RPC Changes
getTransactionReceipt
return type toTXN_RECEIPT_WITH_BLOCK_INFO
; the receipt now includes information about its block.getBlockWithReceipts
; return block with the tx receipts only (using the old receipt type that doesnt have the block info attached).l1_data_gas_price
,l1_da_mode
) to the block header (including pending)TxFeeInfo
;data_gas_consumed
anddata_gas_price
. specdata_availability
Update crates to the same version of
starknet-rs
:Bump
starknet-rs
->0.11.0
and include the patches specified below if necessary.starknet-rs
to0.11.0
+ migrate to newFelt
type cartridge-gg/cairo-proof-parser#9starknet-rs
to0.11.0
+ migrate to the newFelt
type cartridge-gg/cainome#40starknet-rs
to0.11.0
cartridge-gg/slot#66starknet-rs
to0.11.0
cartridge-gg/controller#433Patches
starknet-types-core
This patch is necessary to de/serialize
Felt
using non human readable encodings (eg.postcard
). The main repo doesn't yet implement it, so we should remove the patch once it is.dojoengine/types-rs@1943cb9
starknet-core
This patch is to:
std
feature onstarknet-types-core
felt
module fromstarknet-types-core
to import theFromStrError
type directly fromstarknet
crate instead of having to manually manage difference imports fromstarknet-types-core
.Remove this patch once the following PR is merged: xJonathanLEI/starknet-rs#615 or similar change is added.