Documentation ¶
Index ¶
- Constants
- Variables
- func ErrMemoRequiredWithdrawAddr(address string) sdk.Error
- func ErrorInvalidDonation(format string) sdk.Error
- func ErrorInvalidFromAddr() sdk.Error
- func RegisterCodec(cdc *codec.Codec)
- type MsgDonateToCommunityPool
- func (msg MsgDonateToCommunityPool) GetSignBytes() []byte
- func (msg MsgDonateToCommunityPool) GetSigners() []sdk.AccAddress
- func (msg MsgDonateToCommunityPool) Route() string
- func (msg *MsgDonateToCommunityPool) SetAccAddress(address sdk.AccAddress)
- func (msg MsgDonateToCommunityPool) Type() string
- func (msg MsgDonateToCommunityPool) ValidateBasic() sdk.Error
Constants ¶
View Source
const ( CodespaceDistrx sdk.CodespaceType = "distrx" CodeInvalidFromAddr sdk.CodeType = 801 CodeInvalidDonation sdk.CodeType = 802 CodeMemoRequiredWithdrawAddr sdk.CodeType = 803 )
View Source
const ( ModuleName = "distrx" RouterKey = ModuleName )
RouterKey is the name of the bankx module
Variables ¶
View Source
var ModuleCdc = codec.New()
Functions ¶
func ErrorInvalidDonation ¶
func ErrorInvalidFromAddr ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on the codec
Types ¶
type MsgDonateToCommunityPool ¶
type MsgDonateToCommunityPool struct { FromAddr sdk.AccAddress `json:"from_addr"` Amount sdk.Coins `json:"amount"` }
msg struct for validator withdraw
func NewMsgDonateToCommunityPool ¶
func NewMsgDonateToCommunityPool(addr sdk.AccAddress, amt sdk.Coins) MsgDonateToCommunityPool
func (MsgDonateToCommunityPool) GetSignBytes ¶
func (msg MsgDonateToCommunityPool) GetSignBytes() []byte
get the bytes for the message signer to sign on
func (MsgDonateToCommunityPool) GetSigners ¶
func (msg MsgDonateToCommunityPool) GetSigners() []sdk.AccAddress
Return address that must sign over msg.GetSignBytes()
func (MsgDonateToCommunityPool) Route ¶
func (msg MsgDonateToCommunityPool) Route() string
func (*MsgDonateToCommunityPool) SetAccAddress ¶
func (msg *MsgDonateToCommunityPool) SetAccAddress(address sdk.AccAddress)
func (MsgDonateToCommunityPool) Type ¶
func (msg MsgDonateToCommunityPool) Type() string
func (MsgDonateToCommunityPool) ValidateBasic ¶
func (msg MsgDonateToCommunityPool) ValidateBasic() sdk.Error
quick validity check
Click to show internal directories.
Click to hide internal directories.