github.com/Finschia/finschia-sdk@v0.48.1/x/genutil/types/expected_keepers.go (about) 1 package types 2 3 import ( 4 "encoding/json" 5 6 abci "github.com/tendermint/tendermint/abci/types" 7 8 "github.com/Finschia/finschia-sdk/codec" 9 sdk "github.com/Finschia/finschia-sdk/types" 10 auth "github.com/Finschia/finschia-sdk/x/auth/types" 11 bankexported "github.com/Finschia/finschia-sdk/x/bank/exported" 12 ) 13 14 // StakingKeeper defines the expected staking keeper (noalias) 15 type StakingKeeper interface { 16 ApplyAndReturnValidatorSetUpdates(sdk.Context) (updates []abci.ValidatorUpdate, err error) 17 } 18 19 // AccountKeeper defines the expected account keeper (noalias) 20 type AccountKeeper interface { 21 NewAccount(sdk.Context, auth.AccountI) auth.AccountI 22 SetAccount(sdk.Context, auth.AccountI) 23 IterateAccounts(ctx sdk.Context, process func(auth.AccountI) (stop bool)) 24 } 25 26 // GenesisAccountsIterator defines the expected iterating genesis accounts object (noalias) 27 type GenesisAccountsIterator interface { 28 IterateGenesisAccounts( 29 cdc *codec.LegacyAmino, 30 appGenesis map[string]json.RawMessage, 31 cb func(auth.AccountI) (stop bool), 32 ) 33 } 34 35 // GenesisAccountsIterator defines the expected iterating genesis accounts object (noalias) 36 type GenesisBalancesIterator interface { 37 IterateGenesisBalances( 38 cdc codec.JSONCodec, 39 appGenesis map[string]json.RawMessage, 40 cb func(bankexported.GenesisBalance) (stop bool), 41 ) 42 }