tokens

package
v0.10.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxUnlockItems = 10
)

Variables

View Source
var NewMapper = store.NewMapper

Functions

func EndBlocker added in v0.10.17

func EndBlocker(ctx sdk.Context, timelockKeeper timelock.Keeper, swapKeeper swap.Keeper)

func EndBreatheBlock

func EndBreatheBlock(ctx sdk.Context, swapKeeper swap.Keeper)

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)

func RegisterWire

func RegisterWire(cdc *wire.Codec)

Register concrete types on wire codec

func Routes

func Routes(tokenMapper store.Mapper, accKeeper auth.AccountKeeper, keeper bank.Keeper,
	timeLockKeeper timelock.Keeper, swapKeeper swap.Keeper) map[string]sdk.Handler

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

type Mapper

type Mapper = store.Mapper

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL