mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-19 14:08:11 +00:00
cf396e3661
This separates the regeneration step from the build/install step. This is to simplify bootstrapping: trezorlib is needed in several build/test steps, and bound to be needed in more. It should be usable and installable straight from the checkout.
42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
# Automatically generated by pb2py
|
|
# fmt: off
|
|
from .. import protobuf as p
|
|
|
|
from .TezosContractID import TezosContractID
|
|
|
|
|
|
class TezosTransactionOp(p.MessageType):
|
|
|
|
def __init__(
|
|
self,
|
|
source: TezosContractID = None,
|
|
fee: int = None,
|
|
counter: int = None,
|
|
gas_limit: int = None,
|
|
storage_limit: int = None,
|
|
amount: int = None,
|
|
destination: TezosContractID = None,
|
|
parameters: bytes = None,
|
|
) -> None:
|
|
self.source = source
|
|
self.fee = fee
|
|
self.counter = counter
|
|
self.gas_limit = gas_limit
|
|
self.storage_limit = storage_limit
|
|
self.amount = amount
|
|
self.destination = destination
|
|
self.parameters = parameters
|
|
|
|
@classmethod
|
|
def get_fields(cls):
|
|
return {
|
|
1: ('source', TezosContractID, 0),
|
|
2: ('fee', p.UVarintType, 0),
|
|
3: ('counter', p.UVarintType, 0),
|
|
4: ('gas_limit', p.UVarintType, 0),
|
|
5: ('storage_limit', p.UVarintType, 0),
|
|
6: ('amount', p.UVarintType, 0),
|
|
7: ('destination', TezosContractID, 0),
|
|
8: ('parameters', p.BytesType, 0),
|
|
}
|