freeze

package
v0.10.21 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MPL-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const FreezeRoute = "tokensFreeze"

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

Variables

This section is empty.

Functions

func NewHandler

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

NewHandler creates a new token freeze message handler

Types

type FreezeMsg

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

func NewFreezeMsg

func NewFreezeMsg(from sdk.AccAddress, symbol string, amount int64) FreezeMsg

func (FreezeMsg) GetInvolvedAddresses

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

func (FreezeMsg) GetSignBytes

func (msg FreezeMsg) GetSignBytes() []byte

func (FreezeMsg) GetSigners

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

func (FreezeMsg) Route

func (msg FreezeMsg) Route() string

func (FreezeMsg) String

func (msg FreezeMsg) String() string

func (FreezeMsg) Type

func (msg FreezeMsg) Type() string

func (FreezeMsg) ValidateBasic

func (msg FreezeMsg) ValidateBasic() sdk.Error

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

type UnfreezeMsg

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

func NewUnfreezeMsg

func NewUnfreezeMsg(from sdk.AccAddress, symbol string, amount int64) UnfreezeMsg

func (UnfreezeMsg) GetInvolvedAddresses

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

func (UnfreezeMsg) GetSignBytes

func (msg UnfreezeMsg) GetSignBytes() []byte

func (UnfreezeMsg) GetSigners

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

func (UnfreezeMsg) Route

func (msg UnfreezeMsg) Route() string

func (UnfreezeMsg) String

func (msg UnfreezeMsg) String() string

func (UnfreezeMsg) Type

func (msg UnfreezeMsg) Type() string

func (UnfreezeMsg) ValidateBasic

func (msg UnfreezeMsg) ValidateBasic() sdk.Error

Jump to

Keyboard shortcuts

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