@haven-fi/solauto-sdk 1.0.805 → 1.0.806

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.
@@ -100,7 +100,7 @@ async function buildSwbSubmitResponseTx(conn, signer, mint) {
100
100
  lookupTableAddresses: responses
101
101
  .filter((x) => Boolean(x.oracle.lut?.key))
102
102
  .map((x) => x.oracle.lut.key.toString()),
103
- orderPrio: -1,
103
+ orderPrio: -2,
104
104
  };
105
105
  }
106
106
  async function getSwitchboardFeedData(conn, mints) {
@@ -32,7 +32,7 @@ import {
32
32
  import { getSecretKey } from "./shared";
33
33
  import { NATIVE_MINT } from "@solana/spl-token";
34
34
 
35
- const payForTransaction = true;
35
+ const payForTransaction = false;
36
36
  const testProgram = false;
37
37
  const lpEnv: ProgramEnv = "Prod";
38
38
 
@@ -64,17 +64,17 @@ export async function main() {
64
64
  // lpPoolAccount: getMarginfiAccounts("Prod").defaultGroup,
65
65
  });
66
66
 
67
- // const transactionItems = [
68
- // rebalance(client, 3000),
69
- // ];
70
67
  const transactionItems = [
71
- new TransactionItem(
72
- async () => await buildSwbSubmitResponseTx(conn, signer, new PublicKey(NATIVE_MINT)),
73
- // async () => await buildSwbSubmitResponseTx(conn, signer, new PublicKey(JUP_SOL)),
74
- // async () => await buildSwbSubmitResponseTx(conn, signer, new PublicKey(JITO_SOL))
75
- // async () => await buildSwbSubmitResponseTx(conn, signer, new PublicKey(H_SOL))
76
- ),
68
+ rebalance(client, 3000),
77
69
  ];
70
+ // const transactionItems = [
71
+ // new TransactionItem(
72
+ // async () => await buildSwbSubmitResponseTx(conn, signer, new PublicKey(NATIVE_MINT)),
73
+ // // async () => await buildSwbSubmitResponseTx(conn, signer, new PublicKey(JUP_SOL)),
74
+ // // async () => await buildSwbSubmitResponseTx(conn, signer, new PublicKey(JITO_SOL))
75
+ // // async () => await buildSwbSubmitResponseTx(conn, signer, new PublicKey(H_SOL))
76
+ // ),
77
+ // ];
78
78
 
79
79
  const txManager = new ClientTransactionsManager({
80
80
  txHandler: client,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.805",
3
+ "version": "1.0.806",
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",
@@ -111,7 +111,7 @@ export async function buildSwbSubmitResponseTx(
111
111
  lookupTableAddresses: responses
112
112
  .filter((x) => Boolean(x.oracle.lut?.key))
113
113
  .map((x) => x.oracle.lut!.key.toString()),
114
- orderPrio: -1,
114
+ orderPrio: -2,
115
115
  };
116
116
  }
117
117