vectis_wallet/types/error/
plugin_reg.rs

1use super::*;
2
3#[derive(Error, Debug, PartialEq)]
4pub enum PluginRegError {
5    #[error("{0}")]
6    Std(#[from] StdError),
7    #[error("{0}")]
8    DeployerItemsQueryError(#[from] DeployerItemsQueryError),
9    #[error("Unauthorized")]
10    Unauthorized,
11    #[error("Insufficient Fee Amount: Expected: {0}, Got: {1}")]
12    InsufficientFee(Uint128, Uint128),
13    #[error("Plugin Version Not Found for {0}")]
14    PluginVersionNotFound(String),
15    #[error("Plugin Version already registered {0}")]
16    VersionExists(String),
17    #[error("Incorrect Fees: Expects {0}")]
18    IncorrectFees(Coin),
19    #[error("Plugin Not found on registry {0}")]
20    PluginNotFoundOnRegistry(u64),
21    #[error("Unsupported Wallet")]
22    UnsupportedWallet,
23    #[error("Fees should be only 1 coin")]
24    TooManyCoins,
25    #[error("Too many installed plugins")]
26    TooManyInstalledPlugins,
27    #[error("Expired")]
28    Expired,
29    #[error("Not a subscriber")]
30    NotASubscriber,
31    #[error("Plugin Not installed")]
32    NotInstalled,
33    #[error("Invalid Checksum")]
34    InvalidChecksum,
35    #[error("Tier Exists")]
36    TierExists,
37    #[error("CodeIdAlreadyRegistered")]
38    CodeIdAlreadyRegistered,
39}