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

Support RPC 0.2.1 + drop deploy transaction #212

Merged
merged 17 commits into from Jan 12, 2023

Conversation

THenry14
Copy link
Member

@THenry14 THenry14 commented Dec 13, 2022

Describe your changes

This PR introduces support for RPC 0.2.1 spec and drops support for deploy transaction (gateway + rpc).

Linked issues

Closes #146
Closes #148
Closes #190
Closes #184
Closes #202

Breaking changes

  • This issue contains breaking changes

  • RPC 0.1.0 support is dropped

  • provider.deployContract is dropped

@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2022

Codecov Report

Base: 70.69% // Head: 70.19% // Decreases project coverage by -0.50% ⚠️

Coverage data is based on head (4631f70) compared to base (a96b836).
Patch coverage: 54.24% of modified lines in pull request are covered.

Additional details and impacted files
@@                 Coverage Diff                 @@
##           milestone/0.4.0     #212      +/-   ##
===================================================
- Coverage            70.69%   70.19%   -0.51%     
===================================================
  Files                   56       58       +2     
  Lines                 1573     1778     +205     
  Branches               114      117       +3     
===================================================
+ Hits                  1112     1248     +136     
- Misses                 430      492      +62     
- Partials                31       38       +7     
Impacted Files Coverage Δ
...lin/com/swmansion/starknet/data/types/Responses.kt 25.42% <4.22%> (-26.37%) ⬇️
...knet/data/types/transactions/TransactionReceipt.kt 22.22% <9.67%> (+5.40%) ⬆️
...on/starknet/data/types/transactions/Transaction.kt 62.85% <29.26%> (-7.00%) ⬇️
.../kotlin/com/swmansion/starknet/data/types/Event.kt 31.57% <33.33%> (+1.57%) ⬆️
...lin/com/swmansion/starknet/data/types/Contracts.kt 49.35% <37.03%> (+11.54%) ⬆️
.../JsonRpcTransactionReceiptPolymorphicSerializer.kt 41.66% <42.85%> (-8.34%) ⬇️
...data/serializers/ContractClassGatewaySerializer.kt 80.00% <50.00%> (ø)
...kotlin/com/swmansion/starknet/provider/Provider.kt 28.57% <50.00%> (+8.57%) ⬆️
...knet/provider/exceptions/RequestFailedException.kt 50.00% <50.00%> (-50.00%) ⬇️
...ta/serializers/TransactionPolymorphicSerializer.kt 53.84% <53.84%> (ø)
... and 17 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Solpatium Solpatium requested review from Solpatium and cptartur and removed request for Solpatium December 14, 2022 08:28
Copy link
Member

@cptartur cptartur left a comment

Choose a reason for hiding this comment

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

I haven't reviewed the javademo yet. Will include it in another review.

Copy link
Member

@cptartur cptartur left a comment

Choose a reason for hiding this comment

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

Javademo review.

javademo/src/main/java/com/example/javademo/Main.java Outdated Show resolved Hide resolved
javademo/src/main/java/com/example/javademo/Main.java Outdated Show resolved Hide resolved
javademo/src/main/java/com/example/javademo/Main.java Outdated Show resolved Hide resolved
@THenry14 THenry14 changed the base branch from main to milestone/0.4.0 December 21, 2022 14:39
Copy link
Contributor

@Solpatium Solpatium left a comment

Choose a reason for hiding this comment

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

Please see my comment about payloads in estimateFee.

@THenry14 THenry14 merged commit 5068c94 into milestone/0.4.0 Jan 12, 2023
@DelevoXDG DelevoXDG deleted the szymczyk/146-rpc21 branch February 5, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants