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 Uint64 and Uint128 classes #1247

Merged
merged 7 commits into from
Jan 10, 2024

Conversation

ddoktorski
Copy link
Collaborator

@ddoktorski ddoktorski commented Jan 5, 2024

Related to #1235 and #1243

Introduced changes

  • Introduce classes Uint64 and Uint128 used for correct serialization/deserialization of RPC u64 and u128 types
  • Add NumberAsHex class, from which the Felt, Uint64 and Uint128 classes can inherit. As a result, regex pattern checking has now been added to the Felt type
  • Use TransactionV3Schema to create dict of common fields for broadcasted transaction v3, ideally we should implement similar approach for all transactions

  • This PR contains breaking changes

@ddoktorski ddoktorski force-pushed the ddoktorski/1235-rpc-0.6.0-u64-u128 branch 2 times, most recently from e3b0bf3 to 9ea1d50 Compare January 5, 2024 17:49
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (881f5ae) 89.03% compared to head (2fdc4d5) 98.00%.

Additional details and impacted files
@@               Coverage Diff               @@
##           development    #1247      +/-   ##
===============================================
+ Coverage        89.03%   98.00%   +8.96%     
===============================================
  Files               89       89              
  Lines             4487     4502      +15     
===============================================
+ Hits              3995     4412     +417     
+ Misses             492       90     -402     

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

@ddoktorski ddoktorski mentioned this pull request Jan 5, 2024
1 task
Copy link
Member

@THenry14 THenry14 left a comment

Choose a reason for hiding this comment

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

lgtm, very minor comments

starknet_py/net/schemas/common.py Outdated Show resolved Hide resolved
starknet_py/net/schemas/common.py Outdated Show resolved Hide resolved
starknet_py/net/schemas/common_test.py Show resolved Hide resolved
@ddoktorski ddoktorski force-pushed the ddoktorski/1235-rpc-0.6.0-u64-u128 branch from 9ea1d50 to 6a9447e Compare January 10, 2024 12:21
@ddoktorski ddoktorski changed the base branch from ddoktorski/1235-rpc-0.6.0 to development January 10, 2024 17:32
@ddoktorski ddoktorski force-pushed the ddoktorski/1235-rpc-0.6.0-u64-u128 branch from 6a9447e to be5f2d5 Compare January 10, 2024 18:10
@ddoktorski ddoktorski merged commit 020a0a9 into development Jan 10, 2024
16 checks passed
@ddoktorski ddoktorski deleted the ddoktorski/1235-rpc-0.6.0-u64-u128 branch January 10, 2024 21:29
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