types

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 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 = "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"
)
View Source
const (
	NewEpochEventName            = "new_epoch"
	EarliestEpochEventName       = "earliest_epoch"
	FixatedParamChangeEventName  = "fixated_params_change"
	FixatedParamCleanedEventName = "fixated_params_clean"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	EpochDetailsKey = "EpochDetails-value-"
)
View Source
const (
	// FixatedParamsKeyPrefix is the prefix to retrieve all FixatedParams
	FixatedParamsKeyPrefix = "FixatedParams/value/"
)
View Source
const (
	// StakeStorageKeyPrefix is the prefix to retrieve all StakeStorage
	StakeStorageKeyPrefix = "StakeStorage/value/"
)
View Source
const TokenDenom = "ulava"

Variables

View Source
var (
	ErrInvalidLengthEndpoint        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEndpoint          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEndpoint = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthEpochDetails        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEpochDetails          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEpochDetails = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthFixatedParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFixatedParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFixatedParams = fmt.Errorf("proto: unexpected end of group")
)
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 (
	KeyUnstakeHoldBlocks            = []byte("UnstakeHoldBlocks")
	DefaultUnstakeHoldBlocks uint64 = 210
)
View Source
var (
	KeyEpochBlocks            = []byte("EpochBlocks")
	DefaultEpochBlocks uint64 = 20
)
View Source
var (
	KeyEpochsToSave            = []byte("EpochsToSave")
	DefaultEpochsToSave uint64 = 10
)
View Source
var (
	KeyLatestParamChange            = []byte("LatestParamChange")
	DefaultLatestParamChange uint64 = 0
)
View Source
var (
	KeyUnstakeHoldBlocksStatic            = []byte("UnstakeHoldBlocksStatic")
	DefaultUnstakeHoldBlocksStatic uint64 = 400
)
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 (
	ErrInvalidLengthStakeEntry        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStakeEntry          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStakeEntry = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStakeStorage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStakeStorage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStakeStorage = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/epochstorage module sentinel errors

Functions

func FixatedParamsKey

func FixatedParamsKey(
	index string,
) []byte

FixatedParamsKey returns the store key to retrieve a FixatedParams from the index fields

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)

func StakeStorageKey

func StakeStorageKey(
	index string,
) []byte

StakeStorageKey returns the store key to retrieve a StakeStorage from the index fields

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
}

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

func (*Endpoint) GetGeolocation

func (m *Endpoint) GetGeolocation() uint64

func (*Endpoint) GetIPPORT

func (m *Endpoint) GetIPPORT() string

func (*Endpoint) GetUseType added in v0.4.3

func (m *Endpoint) GetUseType() string

func (*Endpoint) Marshal

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

func (*Endpoint) MarshalTo

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

func (*Endpoint) MarshalToSizedBuffer

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

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) Reset

func (m *Endpoint) Reset()

func (*Endpoint) Size

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

func (*Endpoint) String

func (m *Endpoint) String() string

func (*Endpoint) Unmarshal

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

func (*Endpoint) XXX_DiscardUnknown

func (m *Endpoint) XXX_DiscardUnknown()

func (*Endpoint) XXX_Marshal

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

func (*Endpoint) XXX_Merge

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

func (*Endpoint) XXX_Size

func (m *Endpoint) XXX_Size() int

func (*Endpoint) XXX_Unmarshal

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

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

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

func (m *FixatedParams) MarshalTo(dAtA []byte) (int, 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) 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 {
}

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 MsgServer

type MsgServer interface {
}

MsgServer is the server API for Msg service.

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 DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

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

func (*Params) GetEpochBlocks

func (m *Params) GetEpochBlocks() uint64

func (*Params) GetEpochsToSave

func (m *Params) GetEpochsToSave() uint64

func (*Params) GetLatestParamChange

func (m *Params) GetLatestParamChange() uint64

func (*Params) GetUnstakeHoldBlocks

func (m *Params) GetUnstakeHoldBlocks() uint64

func (*Params) GetUnstakeHoldBlocksStatic

func (m *Params) GetUnstakeHoldBlocksStatic() uint64

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 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 (*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 (*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 (*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 (*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 (*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 (*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 (*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 SpecKeeper interface {
	// Methods imported from spec should be defined here
	GetAllChainIDs(ctx sdk.Context) (chainIDs []string)
}

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

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

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

func (*UnimplementedQueryServer) FixatedParamsAll

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) StakeStorage

func (*UnimplementedQueryServer) StakeStorageAll

Jump to

Keyboard shortcuts

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