pub const PANIC_OCCURRED: &str = "panic occurred";
pub const MEM_ALLOC_ERROR: &str = "memory allocation error";

pub const NON_PAYABLE_FUNC_ESDT: &str = "function does not accept ESDT payment";
pub const BAD_TOKEN_PROVIDED: &str = "bad call value token provided";
pub const BAD_TOKEN_TICKER_FORMAT: &str = "bad token ticker format";
pub const SINGLE_ESDT_EXPECTED: &str = "single ESDT payment expected";
pub const TOO_MANY_ESDT_TRANSFERS: &str = "too many ESDT transfers";
pub const ESDT_INVALID_TOKEN_INDEX: &str = "invalid token index";
pub const ESDT_UNEXPECTED_EGLD: &str = "unexpected EGLD transfer";
pub const INCORRECT_NUM_TRANSFERS: &str = "incorrect number of transfers";
pub const FUNGIBLE_TOKEN_EXPECTED: &str = "fungible token expected";
pub const TOKEN_IDENTIFIER_ESDT_EXPECTED: &str = "ESDT expected";
pub const TRANSFER_EXECUTE_FAILED: &str = "transfer execute failed";
pub const TRANSFER_EXECUTE_REQUIRES_PAYMENT: &str = "transfer execute requires payment";
pub const TRANSFER_EXECUTE_EMPTY: &str = "empty transfer";

pub const ARG_WRONG_NUMBER: &str = "wrong number of arguments";
pub const ARG_ASYNC_WRONG_NUMBER: &str = "wrong number of arguments provided to async call";
pub const ARG_ASYNC_RETURN_WRONG_NUMBER: &str = "wrong number of arguments returned by async call";
pub const ARG_CALLBACK_TOO_FEW: &str = "too few callback arguments provided";
pub const ARG_CALLBACK_TOO_MANY: &str = "too many callback arguments provided";

pub const VALUE_TOO_LONG: &str = "value too long";
pub const ARG_OUT_OF_RANGE: &str = "argument out of range";
pub const ARG_BAD_LENGTH: &str = "argument has wrong length";
pub const ARG_BAD_LENGTH_32: &str = "argument has wrong length: 32 bytes expected";
pub const ARG_DECODE_ERROR_1: &str = "argument decode error (";
pub const ARG_DECODE_ERROR_2: &str = "): ";
pub const STORAGE_VALUE_OUT_OF_RANGE: &str = "storage value out of range";
pub const STORAGE_DECODE_ERROR_1: &str = "storage decode error (key: ";
pub const STORAGE_DECODE_ERROR_2: &str = "): ";
pub const STORAGE_ENCODE_ERROR: &str = "storage encode error: ";
pub const STORAGE_KEY_ENCODE_ERROR: &str = "storage key encode error: ";
pub const STORAGE_VALUE_EXCEEDS_BUFFER: &str = "storage value exceeds buffer";
pub const FINISH_ENCODE_ERROR: &str = "endpoint result encode error: ";
pub const SERIALIZER_DECODE_ERROR: &str = "serializer decode error: ";
pub const SERIALIZER_ENCODE_ERROR: &str = "serializer encode error: ";
pub const FORMATTER_ENCODE_ERROR: &str = "formatter encode error: ";
pub const LOG_TOPIC_ENCODE_ERROR: &str = "log topic encode error: ";
pub const LOG_DATA_ENCODE_ERROR: &str = "log data encode error: ";
pub const CONTRACT_CALL_ENCODE_ERROR: &str = "contract call encode error: ";
pub const BAD_MB_SLICE: &str = "slice out of bounds";

pub const VALUE_EXCEEDS_SLICE: &str = "value exceeds target slice";
pub const CAST_TO_I64_ERROR: &str = "cast to i64 error";
pub const BIG_UINT_EXCEEDS_SLICE: &str = "big uint as_bytes exceed target slice";
pub const BIG_UINT_SUB_NEGATIVE: &str = "cannot subtract because result would be negative";
pub const BIG_UINT_NTH_ROOT_ZERO: &str = "cannot compute 0th root";
pub const BIG_UINT_PARSE_ERROR: &str = "invalid decimal string for big uint";
pub const UNSIGNED_NEGATIVE: &str = "cannot convert to unsigned, number is negative";
pub const ZERO_VALUE_NOT_ALLOWED: &str = "zero value not allowed";
pub const PROPORTION_OVERFLOW_ERR: &str = "proportion overflow";

pub const DESERIALIZATION_INVALID_BYTE: &str = "call data deserialization error: not a valid byte";
pub const DESERIALIZATION_NOT_32_BYTES: &str =
    "call data deserialization error: 32 as_bytes expected";
pub const DESERIALIZATION_ODD_DIGITS: &str =
    "call data deserialization error: odd number of digits in hex representation";
pub const DESERIALIZATION_ARG_OUT_OF_RANGE: &str =
    "call data deserialization error: argument out of range";

pub const CALLBACK_BAD_FUNC: &str = "no callback function with that name exists in contract";

pub const RECIPIENT_ADDRESS_NOT_SET: &str = "recipient address not set";
pub static ONLY_OWNER_CALLER: &str = "Endpoint can only be called by owner";
pub static ONLY_USER_ACCOUNT_CALLER: &str = "Endpoint can only be called by user accounts";

pub const STORAGE_NOT_I64: &str = "storage not i64";
pub const STORAGE_NOT_32_BYTES: &str = "32 bytes of data expected in storage at key";

/// An additional non-VM status, meant just to signal an error in the debugger infrastructure of in the tests.
pub const DEBUG_API_ERR_STATUS: u64 = 100;
pub const DEBUG_API_ERR_HANDLE_STALE: &str = "VMHooksApi misuse: operation called with a handle that does not point to the top context of the call stack";
pub const DEBUG_API_ERR_HANDLE_CONTEXT_MISMATCH: &str =
    "VMHooksApi misuse: operation called with handles from 2 different contexts";
