|
|
|
@ -168,14 +168,10 @@ class MessageType(IntEnum):
|
|
|
|
|
StellarManageBuyOfferOp = 222
|
|
|
|
|
StellarPathPaymentStrictSendOp = 223
|
|
|
|
|
StellarSignedTx = 230
|
|
|
|
|
CardanoSignTx = 303
|
|
|
|
|
CardanoGetPublicKey = 305
|
|
|
|
|
CardanoPublicKey = 306
|
|
|
|
|
CardanoGetAddress = 307
|
|
|
|
|
CardanoAddress = 308
|
|
|
|
|
CardanoSignedTx = 310
|
|
|
|
|
CardanoSignedTxChunk = 311
|
|
|
|
|
CardanoSignedTxChunkAck = 312
|
|
|
|
|
CardanoTxItemAck = 313
|
|
|
|
|
CardanoTxAuxiliaryDataSupplement = 314
|
|
|
|
|
CardanoTxWitnessRequest = 315
|
|
|
|
@ -2455,8 +2451,6 @@ class CardanoPoolParametersType(protobuf.MessageType):
|
|
|
|
|
5: protobuf.Field("margin_numerator", "uint64", repeated=False, required=True),
|
|
|
|
|
6: protobuf.Field("margin_denominator", "uint64", repeated=False, required=True),
|
|
|
|
|
7: protobuf.Field("reward_account", "string", repeated=False, required=True),
|
|
|
|
|
8: protobuf.Field("owners", "CardanoPoolOwner", repeated=True, required=False),
|
|
|
|
|
9: protobuf.Field("relays", "CardanoPoolRelayParameters", repeated=True, required=False),
|
|
|
|
|
10: protobuf.Field("metadata", "CardanoPoolMetadataType", repeated=False, required=False),
|
|
|
|
|
11: protobuf.Field("owners_count", "uint32", repeated=False, required=True),
|
|
|
|
|
12: protobuf.Field("relays_count", "uint32", repeated=False, required=True),
|
|
|
|
@ -2474,12 +2468,8 @@ class CardanoPoolParametersType(protobuf.MessageType):
|
|
|
|
|
reward_account: "str",
|
|
|
|
|
owners_count: "int",
|
|
|
|
|
relays_count: "int",
|
|
|
|
|
owners: Optional[Sequence["CardanoPoolOwner"]] = None,
|
|
|
|
|
relays: Optional[Sequence["CardanoPoolRelayParameters"]] = None,
|
|
|
|
|
metadata: Optional["CardanoPoolMetadataType"] = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.owners: Sequence["CardanoPoolOwner"] = owners if owners is not None else []
|
|
|
|
|
self.relays: Sequence["CardanoPoolRelayParameters"] = relays if relays is not None else []
|
|
|
|
|
self.pool_id = pool_id
|
|
|
|
|
self.vrf_key_hash = vrf_key_hash
|
|
|
|
|
self.pledge = pledge
|
|
|
|
@ -2715,259 +2705,6 @@ class CardanoSignTxFinished(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = 319
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoSignTx(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = 303
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("inputs", "CardanoTxInputType", repeated=True, required=False),
|
|
|
|
|
2: protobuf.Field("outputs", "CardanoTxOutputType", repeated=True, required=False),
|
|
|
|
|
5: protobuf.Field("protocol_magic", "uint32", repeated=False, required=True),
|
|
|
|
|
6: protobuf.Field("fee", "uint64", repeated=False, required=True),
|
|
|
|
|
7: protobuf.Field("ttl", "uint64", repeated=False, required=False),
|
|
|
|
|
8: protobuf.Field("network_id", "uint32", repeated=False, required=True),
|
|
|
|
|
9: protobuf.Field("certificates", "CardanoTxCertificateType", repeated=True, required=False),
|
|
|
|
|
10: protobuf.Field("withdrawals", "CardanoTxWithdrawalType", repeated=True, required=False),
|
|
|
|
|
12: protobuf.Field("validity_interval_start", "uint64", repeated=False, required=False),
|
|
|
|
|
13: protobuf.Field("auxiliary_data", "CardanoTxAuxiliaryDataType", repeated=False, required=False),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
protocol_magic: "int",
|
|
|
|
|
fee: "int",
|
|
|
|
|
network_id: "int",
|
|
|
|
|
inputs: Optional[Sequence["CardanoTxInputType"]] = None,
|
|
|
|
|
outputs: Optional[Sequence["CardanoTxOutputType"]] = None,
|
|
|
|
|
certificates: Optional[Sequence["CardanoTxCertificateType"]] = None,
|
|
|
|
|
withdrawals: Optional[Sequence["CardanoTxWithdrawalType"]] = None,
|
|
|
|
|
ttl: Optional["int"] = None,
|
|
|
|
|
validity_interval_start: Optional["int"] = None,
|
|
|
|
|
auxiliary_data: Optional["CardanoTxAuxiliaryDataType"] = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.inputs: Sequence["CardanoTxInputType"] = inputs if inputs is not None else []
|
|
|
|
|
self.outputs: Sequence["CardanoTxOutputType"] = outputs if outputs is not None else []
|
|
|
|
|
self.certificates: Sequence["CardanoTxCertificateType"] = certificates if certificates is not None else []
|
|
|
|
|
self.withdrawals: Sequence["CardanoTxWithdrawalType"] = withdrawals if withdrawals is not None else []
|
|
|
|
|
self.protocol_magic = protocol_magic
|
|
|
|
|
self.fee = fee
|
|
|
|
|
self.network_id = network_id
|
|
|
|
|
self.ttl = ttl
|
|
|
|
|
self.validity_interval_start = validity_interval_start
|
|
|
|
|
self.auxiliary_data = auxiliary_data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoSignedTxChunk(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = 311
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("signed_tx_chunk", "bytes", repeated=False, required=True),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
signed_tx_chunk: "bytes",
|
|
|
|
|
) -> None:
|
|
|
|
|
self.signed_tx_chunk = signed_tx_chunk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoSignedTxChunkAck(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = 312
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoSignedTx(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = 310
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("tx_hash", "bytes", repeated=False, required=True),
|
|
|
|
|
2: protobuf.Field("serialized_tx", "bytes", repeated=False, required=False),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
tx_hash: "bytes",
|
|
|
|
|
serialized_tx: Optional["bytes"] = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.tx_hash = tx_hash
|
|
|
|
|
self.serialized_tx = serialized_tx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoTxInputType(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = None
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("address_n", "uint32", repeated=True, required=False),
|
|
|
|
|
2: protobuf.Field("prev_hash", "bytes", repeated=False, required=True),
|
|
|
|
|
3: protobuf.Field("prev_index", "uint32", repeated=False, required=True),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
prev_hash: "bytes",
|
|
|
|
|
prev_index: "int",
|
|
|
|
|
address_n: Optional[Sequence["int"]] = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.address_n: Sequence["int"] = address_n if address_n is not None else []
|
|
|
|
|
self.prev_hash = prev_hash
|
|
|
|
|
self.prev_index = prev_index
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoTxOutputType(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = None
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("address", "string", repeated=False, required=False),
|
|
|
|
|
3: protobuf.Field("amount", "uint64", repeated=False, required=True),
|
|
|
|
|
4: protobuf.Field("address_parameters", "CardanoAddressParametersType", repeated=False, required=False),
|
|
|
|
|
5: protobuf.Field("token_bundle", "CardanoAssetGroupType", repeated=True, required=False),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
amount: "int",
|
|
|
|
|
token_bundle: Optional[Sequence["CardanoAssetGroupType"]] = None,
|
|
|
|
|
address: Optional["str"] = None,
|
|
|
|
|
address_parameters: Optional["CardanoAddressParametersType"] = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.token_bundle: Sequence["CardanoAssetGroupType"] = token_bundle if token_bundle is not None else []
|
|
|
|
|
self.amount = amount
|
|
|
|
|
self.address = address
|
|
|
|
|
self.address_parameters = address_parameters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoAssetGroupType(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = None
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("policy_id", "bytes", repeated=False, required=True),
|
|
|
|
|
2: protobuf.Field("tokens", "CardanoTokenType", repeated=True, required=False),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
policy_id: "bytes",
|
|
|
|
|
tokens: Optional[Sequence["CardanoTokenType"]] = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.tokens: Sequence["CardanoTokenType"] = tokens if tokens is not None else []
|
|
|
|
|
self.policy_id = policy_id
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoTokenType(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = None
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("asset_name_bytes", "bytes", repeated=False, required=True),
|
|
|
|
|
2: protobuf.Field("amount", "uint64", repeated=False, required=True),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
asset_name_bytes: "bytes",
|
|
|
|
|
amount: "int",
|
|
|
|
|
) -> None:
|
|
|
|
|
self.asset_name_bytes = asset_name_bytes
|
|
|
|
|
self.amount = amount
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoPoolOwnerType(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = None
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("staking_key_path", "uint32", repeated=True, required=False),
|
|
|
|
|
2: protobuf.Field("staking_key_hash", "bytes", repeated=False, required=False),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
staking_key_path: Optional[Sequence["int"]] = None,
|
|
|
|
|
staking_key_hash: Optional["bytes"] = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.staking_key_path: Sequence["int"] = staking_key_path if staking_key_path is not None else []
|
|
|
|
|
self.staking_key_hash = staking_key_hash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoPoolRelayParametersType(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = None
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("type", "CardanoPoolRelayType", repeated=False, required=True),
|
|
|
|
|
2: protobuf.Field("ipv4_address", "bytes", repeated=False, required=False),
|
|
|
|
|
3: protobuf.Field("ipv6_address", "bytes", repeated=False, required=False),
|
|
|
|
|
4: protobuf.Field("host_name", "string", repeated=False, required=False),
|
|
|
|
|
5: protobuf.Field("port", "uint32", repeated=False, required=False),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
type: "CardanoPoolRelayType",
|
|
|
|
|
ipv4_address: Optional["bytes"] = None,
|
|
|
|
|
ipv6_address: Optional["bytes"] = None,
|
|
|
|
|
host_name: Optional["str"] = None,
|
|
|
|
|
port: Optional["int"] = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.type = type
|
|
|
|
|
self.ipv4_address = ipv4_address
|
|
|
|
|
self.ipv6_address = ipv6_address
|
|
|
|
|
self.host_name = host_name
|
|
|
|
|
self.port = port
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoTxCertificateType(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = None
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("type", "CardanoCertificateType", repeated=False, required=True),
|
|
|
|
|
2: protobuf.Field("path", "uint32", repeated=True, required=False),
|
|
|
|
|
3: protobuf.Field("pool", "bytes", repeated=False, required=False),
|
|
|
|
|
4: protobuf.Field("pool_parameters", "CardanoPoolParametersType", repeated=False, required=False),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
type: "CardanoCertificateType",
|
|
|
|
|
path: Optional[Sequence["int"]] = None,
|
|
|
|
|
pool: Optional["bytes"] = None,
|
|
|
|
|
pool_parameters: Optional["CardanoPoolParametersType"] = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.path: Sequence["int"] = path if path is not None else []
|
|
|
|
|
self.type = type
|
|
|
|
|
self.pool = pool
|
|
|
|
|
self.pool_parameters = pool_parameters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoTxWithdrawalType(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = None
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("path", "uint32", repeated=True, required=False),
|
|
|
|
|
2: protobuf.Field("amount", "uint64", repeated=False, required=True),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
amount: "int",
|
|
|
|
|
path: Optional[Sequence["int"]] = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.path: Sequence["int"] = path if path is not None else []
|
|
|
|
|
self.amount = amount
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CardanoTxAuxiliaryDataType(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = None
|
|
|
|
|
FIELDS = {
|
|
|
|
|
1: protobuf.Field("blob", "bytes", repeated=False, required=False),
|
|
|
|
|
2: protobuf.Field("catalyst_registration_parameters", "CardanoCatalystRegistrationParametersType", repeated=False, required=False),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
blob: Optional["bytes"] = None,
|
|
|
|
|
catalyst_registration_parameters: Optional["CardanoCatalystRegistrationParametersType"] = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.blob = blob
|
|
|
|
|
self.catalyst_registration_parameters = catalyst_registration_parameters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CipherKeyValue(protobuf.MessageType):
|
|
|
|
|
MESSAGE_WIRE_TYPE = 23
|
|
|
|
|
FIELDS = {
|
|
|
|
|