Skip to content

Commit 9d5f08c

Browse files
committed
Add support for --required-signer
1 parent 4dbf3e5 commit 9d5f08c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

cardano_clusterlib/clusterlib.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -1903,6 +1903,7 @@ def build_raw_tx_bare( # noqa: C901
19031903
txins: OptionalUTXOData = (),
19041904
plutus_txins: OptionalPlutusTxIns = (),
19051905
plutus_mint: OptionalPlutusMintData = (),
1906+
required_signers: OptionalFiles = (),
19061907
ttl: Optional[int] = None,
19071908
withdrawals: OptionalTxOuts = (),
19081909
invalid_hereafter: Optional[int] = None,
@@ -1921,6 +1922,8 @@ def build_raw_tx_bare( # noqa: C901
19211922
txins: An iterable of `UTXOData`, specifying input UTxOs (optional).
19221923
plutus_txins: An iterable of `PlutusTxIn`, specifying input Plutus UTxOs (optional).
19231924
plutus_mint: An iterable of `PlutusMint`, specifying Plutus minting data (optional).
1925+
required_signers: An iterable of filepaths of the signing keys whose signatures
1926+
are required (optional).
19241927
ttl: A last block when the transaction is still valid
19251928
(deprecated in favor of `invalid_hereafter`, optional).
19261929
withdrawals: A list (iterable) of `TxOuts`, specifying reward withdrawals (optional).
@@ -1934,7 +1937,7 @@ def build_raw_tx_bare( # noqa: C901
19341937
Returns:
19351938
TxRawOutput: A tuple with transaction output details.
19361939
"""
1937-
# pylint: disable=too-many-arguments,too-many-branches
1940+
# pylint: disable=too-many-arguments,too-many-branches,too-many-locals
19381941
out_file = Path(out_file)
19391942

19401943
plutus_txout_args, txout_args = self._process_txouts(txouts=txouts, join_txouts=join_txouts)
@@ -2055,6 +2058,7 @@ def build_raw_tx_bare( # noqa: C901
20552058
*self._prepend_flag("--tx-in", txins_combined),
20562059
*plutus_txout_args,
20572060
*self._prepend_flag("--tx-out", txout_args),
2061+
*self._prepend_flag("--required-signer", required_signers),
20582062
*self._prepend_flag("--certificate-file", tx_files.certificate_files),
20592063
*self._prepend_flag("--update-proposal-file", tx_files.proposal_files),
20602064
*self._prepend_flag("--metadata-json-file", tx_files.metadata_json_files),
@@ -2359,6 +2363,7 @@ def build_tx( # noqa: C901
23592363
fee_buffer: Optional[int] = None,
23602364
plutus_txins: OptionalPlutusTxIns = (),
23612365
plutus_mint: OptionalPlutusMintData = (),
2366+
required_signers: OptionalFiles = (),
23622367
withdrawals: OptionalTxOuts = (),
23632368
deposit: Optional[int] = None,
23642369
invalid_hereafter: Optional[int] = None,
@@ -2382,11 +2387,15 @@ def build_tx( # noqa: C901
23822387
fee_buffer: A buffer for fee amount (optional).
23832388
plutus_txins: An iterable of `PlutusTxIn`, specifying input Plutus UTxOs (optional).
23842389
plutus_mint: An iterable of `PlutusMint`, specifying Plutus minting data (optional).
2390+
required_signers: An iterable of filepaths of the signing keys whose signatures
2391+
are required (optional).
23852392
withdrawals: A list (iterable) of `TxOuts`, specifying reward withdrawals (optional).
23862393
deposit: A deposit amount needed by the transaction (optional).
23872394
invalid_hereafter: A last block when the transaction is still valid (optional).
23882395
invalid_before: A first block when the transaction is valid (optional).
23892396
mint: A list (iterable) of `TxOuts`, specifying minted tokens (optional).
2397+
witness_override: An integer indicating real number of witnesses. Can be used to fix
2398+
fee calculation (optional).
23902399
script_valid: A bool indicating that the script is valid (True by default).
23912400
join_txouts: A bool indicating whether to aggregate transaction outputs
23922401
by payment address (True by default).
@@ -2532,6 +2541,7 @@ def build_tx( # noqa: C901
25322541
*self._prepend_flag("--tx-in", txins_combined),
25332542
*plutus_txout_args,
25342543
*self._prepend_flag("--tx-out", txout_args),
2544+
*self._prepend_flag("--required-signer", required_signers),
25352545
*self._prepend_flag("--certificate-file", tx_files.certificate_files),
25362546
*self._prepend_flag("--update-proposal-file", tx_files.proposal_files),
25372547
*self._prepend_flag("--metadata-json-file", tx_files.metadata_json_files),

0 commit comments

Comments
 (0)