@haven-fi/solauto-sdk 1.0.105 → 1.0.106
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/clients/solautoClient.d.ts.map +1 -1
- package/dist/clients/solautoClient.js +0 -1
- package/dist/utils/solanaUtils.d.ts.map +1 -1
- package/dist/utils/solanaUtils.js +0 -3
- package/package.json +1 -1
- package/src/clients/solautoClient.ts +0 -1
- package/src/utils/solanaUtils.ts +0 -3
- package/tests/transactions/solautoMarginfi.ts +34 -31
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solautoClient.d.ts","sourceRoot":"","sources":["../../src/clients/solautoClient.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAEL,SAAS,EACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,kBAAkB,EAOnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,aAAa,EAEd,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,yBAAyB,EACzB,gCAAgC,EAChC,sBAAsB,EAMvB,MAAM,cAAc,CAAC;AAStB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAKvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAMnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAA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AW,IAAI,kBAAkB;IA4BjC,QAAQ,CAAC,OAAO,IAAI,kBAAkB;IAEtC,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,kBAAkB;IAuFhE,QAAQ,CAAC,WAAW,CAClB,gBAAgB,EAAE,gBAAgB,EAClC,uBAAuB,EAAE,SAAS,GACjC,kBAAkB;IAErB,QAAQ,CAAC,UAAU,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,kBAAkB;IAE3E,QAAQ,CAAC,SAAS,CAChB,aAAa,EAAE,GAAG,GAAG,GAAG,EACxB,WAAW,EAAE,cAAc,EAC3B,aAAa,EAAE,wBAAwB,EACvC,SAAS,CAAC,EAAE,gBAAgB,EAC5B,2BAA2B,CAAC,EAAE,MAAM,EACpC,WAAW,CAAC,EAAE,MAAM,GACnB,kBAAkB;IAEf,qBAAqB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAalE"}
|
@@ -127,7 +127,6 @@ class SolautoClient extends txHandler_1.TxHandler {
|
|
127
127
|
const lookupTable = this.authorityLutAddress
|
128
128
|
? await this.connection.getAddressLookupTable(this.authorityLutAddress)
|
129
129
|
: null;
|
130
|
-
console.log(lookupTable?.value);
|
131
130
|
if (!lookupTable || lookupTable?.value === null) {
|
132
131
|
this.authorityLutAddress = undefined;
|
133
132
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solanaUtils.d.ts","sourceRoot":"","sources":["../../src/utils/solanaUtils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,MAAM,EACN,kBAAkB,EAClB,GAAG,EACH,kBAAkB,EAGnB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAGL,UAAU,EACV,SAAS,EAIT,sBAAsB,EAEvB,MAAM,iBAAiB,CAAC;AAYzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,GAAG,CAAC,UAAU,EAAE,GAA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,EAAE,MAAM,GACf,kBAAkB,CASpB;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,SAAS,EACvB,SAAS,EAAE,SAAS,GACnB,kBAAkB,CAKpB;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,GACb,kBAAkB,CAKpB;AAED,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,GAAG,EACR,oBAAoB,EAAE,MAAM,EAAE,GAC7B,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAkBpC;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,kBAAkB,EACtB,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,CAAC,EAAE,MAAM,sBA4D1B;AAmBD,wBAAsB,2BAA2B,CAC/C,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,kBAAkB,EACtB,eAAe,EAAE,kBAAkB,GAClC,OAAO,CAAC,MAAM,CAAC,CAgBjB;AAED,wBAAsB,8BAA8B,CAClD,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,EAAE,EAAE,kBAAkB,EACtB,YAAY,CAAC,EAAE,OAAO,EACtB,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,GAAE,kBAA+C,GAC/D,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAmDjC"}
|
@@ -160,9 +160,6 @@ async function sendSingleOptimizedTransaction(umi, connection, tx, simulateOnly,
|
|
160
160
|
console.log("Serialized transaction size: ", tx.getTransactionSize(umi));
|
161
161
|
const feeEstimate = await getComputeUnitPriceEstimate(umi, tx, prioritySetting);
|
162
162
|
console.log("Compute unit price: ", feeEstimate);
|
163
|
-
console.log("INSTRUCTIONS:");
|
164
|
-
console.log(tx.getInstructions());
|
165
|
-
console.log("SImULATING...");
|
166
163
|
const simulationResult = await (0, generalUtils_1.retryWithExponentialBackoff)(async () => await simulateTransaction(connection, (0, umi_web3js_adapters_1.toWeb3JsTransaction)(await (await assembleFinalTransaction(umi.identity, tx, feeEstimate, 1400000).setLatestBlockhash(umi)).build(umi))));
|
167
164
|
const computeUnitLimit = Math.round(simulationResult.value.unitsConsumed * 1.1);
|
168
165
|
console.log("Compute unit limit: ", computeUnitLimit);
|
package/package.json
CHANGED
@@ -265,7 +265,6 @@ export abstract class SolautoClient extends TxHandler {
|
|
265
265
|
const lookupTable = this.authorityLutAddress
|
266
266
|
? await this.connection.getAddressLookupTable(this.authorityLutAddress)
|
267
267
|
: null;
|
268
|
-
console.log(lookupTable?.value);
|
269
268
|
if (!lookupTable || lookupTable?.value === null) {
|
270
269
|
this.authorityLutAddress = undefined;
|
271
270
|
}
|
package/src/utils/solanaUtils.ts
CHANGED
@@ -290,9 +290,6 @@ export async function sendSingleOptimizedTransaction(
|
|
290
290
|
const feeEstimate = await getComputeUnitPriceEstimate(umi, tx, prioritySetting);
|
291
291
|
console.log("Compute unit price: ", feeEstimate);
|
292
292
|
|
293
|
-
console.log("INSTRUCTIONS:");
|
294
|
-
console.log(tx.getInstructions());
|
295
|
-
console.log("SImULATING...");
|
296
293
|
const simulationResult = await retryWithExponentialBackoff(
|
297
294
|
async () =>
|
298
295
|
await simulateTransaction(
|
@@ -21,13 +21,15 @@ import { USDC_MINT } from "../../src/constants";
|
|
21
21
|
|
22
22
|
describe("Solauto Marginfi tests", async () => {
|
23
23
|
// const signer = setupTest();
|
24
|
-
const signer = setupTest("solauto-manager");
|
24
|
+
// const signer = setupTest("solauto-manager");
|
25
|
+
const signer = setupTest("newtest");
|
25
26
|
|
26
27
|
const payForTransactions = false;
|
27
28
|
const useJitoBundle = false;
|
28
|
-
const positionId =
|
29
|
+
const positionId = 1;
|
29
30
|
|
30
31
|
it("open - deposit - borrow - rebalance to 0 - withdraw - close", async () => {
|
32
|
+
|
31
33
|
const client = new SolautoMarginfiClient(process.env.HELIUS_API_KEY!, true);
|
32
34
|
|
33
35
|
const supply = NATIVE_MINT;
|
@@ -38,12 +40,12 @@ describe("Solauto Marginfi tests", async () => {
|
|
38
40
|
{
|
39
41
|
signer,
|
40
42
|
positionId,
|
41
|
-
authority: new PublicKey("AprYCPiVeKMCgjQ2ZufwChMzvQ5kFjJo2ekTLSkXsQDm")
|
43
|
+
// authority: new PublicKey("AprYCPiVeKMCgjQ2ZufwChMzvQ5kFjJo2ekTLSkXsQDm")
|
42
44
|
// marginfiAccount: new PublicKey(
|
43
45
|
// "4nNvUXF5YqHFcH2nGweSiuvy1ct7V5FXfoCLKFYUN36z"
|
44
46
|
// ),
|
45
|
-
|
46
|
-
|
47
|
+
supplyMint: NATIVE_MINT,
|
48
|
+
debtMint: new PublicKey(USDC_MINT),
|
47
49
|
}
|
48
50
|
);
|
49
51
|
|
@@ -58,13 +60,13 @@ describe("Solauto Marginfi tests", async () => {
|
|
58
60
|
};
|
59
61
|
|
60
62
|
// if (client.solautoPositionData === null) {
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
63
|
+
transactionItems.push(
|
64
|
+
new TransactionItem(async () => {
|
65
|
+
return {
|
66
|
+
tx: client.openPosition(settingParams),
|
67
|
+
};
|
68
|
+
}, "open position")
|
69
|
+
);
|
68
70
|
|
69
71
|
// const initialSupplyUsd = 150;
|
70
72
|
// transactionItems.push(
|
@@ -105,19 +107,19 @@ describe("Solauto Marginfi tests", async () => {
|
|
105
107
|
// )
|
106
108
|
// );
|
107
109
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
110
|
+
const initialSupplyUsd = 50;
|
111
|
+
transactionItems.push(
|
112
|
+
new TransactionItem(async () => {
|
113
|
+
const [supplyPrice] = await getTokenPrices([supply]);
|
114
|
+
return {
|
115
|
+
tx: client.protocolInteraction(
|
116
|
+
solautoAction("Deposit", [
|
117
|
+
toBaseUnit(initialSupplyUsd / supplyPrice, supplyDecimals),
|
118
|
+
])
|
119
|
+
),
|
120
|
+
};
|
121
|
+
}, "deposit")
|
122
|
+
);
|
121
123
|
|
122
124
|
transactionItems.push(
|
123
125
|
new TransactionItem(
|
@@ -154,11 +156,12 @@ describe("Solauto Marginfi tests", async () => {
|
|
154
156
|
// )
|
155
157
|
// );
|
156
158
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
159
|
+
await new TransactionsManager(
|
160
|
+
client,
|
161
|
+
undefined,
|
162
|
+
!payForTransactions,
|
163
|
+
useJitoBundle
|
164
|
+
).clientSend(transactionItems);
|
165
|
+
|
163
166
|
});
|
164
167
|
});
|