@proton/wrap-constants 0.2.45 → 0.2.47
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 +72 -120
- package/dist/wrap-constants.cjs.development.js +10 -12
- 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 +10 -12
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/constants.ts +2 -2
- package/src/parsers/dex.ts +7 -9
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.47",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"resolutions": {
|
|
45
45
|
"typescript": "4.5"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "6aab613ec5c74daf1eb4dcd73f45b720f9a164a3"
|
|
48
48
|
}
|
package/src/constants.ts
CHANGED
|
@@ -58,11 +58,11 @@ export const initializeConstants = (chain: string) => {
|
|
|
58
58
|
: 'https://api-dev.protonchain.com',
|
|
59
59
|
|
|
60
60
|
METAL_DEX_HTTP_ENDPOINT: chain === 'proton'
|
|
61
|
-
? 'https://
|
|
61
|
+
? 'https://metal-dexdb.global.binfra.one/dex'
|
|
62
62
|
: 'https://metallicus-dbapi-dev01.binfra.one/dex',
|
|
63
63
|
|
|
64
64
|
METAL_DEX_WS_ENDPOINT: chain === 'proton'
|
|
65
|
-
? 'wss://
|
|
65
|
+
? 'wss://metal-dexdb.global.binfra.one/dexws'
|
|
66
66
|
: 'wss://metallicus-dbapi-dev01.binfra.one/dexws',
|
|
67
67
|
|
|
68
68
|
PROTON_ENDPOINTS: chain === 'proton'
|
package/src/parsers/dex.ts
CHANGED
|
@@ -111,18 +111,16 @@ export const marketParser = z.object({
|
|
|
111
111
|
taker_fee: z.number(),
|
|
112
112
|
order_min: z.number(),
|
|
113
113
|
bid_token: z.object({
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
contract: z.string()
|
|
114
|
+
code: z.string(),
|
|
115
|
+
precision: z.number(),
|
|
116
|
+
contract: z.string(),
|
|
117
|
+
multiplier: z.number()
|
|
119
118
|
}),
|
|
120
119
|
ask_token: z.object({
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
precision: z.number(),
|
|
124
|
-
}),
|
|
120
|
+
code: z.string(),
|
|
121
|
+
precision: z.number(),
|
|
125
122
|
contract: z.string(),
|
|
123
|
+
multiplier: z.number()
|
|
126
124
|
})
|
|
127
125
|
})
|
|
128
126
|
export type Market = z.infer<typeof marketParser>
|