package types import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) // NOTE: We can't use 1 since that error code is reserved for internal errors. var ( // ErrInvalidState returns an error resulting from an invalid Storage State. ErrInvalidState = sdkerrors.Register(ModuleName, 2, "invalid storage state") // ErrChainConfigNotFound returns an error if the chain config cannot be found on the store. ErrChainConfigNotFound = sdkerrors.Register(ModuleName, 3, "chain configuration not found") // ErrInvalidChainConfig returns an error resulting from an invalid ChainConfig. ErrInvalidChainConfig = sdkerrors.Register(ModuleName, 4, "invalid chain configuration") // ErrZeroAddress returns an error resulting from an zero (empty) ethereum Address. ErrZeroAddress = sdkerrors.Register(ModuleName, 5, "invalid zero address") // ErrEmptyHash returns an error resulting from an empty ethereum Hash. ErrEmptyHash = sdkerrors.Register(ModuleName, 6, "empty hash") // ErrBloomNotFound returns an error if the block bloom cannot be found on the store. ErrBloomNotFound = sdkerrors.Register(ModuleName, 7, "block bloom not found") // ErrCreateDisabled returns an error if the EnableCreate parameter is false. ErrCreateDisabled = sdkerrors.Register(ModuleName, 8, "EVM Create operation is disabled") // ErrCallDisabled returns an error if the EnableCall parameter is false. ErrCallDisabled = sdkerrors.Register(ModuleName, 9, "EVM Call operation is disabled") )