Versions in this module Expand all Collapse all v18 v18.0.0 Jan 27, 2024 Changes in this version + const AttributeEpochNumber + const AttributeEpochStartTime + const EventTypeEpochEnd + const EventTypeEpochStart + const ModuleName + const QuerierRoute + const RouterKey + const StoreKey + var DAY_EPOCH = "day" + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var HOUR_EPOCH = "hour" + var KeyPrefixEpoch = []byte + var MINT_EPOCH = "mint" + var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) + var STRIDE_EPOCH = "stride_epoch" + var WEEK_EPOCH = "week" + func KeyPrefix(p string) []byte + 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 ValidateEpochIdentifierInterface(i interface{}) error + func ValidateEpochIdentifierString(s string) error + type EpochHooks interface + AfterEpochEnd func(ctx sdk.Context, epochInfo EpochInfo) + BeforeEpochStart func(ctx sdk.Context, epochInfo EpochInfo) + type EpochInfo struct + CurrentEpoch int64 + CurrentEpochStartHeight int64 + CurrentEpochStartTime time.Time + Duration time.Duration + EpochCountingStarted bool + Identifier string + StartTime time.Time + func (*EpochInfo) Descriptor() ([]byte, []int) + func (*EpochInfo) ProtoMessage() + func (m *EpochInfo) GetCurrentEpoch() int64 + func (m *EpochInfo) GetCurrentEpochStartHeight() int64 + func (m *EpochInfo) GetCurrentEpochStartTime() time.Time + func (m *EpochInfo) GetDuration() time.Duration + func (m *EpochInfo) GetEpochCountingStarted() bool + func (m *EpochInfo) GetIdentifier() string + func (m *EpochInfo) GetStartTime() time.Time + func (m *EpochInfo) Marshal() (dAtA []byte, err error) + func (m *EpochInfo) MarshalTo(dAtA []byte) (int, error) + func (m *EpochInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *EpochInfo) Reset() + func (m *EpochInfo) Size() (n int) + func (m *EpochInfo) String() string + func (m *EpochInfo) Unmarshal(dAtA []byte) error + func (m *EpochInfo) XXX_DiscardUnknown() + func (m *EpochInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EpochInfo) XXX_Merge(src proto.Message) + func (m *EpochInfo) XXX_Size() int + func (m *EpochInfo) XXX_Unmarshal(b []byte) error + type GenesisState struct + Epochs []EpochInfo + func DefaultGenesis() *GenesisState + func NewGenesisState(epochs []EpochInfo) *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) Validate() error + func (m *GenesisState) GetEpochs() []EpochInfo + 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 (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) 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 MultiEpochHooks []EpochHooks + func NewMultiEpochHooks(hooks ...EpochHooks) MultiEpochHooks + func (h MultiEpochHooks) AfterEpochEnd(ctx sdk.Context, epochInfo EpochInfo) + func (h MultiEpochHooks) BeforeEpochStart(ctx sdk.Context, epochInfo EpochInfo) + type QueryClient interface + CurrentEpoch func(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) + EpochInfo func(ctx context.Context, in *QueryEpochInfoRequest, opts ...grpc.CallOption) (*QueryEpochInfoResponse, error) + EpochInfos func(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryCurrentEpochRequest struct + Identifier string + func (*QueryCurrentEpochRequest) Descriptor() ([]byte, []int) + func (*QueryCurrentEpochRequest) ProtoMessage() + func (m *QueryCurrentEpochRequest) GetIdentifier() string + func (m *QueryCurrentEpochRequest) Marshal() (dAtA []byte, err error) + func (m *QueryCurrentEpochRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryCurrentEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryCurrentEpochRequest) Reset() + func (m *QueryCurrentEpochRequest) Size() (n int) + func (m *QueryCurrentEpochRequest) String() string + func (m *QueryCurrentEpochRequest) Unmarshal(dAtA []byte) error + func (m *QueryCurrentEpochRequest) XXX_DiscardUnknown() + func (m *QueryCurrentEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryCurrentEpochRequest) XXX_Merge(src proto.Message) + func (m *QueryCurrentEpochRequest) XXX_Size() int + func (m *QueryCurrentEpochRequest) XXX_Unmarshal(b []byte) error + type QueryCurrentEpochResponse struct + CurrentEpoch int64 + func (*QueryCurrentEpochResponse) Descriptor() ([]byte, []int) + func (*QueryCurrentEpochResponse) ProtoMessage() + func (m *QueryCurrentEpochResponse) GetCurrentEpoch() int64 + func (m *QueryCurrentEpochResponse) Marshal() (dAtA []byte, err error) + func (m *QueryCurrentEpochResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryCurrentEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryCurrentEpochResponse) Reset() + func (m *QueryCurrentEpochResponse) Size() (n int) + func (m *QueryCurrentEpochResponse) String() string + func (m *QueryCurrentEpochResponse) Unmarshal(dAtA []byte) error + func (m *QueryCurrentEpochResponse) XXX_DiscardUnknown() + func (m *QueryCurrentEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryCurrentEpochResponse) XXX_Merge(src proto.Message) + func (m *QueryCurrentEpochResponse) XXX_Size() int + func (m *QueryCurrentEpochResponse) XXX_Unmarshal(b []byte) error + type QueryEpochInfoRequest struct + Identifier string + func (*QueryEpochInfoRequest) Descriptor() ([]byte, []int) + func (*QueryEpochInfoRequest) ProtoMessage() + func (m *QueryEpochInfoRequest) GetIdentifier() string + func (m *QueryEpochInfoRequest) Marshal() (dAtA []byte, err error) + func (m *QueryEpochInfoRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryEpochInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryEpochInfoRequest) Reset() + func (m *QueryEpochInfoRequest) Size() (n int) + func (m *QueryEpochInfoRequest) String() string + func (m *QueryEpochInfoRequest) Unmarshal(dAtA []byte) error + func (m *QueryEpochInfoRequest) XXX_DiscardUnknown() + func (m *QueryEpochInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryEpochInfoRequest) XXX_Merge(src proto.Message) + func (m *QueryEpochInfoRequest) XXX_Size() int + func (m *QueryEpochInfoRequest) XXX_Unmarshal(b []byte) error + type QueryEpochInfoResponse struct + Epoch EpochInfo + func (*QueryEpochInfoResponse) Descriptor() ([]byte, []int) + func (*QueryEpochInfoResponse) ProtoMessage() + func (m *QueryEpochInfoResponse) GetEpoch() EpochInfo + func (m *QueryEpochInfoResponse) Marshal() (dAtA []byte, err error) + func (m *QueryEpochInfoResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryEpochInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryEpochInfoResponse) Reset() + func (m *QueryEpochInfoResponse) Size() (n int) + func (m *QueryEpochInfoResponse) String() string + func (m *QueryEpochInfoResponse) Unmarshal(dAtA []byte) error + func (m *QueryEpochInfoResponse) XXX_DiscardUnknown() + func (m *QueryEpochInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryEpochInfoResponse) XXX_Merge(src proto.Message) + func (m *QueryEpochInfoResponse) XXX_Size() int + func (m *QueryEpochInfoResponse) XXX_Unmarshal(b []byte) error + type QueryEpochsInfoRequest struct + Pagination *query.PageRequest + func (*QueryEpochsInfoRequest) Descriptor() ([]byte, []int) + func (*QueryEpochsInfoRequest) ProtoMessage() + func (m *QueryEpochsInfoRequest) GetPagination() *query.PageRequest + func (m *QueryEpochsInfoRequest) Marshal() (dAtA []byte, err error) + func (m *QueryEpochsInfoRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryEpochsInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryEpochsInfoRequest) Reset() + func (m *QueryEpochsInfoRequest) Size() (n int) + func (m *QueryEpochsInfoRequest) String() string + func (m *QueryEpochsInfoRequest) Unmarshal(dAtA []byte) error + func (m *QueryEpochsInfoRequest) XXX_DiscardUnknown() + func (m *QueryEpochsInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryEpochsInfoRequest) XXX_Merge(src proto.Message) + func (m *QueryEpochsInfoRequest) XXX_Size() int + func (m *QueryEpochsInfoRequest) XXX_Unmarshal(b []byte) error + type QueryEpochsInfoResponse struct + Epochs []EpochInfo + Pagination *query.PageResponse + func (*QueryEpochsInfoResponse) Descriptor() ([]byte, []int) + func (*QueryEpochsInfoResponse) ProtoMessage() + func (m *QueryEpochsInfoResponse) GetEpochs() []EpochInfo + func (m *QueryEpochsInfoResponse) GetPagination() *query.PageResponse + func (m *QueryEpochsInfoResponse) Marshal() (dAtA []byte, err error) + func (m *QueryEpochsInfoResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryEpochsInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryEpochsInfoResponse) Reset() + func (m *QueryEpochsInfoResponse) Size() (n int) + func (m *QueryEpochsInfoResponse) String() string + func (m *QueryEpochsInfoResponse) Unmarshal(dAtA []byte) error + func (m *QueryEpochsInfoResponse) XXX_DiscardUnknown() + func (m *QueryEpochsInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryEpochsInfoResponse) XXX_Merge(src proto.Message) + func (m *QueryEpochsInfoResponse) XXX_Size() int + func (m *QueryEpochsInfoResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + CurrentEpoch func(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) + EpochInfo func(context.Context, *QueryEpochInfoRequest) (*QueryEpochInfoResponse, error) + EpochInfos func(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) CurrentEpoch(ctx context.Context, req *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) + func (*UnimplementedQueryServer) EpochInfo(ctx context.Context, req *QueryEpochInfoRequest) (*QueryEpochInfoResponse, error) + func (*UnimplementedQueryServer) EpochInfos(ctx context.Context, req *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) v18.0.0-testnet Jan 27, 2024 Other modules containing this package github.com/Stride-Labs/stride github.com/Stride-Labs/stride/v10 github.com/Stride-Labs/stride/v11 github.com/Stride-Labs/stride/v12 github.com/Stride-Labs/stride/v13 github.com/Stride-Labs/stride/v14 github.com/Stride-Labs/stride/v15 github.com/Stride-Labs/stride/v16 github.com/Stride-Labs/stride/v17 github.com/Stride-Labs/stride/v19 github.com/Stride-Labs/stride/v20 github.com/Stride-Labs/stride/v21 github.com/Stride-Labs/stride/v22 github.com/Stride-Labs/stride/v3 github.com/Stride-Labs/stride/v4 github.com/Stride-Labs/stride/v5 github.com/Stride-Labs/stride/v6 github.com/Stride-Labs/stride/v7 github.com/Stride-Labs/stride/v8 github.com/Stride-Labs/stride/v9