# Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: ibc/applications/interchain_accounts/v1/account.proto, ibc/applications/interchain_accounts/v1/metadata.proto, ibc/applications/interchain_accounts/v1/packet.proto
# plugin: python-betterproto
# This file has been @generated
from dataclasses import dataclass
from typing import List
import betterproto
import betterproto.lib.google.protobuf as betterproto_lib_google_protobuf
from .....cosmos.auth import v1beta1 as ____cosmos_auth_v1_beta1__
[docs]
class Type(betterproto.Enum):
"""
Type defines a classification of message issued from a controller chain to its
associated interchain accounts
host
"""
TYPE_UNSPECIFIED = 0
"""Default zero value enumeration"""
TYPE_EXECUTE_TX = 1
"""Execute a transaction on an interchain accounts host chain"""
[docs]
@dataclass(eq=False, repr=False)
class InterchainAccountPacketData(betterproto.Message):
"""
InterchainAccountPacketData is comprised of a raw transaction, type of transaction
and optional memo field.
"""
type: "Type" = betterproto.enum_field(1)
data: bytes = betterproto.bytes_field(2)
memo: str = betterproto.string_field(3)
[docs]
@dataclass(eq=False, repr=False)
class CosmosTx(betterproto.Message):
"""
CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions
to an SDK host chain.
"""
messages: List["betterproto_lib_google_protobuf.Any"] = betterproto.message_field(1)
[docs]
@dataclass(eq=False, repr=False)
class InterchainAccount(betterproto.Message):
"""
An InterchainAccount is defined as a BaseAccount & the address of the account owner
on the controller chain
"""
base_account: "____cosmos_auth_v1_beta1__.BaseAccount" = betterproto.message_field(
1
)
account_owner: str = betterproto.string_field(2)