Documentation
¶
Index ¶
- Constants
- Variables
- func ErrInputOutputMismatch(msg string) sdk.Error
- func ErrMemoMissing() sdk.Error
- func ErrNoInputs() sdk.Error
- func ErrNoOutputs() sdk.Error
- func ErrTokenForbiddenByOwner() sdk.Error
- func ErrUnlockTime(msg string) sdk.Error
- func ErrorInsufficientCETForActivatingFee() sdk.Error
- func ErrorInvalidActivatingFee() sdk.Error
- func ErrorInvalidLockCoinsFee() sdk.Error
- func ParamKeyTable() params.KeyTable
- func RegisterCodec(cdc *codec.Codec)
- func ValidateInputsOutputs(inputs []bank.Input, outputs []bank.Output) sdk.Error
- type ExpectedAccountXKeeper
- type ExpectedAssetStatusKeeper
- type MsgMultiSend
- type MsgSend
- type MsgSetMemoRequired
- func (msg MsgSetMemoRequired) GetSignBytes() []byte
- func (msg MsgSetMemoRequired) GetSigners() []sdk.AccAddress
- func (msg MsgSetMemoRequired) Route() string
- func (msg *MsgSetMemoRequired) SetAccAddress(addr sdk.AccAddress)
- func (msg MsgSetMemoRequired) Type() string
- func (msg MsgSetMemoRequired) ValidateBasic() sdk.Error
- type Params
- type SupplyKeeper
Constants ¶
View Source
const ( CodeSpaceBankx sdk.CodespaceType = ModuleName // 301 ~ 399 CodeMemoMissing sdk.CodeType = 301 CodeInsufficientCETForActivationFee sdk.CodeType = 302 CodeInvalidActivationFee sdk.CodeType = 303 CodeInvalidUnlockTime sdk.CodeType = 304 CodeTokenForbiddenByOwner sdk.CodeType = 305 CodeInvalidLockCoinsFee sdk.CodeType = 306 CodeNoInputs sdk.CodeType = 307 CodeNoOutputs sdk.CodeType = 308 CodeInputOutputMismatch sdk.CodeType = 309 )
View Source
const ( ModuleName = "bankx" StoreKey = ModuleName DefaultParamspace = ModuleName RouterKey = ModuleName AttributeKeyAddr = "address" AttributeKeyMemoRequired = "memo-required" Topic = ModuleName )
Variables ¶
View Source
var ( KeyActivationFee = []byte("ActivationFee") KeyLockCoinsFee = []byte("LockCoinsFee") )
View Source
var ModuleCdc = codec.New()
Functions ¶
func ErrInputOutputMismatch ¶
func ErrMemoMissing ¶
func ErrNoInputs ¶
func ErrNoOutputs ¶
func ErrUnlockTime ¶
func ErrorInvalidActivatingFee ¶ added in v0.0.15
func ErrorInvalidLockCoinsFee ¶ added in v0.0.15
func ParamKeyTable ¶
ParamKeyTable type declaration for parameters
func RegisterCodec ¶
RegisterCodec registers concrete types on the codec
Types ¶
type ExpectedAccountXKeeper ¶
type ExpectedAccountXKeeper interface { GetOrCreateAccountX(ctx sdk.Context, addr sdk.AccAddress) authx.AccountX GetAccountX(ctx sdk.Context, addr sdk.AccAddress) (ax authx.AccountX, ok bool) SetAccountX(ctx sdk.Context, ax authx.AccountX) IterateAccounts(ctx sdk.Context, process func(authx.AccountX) (stop bool)) InsertUnlockedCoinsQueue(ctx sdk.Context, unlockedTime int64, address sdk.AccAddress) }
type MsgMultiSend ¶
type MsgMultiSend struct { Inputs []bank.Input `json:"inputs" yaml:"inputs"` Outputs []bank.Output `json:"outputs" yaml:"outputs"` }
MsgMultiSend - high level transaction of the coin module
func NewMsgMultiSend ¶
func NewMsgMultiSend(in []bank.Input, out []bank.Output) MsgMultiSend
NewMsgMultiSend - construct arbitrary multi-in, multi-out send msg.
func (MsgMultiSend) GetSignBytes ¶
func (msg MsgMultiSend) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgMultiSend) GetSigners ¶
func (msg MsgMultiSend) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (MsgMultiSend) ValidateBasic ¶
func (msg MsgMultiSend) ValidateBasic() sdk.Error
ValidateBasic Implements Msg.
type MsgSend ¶
type MsgSend struct { FromAddress sdk.AccAddress `json:"from_address"` ToAddress sdk.AccAddress `json:"to_address"` Amount sdk.Coins `json:"amount"` UnlockTime int64 `json:"unlock_time"` }
func NewMsgSend ¶
func (MsgSend) GetSignBytes ¶
func (MsgSend) GetSigners ¶
func (msg MsgSend) GetSigners() []sdk.AccAddress
func (*MsgSend) SetAccAddress ¶ added in v0.0.15
func (msg *MsgSend) SetAccAddress(addr sdk.AccAddress)
func (MsgSend) ValidateBasic ¶
type MsgSetMemoRequired ¶
type MsgSetMemoRequired struct { Address sdk.AccAddress `json:"address"` Required bool `json:"required"` }
func NewMsgSetTransferMemoRequired ¶
func NewMsgSetTransferMemoRequired(addr sdk.AccAddress, required bool) MsgSetMemoRequired
func (MsgSetMemoRequired) GetSignBytes ¶
func (msg MsgSetMemoRequired) GetSignBytes() []byte
func (MsgSetMemoRequired) GetSigners ¶
func (msg MsgSetMemoRequired) GetSigners() []sdk.AccAddress
func (MsgSetMemoRequired) Route ¶
func (msg MsgSetMemoRequired) Route() string
func (*MsgSetMemoRequired) SetAccAddress ¶ added in v0.0.15
func (msg *MsgSetMemoRequired) SetAccAddress(addr sdk.AccAddress)
func (MsgSetMemoRequired) Type ¶
func (msg MsgSetMemoRequired) Type() string
func (MsgSetMemoRequired) ValidateBasic ¶
func (msg MsgSetMemoRequired) ValidateBasic() sdk.Error
type Params ¶
type Params struct { ActivationFee int64 `json:"activation_fee"` LockCoinsFee int64 `json:"lock_coins_fee"` }
func DefaultParams ¶
func DefaultParams() Params
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() params.ParamSetPairs
type SupplyKeeper ¶
type SupplyKeeper interface { SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) sdk.Error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) sdk.Error }
SupplyKeeper defines the expected supply keeper
Click to show internal directories.
Click to hide internal directories.