interchainqueryv1

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Msg_SubmitQueryResponse_FullMethodName = "/stride.interchainquery.v1.Msg/SubmitQueryResponse"
)
View Source
const (
	QueryService_PendingQueries_FullMethodName = "/stride.interchainquery.v1.QueryService/PendingQueries"
)

Variables

View Source
var (
	TimeoutPolicy_name = map[int32]string{
		0: "REJECT_QUERY_RESPONSE",
		1: "RETRY_QUERY_REQUEST",
		2: "EXECUTE_QUERY_CALLBACK",
	}
	TimeoutPolicy_value = map[string]int32{
		"REJECT_QUERY_RESPONSE":  0,
		"RETRY_QUERY_REQUEST":    1,
		"EXECUTE_QUERY_CALLBACK": 2,
	}
)

Enum value maps for TimeoutPolicy.

View Source
var File_stride_interchainquery_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_stride_interchainquery_v1_messages_proto protoreflect.FileDescriptor
View Source
var File_stride_interchainquery_v1_query_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "stride.interchainquery.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitQueryResponse",
			Handler:    _Msg_SubmitQueryResponse_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "stride/interchainquery/v1/messages.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var QueryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "stride.interchainquery.v1.QueryService",
	HandlerType: (*QueryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PendingQueries",
			Handler:    _QueryService_PendingQueries_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "stride/interchainquery/v1/query.proto",
}

QueryService_ServiceDesc is the grpc.ServiceDesc for QueryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServiceServer

func RegisterQueryServiceServer(s grpc.ServiceRegistrar, srv QueryServiceServer)

Types

type DataPoint

type DataPoint struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RemoteHeight string `protobuf:"bytes,2,opt,name=remote_height,json=remoteHeight,proto3" json:"remote_height,omitempty"`
	LocalHeight  string `protobuf:"bytes,3,opt,name=local_height,json=localHeight,proto3" json:"local_height,omitempty"`
	Value        []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*DataPoint) Descriptor deprecated

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

Deprecated: Use DataPoint.ProtoReflect.Descriptor instead.

func (*DataPoint) GetId

func (x *DataPoint) GetId() string

func (*DataPoint) GetLocalHeight

func (x *DataPoint) GetLocalHeight() string

func (*DataPoint) GetRemoteHeight

func (x *DataPoint) GetRemoteHeight() string

func (*DataPoint) GetValue

func (x *DataPoint) GetValue() []byte

func (*DataPoint) ProtoMessage

func (*DataPoint) ProtoMessage()

func (*DataPoint) ProtoReflect

func (x *DataPoint) ProtoReflect() protoreflect.Message

func (*DataPoint) Reset

func (x *DataPoint) Reset()

func (*DataPoint) String

func (x *DataPoint) String() string

type GenesisState

type GenesisState struct {
	Queries []*Query `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the epochs module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetQueries

func (x *GenesisState) GetQueries() []*Query

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgClient

type MsgClient interface {
	// SubmitQueryResponse defines a method for submit query responses.
	SubmitQueryResponse(ctx context.Context, in *MsgSubmitQueryResponse, opts ...grpc.CallOption) (*MsgSubmitQueryResponseResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Msg defines the interchainquery Msg service.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer

type MsgServer interface {
	// SubmitQueryResponse defines a method for submit query responses.
	SubmitQueryResponse(context.Context, *MsgSubmitQueryResponse) (*MsgSubmitQueryResponseResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.

Msg defines the interchainquery Msg service.

type MsgSubmitQueryResponse

type MsgSubmitQueryResponse struct {
	ChainId     string           `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	QueryId     string           `protobuf:"bytes,2,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"`
	Result      []byte           `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"`
	ProofOps    *crypto.ProofOps `protobuf:"bytes,4,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty"`
	Height      int64            `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	FromAddress string           `protobuf:"bytes,6,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	// contains filtered or unexported fields
}

MsgSubmitQueryResponse represents a message type to fulfil a query request.

func (*MsgSubmitQueryResponse) Descriptor deprecated

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

Deprecated: Use MsgSubmitQueryResponse.ProtoReflect.Descriptor instead.

func (*MsgSubmitQueryResponse) GetChainId

func (x *MsgSubmitQueryResponse) GetChainId() string

func (*MsgSubmitQueryResponse) GetFromAddress

func (x *MsgSubmitQueryResponse) GetFromAddress() string

func (*MsgSubmitQueryResponse) GetHeight

func (x *MsgSubmitQueryResponse) GetHeight() int64

func (*MsgSubmitQueryResponse) GetProofOps

func (x *MsgSubmitQueryResponse) GetProofOps() *crypto.ProofOps

func (*MsgSubmitQueryResponse) GetQueryId

func (x *MsgSubmitQueryResponse) GetQueryId() string

func (*MsgSubmitQueryResponse) GetResult

func (x *MsgSubmitQueryResponse) GetResult() []byte

func (*MsgSubmitQueryResponse) ProtoMessage

func (*MsgSubmitQueryResponse) ProtoMessage()

func (*MsgSubmitQueryResponse) ProtoReflect

func (x *MsgSubmitQueryResponse) ProtoReflect() protoreflect.Message

func (*MsgSubmitQueryResponse) Reset

func (x *MsgSubmitQueryResponse) Reset()

func (*MsgSubmitQueryResponse) String

func (x *MsgSubmitQueryResponse) String() string

type MsgSubmitQueryResponseResponse

type MsgSubmitQueryResponseResponse struct {
	// contains filtered or unexported fields
}

MsgSubmitQueryResponseResponse defines the MsgSubmitQueryResponse response type.

func (*MsgSubmitQueryResponseResponse) Descriptor deprecated

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

Deprecated: Use MsgSubmitQueryResponseResponse.ProtoReflect.Descriptor instead.

func (*MsgSubmitQueryResponseResponse) ProtoMessage

func (*MsgSubmitQueryResponseResponse) ProtoMessage()

func (*MsgSubmitQueryResponseResponse) ProtoReflect

func (*MsgSubmitQueryResponseResponse) Reset

func (x *MsgSubmitQueryResponseResponse) Reset()

func (*MsgSubmitQueryResponseResponse) String

type Query

type Query struct {
	Id               string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ConnectionId     string               `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	ChainId          string               `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	QueryType        string               `protobuf:"bytes,4,opt,name=query_type,json=queryType,proto3" json:"query_type,omitempty"`
	RequestData      []byte               `protobuf:"bytes,5,opt,name=request_data,json=requestData,proto3" json:"request_data,omitempty"`
	CallbackModule   string               `protobuf:"bytes,13,opt,name=callback_module,json=callbackModule,proto3" json:"callback_module,omitempty"`
	CallbackId       string               `protobuf:"bytes,8,opt,name=callback_id,json=callbackId,proto3" json:"callback_id,omitempty"`
	CallbackData     []byte               `protobuf:"bytes,12,opt,name=callback_data,json=callbackData,proto3" json:"callback_data,omitempty"`
	TimeoutPolicy    TimeoutPolicy        `` /* 147-byte string literal not displayed */
	TimeoutDuration  *durationpb.Duration `protobuf:"bytes,14,opt,name=timeout_duration,json=timeoutDuration,proto3" json:"timeout_duration,omitempty"`
	TimeoutTimestamp uint64               `protobuf:"varint,9,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty"`
	RequestSent      bool                 `protobuf:"varint,11,opt,name=request_sent,json=requestSent,proto3" json:"request_sent,omitempty"`
	SubmissionHeight uint64               `protobuf:"varint,16,opt,name=submission_height,json=submissionHeight,proto3" json:"submission_height,omitempty"`
	// contains filtered or unexported fields
}

func (*Query) Descriptor deprecated

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

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetCallbackData

func (x *Query) GetCallbackData() []byte

func (*Query) GetCallbackId

func (x *Query) GetCallbackId() string

func (*Query) GetCallbackModule

func (x *Query) GetCallbackModule() string

func (*Query) GetChainId

func (x *Query) GetChainId() string

func (*Query) GetConnectionId

func (x *Query) GetConnectionId() string

func (*Query) GetId

func (x *Query) GetId() string

func (*Query) GetQueryType

func (x *Query) GetQueryType() string

func (*Query) GetRequestData

func (x *Query) GetRequestData() []byte

func (*Query) GetRequestSent

func (x *Query) GetRequestSent() bool

func (*Query) GetSubmissionHeight

func (x *Query) GetSubmissionHeight() uint64

func (*Query) GetTimeoutDuration

func (x *Query) GetTimeoutDuration() *durationpb.Duration

func (*Query) GetTimeoutPolicy

func (x *Query) GetTimeoutPolicy() TimeoutPolicy

func (*Query) GetTimeoutTimestamp

func (x *Query) GetTimeoutTimestamp() uint64

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

func (x *Query) ProtoReflect() protoreflect.Message

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

type QueryPendingQueriesRequest

type QueryPendingQueriesRequest struct {
	// contains filtered or unexported fields
}

func (*QueryPendingQueriesRequest) Descriptor deprecated

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

Deprecated: Use QueryPendingQueriesRequest.ProtoReflect.Descriptor instead.

func (*QueryPendingQueriesRequest) ProtoMessage

func (*QueryPendingQueriesRequest) ProtoMessage()

func (*QueryPendingQueriesRequest) ProtoReflect

func (*QueryPendingQueriesRequest) Reset

func (x *QueryPendingQueriesRequest) Reset()

func (*QueryPendingQueriesRequest) String

func (x *QueryPendingQueriesRequest) String() string

type QueryPendingQueriesResponse

type QueryPendingQueriesResponse struct {
	PendingQueries []*Query `protobuf:"bytes,1,rep,name=pending_queries,json=pendingQueries,proto3" json:"pending_queries,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryPendingQueriesResponse) Descriptor deprecated

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

Deprecated: Use QueryPendingQueriesResponse.ProtoReflect.Descriptor instead.

func (*QueryPendingQueriesResponse) GetPendingQueries

func (x *QueryPendingQueriesResponse) GetPendingQueries() []*Query

func (*QueryPendingQueriesResponse) ProtoMessage

func (*QueryPendingQueriesResponse) ProtoMessage()

func (*QueryPendingQueriesResponse) ProtoReflect

func (*QueryPendingQueriesResponse) Reset

func (x *QueryPendingQueriesResponse) Reset()

func (*QueryPendingQueriesResponse) String

func (x *QueryPendingQueriesResponse) String() string

type QueryServiceClient

type QueryServiceClient interface {
	PendingQueries(ctx context.Context, in *QueryPendingQueriesRequest, opts ...grpc.CallOption) (*QueryPendingQueriesResponse, error)
}

QueryServiceClient is the client API for QueryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type QueryServiceServer

type QueryServiceServer interface {
	PendingQueries(context.Context, *QueryPendingQueriesRequest) (*QueryPendingQueriesResponse, error)
	// contains filtered or unexported methods
}

QueryServiceServer is the server API for QueryService service. All implementations must embed UnimplementedQueryServiceServer for forward compatibility.

type TimeoutPolicy

type TimeoutPolicy int32
const (
	TimeoutPolicy_REJECT_QUERY_RESPONSE  TimeoutPolicy = 0
	TimeoutPolicy_RETRY_QUERY_REQUEST    TimeoutPolicy = 1
	TimeoutPolicy_EXECUTE_QUERY_CALLBACK TimeoutPolicy = 2
)

func (TimeoutPolicy) Descriptor

func (TimeoutPolicy) Enum

func (x TimeoutPolicy) Enum() *TimeoutPolicy

func (TimeoutPolicy) EnumDescriptor deprecated

func (TimeoutPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use TimeoutPolicy.Descriptor instead.

func (TimeoutPolicy) Number

func (TimeoutPolicy) String

func (x TimeoutPolicy) String() string

func (TimeoutPolicy) Type

type UnimplementedMsgServer

type UnimplementedMsgServer struct{}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnimplementedQueryServiceServer

type UnimplementedQueryServiceServer struct{}

UnimplementedQueryServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServiceServer

type UnsafeQueryServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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