-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Pool certificates #321
Pool certificates #321
Conversation
…r and network args method to use custom networks
add initial stake pool registration flag and deposit add pool vkey hashes if certificate exists
# Conflicts: # pycardano/backend/cardano_cli.py # test/pycardano/backend/test_cardano_cli.py
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #321 +/- ##
==========================================
+ Coverage 83.12% 83.42% +0.30%
==========================================
Files 28 29 +1
Lines 3443 3705 +262
Branches 844 929 +85
==========================================
+ Hits 2862 3091 +229
- Misses 430 448 +18
- Partials 151 166 +15 ☔ View full report in Codecov by Sentry. |
Thanks a ton for adding support for pool certificates! The changes look good overall. There are a few test cases failed when using python3 versions less than |
Syntax "Optional[type1 | type2]" is not supported in version <= 3.9
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.
Made a few places simpler. LGTM now!
I finally got around to cleaning up and writing some tests for the code to handle pool certificates as mentioned in #280.
This handles
PoolRegistration
andPoolRetirement
Certificates. They can be added to transactions, and parsing transactions that contain them will now work correctly.When registering a pool for the first time, the
TransactionBuilder
has a boolean value calledinitial_stake_pool_registration
that can be set to true to add the pool deposit to the transaction.I also added another boolean value called
witness_override
to theTransactionBuilder
, which overrides the witness count when estimating the transaction fee. This is very useful for building transactions that multiple parties will sign and witness later.