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
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Commit
- type Decision
- func (*Decision) Descriptor() ([]byte, []int)deprecated
- func (x *Decision) GetCommitTimeout() *timestamppb.Timestamp
- func (x *Decision) GetEntryFee() *v1beta1.Coin
- func (x *Decision) GetOptions() [][]byte
- func (x *Decision) GetPayoutAddress() string
- func (x *Decision) GetRefund() bool
- func (x *Decision) GetRevealTimeout() *timestamppb.Timestamp
- func (*Decision) ProtoMessage()
- func (x *Decision) ProtoReflect() protoreflect.Message
- func (x *Decision) Reset()
- func (x *Decision) String() string
- type GenesisState
- type MsgClient
- type MsgCommit
- func (*MsgCommit) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCommit) GetCommit() []byte
- func (x *MsgCommit) GetDecisionId() uint64
- func (x *MsgCommit) GetSender() string
- func (*MsgCommit) ProtoMessage()
- func (x *MsgCommit) ProtoReflect() protoreflect.Message
- func (x *MsgCommit) Reset()
- func (x *MsgCommit) String() string
- type MsgCommitResponse
- type MsgCreateDecision
- func (*MsgCreateDecision) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateDecision) GetCommitDuration() uint64
- func (x *MsgCreateDecision) GetEntryFee() *v1beta1.Coin
- func (x *MsgCreateDecision) GetOptions() [][]byte
- func (x *MsgCreateDecision) GetRefund() bool
- func (x *MsgCreateDecision) GetRevealDuration() uint64
- func (x *MsgCreateDecision) GetSendFundsTo() string
- func (x *MsgCreateDecision) GetSender() string
- func (*MsgCreateDecision) ProtoMessage()
- func (x *MsgCreateDecision) ProtoReflect() protoreflect.Message
- func (x *MsgCreateDecision) Reset()
- func (x *MsgCreateDecision) String() string
- type MsgCreateDecisionResponse
- func (*MsgCreateDecisionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateDecisionResponse) GetId() uint64
- func (*MsgCreateDecisionResponse) ProtoMessage()
- func (x *MsgCreateDecisionResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCreateDecisionResponse) Reset()
- func (x *MsgCreateDecisionResponse) String() string
- type MsgReveal
- func (*MsgReveal) Descriptor() ([]byte, []int)deprecated
- func (x *MsgReveal) GetDecisionId() uint64
- func (x *MsgReveal) GetOptionChosen() []byte
- func (x *MsgReveal) GetSalt() []byte
- func (x *MsgReveal) GetSender() string
- func (*MsgReveal) ProtoMessage()
- func (x *MsgReveal) ProtoReflect() protoreflect.Message
- func (x *MsgReveal) Reset()
- func (x *MsgReveal) String() string
- type MsgRevealResponse
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Params
- type QueryClient
- type QueryDecisionRequest
- func (*QueryDecisionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDecisionRequest) GetId() uint64
- func (*QueryDecisionRequest) ProtoMessage()
- func (x *QueryDecisionRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDecisionRequest) Reset()
- func (x *QueryDecisionRequest) String() string
- type QueryDecisionResponse
- func (*QueryDecisionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDecisionResponse) GetDecision() *Decision
- func (*QueryDecisionResponse) ProtoMessage()
- func (x *QueryDecisionResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDecisionResponse) Reset()
- func (x *QueryDecisionResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type Reveal
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) Commit(context.Context, *MsgCommit) (*MsgCommitResponse, error)
- func (UnimplementedMsgServer) CreateDecision(context.Context, *MsgCreateDecision) (*MsgCreateDecisionResponse, error)
- func (UnimplementedMsgServer) Reveal(context.Context, *MsgReveal) (*MsgRevealResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Decision_FullMethodName = "/samricotta.crs.v1.Query/Decision" Query_Params_FullMethodName = "/samricotta.crs.v1.Query/Params" )
const ( Msg_CreateDecision_FullMethodName = "/samricotta.crs.v1.Msg/CreateDecision" Msg_Commit_FullMethodName = "/samricotta.crs.v1.Msg/Commit" Msg_Reveal_FullMethodName = "/samricotta.crs.v1.Msg/Reveal" Msg_UpdateParams_FullMethodName = "/samricotta.crs.v1.Msg/UpdateParams" )
Variables ¶
var File_samricotta_crs_v1_query_proto protoreflect.FileDescriptor
var File_samricotta_crs_v1_tx_proto protoreflect.FileDescriptor
var File_samricotta_crs_v1_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "samricotta.crs.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateDecision", Handler: _Msg_CreateDecision_Handler, }, { MethodName: "Commit", Handler: _Msg_Commit_Handler, }, { MethodName: "Reveal", Handler: _Msg_Reveal_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "samricotta/crs/v1/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: "samricotta.crs.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Decision", Handler: _Query_Decision_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "samricotta/crs/v1/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 Commit ¶
type Commit struct { Commit []byte `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` // contains filtered or unexported fields }
func (*Commit) Descriptor
deprecated
func (*Commit) ProtoMessage ¶
func (*Commit) ProtoMessage()
func (*Commit) ProtoReflect ¶
func (x *Commit) ProtoReflect() protoreflect.Message
type Decision ¶
type Decision struct { EntryFee *v1beta1.Coin `protobuf:"bytes,1,opt,name=entry_fee,json=entryFee,proto3" json:"entry_fee,omitempty"` Options [][]byte `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` CommitTimeout *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=commit_timeout,json=commitTimeout,proto3" json:"commit_timeout,omitempty"` RevealTimeout *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=reveal_timeout,json=revealTimeout,proto3" json:"reveal_timeout,omitempty"` Refund bool `protobuf:"varint,5,opt,name=refund,proto3" json:"refund,omitempty"` // if refund is true, only the funds from participants that did not reveal will be sent to this address PayoutAddress string `protobuf:"bytes,6,opt,name=payout_address,json=payoutAddress,proto3" json:"payout_address,omitempty"` // contains filtered or unexported fields }
func (*Decision) Descriptor
deprecated
func (*Decision) GetCommitTimeout ¶
func (x *Decision) GetCommitTimeout() *timestamppb.Timestamp
func (*Decision) GetEntryFee ¶
func (*Decision) GetOptions ¶
func (*Decision) GetPayoutAddress ¶
func (*Decision) GetRevealTimeout ¶
func (x *Decision) GetRevealTimeout() *timestamppb.Timestamp
func (*Decision) ProtoMessage ¶
func (*Decision) ProtoMessage()
func (*Decision) ProtoReflect ¶
func (x *Decision) ProtoReflect() protoreflect.Message
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
GenesisState is the state that must be provided at genesis.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
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 { CreateDecision(ctx context.Context, in *MsgCreateDecision, opts ...grpc.CallOption) (*MsgCreateDecisionResponse, error) Commit(ctx context.Context, in *MsgCommit, opts ...grpc.CallOption) (*MsgCommitResponse, error) Reveal(ctx context.Context, in *MsgReveal, opts ...grpc.CallOption) (*MsgRevealResponse, error) 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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgCommit ¶
type MsgCommit struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // id of the decision DecisionId uint64 `protobuf:"varint,2,opt,name=decision_id,json=decisionId,proto3" json:"decision_id,omitempty"` // hash of the commit, must be sha256(decision_id + ":" + option_chosen + ":" + salt) // salt must be exactly 32 bytes Commit []byte `protobuf:"bytes,3,opt,name=commit,proto3" json:"commit,omitempty"` // contains filtered or unexported fields }
func (*MsgCommit) Descriptor
deprecated
func (*MsgCommit) GetDecisionId ¶
func (*MsgCommit) ProtoMessage ¶
func (*MsgCommit) ProtoMessage()
func (*MsgCommit) ProtoReflect ¶
func (x *MsgCommit) ProtoReflect() protoreflect.Message
type MsgCommitResponse ¶
type MsgCommitResponse struct {
// contains filtered or unexported fields
}
func (*MsgCommitResponse) Descriptor
deprecated
func (*MsgCommitResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCommitResponse.ProtoReflect.Descriptor instead.
func (*MsgCommitResponse) ProtoMessage ¶
func (*MsgCommitResponse) ProtoMessage()
func (*MsgCommitResponse) ProtoReflect ¶
func (x *MsgCommitResponse) ProtoReflect() protoreflect.Message
func (*MsgCommitResponse) Reset ¶
func (x *MsgCommitResponse) Reset()
func (*MsgCommitResponse) String ¶
func (x *MsgCommitResponse) String() string
type MsgCreateDecision ¶
type MsgCreateDecision struct { // creator of the decision, can be a user or a module Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // options for the decision for example political candidate names or game moves. // It can also be empty to allow use cases like a price oracle or a RNG. Options [][]byte `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` // time in which the commit can be done in seconds CommitDuration uint64 `protobuf:"varint,3,opt,name=commit_duration,json=commitDuration,proto3" json:"commit_duration,omitempty"` // time in which the reveal can be done in seconds RevealDuration uint64 `protobuf:"varint,4,opt,name=reveal_duration,json=revealDuration,proto3" json:"reveal_duration,omitempty"` // entry price for the decision EntryFee *v1beta1.Coin `protobuf:"bytes,5,opt,name=entry_fee,json=entryFee,proto3" json:"entry_fee,omitempty"` // if the entry fee should be refunded to participants after the reveal period ends Refund bool `protobuf:"varint,6,opt,name=refund,proto3" json:"refund,omitempty"` // address to which send the entry fees to, if refund is true, only the fees of the // participants which NOT revealed will be sent to this address (sort of a slashing) SendFundsTo string `protobuf:"bytes,7,opt,name=send_funds_to,json=sendFundsTo,proto3" json:"send_funds_to,omitempty"` // contains filtered or unexported fields }
MsgCreateDecision represents a request to create a new decision-making process.
func (*MsgCreateDecision) Descriptor
deprecated
func (*MsgCreateDecision) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateDecision.ProtoReflect.Descriptor instead.
func (*MsgCreateDecision) GetCommitDuration ¶
func (x *MsgCreateDecision) GetCommitDuration() uint64
func (*MsgCreateDecision) GetEntryFee ¶
func (x *MsgCreateDecision) GetEntryFee() *v1beta1.Coin
func (*MsgCreateDecision) GetOptions ¶
func (x *MsgCreateDecision) GetOptions() [][]byte
func (*MsgCreateDecision) GetRefund ¶
func (x *MsgCreateDecision) GetRefund() bool
func (*MsgCreateDecision) GetRevealDuration ¶
func (x *MsgCreateDecision) GetRevealDuration() uint64
func (*MsgCreateDecision) GetSendFundsTo ¶
func (x *MsgCreateDecision) GetSendFundsTo() string
func (*MsgCreateDecision) GetSender ¶
func (x *MsgCreateDecision) GetSender() string
func (*MsgCreateDecision) ProtoMessage ¶
func (*MsgCreateDecision) ProtoMessage()
func (*MsgCreateDecision) ProtoReflect ¶
func (x *MsgCreateDecision) ProtoReflect() protoreflect.Message
func (*MsgCreateDecision) Reset ¶
func (x *MsgCreateDecision) Reset()
func (*MsgCreateDecision) String ¶
func (x *MsgCreateDecision) String() string
type MsgCreateDecisionResponse ¶
type MsgCreateDecisionResponse struct { // id of the decision, must be provided in the commit and reveal messages Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*MsgCreateDecisionResponse) Descriptor
deprecated
func (*MsgCreateDecisionResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateDecisionResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateDecisionResponse) GetId ¶
func (x *MsgCreateDecisionResponse) GetId() uint64
func (*MsgCreateDecisionResponse) ProtoMessage ¶
func (*MsgCreateDecisionResponse) ProtoMessage()
func (*MsgCreateDecisionResponse) ProtoReflect ¶
func (x *MsgCreateDecisionResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateDecisionResponse) Reset ¶
func (x *MsgCreateDecisionResponse) Reset()
func (*MsgCreateDecisionResponse) String ¶
func (x *MsgCreateDecisionResponse) String() string
type MsgReveal ¶
type MsgReveal struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // id of the decision to reveal DecisionId uint64 `protobuf:"varint,2,opt,name=decision_id,json=decisionId,proto3" json:"decision_id,omitempty"` // salt used in the commit Salt []byte `protobuf:"bytes,3,opt,name=salt,proto3" json:"salt,omitempty"` // option chosen OptionChosen []byte `protobuf:"bytes,4,opt,name=option_chosen,json=optionChosen,proto3" json:"option_chosen,omitempty"` // contains filtered or unexported fields }
func (*MsgReveal) Descriptor
deprecated
func (*MsgReveal) GetDecisionId ¶
func (*MsgReveal) GetOptionChosen ¶
func (*MsgReveal) ProtoMessage ¶
func (*MsgReveal) ProtoMessage()
func (*MsgReveal) ProtoReflect ¶
func (x *MsgReveal) ProtoReflect() protoreflect.Message
type MsgRevealResponse ¶
type MsgRevealResponse struct {
// contains filtered or unexported fields
}
func (*MsgRevealResponse) Descriptor
deprecated
func (*MsgRevealResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgRevealResponse.ProtoReflect.Descriptor instead.
func (*MsgRevealResponse) ProtoMessage ¶
func (*MsgRevealResponse) ProtoMessage()
func (*MsgRevealResponse) ProtoReflect ¶
func (x *MsgRevealResponse) ProtoReflect() protoreflect.Message
func (*MsgRevealResponse) Reset ¶
func (x *MsgRevealResponse) Reset()
func (*MsgRevealResponse) String ¶
func (x *MsgRevealResponse) String() string
type MsgServer ¶
type MsgServer interface { CreateDecision(context.Context, *MsgCreateDecision) (*MsgCreateDecisionResponse, error) Commit(context.Context, *MsgCommit) (*MsgCommitResponse, error) Reveal(context.Context, *MsgReveal) (*MsgRevealResponse, error) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module // NOTE: Defaults to the governance module unless overwritten. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the module parameters to update. // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type Params ¶
type Params struct { CommitTimeout uint64 `protobuf:"varint,1,opt,name=commit_timeout,json=commitTimeout,proto3" json:"commit_timeout,omitempty"` // in seconds RevealTimeout uint64 `protobuf:"varint,2,opt,name=reveal_timeout,json=revealTimeout,proto3" json:"reveal_timeout,omitempty"` // in seconds // contains filtered or unexported fields }
Params defines the parameters of the module.
func (*Params) Descriptor
deprecated
func (*Params) GetCommitTimeout ¶
func (*Params) GetRevealTimeout ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryClient ¶
type QueryClient interface { // Counter returns the current counter value. Decision(ctx context.Context, in *QueryDecisionRequest, opts ...grpc.CallOption) (*QueryDecisionResponse, error) // Params returns the module parameters. 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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryDecisionRequest ¶
type QueryDecisionRequest struct { // id defines the id of the decision to query for. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*QueryDecisionRequest) Descriptor
deprecated
func (*QueryDecisionRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDecisionRequest.ProtoReflect.Descriptor instead.
func (*QueryDecisionRequest) GetId ¶
func (x *QueryDecisionRequest) GetId() uint64
func (*QueryDecisionRequest) ProtoMessage ¶
func (*QueryDecisionRequest) ProtoMessage()
func (*QueryDecisionRequest) ProtoReflect ¶
func (x *QueryDecisionRequest) ProtoReflect() protoreflect.Message
func (*QueryDecisionRequest) Reset ¶
func (x *QueryDecisionRequest) Reset()
func (*QueryDecisionRequest) String ¶
func (x *QueryDecisionRequest) String() string
type QueryDecisionResponse ¶
type QueryDecisionResponse struct { // decision defines the decision for the given id. Decision *Decision `protobuf:"bytes,1,opt,name=decision,proto3" json:"decision,omitempty"` // contains filtered or unexported fields }
func (*QueryDecisionResponse) Descriptor
deprecated
func (*QueryDecisionResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDecisionResponse.ProtoReflect.Descriptor instead.
func (*QueryDecisionResponse) GetDecision ¶
func (x *QueryDecisionResponse) GetDecision() *Decision
func (*QueryDecisionResponse) ProtoMessage ¶
func (*QueryDecisionResponse) ProtoMessage()
func (*QueryDecisionResponse) ProtoReflect ¶
func (x *QueryDecisionResponse) ProtoReflect() protoreflect.Message
func (*QueryDecisionResponse) Reset ¶
func (x *QueryDecisionResponse) Reset()
func (*QueryDecisionResponse) String ¶
func (x *QueryDecisionResponse) String() string
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Counter returns the current counter value. Decision(context.Context, *QueryDecisionRequest) (*QueryDecisionResponse, error) // Params returns the module parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type Reveal ¶
type Reveal struct { Option []byte `protobuf:"bytes,1,opt,name=option,proto3" json:"option,omitempty"` // contains filtered or unexported fields }
func (*Reveal) Descriptor
deprecated
func (*Reveal) ProtoMessage ¶
func (*Reveal) ProtoMessage()
func (*Reveal) ProtoReflect ¶
func (x *Reveal) ProtoReflect() protoreflect.Message
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) Commit ¶
func (UnimplementedMsgServer) Commit(context.Context, *MsgCommit) (*MsgCommitResponse, error)
func (UnimplementedMsgServer) CreateDecision ¶
func (UnimplementedMsgServer) CreateDecision(context.Context, *MsgCreateDecision) (*MsgCreateDecisionResponse, error)
func (UnimplementedMsgServer) Reveal ¶
func (UnimplementedMsgServer) Reveal(context.Context, *MsgReveal) (*MsgRevealResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Decision ¶
func (UnimplementedQueryServer) Decision(context.Context, *QueryDecisionRequest) (*QueryDecisionResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, 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.