2019-06-05 16:26:17 -07:00
|
|
|
package types
|
2019-03-28 16:27:47 -07:00
|
|
|
|
|
|
|
import (
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
// ErrNilSender - no sender provided for the input
|
|
|
|
func ErrNilSender(codespace sdk.CodespaceType) sdk.Error {
|
|
|
|
return sdk.NewError(codespace, CodeInvalidInput, "sender address is nil")
|
|
|
|
}
|
|
|
|
|
|
|
|
// ErrUnknownInvariant - unknown invariant provided
|
|
|
|
func ErrUnknownInvariant(codespace sdk.CodespaceType) sdk.Error {
|
|
|
|
return sdk.NewError(codespace, CodeInvalidInput, "unknown invariant")
|
|
|
|
}
|