Skip to content

Commit

Permalink
Add error
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Nov 1, 2022
1 parent a05c6ab commit f27923b
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions x/ccv/provider/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ import (

// Provider sentinel errors
var (
ErrInvalidConsumerAdditionProposal = sdkerrors.Register(ModuleName, 1, "invalid consumer addition proposal")
ErrInvalidConsumerRemovalProp = sdkerrors.Register(ModuleName, 2, "invalid consumer removal proposal")
ErrUnknownConsumerChainId = sdkerrors.Register(ModuleName, 3, "no consumer chain with this chain id")
ErrUnknownConsumerChannelId = sdkerrors.Register(ModuleName, 4, "no consumer chain with this channel id")
ErrEmptyValidatorAddr = sdkerrors.Register(ModuleName, 5, "empty validator address")
ErrNoValidatorFound = sdkerrors.Register(ModuleName, 6, "validator does not exist")
ErrEmptyValidatorPubKey = sdkerrors.Register(ModuleName, 7, "empty validator public key")
ErrBlankConsumerChainID = sdkerrors.Register(ModuleName, 8, "consumer chain id must not be blank")
ErrNoConsumerChainFound = sdkerrors.Register(ModuleName, 9, "did not find consumer chain with chain id")
ErrValidatorPubKeyTypeNotSupported = sdkerrors.Register(ModuleName, 10, "validator pubkey type is not supported")
ErrInvalidValidatorPubKey = sdkerrors.Register(ModuleName, 11, "incorrect validator pubkey")
ErrInvalidConsumerAdditionProposal = sdkerrors.Register(ModuleName, 1, "invalid consumer addition proposal")
ErrInvalidConsumerRemovalProp = sdkerrors.Register(ModuleName, 2, "invalid consumer removal proposal")
ErrUnknownConsumerChainId = sdkerrors.Register(ModuleName, 3, "no consumer chain with this chain id")
ErrUnknownConsumerChannelId = sdkerrors.Register(ModuleName, 4, "no consumer chain with this channel id")
ErrEmptyValidatorAddr = sdkerrors.Register(ModuleName, 5, "empty validator address")
ErrNoValidatorFound = sdkerrors.Register(ModuleName, 6, "validator does not exist")
ErrEmptyValidatorPubKey = sdkerrors.Register(ModuleName, 7, "empty validator public key")
ErrBlankConsumerChainID = sdkerrors.Register(ModuleName, 8, "consumer chain id must not be blank")
ErrNoConsumerChainFound = sdkerrors.Register(ModuleName, 9, "did not find consumer chain with chain id")
ErrValidatorPubKeyTypeNotSupported = sdkerrors.Register(ModuleName, 10, "validator pubkey type is not supported")
ErrInvalidValidatorPubKey = sdkerrors.Register(ModuleName, 11, "incorrect validator pubkey")
ErrNoAssignedConsumerKeyFoundForValidator = sdkerrors.Register(ModuleName, 12, "no assigned consumer key found for validator on consumer chain")
)

0 comments on commit f27923b

Please sign in to comment.