Versions in this module Expand all Collapse all v3 v3.3.3 Apr 19, 2023 Changes in this version + const AttributeKeyAckError + const AttributeKeyAckSuccess + const AttributeKeyHostChannelID + const EncodingProtobuf + const EventTypePacket + const MaxMemoCharLength + const ModuleName + const PortID + const PortPrefix + const QuerierRoute + const RouterKey + const StoreKey + const TxTypeSDKMultiMsg + const Version + var ActiveChannelKeyPrefix = "activeChannel" + var DefaultMaxAddrLength = 128 + var ErrAccountAlreadyExist = sdkerrors.Register(ModuleName, 3, "account already exist") + var ErrActiveChannelAlreadySet = sdkerrors.Register(ModuleName, 10, "active channel already set for this owner") + var ErrActiveChannelNotFound = sdkerrors.Register(ModuleName, 11, "no active channel for this owner") + var ErrIntOverflowAccount = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowMetadata = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") + var ErrInterchainAccountAlreadySet = sdkerrors.Register(ModuleName, 9, "interchain account is already set") + var ErrInterchainAccountNotFound = sdkerrors.Register(ModuleName, 8, "interchain account not found") + var ErrInvalidAccountAddress = sdkerrors.Register(ModuleName, 13, "invalid account address") + var ErrInvalidAccountReopening = sdkerrors.Register(ModuleName, 19, "invalid account reopening") + var ErrInvalidChannelFlow = sdkerrors.Register(ModuleName, 5, "invalid message sent to channel end") + var ErrInvalidCodec = sdkerrors.Register(ModuleName, 18, "codec is not supported") + var ErrInvalidControllerPort = sdkerrors.Register(ModuleName, 15, "invalid controller port") + var ErrInvalidHostPort = sdkerrors.Register(ModuleName, 16, "invalid host port") + var ErrInvalidLengthAccount = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthMetadata = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthPacket = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidOutgoingData = sdkerrors.Register(ModuleName, 6, "invalid outgoing data") + var ErrInvalidRoute = sdkerrors.Register(ModuleName, 7, "invalid route") + var ErrInvalidTimeoutTimestamp = sdkerrors.Register(ModuleName, 17, "timeout timestamp must be in the future") + var ErrInvalidVersion = sdkerrors.Register(ModuleName, 12, "invalid interchain accounts version") + var ErrPortAlreadyBound = sdkerrors.Register(ModuleName, 4, "port is already bound") + var ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupMetadata = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group") + var ErrUnknownDataType = sdkerrors.Register(ModuleName, 2, "unknown data type") + var ErrUnsupported = sdkerrors.Register(ModuleName, 14, "interchain account does not support this action") + var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) + var OwnerKeyPrefix = "owner" + var PortKeyPrefix = "port" + var Type_name = map[int32]string + var Type_value = map[string]int32 + func DeserializeCosmosTx(cdc codec.BinaryCodec, data []byte) ([]sdk.Msg, error) + func GenerateAddress(moduleAccAddr sdk.AccAddress, connectionID, portID string) sdk.AccAddress + func GenerateUniqueAddress(ctx sdk.Context, connectionID, portID string) sdk.AccAddress + func IsPreviousMetadataEqual(previousVersion string, metadata Metadata) bool + func KeyActiveChannel(portID, connectionID string) []byte + func KeyOwnerAccount(portID, connectionID string) []byte + func KeyPort(portID string) []byte + func NewControllerPortID(owner string) (string, error) + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func SerializeCosmosTx(cdc codec.BinaryCodec, msgs []sdk.Msg) (bz []byte, err error) + func ValidateAccountAddress(addr string) error + func ValidateControllerMetadata(ctx sdk.Context, channelKeeper ChannelKeeper, connectionHops []string, ...) error + func ValidateHostMetadata(ctx sdk.Context, channelKeeper ChannelKeeper, connectionHops []string, ...) error + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI + GetModuleAccount func(ctx sdk.Context, name string) authtypes.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + NewAccount func(ctx sdk.Context, acc authtypes.AccountI) authtypes.AccountI + SetAccount func(ctx sdk.Context, acc authtypes.AccountI) + type ActiveChannel struct + ChannelId string + ConnectionId string + PortId string + func (*ActiveChannel) Descriptor() ([]byte, []int) + func (*ActiveChannel) ProtoMessage() + func (m *ActiveChannel) GetChannelId() string + func (m *ActiveChannel) GetConnectionId() string + func (m *ActiveChannel) GetPortId() string + func (m *ActiveChannel) Marshal() (dAtA []byte, err error) + func (m *ActiveChannel) MarshalTo(dAtA []byte) (int, error) + func (m *ActiveChannel) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ActiveChannel) Reset() + func (m *ActiveChannel) Size() (n int) + func (m *ActiveChannel) String() string + func (m *ActiveChannel) Unmarshal(dAtA []byte) error + func (m *ActiveChannel) XXX_DiscardUnknown() + func (m *ActiveChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ActiveChannel) XXX_Merge(src proto.Message) + func (m *ActiveChannel) XXX_Size() int + func (m *ActiveChannel) XXX_Unmarshal(b []byte) error + type ChannelKeeper interface + GetChannel func(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool) + GetConnection func(ctx sdk.Context, connectionID string) (ibcexported.ConnectionI, error) + GetNextSequenceSend func(ctx sdk.Context, portID, channelID string) (uint64, bool) + type ControllerGenesisState struct + ActiveChannels []ActiveChannel + InterchainAccounts []RegisteredInterchainAccount + Params types.Params + Ports []string + func DefaultControllerGenesis() ControllerGenesisState + func NewControllerGenesisState(channels []ActiveChannel, accounts []RegisteredInterchainAccount, ...) ControllerGenesisState + func (*ControllerGenesisState) Descriptor() ([]byte, []int) + func (*ControllerGenesisState) ProtoMessage() + func (gs ControllerGenesisState) Validate() error + func (m *ControllerGenesisState) GetActiveChannels() []ActiveChannel + func (m *ControllerGenesisState) GetInterchainAccounts() []RegisteredInterchainAccount + func (m *ControllerGenesisState) GetParams() types.Params + func (m *ControllerGenesisState) GetPorts() []string + func (m *ControllerGenesisState) Marshal() (dAtA []byte, err error) + func (m *ControllerGenesisState) MarshalTo(dAtA []byte) (int, error) + func (m *ControllerGenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ControllerGenesisState) Reset() + func (m *ControllerGenesisState) Size() (n int) + func (m *ControllerGenesisState) String() string + func (m *ControllerGenesisState) Unmarshal(dAtA []byte) error + func (m *ControllerGenesisState) XXX_DiscardUnknown() + func (m *ControllerGenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ControllerGenesisState) XXX_Merge(src proto.Message) + func (m *ControllerGenesisState) XXX_Size() int + func (m *ControllerGenesisState) XXX_Unmarshal(b []byte) error + type CosmosTx struct + Messages []*types.Any + func (*CosmosTx) Descriptor() ([]byte, []int) + func (*CosmosTx) ProtoMessage() + func (ct CosmosTx) GetBytes() []byte + func (ct CosmosTx) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + func (m *CosmosTx) GetMessages() []*types.Any + func (m *CosmosTx) Marshal() (dAtA []byte, err error) + func (m *CosmosTx) MarshalTo(dAtA []byte) (int, error) + func (m *CosmosTx) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CosmosTx) Reset() + func (m *CosmosTx) Size() (n int) + func (m *CosmosTx) String() string + func (m *CosmosTx) Unmarshal(dAtA []byte) error + func (m *CosmosTx) XXX_DiscardUnknown() + func (m *CosmosTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CosmosTx) XXX_Merge(src proto.Message) + func (m *CosmosTx) XXX_Size() int + func (m *CosmosTx) XXX_Unmarshal(b []byte) error + type GenesisState struct + ControllerGenesisState ControllerGenesisState + HostGenesisState HostGenesisState + func DefaultGenesis() *GenesisState + func NewGenesisState(controllerGenesisState ControllerGenesisState, ...) *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) Validate() error + func (m *GenesisState) GetControllerGenesisState() ControllerGenesisState + func (m *GenesisState) GetHostGenesisState() HostGenesisState + func (m *GenesisState) Marshal() (dAtA []byte, err error) + func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) + func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) error + func (m *GenesisState) XXX_DiscardUnknown() + func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenesisState) XXX_Merge(src proto.Message) + func (m *GenesisState) XXX_Size() int + func (m *GenesisState) XXX_Unmarshal(b []byte) error + type HostGenesisState struct + ActiveChannels []ActiveChannel + InterchainAccounts []RegisteredInterchainAccount + Params types1.Params + Port string + func DefaultHostGenesis() HostGenesisState + func NewHostGenesisState(channels []ActiveChannel, accounts []RegisteredInterchainAccount, port string, ...) HostGenesisState + func (*HostGenesisState) Descriptor() ([]byte, []int) + func (*HostGenesisState) ProtoMessage() + func (gs HostGenesisState) Validate() error + func (m *HostGenesisState) GetActiveChannels() []ActiveChannel + func (m *HostGenesisState) GetInterchainAccounts() []RegisteredInterchainAccount + func (m *HostGenesisState) GetParams() types1.Params + func (m *HostGenesisState) GetPort() string + func (m *HostGenesisState) Marshal() (dAtA []byte, err error) + func (m *HostGenesisState) MarshalTo(dAtA []byte) (int, error) + func (m *HostGenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *HostGenesisState) Reset() + func (m *HostGenesisState) Size() (n int) + func (m *HostGenesisState) String() string + func (m *HostGenesisState) Unmarshal(dAtA []byte) error + func (m *HostGenesisState) XXX_DiscardUnknown() + func (m *HostGenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *HostGenesisState) XXX_Merge(src proto.Message) + func (m *HostGenesisState) XXX_Size() int + func (m *HostGenesisState) XXX_Unmarshal(b []byte) error + type ICS4Wrapper interface + SendPacket func(ctx sdk.Context, channelCap *capabilitytypes.Capability, ...) error + type InterchainAccount struct + AccountOwner string + func NewInterchainAccount(ba *authtypes.BaseAccount, accountOwner string) *InterchainAccount + func (*InterchainAccount) Descriptor() ([]byte, []int) + func (*InterchainAccount) ProtoMessage() + func (ia *InterchainAccount) UnmarshalJSON(bz []byte) error + func (ia InterchainAccount) MarshalJSON() ([]byte, error) + func (ia InterchainAccount) MarshalYAML() ([]byte, error) + func (ia InterchainAccount) SetPubKey(pubKey crypto.PubKey) error + func (ia InterchainAccount) SetSequence(seq uint64) error + func (ia InterchainAccount) String() string + func (ia InterchainAccount) Validate() error + func (m *InterchainAccount) Marshal() (dAtA []byte, err error) + func (m *InterchainAccount) MarshalTo(dAtA []byte) (int, error) + func (m *InterchainAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *InterchainAccount) Reset() + func (m *InterchainAccount) Size() (n int) + func (m *InterchainAccount) Unmarshal(dAtA []byte) error + func (m *InterchainAccount) XXX_DiscardUnknown() + func (m *InterchainAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *InterchainAccount) XXX_Merge(src proto.Message) + func (m *InterchainAccount) XXX_Size() int + func (m *InterchainAccount) XXX_Unmarshal(b []byte) error + type InterchainAccountI interface + type InterchainAccountPacketData struct + Data []byte + Memo string + Type Type + func (*InterchainAccountPacketData) Descriptor() ([]byte, []int) + func (*InterchainAccountPacketData) ProtoMessage() + func (iapd InterchainAccountPacketData) GetBytes() []byte + func (iapd InterchainAccountPacketData) ValidateBasic() error + func (m *InterchainAccountPacketData) GetData() []byte + func (m *InterchainAccountPacketData) GetMemo() string + func (m *InterchainAccountPacketData) GetType() Type + func (m *InterchainAccountPacketData) Marshal() (dAtA []byte, err error) + func (m *InterchainAccountPacketData) MarshalTo(dAtA []byte) (int, error) + func (m *InterchainAccountPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *InterchainAccountPacketData) Reset() + func (m *InterchainAccountPacketData) Size() (n int) + func (m *InterchainAccountPacketData) String() string + func (m *InterchainAccountPacketData) Unmarshal(dAtA []byte) error + func (m *InterchainAccountPacketData) XXX_DiscardUnknown() + func (m *InterchainAccountPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *InterchainAccountPacketData) XXX_Merge(src proto.Message) + func (m *InterchainAccountPacketData) XXX_Size() int + func (m *InterchainAccountPacketData) XXX_Unmarshal(b []byte) error + type Metadata struct + Address string + ControllerConnectionId string + Encoding string + HostConnectionId string + TxType string + Version string + func NewMetadata(...) Metadata + func (*Metadata) Descriptor() ([]byte, []int) + func (*Metadata) ProtoMessage() + func (m *Metadata) GetAddress() string + func (m *Metadata) GetControllerConnectionId() string + func (m *Metadata) GetEncoding() string + func (m *Metadata) GetHostConnectionId() string + func (m *Metadata) GetTxType() string + func (m *Metadata) GetVersion() string + func (m *Metadata) Marshal() (dAtA []byte, err error) + func (m *Metadata) MarshalTo(dAtA []byte) (int, error) + func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Metadata) Reset() + func (m *Metadata) Size() (n int) + func (m *Metadata) String() string + func (m *Metadata) Unmarshal(dAtA []byte) error + func (m *Metadata) XXX_DiscardUnknown() + func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Metadata) XXX_Merge(src proto.Message) + func (m *Metadata) XXX_Size() int + func (m *Metadata) XXX_Unmarshal(b []byte) error + type PortKeeper interface + BindPort func(ctx sdk.Context, portID string) *capabilitytypes.Capability + IsBound func(ctx sdk.Context, portID string) bool + type RegisteredInterchainAccount struct + AccountAddress string + ConnectionId string + PortId string + func (*RegisteredInterchainAccount) Descriptor() ([]byte, []int) + func (*RegisteredInterchainAccount) ProtoMessage() + func (m *RegisteredInterchainAccount) GetAccountAddress() string + func (m *RegisteredInterchainAccount) GetConnectionId() string + func (m *RegisteredInterchainAccount) GetPortId() string + func (m *RegisteredInterchainAccount) Marshal() (dAtA []byte, err error) + func (m *RegisteredInterchainAccount) MarshalTo(dAtA []byte) (int, error) + func (m *RegisteredInterchainAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RegisteredInterchainAccount) Reset() + func (m *RegisteredInterchainAccount) Size() (n int) + func (m *RegisteredInterchainAccount) String() string + func (m *RegisteredInterchainAccount) Unmarshal(dAtA []byte) error + func (m *RegisteredInterchainAccount) XXX_DiscardUnknown() + func (m *RegisteredInterchainAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RegisteredInterchainAccount) XXX_Merge(src proto.Message) + func (m *RegisteredInterchainAccount) XXX_Size() int + func (m *RegisteredInterchainAccount) XXX_Unmarshal(b []byte) error + type Type int32 + const EXECUTE_TX + const UNSPECIFIED + func (Type) EnumDescriptor() ([]byte, []int) + func (x Type) String() string