Versions in this module Expand all Collapse all v0 v0.1.0 Jan 7, 2021 Changes in this version + const ModuleName + const PortID + const PortKey + const QuerierRoute + const QueryIBCAccount + const QueryIBCAccountFromData + const RouterKey + const StoreKey + const Version + var ErrAccountAlreadyExist = sdkerrors.Register(ModuleName, 2, "account already exist") + var ErrIBCAccountNotFound = sdkerrors.Register(ModuleName, 7, "ibc account not found") + var ErrIntOverflowAccount = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthAccount = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidOutgoingData = sdkerrors.Register(ModuleName, 4, "invalid outgoing data") + var ErrInvalidRoute = sdkerrors.Register(ModuleName, 5, "invalid route") + var ErrTxEncoderAlreadyRegistered = sdkerrors.Register(ModuleName, 6, "tx encoder already registered") + var ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + var ErrUnknownPacketData = sdkerrors.Register(ModuleName, 1, "unknown packet data") + var ErrUnsupportedChain = sdkerrors.Register(ModuleName, 3, "unsupported chain") + var KeyPrefixRegisteredAccount = []byte("register") + var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) + var Type_name = map[int32]string + var Type_value = map[string]int32 + func GetIdentifier(portID, channelID string) string + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error + func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error + func RegisterQueryServer(s grpc1.Server, srv QueryServer) + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI + NewAccount func(ctx sdk.Context, acc authtypes.AccountI) authtypes.AccountI + NewAccountWithAddress func(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI + SetAccount func(ctx sdk.Context, acc authtypes.AccountI) + type ChannelKeeper interface + ChanCloseInit func(ctx sdk.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error + GetChannel func(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool) + GetNextSequenceSend func(ctx sdk.Context, portID, channelID string) (uint64, bool) + SendPacket func(ctx sdk.Context, channelCap *capabilitytypes.Capability, ...) error + type ClientKeeper interface + GetClientState func(ctx sdk.Context, clientID string) (ibcexported.ClientState, bool) + type ConnectionKeeper interface + GetConnection func(ctx sdk.Context, connectionID string) (connection connectiontypes.ConnectionEnd, found bool) + type GenesisState struct + PortId string + func DefaultGenesis() *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (m *GenesisState) GetPortId() string + 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 IBCAccount struct + DestinationChannel string + DestinationPort string + SourceChannel string + SourcePort string + func NewIBCAccount(ba *authtypes.BaseAccount, ...) *IBCAccount + func (*IBCAccount) Descriptor() ([]byte, []int) + func (*IBCAccount) ProtoMessage() + func (IBCAccount) SetPubKey(pubKey crypto.PubKey) error + func (IBCAccount) SetSequence(seq uint64) error + func (ia *IBCAccount) UnmarshalJSON(bz []byte) error + func (ia IBCAccount) GetDestinationChannel() string + func (ia IBCAccount) GetDestinationPort() string + func (ia IBCAccount) GetSourceChannel() string + func (ia IBCAccount) GetSourcePort() string + func (ia IBCAccount) MarshalJSON() ([]byte, error) + func (ia IBCAccount) MarshalYAML() (interface{}, error) + func (ia IBCAccount) String() string + func (ia IBCAccount) Validate() error + func (m *IBCAccount) Marshal() (dAtA []byte, err error) + func (m *IBCAccount) MarshalTo(dAtA []byte) (int, error) + func (m *IBCAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *IBCAccount) Reset() + func (m *IBCAccount) Size() (n int) + func (m *IBCAccount) Unmarshal(dAtA []byte) error + func (m *IBCAccount) XXX_DiscardUnknown() + func (m *IBCAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IBCAccount) XXX_Merge(src proto.Message) + func (m *IBCAccount) XXX_Size() int + func (m *IBCAccount) XXX_Unmarshal(b []byte) error + type IBCAccountHooks interface + OnAccountCreated func(ctx sdk.Context, sourcePort, sourceChannel string, address sdk.AccAddress) + OnTxFailed func(ctx sdk.Context, sourcePort, sourceChannel string, txHash []byte, ...) + OnTxSucceeded func(ctx sdk.Context, sourcePort, sourceChannel string, txHash []byte, ...) + type IBCAccountI interface + GetDestinationChannel func() string + GetDestinationPort func() string + GetSourceChannel func() string + GetSourcePort func() string + type IBCAccountPacketAcknowledgement struct + ChainID string + Code uint32 + Data []byte + Error string + Type Type + func (*IBCAccountPacketAcknowledgement) Descriptor() ([]byte, []int) + func (*IBCAccountPacketAcknowledgement) ProtoMessage() + func (ack IBCAccountPacketAcknowledgement) GetBytes() []byte + func (m *IBCAccountPacketAcknowledgement) GetChainID() string + func (m *IBCAccountPacketAcknowledgement) GetCode() uint32 + func (m *IBCAccountPacketAcknowledgement) GetData() []byte + func (m *IBCAccountPacketAcknowledgement) GetError() string + func (m *IBCAccountPacketAcknowledgement) GetType() Type + func (m *IBCAccountPacketAcknowledgement) Marshal() (dAtA []byte, err error) + func (m *IBCAccountPacketAcknowledgement) MarshalTo(dAtA []byte) (int, error) + func (m *IBCAccountPacketAcknowledgement) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *IBCAccountPacketAcknowledgement) Reset() + func (m *IBCAccountPacketAcknowledgement) Size() (n int) + func (m *IBCAccountPacketAcknowledgement) String() string + func (m *IBCAccountPacketAcknowledgement) Unmarshal(dAtA []byte) error + func (m *IBCAccountPacketAcknowledgement) XXX_DiscardUnknown() + func (m *IBCAccountPacketAcknowledgement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IBCAccountPacketAcknowledgement) XXX_Merge(src proto.Message) + func (m *IBCAccountPacketAcknowledgement) XXX_Size() int + func (m *IBCAccountPacketAcknowledgement) XXX_Unmarshal(b []byte) error + type IBCAccountPacketData struct + Data []byte + Type Type + func (*IBCAccountPacketData) Descriptor() ([]byte, []int) + func (*IBCAccountPacketData) ProtoMessage() + func (m *IBCAccountPacketData) GetData() []byte + func (m *IBCAccountPacketData) GetType() Type + func (m *IBCAccountPacketData) Marshal() (dAtA []byte, err error) + func (m *IBCAccountPacketData) MarshalTo(dAtA []byte) (int, error) + func (m *IBCAccountPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *IBCAccountPacketData) Reset() + func (m *IBCAccountPacketData) Size() (n int) + func (m *IBCAccountPacketData) String() string + func (m *IBCAccountPacketData) Unmarshal(dAtA []byte) error + func (m *IBCAccountPacketData) XXX_DiscardUnknown() + func (m *IBCAccountPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IBCAccountPacketData) XXX_Merge(src proto.Message) + func (m *IBCAccountPacketData) XXX_Size() int + func (m *IBCAccountPacketData) XXX_Unmarshal(b []byte) error + func (packet IBCAccountPacketData) GetBytes() []byte + type IBCTxBody struct + Messages []*types.Any + func (*IBCTxBody) Descriptor() ([]byte, []int) + func (*IBCTxBody) ProtoMessage() + func (m *IBCTxBody) GetMessages() []*types.Any + func (m *IBCTxBody) Marshal() (dAtA []byte, err error) + func (m *IBCTxBody) MarshalTo(dAtA []byte) (int, error) + func (m *IBCTxBody) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *IBCTxBody) Reset() + func (m *IBCTxBody) Size() (n int) + func (m *IBCTxBody) String() string + func (m *IBCTxBody) Unmarshal(dAtA []byte) error + func (m *IBCTxBody) XXX_DiscardUnknown() + func (m *IBCTxBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IBCTxBody) XXX_Merge(src proto.Message) + func (m *IBCTxBody) XXX_Size() int + func (m *IBCTxBody) XXX_Unmarshal(b []byte) error + type IBCTxRaw struct + BodyBytes []byte + func (*IBCTxRaw) Descriptor() ([]byte, []int) + func (*IBCTxRaw) ProtoMessage() + func (m *IBCTxRaw) GetBodyBytes() []byte + func (m *IBCTxRaw) Marshal() (dAtA []byte, err error) + func (m *IBCTxRaw) MarshalTo(dAtA []byte) (int, error) + func (m *IBCTxRaw) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *IBCTxRaw) Reset() + func (m *IBCTxRaw) Size() (n int) + func (m *IBCTxRaw) String() string + func (m *IBCTxRaw) Unmarshal(dAtA []byte) error + func (m *IBCTxRaw) XXX_DiscardUnknown() + func (m *IBCTxRaw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IBCTxRaw) XXX_Merge(src proto.Message) + func (m *IBCTxRaw) XXX_Size() int + func (m *IBCTxRaw) XXX_Unmarshal(b []byte) error + type MultiIBCAccountHooks []IBCAccountHooks + func NewMultiIBCAccountHooks(hooks ...IBCAccountHooks) MultiIBCAccountHooks + func (h MultiIBCAccountHooks) OnAccountCreated(ctx sdk.Context, sourcePort, sourceChannel string, address sdk.AccAddress) + func (h MultiIBCAccountHooks) OnTxFailed(ctx sdk.Context, sourcePort, sourceChannel string, txHash []byte, ...) + func (h MultiIBCAccountHooks) OnTxSucceeded(ctx sdk.Context, sourcePort, sourceChannel string, txHash []byte, ...) + type PortKeeper interface + BindPort func(ctx sdk.Context, portID string) *capabilitytypes.Capability + type QueryClient interface + IBCAccount func(ctx context.Context, in *QueryIBCAccountRequest, opts ...grpc.CallOption) (*QueryIBCAccountResponse, error) + IBCAccountFromData func(ctx context.Context, in *QueryIBCAccountFromDataRequest, ...) (*QueryIBCAccountResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryIBCAccountFromDataRequest struct + Channel string + Data string + Port string + func (*QueryIBCAccountFromDataRequest) Descriptor() ([]byte, []int) + func (*QueryIBCAccountFromDataRequest) ProtoMessage() + func (m *QueryIBCAccountFromDataRequest) Marshal() (dAtA []byte, err error) + func (m *QueryIBCAccountFromDataRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryIBCAccountFromDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryIBCAccountFromDataRequest) Reset() + func (m *QueryIBCAccountFromDataRequest) Size() (n int) + func (m *QueryIBCAccountFromDataRequest) String() string + func (m *QueryIBCAccountFromDataRequest) Unmarshal(dAtA []byte) error + func (m *QueryIBCAccountFromDataRequest) XXX_DiscardUnknown() + func (m *QueryIBCAccountFromDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryIBCAccountFromDataRequest) XXX_Merge(src proto.Message) + func (m *QueryIBCAccountFromDataRequest) XXX_Size() int + func (m *QueryIBCAccountFromDataRequest) XXX_Unmarshal(b []byte) error + type QueryIBCAccountRequest struct + Address string + func (*QueryIBCAccountRequest) Descriptor() ([]byte, []int) + func (*QueryIBCAccountRequest) ProtoMessage() + func (m *QueryIBCAccountRequest) Marshal() (dAtA []byte, err error) + func (m *QueryIBCAccountRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryIBCAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryIBCAccountRequest) Reset() + func (m *QueryIBCAccountRequest) Size() (n int) + func (m *QueryIBCAccountRequest) String() string + func (m *QueryIBCAccountRequest) Unmarshal(dAtA []byte) error + func (m *QueryIBCAccountRequest) XXX_DiscardUnknown() + func (m *QueryIBCAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryIBCAccountRequest) XXX_Merge(src proto.Message) + func (m *QueryIBCAccountRequest) XXX_Size() int + func (m *QueryIBCAccountRequest) XXX_Unmarshal(b []byte) error + type QueryIBCAccountResponse struct + Account *IBCAccount + func (*QueryIBCAccountResponse) Descriptor() ([]byte, []int) + func (*QueryIBCAccountResponse) ProtoMessage() + func (m *QueryIBCAccountResponse) GetAccount() *IBCAccount + func (m *QueryIBCAccountResponse) Marshal() (dAtA []byte, err error) + func (m *QueryIBCAccountResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryIBCAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryIBCAccountResponse) Reset() + func (m *QueryIBCAccountResponse) Size() (n int) + func (m *QueryIBCAccountResponse) String() string + func (m *QueryIBCAccountResponse) Unmarshal(dAtA []byte) error + func (m *QueryIBCAccountResponse) XXX_DiscardUnknown() + func (m *QueryIBCAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryIBCAccountResponse) XXX_Merge(src proto.Message) + func (m *QueryIBCAccountResponse) XXX_Size() int + func (m *QueryIBCAccountResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + IBCAccount func(context.Context, *QueryIBCAccountRequest) (*QueryIBCAccountResponse, error) + IBCAccountFromData func(context.Context, *QueryIBCAccountFromDataRequest) (*QueryIBCAccountResponse, error) + type Router interface + Route func(ctx sdk.Context, path string) sdk.Handler + type TxEncoder func(data interface{}) ([]byte, error) + type Type int32 + const Type_REGISTER + const Type_RUNTX + func (Type) EnumDescriptor() ([]byte, []int) + func (x Type) String() string + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) IBCAccount(ctx context.Context, req *QueryIBCAccountRequest) (*QueryIBCAccountResponse, error) + func (*UnimplementedQueryServer) IBCAccountFromData(ctx context.Context, req *QueryIBCAccountFromDataRequest) (*QueryIBCAccountResponse, error)