burn

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MPL-2.0 Imports: 10 Imported by: 2

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