Documentation ¶
Index ¶
- Constants
- func NewQuerier(k Keeper) sdk.Querier
- func ValidateVariables() sdk.Error
- type Keeper
- func (k Keeper) DiscountIdExists(ctx sdk.Context, templateId string, discountId sdk.Uint) (bool, sdk.Error)
- func (k Keeper) EffectPayment(ctx sdk.Context, bankKeeper bank.Keeper, contractId string) (effected bool, err sdk.Error)
- func (k Keeper) EffectSubscriptionPayment(ctx sdk.Context, subscriptionId string) sdk.Error
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPaymentContract(ctx sdk.Context, contractId string) (types.PaymentContract, sdk.Error)
- func (k Keeper) GetPaymentContractIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetPaymentTemplate(ctx sdk.Context, templateId string) (types.PaymentTemplate, sdk.Error)
- func (k Keeper) GetPaymentTemplateIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetSubscription(ctx sdk.Context, subscriptionId string) (types.Subscription, sdk.Error)
- func (k Keeper) GetSubscriptionIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GrantDiscount(ctx sdk.Context, contractId string, discountId sdk.Uint) sdk.Error
- func (k Keeper) MustGetPaymentContractByKey(ctx sdk.Context, key []byte) types.PaymentContract
- func (k Keeper) MustGetPaymentTemplateByKey(ctx sdk.Context, key []byte) types.PaymentTemplate
- func (k Keeper) MustGetSubscriptionByKey(ctx sdk.Context, key []byte) types.Subscription
- func (k Keeper) PaymentContractExists(ctx sdk.Context, contractId string) bool
- func (k Keeper) PaymentContractIdReserved(id string) bool
- func (k Keeper) PaymentTemplateExists(ctx sdk.Context, templateId string) bool
- func (k Keeper) PaymentTemplateIdReserved(id string) bool
- func (k Keeper) RevokeDiscount(ctx sdk.Context, contractId string) sdk.Error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPaymentContract(ctx sdk.Context, contract types.PaymentContract)
- func (k Keeper) SetPaymentContractAuthorised(ctx sdk.Context, contractId string, authorised bool) sdk.Error
- func (k Keeper) SetPaymentTemplate(ctx sdk.Context, template types.PaymentTemplate)
- func (k Keeper) SetSubscription(ctx sdk.Context, subscription types.Subscription)
- func (k Keeper) SubscriptionExists(ctx sdk.Context, subscriptionId string) bool
- func (k Keeper) SubscriptionIdReserved(id string) bool
Constants ¶
View Source
const ( QueryParams = "queryParams" QueryPaymentTemplate = "queryPaymentTemplate" QueryPaymentContract = "queryPaymentContract" QuerySubscription = "querySubscription" )
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func ValidateVariables ¶
Types ¶
type Keeper ¶
func (Keeper) DiscountIdExists ¶
func (Keeper) EffectPayment ¶
func (Keeper) EffectSubscriptionPayment ¶
func (Keeper) GetPaymentContract ¶
func (Keeper) GetPaymentContractIterator ¶
func (Keeper) GetPaymentTemplate ¶
func (Keeper) GetPaymentTemplateIterator ¶
func (Keeper) GetSubscription ¶
func (Keeper) GetSubscriptionIterator ¶
func (Keeper) GrantDiscount ¶
func (Keeper) MustGetPaymentContractByKey ¶
func (Keeper) MustGetPaymentTemplateByKey ¶
func (Keeper) MustGetSubscriptionByKey ¶
func (Keeper) PaymentContractExists ¶
func (Keeper) PaymentContractIdReserved ¶
func (Keeper) PaymentTemplateExists ¶
func (Keeper) PaymentTemplateIdReserved ¶
func (Keeper) RevokeDiscount ¶
func (Keeper) SetPaymentContract ¶
func (k Keeper) SetPaymentContract(ctx sdk.Context, contract types.PaymentContract)
func (Keeper) SetPaymentContractAuthorised ¶
func (Keeper) SetPaymentTemplate ¶
func (k Keeper) SetPaymentTemplate(ctx sdk.Context, template types.PaymentTemplate)
func (Keeper) SetSubscription ¶
func (k Keeper) SetSubscription(ctx sdk.Context, subscription types.Subscription)
func (Keeper) SubscriptionExists ¶
func (Keeper) SubscriptionIdReserved ¶
Click to show internal directories.
Click to hide internal directories.