Documentation ¶
Index ¶
- Constants
- Variables
- func ErrNilSender(codespace sdk.CodespaceType) sdk.Error
- func ErrUnknownInvariant(codespace sdk.CodespaceType) sdk.Error
- func ParamKeyTable() params.KeyTable
- func RegisterCodec(cdc *codec.Codec)
- func ValidateGenesis(data GenesisState) error
- type GenesisState
- type InvarRoute
- type MsgVerifyInvariant
- func (msg MsgVerifyInvariant) FullInvariantRoute() string
- func (msg MsgVerifyInvariant) GetSignBytes() []byte
- func (msg MsgVerifyInvariant) GetSigners() []sdk.AccAddress
- func (msg MsgVerifyInvariant) Route() string
- func (msg MsgVerifyInvariant) Type() string
- func (msg MsgVerifyInvariant) ValidateBasic() sdk.Error
- type SupplyKeeper
Constants ¶
const ( // default codespace for crisis module DefaultCodespace sdk.CodespaceType = ModuleName // CodeInvalidInput is the codetype for invalid input for the crisis module CodeInvalidInput sdk.CodeType = 103 )
const (
DefaultParamspace = ModuleName
)
Default parameter namespace
const (
// module name
ModuleName = "crisis"
)
Variables ¶
var ( EventTypeInvariant = "invariant" AttributeValueCrisis = ModuleName AttributeKeyRoute = "route" )
Crisis module event types
var ModuleCdc *codec.Codec
generic sealed codec to be used throughout module
var ( // key for constant fee parameter ParamStoreKeyConstantFee = []byte("ConstantFee") )
Functions ¶
func ErrNilSender ¶
func ErrNilSender(codespace sdk.CodespaceType) sdk.Error
ErrNilSender - no sender provided for the input
func ErrUnknownInvariant ¶
func ErrUnknownInvariant(codespace sdk.CodespaceType) sdk.Error
ErrUnknownInvariant - unknown invariant provided
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis - validate crisis genesis data
Types ¶
type GenesisState ¶
GenesisState - crisis genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState creates a default GenesisState object
func NewGenesisState ¶
func NewGenesisState(constantFee sdk.Coin) GenesisState
NewGenesisState creates a new GenesisState object
type InvarRoute ¶
invariant route
func NewInvarRoute ¶
func NewInvarRoute(moduleName, route string, invar sdk.Invariant) InvarRoute
NewInvarRoute - create an InvarRoute object
type MsgVerifyInvariant ¶
type MsgVerifyInvariant struct { Sender sdk.AccAddress `json:"sender" yaml:"sender"` InvariantModuleName string `json:"invariant_module_name" yaml:"invariant_module_name"` InvariantRoute string `json:"invariant_route" yaml:"invariant_route"` }
MsgVerifyInvariant - message struct to verify a particular invariance
func NewMsgVerifyInvariant ¶
func NewMsgVerifyInvariant(sender sdk.AccAddress, invariantModuleName, invariantRoute string) MsgVerifyInvariant
NewMsgVerifyInvariant creates a new MsgVerifyInvariant object
func (MsgVerifyInvariant) FullInvariantRoute ¶
func (msg MsgVerifyInvariant) FullInvariantRoute() string
FullInvariantRoute - get the messages full invariant route
func (MsgVerifyInvariant) GetSignBytes ¶
func (msg MsgVerifyInvariant) GetSignBytes() []byte
GetSignBytes gets the sign bytes for the msg MsgVerifyInvariant
func (MsgVerifyInvariant) GetSigners ¶
func (msg MsgVerifyInvariant) GetSigners() []sdk.AccAddress
get the bytes for the message signer to sign on
func (MsgVerifyInvariant) Type ¶
func (msg MsgVerifyInvariant) Type() string
func (MsgVerifyInvariant) ValidateBasic ¶
func (msg MsgVerifyInvariant) ValidateBasic() sdk.Error
quick validity check