types

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 37 Imported by: 48

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeTimeout          = "timeout"
	EventTypeMonitoringPacket = "monitoring_packet"

	AttributeKeyAckSuccess = "success"
	AttributeKeyAck        = "acknowledgement"
	AttributeKeyAckError   = "error"
)

IBC events

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

	// FullModuleName defines the full module name used in interface like CLI to make it more explanatory
	FullModuleName = "monitoring-provider"

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

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

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

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

	// Version defines the current version the IBC module supports
	Version = "monitoring-1"

	// PortID is the default port id that module binds to
	PortID = "monitoringp"

	// ConsumerClientIDKey allows to retrieve in the store the client ID used for the IBC communication with the Consumer Chain
	ConsumerClientIDKey = "ConsumerClientID/value/"

	// ConnectionChannelIDKey allows to retrieve the connection channel ID that is the ID of the IBC channel used for monitoring packet transmission
	ConnectionChannelIDKey = "ConnectionChannelID/value/"

	// MonitoringInfoKey allows to retrieve moniroting info that contains information about the current state of monitoring
	MonitoringInfoKey = "MonitoringInfo/value/"
)

Variables

View Source
var (
	ErrInvalidLengthConnectionChannelId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConnectionChannelId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConnectionChannelId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthConsumerClientId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConsumerClientId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConsumerClientId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidVersion                = sdkerrors.Register(ModuleName, 3, "invalid version")
	ErrInvalidClientState            = sdkerrors.Register(ModuleName, 4, "invalid client state")
	ErrInvalidConsensusState         = sdkerrors.Register(ModuleName, 5, "invalid consensus state")
	ErrClientCreationFailure         = sdkerrors.Register(ModuleName, 6, "failed to create an IBC client")
	ErrInvalidHandshake              = sdkerrors.Register(ModuleName, 7, "invalid handshake")
	ErrNoConsumerClient              = sdkerrors.Register(ModuleName, 8, "consumer IBC client doesn't exist")
	ErrConsumerConnectionEstablished = sdkerrors.Register(ModuleName, 9, "consumer connection already established")
	ErrInvalidClient                 = sdkerrors.Register(ModuleName, 10, "invalid IBC client")
	ErrJSONUnmarshal                 = sdkerrors.Register(ModuleName, 11, "failed to unmarshal JSON")
	ErrJSONMarshal                   = sdkerrors.Register(ModuleName, 12, "failed to marshal JSON")
	ErrNotImplemented                = sdkerrors.Register(ModuleName, 13, "not implemented")
	ErrUnrecognizedAckType           = sdkerrors.Register(ModuleName, 14, "unrecognized acknowledgement type")
	ErrUnrecognizedPacketType        = sdkerrors.Register(ModuleName, 15, "unrecognized packet type")
	ErrCannotCloseChannel            = sdkerrors.Register(ModuleName, 16, "user cannot close channel")
)

x/monitoringp module sentinel errors

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 (
	ErrInvalidLengthMonitoringInfo        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMonitoringInfo          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMonitoringInfo = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyLastBlockHeight         = []byte("LastBlockHeight")
	KeyConsumerConsensusState  = []byte("ConsumerConsensusState")
	KeyConsumerChainID         = []byte("ConsumerChainID")
	KeyConsumerUnbondingPeriod = []byte("ConsumerUnbondingPeriod")
	KeyConsumerRevisionHeight  = []byte("RevisionHeight")

	DefaultLastBlockHeight int64 = 1
	DefaultConsumerChainID       = "spn-1"
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var PortKey = KeyPrefix("monitoringp-port-")

PortKey defines the key to store the port ID in store

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type 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)
	SendPacket(
		ctx sdk.Context,
		channelCap *capabilitytypes.Capability,
		sourcePort string,
		sourceChannel string,
		timeoutHeight clienttypes.Height,
		timeoutTimestamp uint64,
		data []byte,
	) (uint64, error)
	WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet exported.PacketI, acknowledgement exported.Acknowledgement) error
	ChanCloseInit(ctx sdk.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error
}

ChannelKeeper defines the expected IBC channel keeper

type ClientKeeper

type ClientKeeper interface {
	CreateClient(
		ctx sdk.Context, clientState exported.ClientState, consensusState exported.ConsensusState,
	) (string, error)
}

ClientKeeper is imported to add the ability to create IBC Client from the module

type ConnectionChannelID

type ConnectionChannelID struct {
	ChannelID string `protobuf:"bytes,1,opt,name=channelID,proto3" json:"channelID,omitempty"`
}

func (*ConnectionChannelID) Descriptor

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

func (*ConnectionChannelID) GetChannelID

func (m *ConnectionChannelID) GetChannelID() string

func (*ConnectionChannelID) Marshal

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

func (*ConnectionChannelID) MarshalTo

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

func (*ConnectionChannelID) MarshalToSizedBuffer

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

func (*ConnectionChannelID) ProtoMessage

func (*ConnectionChannelID) ProtoMessage()

func (*ConnectionChannelID) Reset

func (m *ConnectionChannelID) Reset()

func (*ConnectionChannelID) Size

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

func (*ConnectionChannelID) String

func (m *ConnectionChannelID) String() string

func (*ConnectionChannelID) Unmarshal

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

func (*ConnectionChannelID) XXX_DiscardUnknown

func (m *ConnectionChannelID) XXX_DiscardUnknown()

func (*ConnectionChannelID) XXX_Marshal

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

func (*ConnectionChannelID) XXX_Merge

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

func (*ConnectionChannelID) XXX_Size

func (m *ConnectionChannelID) XXX_Size() int

func (*ConnectionChannelID) XXX_Unmarshal

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

type ConnectionKeeper

type ConnectionKeeper interface {
	GetConnection(ctx sdk.Context, connectionID string) (connectiontypes.ConnectionEnd, bool)
}

ConnectionKeeper is imported to check client ID during IBC handshake

type ConsumerClientID

type ConsumerClientID struct {
	ClientID string `protobuf:"bytes,1,opt,name=clientID,proto3" json:"clientID,omitempty"`
}

func (*ConsumerClientID) Descriptor

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

func (*ConsumerClientID) GetClientID

func (m *ConsumerClientID) GetClientID() string

func (*ConsumerClientID) Marshal

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

func (*ConsumerClientID) MarshalTo

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

func (*ConsumerClientID) MarshalToSizedBuffer

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

func (*ConsumerClientID) ProtoMessage

func (*ConsumerClientID) ProtoMessage()

func (*ConsumerClientID) Reset

func (m *ConsumerClientID) Reset()

func (*ConsumerClientID) Size

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

func (*ConsumerClientID) String

func (m *ConsumerClientID) String() string

func (*ConsumerClientID) Unmarshal

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

func (*ConsumerClientID) XXX_DiscardUnknown

func (m *ConsumerClientID) XXX_DiscardUnknown()

func (*ConsumerClientID) XXX_Marshal

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

func (*ConsumerClientID) XXX_Merge

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

func (*ConsumerClientID) XXX_Size

func (m *ConsumerClientID) XXX_Size() int

func (*ConsumerClientID) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	PortId              string               `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	ConsumerClientID    *ConsumerClientID    `protobuf:"bytes,2,opt,name=consumerClientID,proto3" json:"consumerClientID,omitempty"`
	ConnectionChannelID *ConnectionChannelID `protobuf:"bytes,3,opt,name=connectionChannelID,proto3" json:"connectionChannelID,omitempty"`
	MonitoringInfo      *MonitoringInfo      `protobuf:"bytes,4,opt,name=monitoringInfo,proto3" json:"monitoringInfo,omitempty"`
	Params              Params               `protobuf:"bytes,5,opt,name=params,proto3" json:"params"`
}

GenesisState defines the monitoringp module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetConnectionChannelID

func (m *GenesisState) GetConnectionChannelID() *ConnectionChannelID

func (*GenesisState) GetConsumerClientID

func (m *GenesisState) GetConsumerClientID() *ConsumerClientID

func (*GenesisState) GetMonitoringInfo

func (m *GenesisState) GetMonitoringInfo() *MonitoringInfo

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPortId

func (m *GenesisState) GetPortId() string

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MonitoringInfo

type MonitoringInfo struct {
	Transmitted     bool                  `protobuf:"varint,1,opt,name=transmitted,proto3" json:"transmitted,omitempty"`
	SignatureCounts types.SignatureCounts `protobuf:"bytes,2,opt,name=signatureCounts,proto3" json:"signatureCounts"`
}

func (*MonitoringInfo) Descriptor

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

func (*MonitoringInfo) GetSignatureCounts

func (m *MonitoringInfo) GetSignatureCounts() types.SignatureCounts

func (*MonitoringInfo) GetTransmitted

func (m *MonitoringInfo) GetTransmitted() bool

func (*MonitoringInfo) Marshal

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

func (*MonitoringInfo) MarshalTo

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

func (*MonitoringInfo) MarshalToSizedBuffer

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

func (*MonitoringInfo) ProtoMessage

func (*MonitoringInfo) ProtoMessage()

func (*MonitoringInfo) Reset

func (m *MonitoringInfo) Reset()

func (*MonitoringInfo) Size

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

func (*MonitoringInfo) String

func (m *MonitoringInfo) String() string

func (*MonitoringInfo) Unmarshal

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

func (*MonitoringInfo) XXX_DiscardUnknown

func (m *MonitoringInfo) XXX_DiscardUnknown()

func (*MonitoringInfo) XXX_Marshal

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

func (*MonitoringInfo) XXX_Merge

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

func (*MonitoringInfo) XXX_Size

func (m *MonitoringInfo) XXX_Size() int

func (*MonitoringInfo) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
}

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 MsgServer

type MsgServer interface {
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	LastBlockHeight         int64                `protobuf:"varint,1,opt,name=lastBlockHeight,proto3" json:"lastBlockHeight,omitempty"`
	ConsumerChainID         string               `protobuf:"bytes,2,opt,name=consumerChainID,proto3" json:"consumerChainID,omitempty"`
	ConsumerConsensusState  types.ConsensusState `protobuf:"bytes,3,opt,name=consumerConsensusState,proto3" json:"consumerConsensusState"`
	ConsumerUnbondingPeriod int64                `protobuf:"varint,4,opt,name=consumerUnbondingPeriod,proto3" json:"consumerUnbondingPeriod,omitempty"`
	ConsumerRevisionHeight  uint64               `protobuf:"varint,5,opt,name=consumerRevisionHeight,proto3" json:"consumerRevisionHeight,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	lastBlockHeight int64,
	consumerChainID string,
	ccs spntypes.ConsensusState,
	consumerUnbondingpPeriod int64,
	consumerRevisionHeight uint64,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetConsumerChainID

func (m *Params) GetConsumerChainID() string

func (*Params) GetConsumerConsensusState

func (m *Params) GetConsumerConsensusState() types.ConsensusState

func (*Params) GetConsumerRevisionHeight

func (m *Params) GetConsumerRevisionHeight() uint64

func (*Params) GetConsumerUnbondingPeriod

func (m *Params) GetConsumerUnbondingPeriod() int64

func (*Params) GetLastBlockHeight

func (m *Params) GetLastBlockHeight() int64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type PortKeeper

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

PortKeeper defines the expected IBC port keeper

type QueryClient

type QueryClient interface {
	// Queries a ConsumerClientID by index.
	ConsumerClientID(ctx context.Context, in *QueryGetConsumerClientIDRequest, opts ...grpc.CallOption) (*QueryGetConsumerClientIDResponse, error)
	// Queries a ConnectionChannelID by index.
	ConnectionChannelID(ctx context.Context, in *QueryGetConnectionChannelIDRequest, opts ...grpc.CallOption) (*QueryGetConnectionChannelIDResponse, error)
	// Queries a MonitoringInfo by index.
	MonitoringInfo(ctx context.Context, in *QueryGetMonitoringInfoRequest, opts ...grpc.CallOption) (*QueryGetMonitoringInfoResponse, error)
	// Params queries the parameters of the 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 QueryGetConnectionChannelIDRequest

type QueryGetConnectionChannelIDRequest struct {
}

func (*QueryGetConnectionChannelIDRequest) Descriptor

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

func (*QueryGetConnectionChannelIDRequest) Marshal

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

func (*QueryGetConnectionChannelIDRequest) MarshalTo

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

func (*QueryGetConnectionChannelIDRequest) MarshalToSizedBuffer

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

func (*QueryGetConnectionChannelIDRequest) ProtoMessage

func (*QueryGetConnectionChannelIDRequest) ProtoMessage()

func (*QueryGetConnectionChannelIDRequest) Reset

func (*QueryGetConnectionChannelIDRequest) Size

func (*QueryGetConnectionChannelIDRequest) String

func (*QueryGetConnectionChannelIDRequest) Unmarshal

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

func (*QueryGetConnectionChannelIDRequest) XXX_DiscardUnknown

func (m *QueryGetConnectionChannelIDRequest) XXX_DiscardUnknown()

func (*QueryGetConnectionChannelIDRequest) XXX_Marshal

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

func (*QueryGetConnectionChannelIDRequest) XXX_Merge

func (*QueryGetConnectionChannelIDRequest) XXX_Size

func (*QueryGetConnectionChannelIDRequest) XXX_Unmarshal

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

type QueryGetConnectionChannelIDResponse

type QueryGetConnectionChannelIDResponse struct {
	ConnectionChannelID ConnectionChannelID `protobuf:"bytes,1,opt,name=ConnectionChannelID,proto3" json:"ConnectionChannelID"`
}

func (*QueryGetConnectionChannelIDResponse) Descriptor

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

func (*QueryGetConnectionChannelIDResponse) GetConnectionChannelID

func (m *QueryGetConnectionChannelIDResponse) GetConnectionChannelID() ConnectionChannelID

func (*QueryGetConnectionChannelIDResponse) Marshal

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

func (*QueryGetConnectionChannelIDResponse) MarshalTo

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

func (*QueryGetConnectionChannelIDResponse) MarshalToSizedBuffer

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

func (*QueryGetConnectionChannelIDResponse) ProtoMessage

func (*QueryGetConnectionChannelIDResponse) ProtoMessage()

func (*QueryGetConnectionChannelIDResponse) Reset

func (*QueryGetConnectionChannelIDResponse) Size

func (*QueryGetConnectionChannelIDResponse) String

func (*QueryGetConnectionChannelIDResponse) Unmarshal

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

func (*QueryGetConnectionChannelIDResponse) XXX_DiscardUnknown

func (m *QueryGetConnectionChannelIDResponse) XXX_DiscardUnknown()

func (*QueryGetConnectionChannelIDResponse) XXX_Marshal

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

func (*QueryGetConnectionChannelIDResponse) XXX_Merge

func (*QueryGetConnectionChannelIDResponse) XXX_Size

func (*QueryGetConnectionChannelIDResponse) XXX_Unmarshal

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

type QueryGetConsumerClientIDRequest

type QueryGetConsumerClientIDRequest struct {
}

func (*QueryGetConsumerClientIDRequest) Descriptor

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

func (*QueryGetConsumerClientIDRequest) Marshal

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

func (*QueryGetConsumerClientIDRequest) MarshalTo

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

func (*QueryGetConsumerClientIDRequest) MarshalToSizedBuffer

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

func (*QueryGetConsumerClientIDRequest) ProtoMessage

func (*QueryGetConsumerClientIDRequest) ProtoMessage()

func (*QueryGetConsumerClientIDRequest) Reset

func (*QueryGetConsumerClientIDRequest) Size

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

func (*QueryGetConsumerClientIDRequest) String

func (*QueryGetConsumerClientIDRequest) Unmarshal

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

func (*QueryGetConsumerClientIDRequest) XXX_DiscardUnknown

func (m *QueryGetConsumerClientIDRequest) XXX_DiscardUnknown()

func (*QueryGetConsumerClientIDRequest) XXX_Marshal

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

func (*QueryGetConsumerClientIDRequest) XXX_Merge

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

func (*QueryGetConsumerClientIDRequest) XXX_Size

func (m *QueryGetConsumerClientIDRequest) XXX_Size() int

func (*QueryGetConsumerClientIDRequest) XXX_Unmarshal

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

type QueryGetConsumerClientIDResponse

type QueryGetConsumerClientIDResponse struct {
	ConsumerClientID ConsumerClientID `protobuf:"bytes,1,opt,name=ConsumerClientID,proto3" json:"ConsumerClientID"`
}

func (*QueryGetConsumerClientIDResponse) Descriptor

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

func (*QueryGetConsumerClientIDResponse) GetConsumerClientID

func (m *QueryGetConsumerClientIDResponse) GetConsumerClientID() ConsumerClientID

func (*QueryGetConsumerClientIDResponse) Marshal

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

func (*QueryGetConsumerClientIDResponse) MarshalTo

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

func (*QueryGetConsumerClientIDResponse) MarshalToSizedBuffer

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

func (*QueryGetConsumerClientIDResponse) ProtoMessage

func (*QueryGetConsumerClientIDResponse) ProtoMessage()

func (*QueryGetConsumerClientIDResponse) Reset

func (*QueryGetConsumerClientIDResponse) Size

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

func (*QueryGetConsumerClientIDResponse) String

func (*QueryGetConsumerClientIDResponse) Unmarshal

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

func (*QueryGetConsumerClientIDResponse) XXX_DiscardUnknown

func (m *QueryGetConsumerClientIDResponse) XXX_DiscardUnknown()

func (*QueryGetConsumerClientIDResponse) XXX_Marshal

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

func (*QueryGetConsumerClientIDResponse) XXX_Merge

func (*QueryGetConsumerClientIDResponse) XXX_Size

func (m *QueryGetConsumerClientIDResponse) XXX_Size() int

func (*QueryGetConsumerClientIDResponse) XXX_Unmarshal

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

type QueryGetMonitoringInfoRequest

type QueryGetMonitoringInfoRequest struct {
}

func (*QueryGetMonitoringInfoRequest) Descriptor

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

func (*QueryGetMonitoringInfoRequest) Marshal

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

func (*QueryGetMonitoringInfoRequest) MarshalTo

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

func (*QueryGetMonitoringInfoRequest) MarshalToSizedBuffer

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

func (*QueryGetMonitoringInfoRequest) ProtoMessage

func (*QueryGetMonitoringInfoRequest) ProtoMessage()

func (*QueryGetMonitoringInfoRequest) Reset

func (m *QueryGetMonitoringInfoRequest) Reset()

func (*QueryGetMonitoringInfoRequest) Size

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

func (*QueryGetMonitoringInfoRequest) String

func (*QueryGetMonitoringInfoRequest) Unmarshal

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

func (*QueryGetMonitoringInfoRequest) XXX_DiscardUnknown

func (m *QueryGetMonitoringInfoRequest) XXX_DiscardUnknown()

func (*QueryGetMonitoringInfoRequest) XXX_Marshal

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

func (*QueryGetMonitoringInfoRequest) XXX_Merge

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

func (*QueryGetMonitoringInfoRequest) XXX_Size

func (m *QueryGetMonitoringInfoRequest) XXX_Size() int

func (*QueryGetMonitoringInfoRequest) XXX_Unmarshal

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

type QueryGetMonitoringInfoResponse

type QueryGetMonitoringInfoResponse struct {
	MonitoringInfo MonitoringInfo `protobuf:"bytes,1,opt,name=MonitoringInfo,proto3" json:"MonitoringInfo"`
}

func (*QueryGetMonitoringInfoResponse) Descriptor

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

func (*QueryGetMonitoringInfoResponse) GetMonitoringInfo

func (m *QueryGetMonitoringInfoResponse) GetMonitoringInfo() MonitoringInfo

func (*QueryGetMonitoringInfoResponse) Marshal

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

func (*QueryGetMonitoringInfoResponse) MarshalTo

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

func (*QueryGetMonitoringInfoResponse) MarshalToSizedBuffer

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

func (*QueryGetMonitoringInfoResponse) ProtoMessage

func (*QueryGetMonitoringInfoResponse) ProtoMessage()

func (*QueryGetMonitoringInfoResponse) Reset

func (m *QueryGetMonitoringInfoResponse) Reset()

func (*QueryGetMonitoringInfoResponse) Size

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

func (*QueryGetMonitoringInfoResponse) String

func (*QueryGetMonitoringInfoResponse) Unmarshal

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

func (*QueryGetMonitoringInfoResponse) XXX_DiscardUnknown

func (m *QueryGetMonitoringInfoResponse) XXX_DiscardUnknown()

func (*QueryGetMonitoringInfoResponse) XXX_Marshal

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

func (*QueryGetMonitoringInfoResponse) XXX_Merge

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

func (*QueryGetMonitoringInfoResponse) XXX_Size

func (m *QueryGetMonitoringInfoResponse) XXX_Size() int

func (*QueryGetMonitoringInfoResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Queries a ConsumerClientID by index.
	ConsumerClientID(context.Context, *QueryGetConsumerClientIDRequest) (*QueryGetConsumerClientIDResponse, error)
	// Queries a ConnectionChannelID by index.
	ConnectionChannelID(context.Context, *QueryGetConnectionChannelIDRequest) (*QueryGetConnectionChannelIDResponse, error)
	// Queries a MonitoringInfo by index.
	MonitoringInfo(context.Context, *QueryGetMonitoringInfoRequest) (*QueryGetMonitoringInfoResponse, error)
	// Params queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type StakingKeeper

type StakingKeeper interface {
	GetValidatorByConsAddr(ctx sdk.Context, consAddr sdk.ConsAddress) (validator stakingtypes.Validator, found bool)
}

StakingKeeper defines the expected interface to retrieve the operator address from a consensus address

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) MonitoringInfo

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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