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 L1_HANDLER transaction support for GatewayProvider #177

Merged
merged 9 commits into from Nov 8, 2022

Conversation

cptartur
Copy link
Member

@cptartur cptartur commented Nov 3, 2022

Describe your changes

This PR adds L1HandlerTransaction dataclass as well as suport for parsing these transactions to GatewayProvider.

It also inlines transactionTypeToName function.

Tests have been mocked until we resolve how to test L1<>L2 messaging with devnet (this is also being investigated by starknet.py team).

This PR however doesn't add support for L1HandlerTransactions to JsonRpcProvider as it is blocked by #146

Linked issues

Closes #167

Breaking changes

  • This issue contains breaking changes

@codecov-commenter
Copy link

Codecov Report

Base: 63.53% // Head: 62.67% // Decreases project coverage by -0.86% ⚠️

Coverage data is based on head (233a7f3) compared to base (a57e9fb).
Patch coverage: 28.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #177      +/-   ##
==========================================
- Coverage   63.53%   62.67%   -0.87%     
==========================================
  Files          49       49              
  Lines        1226     1243      +17     
  Branches       79       81       +2     
==========================================
  Hits          779      779              
- Misses        423      440      +17     
  Partials       24       24              
Impacted Files Coverage Δ
...on/starknet/data/types/transactions/Transaction.kt 47.70% <14.28%> (-7.98%) ⬇️
...nsion/starknet/provider/gateway/GatewayProvider.kt 86.93% <100.00%> (-0.26%) ⬇️
...tlin/com/swmansion/starknet/data/types/Messages.kt 10.00% <0.00%> (+10.00%) ⬆️

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 merged commit 960deb1 into main Nov 8, 2022
@Solpatium Solpatium deleted the feat/l1-handler-tx branch November 8, 2022 12:56
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 L1_HANDLER tx
3 participants