1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 13:38:12 +00:00
trezor-firmware/trezorlib/messages/EstimateTxSize.py

22 lines
601 B
Python

# Automatically generated by pb2py
from .. import protobuf as p
class EstimateTxSize(p.MessageType):
MESSAGE_WIRE_TYPE = 43
FIELDS = {
1: ('outputs_count', p.UVarintType, 0), # required
2: ('inputs_count', p.UVarintType, 0), # required
3: ('coin_name', p.UnicodeType, 0), # default='Bitcoin'
}
def __init__(
self,
outputs_count: int = None,
inputs_count: int = None,
coin_name: str = None
) -> None:
self.outputs_count = outputs_count
self.inputs_count = inputs_count
self.coin_name = coin_name