33 lines
987 B
Go
33 lines
987 B
Go
package types
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
abci "github.com/tendermint/tendermint/abci/types"
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
authexported "github.com/cosmos/cosmos-sdk/x/auth/exported"
|
|
)
|
|
|
|
// StakingKeeper defines the expected staking keeper (noalias)
|
|
type StakingKeeper interface {
|
|
ApplyAndReturnValidatorSetUpdates(sdk.Context) (updates []abci.ValidatorUpdate)
|
|
}
|
|
|
|
// AccountKeeper defines the expected account keeper (noalias)
|
|
type AccountKeeper interface {
|
|
NewAccount(sdk.Context, authexported.Account) authexported.Account
|
|
SetAccount(sdk.Context, authexported.Account)
|
|
IterateAccounts(ctx sdk.Context, process func(authexported.Account) (stop bool))
|
|
}
|
|
|
|
// GenesisAccountsIterator defines the expected iterating genesis accounts object (noalias)
|
|
type GenesisAccountsIterator interface {
|
|
IterateGenesisAccounts(
|
|
cdc *codec.Codec,
|
|
appGenesis map[string]json.RawMessage,
|
|
iterateFn func(authexported.Account) (stop bool),
|
|
)
|
|
}
|