2017-12-12 15:40:11 +00:00
|
|
|
# Automatically generated by pb2py
|
|
|
|
from .. import protobuf as p
|
|
|
|
|
|
|
|
|
|
|
|
class SignTx(p.MessageType):
|
2018-05-09 15:14:44 +00:00
|
|
|
MESSAGE_WIRE_TYPE = 15
|
2017-12-12 15:40:11 +00:00
|
|
|
FIELDS = {
|
|
|
|
1: ('outputs_count', p.UVarintType, 0), # required
|
|
|
|
2: ('inputs_count', p.UVarintType, 0), # required
|
|
|
|
3: ('coin_name', p.UnicodeType, 0), # default='Bitcoin'
|
|
|
|
4: ('version', p.UVarintType, 0), # default=1
|
|
|
|
5: ('lock_time', p.UVarintType, 0), # default=0
|
2018-06-05 14:02:51 +00:00
|
|
|
6: ('expiry', p.UVarintType, 0),
|
|
|
|
7: ('overwintered', p.BoolType, 0),
|
2017-12-12 15:40:11 +00:00
|
|
|
}
|
2018-05-09 15:14:44 +00:00
|
|
|
|
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
outputs_count: int = None,
|
|
|
|
inputs_count: int = None,
|
|
|
|
coin_name: str = None,
|
|
|
|
version: int = None,
|
|
|
|
lock_time: int = None,
|
2018-06-05 14:02:51 +00:00
|
|
|
expiry: int = None,
|
|
|
|
overwintered: bool = None
|
2018-05-09 15:14:44 +00:00
|
|
|
) -> None:
|
|
|
|
self.outputs_count = outputs_count
|
|
|
|
self.inputs_count = inputs_count
|
|
|
|
self.coin_name = coin_name
|
|
|
|
self.version = version
|
|
|
|
self.lock_time = lock_time
|
2018-06-05 14:02:51 +00:00
|
|
|
self.expiry = expiry
|
|
|
|
self.overwintered = overwintered
|