-
Notifications
You must be signed in to change notification settings - Fork 72
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
Wasm-JS interactivity, part two: staking roundtrip #1350
Conversation
Codecov ReportBase: 66.93% // Head: 66.59% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## albatross #1350 +/- ##
=============================================
- Coverage 66.93% 66.59% -0.34%
=============================================
Files 407 408 +1
Lines 51558 51796 +238
=============================================
- Hits 34508 34494 -14
- Misses 17050 17302 +252
Flags with carried forward coverage won't be shown. Click here to find out 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. |
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.
Looks good. Just some minor comments
LGTM |
10d0b2d
to
e4db562
Compare
Thanks @jsdanielh, I missed those import orderings! I also applied all your other suggestions 👍 |
@sisou I will be rebasing it to get it merged |
- Introduces a TransactionBuilder class that is instantiated from the client and receives the client's networkId and blockchain proxy, to access the current head block number, allowing users to omit these when creating transactions. - Adds a `sign(keyPair)` method on `Transaction` that automatically signs the transaction with the correct signature(s) format. - Add a constructor function to `Transaction` to allow creating arbitrary transactions which are not yet covered by the transaction builder.
e4db562
to
303294c
Compare
What's in this pull request?
Makes it possible to easily create and sign all transactions necessary to start staking, add stake, update delegation, and unstake.
TransactionBuilder
class that is instantiated from the client and receives the client'snetwork_id
and a blockchain proxy (to access the current head block number), allowing users to omit these when creating transactions.tx.sign(keyPair)
method that automatically signs the transaction with the correct signature(s) format if possible.Transaction
to allow the creation of arbitrary transactions which the transaction builder does not yet cover.This relates to #1339.
Pull request checklist
clippy
andrustfmt
warnings.