Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func NewQuerier(k Keeper) types.QueryServer
Types ¶
type BankKeeper ¶
type Keeper ¶
type Keeper interface { Codec() codec.BinaryCodec StoreKey() sdk.StoreKey AccountCreate(ctx sdk.Context, id types.AccountID, owner, depositor sdk.AccAddress, deposit sdk.Coin) error AccountDeposit(ctx sdk.Context, id types.AccountID, depositor sdk.AccAddress, amount sdk.Coin) error AccountSettle(ctx sdk.Context, id types.AccountID) (bool, error) AccountClose(ctx sdk.Context, id types.AccountID) error PaymentCreate(ctx sdk.Context, id types.AccountID, pid string, owner sdk.AccAddress, rate sdk.DecCoin) error PaymentWithdraw(ctx sdk.Context, id types.AccountID, pid string) error PaymentClose(ctx sdk.Context, id types.AccountID, pid string) error GetAccount(ctx sdk.Context, id types.AccountID) (types.Account, error) GetPayment(ctx sdk.Context, id types.AccountID, pid string) (types.FractionalPayment, error) AddOnAccountClosedHook(AccountHook) Keeper AddOnPaymentClosedHook(PaymentHook) Keeper // for genesis WithAccounts(sdk.Context, func(types.Account) bool) WithPayments(sdk.Context, func(types.FractionalPayment) bool) SaveAccount(sdk.Context, types.Account) SavePayment(sdk.Context, types.FractionalPayment) }
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, skey sdk.StoreKey, bkeeper BankKeeper) Keeper
type PaymentHook ¶
type PaymentHook func(sdk.Context, types.FractionalPayment)
Click to show internal directories.
Click to hide internal directories.