Documentation ¶
Index ¶
- Constants
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) Add(ctx sdk.Context, address sdk.AccAddress, amount sdk.Int) (sdk.Int, error)
- func (k *Keeper) Export(ctx sdk.Context) (map[string]sdk.Int, error)
- func (k Keeper) Get(ctx sdk.Context, address sdk.AccAddress) (sdk.Int, error)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k *Keeper) Import(ctx sdk.Context, credits map[string]sdk.Int) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Minters(ctx sdk.Context) []sdk.AccAddress
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) Sub(ctx sdk.Context, address sdk.AccAddress, amount sdk.Int) (sdk.Int, error)
Constants ¶
View Source
const (
DefaultParamspace = types.ModuleName
)
Default parameter namespace
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier creates a new querier for credit clients.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the credit store
func NewKeeper ¶
func NewKeeper(cdc *codec.Codec, ak types.AccountKeeper, key sdk.StoreKey, paramstore types.ParamSubspace) Keeper
NewKeeper creates a credit keeper
func (Keeper) Minters ¶
func (k Keeper) Minters(ctx sdk.Context) []sdk.AccAddress
Minters are authorized account that can add credits to any address.
Click to show internal directories.
Click to hide internal directories.