@orderly.network/hooks 1.0.28-experimental.13 → 1.0.28-experimental.14

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.
@@ -1 +1 @@
1
- {"version":3,"file":"useWithdraw.d.ts","sourceRoot":"","sources":["../../src/orderly/useWithdraw.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW;uBAUX;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,uBAAuB,EAAE,OAAO,CAAC;KAClC,KAAG,QAAQ,GAAG,CAAC;;;;;;CAiEnB,CAAC"}
1
+ {"version":3,"file":"useWithdraw.d.ts","sourceRoot":"","sources":["../../src/orderly/useWithdraw.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;uBAUX;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,uBAAuB,EAAE,OAAO,CAAC;KAClC,KAAG,QAAQ,GAAG,CAAC;;;;;;CAiEnB,CAAC"}
@@ -127,13 +127,13 @@ export class LimitOrderCreator extends BaseOrderCreator {
127
127
  if (price.gt(priceRange.max)) {
128
128
  errors.order_price = {
129
129
  type: "max",
130
- message: `price must be less than ${new Decimal(priceRange.max).todp(symbol.quote_dp)}`,
130
+ message: `Price must be less than ${new Decimal(priceRange.max).todp(symbol.quote_dp)}`,
131
131
  };
132
132
  }
133
133
  if (price.lt(priceRange.min)) {
134
134
  errors.order_price = {
135
135
  type: "min",
136
- message: `price must be greater than ${new Decimal(priceRange.min).todp(symbol.quote_dp)}`,
136
+ message: `Price must be greater than ${new Decimal(priceRange.min).todp(symbol.quote_dp)}`,
137
137
  };
138
138
  }
139
139
  }
@@ -192,7 +192,7 @@ export class StopLimitOrderCreator extends LimitOrderCreator {
192
192
  if (!trigger_price) {
193
193
  errors.trigger_price = {
194
194
  type: "required",
195
- message: "trigger price is required",
195
+ message: "Trigger price is required",
196
196
  };
197
197
  }
198
198
  if (trigger_price && order_price) {
@@ -214,13 +214,13 @@ export class StopLimitOrderCreator extends LimitOrderCreator {
214
214
  if (price.gt(priceRange.max)) {
215
215
  errors.order_price = {
216
216
  type: "max",
217
- message: `price must be less than ${new Decimal(priceRange.max).todp(symbol.quote_dp)}`,
217
+ message: `Price must be less than ${new Decimal(priceRange.max).todp(symbol.quote_dp)}`,
218
218
  };
219
219
  }
220
220
  if (price.lt(priceRange.min)) {
221
221
  errors.order_price = {
222
222
  type: "min",
223
- message: `price must be greater than ${new Decimal(priceRange.min).todp(symbol.quote_dp)}`,
223
+ message: `Price must be greater than ${new Decimal(priceRange.min).todp(symbol.quote_dp)}`,
224
224
  };
225
225
  }
226
226
  }
@@ -255,7 +255,7 @@ export class StopMarketOrderCreator extends LimitOrderCreator {
255
255
  if (!trigger_price) {
256
256
  errors.trigger_price = {
257
257
  type: "required",
258
- message: "trigger price is required",
258
+ message: "Trigger price is required",
259
259
  };
260
260
  }
261
261
  return errors;
package/esm/version.d.ts CHANGED
@@ -5,6 +5,6 @@ declare global {
5
5
  };
6
6
  }
7
7
  }
8
- declare const _default: "1.0.28-experimental.13";
8
+ declare const _default: "1.0.28-experimental.14";
9
9
  export default _default;
10
10
  //# sourceMappingURL=version.d.ts.map
package/esm/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  if (typeof window !== 'undefined') {
2
2
  window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
3
- window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.28-experimental.13";
3
+ window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.28-experimental.14";
4
4
  }
5
5
  ;
6
- export default "1.0.28-experimental.13";
6
+ export default "1.0.28-experimental.14";
@@ -1 +1 @@
1
- {"version":3,"file":"useWithdraw.d.ts","sourceRoot":"","sources":["../../src/orderly/useWithdraw.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW;uBAUX;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,uBAAuB,EAAE,OAAO,CAAC;KAClC,KAAG,QAAQ,GAAG,CAAC;;;;;;CAiEnB,CAAC"}
1
+ {"version":3,"file":"useWithdraw.d.ts","sourceRoot":"","sources":["../../src/orderly/useWithdraw.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;uBAUX;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,uBAAuB,EAAE,OAAO,CAAC;KAClC,KAAG,QAAQ,GAAG,CAAC;;;;;;CAiEnB,CAAC"}
@@ -131,13 +131,13 @@ class LimitOrderCreator extends BaseOrderCreator {
131
131
  if (price.gt(priceRange.max)) {
132
132
  errors.order_price = {
133
133
  type: "max",
134
- message: `price must be less than ${new utils_1.Decimal(priceRange.max).todp(symbol.quote_dp)}`,
134
+ message: `Price must be less than ${new utils_1.Decimal(priceRange.max).todp(symbol.quote_dp)}`,
135
135
  };
136
136
  }
137
137
  if (price.lt(priceRange.min)) {
138
138
  errors.order_price = {
139
139
  type: "min",
140
- message: `price must be greater than ${new utils_1.Decimal(priceRange.min).todp(symbol.quote_dp)}`,
140
+ message: `Price must be greater than ${new utils_1.Decimal(priceRange.min).todp(symbol.quote_dp)}`,
141
141
  };
142
142
  }
143
143
  }
@@ -201,7 +201,7 @@ class StopLimitOrderCreator extends LimitOrderCreator {
201
201
  if (!trigger_price) {
202
202
  errors.trigger_price = {
203
203
  type: "required",
204
- message: "trigger price is required",
204
+ message: "Trigger price is required",
205
205
  };
206
206
  }
207
207
  if (trigger_price && order_price) {
@@ -223,13 +223,13 @@ class StopLimitOrderCreator extends LimitOrderCreator {
223
223
  if (price.gt(priceRange.max)) {
224
224
  errors.order_price = {
225
225
  type: "max",
226
- message: `price must be less than ${new utils_1.Decimal(priceRange.max).todp(symbol.quote_dp)}`,
226
+ message: `Price must be less than ${new utils_1.Decimal(priceRange.max).todp(symbol.quote_dp)}`,
227
227
  };
228
228
  }
229
229
  if (price.lt(priceRange.min)) {
230
230
  errors.order_price = {
231
231
  type: "min",
232
- message: `price must be greater than ${new utils_1.Decimal(priceRange.min).todp(symbol.quote_dp)}`,
232
+ message: `Price must be greater than ${new utils_1.Decimal(priceRange.min).todp(symbol.quote_dp)}`,
233
233
  };
234
234
  }
235
235
  }
@@ -265,7 +265,7 @@ class StopMarketOrderCreator extends LimitOrderCreator {
265
265
  if (!trigger_price) {
266
266
  errors.trigger_price = {
267
267
  type: "required",
268
- message: "trigger price is required",
268
+ message: "Trigger price is required",
269
269
  };
270
270
  }
271
271
  return errors;
package/lib/version.d.ts CHANGED
@@ -5,6 +5,6 @@ declare global {
5
5
  };
6
6
  }
7
7
  }
8
- declare const _default: "1.0.28-experimental.13";
8
+ declare const _default: "1.0.28-experimental.14";
9
9
  export default _default;
10
10
  //# sourceMappingURL=version.d.ts.map
package/lib/version.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  if (typeof window !== 'undefined') {
4
4
  window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
5
- window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.28-experimental.13";
5
+ window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.28-experimental.14";
6
6
  }
7
7
  ;
8
- exports.default = "1.0.28-experimental.13";
8
+ exports.default = "1.0.28-experimental.14";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderly.network/hooks",
3
- "version": "1.0.28-experimental.13",
3
+ "version": "1.0.28-experimental.14",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
@@ -27,7 +27,7 @@
27
27
  "tsup": "^7.1.0",
28
28
  "typedoc": "^0.24.8",
29
29
  "typescript": "^5.1.6",
30
- "tsconfig": "0.0.87-experimental.13"
30
+ "tsconfig": "0.0.87-experimental.14"
31
31
  },
32
32
  "dependencies": {
33
33
  "@layerzerolabs/scan-client": "^0.0.6",
@@ -35,11 +35,11 @@
35
35
  "swr": "^2.2.4",
36
36
  "use-constant": "^1.1.1",
37
37
  "use-debounce": "^9.0.4",
38
- "@orderly.network/core": "0.1.27-experimental.13",
39
- "@orderly.network/utils": "0.0.79-experimental.13",
40
- "@orderly.network/net": "1.0.114-experimental.13",
41
- "@orderly.network/perp": "1.0.27-experimental.13",
42
- "@orderly.network/types": "0.1.27-experimental.13"
38
+ "@orderly.network/core": "0.1.27-experimental.14",
39
+ "@orderly.network/perp": "1.0.27-experimental.14",
40
+ "@orderly.network/utils": "0.0.79-experimental.14",
41
+ "@orderly.network/types": "0.1.27-experimental.14",
42
+ "@orderly.network/net": "1.0.114-experimental.14"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"