2020-01-30 13:31:16 -08:00
|
|
|
package exported
|
|
|
|
|
|
|
|
import (
|
2020-12-08 01:27:08 -08:00
|
|
|
"github.com/gogo/protobuf/proto"
|
|
|
|
|
2020-01-30 13:31:16 -08:00
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
// GenesisBalance defines a genesis balance interface that allows for account
|
|
|
|
// address and balance retrieval.
|
|
|
|
type GenesisBalance interface {
|
|
|
|
GetAddress() sdk.AccAddress
|
|
|
|
GetCoins() sdk.Coins
|
|
|
|
}
|
2020-04-20 08:22:12 -07:00
|
|
|
|
|
|
|
// SupplyI defines an inflationary supply interface for modules that handle
|
|
|
|
// token supply.
|
|
|
|
type SupplyI interface {
|
2020-12-08 01:27:08 -08:00
|
|
|
proto.Message
|
|
|
|
|
2020-04-20 08:22:12 -07:00
|
|
|
GetTotal() sdk.Coins
|
|
|
|
SetTotal(total sdk.Coins)
|
|
|
|
|
|
|
|
Inflate(amount sdk.Coins)
|
|
|
|
Deflate(amount sdk.Coins)
|
|
|
|
|
|
|
|
String() string
|
|
|
|
ValidateBasic() error
|
|
|
|
}
|