-
Notifications
You must be signed in to change notification settings - Fork 30
This PR refactors test_pools.py to align with the new build Method #3124
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
base: master
Are you sure you want to change the base?
Conversation
src_address=src_address, | ||
tx_name=f"{temp_template}_reg_deleg", | ||
tx_files=tx_files, | ||
witness_count_add=len(tx_files.signing_key_files), |
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.
You are building, but not signing and submitting the tx.
@@ -144,8 +146,7 @@ def _register_stake_pool_w_build( | |||
reward_account_vkey_file: A path to reward account vkey file (optional). | |||
deposit: A deposit amount needed by the transaction (optional). | |||
destination_dir: A path to directory for storing artifacts (optional). | |||
|
|||
Returns: | |||
Returns: |
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.
The docstrings are supposed to follow one of the standard formats. We are using the google style format of docstrings. Please leave the Returns
formatting as it was: blank line above, no blank line below.
This PR introduces explicit support for the
transaction build-estimate
command in stake pool creation, registration, delegation, and deregistration flows. It also replaces the legacyuse_build_cmd
flag with the more flexiblebuild_method
parameter across stake pool utilities and tests.Key Changes
Utilities
_register_stake_pool_w_build_est
and_create_stake_pool_w_build_est
helper functions to handle stake pool registration usingbuild-estimate
._create_register_pool
,_create_register_pool_delegate_stake_tx
, and_create_register_pool_tx_delegate_stake_tx
to branch onbuild_method
(BUILD
,BUILD_RAW
,BUILD_EST
) instead ofuse_build_cmd
.Tests
TestStakePool
) to usebuild_method
.test_stake_pool_metadata
,test_create_stake_pool
,test_deregister_stake_pool
,test_update_stake_pool_metadata
,test_update_stake_pool_parameters
,test_pool_deregistration_not_registered
) to supportBUILD_EST
.Test Run: https://github.com/IntersectMBO/cardano-node-tests/actions/runs/17446898448/job/49543468841
Test Run: https://github.com/IntersectMBO/cardano-node-tests/actions/runs/17478711486/job/49644613878