@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.
- package/esm/orderly/useWithdraw.d.ts.map +1 -1
- package/esm/utils/createOrder.js +6 -6
- package/esm/version.d.ts +1 -1
- package/esm/version.js +2 -2
- package/lib/orderly/useWithdraw.d.ts.map +1 -1
- package/lib/utils/createOrder.js +6 -6
- package/lib/version.d.ts +1 -1
- package/lib/version.js +2 -2
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWithdraw.d.ts","sourceRoot":"","sources":["../../src/orderly/useWithdraw.ts"],"names":[],"mappings":"
|
|
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"}
|
package/esm/utils/createOrder.js
CHANGED
|
@@ -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: `
|
|
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: `
|
|
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: "
|
|
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: `
|
|
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: `
|
|
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: "
|
|
258
|
+
message: "Trigger price is required",
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
261
|
return errors;
|
package/esm/version.d.ts
CHANGED
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.
|
|
3
|
+
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.28-experimental.14";
|
|
4
4
|
}
|
|
5
5
|
;
|
|
6
|
-
export default "1.0.28-experimental.
|
|
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":"
|
|
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"}
|
package/lib/utils/createOrder.js
CHANGED
|
@@ -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: `
|
|
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: `
|
|
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: "
|
|
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: `
|
|
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: `
|
|
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: "
|
|
268
|
+
message: "Trigger price is required",
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
return errors;
|
package/lib/version.d.ts
CHANGED
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.
|
|
5
|
+
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.0.28-experimental.14";
|
|
6
6
|
}
|
|
7
7
|
;
|
|
8
|
-
exports.default = "1.0.28-experimental.
|
|
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.
|
|
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.
|
|
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.
|
|
39
|
-
"@orderly.network/
|
|
40
|
-
"@orderly.network/
|
|
41
|
-
"@orderly.network/
|
|
42
|
-
"@orderly.network/
|
|
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"
|