Documentation ¶
Overview ¶
Package types adds AccountKeeper and CVMKeeper expected keeper.
Index ¶
Constants ¶
const (
EventTypeLockedSend = "locked_send"
)
const RouterKey = bank.ModuleName
RouterKey is they name of the bank module
Variables ¶
var ModuleCdc *codec.Codec
ModuleCdc defines module codec.
Functions ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on codec.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) exported.Account NewAccount(ctx sdk.Context, acc exported.Account) exported.Account GetAccount(ctx sdk.Context, addr sdk.AccAddress) exported.Account GetAllAccounts(ctx sdk.Context) []exported.Account SetAccount(ctx sdk.Context, acc exported.Account) IterateAccounts(ctx sdk.Context, process func(exported.Account) bool) }
AccountKeeper defines the account contract that must be fulfilled when creating a x/bank keeper.
type CVMKeeper ¶
type CVMKeeper interface { Send(ctx sdk.Context, from, to sdk.AccAddress, value sdk.Coins) error GetCode(ctx sdk.Context, addr crypto.Address) ([]byte, error) }
CVMKeeper defines the CVM interface that must be fulfilled when wrapping the basekeeper.
type MsgLockedSend ¶
type MsgLockedSend struct { From sdk.AccAddress `json:"from" yaml:"from"` To sdk.AccAddress `json:"to" yaml:"to"` Amount sdk.Coins `json:"amount" yaml:"amount"` }
MsgLockedSend transfers coins and have them vesting in the receiver's manual vesting account.
func NewMsgLockedSend ¶
func NewMsgLockedSend(from, to sdk.AccAddress, amount sdk.Coins) MsgLockedSend
NewMsgLockedSend returns a MsgLockedSend object.
func (MsgLockedSend) GetSignBytes ¶
func (m MsgLockedSend) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (MsgLockedSend) GetSigners ¶
func (m MsgLockedSend) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (MsgLockedSend) Route ¶
func (m MsgLockedSend) Route() string
Route returns the name of the module.
func (MsgLockedSend) Type ¶
func (m MsgLockedSend) Type() string
Type returns a human-readable string for the message.
func (MsgLockedSend) ValidateBasic ¶
func (m MsgLockedSend) ValidateBasic() error
ValidateBasic runs stateless checks on the message.