keeper

package
v7.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState

ExportGenesis returns the module's exported genesis.

func HandleAddDefaultSubscriptionProposal

func HandleAddDefaultSubscriptionProposal(ctx sdk.Context, k Keeper, p types.AddDefaultSubscriptionProposal) error

func HandleAddPublisherProposal

func HandleAddPublisherProposal(ctx sdk.Context, k Keeper, p types.AddPublisherProposal) error

HandleAddPublisherProposal is a handler for executing a passed community publisher addition proposal

func HandleRemoveDefaultSubscriptionProposal

func HandleRemoveDefaultSubscriptionProposal(ctx sdk.Context, k Keeper, p types.RemoveDefaultSubscriptionProposal) error

func HandleRemovePublisherProposal

func HandleRemovePublisherProposal(ctx sdk.Context, k Keeper, p types.RemovePublisherProposal) error

HandleRemovePublisherProposal is a handler for executing a passed community publisher removal proposal

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, gs types.GenesisState)

InitGenesis initializes the module's state from a provided genesis state.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	paramSpace paramtypes.Subspace,
	stakingKeeper types.StakingKeeper,
	gravityKeeper types.GravityKeeper,

) Keeper

func (Keeper) BeginBlocker

func (k Keeper) BeginBlocker(ctx sdk.Context)

func (Keeper) DeleteDefaultSubscription

func (k Keeper) DeleteDefaultSubscription(ctx sdk.Context, subscriptionID string)

func (Keeper) DeletePublisher

func (k Keeper) DeletePublisher(ctx sdk.Context, publisherDomain string)

func (Keeper) DeletePublisherIntent

func (k Keeper) DeletePublisherIntent(ctx sdk.Context, subscriptionID string, publisherDomain string)

func (Keeper) DeleteSubscriber

func (k Keeper) DeleteSubscriber(ctx sdk.Context, subscriberAddress sdk.AccAddress)

func (Keeper) DeleteSubscriberIntent

func (k Keeper) DeleteSubscriberIntent(ctx sdk.Context, subscriptionID string, subscriberAddress sdk.AccAddress, publisherDomain string)

func (Keeper) EndBlocker

func (k Keeper) EndBlocker(ctx sdk.Context)

func (Keeper) GetDefaultSubscription

func (k Keeper) GetDefaultSubscription(ctx sdk.Context, subscriptionID string) (defaultSubscription types.DefaultSubscription, found bool)

func (Keeper) GetDefaultSubscriptions

func (k Keeper) GetDefaultSubscriptions(ctx sdk.Context) (defaultSubscriptions []*types.DefaultSubscription)

func (Keeper) GetParams

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

func (Keeper) GetPublisher

func (k Keeper) GetPublisher(ctx sdk.Context, publisherDomain string) (publisher types.Publisher, found bool)

func (Keeper) GetPublisherIntent

func (k Keeper) GetPublisherIntent(ctx sdk.Context, subscriptionID string, publisherDomain string) (publisherIntent types.PublisherIntent, found bool)

func (Keeper) GetPublisherIntents

func (k Keeper) GetPublisherIntents(ctx sdk.Context) (publisherIntents []*types.PublisherIntent)

func (Keeper) GetPublisherIntentsByPublisherDomain

func (k Keeper) GetPublisherIntentsByPublisherDomain(ctx sdk.Context, publisherDomain string) (publisherIntents []*types.PublisherIntent)

func (Keeper) GetPublisherIntentsBySubscriptionID

func (k Keeper) GetPublisherIntentsBySubscriptionID(ctx sdk.Context, subscriptionID string) (publisherIntents []*types.PublisherIntent)

func (Keeper) GetPublishers

func (k Keeper) GetPublishers(ctx sdk.Context) (publishers []*types.Publisher)

func (Keeper) GetSubscriber

func (k Keeper) GetSubscriber(ctx sdk.Context, subscriberAddress sdk.AccAddress) (subscriber types.Subscriber, found bool)

func (Keeper) GetSubscriberIntent

func (k Keeper) GetSubscriberIntent(ctx sdk.Context, subscriptionID string, subscriberAddress sdk.AccAddress) (subscriberIntent types.SubscriberIntent, found bool)

func (Keeper) GetSubscriberIntents

func (k Keeper) GetSubscriberIntents(ctx sdk.Context) (subscriberIntents []*types.SubscriberIntent)

func (Keeper) GetSubscriberIntentsByPublisherDomain

func (k Keeper) GetSubscriberIntentsByPublisherDomain(ctx sdk.Context, publisherDomain string) (subscriberIntents []*types.SubscriberIntent)

func (Keeper) GetSubscriberIntentsBySubscriberAddress

func (k Keeper) GetSubscriberIntentsBySubscriberAddress(ctx sdk.Context, subscriberAddress sdk.AccAddress) (subscriberIntents []*types.SubscriberIntent)

func (Keeper) GetSubscriberIntentsBySubscriptionID

func (k Keeper) GetSubscriberIntentsBySubscriptionID(ctx sdk.Context, subscriptionID string) (subscriberIntents []*types.SubscriberIntent)

func (Keeper) GetSubscribers

func (k Keeper) GetSubscribers(ctx sdk.Context) (subscribers []*types.Subscriber)

func (Keeper) GetValidatorSubscribers

func (k Keeper) GetValidatorSubscribers(ctx sdk.Context) (subscribers []*types.Subscriber)

func (Keeper) IterateDefaultSubscriptions

func (k Keeper) IterateDefaultSubscriptions(ctx sdk.Context, handler func(defaultSubscription types.DefaultSubscription) (stop bool))

func (Keeper) IteratePublisherIntents

func (k Keeper) IteratePublisherIntents(ctx sdk.Context, handler func(publisherIntent types.PublisherIntent) (stop bool))

func (Keeper) IteratePublishers

func (k Keeper) IteratePublishers(ctx sdk.Context, handler func(publisher types.Publisher) (stop bool))

func (Keeper) IterateSubscriberIntents

func (k Keeper) IterateSubscriberIntents(ctx sdk.Context, handler func(subscriberAddress sdk.AccAddress, subscriberIntent types.SubscriberIntent) (stop bool))

func (Keeper) IterateSubscribers

func (k Keeper) IterateSubscribers(ctx sdk.Context, handler func(subscriberAddress sdk.AccAddress, subscriber types.Subscriber) (stop bool))

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) SetDefaultSubscription

func (k Keeper) SetDefaultSubscription(ctx sdk.Context, defaultSubscription types.DefaultSubscription)

func (Keeper) SetParams

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

func (Keeper) SetPublisher

func (k Keeper) SetPublisher(ctx sdk.Context, publisher types.Publisher)

func (Keeper) SetPublisherIntent

func (k Keeper) SetPublisherIntent(ctx sdk.Context, publisherIntent types.PublisherIntent)

func (Keeper) SetSubscriber

func (k Keeper) SetSubscriber(ctx sdk.Context, subscriberAddress sdk.AccAddress, subscriber types.Subscriber)

func (Keeper) SetSubscriberIntent

func (k Keeper) SetSubscriberIntent(ctx sdk.Context, subscriberAddress sdk.AccAddress, subscriberIntent types.SubscriberIntent)

Jump to

Keyboard shortcuts

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