Versions in this module Expand all Collapse all v0 v0.33.2 Apr 3, 2019 Changes in this version + const CodeInvalidInputsOutputs + const CodeSendDisabled + const DefaultCodespace + const DefaultParamspace + const DefaultSendEnabled + const RouterKey + var ParamStoreKeySendEnabled = []byte("sendenabled") + var TagActionDelegateCoins = []byte("delegateCoins") + var TagActionUndelegateCoins = []byte("undelegateCoins") + var TagKeyRecipient = "recipient" + var TagKeySender = "sender" + func ErrInputOutputMismatch(codespace sdk.CodespaceType) sdk.Error + func ErrNoInputs(codespace sdk.CodespaceType) sdk.Error + func ErrNoOutputs(codespace sdk.CodespaceType) sdk.Error + func ErrSendDisabled(codespace sdk.CodespaceType) sdk.Error + func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) + func NewHandler(k Keeper) sdk.Handler + func ParamKeyTable() params.KeyTable + func RegisterCodec(cdc *codec.Codec) + func ValidateGenesis(data GenesisState) error + func ValidateInputsOutputs(inputs []Input, outputs []Output) sdk.Error + type BaseKeeper struct + func NewBaseKeeper(ak auth.AccountKeeper, paramSpace params.Subspace, codespace sdk.CodespaceType) BaseKeeper + func (keeper BaseKeeper) AddCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) (sdk.Coins, sdk.Tags, sdk.Error) + func (keeper BaseKeeper) DelegateCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) (sdk.Tags, sdk.Error) + func (keeper BaseKeeper) InputOutputCoins(ctx sdk.Context, inputs []Input, outputs []Output) (sdk.Tags, sdk.Error) + func (keeper BaseKeeper) SetCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) sdk.Error + func (keeper BaseKeeper) SubtractCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) (sdk.Coins, sdk.Tags, sdk.Error) + func (keeper BaseKeeper) UndelegateCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) (sdk.Tags, sdk.Error) + type BaseSendKeeper struct + func NewBaseSendKeeper(ak auth.AccountKeeper, paramSpace params.Subspace, codespace sdk.CodespaceType) BaseSendKeeper + func (keeper BaseSendKeeper) GetSendEnabled(ctx sdk.Context) bool + func (keeper BaseSendKeeper) SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) (sdk.Tags, sdk.Error) + func (keeper BaseSendKeeper) SetSendEnabled(ctx sdk.Context, enabled bool) + type BaseViewKeeper struct + func NewBaseViewKeeper(ak auth.AccountKeeper, codespace sdk.CodespaceType) BaseViewKeeper + func (keeper BaseViewKeeper) Codespace() sdk.CodespaceType + func (keeper BaseViewKeeper) GetCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + func (keeper BaseViewKeeper) HasCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) bool + type GenesisState struct + SendEnabled bool + func DefaultGenesisState() GenesisState + func ExportGenesis(ctx sdk.Context, keeper Keeper) GenesisState + func NewGenesisState(sendEnabled bool) GenesisState + type Input struct + Address sdk.AccAddress + Coins sdk.Coins + func NewInput(addr sdk.AccAddress, coins sdk.Coins) Input + func (in Input) ValidateBasic() sdk.Error + type Keeper interface + AddCoins func(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) (sdk.Coins, sdk.Tags, sdk.Error) + DelegateCoins func(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) (sdk.Tags, sdk.Error) + InputOutputCoins func(ctx sdk.Context, inputs []Input, outputs []Output) (sdk.Tags, sdk.Error) + SetCoins func(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) sdk.Error + SubtractCoins func(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) (sdk.Coins, sdk.Tags, sdk.Error) + UndelegateCoins func(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) (sdk.Tags, sdk.Error) + type MsgMultiSend struct + Inputs []Input + Outputs []Output + func NewMsgMultiSend(in []Input, out []Output) MsgMultiSend + func (msg MsgMultiSend) GetSignBytes() []byte + func (msg MsgMultiSend) GetSigners() []sdk.AccAddress + func (msg MsgMultiSend) Route() string + func (msg MsgMultiSend) Type() string + func (msg MsgMultiSend) ValidateBasic() sdk.Error + type MsgSend struct + Amount sdk.Coins + FromAddress sdk.AccAddress + ToAddress sdk.AccAddress + func NewMsgSend(fromAddr, toAddr sdk.AccAddress, amount sdk.Coins) MsgSend + func (msg MsgSend) GetSignBytes() []byte + func (msg MsgSend) GetSigners() []sdk.AccAddress + func (msg MsgSend) Route() string + func (msg MsgSend) Type() string + func (msg MsgSend) ValidateBasic() sdk.Error + type Output struct + Address sdk.AccAddress + Coins sdk.Coins + func NewOutput(addr sdk.AccAddress, coins sdk.Coins) Output + func (out Output) ValidateBasic() sdk.Error + type SendKeeper interface + GetSendEnabled func(ctx sdk.Context) bool + SendCoins func(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) (sdk.Tags, sdk.Error) + SetSendEnabled func(ctx sdk.Context, enabled bool) + type ViewKeeper interface + Codespace func() sdk.CodespaceType + GetCoins func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + HasCoins func(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) bool