@ultrade/shared 1.0.4 → 1.0.6

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.
Files changed (35) hide show
  1. package/dist/common/index.d.ts +0 -1
  2. package/dist/common/index.js +19 -26
  3. package/dist/common/mappers/index.js +19 -0
  4. package/dist/common/mappers/trade.mapper.js +19 -0
  5. package/dist/enums/index.d.ts +1 -0
  6. package/dist/enums/index.js +19 -0
  7. package/dist/enums/rabbitMq.d.ts +7 -0
  8. package/dist/helpers/algo.helper.js +10 -0
  9. package/dist/helpers/assert.helper.js +19 -0
  10. package/dist/helpers/balance.helper.js +29 -0
  11. package/dist/helpers/codex/common.helper.js +29 -0
  12. package/dist/helpers/codex/index.js +29 -0
  13. package/dist/helpers/codex/mbr.helper.js +29 -0
  14. package/dist/helpers/codex/mna.helper.js +29 -0
  15. package/dist/helpers/codex/order.helper.js +29 -0
  16. package/dist/helpers/codex/setGlobal.helper.js +29 -0
  17. package/dist/helpers/codex/transfer.helper.js +29 -0
  18. package/dist/helpers/codex/txn.helper.js +29 -0
  19. package/dist/helpers/codex.helper.js +29 -0
  20. package/dist/helpers/eth.helper.js +29 -0
  21. package/dist/helpers/index.js +10 -0
  22. package/dist/helpers/order.helper.js +19 -0
  23. package/dist/helpers/pair.helper.js +19 -0
  24. package/dist/helpers/pointSystem.helper.js +10 -0
  25. package/dist/helpers/vaa.helper.js +29 -0
  26. package/dist/helpers/withdraw.helper.js +83 -0
  27. package/dist/interfaces/api/index.d.ts +1 -0
  28. package/dist/interfaces/index.d.ts +3 -0
  29. package/dist/interfaces/index.js +73 -0
  30. package/dist/types/amm/amm.d.ts +2 -0
  31. package/dist/types/index.d.ts +1 -0
  32. package/dist/types/index.js +10 -0
  33. package/package.json +1 -1
  34. package/dist/common/timestamp.helper.d.ts +0 -1
  35. package/dist/common/timestamp.helper.js +0 -30
@@ -37,6 +37,7 @@ __exportStar(__webpack_require__(9181), exports);
37
37
  __exportStar(__webpack_require__(7359), exports);
38
38
  __exportStar(__webpack_require__(3620), exports);
39
39
  __exportStar(__webpack_require__(573), exports);
40
+ __exportStar(__webpack_require__(7493), exports);
40
41
 
41
42
 
42
43
  /***/ }),
@@ -243,6 +244,15 @@ class ChartQueryDto {
243
244
  exports.ChartQueryDto = ChartQueryDto;
244
245
 
245
246
 
247
+ /***/ }),
248
+
249
+ /***/ 7493:
250
+ /***/ ((__unused_webpack_module, exports) => {
251
+
252
+
253
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
254
+
255
+
246
256
  /***/ }),
247
257
 
248
258
  /***/ 9181:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrade/shared",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "This package contains shared code for the projects.",
5
5
  "exports": {
6
6
  "./common": {
@@ -1 +0,0 @@
1
- export declare function timestamp(accuracy?: "micro" | "nano"): string;
@@ -1,30 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- var __webpack_exports__ = {};
4
- // This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports).
5
- (() => {
6
- var exports = __webpack_exports__;
7
-
8
- Object.defineProperty(exports, "__esModule", ({ value: true }));
9
- exports.timestamp = timestamp;
10
- const startTime = BigInt(Date.now());
11
- const startHrTime = process.hrtime.bigint();
12
- function timestamp(accuracy = 'micro') {
13
- const elapsedNano = process.hrtime.bigint() - startHrTime;
14
- const baseTimestampNano = startTime * 10n ** 6n + elapsedNano;
15
- const baseString = baseTimestampNano.toString();
16
- let result;
17
- if (accuracy === "micro") {
18
- result = `${baseString.slice(0, -6)}.${baseString.slice(-6, -3)}`;
19
- }
20
- else {
21
- result = `${baseString.slice(0, -6)}.${baseString.slice(-6)}`;
22
- }
23
- return result;
24
- }
25
-
26
- })();
27
-
28
- module.exports = __webpack_exports__;
29
- /******/ })()
30
- ;