types

package
v7.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 36 Imported by: 57

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.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypePacketError = "icq_packet_error"

	AttributeKeyAckError      = "error"
	AttributeKeyHostChannelID = "host_channel_id"
)

ICQ Interchain Query events

View Source
const (
	// ModuleName defines the interchain query module name
	ModuleName = "interchainquery"

	// PortID is the default port id that the interchain query module binds to
	PortID = "icqhost"

	// Version defines the current version for interchain query
	Version = "icq-1"

	// StoreKey is the store key string for interchain query
	StoreKey = ModuleName

	// RouterKey is the message route for interchain query
	RouterKey = ModuleName

	// QuerierRoute is the querier route for interchain query
	QuerierRoute = ModuleName
)
View Source
const (
	// DefaultHostEnabled is the default value for the host param (set to true)
	DefaultHostEnabled = true
)

Variables

View Source
var (
	ErrUnknownDataType    = sdkerrors.Register(ModuleName, 1, "unknown data type")
	ErrInvalidChannelFlow = sdkerrors.Register(ModuleName, 2, "invalid message sent to channel end")
	ErrInvalidHostPort    = sdkerrors.Register(ModuleName, 3, "invalid host port")
	ErrHostDisabled       = sdkerrors.Register(ModuleName, 4, "host is disabled")
	ErrInvalidVersion     = sdkerrors.Register(ModuleName, 5, "invalid version")
)
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 (
	ErrInvalidLengthIcq        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIcq          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIcq = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ParamsKey defines the key to store the params in store
	ParamsKey = []byte{0x00}
	// PortKey defines the key to store the port ID in store
	PortKey = []byte{0x01}
)
View Source
var (
	ErrInvalidLengthPacket        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPacket          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// KeyHostEnabled is the store key for HostEnabled Params
	KeyHostEnabled = []byte("HostEnabled")
	// KeyAllowQueries is the store key for the AllowQueries Params
	KeyAllowQueries = []byte("AllowQueries")
)
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")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

ModuleCdc references the global interchain queries module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding.

The actual codec used for serialization should be provided to interchain queries and defined at the application level.

Functions

func ContainsQueryPath

func ContainsQueryPath(allowQueries []string, path string) bool

ContainsQueryPath returns true if the path is present in allowQueries, otherwise false

func DeserializeCosmosQuery

func DeserializeCosmosQuery(bz []byte) (reqs []abcitypes.RequestQuery, err error)

func DeserializeCosmosResponse

func DeserializeCosmosResponse(bz []byte) (resps []abcitypes.ResponseQuery, err error)

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable type declaration for parameters

func RegisterInterfaces added in v7.1.0

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v7.1.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec

func RegisterMsgServer added in v7.1.0

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)

func SerializeCosmosQuery

func SerializeCosmosQuery(reqs []abcitypes.RequestQuery) (bz []byte, err error)

func SerializeCosmosResponse

func SerializeCosmosResponse(resps []abcitypes.ResponseQuery) (bz []byte, err error)

Types

type ChannelKeeper

type ChannelKeeper interface {
	GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool)
	GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
	GetConnection(ctx sdk.Context, connectionID string) (ibcexported.ConnectionI, error)
}

ChannelKeeper defines the expected IBC channel keeper

type CosmosQuery

type CosmosQuery struct {
	Requests []types.RequestQuery `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests"`
}

CosmosQuery contains a list of tendermint ABCI query requests. It should be used when sending queries to an SDK host chain.

func (*CosmosQuery) Descriptor

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

func (*CosmosQuery) GetRequests

func (m *CosmosQuery) GetRequests() []types.RequestQuery

func (*CosmosQuery) Marshal

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

func (*CosmosQuery) MarshalTo

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

func (*CosmosQuery) MarshalToSizedBuffer

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

func (*CosmosQuery) ProtoMessage

func (*CosmosQuery) ProtoMessage()

func (*CosmosQuery) Reset

func (m *CosmosQuery) Reset()

func (*CosmosQuery) Size

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

func (*CosmosQuery) String

func (m *CosmosQuery) String() string

func (*CosmosQuery) Unmarshal

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

func (*CosmosQuery) XXX_DiscardUnknown

func (m *CosmosQuery) XXX_DiscardUnknown()

func (*CosmosQuery) XXX_Marshal

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

func (*CosmosQuery) XXX_Merge

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

func (*CosmosQuery) XXX_Size

func (m *CosmosQuery) XXX_Size() int

func (*CosmosQuery) XXX_Unmarshal

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

type CosmosResponse

type CosmosResponse struct {
	Responses []types.ResponseQuery `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses"`
}

CosmosResponse contains a list of tendermint ABCI query responses. It should be used when receiving responses from an SDK host chain.

func (*CosmosResponse) Descriptor

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

func (*CosmosResponse) GetResponses

func (m *CosmosResponse) GetResponses() []types.ResponseQuery

func (*CosmosResponse) Marshal

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

func (*CosmosResponse) MarshalTo

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

func (*CosmosResponse) MarshalToSizedBuffer

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

func (*CosmosResponse) ProtoMessage

func (*CosmosResponse) ProtoMessage()

func (*CosmosResponse) Reset

func (m *CosmosResponse) Reset()

func (*CosmosResponse) Size

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

func (*CosmosResponse) String

func (m *CosmosResponse) String() string

func (*CosmosResponse) Unmarshal

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

func (*CosmosResponse) XXX_DiscardUnknown

func (m *CosmosResponse) XXX_DiscardUnknown()

func (*CosmosResponse) XXX_Marshal

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

func (*CosmosResponse) XXX_Merge

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

func (*CosmosResponse) XXX_Size

func (m *CosmosResponse) XXX_Size() int

func (*CosmosResponse) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	HostPort string `protobuf:"bytes,1,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"`
	Params   Params `protobuf:"bytes,4,opt,name=params,proto3" json:"params"`
}

GenesisState defines the interchain query genesis state

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis creates and returns the default interchain query GenesisState

func NewHostGenesisState

func NewHostGenesisState(hostPort string, params Params) *GenesisState

NewHostGenesisState creates a returns a new GenesisState instance

func (*GenesisState) Descriptor

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

func (*GenesisState) GetHostPort

func (m *GenesisState) GetHostPort() string

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 validation of the GenesisState

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 ICS4Wrapper

type ICS4Wrapper interface {
	SendPacket(
		ctx sdk.Context,
		channelCap *capabilitytypes.Capability,
		sourcePort string,
		sourceChannel string,
		timeoutHeight clienttypes.Height,
		timeoutTimestamp uint64,
		data []byte,
	) (uint64, error)
	GetAppVersion(ctx sdk.Context, portID, channelID string) (string, bool)
}

ICS4Wrapper defines the expected ICS4Wrapper for middleware

type InterchainQueryPacketAck

type InterchainQueryPacketAck struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

InterchainQueryPacketAck is comprised of an ABCI query response with non-deterministic fields left empty (e.g. Codespace, Log, Info and ...).

func (*InterchainQueryPacketAck) Descriptor

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

func (*InterchainQueryPacketAck) GetData

func (m *InterchainQueryPacketAck) GetData() []byte

func (*InterchainQueryPacketAck) Marshal

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

func (*InterchainQueryPacketAck) MarshalTo

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

func (*InterchainQueryPacketAck) MarshalToSizedBuffer

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

func (*InterchainQueryPacketAck) ProtoMessage

func (*InterchainQueryPacketAck) ProtoMessage()

func (*InterchainQueryPacketAck) Reset

func (m *InterchainQueryPacketAck) Reset()

func (*InterchainQueryPacketAck) Size

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

func (*InterchainQueryPacketAck) String

func (m *InterchainQueryPacketAck) String() string

func (*InterchainQueryPacketAck) Unmarshal

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

func (*InterchainQueryPacketAck) XXX_DiscardUnknown

func (m *InterchainQueryPacketAck) XXX_DiscardUnknown()

func (*InterchainQueryPacketAck) XXX_Marshal

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

func (*InterchainQueryPacketAck) XXX_Merge

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

func (*InterchainQueryPacketAck) XXX_Size

func (m *InterchainQueryPacketAck) XXX_Size() int

func (*InterchainQueryPacketAck) XXX_Unmarshal

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

type InterchainQueryPacketData

type InterchainQueryPacketData struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// optional memo
	Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"`
}

InterchainQueryPacketData is comprised of raw query.

func (*InterchainQueryPacketData) Descriptor

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

func (InterchainQueryPacketData) GetBytes

func (iqpd InterchainQueryPacketData) GetBytes() []byte

GetBytes returns the JSON marshalled interchain query packet data.

func (*InterchainQueryPacketData) GetData

func (m *InterchainQueryPacketData) GetData() []byte

func (*InterchainQueryPacketData) GetMemo

func (m *InterchainQueryPacketData) GetMemo() string

func (*InterchainQueryPacketData) Marshal

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

func (*InterchainQueryPacketData) MarshalTo

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

func (*InterchainQueryPacketData) MarshalToSizedBuffer

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

func (*InterchainQueryPacketData) ProtoMessage

func (*InterchainQueryPacketData) ProtoMessage()

func (*InterchainQueryPacketData) Reset

func (m *InterchainQueryPacketData) Reset()

func (*InterchainQueryPacketData) Size

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

func (*InterchainQueryPacketData) String

func (m *InterchainQueryPacketData) String() string

func (*InterchainQueryPacketData) Unmarshal

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

func (InterchainQueryPacketData) ValidateBasic

func (iqpd InterchainQueryPacketData) ValidateBasic() error

ValidateBasic performs basic validation of the interchain query packet data.

func (*InterchainQueryPacketData) XXX_DiscardUnknown

func (m *InterchainQueryPacketData) XXX_DiscardUnknown()

func (*InterchainQueryPacketData) XXX_Marshal

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

func (*InterchainQueryPacketData) XXX_Merge

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

func (*InterchainQueryPacketData) XXX_Size

func (m *InterchainQueryPacketData) XXX_Size() int

func (*InterchainQueryPacketData) XXX_Unmarshal

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

type MsgClient added in v7.1.0

type MsgClient interface {
	// UpdateParams defines a governance operation for updating the x/async-icq module
	// parameters. The authority is hard-coded to the x/gov module account.
	//
	// Since: cosmos-sdk 0.47
	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 added in v7.1.0

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer added in v7.1.0

type MsgServer interface {
	// UpdateParams defines a governance operation for updating the x/async-icq module
	// parameters. The authority is hard-coded to the x/gov module account.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams added in v7.1.0

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/async-icq parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func (*MsgUpdateParams) Descriptor added in v7.1.0

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

func (*MsgUpdateParams) GetAuthority added in v7.1.0

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v7.1.0

func (m *MsgUpdateParams) GetParams() Params

func (MsgUpdateParams) GetSignBytes added in v7.1.0

func (m MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateParams) GetSigners added in v7.1.0

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

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateParams) Marshal added in v7.1.0

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

func (*MsgUpdateParams) MarshalTo added in v7.1.0

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v7.1.0

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

func (*MsgUpdateParams) ProtoMessage added in v7.1.0

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v7.1.0

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v7.1.0

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

func (*MsgUpdateParams) String added in v7.1.0

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v7.1.0

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

func (*MsgUpdateParams) ValidateBasic added in v7.1.0

func (m *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown added in v7.1.0

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v7.1.0

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

func (*MsgUpdateParams) XXX_Merge added in v7.1.0

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

func (*MsgUpdateParams) XXX_Size added in v7.1.0

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v7.1.0

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

type MsgUpdateParamsResponse added in v7.1.0

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor added in v7.1.0

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

func (*MsgUpdateParamsResponse) Marshal added in v7.1.0

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

func (*MsgUpdateParamsResponse) MarshalTo added in v7.1.0

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v7.1.0

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v7.1.0

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v7.1.0

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v7.1.0

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

func (*MsgUpdateParamsResponse) String added in v7.1.0

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v7.1.0

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v7.1.0

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v7.1.0

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v7.1.0

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

func (*MsgUpdateParamsResponse) XXX_Size added in v7.1.0

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v7.1.0

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

type Params

type Params struct {
	// host_enabled enables or disables the host submodule.
	HostEnabled bool `protobuf:"varint,2,opt,name=host_enabled,json=hostEnabled,proto3" json:"host_enabled,omitempty" yaml:"host_enabled"`
	// allow_queries defines a list of query paths allowed to be queried on a host chain.
	AllowQueries []string `protobuf:"bytes,3,rep,name=allow_queries,json=allowQueries,proto3" json:"allow_queries,omitempty" yaml:"allow_queries"`
}

Params defines the set of on-chain interchain query parameters.

func DefaultParams

func DefaultParams() Params

DefaultParams is the default parameter configuration

func NewParams

func NewParams(enableHost bool, allowQueries []string) Params

NewParams creates a new parameter configuration

func (*Params) Descriptor

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

func (*Params) GetAllowQueries

func (m *Params) GetAllowQueries() []string

func (*Params) GetHostEnabled

func (m *Params) GetHostEnabled() bool

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 implements 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 (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates all parameters

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 PortKeeper

type PortKeeper interface {
	BindPort(ctx sdk.Context, portID string) *capabilitytypes.Capability
	IsBound(ctx sdk.Context, portID string) bool
}

PortKeeper defines the expected IBC port keeper

type QueryClient

type QueryClient interface {
	// Params queries all parameters of the ICQ module.
	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 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 {
	// Params queries all parameters of the ICQ module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer added in v7.1.0

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdateParams added in v7.1.0

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