|
5 | 5 | import logging |
6 | 6 | import pathlib as pl |
7 | 7 | import typing as tp |
8 | | -import warnings |
9 | 8 |
|
10 | 9 | from packaging import version |
11 | 10 |
|
@@ -1884,55 +1883,5 @@ def calculate_plutus_script_cost( |
1884 | 1883 | cost: list[dict] = json.load(fp_out) |
1885 | 1884 | return cost |
1886 | 1885 |
|
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 | | - |
1937 | 1886 | def __repr__(self) -> str: |
1938 | 1887 | return f"<{self.__class__.__name__}: clusterlib_obj={id(self._clusterlib_obj)}>" |
0 commit comments