Versions in this module Expand all Collapse all v0 v0.1.4 Apr 10, 2023 Changes in this version + const AttributeKeyAckError + const AttributeKeyAckSuccess + const AttributeKeyControllerChannelID + const AttributeKeyHostChannelID + const ControllerPortPrefix + const EncodingProtobuf + const EventTypePacket + const HostPortID + const MaxMemoCharLength + const ModuleName + const QuerierRoute + const RouterKey + const StoreKey + const TxTypeSDKMultiMsg + const Version + var ActiveChannelKeyPrefix = "activeChannel" + var DefaultMaxAddrLength = 128 + var DefaultRelativePacketTimeoutHeight = "0-1000" + var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds()) + var ErrAccountAlreadyExist = errorsmod.Register(ModuleName, 3, "account already exist") + var ErrActiveChannelAlreadySet = errorsmod.Register(ModuleName, 10, "active channel already set for this owner") + var ErrActiveChannelNotFound = errorsmod.Register(ModuleName, 11, "no active channel for this owner") + var ErrIntOverflowAccount = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowMetadata = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") + var ErrInterchainAccountAlreadySet = errorsmod.Register(ModuleName, 9, "interchain account is already set") + var ErrInterchainAccountNotFound = errorsmod.Register(ModuleName, 8, "interchain account not found") + var ErrInvalidAccountAddress = errorsmod.Register(ModuleName, 13, "invalid account address") + var ErrInvalidAccountReopening = errorsmod.Register(ModuleName, 19, "invalid account reopening") + var ErrInvalidChannelFlow = errorsmod.Register(ModuleName, 5, "invalid message sent to channel end") + var ErrInvalidCodec = errorsmod.Register(ModuleName, 18, "codec is not supported") + var ErrInvalidControllerPort = errorsmod.Register(ModuleName, 15, "invalid controller port") + var ErrInvalidHostPort = errorsmod.Register(ModuleName, 16, "invalid host port") + var ErrInvalidLengthAccount = 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 = errorsmod.Register(ModuleName, 6, "invalid outgoing data") + var ErrInvalidRoute = errorsmod.Register(ModuleName, 7, "invalid route") + var ErrInvalidTimeoutTimestamp = errorsmod.Register(ModuleName, 17, "timeout timestamp must be in the future") + var ErrInvalidVersion = errorsmod.Register(ModuleName, 12, "invalid interchain accounts version") + var ErrPortAlreadyBound = errorsmod.Register(ModuleName, 4, "port is already bound") + var ErrUnexpectedEndOfGroupAccount = 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 = errorsmod.Register(ModuleName, 2, "unknown data type") + var ErrUnsupported = errorsmod.Register(ModuleName, 14, "interchain account does not support this action") + var IsMiddlewareEnabledPrefix = "isMiddlewareEnabled" + var MiddlewareDisabled = []byte + var MiddlewareEnabled = []byte + 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(ctx sdk.Context, connectionID, portID string) sdk.AccAddress + func IsPreviousMetadataEqual(previousVersion string, metadata Metadata) bool + func KeyActiveChannel(portID, connectionID string) []byte + func KeyIsMiddlewareEnabled(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 RegisterInterfaces(registry codectypes.InterfaceRegistry) + func SerializeCosmosTx(cdc codec.BinaryCodec, msgs []proto.Message) (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 ChannelKeeper interface + GetAllChannelsWithPortPrefix func(ctx sdk.Context, portPrefix string) []channeltypes.IdentifiedChannel + 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 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 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 MessageRouter interface + Handler func(msg sdk.Msg) baseapp.MsgServiceHandler + 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 Type int32 + const EXECUTE_TX + const UNSPECIFIED + func (Type) EnumDescriptor() ([]byte, []int) + func (x Type) String() string