export enum HISTORY_CODES {
  //COMMON
  //--FLOW
  C1_ORDER = 101,
  C2_ORDER = 102,
  TRANSFER = 103,
  COLLATERAL = 104,
  BATCH = 105,
  TAKE_ORDER = 106,
  L1_TX = 107,
  //--ERROR
  ERROR = 200,
  BAD_REQUEST = 201,
  FORBIDDEN = 202,
  NOT_FOUND = 203,
  CONFLICT = 204,
  CONTRACT_ERROR = 210,
  NOT_IMPLEMENTED = 211,
  TIMEOUT = 212,
  BATCH_ERROR = 213,
  //--SUCCESS
  SUCCESS = 500,
  BATCH_SUCCESS = 501,

  //C1 Order Creation
  //--ERROR
  C1_ORDER_NOT_CREATED = 301,
  //--SUCCESS
  C1_ORDER_CREATED = 601,

  //C1 Order Closing
  //--ERROR
  C1_ORDER_NOT_CLOSED = 302,
  //--SUCCESS
  C1_ORDER_DEACTIVATED = 605,
  C1_ORDER_CLOSED = 606,

  //C1 Order Lifecycle
  //--ERROR
  C1_ORDER_NOT_ACTIVE = 303,
  C1_BAD_L1_TX = 321,
  C1_L1_TX_HANDLING_ERROR = 322,
  C1_L1_EVENT_ERROR = 313,

  //--SUCCESS
  C1_ORDER_USED = 612,
  C1_ORDER_UPDATED = 613,
  C1_ORDER_COMPLETED = 614,
  C1_ORDER_EXPIRED = 608,
  C1_L1_TX_HANDLED = 620,
  C1_L1_TRANSFER_TX_HANDLED = 621,
  C1_L1_TAKE_TX_HANDLED = 622,

  //C2 Order Creation
  //--ERROR
  C2_ORDER_NOT_CREATED = 401,
  //--SUCCESS
  C2_ORDER_CREATED = 701,

  //C2 Order Closing
  //--ERROR
  C2_ORDER_NOT_CLOSED = 403,
  //--SUCCESS
  C2_ORDER_CLOSED = 706,
  C2_ORDER_DISABLED = 707,

  //C2 Order Lifecycle
  //--ERROR
  C2_ORDER_NOT_ACTIVE = 402,
  //--SUCCESS
  C2_ORDER_USED = 703,
  C2_ORDER_UPDATED = 704,
  C2_ORDER_EXPIRED = 705,

  //C2 Request Creation
  //--ERROR
  C2_REQUEST_NOT_CREATED = 411,
  C2_FITTING_ORDER_NOT_FOUND = 413,
  C2_BTC_NONCE_NOT_AVAILABLE = 414,
  C2_L1_EVENT_ERROR = 415,
  //--SUCCESS
  C2_REQUEST_CREATED = 711,
  C2_REQUEST_UPDATED = 712,
  C2_REQUEST_FALLBACK_CALL = 713,

  //C2 Order Lifecycle
  //--ERROR
  C2_L1_TX_HANDLING_ERROR = 420,
  C2_BAD_L1_TX = 424,
  C2_REQUEST_NOT_ACTIVE = 412,
  C2_REQUEST_EXPIRED = 416,
  //--SUCCESS
  C2_L1_TX_HANDLED = 720,
  C2_REQUEST_EXECUTED = 714,

  //Collateral
  //--ERROR
  C2_COLLATERAL_DEPOSIT_FAILED = 431,
  C2_COLLATERAL_WITHDRAW_FAILED = 432,
  //--SUCCESS
  C2_COLLATERAL_DEPOSIT = 731,
  C2_COLLATERAL_WITHDRAW = 732,
  C2_COLLATERAL_LOCKED = 733,
  C2_COLLATERAL_UNLOCKED = 734,
}
