@dhedge/backend-flatcoin-core 0.3.27 → 0.3.29
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/contracts/abi/v2/perp-viewer-get-positions-batched.d.ts +20 -0
- package/dist/contracts/abi/v2/perp-viewer-get-positions-batched.js +86 -0
- package/dist/contracts/abi/v2/perp-viewer.js +0 -81
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.js +3 -1
- package/package.json +1 -1
|
@@ -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',
|
|
@@ -14,4 +14,5 @@ export { OrderAnnouncementModule } from './abi/v2/order-announcement-module';
|
|
|
14
14
|
export { OrderExecutionModule } from './abi/v2/order-execution-module';
|
|
15
15
|
export { OptionViewer } from './abi/v2/option-viewer';
|
|
16
16
|
export { PerpViewer } from './abi/v2/perp-viewer';
|
|
17
|
+
export { PerpViewerGetPositionsBatched } from './abi/v2/perp-viewer-get-positions-batched';
|
|
17
18
|
export * from './helpers';
|
package/dist/contracts/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.PerpViewer = exports.OptionViewer = exports.OrderExecutionModule = exports.OrderAnnouncementModule = exports.CanLiquidateWithPriceFeeds = exports.FlatcoinVault = exports.DelayedOrder = exports.LimitOrder = exports.LiquidateWithoutPriceFeeds = exports.Liquidate = exports.LiquidationModule = exports.LeverageModule = exports.FlatcoinErrors = exports.ViewerGetPositionData = exports.Viewer = exports.StableModule = void 0;
|
|
17
|
+
exports.PerpViewerGetPositionsBatched = exports.PerpViewer = exports.OptionViewer = exports.OrderExecutionModule = exports.OrderAnnouncementModule = exports.CanLiquidateWithPriceFeeds = exports.FlatcoinVault = exports.DelayedOrder = exports.LimitOrder = exports.LiquidateWithoutPriceFeeds = exports.Liquidate = exports.LiquidationModule = exports.LeverageModule = exports.FlatcoinErrors = exports.ViewerGetPositionData = exports.Viewer = exports.StableModule = void 0;
|
|
18
18
|
var stable_module_1 = require("./abi/stable-module");
|
|
19
19
|
Object.defineProperty(exports, "StableModule", { enumerable: true, get: function () { return stable_module_1.StableModule; } });
|
|
20
20
|
var viewer_1 = require("./abi/viewer");
|
|
@@ -47,4 +47,6 @@ var option_viewer_1 = require("./abi/v2/option-viewer");
|
|
|
47
47
|
Object.defineProperty(exports, "OptionViewer", { enumerable: true, get: function () { return option_viewer_1.OptionViewer; } });
|
|
48
48
|
var perp_viewer_1 = require("./abi/v2/perp-viewer");
|
|
49
49
|
Object.defineProperty(exports, "PerpViewer", { enumerable: true, get: function () { return perp_viewer_1.PerpViewer; } });
|
|
50
|
+
var perp_viewer_get_positions_batched_1 = require("./abi/v2/perp-viewer-get-positions-batched");
|
|
51
|
+
Object.defineProperty(exports, "PerpViewerGetPositionsBatched", { enumerable: true, get: function () { return perp_viewer_get_positions_batched_1.PerpViewerGetPositionsBatched; } });
|
|
50
52
|
__exportStar(require("./helpers"), exports);
|