parent
6d5a8645fd
commit
13c659c202
@ -0,0 +1,16 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class CardanoAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 308
|
||||
FIELDS = {
|
||||
1: ('address', p.UnicodeType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address: str = None,
|
||||
) -> None:
|
||||
self.address = address
|
@ -0,0 +1,24 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class CardanoGetAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 307
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
show_display: bool = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.show_display = show_display
|
@ -0,0 +1,21 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class CardanoGetPublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 305
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
@ -0,0 +1,19 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class CardanoMessageSignature(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 301
|
||||
FIELDS = {
|
||||
1: ('public_key', p.BytesType, 0),
|
||||
2: ('signature', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
public_key: bytes = None,
|
||||
signature: bytes = None,
|
||||
) -> None:
|
||||
self.public_key = public_key
|
||||
self.signature = signature
|
@ -0,0 +1,23 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
from .HDNodeType import HDNodeType
|
||||
|
||||
|
||||
class CardanoPublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 306
|
||||
FIELDS = {
|
||||
1: ('xpub', p.UnicodeType, 0),
|
||||
2: ('node', HDNodeType, 0),
|
||||
3: ('root_hd_passphrase', p.UnicodeType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
xpub: str = None,
|
||||
node: HDNodeType = None,
|
||||
root_hd_passphrase: str = None,
|
||||
) -> None:
|
||||
self.xpub = xpub
|
||||
self.node = node
|
||||
self.root_hd_passphrase = root_hd_passphrase
|
@ -0,0 +1,29 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .CardanoTxInputType import CardanoTxInputType
|
||||
from .CardanoTxOutputType import CardanoTxOutputType
|
||||
|
||||
|
||||
class CardanoSignTransaction(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 303
|
||||
FIELDS = {
|
||||
1: ('inputs', CardanoTxInputType, p.FLAG_REPEATED),
|
||||
2: ('outputs', CardanoTxOutputType, p.FLAG_REPEATED),
|
||||
3: ('transactions_count', p.UVarintType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
inputs: List[CardanoTxInputType] = None,
|
||||
outputs: List[CardanoTxOutputType] = None,
|
||||
transactions_count: int = None,
|
||||
) -> None:
|
||||
self.inputs = inputs if inputs is not None else []
|
||||
self.outputs = outputs if outputs is not None else []
|
||||
self.transactions_count = transactions_count
|
@ -0,0 +1,19 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class CardanoSignedTransaction(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 310
|
||||
FIELDS = {
|
||||
1: ('tx_hash', p.BytesType, 0),
|
||||
2: ('tx_body', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
tx_hash: bytes = None,
|
||||
tx_body: bytes = None,
|
||||
) -> None:
|
||||
self.tx_hash = tx_hash
|
||||
self.tx_body = tx_body
|
@ -0,0 +1,16 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class CardanoTxAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 309
|
||||
FIELDS = {
|
||||
1: ('transaction', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
transaction: bytes = None,
|
||||
) -> None:
|
||||
self.transaction = transaction
|
@ -0,0 +1,29 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class CardanoTxInputType(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('prev_hash', p.BytesType, 0),
|
||||
3: ('prev_index', p.UVarintType, 0),
|
||||
4: ('type', p.UVarintType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
prev_hash: bytes = None,
|
||||
prev_index: int = None,
|
||||
type: int = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.prev_hash = prev_hash
|
||||
self.prev_index = prev_index
|
||||
self.type = type
|
@ -0,0 +1,26 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class CardanoTxOutputType(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('address', p.UnicodeType, 0),
|
||||
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
3: ('amount', p.UVarintType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address: str = None,
|
||||
address_n: List[int] = None,
|
||||
amount: int = None,
|
||||
) -> None:
|
||||
self.address = address
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.amount = amount
|
@ -0,0 +1,22 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class CardanoTxRequest(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 304
|
||||
FIELDS = {
|
||||
1: ('tx_index', p.UVarintType, 0),
|
||||
2: ('tx_hash', p.BytesType, 0),
|
||||
3: ('tx_body', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
tx_index: int = None,
|
||||
tx_hash: bytes = None,
|
||||
tx_body: bytes = None,
|
||||
) -> None:
|
||||
self.tx_index = tx_index
|
||||
self.tx_hash = tx_hash
|
||||
self.tx_body = tx_body
|
@ -0,0 +1,22 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class CardanoVerifyMessage(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 302
|
||||
FIELDS = {
|
||||
1: ('public_key', p.BytesType, 0),
|
||||
2: ('signature', p.BytesType, 0),
|
||||
3: ('message', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
public_key: bytes = None,
|
||||
signature: bytes = None,
|
||||
message: bytes = None,
|
||||
) -> None:
|
||||
self.public_key = public_key
|
||||
self.signature = signature
|
||||
self.message = message
|
@ -1,19 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class DecryptedMessage(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 52
|
||||
FIELDS = {
|
||||
1: ('message', p.BytesType, 0),
|
||||
2: ('address', p.UnicodeType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
message: bytes = None,
|
||||
address: str = None,
|
||||
) -> None:
|
||||
self.message = message
|
||||
self.address = address
|
@ -1,33 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class EncryptMessage(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 49
|
||||
FIELDS = {
|
||||
1: ('pubkey', p.BytesType, 0),
|
||||
2: ('message', p.BytesType, 0),
|
||||
3: ('display_only', p.BoolType, 0),
|
||||
4: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
5: ('coin_name', p.UnicodeType, 0), # default=Bitcoin
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
pubkey: bytes = None,
|
||||
message: bytes = None,
|
||||
display_only: bool = None,
|
||||
address_n: List[int] = None,
|
||||
coin_name: str = None,
|
||||
) -> None:
|
||||
self.pubkey = pubkey
|
||||
self.message = message
|
||||
self.display_only = display_only
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.coin_name = coin_name
|
@ -1,22 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EncryptedMessage(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 50
|
||||
FIELDS = {
|
||||
1: ('nonce', p.BytesType, 0),
|
||||
2: ('message', p.BytesType, 0),
|
||||
3: ('hmac', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
nonce: bytes = None,
|
||||
message: bytes = None,
|
||||
hmac: bytes = None,
|
||||
) -> None:
|
||||
self.nonce = nonce
|
||||
self.message = message
|
||||
self.hmac = hmac
|
@ -1,22 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
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
|
@ -1,45 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .TransactionType import TransactionType
|
||||
from .TxInputType import TxInputType
|
||||
from .TxOutputType import TxOutputType
|
||||
|
||||
|
||||
class SimpleSignTx(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 16
|
||||
FIELDS = {
|
||||
1: ('inputs', TxInputType, p.FLAG_REPEATED),
|
||||
2: ('outputs', TxOutputType, p.FLAG_REPEATED),
|
||||
3: ('transactions', TransactionType, p.FLAG_REPEATED),
|
||||
4: ('coin_name', p.UnicodeType, 0), # default=Bitcoin
|
||||
5: ('version', p.UVarintType, 0), # default=1
|
||||
6: ('lock_time', p.UVarintType, 0), # default=0
|
||||
7: ('expiry', p.UVarintType, 0),
|
||||
8: ('overwintered', p.BoolType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
inputs: List[TxInputType] = None,
|
||||
outputs: List[TxOutputType] = None,
|
||||
transactions: List[TransactionType] = None,
|
||||
coin_name: str = None,
|
||||
version: int = None,
|
||||
lock_time: int = None,
|
||||
expiry: int = None,
|
||||
overwintered: bool = None,
|
||||
) -> None:
|
||||
self.inputs = inputs if inputs is not None else []
|
||||
self.outputs = outputs if outputs is not None else []
|
||||
self.transactions = transactions if transactions is not None else []
|
||||
self.coin_name = coin_name
|
||||
self.version = version
|
||||
self.lock_time = lock_time
|
||||
self.expiry = expiry
|
||||
self.overwintered = overwintered
|
@ -0,0 +1,16 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TezosAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 151
|
||||
FIELDS = {
|
||||
1: ('address', p.UnicodeType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address: str = None,
|
||||
) -> None:
|
||||
self.address = address
|
@ -0,0 +1,18 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TezosContractID(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('tag', p.UVarintType, 0),
|
||||
2: ('hash', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
tag: int = None,
|
||||
hash: bytes = None,
|
||||
) -> None:
|
||||
self.tag = tag
|
||||
self.hash = hash
|
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
Implicit = 0
|
||||
Originated = 1
|
@ -0,0 +1,15 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TezosDelegationType(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('delegate', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
delegate: bytes = None,
|
||||
) -> None:
|
||||
self.delegate = delegate
|
@ -0,0 +1,24 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class TezosGetAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 150
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
show_display: bool = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.show_display = show_display
|
@ -0,0 +1,24 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class TezosGetPublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 154
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
show_display: bool = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.show_display = show_display
|
@ -0,0 +1,34 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
from .TezosContractID import TezosContractID
|
||||
|
||||
|
||||
class TezosOperationCommon(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('branch', p.BytesType, 0),
|
||||
2: ('tag', p.UVarintType, 0),
|
||||
3: ('source', TezosContractID, 0),
|
||||
4: ('fee', p.UVarintType, 0),
|
||||
5: ('counter', p.UVarintType, 0),
|
||||
6: ('gas_limit', p.UVarintType, 0),
|
||||
7: ('storage_limit', p.UVarintType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
branch: bytes = None,
|
||||
tag: int = None,
|
||||
source: TezosContractID = None,
|
||||
fee: int = None,
|
||||
counter: int = None,
|
||||
gas_limit: int = None,
|
||||
storage_limit: int = None,
|
||||
) -> None:
|
||||
self.branch = branch
|
||||
self.tag = tag
|
||||
self.source = source
|
||||
self.fee = fee
|
||||
self.counter = counter
|
||||
self.gas_limit = gas_limit
|
||||
self.storage_limit = storage_limit
|
@ -0,0 +1,5 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
Transaction = 8
|
||||
Origination = 9
|
||||
Delegation = 10
|
@ -0,0 +1,30 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TezosOriginationType(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('manager_pubkey', p.BytesType, 0),
|
||||
2: ('balance', p.UVarintType, 0),
|
||||
3: ('spendable', p.BoolType, 0),
|
||||
4: ('delegatable', p.BoolType, 0),
|
||||
5: ('delegate', p.BytesType, 0),
|
||||
6: ('script', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
manager_pubkey: bytes = None,
|
||||
balance: int = None,
|
||||
spendable: bool = None,
|
||||
delegatable: bool = None,
|
||||
delegate: bytes = None,
|
||||
script: bytes = None,
|
||||
) -> None:
|
||||
self.manager_pubkey = manager_pubkey
|
||||
self.balance = balance
|
||||
self.spendable = spendable
|
||||
self.delegatable = delegatable
|
||||
self.delegate = delegate
|
||||
self.script = script
|
@ -0,0 +1,16 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TezosPublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 155
|
||||
FIELDS = {
|
||||
1: ('public_key', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
public_key: bytes = None,
|
||||
) -> None:
|
||||
self.public_key = public_key
|
@ -0,0 +1,37 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
from .TezosDelegationType import TezosDelegationType
|
||||
from .TezosOperationCommon import TezosOperationCommon
|
||||
from .TezosOriginationType import TezosOriginationType
|
||||
from .TezosTransactionType import TezosTransactionType
|
||||
|
||||
|
||||
class TezosSignTx(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 152
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('operation', TezosOperationCommon, 0),
|
||||
3: ('transaction', TezosTransactionType, 0),
|
||||
4: ('origination', TezosOriginationType, 0),
|
||||
5: ('delegation', TezosDelegationType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
operation: TezosOperationCommon = None,
|
||||
transaction: TezosTransactionType = None,
|
||||
origination: TezosOriginationType = None,
|
||||
delegation: TezosDelegationType = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.operation = operation
|
||||
self.transaction = transaction
|
||||
self.origination = origination
|
||||
self.delegation = delegation
|
@ -0,0 +1,22 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TezosSignedTx(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 153
|
||||
FIELDS = {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('sig_op_contents', p.BytesType, 0),
|
||||
3: ('operation_hash', p.UnicodeType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
sig_op_contents: bytes = None,
|
||||
operation_hash: str = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.sig_op_contents = sig_op_contents
|
||||
self.operation_hash = operation_hash
|
@ -0,0 +1,22 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
from .TezosContractID import TezosContractID
|
||||
|
||||
|
||||
class TezosTransactionType(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('amount', p.UVarintType, 0),
|
||||
2: ('destination', TezosContractID, 0),
|
||||
3: ('parameters', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
amount: int = None,
|
||||
destination: TezosContractID = None,
|
||||
parameters: bytes = None,
|
||||
) -> None:
|
||||
self.amount = amount
|
||||
self.destination = destination
|
||||
self.parameters = parameters
|
@ -1,16 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TxSize(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 44
|
||||
FIELDS = {
|
||||
1: ('tx_size', p.UVarintType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
tx_size: int = None,
|
||||
) -> None:
|
||||
self.tx_size = tx_size
|
@ -1 +1 @@
|
||||
Subproject commit c4420e41d3d98368d42fa59ae3bee88599d72fec
|
||||
Subproject commit 1b9b7d6c8ed44b24a7f105a83dc10ea7cc796ed9
|
Loading…
Reference in new issue