@hawksightco/hawk-sdk 1.3.76 → 1.3.78
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 +7 -8
- package/package.json +1 -1
package/dist/src/hsToMeteora.js
CHANGED
|
@@ -859,7 +859,6 @@ class ClaimFee2 extends ClaimFee {
|
|
|
859
859
|
.meteoraDlmmClaimFee2(minBinId, maxBinId, remainingAccountsInfo)
|
|
860
860
|
.accounts({
|
|
861
861
|
userPda,
|
|
862
|
-
hawksightAuthority,
|
|
863
862
|
meteoraDlmmProgram: this.ix.keys[13].pubkey,
|
|
864
863
|
lbPair: this.ix.keys[0].pubkey,
|
|
865
864
|
position: this.ix.keys[1].pubkey,
|
|
@@ -2158,7 +2157,7 @@ class MeteoraDlmmClaimFee2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2158
2157
|
var _a;
|
|
2159
2158
|
// Common parameters
|
|
2160
2159
|
const userPda = this.userPda;
|
|
2161
|
-
const authority = this.authority;
|
|
2160
|
+
// const authority = this.authority;
|
|
2162
2161
|
const hawksightAuthority = addresses_1.HS_AUTHORITY;
|
|
2163
2162
|
const minBinId = this.ix.data.readInt32LE(8);
|
|
2164
2163
|
const maxBinId = this.ix.data.readInt32LE(12);
|
|
@@ -2194,7 +2193,6 @@ class MeteoraDlmmClaimFee2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2194
2193
|
.meteoraDlmmClaimFee2Automation(minBinId, maxBinId, remainingAccountsInfo)
|
|
2195
2194
|
.accounts({
|
|
2196
2195
|
userPda,
|
|
2197
|
-
authority,
|
|
2198
2196
|
hawksightAuthority,
|
|
2199
2197
|
lbPair: this.ix.keys[0].pubkey,
|
|
2200
2198
|
position: this.ix.keys[1].pubkey,
|
|
@@ -2211,7 +2209,7 @@ class MeteoraDlmmClaimFee2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2211
2209
|
meteoraDlmmProgram: this.ix.keys[13].pubkey,
|
|
2212
2210
|
ownerFeeX,
|
|
2213
2211
|
ownerFeeY,
|
|
2214
|
-
}).instruction();
|
|
2212
|
+
}).remainingAccounts(this.ix.keys.slice(14)).instruction();
|
|
2215
2213
|
const sighash = util.sighash("meteora_dlmm_claim_fee_2_automation");
|
|
2216
2214
|
claimFeeIx.data.set(sighash, 0);
|
|
2217
2215
|
// Instruction via main hawksight contract
|
|
@@ -2220,7 +2218,7 @@ class MeteoraDlmmClaimFee2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2220
2218
|
.iyfExtensionExecuteV2(claimFeeIx.data)
|
|
2221
2219
|
.accounts({
|
|
2222
2220
|
userPda,
|
|
2223
|
-
authority,
|
|
2221
|
+
authority: hawksightAuthority,
|
|
2224
2222
|
iyfExtensionProgram: addresses_1.IYF_EXTENSION,
|
|
2225
2223
|
})
|
|
2226
2224
|
.remainingAccounts(claimFeeIx.keys.slice(2))
|
|
@@ -2259,6 +2257,7 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2259
2257
|
// Common parameters
|
|
2260
2258
|
const userPda = this.userPda;
|
|
2261
2259
|
const authority = this.authority;
|
|
2260
|
+
const hawksightAuthority = addresses_1.HS_AUTHORITY;
|
|
2262
2261
|
// New meteora parameters
|
|
2263
2262
|
const minBinId = this.ix.data.readInt32LE(12);
|
|
2264
2263
|
const maxBinId = this.ix.data.readInt32LE(16);
|
|
@@ -2271,7 +2270,7 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2271
2270
|
// Generate IX via extension contract
|
|
2272
2271
|
// @ts-ignore
|
|
2273
2272
|
const claimReward = yield anchor_1.Anchor.instance().iyfExtension.methods
|
|
2274
|
-
.
|
|
2273
|
+
.MeteoraDlmmClaimReward2Automation(rewardIndex, minBinId, maxBinId, remainingAccountsInfo)
|
|
2275
2274
|
.accounts({
|
|
2276
2275
|
userPda,
|
|
2277
2276
|
authority,
|
|
@@ -2296,7 +2295,7 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2296
2295
|
.iyfExtensionExecuteV2(claimReward.data)
|
|
2297
2296
|
.accounts({
|
|
2298
2297
|
userPda,
|
|
2299
|
-
authority,
|
|
2298
|
+
authority: hawksightAuthority,
|
|
2300
2299
|
iyfExtensionProgram: addresses_1.IYF_EXTENSION,
|
|
2301
2300
|
})
|
|
2302
2301
|
.remainingAccounts(claimReward.keys.slice(2))
|
|
@@ -2369,7 +2368,7 @@ class ClosePositionIfEmptyAutomation extends HawksightMeteoraAutomationCpi {
|
|
|
2369
2368
|
.accounts({
|
|
2370
2369
|
// farm,
|
|
2371
2370
|
userPda,
|
|
2372
|
-
authority,
|
|
2371
|
+
authority: hawksightAuthority,
|
|
2373
2372
|
// iyfProgram,
|
|
2374
2373
|
iyfExtensionProgram: addresses_1.IYF_EXTENSION,
|
|
2375
2374
|
})
|