@haven-fi/solauto-sdk 1.0.137 → 1.0.138
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.
@@ -27,7 +27,7 @@ const generalUtils_1 = require("./generalUtils");
|
|
27
27
|
const marginfi_sdk_1 = require("../marginfi-sdk");
|
28
28
|
const types_1 = require("../types");
|
29
29
|
function getSolanaRpcConnection(heliusApiKey) {
|
30
|
-
const connection = new web3_js_1.Connection(`https://mainnet.helius-rpc.com/?api-key=${heliusApiKey}`, "
|
30
|
+
const connection = new web3_js_1.Connection(`https://mainnet.helius-rpc.com/?api-key=${heliusApiKey}`, "confirmed");
|
31
31
|
const umi = (0, umi_bundle_defaults_1.createUmi)(connection);
|
32
32
|
return [connection, umi];
|
33
33
|
}
|
package/package.json
CHANGED
package/src/utils/solanaUtils.ts
CHANGED
@@ -43,7 +43,7 @@ export function getSolanaRpcConnection(
|
|
43
43
|
): [Connection, Umi] {
|
44
44
|
const connection = new Connection(
|
45
45
|
`https://mainnet.helius-rpc.com/?api-key=${heliusApiKey}`,
|
46
|
-
"
|
46
|
+
"confirmed"
|
47
47
|
);
|
48
48
|
const umi = createUmi(connection);
|
49
49
|
return [connection, umi];
|
@@ -23,7 +23,7 @@ describe("Solauto Marginfi tests", async () => {
|
|
23
23
|
// const signer = setupTest();
|
24
24
|
const signer = setupTest("solauto-manager");
|
25
25
|
|
26
|
-
const payForTransactions =
|
26
|
+
const payForTransactions = true;
|
27
27
|
const useJitoBundle = false;
|
28
28
|
const positionId = 1;
|
29
29
|
|
@@ -39,7 +39,7 @@ describe("Solauto Marginfi tests", async () => {
|
|
39
39
|
{
|
40
40
|
signer,
|
41
41
|
positionId,
|
42
|
-
authority: new PublicKey("
|
42
|
+
authority: new PublicKey("5UqsR2PGzbP8pGPbXEeXx86Gjz2N2UFBAuFZUSVydAEe")
|
43
43
|
// marginfiAccount: new PublicKey(
|
44
44
|
// "4nNvUXF5YqHFcH2nGweSiuvy1ct7V5FXfoCLKFYUN36z"
|
45
45
|
// ),
|
@@ -120,6 +120,8 @@ describe("Solauto Marginfi tests", async () => {
|
|
120
120
|
// }, "deposit")
|
121
121
|
// );
|
122
122
|
|
123
|
+
console.log("POSITION SUPPLY TA:", client.positionSupplyTa);
|
124
|
+
console.log("POSITION DEBT TA:", client.positionDebtTa);
|
123
125
|
transactionItems.push(
|
124
126
|
new TransactionItem(
|
125
127
|
async (attemptNum) =>
|