cosmos-sdk/x/mint/types/expected_keepers.go

26 lines
947 B
Go
Raw Normal View History

package types // noalias
2018-10-19 11:36:00 -07:00
import (
sdk "github.com/cosmos/cosmos-sdk/types"
2019-06-28 13:11:27 -07:00
"github.com/cosmos/cosmos-sdk/x/supply/exported"
)
2018-10-19 11:36:00 -07:00
2019-06-28 13:11:27 -07:00
// StakingKeeper defines the expected staking keeper
2019-01-11 12:08:01 -08:00
type StakingKeeper interface {
2019-06-28 13:11:27 -07:00
StakingTokenSupply(ctx sdk.Context) sdk.Int
2018-10-19 11:36:00 -07:00
BondedRatio(ctx sdk.Context) sdk.Dec
}
2019-06-28 13:11:27 -07:00
// SupplyKeeper defines the expected supply keeper
type SupplyKeeper interface {
GetModuleAddress(name string) sdk.AccAddress
// TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862
SetModuleAccount(sdk.Context, exported.ModuleAccountI)
GetModuleAccount(ctx sdk.Context, moduleName string) exported.ModuleAccountI
2019-06-28 13:11:27 -07:00
SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
2018-10-19 11:36:00 -07:00
}