-
Notifications
You must be signed in to change notification settings - Fork 324
/
errors.go
25 lines (22 loc) · 1.68 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
25
package types
// DONTCOVER
import (
errorsmod "cosmossdk.io/errors"
)
// x/eibc module sentinel errors
var (
ErrInvalidDemandOrderPrice = errorsmod.Register(ModuleName, 1, "Price must be greater than 0")
ErrInvalidDemandOrderFee = errorsmod.Register(ModuleName, 2, "Fee must be greater than 0 and less than or equal to the total amount")
ErrInvalidOrderID = errorsmod.Register(ModuleName, 3, "Invalid order ID")
ErrInvalidAmount = errorsmod.Register(ModuleName, 4, "Invalid amount")
ErrDemandOrderDoesNotExist = errorsmod.Register(ModuleName, 5, "Demand order does not exist")
ErrDemandOrderInactive = errorsmod.Register(ModuleName, 6, "Demand order inactive")
ErrFullfillerAddressDoesNotExist = errorsmod.Register(ModuleName, 7, "Fullfiller address does not exist")
ErrInvalidRecipientAddress = errorsmod.Register(ModuleName, 8, "Invalid recipient address")
ErrBlockedAddress = errorsmod.Register(ModuleName, 9, "Can't purchase demand order for recipient with blocked address")
ErrDemandAlreadyFulfilled = errorsmod.Register(ModuleName, 10, "Demand order already fulfilled")
ErrNegativeTimeoutFee = errorsmod.Register(ModuleName, 11, "Timeout fee must be greater than or equal to 0")
ErrTooMuchTimeoutFee = errorsmod.Register(ModuleName, 12, "Timeout fee must be less than or equal to the total amount")
ErrNegativeErrAckFee = errorsmod.Register(ModuleName, 13, "Error acknowledgement fee must be greater than or equal to 0")
ErrTooMuchErrAckFee = errorsmod.Register(ModuleName, 14, "Error acknowledgement fee must be less than or equal to the total amount")
)