@proton/wrap-constants 0.2.6 → 0.2.9

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.6",
8
+ "version": "0.2.9",
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": "e98a79a658c475184a090a9bfe19f49401973681"
47
+ "gitHead": "b6863a23441f7dc2b7055ca8d626c671785d51f3"
48
48
  }
@@ -60,7 +60,6 @@ export type Depth = z.infer<typeof depthParser>
60
60
  export const getDepthParser = z.object({
61
61
  marketId: z.string(),
62
62
  step: z.string(),
63
- side: z.string(),
64
63
  limit: z.number().or(numTransform).default(100).refine(n => n <= 250, 'Max limit is 250'),
65
64
  })
66
65
  export type GetDepth = z.infer<typeof getDepthParser>
@@ -153,4 +152,34 @@ export interface Market {
153
152
  ask_token: ExtendedAsset
154
153
  bid_multiplier: number
155
154
  ask_multiplier: number
155
+ }
156
+
157
+ export interface DbMarket {
158
+ market_id: number
159
+ order_min: number
160
+ status_code: number
161
+ maker_fee: number
162
+ taker_fee: number
163
+ bid_token_c: string
164
+ bid_token_s: string
165
+ bid_token_m: number
166
+ ask_token_c: string
167
+ ask_token_s: string
168
+ ask_token_m: number
169
+ created_at: string
170
+ updated_at: string
171
+ }
172
+
173
+ export enum ITopics {
174
+ TRADES = "TRADES",
175
+ ORDERS = "ORDERS",
176
+ }
177
+
178
+ export const TOPICS = {
179
+ [ITopics.TRADES]: {
180
+ topic: ITopics.TRADES,
181
+ },
182
+ [ITopics.ORDERS]: {
183
+ topic: ITopics.ORDERS,
184
+ }
156
185
  }