Documentation ¶
Overview ¶
Destroy currency message implementation.
Issue currency message implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgDestroyCurrency ¶
type MsgDestroyCurrency struct { ChainID string `json:"chainID"` Symbol string `json:"symbol"` Amount sdk.Int `json:"amount"` Spender sdk.AccAddress `json:"spender"` Recipient string `json:"recipient"` }
Message for destroy currency
func NewMsgDestroyCurrency ¶
func NewMsgDestroyCurrency(chainID, symbol string, amount sdk.Int, spender sdk.AccAddress, recipient string) MsgDestroyCurrency
Create new message to destroy currency.
func (MsgDestroyCurrency) GetSignBytes ¶
func (msg MsgDestroyCurrency) GetSignBytes() []byte
Get message bytes to sign.
func (MsgDestroyCurrency) GetSigners ¶
func (msg MsgDestroyCurrency) GetSigners() []sdk.AccAddress
Get signers for message.
func (MsgDestroyCurrency) Route ¶
func (msg MsgDestroyCurrency) Route() string
Base route for currencies package.
func (MsgDestroyCurrency) Type ¶
func (msg MsgDestroyCurrency) Type() string
Indeed type to destroy currency.
func (MsgDestroyCurrency) ValidateBasic ¶
func (msg MsgDestroyCurrency) ValidateBasic() sdk.Error
Validate basic in case of destroy message.
type MsgIssueCurrency ¶
type MsgIssueCurrency struct { Symbol string `json:"symbol"` Amount sdk.Int `json:"amount"` Decimals int8 `json:"decimals"` Recipient sdk.AccAddress `json:"recipient"` IssueID string `json:"issueID"` }
Msg struct for issue new currencies. IssueID could be txHash of transaction in another blockchain.
func NewMsgIssueCurrency ¶
func NewMsgIssueCurrency(symbol string, amount sdk.Int, decimals int8, recipient sdk.AccAddress, issueID string) MsgIssueCurrency
Create new issue currency message.
func (MsgIssueCurrency) GetSignBytes ¶
func (msg MsgIssueCurrency) GetSignBytes() []byte
Getting bytes for signature.
func (MsgIssueCurrency) GetSigners ¶
func (msg MsgIssueCurrency) GetSigners() []sdk.AccAddress
Check who should sign message.
func (MsgIssueCurrency) Route ¶
func (msg MsgIssueCurrency) Route() string
Common router for currencies package.
func (MsgIssueCurrency) Type ¶
func (msg MsgIssueCurrency) Type() string
Command for issue new currencies.
func (MsgIssueCurrency) ValidateBasic ¶
func (msg MsgIssueCurrency) ValidateBasic() sdk.Error
Basic validation, without state.
Click to show internal directories.
Click to hide internal directories.