keeper

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryParams          = "queryParams"
	QueryPaymentTemplate = "queryPaymentTemplate"
	QueryPaymentContract = "queryPaymentContract"
	QuerySubscription    = "querySubscription"
)

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

func ValidateVariables

func ValidateVariables() sdk.Error

Types

type Keeper

type Keeper struct {
	DidKeeper did.Keeper
	// contains filtered or unexported fields
}

func CreateTestInput

func CreateTestInput() (sdk.Context, Keeper, *codec.Codec)

func NewKeeper

func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey,
	paramSpace params.Subspace, bankKeeper bank.Keeper,
	didKeeper did.Keeper, reservedIdPrefixes []string) Keeper

func (Keeper) DiscountIdExists

func (k Keeper) DiscountIdExists(ctx sdk.Context, templateId string, discountId sdk.Uint) (bool, sdk.Error)

func (Keeper) EffectPayment

func (k Keeper) EffectPayment(ctx sdk.Context, bankKeeper bank.Keeper,
	contractId string) (effected bool, err sdk.Error)

func (Keeper) EffectSubscriptionPayment

func (k Keeper) EffectSubscriptionPayment(ctx sdk.Context, subscriptionId string) sdk.Error

func (Keeper) GetParams

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

GetParams returns the total set of payments parameters.

func (Keeper) GetPaymentContract

func (k Keeper) GetPaymentContract(ctx sdk.Context, contractId string) (types.PaymentContract, sdk.Error)

func (Keeper) GetPaymentContractIterator

func (k Keeper) GetPaymentContractIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GetPaymentTemplate

func (k Keeper) GetPaymentTemplate(ctx sdk.Context, templateId string) (types.PaymentTemplate, sdk.Error)

func (Keeper) GetPaymentTemplateIterator

func (k Keeper) GetPaymentTemplateIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GetSubscription

func (k Keeper) GetSubscription(ctx sdk.Context, subscriptionId string) (types.Subscription, sdk.Error)

func (Keeper) GetSubscriptionIterator

func (k Keeper) GetSubscriptionIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GrantDiscount

func (k Keeper) GrantDiscount(ctx sdk.Context, contractId string, discountId sdk.Uint) sdk.Error

func (Keeper) MustGetPaymentContractByKey

func (k Keeper) MustGetPaymentContractByKey(ctx sdk.Context, key []byte) types.PaymentContract

func (Keeper) MustGetPaymentTemplateByKey

func (k Keeper) MustGetPaymentTemplateByKey(ctx sdk.Context, key []byte) types.PaymentTemplate

func (Keeper) MustGetSubscriptionByKey

func (k Keeper) MustGetSubscriptionByKey(ctx sdk.Context, key []byte) types.Subscription

func (Keeper) PaymentContractExists

func (k Keeper) PaymentContractExists(ctx sdk.Context, contractId string) bool

func (Keeper) PaymentContractIdReserved

func (k Keeper) PaymentContractIdReserved(id string) bool

func (Keeper) PaymentTemplateExists

func (k Keeper) PaymentTemplateExists(ctx sdk.Context, templateId string) bool

func (Keeper) PaymentTemplateIdReserved

func (k Keeper) PaymentTemplateIdReserved(id string) bool

func (Keeper) RevokeDiscount

func (k Keeper) RevokeDiscount(ctx sdk.Context, contractId string) sdk.Error

func (Keeper) SetParams

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

SetParams sets the total set of payments parameters.

func (Keeper) SetPaymentContract

func (k Keeper) SetPaymentContract(ctx sdk.Context, contract types.PaymentContract)

func (Keeper) SetPaymentContractAuthorised

func (k Keeper) SetPaymentContractAuthorised(ctx sdk.Context, contractId string,
	authorised bool) sdk.Error

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 (k Keeper) SubscriptionExists(ctx sdk.Context, subscriptionId string) bool

func (Keeper) SubscriptionIdReserved

func (k Keeper) SubscriptionIdReserved(id string) bool

Jump to

Keyboard shortcuts

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