@proton/wrap-constants 0.2.35 → 0.2.37
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/parsers/dex.d.ts +14 -0
- package/dist/wrap-constants.cjs.development.js +7 -1
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +7 -2
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/coins.ts +1 -1
- package/src/parsers/dex.ts +7 -0
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.37",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"analyze": "size-limit --why"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@bloks/numbers": "^
|
|
29
|
+
"@bloks/numbers": "^27.0.0",
|
|
30
30
|
"@bloks/utils": "^25.0.0",
|
|
31
31
|
"@proton/js": "^26.0.1",
|
|
32
32
|
"@size-limit/preset-small-lib": "^4.9.1",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"resolutions": {
|
|
45
45
|
"typescript": "4.5"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "e864a7bd9fe9232b216768edfd070385fbc95070"
|
|
48
48
|
}
|
package/src/coins.ts
CHANGED
package/src/parsers/dex.ts
CHANGED
|
@@ -115,6 +115,13 @@ export const syncParser = z.object({
|
|
|
115
115
|
})
|
|
116
116
|
export type Sync = z.infer<typeof syncParser>
|
|
117
117
|
|
|
118
|
+
export const latestSyncParser = z.object({
|
|
119
|
+
dbSecondsBehind: z.number(),
|
|
120
|
+
chronicleSecondsBehind: z.number(),
|
|
121
|
+
maxSecondsBehind: z.number()
|
|
122
|
+
})
|
|
123
|
+
export type LatestSync = z.infer<typeof latestSyncParser>
|
|
124
|
+
|
|
118
125
|
export enum orderType { ORDERBOOK = 0, LIMIT = 1, STOPLOSS = 2, TAKEPROFIT = 3 }
|
|
119
126
|
|
|
120
127
|
export enum orderSide { INVALID = 0, BUY = 1, SELL = 2 }
|