Documentation ¶
Index ¶
- func NewQueryServiceServer(keeper Keeper) types.QueryServiceServer
- type Keeper
- func (k *Keeper) Add(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) error
- func (k *Keeper) GetDeposit(ctx sdk.Context, address sdk.AccAddress) (deposit types.Deposit, found bool)
- func (k *Keeper) GetDeposits(ctx sdk.Context, skip, limit int64) (items types.Deposits)
- func (k *Keeper) IterateDeposits(ctx sdk.Context, fn func(index int64, item types.Deposit) (stop bool))
- func (k *Keeper) Logger(ctx sdk.Context) log.Logger
- func (k *Keeper) SendCoinsFromAccountToDeposit(ctx sdk.Context, from, to sdk.AccAddress, coins sdk.Coins) error
- func (k *Keeper) SendCoinsFromDepositToAccount(ctx sdk.Context, from, to sdk.AccAddress, coins sdk.Coins) error
- func (k *Keeper) SetDeposit(ctx sdk.Context, deposit types.Deposit)
- func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore
- func (k *Keeper) Subtract(ctx sdk.Context, address sdk.AccAddress, coins sdk.Coins) error
- func (k *Keeper) WithBankKeeper(keeper expected.BankKeeper)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQueryServiceServer ¶ added in v0.6.0
func NewQueryServiceServer(keeper Keeper) types.QueryServiceServer
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (*Keeper) Add ¶
Add is for adding the amount to the deposit account from the bank account of an address.
func (*Keeper) GetDeposit ¶
func (k *Keeper) GetDeposit(ctx sdk.Context, address sdk.AccAddress) (deposit types.Deposit, found bool)
GetDeposit is for getting the deposit of an address from KVStore.
func (*Keeper) GetDeposits ¶ added in v0.3.0
GetDeposits is for getting the deposits from KVStore.
func (*Keeper) IterateDeposits ¶
func (k *Keeper) IterateDeposits(ctx sdk.Context, fn func(index int64, item types.Deposit) (stop bool))
IterateDeposits is for iterating over all the deposits to perform an action.
func (*Keeper) SendCoinsFromAccountToDeposit ¶ added in v0.3.0
func (k *Keeper) SendCoinsFromAccountToDeposit(ctx sdk.Context, from, to sdk.AccAddress, coins sdk.Coins) error
SendCoinsFromAccountToDeposit is for sending the amount from the bank account of from address to the deposit account of to address.
func (*Keeper) SendCoinsFromDepositToAccount ¶ added in v0.3.0
func (k *Keeper) SendCoinsFromDepositToAccount(ctx sdk.Context, from, to sdk.AccAddress, coins sdk.Coins) error
SendCoinsFromDepositToAccount is for sending the amount from the deposit account of from address to the bank account of to address.
func (*Keeper) SetDeposit ¶
SetDeposit is for inserting a deposit into KVStore.
func (*Keeper) Subtract ¶
Subtract is for adding the amount to the bank account from the deposit account of an address.
func (*Keeper) WithBankKeeper ¶ added in v0.6.0
func (k *Keeper) WithBankKeeper(keeper expected.BankKeeper)