Documentation ¶
Overview ¶
NOTE: Usage of x/params to manage parameters is deprecated in favor of x/gov controlled execution of MsgUpdateParams messages. These types remains solely for migration purposes and will be removed in a future release. [#3621](https://github.com/cosmos/ibc-go/issues/3621)
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- 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 MsgClient
- type MsgRegisterInterchainAccount
- func (*MsgRegisterInterchainAccount) Descriptor() ([]byte, []int)
- func (msg MsgRegisterInterchainAccount) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterInterchainAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterInterchainAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterInterchainAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterInterchainAccount) ProtoMessage()
- func (m *MsgRegisterInterchainAccount) Reset()
- func (m *MsgRegisterInterchainAccount) Size() (n int)
- func (m *MsgRegisterInterchainAccount) String() string
- func (m *MsgRegisterInterchainAccount) Unmarshal(dAtA []byte) error
- func (msg MsgRegisterInterchainAccount) ValidateBasic() error
- func (m *MsgRegisterInterchainAccount) XXX_DiscardUnknown()
- func (m *MsgRegisterInterchainAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterInterchainAccount) XXX_Merge(src proto.Message)
- func (m *MsgRegisterInterchainAccount) XXX_Size() int
- func (m *MsgRegisterInterchainAccount) XXX_Unmarshal(b []byte) error
- type MsgRegisterInterchainAccountResponse
- func (*MsgRegisterInterchainAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterInterchainAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterInterchainAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterInterchainAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterInterchainAccountResponse) ProtoMessage()
- func (m *MsgRegisterInterchainAccountResponse) Reset()
- func (m *MsgRegisterInterchainAccountResponse) Size() (n int)
- func (m *MsgRegisterInterchainAccountResponse) String() string
- func (m *MsgRegisterInterchainAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterInterchainAccountResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterInterchainAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterInterchainAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterInterchainAccountResponse) XXX_Size() int
- func (m *MsgRegisterInterchainAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgSendTx
- func (*MsgSendTx) Descriptor() ([]byte, []int)
- func (msg MsgSendTx) GetSigners() []sdk.AccAddress
- func (m *MsgSendTx) Marshal() (dAtA []byte, err error)
- func (m *MsgSendTx) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSendTx) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSendTx) ProtoMessage()
- func (m *MsgSendTx) Reset()
- func (m *MsgSendTx) Size() (n int)
- func (m *MsgSendTx) String() string
- func (m *MsgSendTx) Unmarshal(dAtA []byte) error
- func (msg MsgSendTx) ValidateBasic() error
- func (m *MsgSendTx) XXX_DiscardUnknown()
- func (m *MsgSendTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSendTx) XXX_Merge(src proto.Message)
- func (m *MsgSendTx) XXX_Size() int
- func (m *MsgSendTx) XXX_Unmarshal(b []byte) error
- type MsgSendTxResponse
- func (*MsgSendTxResponse) Descriptor() ([]byte, []int)
- func (m *MsgSendTxResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSendTxResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSendTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSendTxResponse) ProtoMessage()
- func (m *MsgSendTxResponse) Reset()
- func (m *MsgSendTxResponse) Size() (n int)
- func (m *MsgSendTxResponse) String() string
- func (m *MsgSendTxResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSendTxResponse) XXX_DiscardUnknown()
- func (m *MsgSendTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSendTxResponse) XXX_Merge(src proto.Message)
- func (m *MsgSendTxResponse) XXX_Size() int
- func (m *MsgSendTxResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetControllerEnabled() bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryInterchainAccountRequest
- func (*QueryInterchainAccountRequest) Descriptor() ([]byte, []int)
- func (m *QueryInterchainAccountRequest) GetConnectionId() string
- func (m *QueryInterchainAccountRequest) GetOwner() string
- func (m *QueryInterchainAccountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryInterchainAccountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInterchainAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInterchainAccountRequest) ProtoMessage()
- func (m *QueryInterchainAccountRequest) Reset()
- func (m *QueryInterchainAccountRequest) Size() (n int)
- func (m *QueryInterchainAccountRequest) String() string
- func (m *QueryInterchainAccountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryInterchainAccountRequest) XXX_DiscardUnknown()
- func (m *QueryInterchainAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInterchainAccountRequest) XXX_Merge(src proto.Message)
- func (m *QueryInterchainAccountRequest) XXX_Size() int
- func (m *QueryInterchainAccountRequest) XXX_Unmarshal(b []byte) error
- type QueryInterchainAccountResponse
- func (*QueryInterchainAccountResponse) Descriptor() ([]byte, []int)
- func (m *QueryInterchainAccountResponse) GetAddress() string
- func (m *QueryInterchainAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInterchainAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInterchainAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInterchainAccountResponse) ProtoMessage()
- func (m *QueryInterchainAccountResponse) Reset()
- func (m *QueryInterchainAccountResponse) Size() (n int)
- func (m *QueryInterchainAccountResponse) String() string
- func (m *QueryInterchainAccountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInterchainAccountResponse) XXX_DiscardUnknown()
- func (m *QueryInterchainAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInterchainAccountResponse) XXX_Merge(src proto.Message)
- func (m *QueryInterchainAccountResponse) XXX_Size() int
- func (m *QueryInterchainAccountResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() *Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) RegisterInterchainAccount(ctx context.Context, req *MsgRegisterInterchainAccount) (*MsgRegisterInterchainAccountResponse, error)
- func (*UnimplementedMsgServer) SendTx(ctx context.Context, req *MsgSendTx) (*MsgSendTxResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ( // SubModuleName defines the interchain accounts controller module name SubModuleName = "icacontroller" // StoreKey is the store key string for the interchain accounts controller module StoreKey = SubModuleName // ParamsKey is the store key for the interchain accounts controller parameters ParamsKey = "params" )
const ( // DefaultControllerEnabled is the default value for the controller param (set to true) DefaultControllerEnabled = true )
const MaximumOwnerLength = 2048 // maximum length of the owner in bytes (value chosen arbitrarily)
Variables ¶
var ( ErrInvalidLengthController = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowController = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupController = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ErrControllerSubModuleDisabled = errorsmod.Register(SubModuleName, 2, "controller submodule is disabled")
)
ICA Controller sentinel errors
var KeyControllerEnabled = []byte("ControllerEnabled")
KeyControllerEnabled is the store key for ControllerEnabled Params
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable type declaration for parameters
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the interchain accounts controller message types using the provided InterfaceRegistry
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 MsgClient ¶
type MsgClient interface { // RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount. RegisterInterchainAccount(ctx context.Context, in *MsgRegisterInterchainAccount, opts ...grpc.CallOption) (*MsgRegisterInterchainAccountResponse, error) // SendTx defines a rpc handler for MsgSendTx. SendTx(ctx context.Context, in *MsgSendTx, opts ...grpc.CallOption) (*MsgSendTxResponse, error) // UpdateParams defines a rpc handler for MsgUpdateParams. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgRegisterInterchainAccount ¶
type MsgRegisterInterchainAccount struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Ordering types.Order `protobuf:"varint,4,opt,name=ordering,proto3,enum=ibc.core.channel.v1.Order" json:"ordering,omitempty"` }
MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount
func NewMsgRegisterInterchainAccount ¶
func NewMsgRegisterInterchainAccount(connectionID, owner, version string) *MsgRegisterInterchainAccount
NewMsgRegisterInterchainAccount creates a new instance of MsgRegisterInterchainAccount. It uses channeltypes.ORDERED as the default ordering. Breakage in v9.0.0 will allow the ordering to be provided directly. Use NewMsgRegisterInterchainAccountWithOrder to provide the ordering in previous versions.
func NewMsgRegisterInterchainAccountWithOrdering ¶ added in v8.1.0
func NewMsgRegisterInterchainAccountWithOrdering(connectionID, owner, version string, ordering channeltypes.Order) *MsgRegisterInterchainAccount
NewMsgRegisterInterchainAccountWithOrdering creates a new instance of MsgRegisterInterchainAccount.
func (*MsgRegisterInterchainAccount) Descriptor ¶
func (*MsgRegisterInterchainAccount) Descriptor() ([]byte, []int)
func (MsgRegisterInterchainAccount) GetSigners ¶
func (msg MsgRegisterInterchainAccount) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgRegisterInterchainAccount) Marshal ¶
func (m *MsgRegisterInterchainAccount) Marshal() (dAtA []byte, err error)
func (*MsgRegisterInterchainAccount) MarshalTo ¶
func (m *MsgRegisterInterchainAccount) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterInterchainAccount) MarshalToSizedBuffer ¶
func (m *MsgRegisterInterchainAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterInterchainAccount) ProtoMessage ¶
func (*MsgRegisterInterchainAccount) ProtoMessage()
func (*MsgRegisterInterchainAccount) Reset ¶
func (m *MsgRegisterInterchainAccount) Reset()
func (*MsgRegisterInterchainAccount) Size ¶
func (m *MsgRegisterInterchainAccount) Size() (n int)
func (*MsgRegisterInterchainAccount) String ¶
func (m *MsgRegisterInterchainAccount) String() string
func (*MsgRegisterInterchainAccount) Unmarshal ¶
func (m *MsgRegisterInterchainAccount) Unmarshal(dAtA []byte) error
func (MsgRegisterInterchainAccount) ValidateBasic ¶
func (msg MsgRegisterInterchainAccount) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgRegisterInterchainAccount) XXX_DiscardUnknown ¶
func (m *MsgRegisterInterchainAccount) XXX_DiscardUnknown()
func (*MsgRegisterInterchainAccount) XXX_Marshal ¶
func (m *MsgRegisterInterchainAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterInterchainAccount) XXX_Merge ¶
func (m *MsgRegisterInterchainAccount) XXX_Merge(src proto.Message)
func (*MsgRegisterInterchainAccount) XXX_Size ¶
func (m *MsgRegisterInterchainAccount) XXX_Size() int
func (*MsgRegisterInterchainAccount) XXX_Unmarshal ¶
func (m *MsgRegisterInterchainAccount) XXX_Unmarshal(b []byte) error
type MsgRegisterInterchainAccountResponse ¶
type MsgRegisterInterchainAccountResponse struct { ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` }
MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount
func (*MsgRegisterInterchainAccountResponse) Descriptor ¶
func (*MsgRegisterInterchainAccountResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterInterchainAccountResponse) Marshal ¶
func (m *MsgRegisterInterchainAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterInterchainAccountResponse) MarshalTo ¶
func (m *MsgRegisterInterchainAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterInterchainAccountResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterInterchainAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterInterchainAccountResponse) ProtoMessage ¶
func (*MsgRegisterInterchainAccountResponse) ProtoMessage()
func (*MsgRegisterInterchainAccountResponse) Reset ¶
func (m *MsgRegisterInterchainAccountResponse) Reset()
func (*MsgRegisterInterchainAccountResponse) Size ¶
func (m *MsgRegisterInterchainAccountResponse) Size() (n int)
func (*MsgRegisterInterchainAccountResponse) String ¶
func (m *MsgRegisterInterchainAccountResponse) String() string
func (*MsgRegisterInterchainAccountResponse) Unmarshal ¶
func (m *MsgRegisterInterchainAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterInterchainAccountResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterInterchainAccountResponse) XXX_DiscardUnknown()
func (*MsgRegisterInterchainAccountResponse) XXX_Marshal ¶
func (m *MsgRegisterInterchainAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterInterchainAccountResponse) XXX_Merge ¶
func (m *MsgRegisterInterchainAccountResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterInterchainAccountResponse) XXX_Size ¶
func (m *MsgRegisterInterchainAccountResponse) XXX_Size() int
func (*MsgRegisterInterchainAccountResponse) XXX_Unmarshal ¶
func (m *MsgRegisterInterchainAccountResponse) XXX_Unmarshal(b []byte) error
type MsgSendTx ¶
type MsgSendTx struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` PacketData types1.InterchainAccountPacketData `protobuf:"bytes,3,opt,name=packet_data,json=packetData,proto3" json:"packet_data"` // Relative timeout timestamp provided will be added to the current block time during transaction execution. // The timeout timestamp must be non-zero. RelativeTimeout uint64 `protobuf:"varint,4,opt,name=relative_timeout,json=relativeTimeout,proto3" json:"relative_timeout,omitempty"` }
MsgSendTx defines the payload for Msg/SendTx
func NewMsgSendTx ¶
func NewMsgSendTx(owner, connectionID string, relativeTimeoutTimestamp uint64, packetData icatypes.InterchainAccountPacketData) *MsgSendTx
NewMsgSendTx creates a new instance of MsgSendTx
func (*MsgSendTx) Descriptor ¶
func (MsgSendTx) GetSigners ¶
func (msg MsgSendTx) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgSendTx) MarshalToSizedBuffer ¶
func (*MsgSendTx) ProtoMessage ¶
func (*MsgSendTx) ProtoMessage()
func (MsgSendTx) ValidateBasic ¶
ValidateBasic implements sdk.Msg
func (*MsgSendTx) XXX_DiscardUnknown ¶
func (m *MsgSendTx) XXX_DiscardUnknown()
func (*MsgSendTx) XXX_Marshal ¶
func (*MsgSendTx) XXX_Unmarshal ¶
type MsgSendTxResponse ¶
type MsgSendTxResponse struct {
Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
}
MsgSendTxResponse defines the response for MsgSendTx
func (*MsgSendTxResponse) Descriptor ¶
func (*MsgSendTxResponse) Descriptor() ([]byte, []int)
func (*MsgSendTxResponse) Marshal ¶
func (m *MsgSendTxResponse) Marshal() (dAtA []byte, err error)
func (*MsgSendTxResponse) MarshalTo ¶
func (m *MsgSendTxResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSendTxResponse) MarshalToSizedBuffer ¶
func (m *MsgSendTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSendTxResponse) ProtoMessage ¶
func (*MsgSendTxResponse) ProtoMessage()
func (*MsgSendTxResponse) Reset ¶
func (m *MsgSendTxResponse) Reset()
func (*MsgSendTxResponse) Size ¶
func (m *MsgSendTxResponse) Size() (n int)
func (*MsgSendTxResponse) String ¶
func (m *MsgSendTxResponse) String() string
func (*MsgSendTxResponse) Unmarshal ¶
func (m *MsgSendTxResponse) Unmarshal(dAtA []byte) error
func (*MsgSendTxResponse) XXX_DiscardUnknown ¶
func (m *MsgSendTxResponse) XXX_DiscardUnknown()
func (*MsgSendTxResponse) XXX_Marshal ¶
func (m *MsgSendTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSendTxResponse) XXX_Merge ¶
func (m *MsgSendTxResponse) XXX_Merge(src proto.Message)
func (*MsgSendTxResponse) XXX_Size ¶
func (m *MsgSendTxResponse) XXX_Size() int
func (*MsgSendTxResponse) XXX_Unmarshal ¶
func (m *MsgSendTxResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount. RegisterInterchainAccount(context.Context, *MsgRegisterInterchainAccount) (*MsgRegisterInterchainAccountResponse, error) // SendTx defines a rpc handler for MsgSendTx. SendTx(context.Context, *MsgSendTx) (*MsgSendTxResponse, error) // UpdateParams defines a rpc handler for MsgUpdateParams. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { // signer address Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` // params defines the 27-interchain-accounts/controller parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams defines the payload for Msg/UpdateParams
func NewMsgUpdateParams ¶
func NewMsgUpdateParams(signer string, params Params) *MsgUpdateParams
NewMsgUpdateParams creates a new MsgUpdateParams instance
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (MsgUpdateParams) GetSigners ¶
func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (MsgUpdateParams) ValidateBasic ¶
func (msg MsgUpdateParams) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response for Msg/UpdateParams
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // controller_enabled enables or disables the controller submodule. ControllerEnabled bool `protobuf:"varint,1,opt,name=controller_enabled,json=controllerEnabled,proto3" json:"controller_enabled,omitempty"` }
Params defines the set of on-chain interchain accounts parameters. The following parameters may be used to disable the controller submodule.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams is the default parameter configuration for the controller submodule
func (*Params) Descriptor ¶
func (*Params) GetControllerEnabled ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // InterchainAccount returns the interchain account address for a given owner address on a given connection InterchainAccount(ctx context.Context, in *QueryInterchainAccountRequest, opts ...grpc.CallOption) (*QueryInterchainAccountResponse, error) // Params queries all parameters of the ICA controller submodule. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryInterchainAccountRequest ¶
type QueryInterchainAccountRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` }
QueryInterchainAccountRequest is the request type for the Query/InterchainAccount RPC method.
func (*QueryInterchainAccountRequest) Descriptor ¶
func (*QueryInterchainAccountRequest) Descriptor() ([]byte, []int)
func (*QueryInterchainAccountRequest) GetConnectionId ¶
func (m *QueryInterchainAccountRequest) GetConnectionId() string
func (*QueryInterchainAccountRequest) GetOwner ¶
func (m *QueryInterchainAccountRequest) GetOwner() string
func (*QueryInterchainAccountRequest) Marshal ¶
func (m *QueryInterchainAccountRequest) Marshal() (dAtA []byte, err error)
func (*QueryInterchainAccountRequest) MarshalTo ¶
func (m *QueryInterchainAccountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryInterchainAccountRequest) MarshalToSizedBuffer ¶
func (m *QueryInterchainAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInterchainAccountRequest) ProtoMessage ¶
func (*QueryInterchainAccountRequest) ProtoMessage()
func (*QueryInterchainAccountRequest) Reset ¶
func (m *QueryInterchainAccountRequest) Reset()
func (*QueryInterchainAccountRequest) Size ¶
func (m *QueryInterchainAccountRequest) Size() (n int)
func (*QueryInterchainAccountRequest) String ¶
func (m *QueryInterchainAccountRequest) String() string
func (*QueryInterchainAccountRequest) Unmarshal ¶
func (m *QueryInterchainAccountRequest) Unmarshal(dAtA []byte) error
func (*QueryInterchainAccountRequest) XXX_DiscardUnknown ¶
func (m *QueryInterchainAccountRequest) XXX_DiscardUnknown()
func (*QueryInterchainAccountRequest) XXX_Marshal ¶
func (m *QueryInterchainAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInterchainAccountRequest) XXX_Merge ¶
func (m *QueryInterchainAccountRequest) XXX_Merge(src proto.Message)
func (*QueryInterchainAccountRequest) XXX_Size ¶
func (m *QueryInterchainAccountRequest) XXX_Size() int
func (*QueryInterchainAccountRequest) XXX_Unmarshal ¶
func (m *QueryInterchainAccountRequest) XXX_Unmarshal(b []byte) error
type QueryInterchainAccountResponse ¶
type QueryInterchainAccountResponse struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
QueryInterchainAccountResponse the response type for the Query/InterchainAccount RPC method.
func (*QueryInterchainAccountResponse) Descriptor ¶
func (*QueryInterchainAccountResponse) Descriptor() ([]byte, []int)
func (*QueryInterchainAccountResponse) GetAddress ¶
func (m *QueryInterchainAccountResponse) GetAddress() string
func (*QueryInterchainAccountResponse) Marshal ¶
func (m *QueryInterchainAccountResponse) Marshal() (dAtA []byte, err error)
func (*QueryInterchainAccountResponse) MarshalTo ¶
func (m *QueryInterchainAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryInterchainAccountResponse) MarshalToSizedBuffer ¶
func (m *QueryInterchainAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInterchainAccountResponse) ProtoMessage ¶
func (*QueryInterchainAccountResponse) ProtoMessage()
func (*QueryInterchainAccountResponse) Reset ¶
func (m *QueryInterchainAccountResponse) Reset()
func (*QueryInterchainAccountResponse) Size ¶
func (m *QueryInterchainAccountResponse) Size() (n int)
func (*QueryInterchainAccountResponse) String ¶
func (m *QueryInterchainAccountResponse) String() string
func (*QueryInterchainAccountResponse) Unmarshal ¶
func (m *QueryInterchainAccountResponse) Unmarshal(dAtA []byte) error
func (*QueryInterchainAccountResponse) XXX_DiscardUnknown ¶
func (m *QueryInterchainAccountResponse) XXX_DiscardUnknown()
func (*QueryInterchainAccountResponse) XXX_Marshal ¶
func (m *QueryInterchainAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInterchainAccountResponse) XXX_Merge ¶
func (m *QueryInterchainAccountResponse) XXX_Merge(src proto.Message)
func (*QueryInterchainAccountResponse) XXX_Size ¶
func (m *QueryInterchainAccountResponse) XXX_Size() int
func (*QueryInterchainAccountResponse) XXX_Unmarshal ¶
func (m *QueryInterchainAccountResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the 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 defines the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` }
QueryParamsResponse is the 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 { // InterchainAccount returns the interchain account address for a given owner address on a given connection InterchainAccount(context.Context, *QueryInterchainAccountRequest) (*QueryInterchainAccountResponse, error) // Params queries all parameters of the ICA controller submodule. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, 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) RegisterInterchainAccount ¶
func (*UnimplementedMsgServer) RegisterInterchainAccount(ctx context.Context, req *MsgRegisterInterchainAccount) (*MsgRegisterInterchainAccountResponse, error)
func (*UnimplementedMsgServer) SendTx ¶
func (*UnimplementedMsgServer) SendTx(ctx context.Context, req *MsgSendTx) (*MsgSendTxResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) InterchainAccount ¶
func (*UnimplementedQueryServer) InterchainAccount(ctx context.Context, req *QueryInterchainAccountRequest) (*QueryInterchainAccountResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)