msgs

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MsgCdc = codec.New()

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Register concrete types on codec codec

Types

type MsgBoxDeposit

type MsgBoxDeposit struct {
	BoxId     string         `json:"box_id"`
	Sender    sdk.AccAddress `json:"sender"`
	Deposit   sdk.Coin       `json:"deposit"`
	Operation string         `json:"operation"`
}

MsgBoxDeposit

func NewMsgBoxDeposit

func NewMsgBoxDeposit(boxId string, sender sdk.AccAddress, deposit sdk.Coin, operation string) MsgBoxDeposit

New MsgBoxDeposit Instance

func (MsgBoxDeposit) GetSignBytes

func (msg MsgBoxDeposit) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgBoxDeposit) GetSigners

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

GetSigners Implements Msg.

func (MsgBoxDeposit) Route

func (msg MsgBoxDeposit) Route() string

Route Implements Msg.

func (MsgBoxDeposit) String

func (msg MsgBoxDeposit) String() string

func (MsgBoxDeposit) Type

func (msg MsgBoxDeposit) Type() string

Type Implements Msg.

func (MsgBoxDeposit) ValidateBasic

func (msg MsgBoxDeposit) ValidateBasic() sdk.Error

Implements Msg. Ensures addresses are valid and Coin is positive

type MsgBoxDescription

type MsgBoxDescription struct {
	BoxId       string         `json:"box_id"`
	Sender      sdk.AccAddress `json:"sender"`
	Description []byte         `json:"description"`
}

MsgBoxDescription to allow a registered owner to box new coins.

func NewMsgBoxDescription

func NewMsgBoxDescription(boxId string, sender sdk.AccAddress, description []byte) MsgBoxDescription

New MsgBoxDescription Instance

func (MsgBoxDescription) GetSignBytes

func (msg MsgBoxDescription) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgBoxDescription) GetSigners

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

GetSigners Implements Msg.

func (MsgBoxDescription) Route

func (msg MsgBoxDescription) Route() string

Route Implements Msg.

func (MsgBoxDescription) String

func (msg MsgBoxDescription) String() string

func (MsgBoxDescription) Type

func (msg MsgBoxDescription) Type() string

Type Implements Msg.

func (MsgBoxDescription) ValidateBasic

func (msg MsgBoxDescription) ValidateBasic() sdk.Error

Implements Msg. Ensures addresses are valid and Coin is positive

type MsgBoxDisableFeature

type MsgBoxDisableFeature struct {
	BoxId   string         `json:"box_id"`
	Sender  sdk.AccAddress `json:"sender"`
	Feature string         `json:"feature"`
}

MsgBoxDisableFeature to allow a registered owner

func NewMsgBoxDisableFeature

func NewMsgBoxDisableFeature(boxId string, sender sdk.AccAddress, feature string) MsgBoxDisableFeature

New MsgBoxDisableFeature Instance

func (MsgBoxDisableFeature) GetBoxId

func (ci MsgBoxDisableFeature) GetBoxId() string

nolint

func (MsgBoxDisableFeature) GetFeature

func (ci MsgBoxDisableFeature) GetFeature() string

func (MsgBoxDisableFeature) GetSender

func (ci MsgBoxDisableFeature) GetSender() sdk.AccAddress

func (MsgBoxDisableFeature) GetSignBytes

func (msg MsgBoxDisableFeature) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgBoxDisableFeature) GetSigners

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

GetSigners Implements Msg.

func (MsgBoxDisableFeature) Route

func (msg MsgBoxDisableFeature) Route() string

Route Implements Msg.

func (MsgBoxDisableFeature) SetBoxId

func (ci MsgBoxDisableFeature) SetBoxId(boxId string)

func (MsgBoxDisableFeature) SetFeature

func (ci MsgBoxDisableFeature) SetFeature(feature string)

func (MsgBoxDisableFeature) SetSender

func (ci MsgBoxDisableFeature) SetSender(sender sdk.AccAddress)

func (MsgBoxDisableFeature) String

func (msg MsgBoxDisableFeature) String() string

func (MsgBoxDisableFeature) Type

func (msg MsgBoxDisableFeature) Type() string

Type Implements Msg.

func (MsgBoxDisableFeature) ValidateBasic

func (msg MsgBoxDisableFeature) ValidateBasic() sdk.Error

Implements Msg. Ensures addresses are valid and Coin is positive

type MsgBoxInterest

type MsgBoxInterest struct {
	BoxId     string         `json:"box_id"`
	Sender    sdk.AccAddress `json:"sender"`
	Interest  sdk.Coin       `json:"interest"`
	Operation string         `json:"operation"`
}

MsgBoxInterest

func NewMsgBoxInterest

func NewMsgBoxInterest(boxId string, sender sdk.AccAddress, interest sdk.Coin, operation string) MsgBoxInterest

New MsgBoxInterest Instance

func (MsgBoxInterest) GetSignBytes

func (msg MsgBoxInterest) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgBoxInterest) GetSigners

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

GetSigners Implements Msg.

func (MsgBoxInterest) Route

func (msg MsgBoxInterest) Route() string

Route Implements Msg.

func (MsgBoxInterest) String

func (msg MsgBoxInterest) String() string

func (MsgBoxInterest) Type

func (msg MsgBoxInterest) Type() string

Type Implements Msg.

func (MsgBoxInterest) ValidateBasic

func (msg MsgBoxInterest) ValidateBasic() sdk.Error

Implements Msg. Ensures addresses are valid and Coin is positive

type MsgDepositBox

type MsgDepositBox struct {
	*params.BoxDepositParams
}

MsgDepositBox to allow a registered boxr to box new coins.

func NewMsgDepositBox

func NewMsgDepositBox(params *params.BoxDepositParams) MsgDepositBox

func (MsgDepositBox) GetSignBytes

func (msg MsgDepositBox) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgDepositBox) GetSigners

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

GetSigners Implements Msg.

func (MsgDepositBox) Route

func (msg MsgDepositBox) Route() string

Route Implements Msg.

func (MsgDepositBox) String

func (msg MsgDepositBox) String() string

func (MsgDepositBox) Type

func (msg MsgDepositBox) Type() string

Type Implements Msg.789

func (MsgDepositBox) ValidateBasic

func (msg MsgDepositBox) ValidateBasic() sdk.Error

Implements Msg. Ensures addresses are valid and Coin is positive

type MsgFutureBox

type MsgFutureBox struct {
	*params.BoxFutureParams
}

MsgFutureBox to allow a registered boxr to box new coins.

func NewMsgFutureBox

func NewMsgFutureBox(params *params.BoxFutureParams) MsgFutureBox

func (MsgFutureBox) GetSignBytes

func (msg MsgFutureBox) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgFutureBox) GetSigners

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

GetSigners Implements Msg.

func (MsgFutureBox) Route

func (msg MsgFutureBox) Route() string

Route Implements Msg.

func (MsgFutureBox) String

func (msg MsgFutureBox) String() string

func (MsgFutureBox) Type

func (msg MsgFutureBox) Type() string

Type Implements Msg.789

func (MsgFutureBox) ValidateBasic

func (msg MsgFutureBox) ValidateBasic() sdk.Error

Implements Msg. Ensures addresses are valid and Coin is positive

type MsgLockBox

type MsgLockBox struct {
	*params.BoxLockParams
}

MsgLockBox to allow a registered boxr to box new coins.

func NewMsgLockBox

func NewMsgLockBox(params *params.BoxLockParams) MsgLockBox

func (MsgLockBox) GetSignBytes

func (msg MsgLockBox) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgLockBox) GetSigners

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

GetSigners Implements Msg.

func (MsgLockBox) Route

func (msg MsgLockBox) Route() string

Route Implements Msg.

func (MsgLockBox) String

func (msg MsgLockBox) String() string

func (MsgLockBox) Type

func (msg MsgLockBox) Type() string

Type Implements Msg.789

func (MsgLockBox) ValidateBasic

func (msg MsgLockBox) ValidateBasic() sdk.Error

Implements Msg. Ensures addresses are valid and Coin is positive

Jump to

Keyboard shortcuts

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