burn

package
v0.10.18 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MPL-2.0 Imports: 10 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const BurnRoute = "tokensBurn"

TODO: "route expressions can only contain alphanumeric characters", we need to change the cosmos sdk to support slash const BurnRoute = "tokens/burn"

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(tokenMapper store.Mapper, keeper bank.Keeper) sdk.Handler

Types

type BurnMsg

type BurnMsg struct {
	From   sdk.AccAddress `json:"from"`
	Symbol string         `json:"symbol"`
	Amount int64          `json:"amount"`
}

func NewMsg

func NewMsg(from sdk.AccAddress, symbol string, amount int64) BurnMsg

func (BurnMsg) GetInvolvedAddresses

func (msg BurnMsg) GetInvolvedAddresses() []sdk.AccAddress

func (BurnMsg) GetSignBytes

func (msg BurnMsg) GetSignBytes() []byte

func (BurnMsg) GetSigners

func (msg BurnMsg) GetSigners() []sdk.AccAddress

func (BurnMsg) Route

func (msg BurnMsg) Route() string

func (BurnMsg) String

func (msg BurnMsg) String() string

func (BurnMsg) Type

func (msg BurnMsg) Type() string

func (BurnMsg) ValidateBasic

func (msg BurnMsg) ValidateBasic() sdk.Error

ValidateBasic does a simple validation check that doesn't require access to any other information.

Jump to

Keyboard shortcuts

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