@haven-fi/solauto-sdk 1.0.106 → 1.0.107
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 +1 -0
- package/dist/generated/instructions/closePosition.d.ts +1 -0
- package/dist/generated/instructions/closePosition.d.ts.map +1 -1
- package/dist/generated/instructions/closePosition.js +10 -5
- package/package.json +1 -1
- package/src/clients/solautoClient.ts +1 -0
- package/src/generated/instructions/closePosition.ts +11 -5
- package/tests/transactions/solautoMarginfi.ts +25 -26
@@ -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,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,OAAO,CAAC,SAAS,EAAE,CAAC;IAUzD,iBAAiB,IAAI,OAAO,CAChC;QAAE,WAAW,EAAE,kBAAkB,CAAC;QAAC,iBAAiB,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAC5E;IAyDD,uBAAuB,IAAI,yBAAyB,GAAG,SAAS;IAOhE,wBAAwB,IAAI,WAAW,GAAG,SAAS;IAOnD,YAAY,CACV,aAAa,CAAC,EAAE,gCAAgC,EAChD,GAAG,CAAC,EAAE,kBAAkB,GACvB,kBAAkB;IAuBrB,gBAAgB,CAAC,IAAI,EAAE,sBAAsB,GAAG,kBAAkB;IA2DlE,eAAe,IAAI,kBAAkB;IAYrC,WAAW,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"}
|
@@ -253,6 +253,7 @@ class SolautoClient extends txHandler_1.TxHandler {
|
|
253
253
|
positionSupplyTa: (0, umi_1.publicKey)(this.positionSupplyTa),
|
254
254
|
positionDebtTa: (0, umi_1.publicKey)(this.positionDebtTa),
|
255
255
|
signerDebtTa: (0, umi_1.publicKey)(this.signerDebtTa),
|
256
|
+
protocolAccount: (0, umi_1.publicKey)(this.protocolAccount())
|
256
257
|
});
|
257
258
|
}
|
258
259
|
cancelDCAIx() {
|
@@ -13,6 +13,7 @@ export type ClosePositionInstructionAccounts = {
|
|
13
13
|
tokenProgram?: PublicKey | Pda;
|
14
14
|
ataProgram?: PublicKey | Pda;
|
15
15
|
solautoPosition: PublicKey | Pda;
|
16
|
+
protocolAccount: PublicKey | Pda;
|
16
17
|
signerSupplyTa: PublicKey | Pda;
|
17
18
|
positionSupplyTa: PublicKey | Pda;
|
18
19
|
positionSupplyCollateralTa?: PublicKey | Pda;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"closePosition.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/closePosition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EACP,GAAG,EACH,SAAS,EACT,MAAM,EACN,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,UAAU,EAIX,MAAM,sCAAsC,CAAC;AAQ9C,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,SAAS,GAAG,GAAG,CAAC;IAChC,YAAY,CAAC,EAAE,SAAS,GAAG,GAAG,CAAC;IAC/B,UAAU,CAAC,EAAE,SAAS,GAAG,GAAG,CAAC;IAC7B,eAAe,EAAE,SAAS,GAAG,GAAG,CAAC;IACjC,cAAc,EAAE,SAAS,GAAG,GAAG,CAAC;IAChC,gBAAgB,EAAE,SAAS,GAAG,GAAG,CAAC;IAClC,0BAA0B,CAAC,EAAE,SAAS,GAAG,GAAG,CAAC;IAC7C,cAAc,EAAE,SAAS,GAAG,GAAG,CAAC;IAChC,YAAY,EAAE,SAAS,GAAG,GAAG,CAAC;CAC/B,CAAC;AAGF,MAAM,MAAM,4BAA4B,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAErE,MAAM,MAAM,gCAAgC,GAAG,EAAE,CAAC;AAElD,wBAAgB,yCAAyC,IAAI,UAAU,CACrE,gCAAgC,EAChC,4BAA4B,CAC7B,CAcA;AAGD,wBAAgB,aAAa,CAC3B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,EAClC,KAAK,EAAE,gCAAgC,GACtC,kBAAkB,
|
1
|
+
{"version":3,"file":"closePosition.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/closePosition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,OAAO,EACP,GAAG,EACH,SAAS,EACT,MAAM,EACN,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,UAAU,EAIX,MAAM,sCAAsC,CAAC;AAQ9C,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,SAAS,GAAG,GAAG,CAAC;IAChC,YAAY,CAAC,EAAE,SAAS,GAAG,GAAG,CAAC;IAC/B,UAAU,CAAC,EAAE,SAAS,GAAG,GAAG,CAAC;IAC7B,eAAe,EAAE,SAAS,GAAG,GAAG,CAAC;IACjC,eAAe,EAAE,SAAS,GAAG,GAAG,CAAC;IACjC,cAAc,EAAE,SAAS,GAAG,GAAG,CAAC;IAChC,gBAAgB,EAAE,SAAS,GAAG,GAAG,CAAC;IAClC,0BAA0B,CAAC,EAAE,SAAS,GAAG,GAAG,CAAC;IAC7C,cAAc,EAAE,SAAS,GAAG,GAAG,CAAC;IAChC,YAAY,EAAE,SAAS,GAAG,GAAG,CAAC;CAC/B,CAAC;AAGF,MAAM,MAAM,4BAA4B,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAErE,MAAM,MAAM,gCAAgC,GAAG,EAAE,CAAC;AAElD,wBAAgB,yCAAyC,IAAI,UAAU,CACrE,gCAAgC,EAChC,4BAA4B,CAC7B,CAcA;AAGD,wBAAgB,aAAa,CAC3B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,EAClC,KAAK,EAAE,gCAAgC,GACtC,kBAAkB,CA8GpB"}
|
@@ -48,28 +48,33 @@ function closePosition(context, input) {
|
|
48
48
|
isWritable: true,
|
49
49
|
value: input.solautoPosition ?? null,
|
50
50
|
},
|
51
|
-
|
51
|
+
protocolAccount: {
|
52
52
|
index: 5,
|
53
53
|
isWritable: true,
|
54
|
+
value: input.protocolAccount ?? null,
|
55
|
+
},
|
56
|
+
signerSupplyTa: {
|
57
|
+
index: 6,
|
58
|
+
isWritable: true,
|
54
59
|
value: input.signerSupplyTa ?? null,
|
55
60
|
},
|
56
61
|
positionSupplyTa: {
|
57
|
-
index:
|
62
|
+
index: 7,
|
58
63
|
isWritable: true,
|
59
64
|
value: input.positionSupplyTa ?? null,
|
60
65
|
},
|
61
66
|
positionSupplyCollateralTa: {
|
62
|
-
index:
|
67
|
+
index: 8,
|
63
68
|
isWritable: true,
|
64
69
|
value: input.positionSupplyCollateralTa ?? null,
|
65
70
|
},
|
66
71
|
positionDebtTa: {
|
67
|
-
index:
|
72
|
+
index: 9,
|
68
73
|
isWritable: true,
|
69
74
|
value: input.positionDebtTa ?? null,
|
70
75
|
},
|
71
76
|
signerDebtTa: {
|
72
|
-
index:
|
77
|
+
index: 10,
|
73
78
|
isWritable: true,
|
74
79
|
value: input.signerDebtTa ?? null,
|
75
80
|
},
|
package/package.json
CHANGED
@@ -437,6 +437,7 @@ export abstract class SolautoClient extends TxHandler {
|
|
437
437
|
positionSupplyTa: publicKey(this.positionSupplyTa),
|
438
438
|
positionDebtTa: publicKey(this.positionDebtTa),
|
439
439
|
signerDebtTa: publicKey(this.signerDebtTa),
|
440
|
+
protocolAccount: publicKey(this.protocolAccount())
|
440
441
|
});
|
441
442
|
}
|
442
443
|
|
@@ -33,6 +33,7 @@ export type ClosePositionInstructionAccounts = {
|
|
33
33
|
tokenProgram?: PublicKey | Pda;
|
34
34
|
ataProgram?: PublicKey | Pda;
|
35
35
|
solautoPosition: PublicKey | Pda;
|
36
|
+
protocolAccount: PublicKey | Pda;
|
36
37
|
signerSupplyTa: PublicKey | Pda;
|
37
38
|
positionSupplyTa: PublicKey | Pda;
|
38
39
|
positionSupplyCollateralTa?: PublicKey | Pda;
|
@@ -102,28 +103,33 @@ export function closePosition(
|
|
102
103
|
isWritable: true as boolean,
|
103
104
|
value: input.solautoPosition ?? null,
|
104
105
|
},
|
105
|
-
|
106
|
+
protocolAccount: {
|
106
107
|
index: 5,
|
107
108
|
isWritable: true as boolean,
|
109
|
+
value: input.protocolAccount ?? null,
|
110
|
+
},
|
111
|
+
signerSupplyTa: {
|
112
|
+
index: 6,
|
113
|
+
isWritable: true as boolean,
|
108
114
|
value: input.signerSupplyTa ?? null,
|
109
115
|
},
|
110
116
|
positionSupplyTa: {
|
111
|
-
index:
|
117
|
+
index: 7,
|
112
118
|
isWritable: true as boolean,
|
113
119
|
value: input.positionSupplyTa ?? null,
|
114
120
|
},
|
115
121
|
positionSupplyCollateralTa: {
|
116
|
-
index:
|
122
|
+
index: 8,
|
117
123
|
isWritable: true as boolean,
|
118
124
|
value: input.positionSupplyCollateralTa ?? null,
|
119
125
|
},
|
120
126
|
positionDebtTa: {
|
121
|
-
index:
|
127
|
+
index: 9,
|
122
128
|
isWritable: true as boolean,
|
123
129
|
value: input.positionDebtTa ?? null,
|
124
130
|
},
|
125
131
|
signerDebtTa: {
|
126
|
-
index:
|
132
|
+
index: 10,
|
127
133
|
isWritable: true as boolean,
|
128
134
|
value: input.signerDebtTa ?? null,
|
129
135
|
},
|
@@ -21,12 +21,11 @@ import { USDC_MINT } from "../../src/constants";
|
|
21
21
|
|
22
22
|
describe("Solauto Marginfi tests", async () => {
|
23
23
|
// const signer = setupTest();
|
24
|
-
|
25
|
-
const signer = setupTest("newtest");
|
24
|
+
const signer = setupTest("solauto-manager");
|
26
25
|
|
27
26
|
const payForTransactions = false;
|
28
27
|
const useJitoBundle = false;
|
29
|
-
const positionId =
|
28
|
+
const positionId = 255;
|
30
29
|
|
31
30
|
it("open - deposit - borrow - rebalance to 0 - withdraw - close", async () => {
|
32
31
|
|
@@ -40,12 +39,12 @@ describe("Solauto Marginfi tests", async () => {
|
|
40
39
|
{
|
41
40
|
signer,
|
42
41
|
positionId,
|
43
|
-
|
42
|
+
authority: new PublicKey("92xmP49BQycn3t2HkGxLAweN3jjrExxSNpywA3xF7mYY")
|
44
43
|
// marginfiAccount: new PublicKey(
|
45
44
|
// "4nNvUXF5YqHFcH2nGweSiuvy1ct7V5FXfoCLKFYUN36z"
|
46
45
|
// ),
|
47
|
-
supplyMint: NATIVE_MINT,
|
48
|
-
debtMint: new PublicKey(USDC_MINT),
|
46
|
+
// supplyMint: NATIVE_MINT,
|
47
|
+
// debtMint: new PublicKey(USDC_MINT),
|
49
48
|
}
|
50
49
|
);
|
51
50
|
|
@@ -60,13 +59,13 @@ describe("Solauto Marginfi tests", async () => {
|
|
60
59
|
};
|
61
60
|
|
62
61
|
// if (client.solautoPositionData === null) {
|
63
|
-
transactionItems.push(
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
);
|
62
|
+
// transactionItems.push(
|
63
|
+
// new TransactionItem(async () => {
|
64
|
+
// return {
|
65
|
+
// tx: client.openPosition(settingParams),
|
66
|
+
// };
|
67
|
+
// }, "open position")
|
68
|
+
// );
|
70
69
|
|
71
70
|
// const initialSupplyUsd = 150;
|
72
71
|
// transactionItems.push(
|
@@ -107,19 +106,19 @@ describe("Solauto Marginfi tests", async () => {
|
|
107
106
|
// )
|
108
107
|
// );
|
109
108
|
|
110
|
-
const initialSupplyUsd = 50;
|
111
|
-
transactionItems.push(
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
);
|
109
|
+
// const initialSupplyUsd = 50;
|
110
|
+
// transactionItems.push(
|
111
|
+
// new TransactionItem(async () => {
|
112
|
+
// const [supplyPrice] = await getTokenPrices([supply]);
|
113
|
+
// return {
|
114
|
+
// tx: client.protocolInteraction(
|
115
|
+
// solautoAction("Deposit", [
|
116
|
+
// toBaseUnit(initialSupplyUsd / supplyPrice, supplyDecimals),
|
117
|
+
// ])
|
118
|
+
// ),
|
119
|
+
// };
|
120
|
+
// }, "deposit")
|
121
|
+
// );
|
123
122
|
|
124
123
|
transactionItems.push(
|
125
124
|
new TransactionItem(
|