@proton/wrap-constants 0.2.20 → 0.2.23

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.
@@ -39,6 +39,7 @@ var _similarChains, _explorerLinkByChain;
39
39
  Chains["RippleMainnet"] = "Ripple";
40
40
  Chains["SolanaMainnet"] = "Solana";
41
41
  Chains["MetalXTestnet"] = "Metal X-Chain (Testnet)";
42
+ Chains["MetalCTestnet"] = "Metal C-Chain (Testnet)";
42
43
  })(exports.Chains || (exports.Chains = {}));
43
44
 
44
45
  (function (Networks) {
@@ -49,6 +50,7 @@ var _similarChains, _explorerLinkByChain;
49
50
  Networks["BEP20"] = "bep20";
50
51
  Networks["XLM"] = "xlm";
51
52
  Networks["AVM"] = "avm";
53
+ Networks["EVM"] = "evm";
52
54
  })(exports.Networks || (exports.Networks = {}));
53
55
 
54
56
  var similarChains = (_similarChains = {}, _similarChains[exports.Chains.EthereumMainnet] = [exports.Chains.BinanceBEP20], _similarChains[exports.Chains.BinanceBEP20] = [exports.Chains.EthereumMainnet], _similarChains);
@@ -244,12 +246,12 @@ var initializeCoins = function initializeCoins(protonChain) {
244
246
  wallets: [].concat(IS_TESTNET ? [{
245
247
  wallet: 'METAL',
246
248
  symbol: 'METAL',
247
- chain: exports.Chains.MetalXTestnet,
248
- network: exports.Networks.AVM,
249
- precision: 9,
249
+ chain: exports.Chains.MetalCTestnet,
250
+ network: exports.Networks.EVM,
251
+ precision: 18,
250
252
  contract: '',
251
253
  provider: exports.Providers.METAL,
252
- hasWithdrawMemo: true
254
+ hasWithdrawMemo: false
253
255
  }] : []),
254
256
  image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
255
257
  coingeckoId: ''
@@ -1212,6 +1214,10 @@ var initializeConstants = function initializeConstants(chain) {
1212
1214
  METAL_DEX_WS_ENDPOINT: chain === 'proton' ? 'wss://metallicus-dbapi-dev01.binfra.one/dexws' : 'wss://metallicus-dbapi-dev01.binfra.one/dexws',
1213
1215
  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'],
1214
1216
  CHAIN_ID: chain === 'proton' ? '384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0' : '71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd',
1217
+ DEX_PROCESS_SIZE: 30,
1218
+ DEX_SLTPPROCESS_SIZE: 10,
1219
+ MAX_PRICE: "9223372036854775806",
1220
+ MIN_PRICE: 1,
1215
1221
  CHAIN: chain,
1216
1222
  SWAP_COINS: swapCoins,
1217
1223
  BRIDGE_COINS: bridgeCoins,
@@ -1469,6 +1475,8 @@ var orderHistoryParser = /*#__PURE__*/z.z.object({
1469
1475
  account_name: /*#__PURE__*/z.z.string(),
1470
1476
  order_side: /*#__PURE__*/z.z.number(),
1471
1477
  order_type: /*#__PURE__*/z.z.number(),
1478
+ trigger_price: /*#__PURE__*/z.z.number(),
1479
+ fill_type: /*#__PURE__*/z.z.number(),
1472
1480
  status: /*#__PURE__*/z.z.string(),
1473
1481
  quantity_change: /*#__PURE__*/z.z.number(),
1474
1482
  trx_id: /*#__PURE__*/z.z.string()
@@ -1536,11 +1544,10 @@ var syncParser = /*#__PURE__*/z.z.object({
1536
1544
  });
1537
1545
 
1538
1546
  (function (orderType) {
1539
- orderType[orderType["INVALID"] = 0] = "INVALID";
1540
- orderType[orderType["MARKET"] = 1] = "MARKET";
1541
- orderType[orderType["LIMIT"] = 2] = "LIMIT";
1542
- orderType[orderType["STOPLOSS"] = 3] = "STOPLOSS";
1543
- orderType[orderType["TAKEPROFIT"] = 4] = "TAKEPROFIT";
1547
+ orderType[orderType["ORDERBOOK"] = 0] = "ORDERBOOK";
1548
+ orderType[orderType["LIMIT"] = 1] = "LIMIT";
1549
+ orderType[orderType["STOPLOSS"] = 2] = "STOPLOSS";
1550
+ orderType[orderType["TAKEPROFIT"] = 3] = "TAKEPROFIT";
1544
1551
  })(exports.orderType || (exports.orderType = {}));
1545
1552
 
1546
1553
  (function (orderSide) {
@@ -1549,6 +1556,12 @@ var syncParser = /*#__PURE__*/z.z.object({
1549
1556
  orderSide[orderSide["SELL"] = 2] = "SELL";
1550
1557
  })(exports.orderSide || (exports.orderSide = {}));
1551
1558
 
1559
+ (function (fillType) {
1560
+ fillType[fillType["GTC"] = 0] = "GTC";
1561
+ fillType[fillType["IOC"] = 1] = "IOC";
1562
+ fillType[fillType["POST_ONLY"] = 2] = "POST_ONLY";
1563
+ })(exports.fillType || (exports.fillType = {}));
1564
+
1552
1565
  (function (logStatus) {
1553
1566
  logStatus["CREATE"] = "create";
1554
1567
  logStatus["UPDATE"] = "update";