keeper

package
v12.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServiceServer

func NewMsgServiceServer(k Keeper) types.MsgServiceServer

NewMsgServiceServer creates a new instance of `types.MsgServiceServer` using the provided Keeper.

func NewQueryServiceServer

func NewQueryServiceServer(k Keeper) types.QueryServiceServer

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, key storetypes.StoreKey, params paramstypes.Subspace) Keeper

func (*Keeper) ActiveDuration

func (k *Keeper) ActiveDuration(ctx sdk.Context) (v time.Duration)

func (*Keeper) CreateSubscriptionForNode

func (k *Keeper) CreateSubscriptionForNode(ctx sdk.Context, accAddr sdk.AccAddress, nodeAddr hubtypes.NodeAddress, gigabytes, hours int64, denom string) (*subscriptiontypes.NodeSubscription, error)

func (*Keeper) DeleteActiveNode

func (k *Keeper) DeleteActiveNode(ctx sdk.Context, addr hubtypes.NodeAddress)

func (*Keeper) DeleteInactiveNode

func (k *Keeper) DeleteInactiveNode(ctx sdk.Context, addr hubtypes.NodeAddress)

func (*Keeper) DeleteNodeForInactiveAt

func (k *Keeper) DeleteNodeForInactiveAt(ctx sdk.Context, at time.Time, addr hubtypes.NodeAddress)

func (*Keeper) DeleteNodeForPlan

func (k *Keeper) DeleteNodeForPlan(ctx sdk.Context, id uint64, addr hubtypes.NodeAddress)

func (*Keeper) Deposit

func (k *Keeper) Deposit(ctx sdk.Context) (v sdk.Coin)

func (*Keeper) EndBlock

func (k *Keeper) EndBlock(ctx sdk.Context) []abcitypes.ValidatorUpdate

func (*Keeper) FundCommunityPool

func (k *Keeper) FundCommunityPool(ctx sdk.Context, fromAddr sdk.AccAddress, coin sdk.Coin) error

func (*Keeper) GetActiveNode

func (k *Keeper) GetActiveNode(ctx sdk.Context, addr hubtypes.NodeAddress) (v types.Node, found bool)

func (*Keeper) GetInactiveNode

func (k *Keeper) GetInactiveNode(ctx sdk.Context, addr hubtypes.NodeAddress) (v types.Node, found bool)

func (*Keeper) GetNode

func (k *Keeper) GetNode(ctx sdk.Context, addr hubtypes.NodeAddress) (node types.Node, found bool)

func (*Keeper) GetNodes

func (k *Keeper) GetNodes(ctx sdk.Context) (items types.Nodes)

func (*Keeper) GetNodesForPlan

func (k *Keeper) GetNodesForPlan(ctx sdk.Context, id uint64) (items types.Nodes)

func (*Keeper) GetParams

func (k *Keeper) GetParams(ctx sdk.Context) types.Params

func (*Keeper) HasActiveNode

func (k *Keeper) HasActiveNode(ctx sdk.Context, addr hubtypes.NodeAddress) bool

func (*Keeper) HasInactiveNode

func (k *Keeper) HasInactiveNode(ctx sdk.Context, addr hubtypes.NodeAddress) bool

func (*Keeper) HasNode

func (k *Keeper) HasNode(ctx sdk.Context, addr hubtypes.NodeAddress) bool

func (*Keeper) HasNodeForPlan

func (k *Keeper) HasNodeForPlan(ctx sdk.Context, id uint64, addr hubtypes.NodeAddress) bool

func (*Keeper) HasProvider

func (k *Keeper) HasProvider(ctx sdk.Context, addr hubtypes.ProvAddress) bool

func (*Keeper) IsMaxGigabytePricesModified

func (k *Keeper) IsMaxGigabytePricesModified(ctx sdk.Context) bool

func (*Keeper) IsMaxHourlyPricesModified

func (k *Keeper) IsMaxHourlyPricesModified(ctx sdk.Context) bool

func (*Keeper) IsMinGigabytePricesModified

func (k *Keeper) IsMinGigabytePricesModified(ctx sdk.Context) bool

func (*Keeper) IsMinHourlyPricesModified

func (k *Keeper) IsMinHourlyPricesModified(ctx sdk.Context) bool

func (*Keeper) IsValidGigabytePrices

func (k *Keeper) IsValidGigabytePrices(ctx sdk.Context, prices sdk.Coins) bool

func (*Keeper) IsValidHourlyPrices

func (k *Keeper) IsValidHourlyPrices(ctx sdk.Context, prices sdk.Coins) bool

func (*Keeper) IsValidSubscriptionGigabytes

func (k *Keeper) IsValidSubscriptionGigabytes(ctx sdk.Context, gigabytes int64) bool

func (*Keeper) IsValidSubscriptionHours

func (k *Keeper) IsValidSubscriptionHours(ctx sdk.Context, hours int64) bool

func (*Keeper) IterateNodes

func (k *Keeper) IterateNodes(ctx sdk.Context, fn func(index int, item types.Node) (stop bool))

func (*Keeper) IterateNodesForInactiveAt

func (k *Keeper) IterateNodesForInactiveAt(ctx sdk.Context, at time.Time, fn func(index int, item types.Node) (stop bool))

func (*Keeper) Logger

func (k *Keeper) Logger(ctx sdk.Context) log.Logger

func (*Keeper) MaxGigabytePrices

func (k *Keeper) MaxGigabytePrices(ctx sdk.Context) (v sdk.Coins)

func (*Keeper) MaxHourlyPrices

func (k *Keeper) MaxHourlyPrices(ctx sdk.Context) (v sdk.Coins)

func (*Keeper) MaxSubscriptionGigabytes

func (k *Keeper) MaxSubscriptionGigabytes(ctx sdk.Context) (v int64)

func (*Keeper) MaxSubscriptionHours

func (k *Keeper) MaxSubscriptionHours(ctx sdk.Context) (v int64)

func (*Keeper) MinGigabytePrices

func (k *Keeper) MinGigabytePrices(ctx sdk.Context) (v sdk.Coins)

func (*Keeper) MinHourlyPrices

func (k *Keeper) MinHourlyPrices(ctx sdk.Context) (v sdk.Coins)

func (*Keeper) MinSubscriptionGigabytes

func (k *Keeper) MinSubscriptionGigabytes(ctx sdk.Context) (v int64)

func (*Keeper) MinSubscriptionHours

func (k *Keeper) MinSubscriptionHours(ctx sdk.Context) (v int64)

func (*Keeper) SetActiveNode

func (k *Keeper) SetActiveNode(ctx sdk.Context, node types.Node)

func (*Keeper) SetInactiveNode

func (k *Keeper) SetInactiveNode(ctx sdk.Context, node types.Node)

func (*Keeper) SetNode

func (k *Keeper) SetNode(ctx sdk.Context, node types.Node)

func (*Keeper) SetNodeForInactiveAt

func (k *Keeper) SetNodeForInactiveAt(ctx sdk.Context, at time.Time, addr hubtypes.NodeAddress)

func (*Keeper) SetNodeForPlan

func (k *Keeper) SetNodeForPlan(ctx sdk.Context, id uint64, addr hubtypes.NodeAddress)

func (*Keeper) SetParams

func (k *Keeper) SetParams(ctx sdk.Context, params types.Params)

func (*Keeper) StakingShare

func (k *Keeper) StakingShare(ctx sdk.Context) (v sdkmath.LegacyDec)

func (*Keeper) Store

func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore

func (*Keeper) WithDistributionKeeper

func (k *Keeper) WithDistributionKeeper(keeper expected.DistributionKeeper)

func (*Keeper) WithProviderKeeper

func (k *Keeper) WithProviderKeeper(keeper expected.ProviderKeeper)

func (*Keeper) WithSubscriptionKeeper

func (k *Keeper) WithSubscriptionKeeper(keeper expected.SubscriptionKeeper)

Jump to

Keyboard shortcuts

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