-
Notifications
You must be signed in to change notification settings - Fork 0
/
expected_keepers.go
executable file
·42 lines (35 loc) · 1.23 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
package types
import (
"context"
"encoding/json"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
bankexported "github.com/cosmos/cosmos-sdk/x/bank/exported"
)
// StakingKeeper defines the expected staking keeper (noalias)
type StakingKeeper interface {
ApplyAndReturnValidatorSetUpdates(context.Context) (updates []abci.ValidatorUpdate, err error)
}
// AccountKeeper defines the expected account keeper (noalias)
type AccountKeeper interface {
NewAccount(context.Context, sdk.AccountI) sdk.AccountI
SetAccount(context.Context, sdk.AccountI)
IterateAccounts(ctx context.Context, process func(sdk.AccountI) (stop bool))
}
// GenesisAccountsIterator defines the expected iterating genesis accounts object (noalias)
type GenesisAccountsIterator interface {
IterateGenesisAccounts(
cdc *codec.LegacyAmino,
appGenesis map[string]json.RawMessage,
cb func(sdk.AccountI) (stop bool),
)
}
// GenesisAccountsIterator defines the expected iterating genesis accounts object (noalias)
type GenesisBalancesIterator interface {
IterateGenesisBalances(
cdc codec.JSONCodec,
appGenesis map[string]json.RawMessage,
cb func(bankexported.GenesisBalance) (stop bool),
)
}