@gainsnetwork/sdk 0.0.51-multi-collat-rc2 → 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 +2 -0
- 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
|
@@ -94,6 +94,7 @@ export type TradeHistoryRecord = {
|
|
|
94
94
|
action: string;
|
|
95
95
|
address: string;
|
|
96
96
|
buy: number;
|
|
97
|
+
collateralPriceUsd: number;
|
|
97
98
|
date: string;
|
|
98
99
|
leverage: number;
|
|
99
100
|
pair: string;
|
|
@@ -125,6 +126,7 @@ export type LeaderboardTrader = {
|
|
|
125
126
|
pnl: number;
|
|
126
127
|
volume: number;
|
|
127
128
|
score: number;
|
|
129
|
+
totalPnlUsd: number;
|
|
128
130
|
};
|
|
129
131
|
export type OpenTradeParams = [
|
|
130
132
|
address: string,
|