Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func NewQuerier(k Keeper) types.QueryServer
Types ¶
type AuthzKeeper ¶ added in v0.34.0
type AuthzKeeper interface { DeleteGrant(ctx sdk.Context, grantee, granter sdk.AccAddress, msgType string) error GetCleanAuthorization(ctx sdk.Context, grantee, granter sdk.AccAddress, msgType string) (cap authz.Authorization, expiration time.Time) SaveGrant(ctx sdk.Context, grantee, granter sdk.AccAddress, authorization authz.Authorization, expiration time.Time) error }
type BankKeeper ¶
type BankKeeper interface { SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error }
type DistrKeeper ¶ added in v0.24.0
type DistrKeeper interface { GetFeePool(ctx sdk.Context) distrtypes.FeePool SetFeePool(ctx sdk.Context, pool distrtypes.FeePool) }
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 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, tkeeper TakeKeeper, dkeeper DistrKeeper, akeeper AuthzKeeper) Keeper
type PaymentHook ¶
type PaymentHook func(sdk.Context, types.FractionalPayment)
Click to show internal directories.
Click to hide internal directories.