types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "account"

	RouterKey = ModuleName
)

Variables

View Source
var (
	EventCreateAccount = "create_account"
	EventEmpty         = "empty"

	MsgTypeCreateAccount = EventCreateAccount
	MsgTypeEmpty         = EventEmpty

	AttributeKeyCreateAccountFrom   = "create_account_from"
	AttributeKeyCreateAccountTarget = "create_account_target"

	AttributeKeyFrom = "from"

	AttributeValueCategory = ModuleName
)
View Source
var (
	ErrAccountAlreadyExist = sdkerrors.Register(ModuleName, 1, "Target account already exists")
)
View Source
var ModuleCdc *codec.Codec

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Register concrete types on codec

Types

type MsgCreateAccount

type MsgCreateAccount struct {
	From   sdk.AccAddress `json:"from"`
	Target sdk.AccAddress `json:"target"`
}

MsgCreateAccount - create account transaction of the account module

func NewMsgCreateAccount

func NewMsgCreateAccount(fromAddr, targetAddr sdk.AccAddress) MsgCreateAccount

NewMsgCreateAccount - construct create account msg.

func (MsgCreateAccount) GetSignBytes

func (msg MsgCreateAccount) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgCreateAccount) GetSigners

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

GetSigners Implements Msg.

func (MsgCreateAccount) Route

func (msg MsgCreateAccount) Route() string

Route Implements Msg.

func (MsgCreateAccount) Type

func (msg MsgCreateAccount) Type() string

Type Implements Msg.

func (MsgCreateAccount) ValidateBasic

func (msg MsgCreateAccount) ValidateBasic() error

ValidateBasic Implements Msg.

type MsgEmpty

type MsgEmpty struct {
	From sdk.AccAddress `json:"from"`
}

func NewMsgEmpty

func NewMsgEmpty(from sdk.AccAddress) MsgEmpty

NewMsgCreateAccount - construct create account msg.

func (MsgEmpty) GetSignBytes

func (msg MsgEmpty) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgEmpty) GetSigners

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

GetSigners Implements Msg.

func (MsgEmpty) Route

func (msg MsgEmpty) Route() string

Route Implements Msg.

func (MsgEmpty) Type

func (msg MsgEmpty) Type() string

Type Implements Msg.

func (MsgEmpty) ValidateBasic

func (msg MsgEmpty) ValidateBasic() error

ValidateBasic Implements Msg.

Jump to

Keyboard shortcuts

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