@dhedge/backend-flatcoin-core 0.3.27 → 0.3.28

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.
@@ -0,0 +1,20 @@
1
+ export declare const PerpViewerGetPositionsBatched: {
2
+ inputs: {
3
+ internalType: string;
4
+ name: string;
5
+ type: string;
6
+ }[];
7
+ name: string;
8
+ outputs: {
9
+ components: {
10
+ internalType: string;
11
+ name: string;
12
+ type: string;
13
+ }[];
14
+ internalType: string;
15
+ name: string;
16
+ type: string;
17
+ }[];
18
+ stateMutability: string;
19
+ type: string;
20
+ }[];
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PerpViewerGetPositionsBatched = void 0;
4
+ exports.PerpViewerGetPositionsBatched = [
5
+ {
6
+ inputs: [
7
+ {
8
+ internalType: 'uint256',
9
+ name: 'tokenIdFrom_',
10
+ type: 'uint256',
11
+ },
12
+ {
13
+ internalType: 'uint256',
14
+ name: 'tokenIdTo_',
15
+ type: 'uint256',
16
+ },
17
+ ],
18
+ name: 'getPositionData',
19
+ outputs: [
20
+ {
21
+ components: [
22
+ {
23
+ internalType: 'uint256',
24
+ name: 'tokenId',
25
+ type: 'uint256',
26
+ },
27
+ {
28
+ internalType: 'uint256',
29
+ name: 'averagePrice',
30
+ type: 'uint256',
31
+ },
32
+ {
33
+ internalType: 'uint256',
34
+ name: 'marginDeposited',
35
+ type: 'uint256',
36
+ },
37
+ {
38
+ internalType: 'uint256',
39
+ name: 'additionalSize',
40
+ type: 'uint256',
41
+ },
42
+ {
43
+ internalType: 'int256',
44
+ name: 'entryCumulativeFunding',
45
+ type: 'int256',
46
+ },
47
+ {
48
+ internalType: 'int256',
49
+ name: 'profitLoss',
50
+ type: 'int256',
51
+ },
52
+ {
53
+ internalType: 'int256',
54
+ name: 'accruedFunding',
55
+ type: 'int256',
56
+ },
57
+ {
58
+ internalType: 'int256',
59
+ name: 'marginAfterSettlement',
60
+ type: 'int256',
61
+ },
62
+ {
63
+ internalType: 'uint256',
64
+ name: 'liquidationPrice',
65
+ type: 'uint256',
66
+ },
67
+ {
68
+ internalType: 'uint256',
69
+ name: 'limitOrderStopLossPrice',
70
+ type: 'uint256',
71
+ },
72
+ {
73
+ internalType: 'uint256',
74
+ name: 'limitOrderProfitTakePrice',
75
+ type: 'uint256',
76
+ },
77
+ ],
78
+ internalType: 'struct LeveragePositionData[]',
79
+ name: 'positionData_',
80
+ type: 'tuple[]',
81
+ },
82
+ ],
83
+ stateMutability: 'view',
84
+ type: 'function',
85
+ },
86
+ ];
@@ -280,87 +280,6 @@ exports.PerpViewer = [
280
280
  stateMutability: 'view',
281
281
  type: 'function',
282
282
  },
283
- {
284
- inputs: [
285
- {
286
- internalType: 'uint256',
287
- name: 'tokenIdFrom_',
288
- type: 'uint256',
289
- },
290
- {
291
- internalType: 'uint256',
292
- name: 'tokenIdTo_',
293
- type: 'uint256',
294
- },
295
- ],
296
- name: 'getPositionData',
297
- outputs: [
298
- {
299
- components: [
300
- {
301
- internalType: 'uint256',
302
- name: 'tokenId',
303
- type: 'uint256',
304
- },
305
- {
306
- internalType: 'uint256',
307
- name: 'averagePrice',
308
- type: 'uint256',
309
- },
310
- {
311
- internalType: 'uint256',
312
- name: 'marginDeposited',
313
- type: 'uint256',
314
- },
315
- {
316
- internalType: 'uint256',
317
- name: 'additionalSize',
318
- type: 'uint256',
319
- },
320
- {
321
- internalType: 'int256',
322
- name: 'entryCumulativeFunding',
323
- type: 'int256',
324
- },
325
- {
326
- internalType: 'int256',
327
- name: 'profitLoss',
328
- type: 'int256',
329
- },
330
- {
331
- internalType: 'int256',
332
- name: 'accruedFunding',
333
- type: 'int256',
334
- },
335
- {
336
- internalType: 'int256',
337
- name: 'marginAfterSettlement',
338
- type: 'int256',
339
- },
340
- {
341
- internalType: 'uint256',
342
- name: 'liquidationPrice',
343
- type: 'uint256',
344
- },
345
- {
346
- internalType: 'uint256',
347
- name: 'limitOrderStopLossPrice',
348
- type: 'uint256',
349
- },
350
- {
351
- internalType: 'uint256',
352
- name: 'limitOrderProfitTakePrice',
353
- type: 'uint256',
354
- },
355
- ],
356
- internalType: 'struct LeveragePositionData[]',
357
- name: 'positionData_',
358
- type: 'tuple[]',
359
- },
360
- ],
361
- stateMutability: 'view',
362
- type: 'function',
363
- },
364
283
  {
365
284
  inputs: [],
366
285
  name: 'getVaultSummary',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhedge/backend-flatcoin-core",
3
- "version": "0.3.27",
3
+ "version": "0.3.28",
4
4
  "description": "Backend Flatcoin Core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",