-
Notifications
You must be signed in to change notification settings - Fork 32
runtime-sdk/consensus_accounts: Include shares and epoch in delegation events #2226
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
Conversation
✅ Deploy Preview for oasisprotocol-oasis-sdk canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2226 +/- ##
==========================================
- Coverage 55.37% 55.36% -0.02%
==========================================
Files 155 155
Lines 11725 11749 +24
==========================================
+ Hits 6493 6505 +12
- Misses 5232 5244 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f223b77
to
7cd481f
Compare
7cd481f
to
a0dddda
Compare
23216a2
to
e3aaa50
Compare
e3aaa50
to
08406d0
Compare
@@ -199,6 +214,8 @@ type DelegateEvent struct { | |||
To types.Address `json:"to"` | |||
Amount types.BaseUnits `json:"amount"` | |||
Error *ConsensusError `json:"error,omitempty"` | |||
// Added in runtime-sdk v0.15.0. |
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.
Will these comments be removed in the future?
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.
Not sure. As far as I'm concerned, I can also remove the comment now. But for someone looking at the code without this comment, it won't be obvious why this field is potentially empty.
08406d0
to
114ff20
Compare
…trus/feature/delegation-shares runtime-sdk/consensus_accounts: Include shares and epoch in delegation events 595e8b2
…/ptrus/feature/delegation-shares runtime-sdk/consensus_accounts: Include shares and epoch in delegation events 595e8b2
…sisprotocol/ptrus/feature/delegation-shares runtime-sdk/consensus_accounts: Include shares and epoch in delegation events 595e8b2
…oasisprotocol/ptrus/feature/delegation-shares runtime-sdk/consensus_accounts: Include shares and epoch in delegation events 595e8b2
DelegateEvent
also returns the amount of new shares received by the delegation.UndelegateDoneEvent
includes the undelegation epoch.Made it optional so it's backwards compatible (old events can still be deserialized with the type).
Ensure Nexus deployments are updated first, before a paratime with this change is released.