Documentation ¶
Index ¶
- func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
- func HandleAddDefaultSubscriptionProposal(ctx sdk.Context, k Keeper, p types.AddDefaultSubscriptionProposal) error
- func HandleAddPublisherProposal(ctx sdk.Context, k Keeper, p types.AddPublisherProposal) error
- func HandleRemoveDefaultSubscriptionProposal(ctx sdk.Context, k Keeper, p types.RemoveDefaultSubscriptionProposal) error
- func HandleRemovePublisherProposal(ctx sdk.Context, k Keeper, p types.RemovePublisherProposal) error
- func InitGenesis(ctx sdk.Context, k Keeper, gs types.GenesisState)
- type Keeper
- func (k Keeper) AddPublisherIntent(c context.Context, msg *types.MsgAddPublisherIntentRequest) (*types.MsgAddPublisherIntentResponse, error)
- func (k Keeper) AddSubscriber(c context.Context, msg *types.MsgAddSubscriberRequest) (*types.MsgAddSubscriberResponse, error)
- func (k Keeper) AddSubscriberIntent(c context.Context, msg *types.MsgAddSubscriberIntentRequest) (*types.MsgAddSubscriberIntentResponse, error)
- func (k Keeper) BeginBlocker(ctx sdk.Context)
- func (k Keeper) DeleteDefaultSubscription(ctx sdk.Context, subscriptionID string)
- func (k Keeper) DeletePublisher(ctx sdk.Context, publisherDomain string)
- func (k Keeper) DeletePublisherIntent(ctx sdk.Context, subscriptionID string, publisherDomain string)
- func (k Keeper) DeleteSubscriber(ctx sdk.Context, subscriberAddress sdk.AccAddress)
- func (k Keeper) DeleteSubscriberIntent(ctx sdk.Context, subscriptionID string, subscriberAddress sdk.AccAddress, ...)
- func (k Keeper) EndBlocker(ctx sdk.Context)
- func (k Keeper) GetDefaultSubscription(ctx sdk.Context, subscriptionID string) (defaultSubscription types.DefaultSubscription, found bool)
- func (k Keeper) GetDefaultSubscriptions(ctx sdk.Context) (defaultSubscriptions []*types.DefaultSubscription)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPublisher(ctx sdk.Context, publisherDomain string) (publisher types.Publisher, found bool)
- func (k Keeper) GetPublisherIntent(ctx sdk.Context, subscriptionID string, publisherDomain string) (publisherIntent types.PublisherIntent, found bool)
- func (k Keeper) GetPublisherIntents(ctx sdk.Context) (publisherIntents []*types.PublisherIntent)
- func (k Keeper) GetPublisherIntentsByPublisherDomain(ctx sdk.Context, publisherDomain string) (publisherIntents []*types.PublisherIntent)
- func (k Keeper) GetPublisherIntentsBySubscriptionID(ctx sdk.Context, subscriptionID string) (publisherIntents []*types.PublisherIntent)
- func (k Keeper) GetPublishers(ctx sdk.Context) (publishers []*types.Publisher)
- func (k Keeper) GetSubscriber(ctx sdk.Context, subscriberAddress sdk.AccAddress) (subscriber types.Subscriber, found bool)
- func (k Keeper) GetSubscriberIntent(ctx sdk.Context, subscriptionID string, subscriberAddress sdk.AccAddress) (subscriberIntent types.SubscriberIntent, found bool)
- func (k Keeper) GetSubscriberIntents(ctx sdk.Context) (subscriberIntents []*types.SubscriberIntent)
- func (k Keeper) GetSubscriberIntentsByPublisherDomain(ctx sdk.Context, publisherDomain string) (subscriberIntents []*types.SubscriberIntent)
- func (k Keeper) GetSubscriberIntentsBySubscriberAddress(ctx sdk.Context, subscriberAddress sdk.AccAddress) (subscriberIntents []*types.SubscriberIntent)
- func (k Keeper) GetSubscriberIntentsBySubscriptionID(ctx sdk.Context, subscriptionID string) (subscriberIntents []*types.SubscriberIntent)
- func (k Keeper) GetSubscribers(ctx sdk.Context) (subscribers []*types.Subscriber)
- func (k Keeper) GetValidatorSubscribers(ctx sdk.Context) (subscribers []*types.Subscriber)
- func (k Keeper) IterateDefaultSubscriptions(ctx sdk.Context, ...)
- func (k Keeper) IteratePublisherIntents(ctx sdk.Context, ...)
- func (k Keeper) IteratePublishers(ctx sdk.Context, handler func(publisher types.Publisher) (stop bool))
- func (k Keeper) IterateSubscriberIntents(ctx sdk.Context, ...)
- func (k Keeper) IterateSubscribers(ctx sdk.Context, ...)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) QueryDefaultSubscription(c context.Context, req *types.QueryDefaultSubscriptionRequest) (*types.QueryDefaultSubscriptionResponse, error)
- func (k Keeper) QueryDefaultSubscriptions(c context.Context, _ *types.QueryDefaultSubscriptionsRequest) (*types.QueryDefaultSubscriptionsResponse, error)
- func (k Keeper) QueryPublisher(c context.Context, req *types.QueryPublisherRequest) (*types.QueryPublisherResponse, error)
- func (k Keeper) QueryPublisherIntent(c context.Context, req *types.QueryPublisherIntentRequest) (*types.QueryPublisherIntentResponse, error)
- func (k Keeper) QueryPublisherIntents(c context.Context, req *types.QueryPublisherIntentsRequest) (*types.QueryPublisherIntentsResponse, error)
- func (k Keeper) QueryPublisherIntentsByPublisherDomain(c context.Context, req *types.QueryPublisherIntentsByPublisherDomainRequest) (*types.QueryPublisherIntentsByPublisherDomainResponse, error)
- func (k Keeper) QueryPublisherIntentsBySubscriptionID(c context.Context, req *types.QueryPublisherIntentsBySubscriptionIDRequest) (*types.QueryPublisherIntentsBySubscriptionIDResponse, error)
- func (k Keeper) QueryPublishers(c context.Context, _ *types.QueryPublishersRequest) (*types.QueryPublishersResponse, error)
- func (k Keeper) QuerySubscriber(c context.Context, req *types.QuerySubscriberRequest) (*types.QuerySubscriberResponse, error)
- func (k Keeper) QuerySubscriberIntent(c context.Context, req *types.QuerySubscriberIntentRequest) (*types.QuerySubscriberIntentResponse, error)
- func (k Keeper) QuerySubscriberIntents(c context.Context, _ *types.QuerySubscriberIntentsRequest) (*types.QuerySubscriberIntentsResponse, error)
- func (k Keeper) QuerySubscriberIntentsByPublisherDomain(c context.Context, req *types.QuerySubscriberIntentsByPublisherDomainRequest) (*types.QuerySubscriberIntentsByPublisherDomainResponse, error)
- func (k Keeper) QuerySubscriberIntentsBySubscriberAddress(c context.Context, req *types.QuerySubscriberIntentsBySubscriberAddressRequest) (*types.QuerySubscriberIntentsBySubscriberAddressResponse, error)
- func (k Keeper) QuerySubscriberIntentsBySubscriptionID(c context.Context, req *types.QuerySubscriberIntentsBySubscriptionIDRequest) (*types.QuerySubscriberIntentsBySubscriptionIDResponse, error)
- func (k Keeper) QuerySubscribers(c context.Context, _ *types.QuerySubscribersRequest) (*types.QuerySubscribersResponse, error)
- func (k Keeper) QueryValidatorSubscribers(c context.Context, _ *types.QueryValidatorSubscribersRequest) (*types.QueryValidatorSubscribersResponse, error)
- func (k Keeper) RemovePublisher(c context.Context, msg *types.MsgRemovePublisherRequest) (*types.MsgRemovePublisherResponse, error)
- func (k Keeper) RemovePublisherIntent(c context.Context, msg *types.MsgRemovePublisherIntentRequest) (*types.MsgRemovePublisherIntentResponse, error)
- func (k Keeper) RemoveSubscriber(c context.Context, msg *types.MsgRemoveSubscriberRequest) (*types.MsgRemoveSubscriberResponse, error)
- func (k Keeper) RemoveSubscriberIntent(c context.Context, msg *types.MsgRemoveSubscriberIntentRequest) (*types.MsgRemoveSubscriberIntentResponse, error)
- func (k Keeper) SetDefaultSubscription(ctx sdk.Context, defaultSubscription types.DefaultSubscription)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPublisher(ctx sdk.Context, publisher types.Publisher)
- func (k Keeper) SetPublisherIntent(ctx sdk.Context, publisherIntent types.PublisherIntent)
- func (k Keeper) SetSubscriber(ctx sdk.Context, subscriberAddress sdk.AccAddress, subscriber types.Subscriber)
- func (k Keeper) SetSubscriberIntent(ctx sdk.Context, subscriberAddress sdk.AccAddress, ...)
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 HandleAddPublisherProposal ¶
HandleAddPublisherProposal is a handler for executing a passed community publisher addition proposal
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) AddPublisherIntent ¶
func (k Keeper) AddPublisherIntent(c context.Context, msg *types.MsgAddPublisherIntentRequest) (*types.MsgAddPublisherIntentResponse, error)
func (Keeper) AddSubscriber ¶
func (k Keeper) AddSubscriber(c context.Context, msg *types.MsgAddSubscriberRequest) (*types.MsgAddSubscriberResponse, error)
func (Keeper) AddSubscriberIntent ¶
func (k Keeper) AddSubscriberIntent(c context.Context, msg *types.MsgAddSubscriberIntentRequest) (*types.MsgAddSubscriberIntentResponse, error)
func (Keeper) BeginBlocker ¶
func (Keeper) DeleteDefaultSubscription ¶
func (Keeper) DeletePublisher ¶
func (Keeper) DeletePublisherIntent ¶
func (Keeper) DeleteSubscriber ¶
func (k Keeper) DeleteSubscriber(ctx sdk.Context, subscriberAddress sdk.AccAddress)
func (Keeper) DeleteSubscriberIntent ¶
func (Keeper) EndBlocker ¶
func (Keeper) GetDefaultSubscription ¶
func (Keeper) GetDefaultSubscriptions ¶
func (k Keeper) GetDefaultSubscriptions(ctx sdk.Context) (defaultSubscriptions []*types.DefaultSubscription)
func (Keeper) GetPublisher ¶
func (Keeper) GetPublisherIntent ¶
func (Keeper) GetPublisherIntents ¶
func (k Keeper) GetPublisherIntents(ctx sdk.Context) (publisherIntents []*types.PublisherIntent)
func (Keeper) GetPublisherIntentsByPublisherDomain ¶
func (Keeper) GetPublisherIntentsBySubscriptionID ¶
func (Keeper) GetPublishers ¶
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 (Keeper) GetSubscriberIntentsBySubscriberAddress ¶
func (k Keeper) GetSubscriberIntentsBySubscriberAddress(ctx sdk.Context, subscriberAddress sdk.AccAddress) (subscriberIntents []*types.SubscriberIntent)
func (Keeper) GetSubscriberIntentsBySubscriptionID ¶
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 (Keeper) IteratePublisherIntents ¶
func (Keeper) IteratePublishers ¶
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) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) QueryDefaultSubscription ¶
func (k Keeper) QueryDefaultSubscription(c context.Context, req *types.QueryDefaultSubscriptionRequest) (*types.QueryDefaultSubscriptionResponse, error)
func (Keeper) QueryDefaultSubscriptions ¶
func (k Keeper) QueryDefaultSubscriptions(c context.Context, _ *types.QueryDefaultSubscriptionsRequest) (*types.QueryDefaultSubscriptionsResponse, error)
func (Keeper) QueryPublisher ¶
func (k Keeper) QueryPublisher(c context.Context, req *types.QueryPublisherRequest) (*types.QueryPublisherResponse, error)
func (Keeper) QueryPublisherIntent ¶
func (k Keeper) QueryPublisherIntent(c context.Context, req *types.QueryPublisherIntentRequest) (*types.QueryPublisherIntentResponse, error)
func (Keeper) QueryPublisherIntents ¶
func (k Keeper) QueryPublisherIntents(c context.Context, req *types.QueryPublisherIntentsRequest) (*types.QueryPublisherIntentsResponse, error)
func (Keeper) QueryPublisherIntentsByPublisherDomain ¶
func (k Keeper) QueryPublisherIntentsByPublisherDomain(c context.Context, req *types.QueryPublisherIntentsByPublisherDomainRequest) (*types.QueryPublisherIntentsByPublisherDomainResponse, error)
func (Keeper) QueryPublisherIntentsBySubscriptionID ¶
func (k Keeper) QueryPublisherIntentsBySubscriptionID(c context.Context, req *types.QueryPublisherIntentsBySubscriptionIDRequest) (*types.QueryPublisherIntentsBySubscriptionIDResponse, error)
func (Keeper) QueryPublishers ¶
func (k Keeper) QueryPublishers(c context.Context, _ *types.QueryPublishersRequest) (*types.QueryPublishersResponse, error)
func (Keeper) QuerySubscriber ¶
func (k Keeper) QuerySubscriber(c context.Context, req *types.QuerySubscriberRequest) (*types.QuerySubscriberResponse, error)
func (Keeper) QuerySubscriberIntent ¶
func (k Keeper) QuerySubscriberIntent(c context.Context, req *types.QuerySubscriberIntentRequest) (*types.QuerySubscriberIntentResponse, error)
func (Keeper) QuerySubscriberIntents ¶
func (k Keeper) QuerySubscriberIntents(c context.Context, _ *types.QuerySubscriberIntentsRequest) (*types.QuerySubscriberIntentsResponse, error)
func (Keeper) QuerySubscriberIntentsByPublisherDomain ¶
func (k Keeper) QuerySubscriberIntentsByPublisherDomain(c context.Context, req *types.QuerySubscriberIntentsByPublisherDomainRequest) (*types.QuerySubscriberIntentsByPublisherDomainResponse, error)
func (Keeper) QuerySubscriberIntentsBySubscriberAddress ¶
func (k Keeper) QuerySubscriberIntentsBySubscriberAddress(c context.Context, req *types.QuerySubscriberIntentsBySubscriberAddressRequest) (*types.QuerySubscriberIntentsBySubscriberAddressResponse, error)
func (Keeper) QuerySubscriberIntentsBySubscriptionID ¶
func (k Keeper) QuerySubscriberIntentsBySubscriptionID(c context.Context, req *types.QuerySubscriberIntentsBySubscriptionIDRequest) (*types.QuerySubscriberIntentsBySubscriptionIDResponse, error)
func (Keeper) QuerySubscribers ¶
func (k Keeper) QuerySubscribers(c context.Context, _ *types.QuerySubscribersRequest) (*types.QuerySubscribersResponse, error)
func (Keeper) QueryValidatorSubscribers ¶
func (k Keeper) QueryValidatorSubscribers(c context.Context, _ *types.QueryValidatorSubscribersRequest) (*types.QueryValidatorSubscribersResponse, error)
func (Keeper) RemovePublisher ¶
func (k Keeper) RemovePublisher(c context.Context, msg *types.MsgRemovePublisherRequest) (*types.MsgRemovePublisherResponse, error)
func (Keeper) RemovePublisherIntent ¶
func (k Keeper) RemovePublisherIntent(c context.Context, msg *types.MsgRemovePublisherIntentRequest) (*types.MsgRemovePublisherIntentResponse, error)
func (Keeper) RemoveSubscriber ¶
func (k Keeper) RemoveSubscriber(c context.Context, msg *types.MsgRemoveSubscriberRequest) (*types.MsgRemoveSubscriberResponse, error)
func (Keeper) RemoveSubscriberIntent ¶
func (k Keeper) RemoveSubscriberIntent(c context.Context, msg *types.MsgRemoveSubscriberIntentRequest) (*types.MsgRemoveSubscriberIntentResponse, error)
func (Keeper) SetDefaultSubscription ¶
func (k Keeper) SetDefaultSubscription(ctx sdk.Context, defaultSubscription types.DefaultSubscription)
func (Keeper) SetPublisher ¶
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)
Click to show internal directories.
Click to hide internal directories.