Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func FixatedParamsKey(index string) []byte
- 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)
- func StakeStorageKey(index string) []byte
- type AccountKeeper
- type BankKeeper
- type Endpoint
- func (*Endpoint) Descriptor() ([]byte, []int)
- func (m *Endpoint) GetGeolocation() uint64
- func (m *Endpoint) GetIPPORT() string
- func (m *Endpoint) GetUseType() string
- func (m *Endpoint) Marshal() (dAtA []byte, err error)
- func (m *Endpoint) MarshalTo(dAtA []byte) (int, error)
- func (m *Endpoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Endpoint) ProtoMessage()
- func (m *Endpoint) Reset()
- func (m *Endpoint) Size() (n int)
- func (m *Endpoint) String() string
- func (m *Endpoint) Unmarshal(dAtA []byte) error
- func (m *Endpoint) XXX_DiscardUnknown()
- func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Endpoint) XXX_Merge(src proto.Message)
- func (m *Endpoint) XXX_Size() int
- func (m *Endpoint) XXX_Unmarshal(b []byte) error
- type EpochDetails
- func (*EpochDetails) Descriptor() ([]byte, []int)
- func (m *EpochDetails) GetDeletedEpochs() []uint64
- func (m *EpochDetails) GetEarliestStart() uint64
- func (m *EpochDetails) GetStartBlock() uint64
- func (m *EpochDetails) Marshal() (dAtA []byte, err error)
- func (m *EpochDetails) MarshalTo(dAtA []byte) (int, error)
- func (m *EpochDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EpochDetails) ProtoMessage()
- func (m *EpochDetails) Reset()
- func (m *EpochDetails) Size() (n int)
- func (m *EpochDetails) String() string
- func (m *EpochDetails) Unmarshal(dAtA []byte) error
- func (m *EpochDetails) XXX_DiscardUnknown()
- func (m *EpochDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EpochDetails) XXX_Merge(src proto.Message)
- func (m *EpochDetails) XXX_Size() int
- func (m *EpochDetails) XXX_Unmarshal(b []byte) error
- type FixatedParams
- func (*FixatedParams) Descriptor() ([]byte, []int)
- func (m *FixatedParams) GetFixationBlock() uint64
- func (m *FixatedParams) GetIndex() string
- func (m *FixatedParams) GetParameter() []byte
- func (m *FixatedParams) Marshal() (dAtA []byte, err error)
- func (m *FixatedParams) MarshalTo(dAtA []byte) (int, error)
- func (m *FixatedParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FixatedParams) ProtoMessage()
- func (m *FixatedParams) Reset()
- func (m *FixatedParams) Size() (n int)
- func (m *FixatedParams) String() string
- func (m *FixatedParams) Unmarshal(dAtA []byte) error
- func (m *FixatedParams) XXX_DiscardUnknown()
- func (m *FixatedParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FixatedParams) XXX_Merge(src proto.Message)
- func (m *FixatedParams) XXX_Size() int
- func (m *FixatedParams) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetEpochDetails() *EpochDetails
- func (m *GenesisState) GetFixatedParamsList() []FixatedParams
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetStakeStorageList() []StakeStorage
- 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 MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetEpochBlocks() uint64
- func (m *Params) GetEpochsToSave() uint64
- func (m *Params) GetLatestParamChange() uint64
- func (m *Params) GetUnstakeHoldBlocks() uint64
- func (m *Params) GetUnstakeHoldBlocksStatic() uint64
- 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 QueryAllFixatedParamsRequest
- func (*QueryAllFixatedParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllFixatedParamsRequest) GetPagination() *query.PageRequest
- func (m *QueryAllFixatedParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllFixatedParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllFixatedParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllFixatedParamsRequest) ProtoMessage()
- func (m *QueryAllFixatedParamsRequest) Reset()
- func (m *QueryAllFixatedParamsRequest) Size() (n int)
- func (m *QueryAllFixatedParamsRequest) String() string
- func (m *QueryAllFixatedParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllFixatedParamsRequest) XXX_DiscardUnknown()
- func (m *QueryAllFixatedParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllFixatedParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllFixatedParamsRequest) XXX_Size() int
- func (m *QueryAllFixatedParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllFixatedParamsResponse
- func (*QueryAllFixatedParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllFixatedParamsResponse) GetFixatedParams() []FixatedParams
- func (m *QueryAllFixatedParamsResponse) GetPagination() *query.PageResponse
- func (m *QueryAllFixatedParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllFixatedParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllFixatedParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllFixatedParamsResponse) ProtoMessage()
- func (m *QueryAllFixatedParamsResponse) Reset()
- func (m *QueryAllFixatedParamsResponse) Size() (n int)
- func (m *QueryAllFixatedParamsResponse) String() string
- func (m *QueryAllFixatedParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllFixatedParamsResponse) XXX_DiscardUnknown()
- func (m *QueryAllFixatedParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllFixatedParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllFixatedParamsResponse) XXX_Size() int
- func (m *QueryAllFixatedParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryAllStakeStorageRequest
- func (*QueryAllStakeStorageRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllStakeStorageRequest) GetPagination() *query.PageRequest
- func (m *QueryAllStakeStorageRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllStakeStorageRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllStakeStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllStakeStorageRequest) ProtoMessage()
- func (m *QueryAllStakeStorageRequest) Reset()
- func (m *QueryAllStakeStorageRequest) Size() (n int)
- func (m *QueryAllStakeStorageRequest) String() string
- func (m *QueryAllStakeStorageRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllStakeStorageRequest) XXX_DiscardUnknown()
- func (m *QueryAllStakeStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllStakeStorageRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllStakeStorageRequest) XXX_Size() int
- func (m *QueryAllStakeStorageRequest) XXX_Unmarshal(b []byte) error
- type QueryAllStakeStorageResponse
- func (*QueryAllStakeStorageResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllStakeStorageResponse) GetPagination() *query.PageResponse
- func (m *QueryAllStakeStorageResponse) GetStakeStorage() []StakeStorage
- func (m *QueryAllStakeStorageResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllStakeStorageResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllStakeStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllStakeStorageResponse) ProtoMessage()
- func (m *QueryAllStakeStorageResponse) Reset()
- func (m *QueryAllStakeStorageResponse) Size() (n int)
- func (m *QueryAllStakeStorageResponse) String() string
- func (m *QueryAllStakeStorageResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllStakeStorageResponse) XXX_DiscardUnknown()
- func (m *QueryAllStakeStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllStakeStorageResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllStakeStorageResponse) XXX_Size() int
- func (m *QueryAllStakeStorageResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetEpochDetailsRequest
- func (*QueryGetEpochDetailsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetEpochDetailsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetEpochDetailsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetEpochDetailsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetEpochDetailsRequest) ProtoMessage()
- func (m *QueryGetEpochDetailsRequest) Reset()
- func (m *QueryGetEpochDetailsRequest) Size() (n int)
- func (m *QueryGetEpochDetailsRequest) String() string
- func (m *QueryGetEpochDetailsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetEpochDetailsRequest) XXX_DiscardUnknown()
- func (m *QueryGetEpochDetailsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetEpochDetailsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetEpochDetailsRequest) XXX_Size() int
- func (m *QueryGetEpochDetailsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetEpochDetailsResponse
- func (*QueryGetEpochDetailsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetEpochDetailsResponse) GetEpochDetails() EpochDetails
- func (m *QueryGetEpochDetailsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetEpochDetailsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetEpochDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetEpochDetailsResponse) ProtoMessage()
- func (m *QueryGetEpochDetailsResponse) Reset()
- func (m *QueryGetEpochDetailsResponse) Size() (n int)
- func (m *QueryGetEpochDetailsResponse) String() string
- func (m *QueryGetEpochDetailsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetEpochDetailsResponse) XXX_DiscardUnknown()
- func (m *QueryGetEpochDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetEpochDetailsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetEpochDetailsResponse) XXX_Size() int
- func (m *QueryGetEpochDetailsResponse) XXX_Unmarshal(b []byte) error
- type QueryGetFixatedParamsRequest
- func (*QueryGetFixatedParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetFixatedParamsRequest) GetIndex() string
- func (m *QueryGetFixatedParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetFixatedParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetFixatedParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetFixatedParamsRequest) ProtoMessage()
- func (m *QueryGetFixatedParamsRequest) Reset()
- func (m *QueryGetFixatedParamsRequest) Size() (n int)
- func (m *QueryGetFixatedParamsRequest) String() string
- func (m *QueryGetFixatedParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetFixatedParamsRequest) XXX_DiscardUnknown()
- func (m *QueryGetFixatedParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetFixatedParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetFixatedParamsRequest) XXX_Size() int
- func (m *QueryGetFixatedParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetFixatedParamsResponse
- func (*QueryGetFixatedParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetFixatedParamsResponse) GetFixatedParams() FixatedParams
- func (m *QueryGetFixatedParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetFixatedParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetFixatedParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetFixatedParamsResponse) ProtoMessage()
- func (m *QueryGetFixatedParamsResponse) Reset()
- func (m *QueryGetFixatedParamsResponse) Size() (n int)
- func (m *QueryGetFixatedParamsResponse) String() string
- func (m *QueryGetFixatedParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetFixatedParamsResponse) XXX_DiscardUnknown()
- func (m *QueryGetFixatedParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetFixatedParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetFixatedParamsResponse) XXX_Size() int
- func (m *QueryGetFixatedParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryGetStakeStorageRequest
- func (*QueryGetStakeStorageRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetStakeStorageRequest) GetIndex() string
- func (m *QueryGetStakeStorageRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetStakeStorageRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetStakeStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetStakeStorageRequest) ProtoMessage()
- func (m *QueryGetStakeStorageRequest) Reset()
- func (m *QueryGetStakeStorageRequest) Size() (n int)
- func (m *QueryGetStakeStorageRequest) String() string
- func (m *QueryGetStakeStorageRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetStakeStorageRequest) XXX_DiscardUnknown()
- func (m *QueryGetStakeStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetStakeStorageRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetStakeStorageRequest) XXX_Size() int
- func (m *QueryGetStakeStorageRequest) XXX_Unmarshal(b []byte) error
- type QueryGetStakeStorageResponse
- func (*QueryGetStakeStorageResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetStakeStorageResponse) GetStakeStorage() StakeStorage
- func (m *QueryGetStakeStorageResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetStakeStorageResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetStakeStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetStakeStorageResponse) ProtoMessage()
- func (m *QueryGetStakeStorageResponse) Reset()
- func (m *QueryGetStakeStorageResponse) Size() (n int)
- func (m *QueryGetStakeStorageResponse) String() string
- func (m *QueryGetStakeStorageResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetStakeStorageResponse) XXX_DiscardUnknown()
- func (m *QueryGetStakeStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetStakeStorageResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetStakeStorageResponse) XXX_Size() int
- func (m *QueryGetStakeStorageResponse) 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 SpecKeeper
- type StakeEntry
- func (*StakeEntry) Descriptor() ([]byte, []int)
- func (m *StakeEntry) GetAddress() string
- func (m *StakeEntry) GetChain() string
- func (m *StakeEntry) GetDeadline() uint64
- func (m *StakeEntry) GetEndpoints() []Endpoint
- func (m *StakeEntry) GetGeolocation() uint64
- func (m *StakeEntry) GetMoniker() string
- func (m *StakeEntry) GetStake() types.Coin
- func (m *StakeEntry) GetVrfpk() string
- func (m *StakeEntry) Marshal() (dAtA []byte, err error)
- func (m *StakeEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *StakeEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StakeEntry) ProtoMessage()
- func (m *StakeEntry) Reset()
- func (m *StakeEntry) Size() (n int)
- func (m *StakeEntry) String() string
- func (m *StakeEntry) Unmarshal(dAtA []byte) error
- func (m *StakeEntry) XXX_DiscardUnknown()
- func (m *StakeEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StakeEntry) XXX_Merge(src proto.Message)
- func (m *StakeEntry) XXX_Size() int
- func (m *StakeEntry) XXX_Unmarshal(b []byte) error
- type StakeStorage
- func (stksto StakeStorage) Copy() (returnedStorage StakeStorage)
- func (*StakeStorage) Descriptor() ([]byte, []int)
- func (m *StakeStorage) GetEpochBlockHash() []byte
- func (m *StakeStorage) GetIndex() string
- func (m *StakeStorage) GetStakeEntries() []StakeEntry
- func (m *StakeStorage) Marshal() (dAtA []byte, err error)
- func (m *StakeStorage) MarshalTo(dAtA []byte) (int, error)
- func (m *StakeStorage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StakeStorage) ProtoMessage()
- func (m *StakeStorage) Reset()
- func (m *StakeStorage) Size() (n int)
- func (m *StakeStorage) String() string
- func (m *StakeStorage) Unmarshal(dAtA []byte) error
- func (m *StakeStorage) XXX_DiscardUnknown()
- func (m *StakeStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StakeStorage) XXX_Merge(src proto.Message)
- func (m *StakeStorage) XXX_Size() int
- func (m *StakeStorage) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) EpochDetails(ctx context.Context, req *QueryGetEpochDetailsRequest) (*QueryGetEpochDetailsResponse, error)
- func (*UnimplementedQueryServer) FixatedParams(ctx context.Context, req *QueryGetFixatedParamsRequest) (*QueryGetFixatedParamsResponse, error)
- func (*UnimplementedQueryServer) FixatedParamsAll(ctx context.Context, req *QueryAllFixatedParamsRequest) (*QueryAllFixatedParamsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) StakeStorage(ctx context.Context, req *QueryGetStakeStorageRequest) (*QueryGetStakeStorageResponse, error)
- func (*UnimplementedQueryServer) StakeStorageAll(ctx context.Context, req *QueryAllStakeStorageRequest) (*QueryAllStakeStorageResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "epochstorage" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_epochstorage" ProviderKey = "provider" ClientKey = "client" )
const ( NewEpochEventName = "new_epoch" EarliestEpochEventName = "earliest_epoch" FixatedParamChangeEventName = "fixated_params_change" FixatedParamCleanedEventName = "fixated_params_clean" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const (
EpochDetailsKey = "EpochDetails-value-"
)
const (
// FixatedParamsKeyPrefix is the prefix to retrieve all FixatedParams
FixatedParamsKeyPrefix = "FixatedParams/value/"
)
const (
// StakeStorageKeyPrefix is the prefix to retrieve all StakeStorage
StakeStorageKeyPrefix = "StakeStorage/value/"
)
const TokenDenom = "ulava"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthEndpoint = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEndpoint = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEndpoint = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthEpochDetails = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEpochDetails = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEpochDetails = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthFixatedParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFixatedParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFixatedParams = fmt.Errorf("proto: unexpected end of group") )
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 ( KeyUnstakeHoldBlocks = []byte("UnstakeHoldBlocks") DefaultUnstakeHoldBlocks uint64 = 210 )
var ( KeyEpochBlocks = []byte("EpochBlocks") DefaultEpochBlocks uint64 = 20 )
var ( KeyEpochsToSave = []byte("EpochsToSave") DefaultEpochsToSave uint64 = 10 )
var ( KeyLatestParamChange = []byte("LatestParamChange") DefaultLatestParamChange uint64 = 0 )
var ( KeyUnstakeHoldBlocksStatic = []byte("UnstakeHoldBlocksStatic") DefaultUnstakeHoldBlocksStatic uint64 = 400 )
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 ( ErrInvalidLengthStakeEntry = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStakeEntry = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupStakeEntry = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthStakeStorage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStakeStorage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupStakeStorage = fmt.Errorf("proto: unexpected end of group") )
var (
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)
x/epochstorage module sentinel errors
Functions ¶
func FixatedParamsKey ¶
FixatedParamsKey returns the store key to retrieve a FixatedParams from the index fields
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)
func StakeStorageKey ¶
StakeStorageKey returns the store key to retrieve a StakeStorage from the index fields
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type Endpoint ¶
type Endpoint struct { IPPORT string `protobuf:"bytes,1,opt,name=iPPORT,proto3" json:"iPPORT,omitempty"` UseType string `protobuf:"bytes,2,opt,name=useType,proto3" json:"useType,omitempty"` Geolocation uint64 `protobuf:"varint,3,opt,name=geolocation,proto3" json:"geolocation,omitempty"` }
func (*Endpoint) Descriptor ¶
func (*Endpoint) GetGeolocation ¶
func (*Endpoint) GetUseType ¶ added in v0.4.3
func (*Endpoint) MarshalToSizedBuffer ¶
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
func (*Endpoint) XXX_DiscardUnknown ¶
func (m *Endpoint) XXX_DiscardUnknown()
func (*Endpoint) XXX_Marshal ¶
func (*Endpoint) XXX_Unmarshal ¶
type EpochDetails ¶
type EpochDetails struct { StartBlock uint64 `protobuf:"varint,1,opt,name=startBlock,proto3" json:"startBlock,omitempty"` EarliestStart uint64 `protobuf:"varint,2,opt,name=earliestStart,proto3" json:"earliestStart,omitempty"` DeletedEpochs []uint64 `protobuf:"varint,3,rep,packed,name=deletedEpochs,proto3" json:"deletedEpochs,omitempty"` }
func (*EpochDetails) Descriptor ¶
func (*EpochDetails) Descriptor() ([]byte, []int)
func (*EpochDetails) GetDeletedEpochs ¶
func (m *EpochDetails) GetDeletedEpochs() []uint64
func (*EpochDetails) GetEarliestStart ¶
func (m *EpochDetails) GetEarliestStart() uint64
func (*EpochDetails) GetStartBlock ¶
func (m *EpochDetails) GetStartBlock() uint64
func (*EpochDetails) Marshal ¶
func (m *EpochDetails) Marshal() (dAtA []byte, err error)
func (*EpochDetails) MarshalToSizedBuffer ¶
func (m *EpochDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EpochDetails) ProtoMessage ¶
func (*EpochDetails) ProtoMessage()
func (*EpochDetails) Reset ¶
func (m *EpochDetails) Reset()
func (*EpochDetails) Size ¶
func (m *EpochDetails) Size() (n int)
func (*EpochDetails) String ¶
func (m *EpochDetails) String() string
func (*EpochDetails) Unmarshal ¶
func (m *EpochDetails) Unmarshal(dAtA []byte) error
func (*EpochDetails) XXX_DiscardUnknown ¶
func (m *EpochDetails) XXX_DiscardUnknown()
func (*EpochDetails) XXX_Marshal ¶
func (m *EpochDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EpochDetails) XXX_Merge ¶
func (m *EpochDetails) XXX_Merge(src proto.Message)
func (*EpochDetails) XXX_Size ¶
func (m *EpochDetails) XXX_Size() int
func (*EpochDetails) XXX_Unmarshal ¶
func (m *EpochDetails) XXX_Unmarshal(b []byte) error
type FixatedParams ¶
type FixatedParams struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Parameter []byte `protobuf:"bytes,2,opt,name=parameter,proto3" json:"parameter,omitempty"` FixationBlock uint64 `protobuf:"varint,3,opt,name=fixationBlock,proto3" json:"fixationBlock,omitempty"` }
func (*FixatedParams) Descriptor ¶
func (*FixatedParams) Descriptor() ([]byte, []int)
func (*FixatedParams) GetFixationBlock ¶
func (m *FixatedParams) GetFixationBlock() uint64
func (*FixatedParams) GetIndex ¶
func (m *FixatedParams) GetIndex() string
func (*FixatedParams) GetParameter ¶
func (m *FixatedParams) GetParameter() []byte
func (*FixatedParams) Marshal ¶
func (m *FixatedParams) Marshal() (dAtA []byte, err error)
func (*FixatedParams) MarshalToSizedBuffer ¶
func (m *FixatedParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FixatedParams) ProtoMessage ¶
func (*FixatedParams) ProtoMessage()
func (*FixatedParams) Reset ¶
func (m *FixatedParams) Reset()
func (*FixatedParams) Size ¶
func (m *FixatedParams) Size() (n int)
func (*FixatedParams) String ¶
func (m *FixatedParams) String() string
func (*FixatedParams) Unmarshal ¶
func (m *FixatedParams) Unmarshal(dAtA []byte) error
func (*FixatedParams) XXX_DiscardUnknown ¶
func (m *FixatedParams) XXX_DiscardUnknown()
func (*FixatedParams) XXX_Marshal ¶
func (m *FixatedParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FixatedParams) XXX_Merge ¶
func (m *FixatedParams) XXX_Merge(src proto.Message)
func (*FixatedParams) XXX_Size ¶
func (m *FixatedParams) XXX_Size() int
func (*FixatedParams) XXX_Unmarshal ¶
func (m *FixatedParams) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` StakeStorageList []StakeStorage `protobuf:"bytes,2,rep,name=stakeStorageList,proto3" json:"stakeStorageList"` EpochDetails *EpochDetails `protobuf:"bytes,3,opt,name=epochDetails,proto3" json:"epochDetails,omitempty"` FixatedParamsList []FixatedParams `protobuf:"bytes,4,rep,name=fixatedParamsList,proto3" json:"fixatedParamsList"` }
GenesisState defines the epochstorage module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetEpochDetails ¶
func (m *GenesisState) GetEpochDetails() *EpochDetails
func (*GenesisState) GetFixatedParamsList ¶
func (m *GenesisState) GetFixatedParamsList() []FixatedParams
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetStakeStorageList ¶
func (m *GenesisState) GetStakeStorageList() []StakeStorage
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 { }
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 Params ¶
type Params struct { UnstakeHoldBlocks uint64 `protobuf:"varint,1,opt,name=unstakeHoldBlocks,proto3" json:"unstakeHoldBlocks,omitempty" yaml:"unstake_hold_blocks"` EpochBlocks uint64 `protobuf:"varint,2,opt,name=epochBlocks,proto3" json:"epochBlocks,omitempty" yaml:"epoch_blocks"` EpochsToSave uint64 `protobuf:"varint,3,opt,name=epochsToSave,proto3" json:"epochsToSave,omitempty" yaml:"epochs_to_save"` LatestParamChange uint64 `protobuf:"varint,4,opt,name=latestParamChange,proto3" json:"latestParamChange,omitempty" yaml:"latest_param_change"` UnstakeHoldBlocksStatic uint64 `` /* 134-byte string literal not displayed */ }
Params defines the parameters for the module.
func NewParams ¶
func NewParams( unstakeHoldBlocks uint64, epochBlocks uint64, epochsToSave uint64, latestParamChange uint64, unstakeHoldBlocksStatic uint64, ) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶
func (*Params) GetEpochBlocks ¶
func (*Params) GetEpochsToSave ¶
func (*Params) GetLatestParamChange ¶
func (*Params) GetUnstakeHoldBlocks ¶
func (*Params) GetUnstakeHoldBlocksStatic ¶
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 QueryAllFixatedParamsRequest ¶
type QueryAllFixatedParamsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllFixatedParamsRequest) Descriptor ¶
func (*QueryAllFixatedParamsRequest) Descriptor() ([]byte, []int)
func (*QueryAllFixatedParamsRequest) GetPagination ¶
func (m *QueryAllFixatedParamsRequest) GetPagination() *query.PageRequest
func (*QueryAllFixatedParamsRequest) Marshal ¶
func (m *QueryAllFixatedParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllFixatedParamsRequest) MarshalTo ¶
func (m *QueryAllFixatedParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllFixatedParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllFixatedParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllFixatedParamsRequest) ProtoMessage ¶
func (*QueryAllFixatedParamsRequest) ProtoMessage()
func (*QueryAllFixatedParamsRequest) Reset ¶
func (m *QueryAllFixatedParamsRequest) Reset()
func (*QueryAllFixatedParamsRequest) Size ¶
func (m *QueryAllFixatedParamsRequest) Size() (n int)
func (*QueryAllFixatedParamsRequest) String ¶
func (m *QueryAllFixatedParamsRequest) String() string
func (*QueryAllFixatedParamsRequest) Unmarshal ¶
func (m *QueryAllFixatedParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllFixatedParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllFixatedParamsRequest) XXX_DiscardUnknown()
func (*QueryAllFixatedParamsRequest) XXX_Marshal ¶
func (m *QueryAllFixatedParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllFixatedParamsRequest) XXX_Merge ¶
func (m *QueryAllFixatedParamsRequest) XXX_Merge(src proto.Message)
func (*QueryAllFixatedParamsRequest) XXX_Size ¶
func (m *QueryAllFixatedParamsRequest) XXX_Size() int
func (*QueryAllFixatedParamsRequest) XXX_Unmarshal ¶
func (m *QueryAllFixatedParamsRequest) XXX_Unmarshal(b []byte) error
type QueryAllFixatedParamsResponse ¶
type QueryAllFixatedParamsResponse struct { FixatedParams []FixatedParams `protobuf:"bytes,1,rep,name=fixatedParams,proto3" json:"fixatedParams"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllFixatedParamsResponse) Descriptor ¶
func (*QueryAllFixatedParamsResponse) Descriptor() ([]byte, []int)
func (*QueryAllFixatedParamsResponse) GetFixatedParams ¶
func (m *QueryAllFixatedParamsResponse) GetFixatedParams() []FixatedParams
func (*QueryAllFixatedParamsResponse) GetPagination ¶
func (m *QueryAllFixatedParamsResponse) GetPagination() *query.PageResponse
func (*QueryAllFixatedParamsResponse) Marshal ¶
func (m *QueryAllFixatedParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllFixatedParamsResponse) MarshalTo ¶
func (m *QueryAllFixatedParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllFixatedParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllFixatedParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllFixatedParamsResponse) ProtoMessage ¶
func (*QueryAllFixatedParamsResponse) ProtoMessage()
func (*QueryAllFixatedParamsResponse) Reset ¶
func (m *QueryAllFixatedParamsResponse) Reset()
func (*QueryAllFixatedParamsResponse) Size ¶
func (m *QueryAllFixatedParamsResponse) Size() (n int)
func (*QueryAllFixatedParamsResponse) String ¶
func (m *QueryAllFixatedParamsResponse) String() string
func (*QueryAllFixatedParamsResponse) Unmarshal ¶
func (m *QueryAllFixatedParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllFixatedParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllFixatedParamsResponse) XXX_DiscardUnknown()
func (*QueryAllFixatedParamsResponse) XXX_Marshal ¶
func (m *QueryAllFixatedParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllFixatedParamsResponse) XXX_Merge ¶
func (m *QueryAllFixatedParamsResponse) XXX_Merge(src proto.Message)
func (*QueryAllFixatedParamsResponse) XXX_Size ¶
func (m *QueryAllFixatedParamsResponse) XXX_Size() int
func (*QueryAllFixatedParamsResponse) XXX_Unmarshal ¶
func (m *QueryAllFixatedParamsResponse) XXX_Unmarshal(b []byte) error
type QueryAllStakeStorageRequest ¶
type QueryAllStakeStorageRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllStakeStorageRequest) Descriptor ¶
func (*QueryAllStakeStorageRequest) Descriptor() ([]byte, []int)
func (*QueryAllStakeStorageRequest) GetPagination ¶
func (m *QueryAllStakeStorageRequest) GetPagination() *query.PageRequest
func (*QueryAllStakeStorageRequest) Marshal ¶
func (m *QueryAllStakeStorageRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllStakeStorageRequest) MarshalTo ¶
func (m *QueryAllStakeStorageRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllStakeStorageRequest) MarshalToSizedBuffer ¶
func (m *QueryAllStakeStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllStakeStorageRequest) ProtoMessage ¶
func (*QueryAllStakeStorageRequest) ProtoMessage()
func (*QueryAllStakeStorageRequest) Reset ¶
func (m *QueryAllStakeStorageRequest) Reset()
func (*QueryAllStakeStorageRequest) Size ¶
func (m *QueryAllStakeStorageRequest) Size() (n int)
func (*QueryAllStakeStorageRequest) String ¶
func (m *QueryAllStakeStorageRequest) String() string
func (*QueryAllStakeStorageRequest) Unmarshal ¶
func (m *QueryAllStakeStorageRequest) Unmarshal(dAtA []byte) error
func (*QueryAllStakeStorageRequest) XXX_DiscardUnknown ¶
func (m *QueryAllStakeStorageRequest) XXX_DiscardUnknown()
func (*QueryAllStakeStorageRequest) XXX_Marshal ¶
func (m *QueryAllStakeStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllStakeStorageRequest) XXX_Merge ¶
func (m *QueryAllStakeStorageRequest) XXX_Merge(src proto.Message)
func (*QueryAllStakeStorageRequest) XXX_Size ¶
func (m *QueryAllStakeStorageRequest) XXX_Size() int
func (*QueryAllStakeStorageRequest) XXX_Unmarshal ¶
func (m *QueryAllStakeStorageRequest) XXX_Unmarshal(b []byte) error
type QueryAllStakeStorageResponse ¶
type QueryAllStakeStorageResponse struct { StakeStorage []StakeStorage `protobuf:"bytes,1,rep,name=stakeStorage,proto3" json:"stakeStorage"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllStakeStorageResponse) Descriptor ¶
func (*QueryAllStakeStorageResponse) Descriptor() ([]byte, []int)
func (*QueryAllStakeStorageResponse) GetPagination ¶
func (m *QueryAllStakeStorageResponse) GetPagination() *query.PageResponse
func (*QueryAllStakeStorageResponse) GetStakeStorage ¶
func (m *QueryAllStakeStorageResponse) GetStakeStorage() []StakeStorage
func (*QueryAllStakeStorageResponse) Marshal ¶
func (m *QueryAllStakeStorageResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllStakeStorageResponse) MarshalTo ¶
func (m *QueryAllStakeStorageResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllStakeStorageResponse) MarshalToSizedBuffer ¶
func (m *QueryAllStakeStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllStakeStorageResponse) ProtoMessage ¶
func (*QueryAllStakeStorageResponse) ProtoMessage()
func (*QueryAllStakeStorageResponse) Reset ¶
func (m *QueryAllStakeStorageResponse) Reset()
func (*QueryAllStakeStorageResponse) Size ¶
func (m *QueryAllStakeStorageResponse) Size() (n int)
func (*QueryAllStakeStorageResponse) String ¶
func (m *QueryAllStakeStorageResponse) String() string
func (*QueryAllStakeStorageResponse) Unmarshal ¶
func (m *QueryAllStakeStorageResponse) Unmarshal(dAtA []byte) error
func (*QueryAllStakeStorageResponse) XXX_DiscardUnknown ¶
func (m *QueryAllStakeStorageResponse) XXX_DiscardUnknown()
func (*QueryAllStakeStorageResponse) XXX_Marshal ¶
func (m *QueryAllStakeStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllStakeStorageResponse) XXX_Merge ¶
func (m *QueryAllStakeStorageResponse) XXX_Merge(src proto.Message)
func (*QueryAllStakeStorageResponse) XXX_Size ¶
func (m *QueryAllStakeStorageResponse) XXX_Size() int
func (*QueryAllStakeStorageResponse) XXX_Unmarshal ¶
func (m *QueryAllStakeStorageResponse) 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 StakeStorage by index. StakeStorage(ctx context.Context, in *QueryGetStakeStorageRequest, opts ...grpc.CallOption) (*QueryGetStakeStorageResponse, error) // Queries a list of StakeStorage items. StakeStorageAll(ctx context.Context, in *QueryAllStakeStorageRequest, opts ...grpc.CallOption) (*QueryAllStakeStorageResponse, error) // Queries a EpochDetails by index. EpochDetails(ctx context.Context, in *QueryGetEpochDetailsRequest, opts ...grpc.CallOption) (*QueryGetEpochDetailsResponse, error) // Queries a FixatedParams by index. FixatedParams(ctx context.Context, in *QueryGetFixatedParamsRequest, opts ...grpc.CallOption) (*QueryGetFixatedParamsResponse, error) // Queries a list of FixatedParams items. FixatedParamsAll(ctx context.Context, in *QueryAllFixatedParamsRequest, opts ...grpc.CallOption) (*QueryAllFixatedParamsResponse, 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 QueryGetEpochDetailsRequest ¶
type QueryGetEpochDetailsRequest struct { }
func (*QueryGetEpochDetailsRequest) Descriptor ¶
func (*QueryGetEpochDetailsRequest) Descriptor() ([]byte, []int)
func (*QueryGetEpochDetailsRequest) Marshal ¶
func (m *QueryGetEpochDetailsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetEpochDetailsRequest) MarshalTo ¶
func (m *QueryGetEpochDetailsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetEpochDetailsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetEpochDetailsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetEpochDetailsRequest) ProtoMessage ¶
func (*QueryGetEpochDetailsRequest) ProtoMessage()
func (*QueryGetEpochDetailsRequest) Reset ¶
func (m *QueryGetEpochDetailsRequest) Reset()
func (*QueryGetEpochDetailsRequest) Size ¶
func (m *QueryGetEpochDetailsRequest) Size() (n int)
func (*QueryGetEpochDetailsRequest) String ¶
func (m *QueryGetEpochDetailsRequest) String() string
func (*QueryGetEpochDetailsRequest) Unmarshal ¶
func (m *QueryGetEpochDetailsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetEpochDetailsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetEpochDetailsRequest) XXX_DiscardUnknown()
func (*QueryGetEpochDetailsRequest) XXX_Marshal ¶
func (m *QueryGetEpochDetailsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetEpochDetailsRequest) XXX_Merge ¶
func (m *QueryGetEpochDetailsRequest) XXX_Merge(src proto.Message)
func (*QueryGetEpochDetailsRequest) XXX_Size ¶
func (m *QueryGetEpochDetailsRequest) XXX_Size() int
func (*QueryGetEpochDetailsRequest) XXX_Unmarshal ¶
func (m *QueryGetEpochDetailsRequest) XXX_Unmarshal(b []byte) error
type QueryGetEpochDetailsResponse ¶
type QueryGetEpochDetailsResponse struct {
EpochDetails EpochDetails `protobuf:"bytes,1,opt,name=EpochDetails,proto3" json:"EpochDetails"`
}
func (*QueryGetEpochDetailsResponse) Descriptor ¶
func (*QueryGetEpochDetailsResponse) Descriptor() ([]byte, []int)
func (*QueryGetEpochDetailsResponse) GetEpochDetails ¶
func (m *QueryGetEpochDetailsResponse) GetEpochDetails() EpochDetails
func (*QueryGetEpochDetailsResponse) Marshal ¶
func (m *QueryGetEpochDetailsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetEpochDetailsResponse) MarshalTo ¶
func (m *QueryGetEpochDetailsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetEpochDetailsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetEpochDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetEpochDetailsResponse) ProtoMessage ¶
func (*QueryGetEpochDetailsResponse) ProtoMessage()
func (*QueryGetEpochDetailsResponse) Reset ¶
func (m *QueryGetEpochDetailsResponse) Reset()
func (*QueryGetEpochDetailsResponse) Size ¶
func (m *QueryGetEpochDetailsResponse) Size() (n int)
func (*QueryGetEpochDetailsResponse) String ¶
func (m *QueryGetEpochDetailsResponse) String() string
func (*QueryGetEpochDetailsResponse) Unmarshal ¶
func (m *QueryGetEpochDetailsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetEpochDetailsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetEpochDetailsResponse) XXX_DiscardUnknown()
func (*QueryGetEpochDetailsResponse) XXX_Marshal ¶
func (m *QueryGetEpochDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetEpochDetailsResponse) XXX_Merge ¶
func (m *QueryGetEpochDetailsResponse) XXX_Merge(src proto.Message)
func (*QueryGetEpochDetailsResponse) XXX_Size ¶
func (m *QueryGetEpochDetailsResponse) XXX_Size() int
func (*QueryGetEpochDetailsResponse) XXX_Unmarshal ¶
func (m *QueryGetEpochDetailsResponse) XXX_Unmarshal(b []byte) error
type QueryGetFixatedParamsRequest ¶
type QueryGetFixatedParamsRequest struct {
Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
}
func (*QueryGetFixatedParamsRequest) Descriptor ¶
func (*QueryGetFixatedParamsRequest) Descriptor() ([]byte, []int)
func (*QueryGetFixatedParamsRequest) GetIndex ¶
func (m *QueryGetFixatedParamsRequest) GetIndex() string
func (*QueryGetFixatedParamsRequest) Marshal ¶
func (m *QueryGetFixatedParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetFixatedParamsRequest) MarshalTo ¶
func (m *QueryGetFixatedParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetFixatedParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetFixatedParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetFixatedParamsRequest) ProtoMessage ¶
func (*QueryGetFixatedParamsRequest) ProtoMessage()
func (*QueryGetFixatedParamsRequest) Reset ¶
func (m *QueryGetFixatedParamsRequest) Reset()
func (*QueryGetFixatedParamsRequest) Size ¶
func (m *QueryGetFixatedParamsRequest) Size() (n int)
func (*QueryGetFixatedParamsRequest) String ¶
func (m *QueryGetFixatedParamsRequest) String() string
func (*QueryGetFixatedParamsRequest) Unmarshal ¶
func (m *QueryGetFixatedParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetFixatedParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetFixatedParamsRequest) XXX_DiscardUnknown()
func (*QueryGetFixatedParamsRequest) XXX_Marshal ¶
func (m *QueryGetFixatedParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetFixatedParamsRequest) XXX_Merge ¶
func (m *QueryGetFixatedParamsRequest) XXX_Merge(src proto.Message)
func (*QueryGetFixatedParamsRequest) XXX_Size ¶
func (m *QueryGetFixatedParamsRequest) XXX_Size() int
func (*QueryGetFixatedParamsRequest) XXX_Unmarshal ¶
func (m *QueryGetFixatedParamsRequest) XXX_Unmarshal(b []byte) error
type QueryGetFixatedParamsResponse ¶
type QueryGetFixatedParamsResponse struct {
FixatedParams FixatedParams `protobuf:"bytes,1,opt,name=fixatedParams,proto3" json:"fixatedParams"`
}
func (*QueryGetFixatedParamsResponse) Descriptor ¶
func (*QueryGetFixatedParamsResponse) Descriptor() ([]byte, []int)
func (*QueryGetFixatedParamsResponse) GetFixatedParams ¶
func (m *QueryGetFixatedParamsResponse) GetFixatedParams() FixatedParams
func (*QueryGetFixatedParamsResponse) Marshal ¶
func (m *QueryGetFixatedParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetFixatedParamsResponse) MarshalTo ¶
func (m *QueryGetFixatedParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetFixatedParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetFixatedParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetFixatedParamsResponse) ProtoMessage ¶
func (*QueryGetFixatedParamsResponse) ProtoMessage()
func (*QueryGetFixatedParamsResponse) Reset ¶
func (m *QueryGetFixatedParamsResponse) Reset()
func (*QueryGetFixatedParamsResponse) Size ¶
func (m *QueryGetFixatedParamsResponse) Size() (n int)
func (*QueryGetFixatedParamsResponse) String ¶
func (m *QueryGetFixatedParamsResponse) String() string
func (*QueryGetFixatedParamsResponse) Unmarshal ¶
func (m *QueryGetFixatedParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetFixatedParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetFixatedParamsResponse) XXX_DiscardUnknown()
func (*QueryGetFixatedParamsResponse) XXX_Marshal ¶
func (m *QueryGetFixatedParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetFixatedParamsResponse) XXX_Merge ¶
func (m *QueryGetFixatedParamsResponse) XXX_Merge(src proto.Message)
func (*QueryGetFixatedParamsResponse) XXX_Size ¶
func (m *QueryGetFixatedParamsResponse) XXX_Size() int
func (*QueryGetFixatedParamsResponse) XXX_Unmarshal ¶
func (m *QueryGetFixatedParamsResponse) XXX_Unmarshal(b []byte) error
type QueryGetStakeStorageRequest ¶
type QueryGetStakeStorageRequest struct {
Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
}
func (*QueryGetStakeStorageRequest) Descriptor ¶
func (*QueryGetStakeStorageRequest) Descriptor() ([]byte, []int)
func (*QueryGetStakeStorageRequest) GetIndex ¶
func (m *QueryGetStakeStorageRequest) GetIndex() string
func (*QueryGetStakeStorageRequest) Marshal ¶
func (m *QueryGetStakeStorageRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetStakeStorageRequest) MarshalTo ¶
func (m *QueryGetStakeStorageRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetStakeStorageRequest) MarshalToSizedBuffer ¶
func (m *QueryGetStakeStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetStakeStorageRequest) ProtoMessage ¶
func (*QueryGetStakeStorageRequest) ProtoMessage()
func (*QueryGetStakeStorageRequest) Reset ¶
func (m *QueryGetStakeStorageRequest) Reset()
func (*QueryGetStakeStorageRequest) Size ¶
func (m *QueryGetStakeStorageRequest) Size() (n int)
func (*QueryGetStakeStorageRequest) String ¶
func (m *QueryGetStakeStorageRequest) String() string
func (*QueryGetStakeStorageRequest) Unmarshal ¶
func (m *QueryGetStakeStorageRequest) Unmarshal(dAtA []byte) error
func (*QueryGetStakeStorageRequest) XXX_DiscardUnknown ¶
func (m *QueryGetStakeStorageRequest) XXX_DiscardUnknown()
func (*QueryGetStakeStorageRequest) XXX_Marshal ¶
func (m *QueryGetStakeStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetStakeStorageRequest) XXX_Merge ¶
func (m *QueryGetStakeStorageRequest) XXX_Merge(src proto.Message)
func (*QueryGetStakeStorageRequest) XXX_Size ¶
func (m *QueryGetStakeStorageRequest) XXX_Size() int
func (*QueryGetStakeStorageRequest) XXX_Unmarshal ¶
func (m *QueryGetStakeStorageRequest) XXX_Unmarshal(b []byte) error
type QueryGetStakeStorageResponse ¶
type QueryGetStakeStorageResponse struct {
StakeStorage StakeStorage `protobuf:"bytes,1,opt,name=stakeStorage,proto3" json:"stakeStorage"`
}
func (*QueryGetStakeStorageResponse) Descriptor ¶
func (*QueryGetStakeStorageResponse) Descriptor() ([]byte, []int)
func (*QueryGetStakeStorageResponse) GetStakeStorage ¶
func (m *QueryGetStakeStorageResponse) GetStakeStorage() StakeStorage
func (*QueryGetStakeStorageResponse) Marshal ¶
func (m *QueryGetStakeStorageResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetStakeStorageResponse) MarshalTo ¶
func (m *QueryGetStakeStorageResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetStakeStorageResponse) MarshalToSizedBuffer ¶
func (m *QueryGetStakeStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetStakeStorageResponse) ProtoMessage ¶
func (*QueryGetStakeStorageResponse) ProtoMessage()
func (*QueryGetStakeStorageResponse) Reset ¶
func (m *QueryGetStakeStorageResponse) Reset()
func (*QueryGetStakeStorageResponse) Size ¶
func (m *QueryGetStakeStorageResponse) Size() (n int)
func (*QueryGetStakeStorageResponse) String ¶
func (m *QueryGetStakeStorageResponse) String() string
func (*QueryGetStakeStorageResponse) Unmarshal ¶
func (m *QueryGetStakeStorageResponse) Unmarshal(dAtA []byte) error
func (*QueryGetStakeStorageResponse) XXX_DiscardUnknown ¶
func (m *QueryGetStakeStorageResponse) XXX_DiscardUnknown()
func (*QueryGetStakeStorageResponse) XXX_Marshal ¶
func (m *QueryGetStakeStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetStakeStorageResponse) XXX_Merge ¶
func (m *QueryGetStakeStorageResponse) XXX_Merge(src proto.Message)
func (*QueryGetStakeStorageResponse) XXX_Size ¶
func (m *QueryGetStakeStorageResponse) XXX_Size() int
func (*QueryGetStakeStorageResponse) XXX_Unmarshal ¶
func (m *QueryGetStakeStorageResponse) 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 StakeStorage by index. StakeStorage(context.Context, *QueryGetStakeStorageRequest) (*QueryGetStakeStorageResponse, error) // Queries a list of StakeStorage items. StakeStorageAll(context.Context, *QueryAllStakeStorageRequest) (*QueryAllStakeStorageResponse, error) // Queries a EpochDetails by index. EpochDetails(context.Context, *QueryGetEpochDetailsRequest) (*QueryGetEpochDetailsResponse, error) // Queries a FixatedParams by index. FixatedParams(context.Context, *QueryGetFixatedParamsRequest) (*QueryGetFixatedParamsResponse, error) // Queries a list of FixatedParams items. FixatedParamsAll(context.Context, *QueryAllFixatedParamsRequest) (*QueryAllFixatedParamsResponse, error) }
QueryServer is the server API for Query service.
type SpecKeeper ¶
type StakeEntry ¶
type StakeEntry struct { Stake types.Coin `protobuf:"bytes,1,opt,name=stake,proto3" json:"stake"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Deadline uint64 `protobuf:"varint,3,opt,name=deadline,proto3" json:"deadline,omitempty"` Endpoints []Endpoint `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints"` Geolocation uint64 `protobuf:"varint,5,opt,name=geolocation,proto3" json:"geolocation,omitempty"` Chain string `protobuf:"bytes,6,opt,name=chain,proto3" json:"chain,omitempty"` Vrfpk string `protobuf:"bytes,7,opt,name=vrfpk,proto3" json:"vrfpk,omitempty"` Moniker string `protobuf:"bytes,8,opt,name=moniker,proto3" json:"moniker,omitempty"` }
func (*StakeEntry) Descriptor ¶
func (*StakeEntry) Descriptor() ([]byte, []int)
func (*StakeEntry) GetAddress ¶
func (m *StakeEntry) GetAddress() string
func (*StakeEntry) GetChain ¶
func (m *StakeEntry) GetChain() string
func (*StakeEntry) GetDeadline ¶ added in v0.4.3
func (m *StakeEntry) GetDeadline() uint64
func (*StakeEntry) GetEndpoints ¶
func (m *StakeEntry) GetEndpoints() []Endpoint
func (*StakeEntry) GetGeolocation ¶
func (m *StakeEntry) GetGeolocation() uint64
func (*StakeEntry) GetMoniker ¶
func (m *StakeEntry) GetMoniker() string
func (*StakeEntry) GetStake ¶
func (m *StakeEntry) GetStake() types.Coin
func (*StakeEntry) GetVrfpk ¶ added in v0.4.3
func (m *StakeEntry) GetVrfpk() string
func (*StakeEntry) Marshal ¶
func (m *StakeEntry) Marshal() (dAtA []byte, err error)
func (*StakeEntry) MarshalToSizedBuffer ¶
func (m *StakeEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StakeEntry) ProtoMessage ¶
func (*StakeEntry) ProtoMessage()
func (*StakeEntry) Reset ¶
func (m *StakeEntry) Reset()
func (*StakeEntry) Size ¶
func (m *StakeEntry) Size() (n int)
func (*StakeEntry) String ¶
func (m *StakeEntry) String() string
func (*StakeEntry) Unmarshal ¶
func (m *StakeEntry) Unmarshal(dAtA []byte) error
func (*StakeEntry) XXX_DiscardUnknown ¶
func (m *StakeEntry) XXX_DiscardUnknown()
func (*StakeEntry) XXX_Marshal ¶
func (m *StakeEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StakeEntry) XXX_Merge ¶
func (m *StakeEntry) XXX_Merge(src proto.Message)
func (*StakeEntry) XXX_Size ¶
func (m *StakeEntry) XXX_Size() int
func (*StakeEntry) XXX_Unmarshal ¶
func (m *StakeEntry) XXX_Unmarshal(b []byte) error
type StakeStorage ¶
type StakeStorage struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` StakeEntries []StakeEntry `protobuf:"bytes,2,rep,name=stakeEntries,proto3" json:"stakeEntries"` EpochBlockHash []byte `protobuf:"bytes,3,opt,name=epochBlockHash,proto3" json:"epochBlockHash,omitempty"` }
func (StakeStorage) Copy ¶
func (stksto StakeStorage) Copy() (returnedStorage StakeStorage)
returns a deep copy of the stake storage with the same index
func (*StakeStorage) Descriptor ¶
func (*StakeStorage) Descriptor() ([]byte, []int)
func (*StakeStorage) GetEpochBlockHash ¶
func (m *StakeStorage) GetEpochBlockHash() []byte
func (*StakeStorage) GetIndex ¶
func (m *StakeStorage) GetIndex() string
func (*StakeStorage) GetStakeEntries ¶
func (m *StakeStorage) GetStakeEntries() []StakeEntry
func (*StakeStorage) Marshal ¶
func (m *StakeStorage) Marshal() (dAtA []byte, err error)
func (*StakeStorage) MarshalToSizedBuffer ¶
func (m *StakeStorage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StakeStorage) ProtoMessage ¶
func (*StakeStorage) ProtoMessage()
func (*StakeStorage) Reset ¶
func (m *StakeStorage) Reset()
func (*StakeStorage) Size ¶
func (m *StakeStorage) Size() (n int)
func (*StakeStorage) String ¶
func (m *StakeStorage) String() string
func (*StakeStorage) Unmarshal ¶
func (m *StakeStorage) Unmarshal(dAtA []byte) error
func (*StakeStorage) XXX_DiscardUnknown ¶
func (m *StakeStorage) XXX_DiscardUnknown()
func (*StakeStorage) XXX_Marshal ¶
func (m *StakeStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StakeStorage) XXX_Merge ¶
func (m *StakeStorage) XXX_Merge(src proto.Message)
func (*StakeStorage) XXX_Size ¶
func (m *StakeStorage) XXX_Size() int
func (*StakeStorage) XXX_Unmarshal ¶
func (m *StakeStorage) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) EpochDetails ¶
func (*UnimplementedQueryServer) EpochDetails(ctx context.Context, req *QueryGetEpochDetailsRequest) (*QueryGetEpochDetailsResponse, error)
func (*UnimplementedQueryServer) FixatedParams ¶
func (*UnimplementedQueryServer) FixatedParams(ctx context.Context, req *QueryGetFixatedParamsRequest) (*QueryGetFixatedParamsResponse, error)
func (*UnimplementedQueryServer) FixatedParamsAll ¶
func (*UnimplementedQueryServer) FixatedParamsAll(ctx context.Context, req *QueryAllFixatedParamsRequest) (*QueryAllFixatedParamsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) StakeStorage ¶
func (*UnimplementedQueryServer) StakeStorage(ctx context.Context, req *QueryGetStakeStorageRequest) (*QueryGetStakeStorageResponse, error)
func (*UnimplementedQueryServer) StakeStorageAll ¶
func (*UnimplementedQueryServer) StakeStorageAll(ctx context.Context, req *QueryAllStakeStorageRequest) (*QueryAllStakeStorageResponse, error)