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.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type GenesisState
- type MsgClient
- type MsgRequestRandom
- func (*MsgRequestRandom) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRequestRandom) GetBlockInterval() uint64
- func (x *MsgRequestRandom) GetConsumer() string
- func (x *MsgRequestRandom) GetOracle() bool
- func (x *MsgRequestRandom) GetServiceFeeCap() []*v1beta1.Coin
- func (*MsgRequestRandom) ProtoMessage()
- func (x *MsgRequestRandom) ProtoReflect() protoreflect.Message
- func (x *MsgRequestRandom) Reset()
- func (x *MsgRequestRandom) String() string
- type MsgRequestRandomResponse
- type MsgServer
- type QueryClient
- type QueryRandomRequest
- func (*QueryRandomRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRandomRequest) GetReqId() string
- func (*QueryRandomRequest) ProtoMessage()
- func (x *QueryRandomRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRandomRequest) Reset()
- func (x *QueryRandomRequest) String() string
- type QueryRandomRequestQueueRequest
- func (*QueryRandomRequestQueueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRandomRequestQueueRequest) GetHeight() int64
- func (*QueryRandomRequestQueueRequest) ProtoMessage()
- func (x *QueryRandomRequestQueueRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRandomRequestQueueRequest) Reset()
- func (x *QueryRandomRequestQueueRequest) String() string
- type QueryRandomRequestQueueResponse
- func (*QueryRandomRequestQueueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRandomRequestQueueResponse) GetRequests() []*Request
- func (*QueryRandomRequestQueueResponse) ProtoMessage()
- func (x *QueryRandomRequestQueueResponse) ProtoReflect() protoreflect.Message
- func (x *QueryRandomRequestQueueResponse) Reset()
- func (x *QueryRandomRequestQueueResponse) String() string
- type QueryRandomResponse
- func (*QueryRandomResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRandomResponse) GetRandom() *Random
- func (*QueryRandomResponse) ProtoMessage()
- func (x *QueryRandomResponse) ProtoReflect() protoreflect.Message
- func (x *QueryRandomResponse) Reset()
- func (x *QueryRandomResponse) String() string
- type QueryServer
- type Random
- func (*Random) Descriptor() ([]byte, []int)deprecated
- func (x *Random) GetHeight() int64
- func (x *Random) GetRequestTxHash() string
- func (x *Random) GetValue() string
- func (*Random) ProtoMessage()
- func (x *Random) ProtoReflect() protoreflect.Message
- func (x *Random) Reset()
- func (x *Random) String() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetConsumer() string
- func (x *Request) GetHeight() int64
- func (x *Request) GetOracle() bool
- func (x *Request) GetServiceContextId() string
- func (x *Request) GetServiceFeeCap() []*v1beta1.Coin
- func (x *Request) GetTxHash() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Requests
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Random_FullMethodName = "/irismod.random.Query/Random" Query_RandomRequestQueue_FullMethodName = "/irismod.random.Query/RandomRequestQueue" )
const (
Msg_RequestRandom_FullMethodName = "/irismod.random.Msg/RequestRandom"
)
Variables ¶
var File_irismod_random_genesis_proto protoreflect.FileDescriptor
var File_irismod_random_query_proto protoreflect.FileDescriptor
var File_irismod_random_random_proto protoreflect.FileDescriptor
var File_irismod_random_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "irismod.random.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RequestRandom", Handler: _Msg_RequestRandom_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "irismod/random/tx.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)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "irismod.random.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Random", Handler: _Query_Random_Handler, }, { MethodName: "RandomRequestQueue", Handler: _Query_RandomRequestQueue_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "irismod/random/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query 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 RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { PendingRandomRequests map[string]*Requests `` /* 214-byte string literal not displayed */ // contains filtered or unexported fields }
GenesisState defines the random module's genesis state
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetPendingRandomRequests ¶
func (x *GenesisState) GetPendingRandomRequests() map[string]*Requests
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 { // RequestRandom defines a method for requesting a new random number RequestRandom(ctx context.Context, in *MsgRequestRandom, opts ...grpc.CallOption) (*MsgRequestRandomResponse, 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.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgRequestRandom ¶
type MsgRequestRandom struct { BlockInterval uint64 `protobuf:"varint,1,opt,name=block_interval,json=blockInterval,proto3" json:"block_interval,omitempty"` Consumer string `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"` Oracle bool `protobuf:"varint,3,opt,name=oracle,proto3" json:"oracle,omitempty"` ServiceFeeCap []*v1beta1.Coin `protobuf:"bytes,4,rep,name=service_fee_cap,json=serviceFeeCap,proto3" json:"service_fee_cap,omitempty"` // contains filtered or unexported fields }
MsgRequestRandom defines an sdk.Msg type that supports requesting a random number
func (*MsgRequestRandom) Descriptor
deprecated
func (*MsgRequestRandom) Descriptor() ([]byte, []int)
Deprecated: Use MsgRequestRandom.ProtoReflect.Descriptor instead.
func (*MsgRequestRandom) GetBlockInterval ¶
func (x *MsgRequestRandom) GetBlockInterval() uint64
func (*MsgRequestRandom) GetConsumer ¶
func (x *MsgRequestRandom) GetConsumer() string
func (*MsgRequestRandom) GetOracle ¶
func (x *MsgRequestRandom) GetOracle() bool
func (*MsgRequestRandom) GetServiceFeeCap ¶
func (x *MsgRequestRandom) GetServiceFeeCap() []*v1beta1.Coin
func (*MsgRequestRandom) ProtoMessage ¶
func (*MsgRequestRandom) ProtoMessage()
func (*MsgRequestRandom) ProtoReflect ¶
func (x *MsgRequestRandom) ProtoReflect() protoreflect.Message
func (*MsgRequestRandom) Reset ¶
func (x *MsgRequestRandom) Reset()
func (*MsgRequestRandom) String ¶
func (x *MsgRequestRandom) String() string
type MsgRequestRandomResponse ¶
type MsgRequestRandomResponse struct {
// contains filtered or unexported fields
}
MsgRequestRandomResponse defines the Msg/RequestRandom response type
func (*MsgRequestRandomResponse) Descriptor
deprecated
func (*MsgRequestRandomResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgRequestRandomResponse.ProtoReflect.Descriptor instead.
func (*MsgRequestRandomResponse) ProtoMessage ¶
func (*MsgRequestRandomResponse) ProtoMessage()
func (*MsgRequestRandomResponse) ProtoReflect ¶
func (x *MsgRequestRandomResponse) ProtoReflect() protoreflect.Message
func (*MsgRequestRandomResponse) Reset ¶
func (x *MsgRequestRandomResponse) Reset()
func (*MsgRequestRandomResponse) String ¶
func (x *MsgRequestRandomResponse) String() string
type MsgServer ¶
type MsgServer interface { // RequestRandom defines a method for requesting a new random number RequestRandom(context.Context, *MsgRequestRandom) (*MsgRequestRandomResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type QueryClient ¶
type QueryClient interface { // Random queries the random result Random(ctx context.Context, in *QueryRandomRequest, opts ...grpc.CallOption) (*QueryRandomResponse, error) // RandomRequestQueue queries the random request queue RandomRequestQueue(ctx context.Context, in *QueryRandomRequestQueueRequest, opts ...grpc.CallOption) (*QueryRandomRequestQueueResponse, error) }
QueryClient is the client API for Query 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.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryRandomRequest ¶
type QueryRandomRequest struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` // contains filtered or unexported fields }
QueryRandomRequest is request type for the Query/Random RPC method
func (*QueryRandomRequest) Descriptor
deprecated
func (*QueryRandomRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRandomRequest.ProtoReflect.Descriptor instead.
func (*QueryRandomRequest) GetReqId ¶
func (x *QueryRandomRequest) GetReqId() string
func (*QueryRandomRequest) ProtoMessage ¶
func (*QueryRandomRequest) ProtoMessage()
func (*QueryRandomRequest) ProtoReflect ¶
func (x *QueryRandomRequest) ProtoReflect() protoreflect.Message
func (*QueryRandomRequest) Reset ¶
func (x *QueryRandomRequest) Reset()
func (*QueryRandomRequest) String ¶
func (x *QueryRandomRequest) String() string
type QueryRandomRequestQueueRequest ¶
type QueryRandomRequestQueueRequest struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
QueryRandomRequestQueueRequest is request type for the Query/RandomRequestQueue RPC method
func (*QueryRandomRequestQueueRequest) Descriptor
deprecated
func (*QueryRandomRequestQueueRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRandomRequestQueueRequest.ProtoReflect.Descriptor instead.
func (*QueryRandomRequestQueueRequest) GetHeight ¶
func (x *QueryRandomRequestQueueRequest) GetHeight() int64
func (*QueryRandomRequestQueueRequest) ProtoMessage ¶
func (*QueryRandomRequestQueueRequest) ProtoMessage()
func (*QueryRandomRequestQueueRequest) ProtoReflect ¶
func (x *QueryRandomRequestQueueRequest) ProtoReflect() protoreflect.Message
func (*QueryRandomRequestQueueRequest) Reset ¶
func (x *QueryRandomRequestQueueRequest) Reset()
func (*QueryRandomRequestQueueRequest) String ¶
func (x *QueryRandomRequestQueueRequest) String() string
type QueryRandomRequestQueueResponse ¶
type QueryRandomRequestQueueResponse struct { Requests []*Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
QueryRandomRequestQueueResponse is response type for the Query/RandomRequestQueue RPC method
func (*QueryRandomRequestQueueResponse) Descriptor
deprecated
func (*QueryRandomRequestQueueResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryRandomRequestQueueResponse.ProtoReflect.Descriptor instead.
func (*QueryRandomRequestQueueResponse) GetRequests ¶
func (x *QueryRandomRequestQueueResponse) GetRequests() []*Request
func (*QueryRandomRequestQueueResponse) ProtoMessage ¶
func (*QueryRandomRequestQueueResponse) ProtoMessage()
func (*QueryRandomRequestQueueResponse) ProtoReflect ¶
func (x *QueryRandomRequestQueueResponse) ProtoReflect() protoreflect.Message
func (*QueryRandomRequestQueueResponse) Reset ¶
func (x *QueryRandomRequestQueueResponse) Reset()
func (*QueryRandomRequestQueueResponse) String ¶
func (x *QueryRandomRequestQueueResponse) String() string
type QueryRandomResponse ¶
type QueryRandomResponse struct { Random *Random `protobuf:"bytes,1,opt,name=random,proto3" json:"random,omitempty"` // contains filtered or unexported fields }
QueryParametersResponse is response type for the Query/Random RPC method
func (*QueryRandomResponse) Descriptor
deprecated
func (*QueryRandomResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryRandomResponse.ProtoReflect.Descriptor instead.
func (*QueryRandomResponse) GetRandom ¶
func (x *QueryRandomResponse) GetRandom() *Random
func (*QueryRandomResponse) ProtoMessage ¶
func (*QueryRandomResponse) ProtoMessage()
func (*QueryRandomResponse) ProtoReflect ¶
func (x *QueryRandomResponse) ProtoReflect() protoreflect.Message
func (*QueryRandomResponse) Reset ¶
func (x *QueryRandomResponse) Reset()
func (*QueryRandomResponse) String ¶
func (x *QueryRandomResponse) String() string
type QueryServer ¶
type QueryServer interface { // Random queries the random result Random(context.Context, *QueryRandomRequest) (*QueryRandomResponse, error) // RandomRequestQueue queries the random request queue RandomRequestQueue(context.Context, *QueryRandomRequestQueueRequest) (*QueryRandomRequestQueueResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type Random ¶
type Random struct { RequestTxHash string `protobuf:"bytes,1,opt,name=request_tx_hash,json=requestTxHash,proto3" json:"request_tx_hash,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Random defines the feed standard
func (*Random) Descriptor
deprecated
func (*Random) GetRequestTxHash ¶
func (*Random) ProtoMessage ¶
func (*Random) ProtoMessage()
func (*Random) ProtoReflect ¶
func (x *Random) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Consumer string `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"` TxHash string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` Oracle bool `protobuf:"varint,4,opt,name=oracle,proto3" json:"oracle,omitempty"` ServiceFeeCap []*v1beta1.Coin `protobuf:"bytes,5,rep,name=service_fee_cap,json=serviceFeeCap,proto3" json:"service_fee_cap,omitempty"` ServiceContextId string `protobuf:"bytes,6,opt,name=service_context_id,json=serviceContextId,proto3" json:"service_context_id,omitempty"` // contains filtered or unexported fields }
Request defines the random request standard
func (*Request) Descriptor
deprecated
func (*Request) GetConsumer ¶
func (*Request) GetServiceContextId ¶
func (*Request) GetServiceFeeCap ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Requests ¶
type Requests struct { Requests []*Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
Requests defines the random requests
func (*Requests) Descriptor
deprecated
func (*Requests) GetRequests ¶
func (*Requests) ProtoMessage ¶
func (*Requests) ProtoMessage()
func (*Requests) ProtoReflect ¶
func (x *Requests) ProtoReflect() protoreflect.Message
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) RequestRandom ¶
func (UnimplementedMsgServer) RequestRandom(context.Context, *MsgRequestRandom) (*MsgRequestRandomResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Random ¶
func (UnimplementedQueryServer) Random(context.Context, *QueryRandomRequest) (*QueryRandomResponse, error)
func (UnimplementedQueryServer) RandomRequestQueue ¶
func (UnimplementedQueryServer) RandomRequestQueue(context.Context, *QueryRandomRequestQueueRequest) (*QueryRandomRequestQueueResponse, error)
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 UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.