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.4.0 #281

Merged
merged 99 commits into from
Aug 18, 2023
Merged

Support RPC 0.4.0 #281

merged 99 commits into from
Aug 18, 2023

Conversation

DelevoXDG
Copy link
Contributor

@DelevoXDG DelevoXDG commented Jul 25, 2023

Describe your changes

  • Updated Message dataclasses, get_estimate_message_fee
  • Added execution_status, finality_status, revert_reason to TransactionReceipt
  • Updated Transaction dataclasses, added DeclareTransactionV0 dataclass
  • Updated BlockWithTx
  • Bumped devnet to 0.6.0
  • Added mock tests: adjust to pythonic devnet not having RPC 0.4.0 support
  • Added integration tests

Linked issues

Closes #280
Closes #270
Closes #262

Breaking changes

  • This issue contains breaking changes
  • Changes to TransactionReceipt dataclasses
  • Changes to Message dataclasses, get_estimate_message_fee

@DelevoXDG DelevoXDG marked this pull request as draft July 25, 2023 13:57
@DelevoXDG DelevoXDG requested a review from THenry14 July 25, 2023 14:00
@DelevoXDG
Copy link
Contributor Author

DelevoXDG commented Jul 25, 2023

We should review current changes, but block this until devnet update arrives or at least there's some clarity regarding what changes will be included in the release so it is reasonable to write mock tests.

@DelevoXDG DelevoXDG added enhancement New feature or request blocked labels Jul 25, 2023
@DelevoXDG DelevoXDG removed blocked enhancement New feature or request labels Jul 25, 2023
@JsonNames("calldata")
val constructorCalldata: Calldata,

// TODO: check whether this should actually be contract_class in case of gateway
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It appears that class_hash is used in gateway as well

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.

Great job mate 🔥 only a few smaller comments

.github/workflows/checks.yml Outdated Show resolved Hide resolved
integration_tests_config_template.env Outdated Show resolved Hide resolved
@SerialName("parent_hash")
override val parentHash: Felt,
// Not in RPC schema
// TODO: remove this when Pathfinder is updated
Copy link
Member

Choose a reason for hiding this comment

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

let's improve the comment, so it is clear what is to be removed then. Ideally, there should be an issue number stated here, under which more extensive description shall be written.

lib/build.gradle.kts Outdated Show resolved Hide resolved
Copy link

@war-in war-in left a comment

Choose a reason for hiding this comment

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

Great job 🔥 Let's wait with merging until @THenry14 approves too

.github/workflows/checks.yml Outdated Show resolved Hide resolved
@DelevoXDG DelevoXDG merged commit e00a195 into main Aug 18, 2023
2 checks passed
@DelevoXDG DelevoXDG deleted the feat/support-rpc-0.4.0 branch September 28, 2023 13:31
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.

Support RPC 0.4.0 Update estimate message fee to match RPC 0.4.0 schema changes Support starknet 0.12
5 participants