-
Notifications
You must be signed in to change notification settings - Fork 198
/
expected_keepers.go
38 lines (32 loc) · 1.28 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
package types
import (
"cosmossdk.io/math"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
v1 "github.com/lavanet/lava/x/downtime/v1"
timerstoretypes "github.com/lavanet/lava/x/timerstore/types"
)
// AccountKeeper defines the expected account keeper used for simulations (noalias)
type AccountKeeper interface {
GetModuleAddress(name string) sdk.AccAddress
// Methods imported from account should be defined here
}
// BankKeeper defines the expected interface needed to retrieve account balances.
type BankKeeper interface {
BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) error
// Methods imported from bank should be defined here
}
type DowntimeKeeper interface {
GetParams(ctx sdk.Context) (params v1.Params)
// Methods imported from bank should be defined here
}
type StakingKeeper interface {
BondedRatio(ctx sdk.Context) math.LegacyDec
BondDenom(ctx sdk.Context) string
// Methods imported from bank should be defined here
}
type TimerStoreKeeper interface {
NewTimerStoreEndBlock(storeKey storetypes.StoreKey, prefix string) *timerstoretypes.TimerStore
}