cosmos-sdk/x/group/expected_keepers.go
ipangpang 1bd4351241
style: remove redundant import alias (#20109)
Signed-off-by: ipangpang <arronipangpang@gmail.com>
2024-04-21 19:03:43 +00:00

31 lines
828 B
Go

package group
import (
"context"
"cosmossdk.io/core/address"
sdk "github.com/cosmos/cosmos-sdk/types"
)
type AccountKeeper interface {
AddressCodec() address.Codec
// NewAccount returns a new account with the next account number. Does not save the new account to the store.
NewAccount(context.Context, sdk.AccountI) sdk.AccountI
// GetAccount retrieves an account from the store.
GetAccount(context.Context, sdk.AccAddress) sdk.AccountI
// SetAccount sets an account in the store.
SetAccount(context.Context, sdk.AccountI)
// RemoveAccount Remove an account in the store.
RemoveAccount(ctx context.Context, acc sdk.AccountI)
}
// BankKeeper defines the expected interface needed to retrieve account balances.
type BankKeeper interface {
SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
}