@haven-fi/solauto-sdk 1.0.718 → 1.0.719

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.
@@ -1 +1 @@
1
- {"version":3,"file":"transactionUtils.d.ts","sourceRoot":"","sources":["../../../src/services/transactions/transactionUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA8B,MAAM,iBAAiB,CAAC;AAKxE,OAAO,EAIL,kBAAkB,EAClB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAiBlC,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AA4BjE,OAAO,EACL,qBAAqB,EAErB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAkMrB,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,kBAAkB,EACtB,sBAAsB,EAAE,MAAM,EAAE,GAC/B,OAAO,CAAC,kBAAkB,CAAC,CAyF7B;AA+LD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,kBAAkB,GACrB,OAAO,CAAC,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CA0BnD;AAED,wBAAsB,gCAAgC,CACpD,eAAe,EAAE,oBAAoB,EACrC,YAAY,EAAE,SAAS,EACvB,eAAe,EAAE,SAAS,GACzB,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAuC5C;AAED,wBAAgB,YAAY,CAC1B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,kBAAkB,EAAE,EACzB,KAAK,EAAE,KAAK,EACZ,oBAAoB,CAAC,EAAE,OAAO,EAC9B,kBAAkB,CAAC,EAAE,kBAAkB;;;;EAuHxC;AAED,wBAAgB,cAAc,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,8JAKrE"}
1
+ {"version":3,"file":"transactionUtils.d.ts","sourceRoot":"","sources":["../../../src/services/transactions/transactionUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA8B,MAAM,iBAAiB,CAAC;AAKxE,OAAO,EAIL,kBAAkB,EAClB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAiBlC,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AA4BjE,OAAO,EACL,qBAAqB,EAErB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAyLrB,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,kBAAkB,EACtB,sBAAsB,EAAE,MAAM,EAAE,GAC/B,OAAO,CAAC,kBAAkB,CAAC,CAyF7B;AA+LD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,kBAAkB,GACrB,OAAO,CAAC,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CA0BnD;AAED,wBAAsB,gCAAgC,CACpD,eAAe,EAAE,oBAAoB,EACrC,YAAY,EAAE,SAAS,EACvB,eAAe,EAAE,SAAS,GACzB,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAuC5C;AAED,wBAAgB,YAAY,CAC1B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,kBAAkB,EAAE,EACzB,KAAK,EAAE,KAAK,EACZ,oBAAoB,CAAC,EAAE,OAAO,EAC9B,kBAAkB,CAAC,EAAE,kBAAkB;;;;EAuHxC;AAED,wBAAgB,cAAc,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,8JAKrE"}
@@ -92,8 +92,6 @@ async function transactionChoresBefore(client, accountsGettingCreated, solautoAc
92
92
  chores = chores.add((0, utils_1.createAssociatedTokenAccountUmiIx)(client.signer, (0, umi_web3js_adapters_1.toWeb3JsPublicKey)(client.signer.publicKey), spl_token_1.NATIVE_MINT));
93
93
  accountsGettingCreated.push(wSolUsage.wSolTokenAccount.toString());
94
94
  }
95
- console.log(solautoActions);
96
- console.log(accountsGettingCreated);
97
95
  for (const solautoAction of solautoActions ?? []) {
98
96
  if (!(0, generated_1.isSolautoAction)("Withdraw", solautoAction) &&
99
97
  !(0, generated_1.isSolautoAction)("Borrow", solautoAction)) {
@@ -102,9 +100,6 @@ async function transactionChoresBefore(client, accountsGettingCreated, solautoAc
102
100
  const tokenAccount = (0, generated_1.isSolautoAction)("Withdraw", solautoAction)
103
101
  ? client.signerSupplyTa
104
102
  : client.signerDebtTa;
105
- console.log("withdraw", (0, generated_1.isSolautoAction)("Withdraw", solautoAction));
106
- console.log(tokenAccount);
107
- console.log("already getting created", accountsGettingCreated.includes(tokenAccount.toString()));
108
103
  if (accountsGettingCreated.includes(tokenAccount.toString())) {
109
104
  continue;
110
105
  }
@@ -115,7 +110,6 @@ async function transactionChoresBefore(client, accountsGettingCreated, solautoAc
115
110
  accountsGettingCreated.push(tokenAccount.toString());
116
111
  }
117
112
  }
118
- console.log(chores.getInstructions().length);
119
113
  return chores;
120
114
  }
121
115
  async function rebalanceChoresBefore(client, tx, accountsGettingCreated) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.718",
3
+ "version": "1.0.719",
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",
@@ -212,8 +212,6 @@ async function transactionChoresBefore(
212
212
  accountsGettingCreated.push(wSolUsage.wSolTokenAccount.toString());
213
213
  }
214
214
 
215
- console.log(solautoActions);
216
- console.log(accountsGettingCreated);
217
215
  for (const solautoAction of solautoActions ?? []) {
218
216
  if (
219
217
  !isSolautoAction("Withdraw", solautoAction) &&
@@ -226,12 +224,6 @@ async function transactionChoresBefore(
226
224
  ? client.signerSupplyTa
227
225
  : client.signerDebtTa;
228
226
 
229
- console.log("withdraw", isSolautoAction("Withdraw", solautoAction));
230
- console.log(tokenAccount);
231
- console.log(
232
- "already getting created",
233
- accountsGettingCreated.includes(tokenAccount.toString())
234
- );
235
227
  if (accountsGettingCreated.includes(tokenAccount.toString())) {
236
228
  continue;
237
229
  }
@@ -250,7 +242,6 @@ async function transactionChoresBefore(
250
242
  }
251
243
  }
252
244
 
253
- console.log(chores.getInstructions().length);
254
245
  return chores;
255
246
  }
256
247