You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/python/src/trezorlib/messages/TezosTransactionOp.py

53 lines
1.6 KiB

# Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
from .TezosContractID import TezosContractID
from .TezosParametersManager import TezosParametersManager
if __debug__:
try:
from typing import Dict, List # noqa: F401
from typing_extensions import Literal # noqa: F401
except ImportError:
pass
class TezosTransactionOp(p.MessageType):
def __init__(
self,
source: bytes = None,
fee: int = None,
counter: int = None,
gas_limit: int = None,
storage_limit: int = None,
amount: int = None,
destination: TezosContractID = None,
parameters: bytes = None,
parameters_manager: TezosParametersManager = 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
self.parameters_manager = parameters_manager
@classmethod
def get_fields(cls) -> Dict:
return {
9: ('source', p.BytesType, 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),
10: ('parameters_manager', TezosParametersManager, 0),
}