random

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 16 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.

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

Index

Constants

View Source
const (
	Query_Random_FullMethodName             = "/irismod.random.Query/Random"
	Query_RandomRequestQueue_FullMethodName = "/irismod.random.Query/RandomRequestQueue"
)
View Source
const (
	Msg_RequestRandom_FullMethodName = "/irismod.random.Msg/RequestRandom"
)

Variables

View Source
var File_irismod_random_genesis_proto protoreflect.FileDescriptor
View Source
var File_irismod_random_query_proto protoreflect.FileDescriptor
View Source
var File_irismod_random_random_proto protoreflect.FileDescriptor
View Source
var File_irismod_random_tx_proto protoreflect.FileDescriptor
View Source
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)

View Source
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 (*QueryRandomRequestQueueRequest) Reset

func (x *QueryRandomRequestQueueRequest) Reset()

func (*QueryRandomRequestQueueRequest) 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 (*QueryRandomRequestQueueResponse) Reset

func (*QueryRandomRequestQueueResponse) 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) Descriptor() ([]byte, []int)

Deprecated: Use Random.ProtoReflect.Descriptor instead.

func (*Random) GetHeight

func (x *Random) GetHeight() int64

func (*Random) GetRequestTxHash

func (x *Random) GetRequestTxHash() string

func (*Random) GetValue

func (x *Random) GetValue() string

func (*Random) ProtoMessage

func (*Random) ProtoMessage()

func (*Random) ProtoReflect

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

func (*Random) Reset

func (x *Random) Reset()

func (*Random) String

func (x *Random) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetConsumer

func (x *Request) GetConsumer() string

func (*Request) GetHeight

func (x *Request) GetHeight() int64

func (*Request) GetOracle

func (x *Request) GetOracle() bool

func (*Request) GetServiceContextId

func (x *Request) GetServiceContextId() string

func (*Request) GetServiceFeeCap

func (x *Request) GetServiceFeeCap() []*v1beta1.Coin

func (*Request) GetTxHash

func (x *Request) GetTxHash() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Requests.ProtoReflect.Descriptor instead.

func (*Requests) GetRequests

func (x *Requests) GetRequests() []*Request

func (*Requests) ProtoMessage

func (*Requests) ProtoMessage()

func (*Requests) ProtoReflect

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

func (*Requests) Reset

func (x *Requests) Reset()

func (*Requests) String

func (x *Requests) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) RequestRandom

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Random

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.

Directories

Path Synopsis
module
v1
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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