/
expected_keepers.go
45 lines (35 loc) · 1.7 KB
/
expected_keepers.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package types
import (
time "time"
epochstypes "github.com/tessornetwork/mokita/x/epochs/types"
lockuptypes "github.com/tessornetwork/mokita/x/lockup/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)
// BankKeeper defines the expected interface needed to retrieve account balances.
type BankKeeper interface {
GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
HasSupply(ctx sdk.Context, denom string) bool
SendCoinsFromModuleToManyAccounts(
ctx sdk.Context, senderModule string, recipientAddrs []sdk.AccAddress, amts []sdk.Coins,
) error
SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}
// LockupKeeper defines the expected interface needed to retrieve locks.
type LockupKeeper interface {
GetLocksLongerThanDurationDenom(ctx sdk.Context, denom string, duration time.Duration) []lockuptypes.PeriodLock
GetPeriodLocksAccumulation(ctx sdk.Context, query lockuptypes.QueryCondition) sdk.Int
GetAccountPeriodLocks(ctx sdk.Context, addr sdk.AccAddress) []lockuptypes.PeriodLock
GetLockByID(ctx sdk.Context, lockID uint64) (*lockuptypes.PeriodLock, error)
}
// EpochKeeper defines the expected interface needed to retrieve epoch info.
type EpochKeeper interface {
GetEpochInfo(ctx sdk.Context, identifier string) epochstypes.EpochInfo
}
// CommunityPoolKeeper defines the contract needed to be fulfilled for distribution keeper.
type CommunityPoolKeeper interface {
FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}
// TxFeesKeeper defines the expected interface needed to managing transaction fees.
type TxFeesKeeper interface {
GetBaseDenom(ctx sdk.Context) (denom string, err error)
}