@gainsnetwork/sdk 0.0.51-multi-collat-rc1 → 0.0.51-multi-collat-rc3
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/lib/constants.js +2 -3
- package/lib/contracts/addresses.json +10 -0
- package/lib/trade/types.d.ts +7 -4
- package/package.json +1 -1
package/lib/constants.js
CHANGED
|
@@ -231,8 +231,7 @@ exports.stockSplits = {
|
|
|
231
231
|
exports.delistedPairIxs = new Set([
|
|
232
232
|
6, 31, 36, 42, 45, 48, 50, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
|
|
233
233
|
70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
|
|
234
|
-
89, 97, 99, 101, 106, 107, 108, 52, 131,
|
|
235
|
-
|
|
236
|
-
186, 188, 189, 190,
|
|
234
|
+
89, 97, 99, 101, 106, 107, 108, 52, 131, 147, 157, 158, 160, 161, 166, 170,
|
|
235
|
+
179, 180, 181, 182, 183, 186, 188, 189, 190,
|
|
237
236
|
]);
|
|
238
237
|
exports.delistedGroupsIxs = new Set([6, 7]);
|
|
@@ -33,6 +33,16 @@
|
|
|
33
33
|
"gnsBorrowingFees": "0xA280c8e34dcD6A835183E13CA82c6fAE20988644",
|
|
34
34
|
"gnsTradingCallbacks": "0xA7443A20B42f9156F7D9DB01e51523C42CAC8eCE",
|
|
35
35
|
"gDai": "0x5215C8B3e76D493c8bcb9A7352F7afe18A6bb091"
|
|
36
|
+
},
|
|
37
|
+
"ETH": {
|
|
38
|
+
"gfarmTradingStorageV5": "0x3468885B028271e586419a8827C12c19673DBbcc",
|
|
39
|
+
"gnsMultiCollatDiamond": "0xDee93dD1Cb54ce80D690eC07a20CB0ce9d7F741C",
|
|
40
|
+
"gTokenOpenPnlFeed": "0x14148383529690EF511d35a3a24dE78b9414895c",
|
|
41
|
+
"gnsNftRewardsV6": "0x820781b85F446eDc4165C1c1D1e273B33d0B57aB",
|
|
42
|
+
"gnsNftRewardsV6_3_1": "0xf7Ac400b45Bdd2E098FaCA3642bE4d01071BC73B",
|
|
43
|
+
"gnsBorrowingFees": "0xBaE5EdF3DF8d1CA3DB5Ff9E9B43937c8e8f4CeC5",
|
|
44
|
+
"gnsTradingCallbacks": "0x9b897661E03ac0131d0f5E522eC188d9193Cb1f5",
|
|
45
|
+
"gDai": "0xBCfCE19e1a97222cbE2eeebC87196670Fce46c87"
|
|
36
46
|
}
|
|
37
47
|
},
|
|
38
48
|
"421613": {
|
package/lib/trade/types.d.ts
CHANGED
|
@@ -73,10 +73,6 @@ export type OpenInterest = {
|
|
|
73
73
|
max: number;
|
|
74
74
|
short: number;
|
|
75
75
|
};
|
|
76
|
-
export type OpenCollateral = {
|
|
77
|
-
long: number;
|
|
78
|
-
short: number;
|
|
79
|
-
};
|
|
80
76
|
export type PairDepth = {
|
|
81
77
|
onePercentDepthAboveUsd: number;
|
|
82
78
|
onePercentDepthBelowUsd: number;
|
|
@@ -98,6 +94,7 @@ export type TradeHistoryRecord = {
|
|
|
98
94
|
action: string;
|
|
99
95
|
address: string;
|
|
100
96
|
buy: number;
|
|
97
|
+
collateralPriceUsd: number;
|
|
101
98
|
date: string;
|
|
102
99
|
leverage: number;
|
|
103
100
|
pair: string;
|
|
@@ -129,6 +126,7 @@ export type LeaderboardTrader = {
|
|
|
129
126
|
pnl: number;
|
|
130
127
|
volume: number;
|
|
131
128
|
score: number;
|
|
129
|
+
totalPnlUsd: number;
|
|
132
130
|
};
|
|
133
131
|
export type OpenTradeParams = [
|
|
134
132
|
address: string,
|
|
@@ -176,3 +174,8 @@ export type OiWindow = PairOi;
|
|
|
176
174
|
export type OiWindows = {
|
|
177
175
|
[key: string]: OiWindow;
|
|
178
176
|
};
|
|
177
|
+
export type CollateralConfig = {
|
|
178
|
+
precision: number;
|
|
179
|
+
precisionDelta: number;
|
|
180
|
+
decimals?: number;
|
|
181
|
+
};
|