msg

package
v0.0.0-...-8551cdf Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeKeyFrom   = "from"
	AttributeKeyTo     = "to"
	AttributeKeyAmount = "amount"
)
View Source
const (
	EventTypeTransfer = "transfer"
)
View Source
const (
	KuMsgMaxAuth = types.KuMsgMaxAuth
)

Variables

View Source
var (
	NewKuMsgCtx = types.NewKuMsgCtx
)

Functions

func WarpHandler

func WarpHandler(transfer AssetTransfer, auther AccountAuther, h Handler) sdk.Handler

Types

type AccAddress

type AccAddress = types.AccAddress

type AccountAuther

type AccountAuther = types.AccountAuther

type AccountID

type AccountID = types.AccountID

type AssetTransfer

type AssetTransfer = types.AssetTransfer

type Coin

type Coin = types.Coin

type Context

type Context = types.Context

type Handler

type Handler func(ctx Context, msg sdk.Msg) (*sdk.Result, error)

Handler defines the core of the state transition function of an application.

type KuMsg

type KuMsg = types.KuMsg

func MustNewKuMsg

func MustNewKuMsg(router Name, opts ...Option) *KuMsg

MustNewKuMsg create kuMsg

func NewKuMsg

func NewKuMsg(router Name, opts ...Option) (*KuMsg, error)

NewKuMsg create kuMsg by router and opts

type KuMsgData

type KuMsgData = types.KuMsgData

type KuTransfMsg

type KuTransfMsg = types.KuTransfMsg

type Name

type Name = types.Name

type Option

type Option interface {
	Op(msg *KuMsg) error
}

func WithAuth

func WithAuth(auth AccAddress) Option

WithAuth create kumsg with auth

func WithAuths

func WithAuths(auths []AccAddress) Option

WithAuths create kumsg with auth

func WithData

func WithData(cdc *codec.Codec, data KuMsgData) Option

WithData create kumsg with data

func WithTransfer

func WithTransfer(from, to AccountID, amount sdk.Coins) Option

WithTransfer create kumsg with transfer message

Jump to

Keyboard shortcuts

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