-
Notifications
You must be signed in to change notification settings - Fork 324
/
expected_keepers.go
32 lines (27 loc) · 1.17 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
package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/types"
ibc "github.com/cosmos/ibc-go/v5/modules/core"
rollapptypes "github.com/dymensionxyz/dymension/x/rollapp/types"
)
// RollappKeeper defines the expected rollapp keeper used for retrieve rollapp.
type RollappKeeper interface {
GetRollapp(ctx sdk.Context, rollappId string) (val rollapptypes.Rollapp, found bool)
FindStateInfoByHeight(ctx sdk.Context, rollappId string, height uint64) (*rollapptypes.StateInfo, error)
// Methods imported from rollapp should be defined here
}
// AccountKeeper defines the expected account keeper used for simulations (noalias)
type AccountKeeper interface {
GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
// Methods imported from account should be defined here
}
// BankKeeper defines the expected interface needed to retrieve account balances.
type BankKeeper interface {
SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
// Methods imported from bank should be defined here
}
// IBCKeeper defines the expected interface needed to transffer the handling to the IBC stack.
type IBCKeeper interface {
ibc.IBCMsgI
}