@hawksightco/hawk-sdk 1.3.92 → 1.3.94
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.
- package/dist/src/hsToMeteora.js +6 -7
- package/dist/src/idl/iyf-extension-idl.d.ts +66 -8
- package/dist/src/idl/iyf-extension-idl.d.ts.map +1 -1
- package/dist/src/idl/iyf-extension-idl.js +66 -8
- package/dist/src/ixGenerator/MeteoraDlmmIxGenerator.d.ts.map +1 -1
- package/dist/src/ixGenerator/MeteoraDlmmIxGenerator.js +5 -3
- package/package.json +1 -1
package/dist/src/hsToMeteora.js
CHANGED
|
@@ -2351,6 +2351,7 @@ class ClosePositionIfEmptyAutomation extends HawksightMeteoraAutomationCpi {
|
|
|
2351
2351
|
const closePositionIx = yield anchor_1.Anchor.instance().iyfExtension.methods
|
|
2352
2352
|
.meteoraDlmmClosePositionAutomationV2()
|
|
2353
2353
|
.accounts({
|
|
2354
|
+
farm,
|
|
2354
2355
|
userPda,
|
|
2355
2356
|
authority,
|
|
2356
2357
|
iyfProgram,
|
|
@@ -2361,20 +2362,18 @@ class ClosePositionIfEmptyAutomation extends HawksightMeteoraAutomationCpi {
|
|
|
2361
2362
|
meteoraDlmmProgram: addresses_1.METEORA_DLMM_PROGRAM,
|
|
2362
2363
|
fuelAccount: fuelAccount,
|
|
2363
2364
|
}).instruction();
|
|
2364
|
-
// Make sure sure authority is not signer
|
|
2365
|
-
closePositionIx.keys[1].isSigner = false;
|
|
2366
2365
|
// Instruction via main hawksight contract
|
|
2367
2366
|
// @ts-ignore
|
|
2368
2367
|
const ix = yield anchor_1.Anchor.instance().iyfMain.methods
|
|
2369
|
-
.
|
|
2368
|
+
.iyfExtensionExecute(closePositionIx.data)
|
|
2370
2369
|
.accounts({
|
|
2371
|
-
|
|
2370
|
+
farm,
|
|
2372
2371
|
userPda,
|
|
2373
|
-
authority,
|
|
2374
|
-
|
|
2372
|
+
authority: hawksightAuthority,
|
|
2373
|
+
iyfProgram,
|
|
2375
2374
|
iyfExtensionProgram: addresses_1.IYF_EXTENSION,
|
|
2376
2375
|
})
|
|
2377
|
-
.remainingAccounts(closePositionIx.keys.slice(
|
|
2376
|
+
.remainingAccounts(closePositionIx.keys.slice(4))
|
|
2378
2377
|
.instruction();
|
|
2379
2378
|
// Override the instruction
|
|
2380
2379
|
this._ix = ix;
|
|
@@ -3115,6 +3115,14 @@ export type IyfExtension = {
|
|
|
3115
3115
|
"Hawksight user pda"
|
|
3116
3116
|
];
|
|
3117
3117
|
},
|
|
3118
|
+
{
|
|
3119
|
+
"name": "hawksightAuthority";
|
|
3120
|
+
"docs": [
|
|
3121
|
+
"Rebalancer which is hard coded to be a Hawksight rebalance wallet"
|
|
3122
|
+
];
|
|
3123
|
+
"writable": true;
|
|
3124
|
+
"signer": true;
|
|
3125
|
+
},
|
|
3118
3126
|
{
|
|
3119
3127
|
"name": "authority";
|
|
3120
3128
|
"docs": [
|
|
@@ -3125,14 +3133,6 @@ export type IyfExtension = {
|
|
|
3125
3133
|
"userPda"
|
|
3126
3134
|
];
|
|
3127
3135
|
},
|
|
3128
|
-
{
|
|
3129
|
-
"name": "hawksightAuthority";
|
|
3130
|
-
"docs": [
|
|
3131
|
-
"Rebalancer which is hard coded to be a Hawksight rebalance wallet"
|
|
3132
|
-
];
|
|
3133
|
-
"writable": true;
|
|
3134
|
-
"signer": true;
|
|
3135
|
-
},
|
|
3136
3136
|
{
|
|
3137
3137
|
"name": "position";
|
|
3138
3138
|
"writable": true;
|
|
@@ -5056,14 +5056,72 @@ export type IyfExtension = {
|
|
|
5056
5056
|
31
|
|
5057
5057
|
];
|
|
5058
5058
|
"accounts": [
|
|
5059
|
+
{
|
|
5060
|
+
"name": "farm";
|
|
5061
|
+
"docs": [
|
|
5062
|
+
"Hawksight multi-index farm"
|
|
5063
|
+
];
|
|
5064
|
+
},
|
|
5059
5065
|
{
|
|
5060
5066
|
"name": "userPda";
|
|
5061
5067
|
"docs": [
|
|
5062
5068
|
"Hawksight user pda"
|
|
5063
5069
|
];
|
|
5070
|
+
"pda": {
|
|
5071
|
+
"seeds": [
|
|
5072
|
+
{
|
|
5073
|
+
"kind": "const";
|
|
5074
|
+
"value": [
|
|
5075
|
+
109,
|
|
5076
|
+
117,
|
|
5077
|
+
108,
|
|
5078
|
+
116,
|
|
5079
|
+
105,
|
|
5080
|
+
45,
|
|
5081
|
+
117,
|
|
5082
|
+
115,
|
|
5083
|
+
101,
|
|
5084
|
+
114
|
|
5085
|
+
];
|
|
5086
|
+
},
|
|
5087
|
+
{
|
|
5088
|
+
"kind": "account";
|
|
5089
|
+
"path": "farm";
|
|
5090
|
+
},
|
|
5091
|
+
{
|
|
5092
|
+
"kind": "account";
|
|
5093
|
+
"path": "authority";
|
|
5094
|
+
}
|
|
5095
|
+
];
|
|
5096
|
+
"program": {
|
|
5097
|
+
"kind": "account";
|
|
5098
|
+
"path": "iyfProgram";
|
|
5099
|
+
};
|
|
5100
|
+
};
|
|
5101
|
+
},
|
|
5102
|
+
{
|
|
5103
|
+
"name": "authority";
|
|
5104
|
+
"docs": [
|
|
5105
|
+
"User wallet",
|
|
5106
|
+
"* No need to check"
|
|
5107
|
+
];
|
|
5108
|
+
"writable": true;
|
|
5109
|
+
"relations": [
|
|
5110
|
+
"userPda"
|
|
5111
|
+
];
|
|
5112
|
+
},
|
|
5113
|
+
{
|
|
5114
|
+
"name": "iyfProgram";
|
|
5115
|
+
"docs": [
|
|
5116
|
+
"Main index yield farming program"
|
|
5117
|
+
];
|
|
5118
|
+
"address": "FqGg2Y1FNxMiGd51Q6UETixQWkF5fB92MysbYogRJb3P";
|
|
5064
5119
|
},
|
|
5065
5120
|
{
|
|
5066
5121
|
"name": "hawksightAuthority";
|
|
5122
|
+
"docs": [
|
|
5123
|
+
"Rebalancer which is hard coded to be a Hawksight rebalance wallet"
|
|
5124
|
+
];
|
|
5067
5125
|
"writable": true;
|
|
5068
5126
|
"signer": true;
|
|
5069
5127
|
},
|