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 ¶
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) 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 ¶
GetSignBytes Implements Msg.
func (MsgEmpty) GetSigners ¶
func (msg MsgEmpty) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (MsgEmpty) ValidateBasic ¶
ValidateBasic Implements Msg.
Click to show internal directories.
Click to hide internal directories.