types

package
v0.0.0-...-0a2cf08 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 29 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 = "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"
)
View Source
const (
	RequestKey      = "Request/value/"
	RequestCountKey = "Request/count/"
)
View Source
const (
	ValidatorKey      = "Validator/value/"
	ValidatorCountKey = "Validator/count/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const TypeMsgCreateRequest = "create_request"
View Source
const TypeMsgValidatorRegistration = "validator_registration"

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 (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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 (
	ErrInvalidLengthRequest        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRequest          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRequest = 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 (
	ErrInvalidLengthValidator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValidator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/oracle module sentinel errors

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

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 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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

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) 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 {
	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) MarshalTo

func (m *MsgCreateRequest) MarshalTo(dAtA []byte) (int, 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 (*MsgValidatorRegistrationResponse) Size

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

func (*MsgValidatorRegistrationResponse) 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 (*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 DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

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

func (*Request) GetId

func (m *Request) GetId() uint64

func (*Request) GetPrice

func (m *Request) GetPrice() string

func (*Request) Marshal

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

func (*Request) MarshalTo

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

func (*Request) MarshalToSizedBuffer

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

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size

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

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal

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

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

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

func (*Request) XXX_Merge

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

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateRequest

func (*UnimplementedMsgServer) ValidatorRegistration

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Request

func (*UnimplementedQueryServer) RequestAll

func (*UnimplementedQueryServer) Validator

func (*UnimplementedQueryServer) ValidatorAll

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

func (*Validator) GetAddress

func (m *Validator) GetAddress() string

func (*Validator) GetId

func (m *Validator) GetId() uint64

func (*Validator) Marshal

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

func (*Validator) MarshalTo

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

func (*Validator) MarshalToSizedBuffer

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

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

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

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

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

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

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

func (*Validator) XXX_Merge

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

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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