@proton/wrap-constants 0.2.112 → 0.2.114

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.
package/dist/index.d.ts CHANGED
@@ -7104,7 +7104,6 @@ declare const serializeOrderParser: z.ZodObject<{
7104
7104
  }>;
7105
7105
  declare type SerializeOrderParser = z.infer<typeof serializeOrderParser>;
7106
7106
  declare const serializeOrderResponseParser: z.ZodObject<{
7107
- sync: z.ZodNumber;
7108
7107
  data: z.ZodObject<{
7109
7108
  serialized_tx_hex: z.ZodString;
7110
7109
  digest_hex: z.ZodString;
@@ -7120,13 +7119,11 @@ declare const serializeOrderResponseParser: z.ZodObject<{
7120
7119
  serialized_tx_hex: string;
7121
7120
  digest_hex: string;
7122
7121
  };
7123
- sync: number;
7124
7122
  }, {
7125
7123
  data: {
7126
7124
  serialized_tx_hex: string;
7127
7125
  digest_hex: string;
7128
7126
  };
7129
- sync: number;
7130
7127
  }>;
7131
7128
  declare type SerializeOrderResponse = z.infer<typeof serializeOrderResponseParser>;
7132
7129
  /**
@@ -9454,7 +9451,7 @@ declare const historyTransactionParser: z.ZodObject<{
9454
9451
  }>;
9455
9452
  declare type HistoryTransaction = z.infer<typeof historyTransactionParser>;
9456
9453
  declare const getHistoryTransactionResponseParser: z.ZodObject<{
9457
- transaction: z.ZodNullable<z.ZodObject<{
9454
+ data: z.ZodNullable<z.ZodObject<{
9458
9455
  seq: z.ZodString;
9459
9456
  block_num: z.ZodString;
9460
9457
  block_time: z.ZodString;
@@ -10102,7 +10099,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10102
10099
  };
10103
10100
  }>>;
10104
10101
  }, "strip", z.ZodTypeAny, {
10105
- transaction: {
10102
+ data: {
10106
10103
  block_num: string;
10107
10104
  block_time: string;
10108
10105
  seq: string;
@@ -10178,7 +10175,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10178
10175
  };
10179
10176
  } | null;
10180
10177
  }, {
10181
- transaction: {
10178
+ data: {
10182
10179
  block_num: string;
10183
10180
  block_time: string;
10184
10181
  seq: string;
package/dist/index.js CHANGED
@@ -1615,7 +1615,7 @@ var initializeConstants = (chain) => {
1615
1615
  MAX_PRICE: "9223372036854775806",
1616
1616
  MAX_ITEMS_PER_PAGE_DESKTOP: 25,
1617
1617
  MIN_PRICE: 1,
1618
- DEFAULT_DEX_SYMBOL: chain === "proton" ? "XPR_XMD" : "XPR_XUSDC",
1618
+ DEFAULT_DEX_SYMBOL: "XPR_XMD",
1619
1619
  CHAIN: chain,
1620
1620
  SWAP_COINS: swapCoins,
1621
1621
  BRIDGE_COINS: bridgeCoins,
@@ -2004,7 +2004,6 @@ var serializeOrderParser = z11.object({
2004
2004
  })
2005
2005
  });
2006
2006
  var serializeOrderResponseParser = z11.object({
2007
- sync: z11.number(),
2008
2007
  data: z11.object({
2009
2008
  serialized_tx_hex: z11.string(),
2010
2009
  digest_hex: z11.string()
@@ -2251,7 +2250,7 @@ var historyTransactionParser = z11.object({
2251
2250
  })
2252
2251
  });
2253
2252
  var getHistoryTransactionResponseParser = z11.object({
2254
- transaction: historyTransactionParser.nullable()
2253
+ data: historyTransactionParser.nullable()
2255
2254
  });
2256
2255
  var orderType = /* @__PURE__ */ ((orderType2) => {
2257
2256
  orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
package/dist/index.mjs CHANGED
@@ -1473,7 +1473,7 @@ var initializeConstants = (chain) => {
1473
1473
  MAX_PRICE: "9223372036854775806",
1474
1474
  MAX_ITEMS_PER_PAGE_DESKTOP: 25,
1475
1475
  MIN_PRICE: 1,
1476
- DEFAULT_DEX_SYMBOL: chain === "proton" ? "XPR_XMD" : "XPR_XUSDC",
1476
+ DEFAULT_DEX_SYMBOL: "XPR_XMD",
1477
1477
  CHAIN: chain,
1478
1478
  SWAP_COINS: swapCoins,
1479
1479
  BRIDGE_COINS: bridgeCoins,
@@ -1862,7 +1862,6 @@ var serializeOrderParser = z11.object({
1862
1862
  })
1863
1863
  });
1864
1864
  var serializeOrderResponseParser = z11.object({
1865
- sync: z11.number(),
1866
1865
  data: z11.object({
1867
1866
  serialized_tx_hex: z11.string(),
1868
1867
  digest_hex: z11.string()
@@ -2109,7 +2108,7 @@ var historyTransactionParser = z11.object({
2109
2108
  })
2110
2109
  });
2111
2110
  var getHistoryTransactionResponseParser = z11.object({
2112
- transaction: historyTransactionParser.nullable()
2111
+ data: historyTransactionParser.nullable()
2113
2112
  });
2114
2113
  var orderType = /* @__PURE__ */ ((orderType2) => {
2115
2114
  orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.112",
8
+ "version": "0.2.114",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.js",
11
11
  "typings": "dist/index.d.ts",
@@ -40,5 +40,5 @@
40
40
  "resolutions": {
41
41
  "typescript": "4.5"
42
42
  },
43
- "gitHead": "d340ee4a32f980da6f9173f5b536a2b3749cbaaf"
43
+ "gitHead": "6cb7d77e5e2964a4d350fd1a07d7e5b57e272d79"
44
44
  }
package/src/constants.ts CHANGED
@@ -108,7 +108,7 @@ export const initializeConstants = (chain: string) => {
108
108
  MAX_PRICE: "9223372036854775806",
109
109
  MAX_ITEMS_PER_PAGE_DESKTOP: 25,
110
110
  MIN_PRICE: 1,
111
- DEFAULT_DEX_SYMBOL: chain === "proton" ? "XPR_XMD" : "XPR_XUSDC",
111
+ DEFAULT_DEX_SYMBOL: "XPR_XMD",
112
112
 
113
113
  CHAIN: chain,
114
114
 
@@ -164,7 +164,6 @@ export const serializeOrderParser = z.object({
164
164
  export type SerializeOrderParser = z.infer<typeof serializeOrderParser>;
165
165
 
166
166
  export const serializeOrderResponseParser = z.object({
167
- sync: z.number(),
168
167
  data: z.object({
169
168
  serialized_tx_hex: z.string(),
170
169
  digest_hex: z.string(),
@@ -516,7 +515,7 @@ export const historyTransactionParser = z.object({
516
515
  export type HistoryTransaction = z.infer<typeof historyTransactionParser>;
517
516
 
518
517
  export const getHistoryTransactionResponseParser = z.object({
519
- transaction: historyTransactionParser.nullable(),
518
+ data: historyTransactionParser.nullable(),
520
519
  });
521
520
  export type GetHistoryTransaction = z.infer<
522
521
  typeof getHistoryTransactionResponseParser