parent
137cd23290
commit
0acd9d8918
@ -0,0 +1,24 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroMultisigKLRki(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('K', p.BytesType, 0),
|
||||
2: ('L', p.BytesType, 0),
|
||||
3: ('R', p.BytesType, 0),
|
||||
4: ('ki', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
K: bytes = None,
|
||||
L: bytes = None,
|
||||
R: bytes = None,
|
||||
ki: bytes = None,
|
||||
) -> None:
|
||||
self.K = K
|
||||
self.L = L
|
||||
self.R = R
|
||||
self.ki = ki
|
@ -0,0 +1,20 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MoneroRctKey import MoneroRctKey
|
||||
|
||||
|
||||
class MoneroOutputEntry(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('idx', p.UVarintType, 0),
|
||||
2: ('key', MoneroRctKey, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
idx: int = None,
|
||||
key: MoneroRctKey = None,
|
||||
) -> None:
|
||||
self.idx = idx
|
||||
self.key = key
|
@ -0,0 +1,18 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class MoneroRctKey(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('dest', p.BytesType, 0),
|
||||
2: ('mask', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
dest: bytes = None,
|
||||
mask: bytes = None,
|
||||
) -> None:
|
||||
self.dest = dest
|
||||
self.mask = mask
|
@ -0,0 +1,48 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .MoneroMultisigKLRki import MoneroMultisigKLRki
|
||||
from .MoneroOutputEntry import MoneroOutputEntry
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class MoneroTransactionSourceEntry(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('outputs', MoneroOutputEntry, p.FLAG_REPEATED),
|
||||
2: ('real_output', p.UVarintType, 0),
|
||||
3: ('real_out_tx_key', p.BytesType, 0),
|
||||
4: ('real_out_additional_tx_keys', p.BytesType, p.FLAG_REPEATED),
|
||||
5: ('real_output_in_tx_index', p.UVarintType, 0),
|
||||
6: ('amount', p.UVarintType, 0),
|
||||
7: ('rct', p.BoolType, 0),
|
||||
8: ('mask', p.BytesType, 0),
|
||||
9: ('multisig_kLRki', MoneroMultisigKLRki, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
outputs: List[MoneroOutputEntry] = None,
|
||||
real_output: int = None,
|
||||
real_out_tx_key: bytes = None,
|
||||
real_out_additional_tx_keys: List[bytes] = None,
|
||||
real_output_in_tx_index: int = None,
|
||||
amount: int = None,
|
||||
rct: bool = None,
|
||||
mask: bytes = None,
|
||||
multisig_kLRki: MoneroMultisigKLRki = None,
|
||||
) -> None:
|
||||
self.outputs = outputs if outputs is not None else []
|
||||
self.real_output = real_output
|
||||
self.real_out_tx_key = real_out_tx_key
|
||||
self.real_out_additional_tx_keys = real_out_additional_tx_keys if real_out_additional_tx_keys is not None else []
|
||||
self.real_output_in_tx_index = real_output_in_tx_index
|
||||
self.amount = amount
|
||||
self.rct = rct
|
||||
self.mask = mask
|
||||
self.multisig_kLRki = multisig_kLRki
|
@ -0,0 +1,16 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 351
|
||||
FIELDS = {
|
||||
1: ('address', p.UnicodeType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address: str = None,
|
||||
) -> None:
|
||||
self.address = address
|
@ -0,0 +1,4 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
ONT = 1
|
||||
ONG = 2
|
@ -0,0 +1,25 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class OntologyGetAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 350
|
||||
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,25 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class OntologyGetPublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 352
|
||||
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,29 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .OntologyOntIdAttribute import OntologyOntIdAttribute
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class OntologyOntIdAddAttributes(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('ont_id', p.UnicodeType, 0),
|
||||
2: ('public_key', p.BytesType, 0),
|
||||
3: ('ont_id_attributes', OntologyOntIdAttribute, p.FLAG_REPEATED),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
ont_id: str = None,
|
||||
public_key: bytes = None,
|
||||
ont_id_attributes: List[OntologyOntIdAttribute] = None,
|
||||
) -> None:
|
||||
self.ont_id = ont_id
|
||||
self.public_key = public_key
|
||||
self.ont_id_attributes = ont_id_attributes if ont_id_attributes is not None else []
|
@ -0,0 +1,21 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyOntIdAttribute(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('key', p.UnicodeType, 0),
|
||||
2: ('type', p.UnicodeType, 0),
|
||||
3: ('value', p.UnicodeType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
key: str = None,
|
||||
type: str = None,
|
||||
value: str = None,
|
||||
) -> None:
|
||||
self.key = key
|
||||
self.type = type
|
||||
self.value = value
|
@ -0,0 +1,18 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyOntIdRegister(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('ont_id', p.UnicodeType, 0),
|
||||
2: ('public_key', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
ont_id: str = None,
|
||||
public_key: bytes = None,
|
||||
) -> None:
|
||||
self.ont_id = ont_id
|
||||
self.public_key = public_key
|
@ -0,0 +1,16 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyPublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 353
|
||||
FIELDS = {
|
||||
1: ('public_key', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
public_key: bytes = None,
|
||||
) -> None:
|
||||
self.public_key = public_key
|
@ -0,0 +1,31 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .OntologyOntIdAddAttributes import OntologyOntIdAddAttributes
|
||||
from .OntologyTransaction import OntologyTransaction
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class OntologySignOntIdAddAttributes(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 360
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('transaction', OntologyTransaction, 0),
|
||||
3: ('ont_id_add_attributes', OntologyOntIdAddAttributes, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
transaction: OntologyTransaction = None,
|
||||
ont_id_add_attributes: OntologyOntIdAddAttributes = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.transaction = transaction
|
||||
self.ont_id_add_attributes = ont_id_add_attributes
|
@ -0,0 +1,31 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .OntologyOntIdRegister import OntologyOntIdRegister
|
||||
from .OntologyTransaction import OntologyTransaction
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class OntologySignOntIdRegister(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 358
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('transaction', OntologyTransaction, 0),
|
||||
3: ('ont_id_register', OntologyOntIdRegister, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
transaction: OntologyTransaction = None,
|
||||
ont_id_register: OntologyOntIdRegister = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.transaction = transaction
|
||||
self.ont_id_register = ont_id_register
|
@ -0,0 +1,31 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .OntologyTransaction import OntologyTransaction
|
||||
from .OntologyTransfer import OntologyTransfer
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class OntologySignTransfer(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 354
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('transaction', OntologyTransaction, 0),
|
||||
3: ('transfer', OntologyTransfer, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
transaction: OntologyTransaction = None,
|
||||
transfer: OntologyTransfer = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.transaction = transaction
|
||||
self.transfer = transfer
|
@ -0,0 +1,31 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .OntologyTransaction import OntologyTransaction
|
||||
from .OntologyWithdrawOng import OntologyWithdrawOng
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class OntologySignWithdrawOng(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 356
|
||||
FIELDS = {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('transaction', OntologyTransaction, 0),
|
||||
3: ('withdraw_ong', OntologyWithdrawOng, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
transaction: OntologyTransaction = None,
|
||||
withdraw_ong: OntologyWithdrawOng = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.transaction = transaction
|
||||
self.withdraw_ong = withdraw_ong
|
@ -0,0 +1,19 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologySignedOntIdAddAttributes(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 361
|
||||
FIELDS = {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('payload', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
payload: bytes = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.payload = payload
|
@ -0,0 +1,19 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologySignedOntIdRegister(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 359
|
||||
FIELDS = {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('payload', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
payload: bytes = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.payload = payload
|
@ -0,0 +1,19 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologySignedTransfer(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 355
|
||||
FIELDS = {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('payload', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
payload: bytes = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.payload = payload
|
@ -0,0 +1,19 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologySignedWithdrawOng(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 357
|
||||
FIELDS = {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('payload', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
payload: bytes = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.payload = payload
|
@ -0,0 +1,41 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .OntologyTxAttribute import OntologyTxAttribute
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class OntologyTransaction(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('version', p.UVarintType, 0),
|
||||
2: ('type', p.UVarintType, 0),
|
||||
3: ('nonce', p.UVarintType, 0),
|
||||
4: ('gas_price', p.UVarintType, 0),
|
||||
5: ('gas_limit', p.UVarintType, 0),
|
||||
6: ('payer', p.UnicodeType, 0),
|
||||
7: ('tx_attributes', OntologyTxAttribute, p.FLAG_REPEATED),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
version: int = None,
|
||||
type: int = None,
|
||||
nonce: int = None,
|
||||
gas_price: int = None,
|
||||
gas_limit: int = None,
|
||||
payer: str = None,
|
||||
tx_attributes: List[OntologyTxAttribute] = None,
|
||||
) -> None:
|
||||
self.version = version
|
||||
self.type = type
|
||||
self.nonce = nonce
|
||||
self.gas_price = gas_price
|
||||
self.gas_limit = gas_limit
|
||||
self.payer = payer
|
||||
self.tx_attributes = tx_attributes if tx_attributes is not None else []
|
@ -0,0 +1,24 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyTransfer(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('asset', p.UVarintType, 0),
|
||||
2: ('amount', p.UVarintType, 0),
|
||||
3: ('from_address', p.UnicodeType, 0),
|
||||
4: ('to_address', p.UnicodeType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
asset: int = None,
|
||||
amount: int = None,
|
||||
from_address: str = None,
|
||||
to_address: str = None,
|
||||
) -> None:
|
||||
self.asset = asset
|
||||
self.amount = amount
|
||||
self.from_address = from_address
|
||||
self.to_address = to_address
|
@ -0,0 +1,18 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyTxAttribute(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('usage', p.UVarintType, 0),
|
||||
2: ('data', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
usage: int = None,
|
||||
data: bytes = None,
|
||||
) -> None:
|
||||
self.usage = usage
|
||||
self.data = data
|
@ -0,0 +1,21 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyWithdrawOng(p.MessageType):
|
||||
FIELDS = {
|
||||
1: ('amount', p.UVarintType, 0),
|
||||
2: ('from_address', p.UnicodeType, 0),
|
||||
3: ('to_address', p.UnicodeType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
amount: int = None,
|
||||
from_address: str = None,
|
||||
to_address: str = None,
|
||||
) -> None:
|
||||
self.amount = amount
|
||||
self.from_address = from_address
|
||||
self.to_address = to_address
|
@ -0,0 +1,5 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
Ed25519 = 0
|
||||
Secp256k1 = 1
|
||||
P256 = 2
|
@ -1,15 +0,0 @@
|
||||
# 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
|
@ -1,5 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
Transaction = 8
|
||||
Origination = 9
|
||||
Delegation = 10
|
@ -0,0 +1,47 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TezosContractID import TezosContractID
|
||||
|
||||
|
||||
class TezosOriginationOp(p.MessageType):
|
||||
FIELDS = {
|
||||
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: ('manager_pubkey', p.BytesType, 0),
|
||||
7: ('balance', p.UVarintType, 0),
|
||||
8: ('spendable', p.BoolType, 0),
|
||||
9: ('delegatable', p.BoolType, 0),
|
||||
10: ('delegate', p.BytesType, 0),
|
||||
11: ('script', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
source: TezosContractID = None,
|
||||
fee: int = None,
|
||||
counter: int = None,
|
||||
gas_limit: int = None,
|
||||
storage_limit: int = None,
|
||||
manager_pubkey: bytes = None,
|
||||
balance: int = None,
|
||||
spendable: bool = None,
|
||||
delegatable: bool = None,
|
||||
delegate: bytes = None,
|
||||
script: bytes = None,
|
||||
) -> None:
|
||||
self.source = source
|
||||
self.fee = fee
|
||||
self.counter = counter
|
||||
self.gas_limit = gas_limit
|
||||
self.storage_limit = storage_limit
|
||||
self.manager_pubkey = manager_pubkey
|
||||
self.balance = balance
|
||||
self.spendable = spendable
|
||||
self.delegatable = delegatable
|
||||
self.delegate = delegate
|
||||
self.script = script
|
@ -1,30 +0,0 @@
|
||||
# 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,32 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TezosContractID import TezosContractID
|
||||
|
||||
|
||||
class TezosRevealOp(p.MessageType):
|
||||
FIELDS = {
|
||||
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: ('public_key', p.BytesType, 0),
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
source: TezosContractID = None,
|
||||
fee: int = None,
|
||||
counter: int = None,
|
||||
gas_limit: int = None,
|
||||
storage_limit: int = None,
|
||||
public_key: bytes = None,
|
||||
) -> None:
|
||||
self.source = source
|
||||
self.fee = fee
|
||||
self.counter = counter
|
||||
self.gas_limit = gas_limit
|
||||
self.storage_limit = storage_limit
|
||||
self.public_key = public_key
|
@ -0,0 +1,38 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TezosContractID import TezosContractID
|
||||
|
||||
|
||||
class TezosTransactionOp(p.MessageType):
|
||||
FIELDS = {
|
||||
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),
|
||||
}
|
||||
|
||||
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
|
@ -1,23 +0,0 @@
|
||||
# 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
|
Loading…
Reference in new issue