Versions in this module Expand all Collapse all v0 v0.1.0 Jan 19, 2024 Changes in this version + const AttributeKeyAckError + const AttributeKeyAckSuccess + const AttributeKeyControllerChannelID + 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 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 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 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 ErrInvalidPubKey = sdkerrors.Register(ModuleName, 19, "invalid pubkey") + var ErrInvalidRoute = sdkerrors.Register(ModuleName, 7, "invalid route") + var ErrInvalidSequence = sdkerrors.Register(ModuleName, 20, "invalid sequence") + 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 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.CodecProxy, data []byte) ([]sdk.MsgAdapter, error) + func GenerateAddress(moduleAccAddr sdk.AccAddress, 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 NewDefaultMetadataString(controllerConnectionID, hostConnectionID string) string + func RegisterCodec(cdc *codec.Codec) + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func SerializeCosmosTx(cdc *codec.CodecProxy, msgs []sdk.MsgAdapter) (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.Account + GetModuleAccount func(ctx sdk.Context, name string) supplyexported.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + NewAccount func(ctx sdk.Context, acc authtypes.Account) authtypes.Account + SetAccount func(ctx sdk.Context, acc authtypes.Account) + 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 AminoInterchainAccount struct + AccountOwner string + func NewAminoInterchainAccount(ba *auth.BaseAccount, accountOwner string) *AminoInterchainAccount + func (ia AminoInterchainAccount) MarshalYAML() ([]byte, error) + func (ia AminoInterchainAccount) SetPubKey(pubKey crypto.PubKey) error + func (ia AminoInterchainAccount) SetSequence(seq uint64) error + func (ia AminoInterchainAccount) String() string + func (ia AminoInterchainAccount) Validate() error + func (m *AminoInterchainAccount) Copy() sdk.Account + func (m *AminoInterchainAccount) GetAccountNumber() uint64 + func (m *AminoInterchainAccount) GetAddress() sdk.AccAddress + func (m *AminoInterchainAccount) GetSequence() uint64 + func (m *AminoInterchainAccount) SetAccountNumber(u uint64) error + func (m *AminoInterchainAccount) SetAddress(address sdk.AccAddress) error + type AminoInterchainAccountI interface + 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 + GetAppVersion func(ctx sdk.Context, portID, channelID string) (string, bool) + SendPacket func(ctx sdk.Context, channelCap *capabilitytypes.Capability, ...) 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 NewDefaultMetadata(controllerConnectionID, hostConnectionID string) Metadata + 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