Documentation ¶
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, timelockKeeper timelock.Keeper, swapKeeper swap.Keeper)
- func EndBreatheBlock(ctx sdk.Context, swapKeeper swap.Keeper)
- func InitGenesis(ctx sdk.Context, tokenMapper store.Mapper, coinKeeper bank.Keeper, ...)
- func InitPlugin(appp app.ChainApp, mapper Mapper, accKeeper auth.AccountKeeper, ...)
- func RegisterUpgradeBeginBlocker(mapper Mapper)
- func RegisterWire(cdc *wire.Codec)
- func Routes(tokenMapper store.Mapper, accKeeper auth.AccountKeeper, keeper bank.Keeper, ...) map[string]sdk.Handler
- type GenesisToken
- type Mapper
Constants ¶
View Source
const (
MaxUnlockItems = 10
)
Variables ¶
View Source
var NewMapper = store.NewMapper
Functions ¶
func EndBlocker ¶ added in v0.10.17
func EndBreatheBlock ¶
EndBreatheBlock processes the breathe block lifecycle event.
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, tokenMapper store.Mapper, coinKeeper bank.Keeper, geneTokens []GenesisToken, validators []sdk.AccAddress, transferAmtForEach int64)
func InitPlugin ¶
func InitPlugin( appp app.ChainApp, mapper Mapper, accKeeper auth.AccountKeeper, coinKeeper bank.Keeper, timeLockKeeper timelock.Keeper, swapKeeper swap.Keeper)
InitPlugin initializes the plugin.
func RegisterUpgradeBeginBlocker ¶
func RegisterUpgradeBeginBlocker(mapper Mapper)
Types ¶
type GenesisToken ¶
type GenesisToken struct { Name string `json:"name"` Symbol string `json:"symbol"` TotalSupply int64 `json:"total_supply"` Owner sdk.AccAddress `json:"owner"` Mintable bool `json:"mintable"` }
func DefaultGenesisToken ¶
func DefaultGenesisToken(owner sdk.AccAddress) GenesisToken
Click to show internal directories.
Click to hide internal directories.