-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonero_transfer.pyi
More file actions
49 lines (37 loc) · 1.4 KB
/
Copy pathmonero_transfer.pyi
File metadata and controls
49 lines (37 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from .serializable_struct import SerializableStruct
from .monero_tx_wallet import MoneroTxWallet
class MoneroTransfer(SerializableStruct):
"""Models a base transfer of funds to or from the wallet."""
account_index: int | None
"""Index of the account related to this transfer."""
amount: int | None
"""Transfer amount in atomic-units."""
tx: MoneroTxWallet
"""Related wallet transaction."""
def __init__(self) -> None:
"""Initialize a Monero transfer."""
...
def copy(self) -> MoneroTransfer:
"""
Copy current transfer.
:returns MoneroTransfer: transfer copy.
"""
...
def is_incoming(self) -> bool | None:
"""
Indicates if it is an incoming transfer (`True`) or not (`False`). Default `None`.
:returns bool | None: `True` if current transfer is incoming, `False` if outgoing, `None` if unkown.
"""
...
def is_outgoing(self) -> bool | None:
"""
Indicates if it is an outgoing transfer (`True`) or not (`False`). Default `None`.
:returns bool | None: `True` if current transfer is outgoing, `False` if incoming, `None` if unkown.
"""
...
def merge(self, other: MoneroTransfer) -> None:
"""
Merge current transfer with another one.
:param MoneroTransfer other: other transfer to merge with.
"""
...