Enum odra_modules::cep18::errors::Error
source · pub enum Error {
Show 21 variants
InvalidContext = 60_000,
InsufficientBalance = 60_001,
InsufficientAllowance = 60_002,
Overflow = 60_003,
PackageHashMissing = 60_004,
PackageHashNotPackage = 60_005,
InvalidEventsMode = 60_006,
MissingEventsMode = 60_007,
Phantom = 60_008,
FailedToGetArgBytes = 60_009,
InsufficientRights = 60_010,
InvalidAdminList = 60_011,
InvalidMinterList = 60_012,
InvalidNoneList = 60_013,
InvalidEnableMBFlag = 60_014,
AlreadyInitialized = 60_015,
MintBurnDisabled = 60_016,
CannotTargetSelfUser = 60_017,
InvalidBurnTarget = 60_018,
_MissingPackageHashForUpgrade = 60_019,
InvalidState = 60_100,
}Expand description
Error enum for the CEP-18 contract.
Variants§
InvalidContext = 60_000
CEP-18 contract called from within an invalid context.
InsufficientBalance = 60_001
Spender does not have enough balance.
InsufficientAllowance = 60_002
Spender does not have enough allowance approved.
Overflow = 60_003
Operation would cause an integer overflow.
PackageHashMissing = 60_004
A required package hash was not specified.
PackageHashNotPackage = 60_005
The package hash specified does not represent a package.
InvalidEventsMode = 60_006
An invalid event mode was specified.
MissingEventsMode = 60_007
The event mode required was not specified.
Phantom = 60_008
An unknown error occurred.
FailedToGetArgBytes = 60_009
Failed to read the runtime arguments provided.
InsufficientRights = 60_010
The caller does not have sufficient security access.
InvalidAdminList = 60_011
The list of Admin accounts provided is invalid.
InvalidMinterList = 60_012
The list of accounts that can mint tokens is invalid.
InvalidNoneList = 60_013
The list of accounts with no access rights is invalid.
InvalidEnableMBFlag = 60_014
The flag to enable the mint and burn mode is invalid.
AlreadyInitialized = 60_015
This contract instance cannot be initialized again.
MintBurnDisabled = 60_016
The mint and burn mode is disabled.
CannotTargetSelfUser = 60_017
The user cannot target themselves.
InvalidBurnTarget = 60_018
The burn target is invalid.
_MissingPackageHashForUpgrade = 60_019
The package hash for the upgrade is missing. This error is not used by Odra implementation yet.
InvalidState = 60_100
The contract is in an invalid state. This error should never happen.