types

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

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 ErrMemoRequiredWithdrawAddr

func ErrMemoRequiredWithdrawAddr(address string) sdk.Error

func ErrorInvalidDonation

func ErrorInvalidDonation(format string) sdk.Error

func ErrorInvalidFromAddr

func ErrorInvalidFromAddr() sdk.Error

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

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

Jump to

Keyboard shortcuts

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