-
Notifications
You must be signed in to change notification settings - Fork 334
/
errors.go
24 lines (21 loc) · 1.43 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package types
// DONTCOVER
import (
sdkerrors "cosmossdk.io/errors"
)
// x/sequencer module sentinel errors
var (
ErrSequencerExists = sdkerrors.Register(ModuleName, 1000, "sequencer already exist for this address; must use new sequencer address")
ErrInvalidSequencerAddress = sdkerrors.Register(ModuleName, 1001, "invalid sequencer address")
ErrUnknownRollappID = sdkerrors.Register(ModuleName, 1002, "rollapp does not exist")
ErrMaxSequencersLimit = sdkerrors.Register(ModuleName, 1003, "too many sequencers for rollapp")
ErrSequencerNotPermissioned = sdkerrors.Register(ModuleName, 1004, "sequencer is not permissioned for serving the rollapp")
ErrUnknownSequencer = sdkerrors.Register(ModuleName, 1005, "sequencer was not registered")
ErrSequencerRollappMismatch = sdkerrors.Register(ModuleName, 1006, "sequencer was not registered for this rollapp")
ErrNotActiveSequencer = sdkerrors.Register(ModuleName, 1007, "sequencer is not active")
ErrInvalidSequencerStatus = sdkerrors.Register(ModuleName, 1008, "invalid sequencer status")
ErrInvalidSequencerTokens = sdkerrors.Register(ModuleName, 1009, "invalid sequencer tokens")
ErrInvalidCoinDenom = sdkerrors.Register(ModuleName, 1010, "invalid coin denomination")
ErrInsufficientBond = sdkerrors.Register(ModuleName, 1011, "insufficient bond")
ErrRollappJailed = sdkerrors.Register(ModuleName, 1012, "rollapp is jailed")
)