types

package
v3.0.0-...-4448f67 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

	// 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_vrf"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	// RandomvalKeyPrefix is the prefix to retrieve all Randomval
	RandomvalKeyPrefix = "Randomval/value/"
)
View Source
const (
	// UservalKeyPrefix is the prefix to retrieve all Userval
	UservalKeyPrefix = "Userval/value/"
)

Variables

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 (
	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 (
	ErrInvalidLengthRandomval        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRandomval          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRandomval = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthUserval        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUserval          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupUserval = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/random module sentinel errors

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func RandomvalKey

func RandomvalKey(
	index string,
) []byte

RandomvalKey returns the store key to retrieve a Randomval from the index fields

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func UservalKey

func UservalKey(
	index string,
) []byte

UservalKey returns the store key to retrieve a Userval from the index fields

Types

type GenesisState

type GenesisState struct {
	RandomvalList []Randomval `protobuf:"bytes,1,rep,name=randomvalList,proto3" json:"randomvalList"`
	UservalList   []Userval   `protobuf:"bytes,2,rep,name=uservalList,proto3" json:"uservalList"`
}

GenesisState defines the vrf 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) GetRandomvalList

func (m *GenesisState) GetRandomvalList() []Randomval

func (*GenesisState) GetUservalList

func (m *GenesisState) GetUservalList() []Userval

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 MsgClient

type MsgClient interface {
	CreateRandom(ctx context.Context, in *MsgCreateRandom, opts ...grpc.CallOption) (*MsgCreateRandomResponse, error)
}

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 MsgCreateRandom

type MsgCreateRandom struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Multiplier uint64 `protobuf:"varint,2,opt,name=multiplier,proto3" json:"multiplier,omitempty"`
}

func NewMsgCreateRandom

func NewMsgCreateRandom(creator string, multiplier uint64) *MsgCreateRandom

func (*MsgCreateRandom) Descriptor

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

func (*MsgCreateRandom) GetCreator

func (m *MsgCreateRandom) GetCreator() string

func (*MsgCreateRandom) GetMultiplier

func (m *MsgCreateRandom) GetMultiplier() uint64

func (*MsgCreateRandom) GetSignBytes

func (msg *MsgCreateRandom) GetSignBytes() []byte

func (*MsgCreateRandom) GetSigners

func (msg *MsgCreateRandom) GetSigners() []sdk.AccAddress

func (*MsgCreateRandom) Marshal

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

func (*MsgCreateRandom) MarshalTo

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

func (*MsgCreateRandom) MarshalToSizedBuffer

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

func (*MsgCreateRandom) ProtoMessage

func (*MsgCreateRandom) ProtoMessage()

func (*MsgCreateRandom) Reset

func (m *MsgCreateRandom) Reset()

func (*MsgCreateRandom) Route

func (msg *MsgCreateRandom) Route() string

func (*MsgCreateRandom) Size

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

func (*MsgCreateRandom) String

func (m *MsgCreateRandom) String() string

func (*MsgCreateRandom) Type

func (msg *MsgCreateRandom) Type() string

func (*MsgCreateRandom) Unmarshal

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

func (*MsgCreateRandom) ValidateBasic

func (msg *MsgCreateRandom) ValidateBasic() error

func (*MsgCreateRandom) XXX_DiscardUnknown

func (m *MsgCreateRandom) XXX_DiscardUnknown()

func (*MsgCreateRandom) XXX_Marshal

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

func (*MsgCreateRandom) XXX_Merge

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

func (*MsgCreateRandom) XXX_Size

func (m *MsgCreateRandom) XXX_Size() int

func (*MsgCreateRandom) XXX_Unmarshal

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

type MsgCreateRandomResponse

type MsgCreateRandomResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MsgCreateRandomResponse) Descriptor

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

func (*MsgCreateRandomResponse) GetId

func (m *MsgCreateRandomResponse) GetId() uint64

func (*MsgCreateRandomResponse) Marshal

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

func (*MsgCreateRandomResponse) MarshalTo

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

func (*MsgCreateRandomResponse) MarshalToSizedBuffer

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

func (*MsgCreateRandomResponse) ProtoMessage

func (*MsgCreateRandomResponse) ProtoMessage()

func (*MsgCreateRandomResponse) Reset

func (m *MsgCreateRandomResponse) Reset()

func (*MsgCreateRandomResponse) Size

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

func (*MsgCreateRandomResponse) String

func (m *MsgCreateRandomResponse) String() string

func (*MsgCreateRandomResponse) Unmarshal

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

func (*MsgCreateRandomResponse) XXX_DiscardUnknown

func (m *MsgCreateRandomResponse) XXX_DiscardUnknown()

func (*MsgCreateRandomResponse) XXX_Marshal

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

func (*MsgCreateRandomResponse) XXX_Merge

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

func (*MsgCreateRandomResponse) XXX_Size

func (m *MsgCreateRandomResponse) XXX_Size() int

func (*MsgCreateRandomResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	CreateRandom(context.Context, *MsgCreateRandom) (*MsgCreateRandomResponse, error)
}

MsgServer is the server API for Msg service.

type QueryAllRandomvalRequest

type QueryAllRandomvalRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllRandomvalRequest) Descriptor

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

func (*QueryAllRandomvalRequest) GetPagination

func (m *QueryAllRandomvalRequest) GetPagination() *query.PageRequest

func (*QueryAllRandomvalRequest) Marshal

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

func (*QueryAllRandomvalRequest) MarshalTo

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

func (*QueryAllRandomvalRequest) MarshalToSizedBuffer

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

func (*QueryAllRandomvalRequest) ProtoMessage

func (*QueryAllRandomvalRequest) ProtoMessage()

func (*QueryAllRandomvalRequest) Reset

func (m *QueryAllRandomvalRequest) Reset()

func (*QueryAllRandomvalRequest) Size

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

func (*QueryAllRandomvalRequest) String

func (m *QueryAllRandomvalRequest) String() string

func (*QueryAllRandomvalRequest) Unmarshal

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

func (*QueryAllRandomvalRequest) XXX_DiscardUnknown

func (m *QueryAllRandomvalRequest) XXX_DiscardUnknown()

func (*QueryAllRandomvalRequest) XXX_Marshal

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

func (*QueryAllRandomvalRequest) XXX_Merge

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

func (*QueryAllRandomvalRequest) XXX_Size

func (m *QueryAllRandomvalRequest) XXX_Size() int

func (*QueryAllRandomvalRequest) XXX_Unmarshal

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

type QueryAllRandomvalResponse

type QueryAllRandomvalResponse struct {
	Randomval  []Randomval         `protobuf:"bytes,1,rep,name=randomval,proto3" json:"randomval"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllRandomvalResponse) Descriptor

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

func (*QueryAllRandomvalResponse) GetPagination

func (m *QueryAllRandomvalResponse) GetPagination() *query.PageResponse

func (*QueryAllRandomvalResponse) GetRandomval

func (m *QueryAllRandomvalResponse) GetRandomval() []Randomval

func (*QueryAllRandomvalResponse) Marshal

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

func (*QueryAllRandomvalResponse) MarshalTo

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

func (*QueryAllRandomvalResponse) MarshalToSizedBuffer

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

func (*QueryAllRandomvalResponse) ProtoMessage

func (*QueryAllRandomvalResponse) ProtoMessage()

func (*QueryAllRandomvalResponse) Reset

func (m *QueryAllRandomvalResponse) Reset()

func (*QueryAllRandomvalResponse) Size

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

func (*QueryAllRandomvalResponse) String

func (m *QueryAllRandomvalResponse) String() string

func (*QueryAllRandomvalResponse) Unmarshal

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

func (*QueryAllRandomvalResponse) XXX_DiscardUnknown

func (m *QueryAllRandomvalResponse) XXX_DiscardUnknown()

func (*QueryAllRandomvalResponse) XXX_Marshal

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

func (*QueryAllRandomvalResponse) XXX_Merge

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

func (*QueryAllRandomvalResponse) XXX_Size

func (m *QueryAllRandomvalResponse) XXX_Size() int

func (*QueryAllRandomvalResponse) XXX_Unmarshal

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

type QueryAllUservalRequest

type QueryAllUservalRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllUservalRequest) Descriptor

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

func (*QueryAllUservalRequest) GetPagination

func (m *QueryAllUservalRequest) GetPagination() *query.PageRequest

func (*QueryAllUservalRequest) Marshal

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

func (*QueryAllUservalRequest) MarshalTo

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

func (*QueryAllUservalRequest) MarshalToSizedBuffer

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

func (*QueryAllUservalRequest) ProtoMessage

func (*QueryAllUservalRequest) ProtoMessage()

func (*QueryAllUservalRequest) Reset

func (m *QueryAllUservalRequest) Reset()

func (*QueryAllUservalRequest) Size

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

func (*QueryAllUservalRequest) String

func (m *QueryAllUservalRequest) String() string

func (*QueryAllUservalRequest) Unmarshal

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

func (*QueryAllUservalRequest) XXX_DiscardUnknown

func (m *QueryAllUservalRequest) XXX_DiscardUnknown()

func (*QueryAllUservalRequest) XXX_Marshal

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

func (*QueryAllUservalRequest) XXX_Merge

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

func (*QueryAllUservalRequest) XXX_Size

func (m *QueryAllUservalRequest) XXX_Size() int

func (*QueryAllUservalRequest) XXX_Unmarshal

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

type QueryAllUservalResponse

type QueryAllUservalResponse struct {
	Userval    []Userval           `protobuf:"bytes,1,rep,name=userval,proto3" json:"userval"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllUservalResponse) Descriptor

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

func (*QueryAllUservalResponse) GetPagination

func (m *QueryAllUservalResponse) GetPagination() *query.PageResponse

func (*QueryAllUservalResponse) GetUserval

func (m *QueryAllUservalResponse) GetUserval() []Userval

func (*QueryAllUservalResponse) Marshal

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

func (*QueryAllUservalResponse) MarshalTo

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

func (*QueryAllUservalResponse) MarshalToSizedBuffer

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

func (*QueryAllUservalResponse) ProtoMessage

func (*QueryAllUservalResponse) ProtoMessage()

func (*QueryAllUservalResponse) Reset

func (m *QueryAllUservalResponse) Reset()

func (*QueryAllUservalResponse) Size

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

func (*QueryAllUservalResponse) String

func (m *QueryAllUservalResponse) String() string

func (*QueryAllUservalResponse) Unmarshal

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

func (*QueryAllUservalResponse) XXX_DiscardUnknown

func (m *QueryAllUservalResponse) XXX_DiscardUnknown()

func (*QueryAllUservalResponse) XXX_Marshal

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

func (*QueryAllUservalResponse) XXX_Merge

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

func (*QueryAllUservalResponse) XXX_Size

func (m *QueryAllUservalResponse) XXX_Size() int

func (*QueryAllUservalResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Queries a randomval by index.
	Randomval(ctx context.Context, in *QueryGetRandomvalRequest, opts ...grpc.CallOption) (*QueryGetRandomvalResponse, error)
	// Queries a list of randomval items.
	RandomvalAll(ctx context.Context, in *QueryAllRandomvalRequest, opts ...grpc.CallOption) (*QueryAllRandomvalResponse, error)
	// Queries a userval by index.
	Userval(ctx context.Context, in *QueryGetUservalRequest, opts ...grpc.CallOption) (*QueryGetUservalResponse, error)
	// Queries a list of userval items.
	UservalAll(ctx context.Context, in *QueryAllUservalRequest, opts ...grpc.CallOption) (*QueryAllUservalResponse, error)
	// Queries a list of verifyValues items.
	VerifyValues(ctx context.Context, in *QueryVerifyValuesRequest, opts ...grpc.CallOption) (*QueryVerifyValuesResponse, 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 QueryGetRandomvalRequest

type QueryGetRandomvalRequest struct {
	Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
}

func (*QueryGetRandomvalRequest) Descriptor

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

func (*QueryGetRandomvalRequest) GetIndex

func (m *QueryGetRandomvalRequest) GetIndex() string

func (*QueryGetRandomvalRequest) Marshal

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

func (*QueryGetRandomvalRequest) MarshalTo

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

func (*QueryGetRandomvalRequest) MarshalToSizedBuffer

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

func (*QueryGetRandomvalRequest) ProtoMessage

func (*QueryGetRandomvalRequest) ProtoMessage()

func (*QueryGetRandomvalRequest) Reset

func (m *QueryGetRandomvalRequest) Reset()

func (*QueryGetRandomvalRequest) Size

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

func (*QueryGetRandomvalRequest) String

func (m *QueryGetRandomvalRequest) String() string

func (*QueryGetRandomvalRequest) Unmarshal

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

func (*QueryGetRandomvalRequest) XXX_DiscardUnknown

func (m *QueryGetRandomvalRequest) XXX_DiscardUnknown()

func (*QueryGetRandomvalRequest) XXX_Marshal

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

func (*QueryGetRandomvalRequest) XXX_Merge

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

func (*QueryGetRandomvalRequest) XXX_Size

func (m *QueryGetRandomvalRequest) XXX_Size() int

func (*QueryGetRandomvalRequest) XXX_Unmarshal

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

type QueryGetRandomvalResponse

type QueryGetRandomvalResponse struct {
	Randomval Randomval `protobuf:"bytes,1,opt,name=randomval,proto3" json:"randomval"`
}

func (*QueryGetRandomvalResponse) Descriptor

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

func (*QueryGetRandomvalResponse) GetRandomval

func (m *QueryGetRandomvalResponse) GetRandomval() Randomval

func (*QueryGetRandomvalResponse) Marshal

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

func (*QueryGetRandomvalResponse) MarshalTo

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

func (*QueryGetRandomvalResponse) MarshalToSizedBuffer

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

func (*QueryGetRandomvalResponse) ProtoMessage

func (*QueryGetRandomvalResponse) ProtoMessage()

func (*QueryGetRandomvalResponse) Reset

func (m *QueryGetRandomvalResponse) Reset()

func (*QueryGetRandomvalResponse) Size

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

func (*QueryGetRandomvalResponse) String

func (m *QueryGetRandomvalResponse) String() string

func (*QueryGetRandomvalResponse) Unmarshal

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

func (*QueryGetRandomvalResponse) XXX_DiscardUnknown

func (m *QueryGetRandomvalResponse) XXX_DiscardUnknown()

func (*QueryGetRandomvalResponse) XXX_Marshal

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

func (*QueryGetRandomvalResponse) XXX_Merge

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

func (*QueryGetRandomvalResponse) XXX_Size

func (m *QueryGetRandomvalResponse) XXX_Size() int

func (*QueryGetRandomvalResponse) XXX_Unmarshal

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

type QueryGetUservalRequest

type QueryGetUservalRequest struct {
	Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
}

func (*QueryGetUservalRequest) Descriptor

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

func (*QueryGetUservalRequest) GetIndex

func (m *QueryGetUservalRequest) GetIndex() string

func (*QueryGetUservalRequest) Marshal

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

func (*QueryGetUservalRequest) MarshalTo

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

func (*QueryGetUservalRequest) MarshalToSizedBuffer

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

func (*QueryGetUservalRequest) ProtoMessage

func (*QueryGetUservalRequest) ProtoMessage()

func (*QueryGetUservalRequest) Reset

func (m *QueryGetUservalRequest) Reset()

func (*QueryGetUservalRequest) Size

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

func (*QueryGetUservalRequest) String

func (m *QueryGetUservalRequest) String() string

func (*QueryGetUservalRequest) Unmarshal

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

func (*QueryGetUservalRequest) XXX_DiscardUnknown

func (m *QueryGetUservalRequest) XXX_DiscardUnknown()

func (*QueryGetUservalRequest) XXX_Marshal

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

func (*QueryGetUservalRequest) XXX_Merge

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

func (*QueryGetUservalRequest) XXX_Size

func (m *QueryGetUservalRequest) XXX_Size() int

func (*QueryGetUservalRequest) XXX_Unmarshal

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

type QueryGetUservalResponse

type QueryGetUservalResponse struct {
	Userval Userval `protobuf:"bytes,1,opt,name=userval,proto3" json:"userval"`
}

func (*QueryGetUservalResponse) Descriptor

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

func (*QueryGetUservalResponse) GetUserval

func (m *QueryGetUservalResponse) GetUserval() Userval

func (*QueryGetUservalResponse) Marshal

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

func (*QueryGetUservalResponse) MarshalTo

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

func (*QueryGetUservalResponse) MarshalToSizedBuffer

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

func (*QueryGetUservalResponse) ProtoMessage

func (*QueryGetUservalResponse) ProtoMessage()

func (*QueryGetUservalResponse) Reset

func (m *QueryGetUservalResponse) Reset()

func (*QueryGetUservalResponse) Size

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

func (*QueryGetUservalResponse) String

func (m *QueryGetUservalResponse) String() string

func (*QueryGetUservalResponse) Unmarshal

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

func (*QueryGetUservalResponse) XXX_DiscardUnknown

func (m *QueryGetUservalResponse) XXX_DiscardUnknown()

func (*QueryGetUservalResponse) XXX_Marshal

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

func (*QueryGetUservalResponse) XXX_Merge

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

func (*QueryGetUservalResponse) XXX_Size

func (m *QueryGetUservalResponse) XXX_Size() int

func (*QueryGetUservalResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Queries a randomval by index.
	Randomval(context.Context, *QueryGetRandomvalRequest) (*QueryGetRandomvalResponse, error)
	// Queries a list of randomval items.
	RandomvalAll(context.Context, *QueryAllRandomvalRequest) (*QueryAllRandomvalResponse, error)
	// Queries a userval by index.
	Userval(context.Context, *QueryGetUservalRequest) (*QueryGetUservalResponse, error)
	// Queries a list of userval items.
	UservalAll(context.Context, *QueryAllUservalRequest) (*QueryAllUservalResponse, error)
	// Queries a list of verifyValues items.
	VerifyValues(context.Context, *QueryVerifyValuesRequest) (*QueryVerifyValuesResponse, error)
}

QueryServer is the server API for Query service.

type QueryVerifyValuesRequest

type QueryVerifyValuesRequest struct {
	Pubkey  string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Vrv     string `protobuf:"bytes,3,opt,name=vrv,proto3" json:"vrv,omitempty"`
	Proof   string `protobuf:"bytes,4,opt,name=proof,proto3" json:"proof,omitempty"`
}

func (*QueryVerifyValuesRequest) Descriptor

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

func (*QueryVerifyValuesRequest) GetMessage

func (m *QueryVerifyValuesRequest) GetMessage() string

func (*QueryVerifyValuesRequest) GetProof

func (m *QueryVerifyValuesRequest) GetProof() string

func (*QueryVerifyValuesRequest) GetPubkey

func (m *QueryVerifyValuesRequest) GetPubkey() string

func (*QueryVerifyValuesRequest) GetVrv

func (m *QueryVerifyValuesRequest) GetVrv() string

func (*QueryVerifyValuesRequest) Marshal

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

func (*QueryVerifyValuesRequest) MarshalTo

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

func (*QueryVerifyValuesRequest) MarshalToSizedBuffer

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

func (*QueryVerifyValuesRequest) ProtoMessage

func (*QueryVerifyValuesRequest) ProtoMessage()

func (*QueryVerifyValuesRequest) Reset

func (m *QueryVerifyValuesRequest) Reset()

func (*QueryVerifyValuesRequest) Size

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

func (*QueryVerifyValuesRequest) String

func (m *QueryVerifyValuesRequest) String() string

func (*QueryVerifyValuesRequest) Unmarshal

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

func (*QueryVerifyValuesRequest) XXX_DiscardUnknown

func (m *QueryVerifyValuesRequest) XXX_DiscardUnknown()

func (*QueryVerifyValuesRequest) XXX_Marshal

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

func (*QueryVerifyValuesRequest) XXX_Merge

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

func (*QueryVerifyValuesRequest) XXX_Size

func (m *QueryVerifyValuesRequest) XXX_Size() int

func (*QueryVerifyValuesRequest) XXX_Unmarshal

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

type QueryVerifyValuesResponse

type QueryVerifyValuesResponse struct {
	Verified string `protobuf:"bytes,1,opt,name=verified,proto3" json:"verified,omitempty"`
}

func (*QueryVerifyValuesResponse) Descriptor

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

func (*QueryVerifyValuesResponse) GetVerified

func (m *QueryVerifyValuesResponse) GetVerified() string

func (*QueryVerifyValuesResponse) Marshal

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

func (*QueryVerifyValuesResponse) MarshalTo

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

func (*QueryVerifyValuesResponse) MarshalToSizedBuffer

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

func (*QueryVerifyValuesResponse) ProtoMessage

func (*QueryVerifyValuesResponse) ProtoMessage()

func (*QueryVerifyValuesResponse) Reset

func (m *QueryVerifyValuesResponse) Reset()

func (*QueryVerifyValuesResponse) Size

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

func (*QueryVerifyValuesResponse) String

func (m *QueryVerifyValuesResponse) String() string

func (*QueryVerifyValuesResponse) Unmarshal

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

func (*QueryVerifyValuesResponse) XXX_DiscardUnknown

func (m *QueryVerifyValuesResponse) XXX_DiscardUnknown()

func (*QueryVerifyValuesResponse) XXX_Marshal

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

func (*QueryVerifyValuesResponse) XXX_Merge

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

func (*QueryVerifyValuesResponse) XXX_Size

func (m *QueryVerifyValuesResponse) XXX_Size() int

func (*QueryVerifyValuesResponse) XXX_Unmarshal

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

type Randomval

type Randomval struct {
	Index      string  `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Creator    string  `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	Vrv        string  `protobuf:"bytes,3,opt,name=vrv,proto3" json:"vrv,omitempty"`
	Multiplier uint64  `protobuf:"varint,4,opt,name=multiplier,proto3" json:"multiplier,omitempty"`
	Proof      string  `protobuf:"bytes,5,opt,name=proof,proto3" json:"proof,omitempty"`
	Pubk       string  `protobuf:"bytes,6,opt,name=pubk,proto3" json:"pubk,omitempty"`
	Message    string  `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"`
	Parsedvrv  uint64  `protobuf:"varint,8,opt,name=parsedvrv,proto3" json:"parsedvrv,omitempty"`
	Floatvrv   float64 `protobuf:"fixed64,9,opt,name=floatvrv,proto3" json:"floatvrv,omitempty"`
	// between or equal to 0 and 1
	Finalvrv   uint64  `protobuf:"varint,10,opt,name=finalvrv,proto3" json:"finalvrv,omitempty"`
	Finalvrvfl float64 `protobuf:"fixed64,11,opt,name=finalvrvfl,proto3" json:"finalvrvfl,omitempty"`
}

func (*Randomval) Descriptor

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

func (*Randomval) GetCreator

func (m *Randomval) GetCreator() string

func (*Randomval) GetFinalvrv

func (m *Randomval) GetFinalvrv() uint64

func (*Randomval) GetFinalvrvfl

func (m *Randomval) GetFinalvrvfl() float64

func (*Randomval) GetFloatvrv

func (m *Randomval) GetFloatvrv() float64

func (*Randomval) GetIndex

func (m *Randomval) GetIndex() string

func (*Randomval) GetMessage

func (m *Randomval) GetMessage() string

func (*Randomval) GetMultiplier

func (m *Randomval) GetMultiplier() uint64

func (*Randomval) GetParsedvrv

func (m *Randomval) GetParsedvrv() uint64

func (*Randomval) GetProof

func (m *Randomval) GetProof() string

func (*Randomval) GetPubk

func (m *Randomval) GetPubk() string

func (*Randomval) GetVrv

func (m *Randomval) GetVrv() string

func (*Randomval) Marshal

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

func (*Randomval) MarshalTo

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

func (*Randomval) MarshalToSizedBuffer

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

func (*Randomval) ProtoMessage

func (*Randomval) ProtoMessage()

func (*Randomval) Reset

func (m *Randomval) Reset()

func (*Randomval) Size

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

func (*Randomval) String

func (m *Randomval) String() string

func (*Randomval) Unmarshal

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

func (*Randomval) XXX_DiscardUnknown

func (m *Randomval) XXX_DiscardUnknown()

func (*Randomval) XXX_Marshal

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

func (*Randomval) XXX_Merge

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

func (*Randomval) XXX_Size

func (m *Randomval) XXX_Size() int

func (*Randomval) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateRandom

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Randomval

func (*UnimplementedQueryServer) RandomvalAll

func (*UnimplementedQueryServer) Userval

func (*UnimplementedQueryServer) UservalAll

func (*UnimplementedQueryServer) VerifyValues

type Userval

type Userval struct {
	Index    string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Useraddr string `protobuf:"bytes,2,opt,name=useraddr,proto3" json:"useraddr,omitempty"`
	Count    int64  `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
}

func (*Userval) Descriptor

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

func (*Userval) GetCount

func (m *Userval) GetCount() int64

func (*Userval) GetIndex

func (m *Userval) GetIndex() string

func (*Userval) GetUseraddr

func (m *Userval) GetUseraddr() string

func (*Userval) Marshal

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

func (*Userval) MarshalTo

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

func (*Userval) MarshalToSizedBuffer

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

func (*Userval) ProtoMessage

func (*Userval) ProtoMessage()

func (*Userval) Reset

func (m *Userval) Reset()

func (*Userval) Size

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

func (*Userval) String

func (m *Userval) String() string

func (*Userval) Unmarshal

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

func (*Userval) XXX_DiscardUnknown

func (m *Userval) XXX_DiscardUnknown()

func (*Userval) XXX_Marshal

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

func (*Userval) XXX_Merge

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

func (*Userval) XXX_Size

func (m *Userval) XXX_Size() int

func (*Userval) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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