Skip to content

Commit

Permalink
reconcile: error types
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Feb 12, 2024
1 parent 4d82c24 commit e92e1cb
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions x/supplier/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ import (

// x/supplier module sentinel errors
var (
ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message")
ErrSample = sdkerrors.Register(ModuleName, 1101, "sample error")
ErrSupplierInvalidStake = sdkerrors.Register(ModuleName, 1, "invalid supplier stake")
ErrSupplierInvalidAddress = sdkerrors.Register(ModuleName, 2, "invalid address")
ErrSupplierUnauthorized = sdkerrors.Register(ModuleName, 3, "unauthorized supplier signer")
ErrSupplierNotFound = sdkerrors.Register(ModuleName, 4, "supplier not found")
ErrSupplierInvalidServiceConfig = sdkerrors.Register(ModuleName, 5, "invalid service config")
ErrSupplierInvalidSessionStartHeight = sdkerrors.Register(ModuleName, 6, "invalid session start height")
ErrSupplierInvalidSessionId = sdkerrors.Register(ModuleName, 7, "invalid session ID")
ErrSupplierInvalidService = sdkerrors.Register(ModuleName, 8, "invalid service in supplier")
ErrSupplierInvalidClaimRootHash = sdkerrors.Register(ModuleName, 9, "invalid root hash")
ErrSupplierInvalidSessionEndHeight = sdkerrors.Register(ModuleName, 10, "invalid session ending height")
ErrSupplierInvalidQueryRequest = sdkerrors.Register(ModuleName, 11, "invalid query request")
ErrSupplierClaimNotFound = sdkerrors.Register(ModuleName, 12, "claim not found")
ErrSupplierProofNotFound = sdkerrors.Register(ModuleName, 13, "proof not found")
ErrSupplierInvalidProof = sdkerrors.Register(ModuleName, 14, "invalid proof")
ErrSupplierInvalidClosestMerkleProof = sdkerrors.Register(ModuleName, 15, "invalid closest merkle proof")
ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message")
)

0 comments on commit e92e1cb

Please sign in to comment.