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

feat: add withdrawals field to transaction events #310

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

Javieracost
Copy link
Contributor

As title says, adds staking withdrawals information to tx events. Closes #241

Tested manually on tx hash 3cd223934d556c4f599055cad6257992d20a7b37418c7d864a987fc91109be48 and

intersect-point: 140137291.eef70ed5877425b4059f5c139e8ebaef4f01c3ae33aa9a788a670913daf2ce14

logs out:

...
"withdrawals":{"stake1u9gumv8sjecsga0frqg40l66y3arl7xnu8cj237z93csxyscsg85a":68737598}
...

as expected 😌

Added support for staking withdrawals in transaction events.
Withdrawal data was already available from gouroboros and is now propagated through adder's events.
@Javieracost Javieracost requested a review from a team as a code owner January 22, 2025 23:12
Somehow committed an earlier version 🤦 Fixed
@wolf31o2 wolf31o2 merged commit 7e44524 into blinklabs-io:main Jan 22, 2025
6 checks passed
@wolf31o2
Copy link
Member

Thanks for the contribution!

@Javieracost Javieracost deleted the patch-1 branch January 22, 2025 23:29
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 reward withdrawals in TransactionEvent
2 participants