23 lines
677 B
Go
23 lines
677 B
Go
package group
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
|
)
|
|
|
|
type AccountKeeper interface {
|
|
// Return a new account with the next account number. Does not save the new account to the store.
|
|
NewAccount(sdk.Context, authtypes.AccountI) authtypes.AccountI
|
|
|
|
// Retrieve an account from the store.
|
|
GetAccount(sdk.Context, sdk.AccAddress) authtypes.AccountI
|
|
|
|
// Set an account in the store.
|
|
SetAccount(sdk.Context, authtypes.AccountI)
|
|
}
|
|
|
|
// BankKeeper defines the expected interface needed to retrieve account balances.
|
|
type BankKeeper interface {
|
|
SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
|
|
}
|