@haven-fi/solauto-sdk 1.0.347 → 1.0.348

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.
@@ -16,7 +16,7 @@ class ReferralStateManager extends txHandler_1.TxHandler {
16
16
  throw new Error("Signer or wallet must be provided");
17
17
  }
18
18
  this.umi = this.umi.use(args.signer
19
- ? (0, umi_1.signerIdentity)(args.signer)
19
+ ? (0, umi_1.signerIdentity)(args.signer, true)
20
20
  : (0, umi_signer_wallet_adapters_1.walletAdapterIdentity)(args.wallet, true));
21
21
  this.signer = this.umi.identity;
22
22
  this.referralState = args.referralState
@@ -67,7 +67,7 @@ exports.MARGINFI_ACCOUNTS = {
67
67
  bank: "AwLRW3aPMMftXEjgWhTkYwM9CGBHdtKecvahCJZBwAqY",
68
68
  liquidityVault: "HQ1CGcqRshMhuonTGTnnmgw9ffcXxizGdZ6F6PKffWWi",
69
69
  vaultAuthority: "AEZb1XH5bfLwqk3hBKDuLfWyJKdLTgDPCkgn64BJKcvV",
70
- priceOracle: "DCNeMcAZGU7pAsqu5q2xMKerq35BnUuTkagt1dkR1xB",
70
+ priceOracle: "Ceg5oePJv1a6RR541qKeQaTepvERA3i8SvyueX9tT8Sq",
71
71
  },
72
72
  [tokens.H_SOL]: {
73
73
  bank: "GJCi1uj3kYPZ64puA5sLUiCQfFapxT2xnREzrbDzFkYY",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.347",
3
+ "version": "1.0.348",
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",
@@ -47,7 +47,7 @@ export class ReferralStateManager extends TxHandler {
47
47
  }
48
48
  this.umi = this.umi.use(
49
49
  args.signer
50
- ? signerIdentity(args.signer)
50
+ ? signerIdentity(args.signer, true)
51
51
  : walletAdapterIdentity(args.wallet!, true)
52
52
  );
53
53
  this.signer = this.umi.identity;
@@ -49,7 +49,7 @@ export const MARGINFI_ACCOUNTS: {
49
49
  bank: "AwLRW3aPMMftXEjgWhTkYwM9CGBHdtKecvahCJZBwAqY",
50
50
  liquidityVault: "HQ1CGcqRshMhuonTGTnnmgw9ffcXxizGdZ6F6PKffWWi",
51
51
  vaultAuthority: "AEZb1XH5bfLwqk3hBKDuLfWyJKdLTgDPCkgn64BJKcvV",
52
- priceOracle: "DCNeMcAZGU7pAsqu5q2xMKerq35BnUuTkagt1dkR1xB",
52
+ priceOracle: "Ceg5oePJv1a6RR541qKeQaTepvERA3i8SvyueX9tT8Sq",
53
53
  },
54
54
  [tokens.H_SOL]: {
55
55
  bank: "GJCi1uj3kYPZ64puA5sLUiCQfFapxT2xnREzrbDzFkYY",
@@ -28,12 +28,13 @@ import {
28
28
  } from "../../src/constants";
29
29
  import {
30
30
  buildHeliusApiUrl,
31
+ getSolautoManagedPositions,
31
32
  } from "../../src/utils";
32
33
  import { PriorityFeeSetting } from "../../src/types";
33
34
 
34
35
  describe("Solauto Marginfi tests", async () => {
35
- const signer = setupTest();
36
- // const signer = setupTest("solauto-manager");
36
+ // const signer = setupTest();
37
+ const signer = setupTest("solauto-manager");
37
38
 
38
39
  const payForTransactions = true;
39
40
  const testProgram = false;
@@ -53,7 +54,7 @@ describe("Solauto Marginfi tests", async () => {
53
54
  await client.initialize({
54
55
  signer,
55
56
  positionId,
56
- authority: new PublicKey("rC5dMP5dmSsfQ66rynzfFzuc122Eex9h1RJHVDkeH6D"),
57
+ authority: new PublicKey("5FALSVLRjuRZHSmQVdT2RUZC6KadCuDmxY7gaQFWFBxf"),
57
58
  // new: true,
58
59
  // marginfiAccount: new PublicKey(
59
60
  // "4nNvUXF5YqHFcH2nGweSiuvy1ct7V5FXfoCLKFYUN36z"