Skip to content

Commit a6b5fd0

Browse files
authored
Merge pull request #306 from input-output-hk/rm_send_funds
refactor: remove deprecated send_funds method
2 parents 1931f71 + eb2807a commit a6b5fd0

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

cardano_clusterlib/transaction_group.py

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import logging
66
import pathlib as pl
77
import typing as tp
8-
import warnings
98

109
from packaging import version
1110

@@ -1884,55 +1883,5 @@ def calculate_plutus_script_cost(
18841883
cost: list[dict] = json.load(fp_out)
18851884
return cost
18861885

1887-
def send_funds(
1888-
self,
1889-
src_address: str,
1890-
destinations: list[structs.TxOut],
1891-
tx_name: str,
1892-
tx_files: structs.TxFiles | None = None,
1893-
fee: int | None = None,
1894-
ttl: int | None = None,
1895-
deposit: int | None = None,
1896-
invalid_hereafter: int | None = None,
1897-
verify_tx: bool = True,
1898-
destination_dir: itp.FileType = ".",
1899-
) -> structs.TxRawOutput:
1900-
"""Send funds - convenience function for `send_tx`.
1901-
1902-
Args:
1903-
src_address: An address used for fee and inputs.
1904-
destinations: A list (iterable) of `TxOuts`, specifying transaction outputs.
1905-
tx_name: A name of the transaction.
1906-
tx_files: A `structs.TxFiles` data container containing files needed for the transaction
1907-
(optional).
1908-
fee: A fee amount (optional).
1909-
ttl: A last block when the transaction is still valid
1910-
(deprecated in favor of `invalid_hereafter`, optional).
1911-
deposit: A deposit amount needed by the transaction (optional).
1912-
invalid_hereafter: A last block when the transaction is still valid (optional).
1913-
verify_tx: A bool indicating whether to verify the transaction made it to chain
1914-
and resubmit the transaction if not (True by default).
1915-
destination_dir: A path to directory for storing artifacts (optional).
1916-
1917-
Returns:
1918-
structs.TxRawOutput: A data container with transaction output details.
1919-
"""
1920-
warnings.warn(
1921-
"`send_funds` is deprecated, use `send_tx` instead",
1922-
DeprecationWarning,
1923-
stacklevel=2,
1924-
)
1925-
return self.send_tx(
1926-
src_address=src_address,
1927-
tx_name=tx_name,
1928-
txouts=destinations,
1929-
tx_files=tx_files,
1930-
fee=fee,
1931-
deposit=deposit,
1932-
invalid_hereafter=invalid_hereafter or ttl,
1933-
destination_dir=destination_dir,
1934-
verify_tx=verify_tx,
1935-
)
1936-
19371886
def __repr__(self) -> str:
19381887
return f"<{self.__class__.__name__}: clusterlib_obj={id(self._clusterlib_obj)}>"

0 commit comments

Comments
 (0)