Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetRequestCount() uint64
- func (m *GenesisState) GetRequestList() []Request
- func (m *GenesisState) GetValidatorCount() uint64
- func (m *GenesisState) GetValidatorList() []Validator
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateRequest
- func (*MsgCreateRequest) Descriptor() ([]byte, []int)
- func (m *MsgCreateRequest) GetCreator() string
- func (m *MsgCreateRequest) GetPrice() string
- func (msg *MsgCreateRequest) GetSignBytes() []byte
- func (msg *MsgCreateRequest) GetSigners() []sdk.AccAddress
- func (m *MsgCreateRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateRequest) ProtoMessage()
- func (m *MsgCreateRequest) Reset()
- func (msg *MsgCreateRequest) Route() string
- func (m *MsgCreateRequest) Size() (n int)
- func (m *MsgCreateRequest) String() string
- func (msg *MsgCreateRequest) Type() string
- func (m *MsgCreateRequest) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateRequest) ValidateBasic() error
- func (m *MsgCreateRequest) XXX_DiscardUnknown()
- func (m *MsgCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateRequest) XXX_Merge(src proto.Message)
- func (m *MsgCreateRequest) XXX_Size() int
- func (m *MsgCreateRequest) XXX_Unmarshal(b []byte) error
- type MsgCreateRequestResponse
- func (*MsgCreateRequestResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateRequestResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateRequestResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateRequestResponse) ProtoMessage()
- func (m *MsgCreateRequestResponse) Reset()
- func (m *MsgCreateRequestResponse) Size() (n int)
- func (m *MsgCreateRequestResponse) String() string
- func (m *MsgCreateRequestResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateRequestResponse) XXX_DiscardUnknown()
- func (m *MsgCreateRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateRequestResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateRequestResponse) XXX_Size() int
- func (m *MsgCreateRequestResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgValidatorRegistration
- func (*MsgValidatorRegistration) Descriptor() ([]byte, []int)
- func (m *MsgValidatorRegistration) GetAmount() string
- func (m *MsgValidatorRegistration) GetCreator() string
- func (msg *MsgValidatorRegistration) GetSignBytes() []byte
- func (msg *MsgValidatorRegistration) GetSigners() []sdk.AccAddress
- func (m *MsgValidatorRegistration) Marshal() (dAtA []byte, err error)
- func (m *MsgValidatorRegistration) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgValidatorRegistration) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgValidatorRegistration) ProtoMessage()
- func (m *MsgValidatorRegistration) Reset()
- func (msg *MsgValidatorRegistration) Route() string
- func (m *MsgValidatorRegistration) Size() (n int)
- func (m *MsgValidatorRegistration) String() string
- func (msg *MsgValidatorRegistration) Type() string
- func (m *MsgValidatorRegistration) Unmarshal(dAtA []byte) error
- func (msg *MsgValidatorRegistration) ValidateBasic() error
- func (m *MsgValidatorRegistration) XXX_DiscardUnknown()
- func (m *MsgValidatorRegistration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgValidatorRegistration) XXX_Merge(src proto.Message)
- func (m *MsgValidatorRegistration) XXX_Size() int
- func (m *MsgValidatorRegistration) XXX_Unmarshal(b []byte) error
- type MsgValidatorRegistrationResponse
- func (*MsgValidatorRegistrationResponse) Descriptor() ([]byte, []int)
- func (m *MsgValidatorRegistrationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgValidatorRegistrationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgValidatorRegistrationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgValidatorRegistrationResponse) ProtoMessage()
- func (m *MsgValidatorRegistrationResponse) Reset()
- func (m *MsgValidatorRegistrationResponse) Size() (n int)
- func (m *MsgValidatorRegistrationResponse) String() string
- func (m *MsgValidatorRegistrationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgValidatorRegistrationResponse) XXX_DiscardUnknown()
- func (m *MsgValidatorRegistrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgValidatorRegistrationResponse) XXX_Merge(src proto.Message)
- func (m *MsgValidatorRegistrationResponse) XXX_Size() int
- func (m *MsgValidatorRegistrationResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllRequestRequest
- func (*QueryAllRequestRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllRequestRequest) GetPagination() *query.PageRequest
- func (m *QueryAllRequestRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRequestRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRequestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRequestRequest) ProtoMessage()
- func (m *QueryAllRequestRequest) Reset()
- func (m *QueryAllRequestRequest) Size() (n int)
- func (m *QueryAllRequestRequest) String() string
- func (m *QueryAllRequestRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllRequestRequest) XXX_DiscardUnknown()
- func (m *QueryAllRequestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRequestRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllRequestRequest) XXX_Size() int
- func (m *QueryAllRequestRequest) XXX_Unmarshal(b []byte) error
- type QueryAllRequestResponse
- func (*QueryAllRequestResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllRequestResponse) GetPagination() *query.PageResponse
- func (m *QueryAllRequestResponse) GetRequest() []Request
- func (m *QueryAllRequestResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRequestResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRequestResponse) ProtoMessage()
- func (m *QueryAllRequestResponse) Reset()
- func (m *QueryAllRequestResponse) Size() (n int)
- func (m *QueryAllRequestResponse) String() string
- func (m *QueryAllRequestResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllRequestResponse) XXX_DiscardUnknown()
- func (m *QueryAllRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRequestResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllRequestResponse) XXX_Size() int
- func (m *QueryAllRequestResponse) XXX_Unmarshal(b []byte) error
- type QueryAllValidatorRequest
- func (*QueryAllValidatorRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllValidatorRequest) GetPagination() *query.PageRequest
- func (m *QueryAllValidatorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllValidatorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllValidatorRequest) ProtoMessage()
- func (m *QueryAllValidatorRequest) Reset()
- func (m *QueryAllValidatorRequest) Size() (n int)
- func (m *QueryAllValidatorRequest) String() string
- func (m *QueryAllValidatorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllValidatorRequest) XXX_DiscardUnknown()
- func (m *QueryAllValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllValidatorRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllValidatorRequest) XXX_Size() int
- func (m *QueryAllValidatorRequest) XXX_Unmarshal(b []byte) error
- type QueryAllValidatorResponse
- func (*QueryAllValidatorResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllValidatorResponse) GetPagination() *query.PageResponse
- func (m *QueryAllValidatorResponse) GetValidator() []Validator
- func (m *QueryAllValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllValidatorResponse) ProtoMessage()
- func (m *QueryAllValidatorResponse) Reset()
- func (m *QueryAllValidatorResponse) Size() (n int)
- func (m *QueryAllValidatorResponse) String() string
- func (m *QueryAllValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllValidatorResponse) XXX_DiscardUnknown()
- func (m *QueryAllValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllValidatorResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllValidatorResponse) XXX_Size() int
- func (m *QueryAllValidatorResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetRequestRequest
- func (*QueryGetRequestRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetRequestRequest) GetId() uint64
- func (m *QueryGetRequestRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetRequestRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetRequestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetRequestRequest) ProtoMessage()
- func (m *QueryGetRequestRequest) Reset()
- func (m *QueryGetRequestRequest) Size() (n int)
- func (m *QueryGetRequestRequest) String() string
- func (m *QueryGetRequestRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetRequestRequest) XXX_DiscardUnknown()
- func (m *QueryGetRequestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetRequestRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetRequestRequest) XXX_Size() int
- func (m *QueryGetRequestRequest) XXX_Unmarshal(b []byte) error
- type QueryGetRequestResponse
- func (*QueryGetRequestResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetRequestResponse) GetRequest() Request
- func (m *QueryGetRequestResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetRequestResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetRequestResponse) ProtoMessage()
- func (m *QueryGetRequestResponse) Reset()
- func (m *QueryGetRequestResponse) Size() (n int)
- func (m *QueryGetRequestResponse) String() string
- func (m *QueryGetRequestResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetRequestResponse) XXX_DiscardUnknown()
- func (m *QueryGetRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetRequestResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetRequestResponse) XXX_Size() int
- func (m *QueryGetRequestResponse) XXX_Unmarshal(b []byte) error
- type QueryGetValidatorRequest
- func (*QueryGetValidatorRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetValidatorRequest) GetId() uint64
- func (m *QueryGetValidatorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetValidatorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetValidatorRequest) ProtoMessage()
- func (m *QueryGetValidatorRequest) Reset()
- func (m *QueryGetValidatorRequest) Size() (n int)
- func (m *QueryGetValidatorRequest) String() string
- func (m *QueryGetValidatorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetValidatorRequest) XXX_DiscardUnknown()
- func (m *QueryGetValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetValidatorRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetValidatorRequest) XXX_Size() int
- func (m *QueryGetValidatorRequest) XXX_Unmarshal(b []byte) error
- type QueryGetValidatorResponse
- func (*QueryGetValidatorResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetValidatorResponse) GetValidator() Validator
- func (m *QueryGetValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetValidatorResponse) ProtoMessage()
- func (m *QueryGetValidatorResponse) Reset()
- func (m *QueryGetValidatorResponse) Size() (n int)
- func (m *QueryGetValidatorResponse) String() string
- func (m *QueryGetValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetValidatorResponse) XXX_DiscardUnknown()
- func (m *QueryGetValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetValidatorResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetValidatorResponse) XXX_Size() int
- func (m *QueryGetValidatorResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetId() uint64
- func (m *Request) GetPrice() string
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Request(ctx context.Context, req *QueryGetRequestRequest) (*QueryGetRequestResponse, error)
- func (*UnimplementedQueryServer) RequestAll(ctx context.Context, req *QueryAllRequestRequest) (*QueryAllRequestResponse, error)
- func (*UnimplementedQueryServer) Validator(ctx context.Context, req *QueryGetValidatorRequest) (*QueryGetValidatorResponse, error)
- func (*UnimplementedQueryServer) ValidatorAll(ctx context.Context, req *QueryAllValidatorRequest) (*QueryAllValidatorResponse, error)
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)
- func (m *Validator) GetAddress() string
- func (m *Validator) GetId() uint64
- func (m *Validator) Marshal() (dAtA []byte, err error)
- func (m *Validator) MarshalTo(dAtA []byte) (int, error)
- func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (m *Validator) Size() (n int)
- func (m *Validator) String() string
- func (m *Validator) Unmarshal(dAtA []byte) error
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "oracle" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_oracle" )
const ( RequestKey = "Request/value/" RequestCountKey = "Request/count/" )
const ( ValidatorKey = "Validator/value/" ValidatorCountKey = "Validator/count/" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const TypeMsgCreateRequest = "create_request"
const TypeMsgValidatorRegistration = "validator_registration"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthRequest = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRequest = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRequest = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthValidator = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowValidator = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group") )
var (
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)
x/oracle module sentinel errors
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` RequestList []Request `protobuf:"bytes,2,rep,name=requestList,proto3" json:"requestList"` RequestCount uint64 `protobuf:"varint,3,opt,name=requestCount,proto3" json:"requestCount,omitempty"` ValidatorList []Validator `protobuf:"bytes,4,rep,name=validatorList,proto3" json:"validatorList"` ValidatorCount uint64 `protobuf:"varint,5,opt,name=validatorCount,proto3" json:"validatorCount,omitempty"` }
GenesisState defines the oracle module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetRequestCount ¶
func (m *GenesisState) GetRequestCount() uint64
func (*GenesisState) GetRequestList ¶
func (m *GenesisState) GetRequestList() []Request
func (*GenesisState) GetValidatorCount ¶
func (m *GenesisState) GetValidatorCount() uint64
func (*GenesisState) GetValidatorList ¶
func (m *GenesisState) GetValidatorList() []Validator
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 { CreateRequest(ctx context.Context, in *MsgCreateRequest, opts ...grpc.CallOption) (*MsgCreateRequestResponse, error) ValidatorRegistration(ctx context.Context, in *MsgValidatorRegistration, opts ...grpc.CallOption) (*MsgValidatorRegistrationResponse, 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 MsgCreateRequest ¶
type MsgCreateRequest struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` }
func NewMsgCreateRequest ¶
func NewMsgCreateRequest(creator string, price string) *MsgCreateRequest
func (*MsgCreateRequest) Descriptor ¶
func (*MsgCreateRequest) Descriptor() ([]byte, []int)
func (*MsgCreateRequest) GetCreator ¶
func (m *MsgCreateRequest) GetCreator() string
func (*MsgCreateRequest) GetPrice ¶
func (m *MsgCreateRequest) GetPrice() string
func (*MsgCreateRequest) GetSignBytes ¶
func (msg *MsgCreateRequest) GetSignBytes() []byte
func (*MsgCreateRequest) GetSigners ¶
func (msg *MsgCreateRequest) GetSigners() []sdk.AccAddress
func (*MsgCreateRequest) Marshal ¶
func (m *MsgCreateRequest) Marshal() (dAtA []byte, err error)
func (*MsgCreateRequest) MarshalToSizedBuffer ¶
func (m *MsgCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateRequest) ProtoMessage ¶
func (*MsgCreateRequest) ProtoMessage()
func (*MsgCreateRequest) Reset ¶
func (m *MsgCreateRequest) Reset()
func (*MsgCreateRequest) Route ¶
func (msg *MsgCreateRequest) Route() string
func (*MsgCreateRequest) Size ¶
func (m *MsgCreateRequest) Size() (n int)
func (*MsgCreateRequest) String ¶
func (m *MsgCreateRequest) String() string
func (*MsgCreateRequest) Type ¶
func (msg *MsgCreateRequest) Type() string
func (*MsgCreateRequest) Unmarshal ¶
func (m *MsgCreateRequest) Unmarshal(dAtA []byte) error
func (*MsgCreateRequest) ValidateBasic ¶
func (msg *MsgCreateRequest) ValidateBasic() error
func (*MsgCreateRequest) XXX_DiscardUnknown ¶
func (m *MsgCreateRequest) XXX_DiscardUnknown()
func (*MsgCreateRequest) XXX_Marshal ¶
func (m *MsgCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateRequest) XXX_Merge ¶
func (m *MsgCreateRequest) XXX_Merge(src proto.Message)
func (*MsgCreateRequest) XXX_Size ¶
func (m *MsgCreateRequest) XXX_Size() int
func (*MsgCreateRequest) XXX_Unmarshal ¶
func (m *MsgCreateRequest) XXX_Unmarshal(b []byte) error
type MsgCreateRequestResponse ¶
type MsgCreateRequestResponse struct { }
func (*MsgCreateRequestResponse) Descriptor ¶
func (*MsgCreateRequestResponse) Descriptor() ([]byte, []int)
func (*MsgCreateRequestResponse) Marshal ¶
func (m *MsgCreateRequestResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateRequestResponse) MarshalTo ¶
func (m *MsgCreateRequestResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateRequestResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateRequestResponse) ProtoMessage ¶
func (*MsgCreateRequestResponse) ProtoMessage()
func (*MsgCreateRequestResponse) Reset ¶
func (m *MsgCreateRequestResponse) Reset()
func (*MsgCreateRequestResponse) Size ¶
func (m *MsgCreateRequestResponse) Size() (n int)
func (*MsgCreateRequestResponse) String ¶
func (m *MsgCreateRequestResponse) String() string
func (*MsgCreateRequestResponse) Unmarshal ¶
func (m *MsgCreateRequestResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateRequestResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateRequestResponse) XXX_DiscardUnknown()
func (*MsgCreateRequestResponse) XXX_Marshal ¶
func (m *MsgCreateRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateRequestResponse) XXX_Merge ¶
func (m *MsgCreateRequestResponse) XXX_Merge(src proto.Message)
func (*MsgCreateRequestResponse) XXX_Size ¶
func (m *MsgCreateRequestResponse) XXX_Size() int
func (*MsgCreateRequestResponse) XXX_Unmarshal ¶
func (m *MsgCreateRequestResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreateRequest(context.Context, *MsgCreateRequest) (*MsgCreateRequestResponse, error) ValidatorRegistration(context.Context, *MsgValidatorRegistration) (*MsgValidatorRegistrationResponse, error) }
MsgServer is the server API for Msg service.
type MsgValidatorRegistration ¶
type MsgValidatorRegistration struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` }
func NewMsgValidatorRegistration ¶
func NewMsgValidatorRegistration(creator string, amount string) *MsgValidatorRegistration
func (*MsgValidatorRegistration) Descriptor ¶
func (*MsgValidatorRegistration) Descriptor() ([]byte, []int)
func (*MsgValidatorRegistration) GetAmount ¶
func (m *MsgValidatorRegistration) GetAmount() string
func (*MsgValidatorRegistration) GetCreator ¶
func (m *MsgValidatorRegistration) GetCreator() string
func (*MsgValidatorRegistration) GetSignBytes ¶
func (msg *MsgValidatorRegistration) GetSignBytes() []byte
func (*MsgValidatorRegistration) GetSigners ¶
func (msg *MsgValidatorRegistration) GetSigners() []sdk.AccAddress
func (*MsgValidatorRegistration) Marshal ¶
func (m *MsgValidatorRegistration) Marshal() (dAtA []byte, err error)
func (*MsgValidatorRegistration) MarshalTo ¶
func (m *MsgValidatorRegistration) MarshalTo(dAtA []byte) (int, error)
func (*MsgValidatorRegistration) MarshalToSizedBuffer ¶
func (m *MsgValidatorRegistration) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgValidatorRegistration) ProtoMessage ¶
func (*MsgValidatorRegistration) ProtoMessage()
func (*MsgValidatorRegistration) Reset ¶
func (m *MsgValidatorRegistration) Reset()
func (*MsgValidatorRegistration) Route ¶
func (msg *MsgValidatorRegistration) Route() string
func (*MsgValidatorRegistration) Size ¶
func (m *MsgValidatorRegistration) Size() (n int)
func (*MsgValidatorRegistration) String ¶
func (m *MsgValidatorRegistration) String() string
func (*MsgValidatorRegistration) Type ¶
func (msg *MsgValidatorRegistration) Type() string
func (*MsgValidatorRegistration) Unmarshal ¶
func (m *MsgValidatorRegistration) Unmarshal(dAtA []byte) error
func (*MsgValidatorRegistration) ValidateBasic ¶
func (msg *MsgValidatorRegistration) ValidateBasic() error
func (*MsgValidatorRegistration) XXX_DiscardUnknown ¶
func (m *MsgValidatorRegistration) XXX_DiscardUnknown()
func (*MsgValidatorRegistration) XXX_Marshal ¶
func (m *MsgValidatorRegistration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgValidatorRegistration) XXX_Merge ¶
func (m *MsgValidatorRegistration) XXX_Merge(src proto.Message)
func (*MsgValidatorRegistration) XXX_Size ¶
func (m *MsgValidatorRegistration) XXX_Size() int
func (*MsgValidatorRegistration) XXX_Unmarshal ¶
func (m *MsgValidatorRegistration) XXX_Unmarshal(b []byte) error
type MsgValidatorRegistrationResponse ¶
type MsgValidatorRegistrationResponse struct { }
func (*MsgValidatorRegistrationResponse) Descriptor ¶
func (*MsgValidatorRegistrationResponse) Descriptor() ([]byte, []int)
func (*MsgValidatorRegistrationResponse) Marshal ¶
func (m *MsgValidatorRegistrationResponse) Marshal() (dAtA []byte, err error)
func (*MsgValidatorRegistrationResponse) MarshalTo ¶
func (m *MsgValidatorRegistrationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgValidatorRegistrationResponse) MarshalToSizedBuffer ¶
func (m *MsgValidatorRegistrationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgValidatorRegistrationResponse) ProtoMessage ¶
func (*MsgValidatorRegistrationResponse) ProtoMessage()
func (*MsgValidatorRegistrationResponse) Reset ¶
func (m *MsgValidatorRegistrationResponse) Reset()
func (*MsgValidatorRegistrationResponse) Size ¶
func (m *MsgValidatorRegistrationResponse) Size() (n int)
func (*MsgValidatorRegistrationResponse) String ¶
func (m *MsgValidatorRegistrationResponse) String() string
func (*MsgValidatorRegistrationResponse) Unmarshal ¶
func (m *MsgValidatorRegistrationResponse) Unmarshal(dAtA []byte) error
func (*MsgValidatorRegistrationResponse) XXX_DiscardUnknown ¶
func (m *MsgValidatorRegistrationResponse) XXX_DiscardUnknown()
func (*MsgValidatorRegistrationResponse) XXX_Marshal ¶
func (m *MsgValidatorRegistrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgValidatorRegistrationResponse) XXX_Merge ¶
func (m *MsgValidatorRegistrationResponse) XXX_Merge(src proto.Message)
func (*MsgValidatorRegistrationResponse) XXX_Size ¶
func (m *MsgValidatorRegistrationResponse) XXX_Size() int
func (*MsgValidatorRegistrationResponse) XXX_Unmarshal ¶
func (m *MsgValidatorRegistrationResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllRequestRequest ¶
type QueryAllRequestRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllRequestRequest) Descriptor ¶
func (*QueryAllRequestRequest) Descriptor() ([]byte, []int)
func (*QueryAllRequestRequest) GetPagination ¶
func (m *QueryAllRequestRequest) GetPagination() *query.PageRequest
func (*QueryAllRequestRequest) Marshal ¶
func (m *QueryAllRequestRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllRequestRequest) MarshalTo ¶
func (m *QueryAllRequestRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllRequestRequest) MarshalToSizedBuffer ¶
func (m *QueryAllRequestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllRequestRequest) ProtoMessage ¶
func (*QueryAllRequestRequest) ProtoMessage()
func (*QueryAllRequestRequest) Reset ¶
func (m *QueryAllRequestRequest) Reset()
func (*QueryAllRequestRequest) Size ¶
func (m *QueryAllRequestRequest) Size() (n int)
func (*QueryAllRequestRequest) String ¶
func (m *QueryAllRequestRequest) String() string
func (*QueryAllRequestRequest) Unmarshal ¶
func (m *QueryAllRequestRequest) Unmarshal(dAtA []byte) error
func (*QueryAllRequestRequest) XXX_DiscardUnknown ¶
func (m *QueryAllRequestRequest) XXX_DiscardUnknown()
func (*QueryAllRequestRequest) XXX_Marshal ¶
func (m *QueryAllRequestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllRequestRequest) XXX_Merge ¶
func (m *QueryAllRequestRequest) XXX_Merge(src proto.Message)
func (*QueryAllRequestRequest) XXX_Size ¶
func (m *QueryAllRequestRequest) XXX_Size() int
func (*QueryAllRequestRequest) XXX_Unmarshal ¶
func (m *QueryAllRequestRequest) XXX_Unmarshal(b []byte) error
type QueryAllRequestResponse ¶
type QueryAllRequestResponse struct { Request []Request `protobuf:"bytes,1,rep,name=Request,proto3" json:"Request"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllRequestResponse) Descriptor ¶
func (*QueryAllRequestResponse) Descriptor() ([]byte, []int)
func (*QueryAllRequestResponse) GetPagination ¶
func (m *QueryAllRequestResponse) GetPagination() *query.PageResponse
func (*QueryAllRequestResponse) GetRequest ¶
func (m *QueryAllRequestResponse) GetRequest() []Request
func (*QueryAllRequestResponse) Marshal ¶
func (m *QueryAllRequestResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllRequestResponse) MarshalTo ¶
func (m *QueryAllRequestResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllRequestResponse) MarshalToSizedBuffer ¶
func (m *QueryAllRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllRequestResponse) ProtoMessage ¶
func (*QueryAllRequestResponse) ProtoMessage()
func (*QueryAllRequestResponse) Reset ¶
func (m *QueryAllRequestResponse) Reset()
func (*QueryAllRequestResponse) Size ¶
func (m *QueryAllRequestResponse) Size() (n int)
func (*QueryAllRequestResponse) String ¶
func (m *QueryAllRequestResponse) String() string
func (*QueryAllRequestResponse) Unmarshal ¶
func (m *QueryAllRequestResponse) Unmarshal(dAtA []byte) error
func (*QueryAllRequestResponse) XXX_DiscardUnknown ¶
func (m *QueryAllRequestResponse) XXX_DiscardUnknown()
func (*QueryAllRequestResponse) XXX_Marshal ¶
func (m *QueryAllRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllRequestResponse) XXX_Merge ¶
func (m *QueryAllRequestResponse) XXX_Merge(src proto.Message)
func (*QueryAllRequestResponse) XXX_Size ¶
func (m *QueryAllRequestResponse) XXX_Size() int
func (*QueryAllRequestResponse) XXX_Unmarshal ¶
func (m *QueryAllRequestResponse) XXX_Unmarshal(b []byte) error
type QueryAllValidatorRequest ¶
type QueryAllValidatorRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllValidatorRequest) Descriptor ¶
func (*QueryAllValidatorRequest) Descriptor() ([]byte, []int)
func (*QueryAllValidatorRequest) GetPagination ¶
func (m *QueryAllValidatorRequest) GetPagination() *query.PageRequest
func (*QueryAllValidatorRequest) Marshal ¶
func (m *QueryAllValidatorRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllValidatorRequest) MarshalTo ¶
func (m *QueryAllValidatorRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllValidatorRequest) MarshalToSizedBuffer ¶
func (m *QueryAllValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllValidatorRequest) ProtoMessage ¶
func (*QueryAllValidatorRequest) ProtoMessage()
func (*QueryAllValidatorRequest) Reset ¶
func (m *QueryAllValidatorRequest) Reset()
func (*QueryAllValidatorRequest) Size ¶
func (m *QueryAllValidatorRequest) Size() (n int)
func (*QueryAllValidatorRequest) String ¶
func (m *QueryAllValidatorRequest) String() string
func (*QueryAllValidatorRequest) Unmarshal ¶
func (m *QueryAllValidatorRequest) Unmarshal(dAtA []byte) error
func (*QueryAllValidatorRequest) XXX_DiscardUnknown ¶
func (m *QueryAllValidatorRequest) XXX_DiscardUnknown()
func (*QueryAllValidatorRequest) XXX_Marshal ¶
func (m *QueryAllValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllValidatorRequest) XXX_Merge ¶
func (m *QueryAllValidatorRequest) XXX_Merge(src proto.Message)
func (*QueryAllValidatorRequest) XXX_Size ¶
func (m *QueryAllValidatorRequest) XXX_Size() int
func (*QueryAllValidatorRequest) XXX_Unmarshal ¶
func (m *QueryAllValidatorRequest) XXX_Unmarshal(b []byte) error
type QueryAllValidatorResponse ¶
type QueryAllValidatorResponse struct { Validator []Validator `protobuf:"bytes,1,rep,name=Validator,proto3" json:"Validator"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllValidatorResponse) Descriptor ¶
func (*QueryAllValidatorResponse) Descriptor() ([]byte, []int)
func (*QueryAllValidatorResponse) GetPagination ¶
func (m *QueryAllValidatorResponse) GetPagination() *query.PageResponse
func (*QueryAllValidatorResponse) GetValidator ¶
func (m *QueryAllValidatorResponse) GetValidator() []Validator
func (*QueryAllValidatorResponse) Marshal ¶
func (m *QueryAllValidatorResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllValidatorResponse) MarshalTo ¶
func (m *QueryAllValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllValidatorResponse) MarshalToSizedBuffer ¶
func (m *QueryAllValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllValidatorResponse) ProtoMessage ¶
func (*QueryAllValidatorResponse) ProtoMessage()
func (*QueryAllValidatorResponse) Reset ¶
func (m *QueryAllValidatorResponse) Reset()
func (*QueryAllValidatorResponse) Size ¶
func (m *QueryAllValidatorResponse) Size() (n int)
func (*QueryAllValidatorResponse) String ¶
func (m *QueryAllValidatorResponse) String() string
func (*QueryAllValidatorResponse) Unmarshal ¶
func (m *QueryAllValidatorResponse) Unmarshal(dAtA []byte) error
func (*QueryAllValidatorResponse) XXX_DiscardUnknown ¶
func (m *QueryAllValidatorResponse) XXX_DiscardUnknown()
func (*QueryAllValidatorResponse) XXX_Marshal ¶
func (m *QueryAllValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllValidatorResponse) XXX_Merge ¶
func (m *QueryAllValidatorResponse) XXX_Merge(src proto.Message)
func (*QueryAllValidatorResponse) XXX_Size ¶
func (m *QueryAllValidatorResponse) XXX_Size() int
func (*QueryAllValidatorResponse) XXX_Unmarshal ¶
func (m *QueryAllValidatorResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of Request items. Request(ctx context.Context, in *QueryGetRequestRequest, opts ...grpc.CallOption) (*QueryGetRequestResponse, error) RequestAll(ctx context.Context, in *QueryAllRequestRequest, opts ...grpc.CallOption) (*QueryAllRequestResponse, error) // Queries a list of Validator items. Validator(ctx context.Context, in *QueryGetValidatorRequest, opts ...grpc.CallOption) (*QueryGetValidatorResponse, error) ValidatorAll(ctx context.Context, in *QueryAllValidatorRequest, opts ...grpc.CallOption) (*QueryAllValidatorResponse, 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 QueryGetRequestRequest ¶
type QueryGetRequestRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryGetRequestRequest) Descriptor ¶
func (*QueryGetRequestRequest) Descriptor() ([]byte, []int)
func (*QueryGetRequestRequest) GetId ¶
func (m *QueryGetRequestRequest) GetId() uint64
func (*QueryGetRequestRequest) Marshal ¶
func (m *QueryGetRequestRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetRequestRequest) MarshalTo ¶
func (m *QueryGetRequestRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetRequestRequest) MarshalToSizedBuffer ¶
func (m *QueryGetRequestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetRequestRequest) ProtoMessage ¶
func (*QueryGetRequestRequest) ProtoMessage()
func (*QueryGetRequestRequest) Reset ¶
func (m *QueryGetRequestRequest) Reset()
func (*QueryGetRequestRequest) Size ¶
func (m *QueryGetRequestRequest) Size() (n int)
func (*QueryGetRequestRequest) String ¶
func (m *QueryGetRequestRequest) String() string
func (*QueryGetRequestRequest) Unmarshal ¶
func (m *QueryGetRequestRequest) Unmarshal(dAtA []byte) error
func (*QueryGetRequestRequest) XXX_DiscardUnknown ¶
func (m *QueryGetRequestRequest) XXX_DiscardUnknown()
func (*QueryGetRequestRequest) XXX_Marshal ¶
func (m *QueryGetRequestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetRequestRequest) XXX_Merge ¶
func (m *QueryGetRequestRequest) XXX_Merge(src proto.Message)
func (*QueryGetRequestRequest) XXX_Size ¶
func (m *QueryGetRequestRequest) XXX_Size() int
func (*QueryGetRequestRequest) XXX_Unmarshal ¶
func (m *QueryGetRequestRequest) XXX_Unmarshal(b []byte) error
type QueryGetRequestResponse ¶
type QueryGetRequestResponse struct {
Request Request `protobuf:"bytes,1,opt,name=Request,proto3" json:"Request"`
}
func (*QueryGetRequestResponse) Descriptor ¶
func (*QueryGetRequestResponse) Descriptor() ([]byte, []int)
func (*QueryGetRequestResponse) GetRequest ¶
func (m *QueryGetRequestResponse) GetRequest() Request
func (*QueryGetRequestResponse) Marshal ¶
func (m *QueryGetRequestResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetRequestResponse) MarshalTo ¶
func (m *QueryGetRequestResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetRequestResponse) MarshalToSizedBuffer ¶
func (m *QueryGetRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetRequestResponse) ProtoMessage ¶
func (*QueryGetRequestResponse) ProtoMessage()
func (*QueryGetRequestResponse) Reset ¶
func (m *QueryGetRequestResponse) Reset()
func (*QueryGetRequestResponse) Size ¶
func (m *QueryGetRequestResponse) Size() (n int)
func (*QueryGetRequestResponse) String ¶
func (m *QueryGetRequestResponse) String() string
func (*QueryGetRequestResponse) Unmarshal ¶
func (m *QueryGetRequestResponse) Unmarshal(dAtA []byte) error
func (*QueryGetRequestResponse) XXX_DiscardUnknown ¶
func (m *QueryGetRequestResponse) XXX_DiscardUnknown()
func (*QueryGetRequestResponse) XXX_Marshal ¶
func (m *QueryGetRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetRequestResponse) XXX_Merge ¶
func (m *QueryGetRequestResponse) XXX_Merge(src proto.Message)
func (*QueryGetRequestResponse) XXX_Size ¶
func (m *QueryGetRequestResponse) XXX_Size() int
func (*QueryGetRequestResponse) XXX_Unmarshal ¶
func (m *QueryGetRequestResponse) XXX_Unmarshal(b []byte) error
type QueryGetValidatorRequest ¶
type QueryGetValidatorRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryGetValidatorRequest) Descriptor ¶
func (*QueryGetValidatorRequest) Descriptor() ([]byte, []int)
func (*QueryGetValidatorRequest) GetId ¶
func (m *QueryGetValidatorRequest) GetId() uint64
func (*QueryGetValidatorRequest) Marshal ¶
func (m *QueryGetValidatorRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetValidatorRequest) MarshalTo ¶
func (m *QueryGetValidatorRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetValidatorRequest) MarshalToSizedBuffer ¶
func (m *QueryGetValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetValidatorRequest) ProtoMessage ¶
func (*QueryGetValidatorRequest) ProtoMessage()
func (*QueryGetValidatorRequest) Reset ¶
func (m *QueryGetValidatorRequest) Reset()
func (*QueryGetValidatorRequest) Size ¶
func (m *QueryGetValidatorRequest) Size() (n int)
func (*QueryGetValidatorRequest) String ¶
func (m *QueryGetValidatorRequest) String() string
func (*QueryGetValidatorRequest) Unmarshal ¶
func (m *QueryGetValidatorRequest) Unmarshal(dAtA []byte) error
func (*QueryGetValidatorRequest) XXX_DiscardUnknown ¶
func (m *QueryGetValidatorRequest) XXX_DiscardUnknown()
func (*QueryGetValidatorRequest) XXX_Marshal ¶
func (m *QueryGetValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetValidatorRequest) XXX_Merge ¶
func (m *QueryGetValidatorRequest) XXX_Merge(src proto.Message)
func (*QueryGetValidatorRequest) XXX_Size ¶
func (m *QueryGetValidatorRequest) XXX_Size() int
func (*QueryGetValidatorRequest) XXX_Unmarshal ¶
func (m *QueryGetValidatorRequest) XXX_Unmarshal(b []byte) error
type QueryGetValidatorResponse ¶
type QueryGetValidatorResponse struct {
Validator Validator `protobuf:"bytes,1,opt,name=Validator,proto3" json:"Validator"`
}
func (*QueryGetValidatorResponse) Descriptor ¶
func (*QueryGetValidatorResponse) Descriptor() ([]byte, []int)
func (*QueryGetValidatorResponse) GetValidator ¶
func (m *QueryGetValidatorResponse) GetValidator() Validator
func (*QueryGetValidatorResponse) Marshal ¶
func (m *QueryGetValidatorResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetValidatorResponse) MarshalTo ¶
func (m *QueryGetValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetValidatorResponse) MarshalToSizedBuffer ¶
func (m *QueryGetValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetValidatorResponse) ProtoMessage ¶
func (*QueryGetValidatorResponse) ProtoMessage()
func (*QueryGetValidatorResponse) Reset ¶
func (m *QueryGetValidatorResponse) Reset()
func (*QueryGetValidatorResponse) Size ¶
func (m *QueryGetValidatorResponse) Size() (n int)
func (*QueryGetValidatorResponse) String ¶
func (m *QueryGetValidatorResponse) String() string
func (*QueryGetValidatorResponse) Unmarshal ¶
func (m *QueryGetValidatorResponse) Unmarshal(dAtA []byte) error
func (*QueryGetValidatorResponse) XXX_DiscardUnknown ¶
func (m *QueryGetValidatorResponse) XXX_DiscardUnknown()
func (*QueryGetValidatorResponse) XXX_Marshal ¶
func (m *QueryGetValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetValidatorResponse) XXX_Merge ¶
func (m *QueryGetValidatorResponse) XXX_Merge(src proto.Message)
func (*QueryGetValidatorResponse) XXX_Size ¶
func (m *QueryGetValidatorResponse) XXX_Size() int
func (*QueryGetValidatorResponse) XXX_Unmarshal ¶
func (m *QueryGetValidatorResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of Request items. Request(context.Context, *QueryGetRequestRequest) (*QueryGetRequestResponse, error) RequestAll(context.Context, *QueryAllRequestRequest) (*QueryAllRequestResponse, error) // Queries a list of Validator items. Validator(context.Context, *QueryGetValidatorRequest) (*QueryGetValidatorResponse, error) ValidatorAll(context.Context, *QueryAllValidatorRequest) (*QueryAllValidatorResponse, error) }
QueryServer is the server API for Query service.
type Request ¶
type Request struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` }
func (*Request) Descriptor ¶
func (*Request) MarshalToSizedBuffer ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateRequest ¶
func (*UnimplementedMsgServer) CreateRequest(ctx context.Context, req *MsgCreateRequest) (*MsgCreateRequestResponse, error)
func (*UnimplementedMsgServer) ValidatorRegistration ¶
func (*UnimplementedMsgServer) ValidatorRegistration(ctx context.Context, req *MsgValidatorRegistration) (*MsgValidatorRegistrationResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Request ¶
func (*UnimplementedQueryServer) Request(ctx context.Context, req *QueryGetRequestRequest) (*QueryGetRequestResponse, error)
func (*UnimplementedQueryServer) RequestAll ¶
func (*UnimplementedQueryServer) RequestAll(ctx context.Context, req *QueryAllRequestRequest) (*QueryAllRequestResponse, error)
func (*UnimplementedQueryServer) Validator ¶
func (*UnimplementedQueryServer) Validator(ctx context.Context, req *QueryGetValidatorRequest) (*QueryGetValidatorResponse, error)
func (*UnimplementedQueryServer) ValidatorAll ¶
func (*UnimplementedQueryServer) ValidatorAll(ctx context.Context, req *QueryAllValidatorRequest) (*QueryAllValidatorResponse, error)
type Validator ¶
type Validator struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` }
func (*Validator) Descriptor ¶
func (*Validator) GetAddress ¶
func (*Validator) MarshalToSizedBuffer ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()