-
Notifications
You must be signed in to change notification settings - Fork 10
/
errors.go
22 lines (19 loc) · 1.09 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
package types
// DONTCOVER
import (
"github.com/ignite/modules/pkg/errors"
)
// x/claim module sentinel errors
var (
ErrMissionNotFound = errors.Register(ModuleName, 2, "mission not found")
ErrClaimRecordNotFound = errors.Register(ModuleName, 3, "claim record not found")
ErrMissionCompleted = errors.Register(ModuleName, 4, "mission already completed")
ErrAirdropSupplyNotFound = errors.Register(ModuleName, 5, "airdrop supply not found")
ErrInitialClaimNotFound = errors.Register(ModuleName, 6, "initial claim information not found")
ErrInitialClaimNotEnabled = errors.Register(ModuleName, 7, "initial claim not enabled")
ErrMissionCompleteFailure = errors.Register(ModuleName, 8, "mission failed to complete")
ErrNoClaimable = errors.Register(ModuleName, 9, "no amount to be claimed")
ErrMissionNotCompleted = errors.Register(ModuleName, 10, "mission not completed yet")
ErrMissionAlreadyClaimed = errors.Register(ModuleName, 11, "mission already claimed")
ErrAirdropStartNotReached = errors.Register(ModuleName, 12, "airdrop start has not been reached yet")
)