@@ -1903,6 +1903,7 @@ def build_raw_tx_bare( # noqa: C901
1903
1903
txins : OptionalUTXOData = (),
1904
1904
plutus_txins : OptionalPlutusTxIns = (),
1905
1905
plutus_mint : OptionalPlutusMintData = (),
1906
+ required_signers : OptionalFiles = (),
1906
1907
ttl : Optional [int ] = None ,
1907
1908
withdrawals : OptionalTxOuts = (),
1908
1909
invalid_hereafter : Optional [int ] = None ,
@@ -1921,6 +1922,8 @@ def build_raw_tx_bare( # noqa: C901
1921
1922
txins: An iterable of `UTXOData`, specifying input UTxOs (optional).
1922
1923
plutus_txins: An iterable of `PlutusTxIn`, specifying input Plutus UTxOs (optional).
1923
1924
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).
1924
1927
ttl: A last block when the transaction is still valid
1925
1928
(deprecated in favor of `invalid_hereafter`, optional).
1926
1929
withdrawals: A list (iterable) of `TxOuts`, specifying reward withdrawals (optional).
@@ -1934,7 +1937,7 @@ def build_raw_tx_bare( # noqa: C901
1934
1937
Returns:
1935
1938
TxRawOutput: A tuple with transaction output details.
1936
1939
"""
1937
- # pylint: disable=too-many-arguments,too-many-branches
1940
+ # pylint: disable=too-many-arguments,too-many-branches,too-many-locals
1938
1941
out_file = Path (out_file )
1939
1942
1940
1943
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
2055
2058
* self ._prepend_flag ("--tx-in" , txins_combined ),
2056
2059
* plutus_txout_args ,
2057
2060
* self ._prepend_flag ("--tx-out" , txout_args ),
2061
+ * self ._prepend_flag ("--required-signer" , required_signers ),
2058
2062
* self ._prepend_flag ("--certificate-file" , tx_files .certificate_files ),
2059
2063
* self ._prepend_flag ("--update-proposal-file" , tx_files .proposal_files ),
2060
2064
* self ._prepend_flag ("--metadata-json-file" , tx_files .metadata_json_files ),
@@ -2359,6 +2363,7 @@ def build_tx( # noqa: C901
2359
2363
fee_buffer : Optional [int ] = None ,
2360
2364
plutus_txins : OptionalPlutusTxIns = (),
2361
2365
plutus_mint : OptionalPlutusMintData = (),
2366
+ required_signers : OptionalFiles = (),
2362
2367
withdrawals : OptionalTxOuts = (),
2363
2368
deposit : Optional [int ] = None ,
2364
2369
invalid_hereafter : Optional [int ] = None ,
@@ -2382,11 +2387,15 @@ def build_tx( # noqa: C901
2382
2387
fee_buffer: A buffer for fee amount (optional).
2383
2388
plutus_txins: An iterable of `PlutusTxIn`, specifying input Plutus UTxOs (optional).
2384
2389
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).
2385
2392
withdrawals: A list (iterable) of `TxOuts`, specifying reward withdrawals (optional).
2386
2393
deposit: A deposit amount needed by the transaction (optional).
2387
2394
invalid_hereafter: A last block when the transaction is still valid (optional).
2388
2395
invalid_before: A first block when the transaction is valid (optional).
2389
2396
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).
2390
2399
script_valid: A bool indicating that the script is valid (True by default).
2391
2400
join_txouts: A bool indicating whether to aggregate transaction outputs
2392
2401
by payment address (True by default).
@@ -2532,6 +2541,7 @@ def build_tx( # noqa: C901
2532
2541
* self ._prepend_flag ("--tx-in" , txins_combined ),
2533
2542
* plutus_txout_args ,
2534
2543
* self ._prepend_flag ("--tx-out" , txout_args ),
2544
+ * self ._prepend_flag ("--required-signer" , required_signers ),
2535
2545
* self ._prepend_flag ("--certificate-file" , tx_files .certificate_files ),
2536
2546
* self ._prepend_flag ("--update-proposal-file" , tx_files .proposal_files ),
2537
2547
* self ._prepend_flag ("--metadata-json-file" , tx_files .metadata_json_files ),
0 commit comments