types

package
v2.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the module's name
	ModuleName = "envoy"

	// StoreKey is the module's store key
	StoreKey = ModuleName

	// RouterKey is the module's message route
	RouterKey = ModuleName

	// QuerierRoute is the module's querier route
	QuerierRoute = ModuleName
)

Variables

View Source
var (
	ErrInvalidProposalAmount    = errors.Register(ModuleName, 2, "invalid envoy module proposal amount")
	ErrInvalidProposalAuthority = errors.Register(ModuleName, 3, "invalid envoy module proposal authority")
	ErrInvalidProposalMsg       = errors.Register(ModuleName, 4, "invalid envoy module proposal messages")
	ErrMultihopUnsupported      = errors.Register(ModuleName, 5, "multihop channels are not supported")
	ErrUnauthorized             = errors.Register(ModuleName, 6, "unauthorized")
)
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 (
	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 RegisterInterfaces

func RegisterInterfaces(registry codectypes.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 AccountInfo

type AccountInfo struct {
	Controller *ChainInfo `protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty"`
	Host       *ChainInfo `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Address    string     `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
}

AccountInfo describes an interchain account, including its address and info of the controller and host chains.

func (*AccountInfo) Descriptor

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

func (*AccountInfo) GetAddress

func (m *AccountInfo) GetAddress() string

func (*AccountInfo) GetController

func (m *AccountInfo) GetController() *ChainInfo

func (*AccountInfo) GetHost

func (m *AccountInfo) GetHost() *ChainInfo

func (*AccountInfo) Marshal

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

func (*AccountInfo) MarshalTo

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

func (*AccountInfo) MarshalToSizedBuffer

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

func (*AccountInfo) ProtoMessage

func (*AccountInfo) ProtoMessage()

func (*AccountInfo) Reset

func (m *AccountInfo) Reset()

func (*AccountInfo) Size

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

func (*AccountInfo) String

func (m *AccountInfo) String() string

func (*AccountInfo) Unmarshal

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

func (*AccountInfo) XXX_DiscardUnknown

func (m *AccountInfo) XXX_DiscardUnknown()

func (*AccountInfo) XXX_Marshal

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

func (*AccountInfo) XXX_Merge

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

func (*AccountInfo) XXX_Size

func (m *AccountInfo) XXX_Size() int

func (*AccountInfo) XXX_Unmarshal

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

type ChainInfo

type ChainInfo struct {
	ClientId     string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	PortId       string `protobuf:"bytes,3,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	ChannelId    string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
}

ChainInfo describes the IBC connection/port/channel on either the controller or host chain.

func (*ChainInfo) Descriptor

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

func (*ChainInfo) GetChannelId

func (m *ChainInfo) GetChannelId() string

func (*ChainInfo) GetClientId

func (m *ChainInfo) GetClientId() string

func (*ChainInfo) GetConnectionId

func (m *ChainInfo) GetConnectionId() string

func (*ChainInfo) GetPortId

func (m *ChainInfo) GetPortId() string

func (*ChainInfo) Marshal

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

func (*ChainInfo) MarshalTo

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

func (*ChainInfo) MarshalToSizedBuffer

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

func (*ChainInfo) ProtoMessage

func (*ChainInfo) ProtoMessage()

func (*ChainInfo) Reset

func (m *ChainInfo) Reset()

func (*ChainInfo) Size

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

func (*ChainInfo) String

func (m *ChainInfo) String() string

func (*ChainInfo) Unmarshal

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

func (*ChainInfo) XXX_DiscardUnknown

func (m *ChainInfo) XXX_DiscardUnknown()

func (*ChainInfo) XXX_Marshal

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

func (*ChainInfo) XXX_Merge

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

func (*ChainInfo) XXX_Size

func (m *ChainInfo) XXX_Size() int

func (*ChainInfo) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
}

GenesisState defines the module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns the module's default genesis state.

func (*GenesisState) Descriptor

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

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 validates the given instance of the module's genesis state.

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 creates a new interchain account on the given connection,
	// or if an interchain account already exists but its channel is closed (due
	// to a packet having timed out), open a new channel for this account.
	RegisterAccount(ctx context.Context, in *MsgRegisterAccount, opts ...grpc.CallOption) (*MsgRegisterAccountResponse, error)
	// SendFunds is a governance operation for sending funds to an interchain
	// account via ICS-20.
	//
	// The envoy module will first attempt to use the balance held in its own
	// module account. If the balance is not sufficient, it will attempt to draw
	// the difference from the community pool.
	SendFunds(ctx context.Context, in *MsgSendFunds, opts ...grpc.CallOption) (*MsgSendFundsResponse, error)
	// SendMessages is a governance operation for sending one or more messages to
	// the host chain to be executed by the interchain account.
	SendMessages(ctx context.Context, in *MsgSendMessages, opts ...grpc.CallOption) (*MsgSendMessagesResponse, 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 {
	// Sender is the account executing this message.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// ConnectionId identifies the connection on which the interchain account is
	// to be registered.
	ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"`
}

MsgRegisterAccount is the request type for the Msg/RegisterAccount RPC method.

func (*MsgRegisterAccount) Descriptor

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

func (*MsgRegisterAccount) GetConnectionId

func (m *MsgRegisterAccount) GetConnectionId() string

func (*MsgRegisterAccount) GetSender

func (m *MsgRegisterAccount) GetSender() string

func (*MsgRegisterAccount) GetSigners

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

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) Size

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

func (*MsgRegisterAccount) String

func (m *MsgRegisterAccount) String() string

func (*MsgRegisterAccount) Unmarshal

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

func (*MsgRegisterAccount) ValidateBasic

func (m *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 is the response type for the Msg/RegisterAccount RPC method.

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 MsgSendFunds

type MsgSendFunds struct {
	// Authority is the account executing this message.
	// It is typically the x/gov module account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// ChannelId identifies the channel through which the transfer is to be sent.
	//
	// Unlike other messages of this module which only requires specifying the
	// connection id, we have to specify the channel id here, because there can be
	// multiple transfer channels associated with the same connection.
	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
	// Amount is the coins that are to be sent.
	//
	// Here we support multiple coins in one proposal. As ICS-20 specs only allow
	// one denom per packet, we will have one packet per denom.
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgSendFunds is the request type for the Msg/SendFunds RPC method.

This message is typically executed via a governance proposal with the gov module being the executing authority.

We do not need to specify the recipient address in this message, as it can be deduced from the channel id.

func (*MsgSendFunds) Descriptor

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

func (*MsgSendFunds) GetAmount

func (*MsgSendFunds) GetAuthority

func (m *MsgSendFunds) GetAuthority() string

func (*MsgSendFunds) GetChannelId

func (m *MsgSendFunds) GetChannelId() string

func (*MsgSendFunds) GetSigners

func (m *MsgSendFunds) GetSigners() []sdk.AccAddress

func (*MsgSendFunds) Marshal

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

func (*MsgSendFunds) MarshalTo

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

func (*MsgSendFunds) MarshalToSizedBuffer

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

func (*MsgSendFunds) ProtoMessage

func (*MsgSendFunds) ProtoMessage()

func (*MsgSendFunds) Reset

func (m *MsgSendFunds) Reset()

func (*MsgSendFunds) Size

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

func (*MsgSendFunds) String

func (m *MsgSendFunds) String() string

func (*MsgSendFunds) Unmarshal

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

func (*MsgSendFunds) ValidateBasic

func (m *MsgSendFunds) ValidateBasic() error

func (*MsgSendFunds) XXX_DiscardUnknown

func (m *MsgSendFunds) XXX_DiscardUnknown()

func (*MsgSendFunds) XXX_Marshal

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

func (*MsgSendFunds) XXX_Merge

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

func (*MsgSendFunds) XXX_Size

func (m *MsgSendFunds) XXX_Size() int

func (*MsgSendFunds) XXX_Unmarshal

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

type MsgSendFundsResponse

type MsgSendFundsResponse struct {
}

MsgSendFundsResponse is the respones type for the Msg/SendFunds RPC method.

func (*MsgSendFundsResponse) Descriptor

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

func (*MsgSendFundsResponse) Marshal

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

func (*MsgSendFundsResponse) MarshalTo

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

func (*MsgSendFundsResponse) MarshalToSizedBuffer

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

func (*MsgSendFundsResponse) ProtoMessage

func (*MsgSendFundsResponse) ProtoMessage()

func (*MsgSendFundsResponse) Reset

func (m *MsgSendFundsResponse) Reset()

func (*MsgSendFundsResponse) Size

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

func (*MsgSendFundsResponse) String

func (m *MsgSendFundsResponse) String() string

func (*MsgSendFundsResponse) Unmarshal

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

func (*MsgSendFundsResponse) XXX_DiscardUnknown

func (m *MsgSendFundsResponse) XXX_DiscardUnknown()

func (*MsgSendFundsResponse) XXX_Marshal

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

func (*MsgSendFundsResponse) XXX_Merge

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

func (*MsgSendFundsResponse) XXX_Size

func (m *MsgSendFundsResponse) XXX_Size() int

func (*MsgSendFundsResponse) XXX_Unmarshal

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

type MsgSendMessages

type MsgSendMessages struct {
	// Authority is the account executing this message.
	// It is typically the x/gov module account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// ConnectionId identifies the connection through which the messages are to
	// be sent.
	ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"`
	// Messages is an array of one or more messages that are to be executed by the
	// interchain account.
	Messages []*types1.Any `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
}

MsgSendMessages is the request type for the Msg/SendMessages RPC method.

This message is typically executed via a governance proposal with the gov module being the executing authority.

func (*MsgSendMessages) Descriptor

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

func (*MsgSendMessages) GetAuthority

func (m *MsgSendMessages) GetAuthority() string

func (*MsgSendMessages) GetConnectionId

func (m *MsgSendMessages) GetConnectionId() string

func (*MsgSendMessages) GetMessages

func (m *MsgSendMessages) GetMessages() []*types1.Any

func (*MsgSendMessages) GetSigners

func (m *MsgSendMessages) GetSigners() []sdk.AccAddress

func (*MsgSendMessages) Marshal

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

func (*MsgSendMessages) MarshalTo

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

func (*MsgSendMessages) MarshalToSizedBuffer

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

func (*MsgSendMessages) ProtoMessage

func (*MsgSendMessages) ProtoMessage()

func (*MsgSendMessages) Reset

func (m *MsgSendMessages) Reset()

func (*MsgSendMessages) Size

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

func (*MsgSendMessages) String

func (m *MsgSendMessages) String() string

func (*MsgSendMessages) Unmarshal

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

func (MsgSendMessages) UnpackInterfaces

func (m MsgSendMessages) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (*MsgSendMessages) ValidateBasic

func (m *MsgSendMessages) ValidateBasic() error

func (*MsgSendMessages) XXX_DiscardUnknown

func (m *MsgSendMessages) XXX_DiscardUnknown()

func (*MsgSendMessages) XXX_Marshal

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

func (*MsgSendMessages) XXX_Merge

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

func (*MsgSendMessages) XXX_Size

func (m *MsgSendMessages) XXX_Size() int

func (*MsgSendMessages) XXX_Unmarshal

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

type MsgSendMessagesResponse

type MsgSendMessagesResponse struct {
}

MsgSendMessagesResponse is the response type for the Msg/SendMessages RPC method.

func (*MsgSendMessagesResponse) Descriptor

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

func (*MsgSendMessagesResponse) Marshal

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

func (*MsgSendMessagesResponse) MarshalTo

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

func (*MsgSendMessagesResponse) MarshalToSizedBuffer

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

func (*MsgSendMessagesResponse) ProtoMessage

func (*MsgSendMessagesResponse) ProtoMessage()

func (*MsgSendMessagesResponse) Reset

func (m *MsgSendMessagesResponse) Reset()

func (*MsgSendMessagesResponse) Size

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

func (*MsgSendMessagesResponse) String

func (m *MsgSendMessagesResponse) String() string

func (*MsgSendMessagesResponse) Unmarshal

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

func (*MsgSendMessagesResponse) XXX_DiscardUnknown

func (m *MsgSendMessagesResponse) XXX_DiscardUnknown()

func (*MsgSendMessagesResponse) XXX_Marshal

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

func (*MsgSendMessagesResponse) XXX_Merge

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

func (*MsgSendMessagesResponse) XXX_Size

func (m *MsgSendMessagesResponse) XXX_Size() int

func (*MsgSendMessagesResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// RegisterAccount creates a new interchain account on the given connection,
	// or if an interchain account already exists but its channel is closed (due
	// to a packet having timed out), open a new channel for this account.
	RegisterAccount(context.Context, *MsgRegisterAccount) (*MsgRegisterAccountResponse, error)
	// SendFunds is a governance operation for sending funds to an interchain
	// account via ICS-20.
	//
	// The envoy module will first attempt to use the balance held in its own
	// module account. If the balance is not sufficient, it will attempt to draw
	// the difference from the community pool.
	SendFunds(context.Context, *MsgSendFunds) (*MsgSendFundsResponse, error)
	// SendMessages is a governance operation for sending one or more messages to
	// the host chain to be executed by the interchain account.
	SendMessages(context.Context, *MsgSendMessages) (*MsgSendMessagesResponse, error)
}

MsgServer is the server API for Msg service.

type QueryAccountRequest

type QueryAccountRequest struct {
	// ConnectionId identified the connection associated with the interchain
	// account.
	ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"`
}

QueryAccountRequest is the request type for the Query/Account RPC method.

func (*QueryAccountRequest) Descriptor

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

func (*QueryAccountRequest) GetConnectionId

func (m *QueryAccountRequest) GetConnectionId() string

func (*QueryAccountRequest) Marshal

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

func (*QueryAccountRequest) MarshalTo

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

func (*QueryAccountRequest) MarshalToSizedBuffer

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

func (*QueryAccountRequest) ProtoMessage

func (*QueryAccountRequest) ProtoMessage()

func (*QueryAccountRequest) Reset

func (m *QueryAccountRequest) Reset()

func (*QueryAccountRequest) Size

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

func (*QueryAccountRequest) String

func (m *QueryAccountRequest) String() string

func (*QueryAccountRequest) Unmarshal

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

func (*QueryAccountRequest) XXX_DiscardUnknown

func (m *QueryAccountRequest) XXX_DiscardUnknown()

func (*QueryAccountRequest) XXX_Marshal

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

func (*QueryAccountRequest) XXX_Merge

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

func (*QueryAccountRequest) XXX_Size

func (m *QueryAccountRequest) XXX_Size() int

func (*QueryAccountRequest) XXX_Unmarshal

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

type QueryAccountResponse

type QueryAccountResponse struct {
	Account *AccountInfo `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}

QueryAccountResponse is the response type for the Query/Account RPC method.

func (*QueryAccountResponse) Descriptor

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

func (*QueryAccountResponse) GetAccount

func (m *QueryAccountResponse) GetAccount() *AccountInfo

func (*QueryAccountResponse) Marshal

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

func (*QueryAccountResponse) MarshalTo

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

func (*QueryAccountResponse) MarshalToSizedBuffer

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

func (*QueryAccountResponse) ProtoMessage

func (*QueryAccountResponse) ProtoMessage()

func (*QueryAccountResponse) Reset

func (m *QueryAccountResponse) Reset()

func (*QueryAccountResponse) Size

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

func (*QueryAccountResponse) String

func (m *QueryAccountResponse) String() string

func (*QueryAccountResponse) Unmarshal

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

func (*QueryAccountResponse) XXX_DiscardUnknown

func (m *QueryAccountResponse) XXX_DiscardUnknown()

func (*QueryAccountResponse) XXX_Marshal

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

func (*QueryAccountResponse) XXX_Merge

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

func (*QueryAccountResponse) XXX_Size

func (m *QueryAccountResponse) XXX_Size() int

func (*QueryAccountResponse) XXX_Unmarshal

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

type QueryAccountsRequest

type QueryAccountsRequest struct {
}

QueryAccountsRequest is the request type for the Query/Accounts RPC method.

func (*QueryAccountsRequest) Descriptor

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

func (*QueryAccountsRequest) Marshal

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

func (*QueryAccountsRequest) MarshalTo

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

func (*QueryAccountsRequest) MarshalToSizedBuffer

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

func (*QueryAccountsRequest) ProtoMessage

func (*QueryAccountsRequest) ProtoMessage()

func (*QueryAccountsRequest) Reset

func (m *QueryAccountsRequest) Reset()

func (*QueryAccountsRequest) Size

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

func (*QueryAccountsRequest) String

func (m *QueryAccountsRequest) String() string

func (*QueryAccountsRequest) Unmarshal

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

func (*QueryAccountsRequest) XXX_DiscardUnknown

func (m *QueryAccountsRequest) XXX_DiscardUnknown()

func (*QueryAccountsRequest) XXX_Marshal

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

func (*QueryAccountsRequest) XXX_Merge

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

func (*QueryAccountsRequest) XXX_Size

func (m *QueryAccountsRequest) XXX_Size() int

func (*QueryAccountsRequest) XXX_Unmarshal

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

type QueryAccountsResponse

type QueryAccountsResponse struct {
	Accounts []*AccountInfo `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
}

QueryAccountsResponse is the response type for Query/Accounts RPC method.

func (*QueryAccountsResponse) Descriptor

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

func (*QueryAccountsResponse) GetAccounts

func (m *QueryAccountsResponse) GetAccounts() []*AccountInfo

func (*QueryAccountsResponse) Marshal

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

func (*QueryAccountsResponse) MarshalTo

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

func (*QueryAccountsResponse) MarshalToSizedBuffer

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

func (*QueryAccountsResponse) ProtoMessage

func (*QueryAccountsResponse) ProtoMessage()

func (*QueryAccountsResponse) Reset

func (m *QueryAccountsResponse) Reset()

func (*QueryAccountsResponse) Size

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

func (*QueryAccountsResponse) String

func (m *QueryAccountsResponse) String() string

func (*QueryAccountsResponse) Unmarshal

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

func (*QueryAccountsResponse) XXX_DiscardUnknown

func (m *QueryAccountsResponse) XXX_DiscardUnknown()

func (*QueryAccountsResponse) XXX_Marshal

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

func (*QueryAccountsResponse) XXX_Merge

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

func (*QueryAccountsResponse) XXX_Size

func (m *QueryAccountsResponse) XXX_Size() int

func (*QueryAccountsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Account returns the interchain account owned by the module on a given
	// connection pair.
	Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error)
	// Accounts returns all interchain accounts owned by the module.
	Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, 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 QueryServer

type QueryServer interface {
	// Account returns the interchain account owned by the module on a given
	// connection pair.
	Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error)
	// Accounts returns all interchain accounts owned by the module.
	Accounts(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, 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) SendFunds

func (*UnimplementedMsgServer) SendMessages

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Account

func (*UnimplementedQueryServer) Accounts

Jump to

Keyboard shortcuts

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