@haven-fi/solauto-sdk 1.0.286 → 1.0.288

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"transactionsManager.d.ts","sourceRoot":"","sources":["../../src/transactions/transactionsManager.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMzD,OAAO,EACL,aAAa,EAEd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,kBAAkB,EAElB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,oBAAoB,EAAa,MAAM,YAAY,CAAC;AAO7D,qBAAa,wBAAyB,SAAQ,KAAK;gBACrC,OAAO,EAAE,MAAM;CAK5B;AAqCD,qBAAa,eAAe;IAMjB,OAAO,EAAE,CACd,UAAU,EAAE,MAAM,KACf,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM;IARtB,oBAAoB,EAAG,MAAM,EAAE,CAAC;IAChC,EAAE,CAAC,EAAE,kBAAkB,CAAC;IACjB,WAAW,EAAE,OAAO,CAAS;gBAG3B,OAAO,EAAE,CACd,UAAU,EAAE,MAAM,KACf,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,EACxC,IAAI,CAAC,EAAE,MAAM,YAAA;IAGhB,UAAU;IAKV,OAAO,CAAC,UAAU,EAAE,MAAM;IAMhC,cAAc,IAAI,MAAM,EAAE;CAY3B;AAmFD,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,CAAC,EAA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pB,OAAO,CAAC,QAAQ,CAAkC;IAClD,OAAO,CAAC,YAAY,CAAe;gBAGzB,SAAS,EAAE,aAAa,GAAG,oBAAoB,EAC/C,cAAc,CAAC,GAAE,CAAC,QAAQ,EAAE,0BAA0B,KAAK,IAAI,aAAA,EAC/D,MAAM,CAAC,EAAE,kBAAkB,YAAA,EAC3B,kBAAkB,GAAE,kBAA2C,EAC/D,aAAa,CAAC,EAAE,aAAa,YAAA,EAC7B,OAAO,GAAE,MAAU,EACnB,UAAU,GAAE,MAAY;YAQpB,uBAAuB;IAwCrC,OAAO,CAAC,YAAY;YA6CN,aAAa;IAoB3B,OAAO,CAAC,4BAA4B;IAgBpC,OAAO,CAAC,mBAAmB;YAMb,SAAS;IAgBV,UAAU,CACrB,YAAY,EAAE,eAAe,EAAE,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IA+DzB,IAAI,CACf,KAAK,EAAE,eAAe,EAAE,GACvB,OAAO,CAAC,0BAA0B,CAAC;YA+BxB,qBAAqB;YAuDrB,cAAc;YAqCd,eAAe;CAmD9B"}
@@ -231,10 +231,10 @@ class TransactionsManager {
231
231
  }
232
232
  }
233
233
  }
234
- getUpdatedPriorityFeeSetting(prevError) {
234
+ getUpdatedPriorityFeeSetting(prevError, attemptNum) {
235
235
  if (prevError instanceof web3_js_1.TransactionExpiredBlockheightExceededError) {
236
236
  const currIdx = types_1.priorityFeeSettingValues.indexOf(this.priorityFeeSetting);
237
- return types_1.priorityFeeSettingValues[Math.min(types_1.priorityFeeSettingValues.length - 1, currIdx + 1)];
237
+ return types_1.priorityFeeSettingValues[Math.min(types_1.priorityFeeSettingValues.length - 1, currIdx + (attemptNum === 1 ? 1 : 1 + Math.ceil(attemptNum / 4)))];
238
238
  }
239
239
  return this.priorityFeeSetting;
240
240
  }
@@ -245,7 +245,7 @@ class TransactionsManager {
245
245
  }
246
246
  async updateLut(tx, newLut) {
247
247
  const updateLutTxName = `${newLut ? "create" : "update"} lookup table`;
248
- await (0, generalUtils_1.retryWithExponentialBackoff)(async (attemptNum, prevError) => await this.sendTransaction(tx, updateLutTxName, attemptNum, this.getUpdatedPriorityFeeSetting(prevError)), 3, 150, this.errorsToThrow);
248
+ await (0, generalUtils_1.retryWithExponentialBackoff)(async (attemptNum, prevError) => await this.sendTransaction(tx, updateLutTxName, attemptNum, this.getUpdatedPriorityFeeSetting(prevError, attemptNum)), 3, 150, this.errorsToThrow);
249
249
  }
250
250
  async clientSend(transactions) {
251
251
  const items = [...transactions];
@@ -324,7 +324,7 @@ class TransactionsManager {
324
324
  }
325
325
  else {
326
326
  await this.debugAccounts(itemSet, tx);
327
- await this.sendTransaction(tx, itemSet.name(), attemptNum, this.getUpdatedPriorityFeeSetting(prevError));
327
+ await this.sendTransaction(tx, itemSet.name(), attemptNum, this.getUpdatedPriorityFeeSetting(prevError, attemptNum));
328
328
  }
329
329
  }, this.retries, this.retryDelay, this.errorsToThrow).catch((e) => {
330
330
  if (itemSet) {
@@ -1 +1 @@
1
- {"version":3,"file":"generalUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/solauto/generalUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAGL,OAAO,EAEP,GAAG,EACJ,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAElB,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,gCAAgC,EAChC,SAAS,EAMV,MAAM,iBAAiB,CAAC;AAkBzB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAczE;AAgBD,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,kBAAkB,GAC7B,MAAM,CAKR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,kBAAkB,EAC9B,eAAe,EAAE,MAAM,GACtB,O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I,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,SAAS,CAAA;KAAE,CAAA;CAAE,GACzE;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AAEhD,qBAAa,mBAAmB;IACvB,gBAAgB,SAAa;IAC7B,cAAc,SAAa;IAC3B,QAAQ,EAAE,yBAAyB,GAAG,SAAS,CAAa;IAC5D,SAAS,EAAE,WAAW,GAAG,SAAS,CAAa;IAC/C,YAAY,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,SAAS,CAAA;KAAE,CAAa;IACpE,aAAa,EAAE,SAAS,GAAG,SAAS,CAAa;IAExD,GAAG,CAAC,MAAM,EAAE,kBAAkB;IA6B9B,KAAK;IASL,UAAU,IAAI,OAAO;CAStB"}
@@ -162,6 +162,8 @@ async function getSolautoManagedPositions(umi, authority, positionTypeFilter) {
162
162
  ]));
163
163
  let tokens;
164
164
  if (position.position.lendingPlatform === generated_1.LendingPlatform.Marginfi) {
165
+ console.log(position.position.protocolSupplyAccount.toString());
166
+ console.log(position.position.protocolDebtAccount.toString());
165
167
  tokens = [
166
168
  (0, marginfiUtils_1.findMarginfiAccounts)((0, umi_web3js_adapters_1.toWeb3JsPublicKey)(position.position.protocolSupplyAccount)).mint,
167
169
  (0, marginfiUtils_1.findMarginfiAccounts)((0, umi_web3js_adapters_1.toWeb3JsPublicKey)(position.position.protocolDebtAccount)).mint,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.286",
3
+ "version": "1.0.288",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -331,11 +331,17 @@ export class TransactionsManager {
331
331
  }
332
332
  }
333
333
 
334
- private getUpdatedPriorityFeeSetting(prevError?: Error) {
334
+ private getUpdatedPriorityFeeSetting(
335
+ prevError: Error | undefined,
336
+ attemptNum: number
337
+ ) {
335
338
  if (prevError instanceof TransactionExpiredBlockheightExceededError) {
336
339
  const currIdx = priorityFeeSettingValues.indexOf(this.priorityFeeSetting);
337
340
  return priorityFeeSettingValues[
338
- Math.min(priorityFeeSettingValues.length - 1, currIdx + 1)
341
+ Math.min(
342
+ priorityFeeSettingValues.length - 1,
343
+ currIdx + (attemptNum === 1 ? 1 : 1 + Math.ceil(attemptNum / 4))
344
+ )
339
345
  ];
340
346
  }
341
347
  return this.priorityFeeSetting;
@@ -355,7 +361,7 @@ export class TransactionsManager {
355
361
  tx,
356
362
  updateLutTxName,
357
363
  attemptNum,
358
- this.getUpdatedPriorityFeeSetting(prevError)
364
+ this.getUpdatedPriorityFeeSetting(prevError, attemptNum)
359
365
  ),
360
366
  3,
361
367
  150,
@@ -494,7 +500,7 @@ export class TransactionsManager {
494
500
  tx,
495
501
  itemSet.name(),
496
502
  attemptNum,
497
- this.getUpdatedPriorityFeeSetting(prevError)
503
+ this.getUpdatedPriorityFeeSetting(prevError, attemptNum)
498
504
  );
499
505
  }
500
506
  },
@@ -257,9 +257,12 @@ export async function getSolautoManagedPositions(
257
257
  ...Array(getSolautoPositionSize() - x.data.length).fill(0),
258
258
  ])
259
259
  );
260
-
260
+
261
261
  let tokens: [PublicKey, PublicKey] | undefined;
262
262
  if (position.position.lendingPlatform === LendingPlatform.Marginfi) {
263
+ console.log(position.position.protocolSupplyAccount.toString());
264
+ console.log(position.position.protocolDebtAccount.toString());
265
+
263
266
  tokens = [
264
267
  findMarginfiAccounts(
265
268
  toWeb3JsPublicKey(position.position.protocolSupplyAccount)