types

package
v4.1.1-croeseid Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "icaauth"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_icaauth"

	// Version defines the current version the IBC module supports
	Version = "icaauth-1"
)
View Source
const TypeMsgRegisterAccount = "register_account"
View Source
const TypeMsgSubmitTx = "submit_tx"

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyMinTimeoutDuration     = []byte("MinTimeoutDuration")
	DefaultMinTimeoutDuration = time.Hour
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func AccAddress

func AccAddress() string

AccAddress returns a sample account address (for use in testing)

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type GenesisState

type GenesisState struct {
	// params defines the genesis parameters
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the icaauth module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// RegisterAccount registers an interchain account on host chain with given `connectionId`
	RegisterAccount(ctx context.Context, in *MsgRegisterAccount, opts ...grpc.CallOption) (*MsgRegisterAccountResponse, error)
	// SubmitTx submits a transaction to the host chain on behalf of interchain account
	SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc.CallOption) (*MsgSubmitTxResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgRegisterAccount

type MsgRegisterAccount struct {
	// owner represents the owner of the interchain account
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// connectionId represents the IBC `connectionId` of the host chain
	ConnectionId string `protobuf:"bytes,2,opt,name=connectionId,proto3" json:"connectionId,omitempty" yaml:"connection_id"`
	// version represents the version of the ICA channel
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
}

MsgRegisterAccount defines the request message for MsgRegisterAccount

func NewMsgRegisterAccount

func NewMsgRegisterAccount(owner string, connectionID string, version string) *MsgRegisterAccount

func (*MsgRegisterAccount) Descriptor

func (*MsgRegisterAccount) Descriptor() ([]byte, []int)

func (*MsgRegisterAccount) GetConnectionId

func (m *MsgRegisterAccount) GetConnectionId() string

func (*MsgRegisterAccount) GetOwner

func (m *MsgRegisterAccount) GetOwner() string

func (*MsgRegisterAccount) GetSignBytes

func (msg *MsgRegisterAccount) GetSignBytes() []byte

func (*MsgRegisterAccount) GetSigners

func (msg *MsgRegisterAccount) GetSigners() []sdk.AccAddress

func (*MsgRegisterAccount) GetVersion

func (m *MsgRegisterAccount) GetVersion() string

func (*MsgRegisterAccount) Marshal

func (m *MsgRegisterAccount) Marshal() (dAtA []byte, err error)

func (*MsgRegisterAccount) MarshalTo

func (m *MsgRegisterAccount) MarshalTo(dAtA []byte) (int, error)

func (*MsgRegisterAccount) MarshalToSizedBuffer

func (m *MsgRegisterAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRegisterAccount) ProtoMessage

func (*MsgRegisterAccount) ProtoMessage()

func (*MsgRegisterAccount) Reset

func (m *MsgRegisterAccount) Reset()

func (*MsgRegisterAccount) Route

func (msg *MsgRegisterAccount) Route() string

func (*MsgRegisterAccount) Size

func (m *MsgRegisterAccount) Size() (n int)

func (*MsgRegisterAccount) String

func (m *MsgRegisterAccount) String() string

func (*MsgRegisterAccount) Type

func (msg *MsgRegisterAccount) Type() string

func (*MsgRegisterAccount) Unmarshal

func (m *MsgRegisterAccount) Unmarshal(dAtA []byte) error

func (*MsgRegisterAccount) ValidateBasic

func (msg *MsgRegisterAccount) ValidateBasic() error

func (*MsgRegisterAccount) XXX_DiscardUnknown

func (m *MsgRegisterAccount) XXX_DiscardUnknown()

func (*MsgRegisterAccount) XXX_Marshal

func (m *MsgRegisterAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRegisterAccount) XXX_Merge

func (m *MsgRegisterAccount) XXX_Merge(src proto.Message)

func (*MsgRegisterAccount) XXX_Size

func (m *MsgRegisterAccount) XXX_Size() int

func (*MsgRegisterAccount) XXX_Unmarshal

func (m *MsgRegisterAccount) XXX_Unmarshal(b []byte) error

type MsgRegisterAccountResponse

type MsgRegisterAccountResponse struct {
}

MsgRegisterAccountResponse defines the response message for MsgRegisterAccount

func (*MsgRegisterAccountResponse) Descriptor

func (*MsgRegisterAccountResponse) Descriptor() ([]byte, []int)

func (*MsgRegisterAccountResponse) Marshal

func (m *MsgRegisterAccountResponse) Marshal() (dAtA []byte, err error)

func (*MsgRegisterAccountResponse) MarshalTo

func (m *MsgRegisterAccountResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRegisterAccountResponse) MarshalToSizedBuffer

func (m *MsgRegisterAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRegisterAccountResponse) ProtoMessage

func (*MsgRegisterAccountResponse) ProtoMessage()

func (*MsgRegisterAccountResponse) Reset

func (m *MsgRegisterAccountResponse) Reset()

func (*MsgRegisterAccountResponse) Size

func (m *MsgRegisterAccountResponse) Size() (n int)

func (*MsgRegisterAccountResponse) String

func (m *MsgRegisterAccountResponse) String() string

func (*MsgRegisterAccountResponse) Unmarshal

func (m *MsgRegisterAccountResponse) Unmarshal(dAtA []byte) error

func (*MsgRegisterAccountResponse) XXX_DiscardUnknown

func (m *MsgRegisterAccountResponse) XXX_DiscardUnknown()

func (*MsgRegisterAccountResponse) XXX_Marshal

func (m *MsgRegisterAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRegisterAccountResponse) XXX_Merge

func (m *MsgRegisterAccountResponse) XXX_Merge(src proto.Message)

func (*MsgRegisterAccountResponse) XXX_Size

func (m *MsgRegisterAccountResponse) XXX_Size() int

func (*MsgRegisterAccountResponse) XXX_Unmarshal

func (m *MsgRegisterAccountResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// RegisterAccount registers an interchain account on host chain with given `connectionId`
	RegisterAccount(context.Context, *MsgRegisterAccount) (*MsgRegisterAccountResponse, error)
	// SubmitTx submits a transaction to the host chain on behalf of interchain account
	SubmitTx(context.Context, *MsgSubmitTx) (*MsgSubmitTxResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSubmitTx

type MsgSubmitTx struct {
	// owner represents the owner of the interchain account
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// connectionId represents the IBC `connectionId` of the host chain
	ConnectionId string `protobuf:"bytes,2,opt,name=connectionId,proto3" json:"connectionId,omitempty" yaml:"connection_id"`
	// msgs represents the transactions to be submitted to the host chain
	Msgs []*types.Any `protobuf:"bytes,3,rep,name=msgs,proto3" json:"msgs,omitempty"`
	// timeoutDuration represents the timeout duration for the IBC packet from last block
	TimeoutDuration *time.Duration `protobuf:"bytes,4,opt,name=timeoutDuration,proto3,stdduration" json:"timeoutDuration,omitempty"`
}

MsgSubmitTx defines the request message for MsgSubmitTx

func NewMsgSubmitTx

func NewMsgSubmitTx(owner string, connectionID string, msgs []sdk.Msg, timeoutDuration *time.Duration) *MsgSubmitTx

func (MsgSubmitTx) CalculateTimeoutDuration

func (msg MsgSubmitTx) CalculateTimeoutDuration(minTimeoutDuration time.Duration) time.Duration

func (*MsgSubmitTx) Descriptor

func (*MsgSubmitTx) Descriptor() ([]byte, []int)

func (*MsgSubmitTx) GetConnectionId

func (m *MsgSubmitTx) GetConnectionId() string

func (MsgSubmitTx) GetMessages

func (msg MsgSubmitTx) GetMessages() ([]sdk.Msg, error)

func (*MsgSubmitTx) GetMsgs

func (m *MsgSubmitTx) GetMsgs() []*types.Any

func (*MsgSubmitTx) GetOwner

func (m *MsgSubmitTx) GetOwner() string

func (*MsgSubmitTx) GetSignBytes

func (msg *MsgSubmitTx) GetSignBytes() []byte

func (*MsgSubmitTx) GetSigners

func (msg *MsgSubmitTx) GetSigners() []sdk.AccAddress

func (*MsgSubmitTx) GetTimeoutDuration

func (m *MsgSubmitTx) GetTimeoutDuration() *time.Duration

func (*MsgSubmitTx) Marshal

func (m *MsgSubmitTx) Marshal() (dAtA []byte, err error)

func (*MsgSubmitTx) MarshalTo

func (m *MsgSubmitTx) MarshalTo(dAtA []byte) (int, error)

func (*MsgSubmitTx) MarshalToSizedBuffer

func (m *MsgSubmitTx) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSubmitTx) ProtoMessage

func (*MsgSubmitTx) ProtoMessage()

func (*MsgSubmitTx) Reset

func (m *MsgSubmitTx) Reset()

func (*MsgSubmitTx) Route

func (msg *MsgSubmitTx) Route() string

func (*MsgSubmitTx) Size

func (m *MsgSubmitTx) Size() (n int)

func (*MsgSubmitTx) String

func (m *MsgSubmitTx) String() string

func (*MsgSubmitTx) Type

func (msg *MsgSubmitTx) Type() string

func (*MsgSubmitTx) Unmarshal

func (m *MsgSubmitTx) Unmarshal(dAtA []byte) error

func (MsgSubmitTx) UnpackInterfaces

func (msg MsgSubmitTx) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*MsgSubmitTx) ValidateBasic

func (msg *MsgSubmitTx) ValidateBasic() error

func (*MsgSubmitTx) XXX_DiscardUnknown

func (m *MsgSubmitTx) XXX_DiscardUnknown()

func (*MsgSubmitTx) XXX_Marshal

func (m *MsgSubmitTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSubmitTx) XXX_Merge

func (m *MsgSubmitTx) XXX_Merge(src proto.Message)

func (*MsgSubmitTx) XXX_Size

func (m *MsgSubmitTx) XXX_Size() int

func (*MsgSubmitTx) XXX_Unmarshal

func (m *MsgSubmitTx) XXX_Unmarshal(b []byte) error

type MsgSubmitTxResponse

type MsgSubmitTxResponse struct {
}

MsgSubmitTxResponse defines the response message for MsgSubmitTx

func (*MsgSubmitTxResponse) Descriptor

func (*MsgSubmitTxResponse) Descriptor() ([]byte, []int)

func (*MsgSubmitTxResponse) Marshal

func (m *MsgSubmitTxResponse) Marshal() (dAtA []byte, err error)

func (*MsgSubmitTxResponse) MarshalTo

func (m *MsgSubmitTxResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSubmitTxResponse) MarshalToSizedBuffer

func (m *MsgSubmitTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSubmitTxResponse) ProtoMessage

func (*MsgSubmitTxResponse) ProtoMessage()

func (*MsgSubmitTxResponse) Reset

func (m *MsgSubmitTxResponse) Reset()

func (*MsgSubmitTxResponse) Size

func (m *MsgSubmitTxResponse) Size() (n int)

func (*MsgSubmitTxResponse) String

func (m *MsgSubmitTxResponse) String() string

func (*MsgSubmitTxResponse) Unmarshal

func (m *MsgSubmitTxResponse) Unmarshal(dAtA []byte) error

func (*MsgSubmitTxResponse) XXX_DiscardUnknown

func (m *MsgSubmitTxResponse) XXX_DiscardUnknown()

func (*MsgSubmitTxResponse) XXX_Marshal

func (m *MsgSubmitTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSubmitTxResponse) XXX_Merge

func (m *MsgSubmitTxResponse) XXX_Merge(src proto.Message)

func (*MsgSubmitTxResponse) XXX_Size

func (m *MsgSubmitTxResponse) XXX_Size() int

func (*MsgSubmitTxResponse) XXX_Unmarshal

func (m *MsgSubmitTxResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	// minTimeoutDuration defines the minimum value of packet timeout when submitting transactions to host chain on
	// behalf of interchain account
	MinTimeoutDuration time.Duration `protobuf:"bytes,1,opt,name=minTimeoutDuration,proto3,stdduration" json:"minTimeoutDuration" yaml:"min_timeout_duration"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	minTimeoutDuration time.Duration,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetMinTimeoutDuration

func (m *Params) GetMinTimeoutDuration() time.Duration

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// InterchainAccountAddress queries the interchain account address for given `connectionId` and `owner`
	InterchainAccountAddress(ctx context.Context, in *QueryInterchainAccountAddressRequest, opts ...grpc.CallOption) (*QueryInterchainAccountAddressResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryInterchainAccountAddressRequest

type QueryInterchainAccountAddressRequest struct {
	ConnectionId string `protobuf:"bytes,1,opt,name=connectionId,proto3" json:"connectionId,omitempty" yaml:"connection_id"`
	Owner        string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
}

QueryInterchainAccountAddressRequest defines the request for the InterchainAccountAddress query.

func (*QueryInterchainAccountAddressRequest) Descriptor

func (*QueryInterchainAccountAddressRequest) Descriptor() ([]byte, []int)

func (*QueryInterchainAccountAddressRequest) GetConnectionId

func (m *QueryInterchainAccountAddressRequest) GetConnectionId() string

func (*QueryInterchainAccountAddressRequest) GetOwner

func (*QueryInterchainAccountAddressRequest) Marshal

func (m *QueryInterchainAccountAddressRequest) Marshal() (dAtA []byte, err error)

func (*QueryInterchainAccountAddressRequest) MarshalTo

func (m *QueryInterchainAccountAddressRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryInterchainAccountAddressRequest) MarshalToSizedBuffer

func (m *QueryInterchainAccountAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryInterchainAccountAddressRequest) ProtoMessage

func (*QueryInterchainAccountAddressRequest) ProtoMessage()

func (*QueryInterchainAccountAddressRequest) Reset

func (*QueryInterchainAccountAddressRequest) Size

func (*QueryInterchainAccountAddressRequest) String

func (*QueryInterchainAccountAddressRequest) Unmarshal

func (m *QueryInterchainAccountAddressRequest) Unmarshal(dAtA []byte) error

func (*QueryInterchainAccountAddressRequest) XXX_DiscardUnknown

func (m *QueryInterchainAccountAddressRequest) XXX_DiscardUnknown()

func (*QueryInterchainAccountAddressRequest) XXX_Marshal

func (m *QueryInterchainAccountAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryInterchainAccountAddressRequest) XXX_Merge

func (*QueryInterchainAccountAddressRequest) XXX_Size

func (*QueryInterchainAccountAddressRequest) XXX_Unmarshal

func (m *QueryInterchainAccountAddressRequest) XXX_Unmarshal(b []byte) error

type QueryInterchainAccountAddressResponse

type QueryInterchainAccountAddressResponse struct {
	InterchainAccountAddress string `protobuf:"bytes,1,opt,name=interchainAccountAddress,proto3" json:"interchainAccountAddress,omitempty"`
}

QueryInterchainAccountAddressResponse defines the response for the InterchainAccountAddress query.

func (*QueryInterchainAccountAddressResponse) Descriptor

func (*QueryInterchainAccountAddressResponse) Descriptor() ([]byte, []int)

func (*QueryInterchainAccountAddressResponse) GetInterchainAccountAddress

func (m *QueryInterchainAccountAddressResponse) GetInterchainAccountAddress() string

func (*QueryInterchainAccountAddressResponse) Marshal

func (m *QueryInterchainAccountAddressResponse) Marshal() (dAtA []byte, err error)

func (*QueryInterchainAccountAddressResponse) MarshalTo

func (m *QueryInterchainAccountAddressResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryInterchainAccountAddressResponse) MarshalToSizedBuffer

func (m *QueryInterchainAccountAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryInterchainAccountAddressResponse) ProtoMessage

func (*QueryInterchainAccountAddressResponse) ProtoMessage()

func (*QueryInterchainAccountAddressResponse) Reset

func (*QueryInterchainAccountAddressResponse) Size

func (*QueryInterchainAccountAddressResponse) String

func (*QueryInterchainAccountAddressResponse) Unmarshal

func (m *QueryInterchainAccountAddressResponse) Unmarshal(dAtA []byte) error

func (*QueryInterchainAccountAddressResponse) XXX_DiscardUnknown

func (m *QueryInterchainAccountAddressResponse) XXX_DiscardUnknown()

func (*QueryInterchainAccountAddressResponse) XXX_Marshal

func (m *QueryInterchainAccountAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryInterchainAccountAddressResponse) XXX_Merge

func (*QueryInterchainAccountAddressResponse) XXX_Size

func (*QueryInterchainAccountAddressResponse) XXX_Unmarshal

func (m *QueryInterchainAccountAddressResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// InterchainAccountAddress queries the interchain account address for given `connectionId` and `owner`
	InterchainAccountAddress(context.Context, *QueryInterchainAccountAddressRequest) (*QueryInterchainAccountAddressResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) RegisterAccount

func (*UnimplementedMsgServer) SubmitTx

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL