@proton/wrap-constants 0.2.20 → 0.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1211,6 +1211,10 @@ var initializeConstants = function initializeConstants(chain) {
1211
1211
  METAL_DEX_WS_ENDPOINT: chain === 'proton' ? 'wss://metallicus-dbapi-dev01.binfra.one/dexws' : 'wss://metallicus-dbapi-dev01.binfra.one/dexws',
1212
1212
  PROTON_ENDPOINTS: chain === 'proton' ? ['https://metal-proton-rpc.global.binfra.one', 'https://proton.greymass.com', 'https://proton.eoscafeblock.com', 'https://proton.cryptolions.io', 'https://proton.eosusa.news'] : ['https://metal-protontest-rpc.global.binfra.one', 'https://testnet.protonchain.com'],
1213
1213
  CHAIN_ID: chain === 'proton' ? '384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0' : '71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd',
1214
+ DEX_PROCESS_SIZE: 30,
1215
+ DEX_SLTPPROCESS_SIZE: 10,
1216
+ MAX_PRICE: "9223372036854775806",
1217
+ MIN_PRICE: 1,
1214
1218
  CHAIN: chain,
1215
1219
  SWAP_COINS: swapCoins,
1216
1220
  BRIDGE_COINS: bridgeCoins,
@@ -1472,6 +1476,8 @@ var orderHistoryParser = /*#__PURE__*/z.object({
1472
1476
  account_name: /*#__PURE__*/z.string(),
1473
1477
  order_side: /*#__PURE__*/z.number(),
1474
1478
  order_type: /*#__PURE__*/z.number(),
1479
+ trigger_price: /*#__PURE__*/z.number(),
1480
+ fill_type: /*#__PURE__*/z.number(),
1475
1481
  status: /*#__PURE__*/z.string(),
1476
1482
  quantity_change: /*#__PURE__*/z.number(),
1477
1483
  trx_id: /*#__PURE__*/z.string()
@@ -1540,11 +1546,10 @@ var syncParser = /*#__PURE__*/z.object({
1540
1546
  var orderType;
1541
1547
 
1542
1548
  (function (orderType) {
1543
- orderType[orderType["INVALID"] = 0] = "INVALID";
1544
- orderType[orderType["MARKET"] = 1] = "MARKET";
1545
- orderType[orderType["LIMIT"] = 2] = "LIMIT";
1546
- orderType[orderType["STOPLOSS"] = 3] = "STOPLOSS";
1547
- orderType[orderType["TAKEPROFIT"] = 4] = "TAKEPROFIT";
1549
+ orderType[orderType["ORDERBOOK"] = 0] = "ORDERBOOK";
1550
+ orderType[orderType["LIMIT"] = 1] = "LIMIT";
1551
+ orderType[orderType["STOPLOSS"] = 2] = "STOPLOSS";
1552
+ orderType[orderType["TAKEPROFIT"] = 3] = "TAKEPROFIT";
1548
1553
  })(orderType || (orderType = {}));
1549
1554
 
1550
1555
  var orderSide;
@@ -1555,6 +1560,14 @@ var orderSide;
1555
1560
  orderSide[orderSide["SELL"] = 2] = "SELL";
1556
1561
  })(orderSide || (orderSide = {}));
1557
1562
 
1563
+ var fillType;
1564
+
1565
+ (function (fillType) {
1566
+ fillType[fillType["GTC"] = 0] = "GTC";
1567
+ fillType[fillType["IOC"] = 1] = "IOC";
1568
+ fillType[fillType["POST_ONLY"] = 2] = "POST_ONLY";
1569
+ })(fillType || (fillType = {}));
1570
+
1558
1571
  var logStatus;
1559
1572
 
1560
1573
  (function (logStatus) {
@@ -1874,5 +1887,5 @@ var applyDiscountToFee = function applyDiscountToFee(fee, staked) {
1874
1887
  }
1875
1888
  };
1876
1889
 
1877
- export { Chains, ExtendedAssetParser, FEE_FACTOR, Graph, ILink, INode, ITopics, Networks, Providers, Status, TOPICS, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, accountParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, dailyParser, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, generateAddressBodyParser, generateAddressResponse, generateAuthParser, getDepthParser, getOhlcvParser, getOrderHistoryParser, getTradesParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, logStatus, median, ohlcvParser, orderHistoryParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, protonExplorerTxUrl, rateParser, similarChains, singleActionTransactionParser, syncParser, tradeParser, transactionParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
1890
+ export { Chains, ExtendedAssetParser, FEE_FACTOR, Graph, ILink, INode, ITopics, Networks, Providers, Status, TOPICS, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, accountParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, dailyParser, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, fillType, generateAddressBodyParser, generateAddressResponse, generateAuthParser, getDepthParser, getOhlcvParser, getOrderHistoryParser, getTradesParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, logStatus, median, ohlcvParser, orderHistoryParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, protonExplorerTxUrl, rateParser, similarChains, singleActionTransactionParser, syncParser, tradeParser, transactionParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
1878
1891
  //# sourceMappingURL=wrap-constants.esm.js.map