types

package
v3.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: Apache-2.0 Imports: 44 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 = "subscription"

	// 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_subscription"

	// prefix for the subscription fixation store
	SubsFixationPrefix = "subs-fs"

	// prefix for the subscription timer store
	SubsTimerPrefix = "subs-ts"

	// prefix for the CU tracker fixation store
	CuTrackerFixationPrefix = "cu-tracker-fs"

	// prefix for the CU tracker timer store
	CuTrackerTimerPrefix = "cu-tracker-ts"
)
View Source
const (
	MAX_SUBSCRIPTION_DURATION = 12 // max duration of subscription in months
	AUTO_RENEWAL_PLAN_NONE    = "none"
)
View Source
const (
	BuySubscriptionEventName                = "buy_subscription_event"
	AdvancedBuySubscriptionEventName        = "advanced_buy_subscription_event"
	AdvancedBuyUpgradeSubscriptionEventName = "advanced_buy_upgrade_subscription_event"
	SubscriptionAutoRenewChangeEventName    = "subscription_auto_renew_change_event"
	UpgradeSubscriptionEventName            = "upgrade_subscription_event"
	ExpireSubscriptionEventName             = "expire_subscription_event"
	AddProjectEventName                     = "add_project_to_subscription_event"
	DelProjectEventName                     = "del_project_to_subscription_event"
	AddTrackedCuEventName                   = "add_tracked_cu_event"
	MonthlyCuTrackerProviderRewardEventName = "monthly_cu_tracker_provider_reward"
	SubscriptionPayoutEventName             = "subscription_payout"
)
View Source
const (
	// AdjustmentKeyPrefix is the prefix to retrieve all Adjustment
	AdjustmentKeyPrefix = "Adjustment/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const FREE_PLAN = "free" // gets its own const because it's treated differently
View Source
const TypeMsgAddProject = "add_project"
View Source
const TypeMsgAutoRenewal = "add_project"
View Source
const TypeMsgBuy = "buy"
View Source
const TypeMsgDelProject = "del_project"

Variables

View Source
var (
	ErrInvalidLengthAdjustment        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAdjustment          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAdjustment = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
View Source
var (
	ErrInvalidLengthCuTracker        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCuTracker          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCuTracker = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample                = sdkerrors.Register(ModuleName, 1100, "sample error")
	ErrBlankParameter        = sdkerrors.New(ModuleName, 101, "required parameter is empty")
	ErrInvalidParameter      = sdkerrors.New(ModuleName, 102, "required parameter is invalid")
	ErrCuTrackerPayoutFailed = sdkerrors.New(ModuleName, 103, "critical: CU tracker providers reward failed")
)

x/subscription module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSubscription        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSubscription          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSubscription = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var SUB_USAGES = []uint64{0, 6, 7} // sub usages that are treated differently when constructing a cluster key

Functions

func CuTrackerKey

func CuTrackerKey(sub string, provider string, chainID string) string

CuTrackerKey encodes a keys using the subscription's consumer address, provider address and the relay's chain ID

func DecodeCuTrackerKey

func DecodeCuTrackerKey(key string) (sub string, provider string, chainID string)

DecodeCuTrackerKey decodes the CU tracker key

func GetClusterKey

func GetClusterKey(sub Subscription) string

GetClusterKey returns the subscription's best-fit cluster

func GetSubUsageCriterion

func GetSubUsageCriterion(sub Subscription) uint64

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

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

AccountKeeper defines the expected account keeper used for simulations (noalias)

type Adjustment

type Adjustment struct {
	Index         string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	AdjustedUsage uint64 `protobuf:"varint,2,opt,name=adjustedUsage,proto3" json:"adjustedUsage,omitempty"`
	TotalUsage    uint64 `protobuf:"varint,3,opt,name=totalUsage,proto3" json:"totalUsage,omitempty"`
}

func (*Adjustment) Descriptor

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

func (*Adjustment) GetAdjustedUsage

func (m *Adjustment) GetAdjustedUsage() uint64

func (*Adjustment) GetIndex

func (m *Adjustment) GetIndex() string

func (*Adjustment) GetTotalUsage

func (m *Adjustment) GetTotalUsage() uint64

func (*Adjustment) Marshal

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

func (*Adjustment) MarshalTo

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

func (*Adjustment) MarshalToSizedBuffer

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

func (*Adjustment) ProtoMessage

func (*Adjustment) ProtoMessage()

func (*Adjustment) Reset

func (m *Adjustment) Reset()

func (*Adjustment) Size

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

func (*Adjustment) String

func (m *Adjustment) String() string

func (*Adjustment) Unmarshal

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

func (*Adjustment) XXX_DiscardUnknown

func (m *Adjustment) XXX_DiscardUnknown()

func (*Adjustment) XXX_Marshal

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

func (*Adjustment) XXX_Merge

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

func (*Adjustment) XXX_Size

func (m *Adjustment) XXX_Size() int

func (*Adjustment) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CuTrackerTimerData

type CuTrackerTimerData struct {
	Block  uint64     `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"`
	Credit types.Coin `protobuf:"bytes,2,opt,name=credit,proto3" json:"credit"`
}

func (*CuTrackerTimerData) Descriptor

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

func (*CuTrackerTimerData) GetBlock

func (m *CuTrackerTimerData) GetBlock() uint64

func (*CuTrackerTimerData) GetCredit

func (m *CuTrackerTimerData) GetCredit() types.Coin

func (*CuTrackerTimerData) Marshal

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

func (*CuTrackerTimerData) MarshalTo

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

func (*CuTrackerTimerData) MarshalToSizedBuffer

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

func (*CuTrackerTimerData) ProtoMessage

func (*CuTrackerTimerData) ProtoMessage()

func (*CuTrackerTimerData) Reset

func (m *CuTrackerTimerData) Reset()

func (*CuTrackerTimerData) Size

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

func (*CuTrackerTimerData) String

func (m *CuTrackerTimerData) String() string

func (*CuTrackerTimerData) Unmarshal

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

func (CuTrackerTimerData) Validate

func (td CuTrackerTimerData) Validate() bool

func (*CuTrackerTimerData) XXX_DiscardUnknown

func (m *CuTrackerTimerData) XXX_DiscardUnknown()

func (*CuTrackerTimerData) XXX_Marshal

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

func (*CuTrackerTimerData) XXX_Merge

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

func (*CuTrackerTimerData) XXX_Size

func (m *CuTrackerTimerData) XXX_Size() int

func (*CuTrackerTimerData) XXX_Unmarshal

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

type DualStakingKeeper

type DualStakingKeeper interface {
	RewardProvidersAndDelegators(ctx sdk.Context, providerAddr string, chainID string, totalReward sdk.Coins, senderModule string, calcOnlyProvider bool, calcOnlyDelegators bool, calcOnlyContributor bool) (providerReward sdk.Coins, totalRewards sdk.Coins, err error)
	GetDelegation(ctx sdk.Context, delegator, provider, chainID string, epoch uint64) (dualstakingtypes.Delegation, bool)
}

type EpochstorageKeeper

type EpochstorageKeeper interface {
	BlocksToSave(ctx sdk.Context, block uint64) (uint64, error)
	GetEpochStart(ctx sdk.Context) uint64
	IsEpochStart(ctx sdk.Context) bool
	GetNextEpoch(ctx sdk.Context, block uint64) (nextEpoch uint64, erro error)
	GetCurrentNextEpoch(ctx sdk.Context) (nextEpoch uint64)
	GetStakeEntryCurrent(ctx sdk.Context, chainID string, address string) (epochstoragetypes.StakeEntry, bool)
	GetAllStakeEntriesCurrentForChainId(ctx sdk.Context, chainID string) []epochstoragetypes.StakeEntry
}

type EstimatedRewardInfo

type EstimatedRewardInfo struct {
	Source string                                      `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Amount github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"amount"`
}

func (*EstimatedRewardInfo) Descriptor

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

func (*EstimatedRewardInfo) GetAmount

func (*EstimatedRewardInfo) GetSource

func (m *EstimatedRewardInfo) GetSource() string

func (*EstimatedRewardInfo) Marshal

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

func (*EstimatedRewardInfo) MarshalTo

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

func (*EstimatedRewardInfo) MarshalToSizedBuffer

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

func (*EstimatedRewardInfo) ProtoMessage

func (*EstimatedRewardInfo) ProtoMessage()

func (*EstimatedRewardInfo) Reset

func (m *EstimatedRewardInfo) Reset()

func (*EstimatedRewardInfo) Size

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

func (*EstimatedRewardInfo) String

func (m *EstimatedRewardInfo) String() string

func (*EstimatedRewardInfo) Unmarshal

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

func (*EstimatedRewardInfo) XXX_DiscardUnknown

func (m *EstimatedRewardInfo) XXX_DiscardUnknown()

func (*EstimatedRewardInfo) XXX_Marshal

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

func (*EstimatedRewardInfo) XXX_Merge

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

func (*EstimatedRewardInfo) XXX_Size

func (m *EstimatedRewardInfo) XXX_Size() int

func (*EstimatedRewardInfo) XXX_Unmarshal

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

type FixationStoreKeeper

type FixationStoreKeeper interface {
	NewFixationStore(storeKey storetypes.StoreKey, prefix string) *fixationtypes.FixationStore
}

type FutureSubscription

type FutureSubscription struct {
	Creator        string     `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	PlanIndex      string     `protobuf:"bytes,2,opt,name=plan_index,json=planIndex,proto3" json:"plan_index,omitempty"`
	PlanBlock      uint64     `protobuf:"varint,3,opt,name=plan_block,json=planBlock,proto3" json:"plan_block,omitempty"`
	DurationBought uint64     `protobuf:"varint,4,opt,name=duration_bought,json=durationBought,proto3" json:"duration_bought,omitempty"`
	Credit         types.Coin `protobuf:"bytes,5,opt,name=credit,proto3" json:"credit"`
}

func (*FutureSubscription) Descriptor

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

func (*FutureSubscription) GetCreator

func (m *FutureSubscription) GetCreator() string

func (*FutureSubscription) GetCredit

func (m *FutureSubscription) GetCredit() types.Coin

func (*FutureSubscription) GetDurationBought

func (m *FutureSubscription) GetDurationBought() uint64

func (*FutureSubscription) GetPlanBlock

func (m *FutureSubscription) GetPlanBlock() uint64

func (*FutureSubscription) GetPlanIndex

func (m *FutureSubscription) GetPlanIndex() string

func (*FutureSubscription) Marshal

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

func (*FutureSubscription) MarshalTo

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

func (*FutureSubscription) MarshalToSizedBuffer

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

func (*FutureSubscription) ProtoMessage

func (*FutureSubscription) ProtoMessage()

func (*FutureSubscription) Reset

func (m *FutureSubscription) Reset()

func (*FutureSubscription) Size

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

func (*FutureSubscription) String

func (m *FutureSubscription) String() string

func (*FutureSubscription) Unmarshal

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

func (*FutureSubscription) XXX_DiscardUnknown

func (m *FutureSubscription) XXX_DiscardUnknown()

func (*FutureSubscription) XXX_Marshal

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

func (*FutureSubscription) XXX_Merge

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

func (*FutureSubscription) XXX_Size

func (m *FutureSubscription) XXX_Size() int

func (*FutureSubscription) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params      Params              `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	SubsFS      types.GenesisState  `protobuf:"bytes,2,opt,name=subsFS,proto3" json:"subsFS"`
	SubsTS      types1.GenesisState `protobuf:"bytes,3,opt,name=subsTS,proto3" json:"subsTS"`
	CuTrackerFS types.GenesisState  `protobuf:"bytes,4,opt,name=cuTrackerFS,proto3" json:"cuTrackerFS"`
	CuTrackerTS types1.GenesisState `protobuf:"bytes,5,opt,name=cuTrackerTS,proto3" json:"cuTrackerTS"`
	Adjustments []Adjustment        `protobuf:"bytes,6,rep,name=adjustments,proto3" json:"adjustments"`
}

GenesisState defines the subscription 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) GetAdjustments

func (m *GenesisState) GetAdjustments() []Adjustment

func (*GenesisState) GetCuTrackerFS

func (m *GenesisState) GetCuTrackerFS() types.GenesisState

func (*GenesisState) GetCuTrackerTS

func (m *GenesisState) GetCuTrackerTS() types1.GenesisState

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSubsFS

func (m *GenesisState) GetSubsFS() types.GenesisState

func (*GenesisState) GetSubsTS

func (m *GenesisState) GetSubsTS() types1.GenesisState

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 ListInfoStruct

type ListInfoStruct struct {
	Consumer            string              `protobuf:"bytes,1,opt,name=consumer,proto3" json:"consumer,omitempty"`
	Plan                string              `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty"`
	DurationBought      uint64              `protobuf:"varint,3,opt,name=duration_bought,json=durationBought,proto3" json:"duration_bought,omitempty"`
	DurationLeft        uint64              `protobuf:"varint,4,opt,name=duration_left,json=durationLeft,proto3" json:"duration_left,omitempty"`
	MonthExpiry         uint64              `protobuf:"varint,5,opt,name=month_expiry,json=monthExpiry,proto3" json:"month_expiry,omitempty"`
	MonthCuTotal        uint64              `protobuf:"varint,6,opt,name=month_cu_total,json=monthCuTotal,proto3" json:"month_cu_total,omitempty"`
	MonthCuLeft         uint64              `protobuf:"varint,7,opt,name=month_cu_left,json=monthCuLeft,proto3" json:"month_cu_left,omitempty"`
	Cluster             string              `protobuf:"bytes,8,opt,name=cluster,proto3" json:"cluster,omitempty"`
	DurationTotal       uint64              `protobuf:"varint,9,opt,name=duration_total,json=durationTotal,proto3" json:"duration_total,omitempty"`
	AutoRenewalNextPlan string              `protobuf:"bytes,11,opt,name=auto_renewal_next_plan,json=autoRenewalNextPlan,proto3" json:"auto_renewal_next_plan,omitempty"`
	FutureSubscription  *FutureSubscription `protobuf:"bytes,12,opt,name=future_subscription,json=futureSubscription,proto3" json:"future_subscription,omitempty"`
	Credit              *types.Coin         `protobuf:"bytes,13,opt,name=credit,proto3" json:"credit,omitempty"`
}

func (*ListInfoStruct) Descriptor

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

func (*ListInfoStruct) GetAutoRenewalNextPlan

func (m *ListInfoStruct) GetAutoRenewalNextPlan() string

func (*ListInfoStruct) GetCluster

func (m *ListInfoStruct) GetCluster() string

func (*ListInfoStruct) GetConsumer

func (m *ListInfoStruct) GetConsumer() string

func (*ListInfoStruct) GetCredit

func (m *ListInfoStruct) GetCredit() *types.Coin

func (*ListInfoStruct) GetDurationBought

func (m *ListInfoStruct) GetDurationBought() uint64

func (*ListInfoStruct) GetDurationLeft

func (m *ListInfoStruct) GetDurationLeft() uint64

func (*ListInfoStruct) GetDurationTotal

func (m *ListInfoStruct) GetDurationTotal() uint64

func (*ListInfoStruct) GetFutureSubscription

func (m *ListInfoStruct) GetFutureSubscription() *FutureSubscription

func (*ListInfoStruct) GetMonthCuLeft

func (m *ListInfoStruct) GetMonthCuLeft() uint64

func (*ListInfoStruct) GetMonthCuTotal

func (m *ListInfoStruct) GetMonthCuTotal() uint64

func (*ListInfoStruct) GetMonthExpiry

func (m *ListInfoStruct) GetMonthExpiry() uint64

func (*ListInfoStruct) GetPlan

func (m *ListInfoStruct) GetPlan() string

func (*ListInfoStruct) Marshal

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

func (*ListInfoStruct) MarshalTo

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

func (*ListInfoStruct) MarshalToSizedBuffer

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

func (*ListInfoStruct) ProtoMessage

func (*ListInfoStruct) ProtoMessage()

func (*ListInfoStruct) Reset

func (m *ListInfoStruct) Reset()

func (*ListInfoStruct) Size

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

func (*ListInfoStruct) String

func (m *ListInfoStruct) String() string

func (*ListInfoStruct) Unmarshal

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

func (*ListInfoStruct) XXX_DiscardUnknown

func (m *ListInfoStruct) XXX_DiscardUnknown()

func (*ListInfoStruct) XXX_Marshal

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

func (*ListInfoStruct) XXX_Merge

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

func (*ListInfoStruct) XXX_Size

func (m *ListInfoStruct) XXX_Size() int

func (*ListInfoStruct) XXX_Unmarshal

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

type MsgAddProject

type MsgAddProject struct {
	Creator     string            `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	ProjectData types.ProjectData `protobuf:"bytes,2,opt,name=project_data,json=projectData,proto3" json:"project_data"`
}

func NewMsgAddProject

func NewMsgAddProject(creator string, projectData projectstypes.ProjectData) *MsgAddProject

func (*MsgAddProject) Descriptor

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

func (*MsgAddProject) GetCreator

func (m *MsgAddProject) GetCreator() string

func (*MsgAddProject) GetProjectData

func (m *MsgAddProject) GetProjectData() types.ProjectData

func (*MsgAddProject) GetSignBytes

func (msg *MsgAddProject) GetSignBytes() []byte

func (*MsgAddProject) GetSigners

func (msg *MsgAddProject) GetSigners() []sdk.AccAddress

func (*MsgAddProject) Marshal

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

func (*MsgAddProject) MarshalTo

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

func (*MsgAddProject) MarshalToSizedBuffer

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

func (*MsgAddProject) ProtoMessage

func (*MsgAddProject) ProtoMessage()

func (*MsgAddProject) Reset

func (m *MsgAddProject) Reset()

func (*MsgAddProject) Route

func (msg *MsgAddProject) Route() string

func (*MsgAddProject) Size

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

func (*MsgAddProject) String

func (m *MsgAddProject) String() string

func (*MsgAddProject) Type

func (msg *MsgAddProject) Type() string

func (*MsgAddProject) Unmarshal

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

func (*MsgAddProject) ValidateBasic

func (msg *MsgAddProject) ValidateBasic() error

func (*MsgAddProject) XXX_DiscardUnknown

func (m *MsgAddProject) XXX_DiscardUnknown()

func (*MsgAddProject) XXX_Marshal

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

func (*MsgAddProject) XXX_Merge

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

func (*MsgAddProject) XXX_Size

func (m *MsgAddProject) XXX_Size() int

func (*MsgAddProject) XXX_Unmarshal

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

type MsgAddProjectResponse

type MsgAddProjectResponse struct {
}

func (*MsgAddProjectResponse) Descriptor

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

func (*MsgAddProjectResponse) Marshal

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

func (*MsgAddProjectResponse) MarshalTo

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

func (*MsgAddProjectResponse) MarshalToSizedBuffer

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

func (*MsgAddProjectResponse) ProtoMessage

func (*MsgAddProjectResponse) ProtoMessage()

func (*MsgAddProjectResponse) Reset

func (m *MsgAddProjectResponse) Reset()

func (*MsgAddProjectResponse) Size

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

func (*MsgAddProjectResponse) String

func (m *MsgAddProjectResponse) String() string

func (*MsgAddProjectResponse) Unmarshal

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

func (*MsgAddProjectResponse) XXX_DiscardUnknown

func (m *MsgAddProjectResponse) XXX_DiscardUnknown()

func (*MsgAddProjectResponse) XXX_Marshal

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

func (*MsgAddProjectResponse) XXX_Merge

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

func (*MsgAddProjectResponse) XXX_Size

func (m *MsgAddProjectResponse) XXX_Size() int

func (*MsgAddProjectResponse) XXX_Unmarshal

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

type MsgAutoRenewal

type MsgAutoRenewal struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Enable   bool   `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
	Consumer string `protobuf:"bytes,3,opt,name=consumer,proto3" json:"consumer,omitempty"`
	Index    string `protobuf:"bytes,4,opt,name=index,proto3" json:"index,omitempty"`
}

func NewMsgAutoRenewal

func NewMsgAutoRenewal(creator, consumer, planIndex string, enable bool) *MsgAutoRenewal

func (*MsgAutoRenewal) Descriptor

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

func (*MsgAutoRenewal) GetConsumer

func (m *MsgAutoRenewal) GetConsumer() string

func (*MsgAutoRenewal) GetCreator

func (m *MsgAutoRenewal) GetCreator() string

func (*MsgAutoRenewal) GetEnable

func (m *MsgAutoRenewal) GetEnable() bool

func (*MsgAutoRenewal) GetIndex

func (m *MsgAutoRenewal) GetIndex() string

func (*MsgAutoRenewal) GetSignBytes

func (msg *MsgAutoRenewal) GetSignBytes() []byte

func (*MsgAutoRenewal) GetSigners

func (msg *MsgAutoRenewal) GetSigners() []sdk.AccAddress

func (*MsgAutoRenewal) Marshal

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

func (*MsgAutoRenewal) MarshalTo

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

func (*MsgAutoRenewal) MarshalToSizedBuffer

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

func (*MsgAutoRenewal) ProtoMessage

func (*MsgAutoRenewal) ProtoMessage()

func (*MsgAutoRenewal) Reset

func (m *MsgAutoRenewal) Reset()

func (*MsgAutoRenewal) Route

func (msg *MsgAutoRenewal) Route() string

func (*MsgAutoRenewal) Size

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

func (*MsgAutoRenewal) String

func (m *MsgAutoRenewal) String() string

func (*MsgAutoRenewal) Type

func (msg *MsgAutoRenewal) Type() string

func (*MsgAutoRenewal) Unmarshal

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

func (*MsgAutoRenewal) ValidateBasic

func (msg *MsgAutoRenewal) ValidateBasic() error

func (*MsgAutoRenewal) XXX_DiscardUnknown

func (m *MsgAutoRenewal) XXX_DiscardUnknown()

func (*MsgAutoRenewal) XXX_Marshal

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

func (*MsgAutoRenewal) XXX_Merge

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

func (*MsgAutoRenewal) XXX_Size

func (m *MsgAutoRenewal) XXX_Size() int

func (*MsgAutoRenewal) XXX_Unmarshal

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

type MsgAutoRenewalResponse

type MsgAutoRenewalResponse struct {
}

func (*MsgAutoRenewalResponse) Descriptor

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

func (*MsgAutoRenewalResponse) Marshal

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

func (*MsgAutoRenewalResponse) MarshalTo

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

func (*MsgAutoRenewalResponse) MarshalToSizedBuffer

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

func (*MsgAutoRenewalResponse) ProtoMessage

func (*MsgAutoRenewalResponse) ProtoMessage()

func (*MsgAutoRenewalResponse) Reset

func (m *MsgAutoRenewalResponse) Reset()

func (*MsgAutoRenewalResponse) Size

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

func (*MsgAutoRenewalResponse) String

func (m *MsgAutoRenewalResponse) String() string

func (*MsgAutoRenewalResponse) Unmarshal

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

func (*MsgAutoRenewalResponse) XXX_DiscardUnknown

func (m *MsgAutoRenewalResponse) XXX_DiscardUnknown()

func (*MsgAutoRenewalResponse) XXX_Marshal

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

func (*MsgAutoRenewalResponse) XXX_Merge

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

func (*MsgAutoRenewalResponse) XXX_Size

func (m *MsgAutoRenewalResponse) XXX_Size() int

func (*MsgAutoRenewalResponse) XXX_Unmarshal

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

type MsgBuy

type MsgBuy struct {
	Creator         string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Consumer        string `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"`
	Index           string `protobuf:"bytes,3,opt,name=index,proto3" json:"index,omitempty"`
	Duration        uint64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"`
	AutoRenewal     bool   `protobuf:"varint,6,opt,name=auto_renewal,json=autoRenewal,proto3" json:"auto_renewal,omitempty"`
	AdvancePurchase bool   `protobuf:"varint,7,opt,name=advance_purchase,json=advancePurchase,proto3" json:"advance_purchase,omitempty"`
}

func NewMsgBuy

func NewMsgBuy(creator, consumer, index string, duration uint64, autoRenewal, advancePurchase bool) *MsgBuy

func (*MsgBuy) Descriptor

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

func (*MsgBuy) GetAdvancePurchase

func (m *MsgBuy) GetAdvancePurchase() bool

func (*MsgBuy) GetAutoRenewal

func (m *MsgBuy) GetAutoRenewal() bool

func (*MsgBuy) GetConsumer

func (m *MsgBuy) GetConsumer() string

func (*MsgBuy) GetCreator

func (m *MsgBuy) GetCreator() string

func (*MsgBuy) GetDuration

func (m *MsgBuy) GetDuration() uint64

func (*MsgBuy) GetIndex

func (m *MsgBuy) GetIndex() string

func (*MsgBuy) GetSignBytes

func (msg *MsgBuy) GetSignBytes() []byte

func (*MsgBuy) GetSigners

func (msg *MsgBuy) GetSigners() []sdk.AccAddress

func (*MsgBuy) Marshal

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

func (*MsgBuy) MarshalTo

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

func (*MsgBuy) MarshalToSizedBuffer

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

func (*MsgBuy) ProtoMessage

func (*MsgBuy) ProtoMessage()

func (*MsgBuy) Reset

func (m *MsgBuy) Reset()

func (*MsgBuy) Route

func (msg *MsgBuy) Route() string

func (*MsgBuy) Size

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

func (*MsgBuy) String

func (m *MsgBuy) String() string

func (*MsgBuy) Type

func (msg *MsgBuy) Type() string

func (*MsgBuy) Unmarshal

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

func (*MsgBuy) ValidateBasic

func (msg *MsgBuy) ValidateBasic() error

func (*MsgBuy) XXX_DiscardUnknown

func (m *MsgBuy) XXX_DiscardUnknown()

func (*MsgBuy) XXX_Marshal

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

func (*MsgBuy) XXX_Merge

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

func (*MsgBuy) XXX_Size

func (m *MsgBuy) XXX_Size() int

func (*MsgBuy) XXX_Unmarshal

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

type MsgBuyResponse

type MsgBuyResponse struct {
}

func (*MsgBuyResponse) Descriptor

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

func (*MsgBuyResponse) Marshal

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

func (*MsgBuyResponse) MarshalTo

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

func (*MsgBuyResponse) MarshalToSizedBuffer

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

func (*MsgBuyResponse) ProtoMessage

func (*MsgBuyResponse) ProtoMessage()

func (*MsgBuyResponse) Reset

func (m *MsgBuyResponse) Reset()

func (*MsgBuyResponse) Size

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

func (*MsgBuyResponse) String

func (m *MsgBuyResponse) String() string

func (*MsgBuyResponse) Unmarshal

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

func (*MsgBuyResponse) XXX_DiscardUnknown

func (m *MsgBuyResponse) XXX_DiscardUnknown()

func (*MsgBuyResponse) XXX_Marshal

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

func (*MsgBuyResponse) XXX_Merge

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

func (*MsgBuyResponse) XXX_Size

func (m *MsgBuyResponse) XXX_Size() int

func (*MsgBuyResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	Buy(ctx context.Context, in *MsgBuy, opts ...grpc.CallOption) (*MsgBuyResponse, error)
	AddProject(ctx context.Context, in *MsgAddProject, opts ...grpc.CallOption) (*MsgAddProjectResponse, error)
	DelProject(ctx context.Context, in *MsgDelProject, opts ...grpc.CallOption) (*MsgDelProjectResponse, error)
	AutoRenewal(ctx context.Context, in *MsgAutoRenewal, opts ...grpc.CallOption) (*MsgAutoRenewalResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgDelProject

type MsgDelProject struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}

func NewMsgDelProject

func NewMsgDelProject(creator, name string) *MsgDelProject

func (*MsgDelProject) Descriptor

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

func (*MsgDelProject) GetCreator

func (m *MsgDelProject) GetCreator() string

func (*MsgDelProject) GetName

func (m *MsgDelProject) GetName() string

func (*MsgDelProject) GetSignBytes

func (msg *MsgDelProject) GetSignBytes() []byte

func (*MsgDelProject) GetSigners

func (msg *MsgDelProject) GetSigners() []sdk.AccAddress

func (*MsgDelProject) Marshal

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

func (*MsgDelProject) MarshalTo

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

func (*MsgDelProject) MarshalToSizedBuffer

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

func (*MsgDelProject) ProtoMessage

func (*MsgDelProject) ProtoMessage()

func (*MsgDelProject) Reset

func (m *MsgDelProject) Reset()

func (*MsgDelProject) Route

func (msg *MsgDelProject) Route() string

func (*MsgDelProject) Size

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

func (*MsgDelProject) String

func (m *MsgDelProject) String() string

func (*MsgDelProject) Type

func (msg *MsgDelProject) Type() string

func (*MsgDelProject) Unmarshal

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

func (*MsgDelProject) ValidateBasic

func (msg *MsgDelProject) ValidateBasic() error

func (*MsgDelProject) XXX_DiscardUnknown

func (m *MsgDelProject) XXX_DiscardUnknown()

func (*MsgDelProject) XXX_Marshal

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

func (*MsgDelProject) XXX_Merge

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

func (*MsgDelProject) XXX_Size

func (m *MsgDelProject) XXX_Size() int

func (*MsgDelProject) XXX_Unmarshal

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

type MsgDelProjectResponse

type MsgDelProjectResponse struct {
}

func (*MsgDelProjectResponse) Descriptor

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

func (*MsgDelProjectResponse) Marshal

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

func (*MsgDelProjectResponse) MarshalTo

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

func (*MsgDelProjectResponse) MarshalToSizedBuffer

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

func (*MsgDelProjectResponse) ProtoMessage

func (*MsgDelProjectResponse) ProtoMessage()

func (*MsgDelProjectResponse) Reset

func (m *MsgDelProjectResponse) Reset()

func (*MsgDelProjectResponse) Size

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

func (*MsgDelProjectResponse) String

func (m *MsgDelProjectResponse) String() string

func (*MsgDelProjectResponse) Unmarshal

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

func (*MsgDelProjectResponse) XXX_DiscardUnknown

func (m *MsgDelProjectResponse) XXX_DiscardUnknown()

func (*MsgDelProjectResponse) XXX_Marshal

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

func (*MsgDelProjectResponse) XXX_Merge

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

func (*MsgDelProjectResponse) XXX_Size

func (m *MsgDelProjectResponse) XXX_Size() int

func (*MsgDelProjectResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type PlansKeeper

type PlansKeeper interface {
	GetPlan(ctx sdk.Context, index string) (planstypes.Plan, bool)
	DelPlan(ctx sdk.Context, index string) error
	FindPlan(ctx sdk.Context, index string, block uint64) (val planstypes.Plan, found bool)
	PutPlan(ctx sdk.Context, index string, block uint64)
	GetAllPlanIndices(ctx sdk.Context) []string
}

type ProjectsKeeper

type ProjectsKeeper interface {
	CreateAdminProject(ctx sdk.Context, subscriptionAddress string, plan planstypes.Plan) error
	CreateProject(ctx sdk.Context, subscriptionAddress string, projectData projectstypes.ProjectData, plan planstypes.Plan) error
	DeleteProject(ctx sdk.Context, creator, index string) error
	SnapshotSubscriptionProjects(ctx sdk.Context, subscriptionAddr string, block uint64)
	GetAllProjectsForSubscription(ctx sdk.Context, subscription string) []string
}

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of Current items.
	Current(ctx context.Context, in *QueryCurrentRequest, opts ...grpc.CallOption) (*QueryCurrentResponse, error)
	// Queries a list of ListProjects items.
	ListProjects(ctx context.Context, in *QueryListProjectsRequest, opts ...grpc.CallOption) (*QueryListProjectsResponse, error)
	// Queries a list of List items.
	List(ctx context.Context, in *QueryListRequest, opts ...grpc.CallOption) (*QueryListResponse, error)
	// Queries the subscription with the closest month expiry
	NextToMonthExpiry(ctx context.Context, in *QueryNextToMonthExpiryRequest, opts ...grpc.CallOption) (*QueryNextToMonthExpiryResponse, error)
	// Queries a list of Current items.
	TrackedUsage(ctx context.Context, in *QuerySubscriptionTrackedUsageRequest, opts ...grpc.CallOption) (*QuerySubscriptionTrackedUsageResponse, error)
	// Queries a rewards estimation.
	EstimatedRewards(ctx context.Context, in *QueryEstimatedRewardsRequest, opts ...grpc.CallOption) (*QueryEstimatedRewardsResponse, error)
	EstimatedValidatorRewards(ctx context.Context, in *QueryEstimatedValidatorRewardsRequest, opts ...grpc.CallOption) (*QueryEstimatedValidatorRewardsResponse, 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 QueryCurrentRequest

type QueryCurrentRequest struct {
	Consumer string `protobuf:"bytes,1,opt,name=consumer,proto3" json:"consumer,omitempty"`
}

func (*QueryCurrentRequest) Descriptor

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

func (*QueryCurrentRequest) GetConsumer

func (m *QueryCurrentRequest) GetConsumer() string

func (*QueryCurrentRequest) Marshal

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

func (*QueryCurrentRequest) MarshalTo

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

func (*QueryCurrentRequest) MarshalToSizedBuffer

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

func (*QueryCurrentRequest) ProtoMessage

func (*QueryCurrentRequest) ProtoMessage()

func (*QueryCurrentRequest) Reset

func (m *QueryCurrentRequest) Reset()

func (*QueryCurrentRequest) Size

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

func (*QueryCurrentRequest) String

func (m *QueryCurrentRequest) String() string

func (*QueryCurrentRequest) Unmarshal

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

func (*QueryCurrentRequest) XXX_DiscardUnknown

func (m *QueryCurrentRequest) XXX_DiscardUnknown()

func (*QueryCurrentRequest) XXX_Marshal

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

func (*QueryCurrentRequest) XXX_Merge

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

func (*QueryCurrentRequest) XXX_Size

func (m *QueryCurrentRequest) XXX_Size() int

func (*QueryCurrentRequest) XXX_Unmarshal

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

type QueryCurrentResponse

type QueryCurrentResponse struct {
	Sub *Subscription `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"`
}

func (*QueryCurrentResponse) Descriptor

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

func (*QueryCurrentResponse) GetSub

func (m *QueryCurrentResponse) GetSub() *Subscription

func (*QueryCurrentResponse) Marshal

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

func (*QueryCurrentResponse) MarshalTo

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

func (*QueryCurrentResponse) MarshalToSizedBuffer

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

func (*QueryCurrentResponse) ProtoMessage

func (*QueryCurrentResponse) ProtoMessage()

func (*QueryCurrentResponse) Reset

func (m *QueryCurrentResponse) Reset()

func (*QueryCurrentResponse) Size

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

func (*QueryCurrentResponse) String

func (m *QueryCurrentResponse) String() string

func (*QueryCurrentResponse) Unmarshal

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

func (*QueryCurrentResponse) XXX_DiscardUnknown

func (m *QueryCurrentResponse) XXX_DiscardUnknown()

func (*QueryCurrentResponse) XXX_Marshal

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

func (*QueryCurrentResponse) XXX_Merge

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

func (*QueryCurrentResponse) XXX_Size

func (m *QueryCurrentResponse) XXX_Size() int

func (*QueryCurrentResponse) XXX_Unmarshal

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

type QueryEstimatedRewardsRequest

type QueryEstimatedRewardsRequest struct {
	Provider        string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	ChainId         string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	AmountDelegator string `protobuf:"bytes,3,opt,name=amount_delegator,json=amountDelegator,proto3" json:"amount_delegator,omitempty"`
}

func (*QueryEstimatedRewardsRequest) Descriptor

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

func (*QueryEstimatedRewardsRequest) GetAmountDelegator

func (m *QueryEstimatedRewardsRequest) GetAmountDelegator() string

func (*QueryEstimatedRewardsRequest) GetChainId

func (m *QueryEstimatedRewardsRequest) GetChainId() string

func (*QueryEstimatedRewardsRequest) GetProvider

func (m *QueryEstimatedRewardsRequest) GetProvider() string

func (*QueryEstimatedRewardsRequest) Marshal

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

func (*QueryEstimatedRewardsRequest) MarshalTo

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

func (*QueryEstimatedRewardsRequest) MarshalToSizedBuffer

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

func (*QueryEstimatedRewardsRequest) ProtoMessage

func (*QueryEstimatedRewardsRequest) ProtoMessage()

func (*QueryEstimatedRewardsRequest) Reset

func (m *QueryEstimatedRewardsRequest) Reset()

func (*QueryEstimatedRewardsRequest) Size

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

func (*QueryEstimatedRewardsRequest) String

func (*QueryEstimatedRewardsRequest) Unmarshal

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

func (*QueryEstimatedRewardsRequest) XXX_DiscardUnknown

func (m *QueryEstimatedRewardsRequest) XXX_DiscardUnknown()

func (*QueryEstimatedRewardsRequest) XXX_Marshal

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

func (*QueryEstimatedRewardsRequest) XXX_Merge

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

func (*QueryEstimatedRewardsRequest) XXX_Size

func (m *QueryEstimatedRewardsRequest) XXX_Size() int

func (*QueryEstimatedRewardsRequest) XXX_Unmarshal

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

type QueryEstimatedRewardsResponse

type QueryEstimatedRewardsResponse struct {
	Info  []*EstimatedRewardInfo                      `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
	Total github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"total"`
}

func (*QueryEstimatedRewardsResponse) Descriptor

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

func (*QueryEstimatedRewardsResponse) GetInfo

func (*QueryEstimatedRewardsResponse) GetTotal

func (*QueryEstimatedRewardsResponse) Marshal

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

func (*QueryEstimatedRewardsResponse) MarshalTo

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

func (*QueryEstimatedRewardsResponse) MarshalToSizedBuffer

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

func (*QueryEstimatedRewardsResponse) ProtoMessage

func (*QueryEstimatedRewardsResponse) ProtoMessage()

func (*QueryEstimatedRewardsResponse) Reset

func (m *QueryEstimatedRewardsResponse) Reset()

func (*QueryEstimatedRewardsResponse) Size

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

func (*QueryEstimatedRewardsResponse) String

func (*QueryEstimatedRewardsResponse) Unmarshal

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

func (*QueryEstimatedRewardsResponse) XXX_DiscardUnknown

func (m *QueryEstimatedRewardsResponse) XXX_DiscardUnknown()

func (*QueryEstimatedRewardsResponse) XXX_Marshal

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

func (*QueryEstimatedRewardsResponse) XXX_Merge

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

func (*QueryEstimatedRewardsResponse) XXX_Size

func (m *QueryEstimatedRewardsResponse) XXX_Size() int

func (*QueryEstimatedRewardsResponse) XXX_Unmarshal

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

type QueryEstimatedValidatorRewardsRequest

type QueryEstimatedValidatorRewardsRequest struct {
	Validator       string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	AmountDelegator string `protobuf:"bytes,2,opt,name=amount_delegator,json=amountDelegator,proto3" json:"amount_delegator,omitempty"`
}

func (*QueryEstimatedValidatorRewardsRequest) Descriptor

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

func (*QueryEstimatedValidatorRewardsRequest) GetAmountDelegator

func (m *QueryEstimatedValidatorRewardsRequest) GetAmountDelegator() string

func (*QueryEstimatedValidatorRewardsRequest) GetValidator

func (*QueryEstimatedValidatorRewardsRequest) Marshal

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

func (*QueryEstimatedValidatorRewardsRequest) MarshalTo

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

func (*QueryEstimatedValidatorRewardsRequest) MarshalToSizedBuffer

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

func (*QueryEstimatedValidatorRewardsRequest) ProtoMessage

func (*QueryEstimatedValidatorRewardsRequest) ProtoMessage()

func (*QueryEstimatedValidatorRewardsRequest) Reset

func (*QueryEstimatedValidatorRewardsRequest) Size

func (*QueryEstimatedValidatorRewardsRequest) String

func (*QueryEstimatedValidatorRewardsRequest) Unmarshal

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

func (*QueryEstimatedValidatorRewardsRequest) XXX_DiscardUnknown

func (m *QueryEstimatedValidatorRewardsRequest) XXX_DiscardUnknown()

func (*QueryEstimatedValidatorRewardsRequest) XXX_Marshal

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

func (*QueryEstimatedValidatorRewardsRequest) XXX_Merge

func (*QueryEstimatedValidatorRewardsRequest) XXX_Size

func (*QueryEstimatedValidatorRewardsRequest) XXX_Unmarshal

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

type QueryEstimatedValidatorRewardsResponse

type QueryEstimatedValidatorRewardsResponse struct {
	Info  []*EstimatedRewardInfo                      `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
	Total github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"total"`
}

func (*QueryEstimatedValidatorRewardsResponse) Descriptor

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

func (*QueryEstimatedValidatorRewardsResponse) GetInfo

func (*QueryEstimatedValidatorRewardsResponse) GetTotal

func (*QueryEstimatedValidatorRewardsResponse) Marshal

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

func (*QueryEstimatedValidatorRewardsResponse) MarshalTo

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

func (*QueryEstimatedValidatorRewardsResponse) MarshalToSizedBuffer

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

func (*QueryEstimatedValidatorRewardsResponse) ProtoMessage

func (*QueryEstimatedValidatorRewardsResponse) Reset

func (*QueryEstimatedValidatorRewardsResponse) Size

func (*QueryEstimatedValidatorRewardsResponse) String

func (*QueryEstimatedValidatorRewardsResponse) Unmarshal

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

func (*QueryEstimatedValidatorRewardsResponse) XXX_DiscardUnknown

func (m *QueryEstimatedValidatorRewardsResponse) XXX_DiscardUnknown()

func (*QueryEstimatedValidatorRewardsResponse) XXX_Marshal

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

func (*QueryEstimatedValidatorRewardsResponse) XXX_Merge

func (*QueryEstimatedValidatorRewardsResponse) XXX_Size

func (*QueryEstimatedValidatorRewardsResponse) XXX_Unmarshal

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

type QueryListProjectsRequest

type QueryListProjectsRequest struct {
	Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
}

func (*QueryListProjectsRequest) Descriptor

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

func (*QueryListProjectsRequest) GetSubscription

func (m *QueryListProjectsRequest) GetSubscription() string

func (*QueryListProjectsRequest) Marshal

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

func (*QueryListProjectsRequest) MarshalTo

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

func (*QueryListProjectsRequest) MarshalToSizedBuffer

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

func (*QueryListProjectsRequest) ProtoMessage

func (*QueryListProjectsRequest) ProtoMessage()

func (*QueryListProjectsRequest) Reset

func (m *QueryListProjectsRequest) Reset()

func (*QueryListProjectsRequest) Size

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

func (*QueryListProjectsRequest) String

func (m *QueryListProjectsRequest) String() string

func (*QueryListProjectsRequest) Unmarshal

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

func (*QueryListProjectsRequest) XXX_DiscardUnknown

func (m *QueryListProjectsRequest) XXX_DiscardUnknown()

func (*QueryListProjectsRequest) XXX_Marshal

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

func (*QueryListProjectsRequest) XXX_Merge

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

func (*QueryListProjectsRequest) XXX_Size

func (m *QueryListProjectsRequest) XXX_Size() int

func (*QueryListProjectsRequest) XXX_Unmarshal

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

type QueryListProjectsResponse

type QueryListProjectsResponse struct {
	Projects []string `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
}

func (*QueryListProjectsResponse) Descriptor

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

func (*QueryListProjectsResponse) GetProjects

func (m *QueryListProjectsResponse) GetProjects() []string

func (*QueryListProjectsResponse) Marshal

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

func (*QueryListProjectsResponse) MarshalTo

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

func (*QueryListProjectsResponse) MarshalToSizedBuffer

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

func (*QueryListProjectsResponse) ProtoMessage

func (*QueryListProjectsResponse) ProtoMessage()

func (*QueryListProjectsResponse) Reset

func (m *QueryListProjectsResponse) Reset()

func (*QueryListProjectsResponse) Size

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

func (*QueryListProjectsResponse) String

func (m *QueryListProjectsResponse) String() string

func (*QueryListProjectsResponse) Unmarshal

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

func (*QueryListProjectsResponse) XXX_DiscardUnknown

func (m *QueryListProjectsResponse) XXX_DiscardUnknown()

func (*QueryListProjectsResponse) XXX_Marshal

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

func (*QueryListProjectsResponse) XXX_Merge

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

func (*QueryListProjectsResponse) XXX_Size

func (m *QueryListProjectsResponse) XXX_Size() int

func (*QueryListProjectsResponse) XXX_Unmarshal

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

type QueryListRequest

type QueryListRequest struct {
}

func (*QueryListRequest) Descriptor

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

func (*QueryListRequest) Marshal

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

func (*QueryListRequest) MarshalTo

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

func (*QueryListRequest) MarshalToSizedBuffer

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

func (*QueryListRequest) ProtoMessage

func (*QueryListRequest) ProtoMessage()

func (*QueryListRequest) Reset

func (m *QueryListRequest) Reset()

func (*QueryListRequest) Size

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

func (*QueryListRequest) String

func (m *QueryListRequest) String() string

func (*QueryListRequest) Unmarshal

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

func (*QueryListRequest) XXX_DiscardUnknown

func (m *QueryListRequest) XXX_DiscardUnknown()

func (*QueryListRequest) XXX_Marshal

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

func (*QueryListRequest) XXX_Merge

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

func (*QueryListRequest) XXX_Size

func (m *QueryListRequest) XXX_Size() int

func (*QueryListRequest) XXX_Unmarshal

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

type QueryListResponse

type QueryListResponse struct {
	SubsInfo []ListInfoStruct `protobuf:"bytes,1,rep,name=subs_info,json=subsInfo,proto3" json:"subs_info"`
}

func (*QueryListResponse) Descriptor

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

func (*QueryListResponse) GetSubsInfo

func (m *QueryListResponse) GetSubsInfo() []ListInfoStruct

func (*QueryListResponse) Marshal

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

func (*QueryListResponse) MarshalTo

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

func (*QueryListResponse) MarshalToSizedBuffer

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

func (*QueryListResponse) ProtoMessage

func (*QueryListResponse) ProtoMessage()

func (*QueryListResponse) Reset

func (m *QueryListResponse) Reset()

func (*QueryListResponse) Size

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

func (*QueryListResponse) String

func (m *QueryListResponse) String() string

func (*QueryListResponse) Unmarshal

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

func (*QueryListResponse) XXX_DiscardUnknown

func (m *QueryListResponse) XXX_DiscardUnknown()

func (*QueryListResponse) XXX_Marshal

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

func (*QueryListResponse) XXX_Merge

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

func (*QueryListResponse) XXX_Size

func (m *QueryListResponse) XXX_Size() int

func (*QueryListResponse) XXX_Unmarshal

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

type QueryNextToMonthExpiryRequest

type QueryNextToMonthExpiryRequest struct {
}

func (*QueryNextToMonthExpiryRequest) Descriptor

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

func (*QueryNextToMonthExpiryRequest) Marshal

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

func (*QueryNextToMonthExpiryRequest) MarshalTo

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

func (*QueryNextToMonthExpiryRequest) MarshalToSizedBuffer

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

func (*QueryNextToMonthExpiryRequest) ProtoMessage

func (*QueryNextToMonthExpiryRequest) ProtoMessage()

func (*QueryNextToMonthExpiryRequest) Reset

func (m *QueryNextToMonthExpiryRequest) Reset()

func (*QueryNextToMonthExpiryRequest) Size

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

func (*QueryNextToMonthExpiryRequest) String

func (*QueryNextToMonthExpiryRequest) Unmarshal

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

func (*QueryNextToMonthExpiryRequest) XXX_DiscardUnknown

func (m *QueryNextToMonthExpiryRequest) XXX_DiscardUnknown()

func (*QueryNextToMonthExpiryRequest) XXX_Marshal

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

func (*QueryNextToMonthExpiryRequest) XXX_Merge

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

func (*QueryNextToMonthExpiryRequest) XXX_Size

func (m *QueryNextToMonthExpiryRequest) XXX_Size() int

func (*QueryNextToMonthExpiryRequest) XXX_Unmarshal

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

type QueryNextToMonthExpiryResponse

type QueryNextToMonthExpiryResponse struct {
	Subscriptions []TimerExpiryInfo `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions"`
}

func (*QueryNextToMonthExpiryResponse) Descriptor

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

func (*QueryNextToMonthExpiryResponse) GetSubscriptions

func (m *QueryNextToMonthExpiryResponse) GetSubscriptions() []TimerExpiryInfo

func (*QueryNextToMonthExpiryResponse) Marshal

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

func (*QueryNextToMonthExpiryResponse) MarshalTo

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

func (*QueryNextToMonthExpiryResponse) MarshalToSizedBuffer

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

func (*QueryNextToMonthExpiryResponse) ProtoMessage

func (*QueryNextToMonthExpiryResponse) ProtoMessage()

func (*QueryNextToMonthExpiryResponse) Reset

func (m *QueryNextToMonthExpiryResponse) Reset()

func (*QueryNextToMonthExpiryResponse) Size

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

func (*QueryNextToMonthExpiryResponse) String

func (*QueryNextToMonthExpiryResponse) Unmarshal

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

func (*QueryNextToMonthExpiryResponse) XXX_DiscardUnknown

func (m *QueryNextToMonthExpiryResponse) XXX_DiscardUnknown()

func (*QueryNextToMonthExpiryResponse) XXX_Marshal

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

func (*QueryNextToMonthExpiryResponse) XXX_Merge

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

func (*QueryNextToMonthExpiryResponse) XXX_Size

func (m *QueryNextToMonthExpiryResponse) XXX_Size() int

func (*QueryNextToMonthExpiryResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Current items.
	Current(context.Context, *QueryCurrentRequest) (*QueryCurrentResponse, error)
	// Queries a list of ListProjects items.
	ListProjects(context.Context, *QueryListProjectsRequest) (*QueryListProjectsResponse, error)
	// Queries a list of List items.
	List(context.Context, *QueryListRequest) (*QueryListResponse, error)
	// Queries the subscription with the closest month expiry
	NextToMonthExpiry(context.Context, *QueryNextToMonthExpiryRequest) (*QueryNextToMonthExpiryResponse, error)
	// Queries a list of Current items.
	TrackedUsage(context.Context, *QuerySubscriptionTrackedUsageRequest) (*QuerySubscriptionTrackedUsageResponse, error)
	// Queries a rewards estimation.
	EstimatedRewards(context.Context, *QueryEstimatedRewardsRequest) (*QueryEstimatedRewardsResponse, error)
	EstimatedValidatorRewards(context.Context, *QueryEstimatedValidatorRewardsRequest) (*QueryEstimatedValidatorRewardsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySubscriptionTrackedUsageRequest

type QuerySubscriptionTrackedUsageRequest struct {
	Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
}

func (*QuerySubscriptionTrackedUsageRequest) Descriptor

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

func (*QuerySubscriptionTrackedUsageRequest) GetSubscription

func (m *QuerySubscriptionTrackedUsageRequest) GetSubscription() string

func (*QuerySubscriptionTrackedUsageRequest) Marshal

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

func (*QuerySubscriptionTrackedUsageRequest) MarshalTo

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

func (*QuerySubscriptionTrackedUsageRequest) MarshalToSizedBuffer

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

func (*QuerySubscriptionTrackedUsageRequest) ProtoMessage

func (*QuerySubscriptionTrackedUsageRequest) ProtoMessage()

func (*QuerySubscriptionTrackedUsageRequest) Reset

func (*QuerySubscriptionTrackedUsageRequest) Size

func (*QuerySubscriptionTrackedUsageRequest) String

func (*QuerySubscriptionTrackedUsageRequest) Unmarshal

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

func (*QuerySubscriptionTrackedUsageRequest) XXX_DiscardUnknown

func (m *QuerySubscriptionTrackedUsageRequest) XXX_DiscardUnknown()

func (*QuerySubscriptionTrackedUsageRequest) XXX_Marshal

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

func (*QuerySubscriptionTrackedUsageRequest) XXX_Merge

func (*QuerySubscriptionTrackedUsageRequest) XXX_Size

func (*QuerySubscriptionTrackedUsageRequest) XXX_Unmarshal

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

type QuerySubscriptionTrackedUsageResponse

type QuerySubscriptionTrackedUsageResponse struct {
	Subscription *Subscription    `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
	Usage        []*TrackedCuInfo `protobuf:"bytes,2,rep,name=usage,proto3" json:"usage,omitempty"`
	TotalUsage   uint64           `protobuf:"varint,3,opt,name=total_usage,json=totalUsage,proto3" json:"total_usage,omitempty"`
}

func (*QuerySubscriptionTrackedUsageResponse) Descriptor

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

func (*QuerySubscriptionTrackedUsageResponse) GetSubscription

func (*QuerySubscriptionTrackedUsageResponse) GetTotalUsage

func (m *QuerySubscriptionTrackedUsageResponse) GetTotalUsage() uint64

func (*QuerySubscriptionTrackedUsageResponse) GetUsage

func (*QuerySubscriptionTrackedUsageResponse) Marshal

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

func (*QuerySubscriptionTrackedUsageResponse) MarshalTo

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

func (*QuerySubscriptionTrackedUsageResponse) MarshalToSizedBuffer

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

func (*QuerySubscriptionTrackedUsageResponse) ProtoMessage

func (*QuerySubscriptionTrackedUsageResponse) ProtoMessage()

func (*QuerySubscriptionTrackedUsageResponse) Reset

func (*QuerySubscriptionTrackedUsageResponse) Size

func (*QuerySubscriptionTrackedUsageResponse) String

func (*QuerySubscriptionTrackedUsageResponse) Unmarshal

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

func (*QuerySubscriptionTrackedUsageResponse) XXX_DiscardUnknown

func (m *QuerySubscriptionTrackedUsageResponse) XXX_DiscardUnknown()

func (*QuerySubscriptionTrackedUsageResponse) XXX_Marshal

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

func (*QuerySubscriptionTrackedUsageResponse) XXX_Merge

func (*QuerySubscriptionTrackedUsageResponse) XXX_Size

func (*QuerySubscriptionTrackedUsageResponse) XXX_Unmarshal

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

type RewardsKeeper

type RewardsKeeper interface {
	AggregateRewards(ctx sdk.Context, provider, chainid string, adjustment sdk.Dec, rewards math.Int)
	MaxRewardBoost(ctx sdk.Context) (res uint64)
	ContributeToValidatorsAndCommunityPool(ctx sdk.Context, reward sdk.Coin, senderModule string) (updatedReward sdk.Coin, err error)
	FundCommunityPoolFromModule(ctx sdk.Context, amount sdk.Coins, senderModule string) error
	IsIprpcSubscription(ctx sdk.Context, address string) bool
	AggregateCU(ctx sdk.Context, subscription, provider string, chainID string, cu uint64)
	CalculateValidatorsAndCommunityParticipationRewards(ctx sdk.Context, reward sdk.Coin) (validatorsCoins sdk.Coins, communityCoins sdk.Coins, err error)
	TotalPoolTokens(ctx sdk.Context, pool rewardstypes.Pool) sdk.Coins
	SpecEmissionParts(ctx sdk.Context) (emissions []rewardstypes.SpecEmissionPart)
	SpecTotalPayout(ctx sdk.Context, totalMonthlyPayout math.Int, totalProvidersBaseRewards sdk.Dec, spec rewardstypes.SpecEmissionPart) math.LegacyDec
	GetIprpcRewardsCurrentId(ctx sdk.Context) uint64
	GetIprpcReward(ctx sdk.Context, id uint64) (val rewardstypes.IprpcReward, found bool)
	AllocationPoolMonthsLeft(ctx sdk.Context) int64
	GetCommunityTax(ctx sdk.Context) math.LegacyDec
}

type SpecKeeper

type SpecKeeper interface {
	GetContributorReward(ctx sdk.Context, chainId string) (contributors []sdk.AccAddress, percentage math.LegacyDec)
}

type StakingKeeper

type StakingKeeper interface {
	BondDenom(ctx sdk.Context) string
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
	GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation stakingtypes.Delegation, found bool)
	GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator
}

type Subscription

type Subscription struct {
	Creator             string              `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Consumer            string              `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"`
	Block               uint64              `protobuf:"varint,3,opt,name=block,proto3" json:"block,omitempty"`
	PlanIndex           string              `protobuf:"bytes,4,opt,name=plan_index,json=planIndex,proto3" json:"plan_index,omitempty"`
	PlanBlock           uint64              `protobuf:"varint,5,opt,name=plan_block,json=planBlock,proto3" json:"plan_block,omitempty"`
	DurationBought      uint64              `protobuf:"varint,6,opt,name=duration_bought,json=durationBought,proto3" json:"duration_bought,omitempty"`
	DurationLeft        uint64              `protobuf:"varint,7,opt,name=duration_left,json=durationLeft,proto3" json:"duration_left,omitempty"`
	MonthExpiryTime     uint64              `protobuf:"varint,8,opt,name=month_expiry_time,json=monthExpiryTime,proto3" json:"month_expiry_time,omitempty"`
	MonthCuTotal        uint64              `protobuf:"varint,10,opt,name=month_cu_total,json=monthCuTotal,proto3" json:"month_cu_total,omitempty"`
	MonthCuLeft         uint64              `protobuf:"varint,11,opt,name=month_cu_left,json=monthCuLeft,proto3" json:"month_cu_left,omitempty"`
	Cluster             string              `protobuf:"bytes,13,opt,name=cluster,proto3" json:"cluster,omitempty"`
	DurationTotal       uint64              `protobuf:"varint,14,opt,name=duration_total,json=durationTotal,proto3" json:"duration_total,omitempty"`
	FutureSubscription  *FutureSubscription `protobuf:"bytes,16,opt,name=future_subscription,json=futureSubscription,proto3" json:"future_subscription,omitempty"`
	AutoRenewalNextPlan string              `protobuf:"bytes,17,opt,name=auto_renewal_next_plan,json=autoRenewalNextPlan,proto3" json:"auto_renewal_next_plan,omitempty"`
	Credit              types.Coin          `protobuf:"bytes,18,opt,name=credit,proto3" json:"credit"`
}

func (*Subscription) Descriptor

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

func (*Subscription) GetAutoRenewalNextPlan

func (m *Subscription) GetAutoRenewalNextPlan() string

func (*Subscription) GetBlock

func (m *Subscription) GetBlock() uint64

func (*Subscription) GetCluster

func (m *Subscription) GetCluster() string

func (*Subscription) GetConsumer

func (m *Subscription) GetConsumer() string

func (*Subscription) GetCreator

func (m *Subscription) GetCreator() string

func (*Subscription) GetCredit

func (m *Subscription) GetCredit() types.Coin

func (*Subscription) GetDurationBought

func (m *Subscription) GetDurationBought() uint64

func (*Subscription) GetDurationLeft

func (m *Subscription) GetDurationLeft() uint64

func (*Subscription) GetDurationTotal

func (m *Subscription) GetDurationTotal() uint64

func (*Subscription) GetFutureSubscription

func (m *Subscription) GetFutureSubscription() *FutureSubscription

func (*Subscription) GetMonthCuLeft

func (m *Subscription) GetMonthCuLeft() uint64

func (*Subscription) GetMonthCuTotal

func (m *Subscription) GetMonthCuTotal() uint64

func (*Subscription) GetMonthExpiryTime

func (m *Subscription) GetMonthExpiryTime() uint64

func (*Subscription) GetPlanBlock

func (m *Subscription) GetPlanBlock() uint64

func (*Subscription) GetPlanIndex

func (m *Subscription) GetPlanIndex() string

func (Subscription) IsAutoRenewalOn

func (sub Subscription) IsAutoRenewalOn() bool

func (*Subscription) Marshal

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

func (*Subscription) MarshalTo

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

func (*Subscription) MarshalToSizedBuffer

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

func (*Subscription) ProtoMessage

func (*Subscription) ProtoMessage()

func (*Subscription) Reset

func (m *Subscription) Reset()

func (*Subscription) Size

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

func (*Subscription) String

func (m *Subscription) String() string

func (*Subscription) Unmarshal

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

func (Subscription) ValidateSubscription

func (sub Subscription) ValidateSubscription() error

ValidateSubscription validates a subscription object fields

func (*Subscription) XXX_DiscardUnknown

func (m *Subscription) XXX_DiscardUnknown()

func (*Subscription) XXX_Marshal

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

func (*Subscription) XXX_Merge

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

func (*Subscription) XXX_Size

func (m *Subscription) XXX_Size() int

func (*Subscription) XXX_Unmarshal

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

type TimerExpiryInfo

type TimerExpiryInfo struct {
	Consumer    string `protobuf:"bytes,1,opt,name=consumer,proto3" json:"consumer,omitempty"`
	MonthExpiry uint64 `protobuf:"varint,2,opt,name=month_expiry,json=monthExpiry,proto3" json:"month_expiry,omitempty"`
}

func (*TimerExpiryInfo) Descriptor

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

func (*TimerExpiryInfo) GetConsumer

func (m *TimerExpiryInfo) GetConsumer() string

func (*TimerExpiryInfo) GetMonthExpiry

func (m *TimerExpiryInfo) GetMonthExpiry() uint64

func (*TimerExpiryInfo) Marshal

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

func (*TimerExpiryInfo) MarshalTo

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

func (*TimerExpiryInfo) MarshalToSizedBuffer

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

func (*TimerExpiryInfo) ProtoMessage

func (*TimerExpiryInfo) ProtoMessage()

func (*TimerExpiryInfo) Reset

func (m *TimerExpiryInfo) Reset()

func (*TimerExpiryInfo) Size

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

func (*TimerExpiryInfo) String

func (m *TimerExpiryInfo) String() string

func (*TimerExpiryInfo) Unmarshal

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

func (*TimerExpiryInfo) XXX_DiscardUnknown

func (m *TimerExpiryInfo) XXX_DiscardUnknown()

func (*TimerExpiryInfo) XXX_Marshal

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

func (*TimerExpiryInfo) XXX_Merge

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

func (*TimerExpiryInfo) XXX_Size

func (m *TimerExpiryInfo) XXX_Size() int

func (*TimerExpiryInfo) XXX_Unmarshal

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

type TimerStoreKeeper

type TimerStoreKeeper interface {
	NewTimerStoreBeginBlock(storeKey storetypes.StoreKey, prefix string) *timerstoretypes.TimerStore
	NewTimerStoreEndBlock(storeKey storetypes.StoreKey, prefix string) *timerstoretypes.TimerStore
}

type TrackedCu

type TrackedCu struct {
	Cu uint64 `protobuf:"varint,1,opt,name=cu,proto3" json:"cu,omitempty"`
}

func (*TrackedCu) Descriptor

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

func (*TrackedCu) GetCu

func (m *TrackedCu) GetCu() uint64

func (*TrackedCu) Marshal

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

func (*TrackedCu) MarshalTo

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

func (*TrackedCu) MarshalToSizedBuffer

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

func (*TrackedCu) ProtoMessage

func (*TrackedCu) ProtoMessage()

func (*TrackedCu) Reset

func (m *TrackedCu) Reset()

func (*TrackedCu) Size

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

func (*TrackedCu) String

func (m *TrackedCu) String() string

func (*TrackedCu) Unmarshal

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

func (*TrackedCu) XXX_DiscardUnknown

func (m *TrackedCu) XXX_DiscardUnknown()

func (*TrackedCu) XXX_Marshal

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

func (*TrackedCu) XXX_Merge

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

func (*TrackedCu) XXX_Size

func (m *TrackedCu) XXX_Size() int

func (*TrackedCu) XXX_Unmarshal

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

type TrackedCuInfo

type TrackedCuInfo struct {
	Provider  string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	ChainID   string `protobuf:"bytes,2,opt,name=chainID,proto3" json:"chainID,omitempty"`
	TrackedCu uint64 `protobuf:"varint,3,opt,name=trackedCu,proto3" json:"trackedCu,omitempty"`
	Block     uint64 `protobuf:"varint,4,opt,name=block,proto3" json:"block,omitempty"`
}

func (*TrackedCuInfo) Descriptor

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

func (*TrackedCuInfo) GetBlock

func (m *TrackedCuInfo) GetBlock() uint64

func (*TrackedCuInfo) GetChainID

func (m *TrackedCuInfo) GetChainID() string

func (*TrackedCuInfo) GetProvider

func (m *TrackedCuInfo) GetProvider() string

func (*TrackedCuInfo) GetTrackedCu

func (m *TrackedCuInfo) GetTrackedCu() uint64

func (*TrackedCuInfo) Marshal

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

func (*TrackedCuInfo) MarshalTo

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

func (*TrackedCuInfo) MarshalToSizedBuffer

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

func (*TrackedCuInfo) ProtoMessage

func (*TrackedCuInfo) ProtoMessage()

func (*TrackedCuInfo) Reset

func (m *TrackedCuInfo) Reset()

func (*TrackedCuInfo) Size

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

func (*TrackedCuInfo) String

func (m *TrackedCuInfo) String() string

func (*TrackedCuInfo) Unmarshal

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

func (*TrackedCuInfo) XXX_DiscardUnknown

func (m *TrackedCuInfo) XXX_DiscardUnknown()

func (*TrackedCuInfo) XXX_Marshal

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

func (*TrackedCuInfo) XXX_Merge

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

func (*TrackedCuInfo) XXX_Size

func (m *TrackedCuInfo) XXX_Size() int

func (*TrackedCuInfo) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddProject

func (*UnimplementedMsgServer) AutoRenewal

func (*UnimplementedMsgServer) Buy

func (*UnimplementedMsgServer) DelProject

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Current

func (*UnimplementedQueryServer) EstimatedRewards

func (*UnimplementedQueryServer) List

func (*UnimplementedQueryServer) ListProjects

func (*UnimplementedQueryServer) NextToMonthExpiry

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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