flash-sdk 1.0.130 → 1.0.132

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ exports.PoolConfig = void 0;
18
18
  var web3_js_1 = require("@solana/web3.js");
19
19
  var PoolConfig_json_1 = __importDefault(require("./PoolConfig.json"));
20
20
  var PoolConfig = (function () {
21
- function PoolConfig(programId, cluster, poolName, poolAddress, lpTokenMint, lpDecimals, perpetuals, transferAuthority, multisig, addressLookupTableAddresses, backupOracle, tokens, custodies) {
21
+ function PoolConfig(programId, cluster, poolName, poolAddress, lpTokenMint, lpDecimals, lpTokenSymbol, perpetuals, transferAuthority, multisig, addressLookupTableAddresses, backupOracle, tokens, custodies) {
22
22
  var _this = this;
23
23
  this.programId = programId;
24
24
  this.cluster = cluster;
@@ -26,6 +26,7 @@ var PoolConfig = (function () {
26
26
  this.poolAddress = poolAddress;
27
27
  this.lpTokenMint = lpTokenMint;
28
28
  this.lpDecimals = lpDecimals;
29
+ this.lpTokenSymbol = lpTokenSymbol;
29
30
  this.perpetuals = perpetuals;
30
31
  this.transferAuthority = transferAuthority;
31
32
  this.multisig = multisig;
@@ -91,7 +92,7 @@ var PoolConfig = (function () {
91
92
  var addressLookupTableAddresses = poolConfig['addressLookupTableAddresses'].map(function (i) {
92
93
  return new web3_js_1.PublicKey(i);
93
94
  });
94
- return new PoolConfig(new web3_js_1.PublicKey(poolConfig.programId), poolConfig.cluster, poolConfig.poolName, new web3_js_1.PublicKey(poolConfig.poolAddress), new web3_js_1.PublicKey(poolConfig.lpTokenMint), poolConfig.lpDecimals, new web3_js_1.PublicKey(poolConfig.perpetuals), new web3_js_1.PublicKey(poolConfig.transferAuthority), new web3_js_1.PublicKey(poolConfig.multisig), addressLookupTableAddresses, new web3_js_1.PublicKey(poolConfig.backupOracle), tokens, custodies);
95
+ return new PoolConfig(new web3_js_1.PublicKey(poolConfig.programId), poolConfig.cluster, poolConfig.poolName, new web3_js_1.PublicKey(poolConfig.poolAddress), new web3_js_1.PublicKey(poolConfig.lpTokenMint), poolConfig.lpDecimals, poolConfig.lpTokenSymbol, new web3_js_1.PublicKey(poolConfig.perpetuals), new web3_js_1.PublicKey(poolConfig.transferAuthority), new web3_js_1.PublicKey(poolConfig.multisig), addressLookupTableAddresses, new web3_js_1.PublicKey(poolConfig.backupOracle), tokens, custodies);
95
96
  };
96
97
  PoolConfig.fromIdsByPk = function (poolPk, cluster) {
97
98
  var poolConfig = PoolConfig_json_1.default.pools.find(function (pool) { return pool['poolAddress'] === poolPk.toString() && cluster === pool['cluster']; });
@@ -106,7 +107,7 @@ var PoolConfig = (function () {
106
107
  var addressLookupTableAddresses = poolConfig['addressLookupTableAddresses'].map(function (i) {
107
108
  return new web3_js_1.PublicKey(i);
108
109
  });
109
- return new PoolConfig(new web3_js_1.PublicKey(poolConfig.programId), poolConfig.cluster, poolConfig.poolName, new web3_js_1.PublicKey(poolConfig.poolAddress), new web3_js_1.PublicKey(poolConfig.lpTokenMint), poolConfig.lpDecimals, new web3_js_1.PublicKey(poolConfig.perpetuals), new web3_js_1.PublicKey(poolConfig.transferAuthority), new web3_js_1.PublicKey(poolConfig.multisig), addressLookupTableAddresses, new web3_js_1.PublicKey(poolConfig.backupOracle), tokens, custodies);
110
+ return new PoolConfig(new web3_js_1.PublicKey(poolConfig.programId), poolConfig.cluster, poolConfig.poolName, new web3_js_1.PublicKey(poolConfig.poolAddress), new web3_js_1.PublicKey(poolConfig.lpTokenMint), poolConfig.lpDecimals, poolConfig.lpTokenSymbol, new web3_js_1.PublicKey(poolConfig.perpetuals), new web3_js_1.PublicKey(poolConfig.transferAuthority), new web3_js_1.PublicKey(poolConfig.multisig), addressLookupTableAddresses, new web3_js_1.PublicKey(poolConfig.backupOracle), tokens, custodies);
110
111
  };
111
112
  return PoolConfig;
112
113
  }());
@@ -13,6 +13,7 @@
13
13
  "poolAddress": "G1kqHDqxMfUDAjLbN43FC5ZM6XDcvWuazdKpDX6BVVxS",
14
14
  "lpTokenMint": "9tbZ44Jgr4e6vMAVZL347iUxVubXsq9gZfbb4zM8nVZ9",
15
15
  "lpDecimals": 6,
16
+ "lpTokenSymbol": "FLP.6",
16
17
  "perpetuals": "ArVyuoPszQtUJ55dLUbfSzgFEd51sGv6e9pa7mY28YSS",
17
18
  "transferAuthority": "3SRkyahDfpKu7Z5pBpqqCh3BmNypdqTQTkPihwqJVHch",
18
19
  "multisig": "H4qXpG1vtRC6k2FKQ1tCs2Ybu1JrFAAQhR3HpR17pNGk",
@@ -25,7 +26,8 @@
25
26
  "decimals": 6,
26
27
  "isStable": true,
27
28
  "isVirtual": false,
28
- "pythTicker": "Crypto.USDC/USD"
29
+ "pythTicker": "Crypto.USDC/USD",
30
+ "pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
29
31
  },
30
32
  {
31
33
  "symbol": "XAU",
@@ -33,7 +35,8 @@
33
35
  "decimals": 6,
34
36
  "isStable": false,
35
37
  "isVirtual": true,
36
- "pythTicker": "Metal.XAU/USD"
38
+ "pythTicker": "Metal.XAU/USD",
39
+ "pythPriceId": "0x765d2ba906dbc32ca17cc11f5310a89e9ee1f6420508c63861f2f8ba4ee34bb2"
37
40
  },
38
41
  {
39
42
  "symbol": "COIN",
@@ -41,7 +44,8 @@
41
44
  "decimals": 6,
42
45
  "isStable": false,
43
46
  "isVirtual": true,
44
- "pythTicker": "Equity.US.COIN/USD"
47
+ "pythTicker": "Equity.US.COIN/USD",
48
+ "pythPriceId": "0xfee33f2a978bf32dd6b662b65ba8083c6773b494f8401194ec1870c640860245"
45
49
  },
46
50
  {
47
51
  "symbol": "EUR",
@@ -49,7 +53,8 @@
49
53
  "decimals": 6,
50
54
  "isStable": false,
51
55
  "isVirtual": true,
52
- "pythTicker": "FX.EUR/USD"
56
+ "pythTicker": "FX.EUR/USD",
57
+ "pythPriceId": "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b"
53
58
  }
54
59
  ],
55
60
  "custodies": [
@@ -62,8 +67,7 @@
62
67
  "decimals": 6,
63
68
  "isStable": true,
64
69
  "isVirtual": false,
65
- "oracleAddress": "5SSkXsEKQepHHAewytPVwdej4epN1nxgLVM84L4KXgy7",
66
- "pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
70
+ "oracleAddress": "5SSkXsEKQepHHAewytPVwdej4epN1nxgLVM84L4KXgy7"
67
71
  },
68
72
  {
69
73
  "custodyId": 1,
@@ -74,8 +78,7 @@
74
78
  "decimals": 6,
75
79
  "isStable": false,
76
80
  "isVirtual": true,
77
- "oracleAddress": "4GqTjGm686yihQ1m1YdTsSvfm4mNfadv6xskzgCYWNC5",
78
- "pythPriceId": "0x765d2ba906dbc32ca17cc11f5310a89e9ee1f6420508c63861f2f8ba4ee34bb2"
81
+ "oracleAddress": "4GqTjGm686yihQ1m1YdTsSvfm4mNfadv6xskzgCYWNC5"
79
82
  },
80
83
  {
81
84
  "custodyId": 2,
@@ -86,8 +89,7 @@
86
89
  "decimals": 6,
87
90
  "isStable": false,
88
91
  "isVirtual": true,
89
- "oracleAddress": "BwkRMkWjfMvWeFLqfQzwhumQan4CxNtyQRbKxtkV4yzi",
90
- "pythPriceId": "0xfee33f2a978bf32dd6b662b65ba8083c6773b494f8401194ec1870c640860245"
92
+ "oracleAddress": "BwkRMkWjfMvWeFLqfQzwhumQan4CxNtyQRbKxtkV4yzi"
91
93
  },
92
94
  {
93
95
  "custodyId": 3,
@@ -98,8 +100,7 @@
98
100
  "decimals": 6,
99
101
  "isStable": false,
100
102
  "isVirtual": true,
101
- "oracleAddress": "E36MyBbavhYKHVLWR79GiReNNnBDiHj6nWA7htbkNZbh",
102
- "pythPriceId": "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b"
103
+ "oracleAddress": "E36MyBbavhYKHVLWR79GiReNNnBDiHj6nWA7htbkNZbh"
103
104
  }
104
105
  ]
105
106
  },
@@ -110,6 +111,7 @@
110
111
  "poolAddress": "G4Pzz6ComzRJ7Tc2JvYWUzECedC8dmz9n2fZpj8hFWmK",
111
112
  "lpTokenMint": "GmURGADRvNzCrV8BDVuG2qVn5JAUgiUuo8NqP7FPj2Yc",
112
113
  "lpDecimals": 6,
114
+ "lpTokenSymbol": "FLP.5",
113
115
  "perpetuals": "ArVyuoPszQtUJ55dLUbfSzgFEd51sGv6e9pa7mY28YSS",
114
116
  "transferAuthority": "3SRkyahDfpKu7Z5pBpqqCh3BmNypdqTQTkPihwqJVHch",
115
117
  "multisig": "H4qXpG1vtRC6k2FKQ1tCs2Ybu1JrFAAQhR3HpR17pNGk",
@@ -122,7 +124,8 @@
122
124
  "decimals": 6,
123
125
  "isStable": true,
124
126
  "isVirtual": false,
125
- "pythTicker": "Crypto.USDC/USD"
127
+ "pythTicker": "Crypto.USDC/USD",
128
+ "pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
126
129
  },
127
130
  {
128
131
  "symbol": "SOL",
@@ -130,7 +133,8 @@
130
133
  "decimals": 9,
131
134
  "isStable": false,
132
135
  "isVirtual": false,
133
- "pythTicker": "Crypto.SOL/USD"
136
+ "pythTicker": "Crypto.SOL/USD",
137
+ "pythPriceId": "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d"
134
138
  },
135
139
  {
136
140
  "symbol": "WSOL",
@@ -138,7 +142,8 @@
138
142
  "decimals": 9,
139
143
  "isStable": false,
140
144
  "isVirtual": false,
141
- "pythTicker": "Crypto.SOL/USD"
145
+ "pythTicker": "Crypto.SOL/USD",
146
+ "pythPriceId": "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d"
142
147
  },
143
148
  {
144
149
  "symbol": "BTC",
@@ -146,7 +151,8 @@
146
151
  "decimals": 6,
147
152
  "isStable": false,
148
153
  "isVirtual": false,
149
- "pythTicker": "Crypto.BTC/USD"
154
+ "pythTicker": "Crypto.BTC/USD",
155
+ "pythPriceId": "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"
150
156
  },
151
157
  {
152
158
  "symbol": "ETH",
@@ -154,7 +160,8 @@
154
160
  "decimals": 6,
155
161
  "isStable": false,
156
162
  "isVirtual": false,
157
- "pythTicker": "Crypto.ETH/USD"
163
+ "pythTicker": "Crypto.ETH/USD",
164
+ "pythPriceId": "0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace"
158
165
  }
159
166
  ],
160
167
  "custodies": [
@@ -167,8 +174,7 @@
167
174
  "decimals": 6,
168
175
  "isStable": true,
169
176
  "isVirtual": false,
170
- "oracleAddress": "5SSkXsEKQepHHAewytPVwdej4epN1nxgLVM84L4KXgy7",
171
- "pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
177
+ "oracleAddress": "5SSkXsEKQepHHAewytPVwdej4epN1nxgLVM84L4KXgy7"
172
178
  },
173
179
  {
174
180
  "custodyId": 1,
@@ -179,8 +185,7 @@
179
185
  "decimals": 9,
180
186
  "isStable": false,
181
187
  "isVirtual": false,
182
- "oracleAddress": "J83w4HKfqxwcq3BEMMkPFSppX3gqekLyLJBexebFVkix",
183
- "pythPriceId": "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d"
188
+ "oracleAddress": "J83w4HKfqxwcq3BEMMkPFSppX3gqekLyLJBexebFVkix"
184
189
  },
185
190
  {
186
191
  "custodyId": 2,
@@ -191,8 +196,7 @@
191
196
  "decimals": 6,
192
197
  "isStable": false,
193
198
  "isVirtual": false,
194
- "oracleAddress": "HovQMDrbAgAYPCmHVSrezcSmkMtXSSUsLDFANExrZh2J",
195
- "pythPriceId": "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"
199
+ "oracleAddress": "HovQMDrbAgAYPCmHVSrezcSmkMtXSSUsLDFANExrZh2J"
196
200
  },
197
201
  {
198
202
  "custodyId": 3,
@@ -203,8 +207,7 @@
203
207
  "decimals": 6,
204
208
  "isStable": false,
205
209
  "isVirtual": false,
206
- "oracleAddress": "EdVCmQ9FSPcVe5YySXDPCRmc8aDQLKJ9xvYBMZPie1Vw",
207
- "pythPriceId": "0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace"
210
+ "oracleAddress": "EdVCmQ9FSPcVe5YySXDPCRmc8aDQLKJ9xvYBMZPie1Vw"
208
211
  }
209
212
  ]
210
213
  },
@@ -215,6 +218,7 @@
215
218
  "poolAddress": "6dohCdceggAgNCG3JGx4cqhyyhchRHpLoTD4RmsYBVar",
216
219
  "lpTokenMint": "RcsqWsonqwfbXqmQQ5SrvLA1LD63AHkm2cLFhHKc1xS",
217
220
  "lpDecimals": 6,
221
+ "lpTokenSymbol": "FLP.4",
218
222
  "perpetuals": "ArVyuoPszQtUJ55dLUbfSzgFEd51sGv6e9pa7mY28YSS",
219
223
  "transferAuthority": "3SRkyahDfpKu7Z5pBpqqCh3BmNypdqTQTkPihwqJVHch",
220
224
  "multisig": "H4qXpG1vtRC6k2FKQ1tCs2Ybu1JrFAAQhR3HpR17pNGk",
@@ -227,7 +231,8 @@
227
231
  "decimals": 6,
228
232
  "isStable": true,
229
233
  "isVirtual": false,
230
- "pythTicker": "Crypto.USDC/USD"
234
+ "pythTicker": "Crypto.USDC/USD",
235
+ "pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
231
236
  },
232
237
  {
233
238
  "symbol": "SOL",
@@ -235,7 +240,8 @@
235
240
  "decimals": 9,
236
241
  "isStable": false,
237
242
  "isVirtual": false,
238
- "pythTicker": "Crypto.SOL/USD"
243
+ "pythTicker": "Crypto.SOL/USD",
244
+ "pythPriceId": "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d"
239
245
  },
240
246
  {
241
247
  "symbol": "WSOL",
@@ -243,7 +249,8 @@
243
249
  "decimals": 9,
244
250
  "isStable": false,
245
251
  "isVirtual": false,
246
- "pythTicker": "Crypto.SOL/USD"
252
+ "pythTicker": "Crypto.SOL/USD",
253
+ "pythPriceId": "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d"
247
254
  },
248
255
  {
249
256
  "symbol": "BTC",
@@ -251,7 +258,8 @@
251
258
  "decimals": 6,
252
259
  "isStable": false,
253
260
  "isVirtual": false,
254
- "pythTicker": "Crypto.BTC/USD"
261
+ "pythTicker": "Crypto.BTC/USD",
262
+ "pythPriceId": "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"
255
263
  },
256
264
  {
257
265
  "symbol": "ETH",
@@ -259,7 +267,8 @@
259
267
  "decimals": 6,
260
268
  "isStable": false,
261
269
  "isVirtual": false,
262
- "pythTicker": "Crypto.ETH/USD"
270
+ "pythTicker": "Crypto.ETH/USD",
271
+ "pythPriceId": "0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace"
263
272
  },
264
273
  {
265
274
  "symbol": "XAU",
@@ -267,7 +276,8 @@
267
276
  "decimals": 6,
268
277
  "isStable": false,
269
278
  "isVirtual": true,
270
- "pythTicker": "Metal.XAU/USD"
279
+ "pythTicker": "Metal.XAU/USD",
280
+ "pythPriceId": "0x765d2ba906dbc32ca17cc11f5310a89e9ee1f6420508c63861f2f8ba4ee34bb2"
271
281
  },
272
282
  {
273
283
  "symbol": "COIN",
@@ -275,7 +285,8 @@
275
285
  "decimals": 6,
276
286
  "isStable": false,
277
287
  "isVirtual": true,
278
- "pythTicker": "Equity.US.COIN/USD"
288
+ "pythTicker": "Equity.US.COIN/USD",
289
+ "pythPriceId": "0xfee33f2a978bf32dd6b662b65ba8083c6773b494f8401194ec1870c640860245"
279
290
  },
280
291
  {
281
292
  "symbol": "EUR",
@@ -283,7 +294,8 @@
283
294
  "decimals": 6,
284
295
  "isStable": false,
285
296
  "isVirtual": true,
286
- "pythTicker": "FX.EUR/USD"
297
+ "pythTicker": "FX.EUR/USD",
298
+ "pythPriceId": "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b"
287
299
  }
288
300
  ],
289
301
  "custodies": [
@@ -296,8 +308,7 @@
296
308
  "decimals": 6,
297
309
  "isStable": true,
298
310
  "isVirtual": false,
299
- "oracleAddress": "5SSkXsEKQepHHAewytPVwdej4epN1nxgLVM84L4KXgy7",
300
- "pythPriceId": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a"
311
+ "oracleAddress": "5SSkXsEKQepHHAewytPVwdej4epN1nxgLVM84L4KXgy7"
301
312
  },
302
313
  {
303
314
  "custodyId": 1,
@@ -308,8 +319,7 @@
308
319
  "decimals": 9,
309
320
  "isStable": false,
310
321
  "isVirtual": false,
311
- "oracleAddress": "J83w4HKfqxwcq3BEMMkPFSppX3gqekLyLJBexebFVkix",
312
- "pythPriceId": "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d"
322
+ "oracleAddress": "J83w4HKfqxwcq3BEMMkPFSppX3gqekLyLJBexebFVkix"
313
323
  },
314
324
  {
315
325
  "custodyId": 2,
@@ -320,8 +330,7 @@
320
330
  "decimals": 6,
321
331
  "isStable": false,
322
332
  "isVirtual": false,
323
- "oracleAddress": "HovQMDrbAgAYPCmHVSrezcSmkMtXSSUsLDFANExrZh2J",
324
- "pythPriceId": "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"
333
+ "oracleAddress": "HovQMDrbAgAYPCmHVSrezcSmkMtXSSUsLDFANExrZh2J"
325
334
  },
326
335
  {
327
336
  "custodyId": 3,
@@ -332,8 +341,7 @@
332
341
  "decimals": 6,
333
342
  "isStable": false,
334
343
  "isVirtual": false,
335
- "oracleAddress": "EdVCmQ9FSPcVe5YySXDPCRmc8aDQLKJ9xvYBMZPie1Vw",
336
- "pythPriceId": "0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace"
344
+ "oracleAddress": "EdVCmQ9FSPcVe5YySXDPCRmc8aDQLKJ9xvYBMZPie1Vw"
337
345
  },
338
346
  {
339
347
  "custodyId": 4,
@@ -344,8 +352,7 @@
344
352
  "decimals": 6,
345
353
  "isStable": false,
346
354
  "isVirtual": true,
347
- "oracleAddress": "4GqTjGm686yihQ1m1YdTsSvfm4mNfadv6xskzgCYWNC5",
348
- "pythPriceId": "0x765d2ba906dbc32ca17cc11f5310a89e9ee1f6420508c63861f2f8ba4ee34bb2"
355
+ "oracleAddress": "4GqTjGm686yihQ1m1YdTsSvfm4mNfadv6xskzgCYWNC5"
349
356
  },
350
357
  {
351
358
  "custodyId": 5,
@@ -356,8 +363,7 @@
356
363
  "decimals": 6,
357
364
  "isStable": false,
358
365
  "isVirtual": true,
359
- "oracleAddress": "BwkRMkWjfMvWeFLqfQzwhumQan4CxNtyQRbKxtkV4yzi",
360
- "pythPriceId": "0xfee33f2a978bf32dd6b662b65ba8083c6773b494f8401194ec1870c640860245"
366
+ "oracleAddress": "BwkRMkWjfMvWeFLqfQzwhumQan4CxNtyQRbKxtkV4yzi"
361
367
  },
362
368
  {
363
369
  "custodyId": 6,
@@ -368,8 +374,7 @@
368
374
  "decimals": 6,
369
375
  "isStable": false,
370
376
  "isVirtual": true,
371
- "oracleAddress": "E36MyBbavhYKHVLWR79GiReNNnBDiHj6nWA7htbkNZbh",
372
- "pythPriceId": "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b"
377
+ "oracleAddress": "E36MyBbavhYKHVLWR79GiReNNnBDiHj6nWA7htbkNZbh"
373
378
  }
374
379
  ]
375
380
  }
@@ -53,7 +53,7 @@ var getPythnetOraclePrices = function (program, poolConfig, backupOracleSecretKe
53
53
  return __generator(this, function (_a) {
54
54
  switch (_a.label) {
55
55
  case 0:
56
- pythPriceIds = poolConfig.custodies.map(function (f) { return f.pythPriceId; });
56
+ pythPriceIds = poolConfig.tokens.map(function (f) { return f.pythPriceId; });
57
57
  return [4, exports.pythPriceServiceConnection.getLatestPriceFeeds(pythPriceIds)];
58
58
  case 1:
59
59
  currentPrices = _a.sent();
@@ -4071,6 +4071,11 @@ export type Perpetuals = {
4071
4071
  {
4072
4072
  "name": "AddCollateralLog";
4073
4073
  "fields": [
4074
+ {
4075
+ "name": "poolName";
4076
+ "type": "string";
4077
+ "index": false;
4078
+ },
4074
4079
  {
4075
4080
  "name": "owner";
4076
4081
  "type": "publicKey";
@@ -4103,6 +4108,11 @@ export type Perpetuals = {
4103
4108
  {
4104
4109
  "name": "AddLiquidityLog";
4105
4110
  "fields": [
4111
+ {
4112
+ "name": "poolName";
4113
+ "type": "string";
4114
+ "index": false;
4115
+ },
4106
4116
  {
4107
4117
  "name": "owner";
4108
4118
  "type": "publicKey";
@@ -4133,6 +4143,11 @@ export type Perpetuals = {
4133
4143
  {
4134
4144
  "name": "ClosePositionLog";
4135
4145
  "fields": [
4146
+ {
4147
+ "name": "poolName";
4148
+ "type": "string";
4149
+ "index": false;
4150
+ },
4136
4151
  {
4137
4152
  "name": "owner";
4138
4153
  "type": "publicKey";
@@ -4185,6 +4200,11 @@ export type Perpetuals = {
4185
4200
  {
4186
4201
  "name": "DecreaseSizeLog";
4187
4202
  "fields": [
4203
+ {
4204
+ "name": "poolName";
4205
+ "type": "string";
4206
+ "index": false;
4207
+ },
4188
4208
  {
4189
4209
  "name": "owner";
4190
4210
  "type": "publicKey";
@@ -4242,6 +4262,11 @@ export type Perpetuals = {
4242
4262
  {
4243
4263
  "name": "IncreaseSizeLog";
4244
4264
  "fields": [
4265
+ {
4266
+ "name": "poolName";
4267
+ "type": "string";
4268
+ "index": false;
4269
+ },
4245
4270
  {
4246
4271
  "name": "owner";
4247
4272
  "type": "publicKey";
@@ -4284,6 +4309,11 @@ export type Perpetuals = {
4284
4309
  {
4285
4310
  "name": "LiquidateLog";
4286
4311
  "fields": [
4312
+ {
4313
+ "name": "poolName";
4314
+ "type": "string";
4315
+ "index": false;
4316
+ },
4287
4317
  {
4288
4318
  "name": "owner";
4289
4319
  "type": "publicKey";
@@ -4331,6 +4361,11 @@ export type Perpetuals = {
4331
4361
  {
4332
4362
  "name": "OpenPositionLog";
4333
4363
  "fields": [
4364
+ {
4365
+ "name": "poolName";
4366
+ "type": "string";
4367
+ "index": false;
4368
+ },
4334
4369
  {
4335
4370
  "name": "owner";
4336
4371
  "type": "publicKey";
@@ -4383,6 +4418,11 @@ export type Perpetuals = {
4383
4418
  {
4384
4419
  "name": "RemoveCollateralLog";
4385
4420
  "fields": [
4421
+ {
4422
+ "name": "poolName";
4423
+ "type": "string";
4424
+ "index": false;
4425
+ },
4386
4426
  {
4387
4427
  "name": "owner";
4388
4428
  "type": "publicKey";
@@ -4420,6 +4460,11 @@ export type Perpetuals = {
4420
4460
  {
4421
4461
  "name": "RemoveLiquidityLog";
4422
4462
  "fields": [
4463
+ {
4464
+ "name": "poolName";
4465
+ "type": "string";
4466
+ "index": false;
4467
+ },
4423
4468
  {
4424
4469
  "name": "owner";
4425
4470
  "type": "publicKey";
@@ -4450,6 +4495,11 @@ export type Perpetuals = {
4450
4495
  {
4451
4496
  "name": "SwapLog";
4452
4497
  "fields": [
4498
+ {
4499
+ "name": "poolName";
4500
+ "type": "string";
4501
+ "index": false;
4502
+ },
4453
4503
  {
4454
4504
  "name": "owner";
4455
4505
  "type": "publicKey";
@@ -4074,6 +4074,11 @@ exports.IDL = {
4074
4074
  {
4075
4075
  "name": "AddCollateralLog",
4076
4076
  "fields": [
4077
+ {
4078
+ "name": "poolName",
4079
+ "type": "string",
4080
+ "index": false
4081
+ },
4077
4082
  {
4078
4083
  "name": "owner",
4079
4084
  "type": "publicKey",
@@ -4106,6 +4111,11 @@ exports.IDL = {
4106
4111
  {
4107
4112
  "name": "AddLiquidityLog",
4108
4113
  "fields": [
4114
+ {
4115
+ "name": "poolName",
4116
+ "type": "string",
4117
+ "index": false
4118
+ },
4109
4119
  {
4110
4120
  "name": "owner",
4111
4121
  "type": "publicKey",
@@ -4136,6 +4146,11 @@ exports.IDL = {
4136
4146
  {
4137
4147
  "name": "ClosePositionLog",
4138
4148
  "fields": [
4149
+ {
4150
+ "name": "poolName",
4151
+ "type": "string",
4152
+ "index": false
4153
+ },
4139
4154
  {
4140
4155
  "name": "owner",
4141
4156
  "type": "publicKey",
@@ -4188,6 +4203,11 @@ exports.IDL = {
4188
4203
  {
4189
4204
  "name": "DecreaseSizeLog",
4190
4205
  "fields": [
4206
+ {
4207
+ "name": "poolName",
4208
+ "type": "string",
4209
+ "index": false
4210
+ },
4191
4211
  {
4192
4212
  "name": "owner",
4193
4213
  "type": "publicKey",
@@ -4245,6 +4265,11 @@ exports.IDL = {
4245
4265
  {
4246
4266
  "name": "IncreaseSizeLog",
4247
4267
  "fields": [
4268
+ {
4269
+ "name": "poolName",
4270
+ "type": "string",
4271
+ "index": false
4272
+ },
4248
4273
  {
4249
4274
  "name": "owner",
4250
4275
  "type": "publicKey",
@@ -4287,6 +4312,11 @@ exports.IDL = {
4287
4312
  {
4288
4313
  "name": "LiquidateLog",
4289
4314
  "fields": [
4315
+ {
4316
+ "name": "poolName",
4317
+ "type": "string",
4318
+ "index": false
4319
+ },
4290
4320
  {
4291
4321
  "name": "owner",
4292
4322
  "type": "publicKey",
@@ -4334,6 +4364,11 @@ exports.IDL = {
4334
4364
  {
4335
4365
  "name": "OpenPositionLog",
4336
4366
  "fields": [
4367
+ {
4368
+ "name": "poolName",
4369
+ "type": "string",
4370
+ "index": false
4371
+ },
4337
4372
  {
4338
4373
  "name": "owner",
4339
4374
  "type": "publicKey",
@@ -4386,6 +4421,11 @@ exports.IDL = {
4386
4421
  {
4387
4422
  "name": "RemoveCollateralLog",
4388
4423
  "fields": [
4424
+ {
4425
+ "name": "poolName",
4426
+ "type": "string",
4427
+ "index": false
4428
+ },
4389
4429
  {
4390
4430
  "name": "owner",
4391
4431
  "type": "publicKey",
@@ -4423,6 +4463,11 @@ exports.IDL = {
4423
4463
  {
4424
4464
  "name": "RemoveLiquidityLog",
4425
4465
  "fields": [
4466
+ {
4467
+ "name": "poolName",
4468
+ "type": "string",
4469
+ "index": false
4470
+ },
4426
4471
  {
4427
4472
  "name": "owner",
4428
4473
  "type": "publicKey",
@@ -4453,6 +4498,11 @@ exports.IDL = {
4453
4498
  {
4454
4499
  "name": "SwapLog",
4455
4500
  "fields": [
4501
+ {
4502
+ "name": "poolName",
4503
+ "type": "string",
4504
+ "index": false
4505
+ },
4456
4506
  {
4457
4507
  "name": "owner",
4458
4508
  "type": "publicKey",