@hawksightco/hawk-sdk 1.3.75 → 1.3.77
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 -6
- package/package.json +1 -1
package/dist/src/hsToMeteora.js
CHANGED
|
@@ -849,6 +849,7 @@ class ClaimFee2 extends ClaimFee {
|
|
|
849
849
|
// Common parameters
|
|
850
850
|
const userPda = this.userPda;
|
|
851
851
|
const authority = this.authority;
|
|
852
|
+
const hawksightAuthority = addresses_1.HS_AUTHORITY;
|
|
852
853
|
const minBinId = this.ix.data.readInt32LE(8);
|
|
853
854
|
const maxBinId = this.ix.data.readInt32LE(12);
|
|
854
855
|
const remainingAccountsInfo = this.ix.data.subarray(16);
|
|
@@ -2156,7 +2157,7 @@ class MeteoraDlmmClaimFee2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2156
2157
|
var _a;
|
|
2157
2158
|
// Common parameters
|
|
2158
2159
|
const userPda = this.userPda;
|
|
2159
|
-
const authority = this.authority;
|
|
2160
|
+
// const authority = this.authority;
|
|
2160
2161
|
const hawksightAuthority = addresses_1.HS_AUTHORITY;
|
|
2161
2162
|
const minBinId = this.ix.data.readInt32LE(8);
|
|
2162
2163
|
const maxBinId = this.ix.data.readInt32LE(12);
|
|
@@ -2192,7 +2193,6 @@ class MeteoraDlmmClaimFee2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2192
2193
|
.meteoraDlmmClaimFee2Automation(minBinId, maxBinId, remainingAccountsInfo)
|
|
2193
2194
|
.accounts({
|
|
2194
2195
|
userPda,
|
|
2195
|
-
authority,
|
|
2196
2196
|
hawksightAuthority,
|
|
2197
2197
|
lbPair: this.ix.keys[0].pubkey,
|
|
2198
2198
|
position: this.ix.keys[1].pubkey,
|
|
@@ -2218,7 +2218,7 @@ class MeteoraDlmmClaimFee2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2218
2218
|
.iyfExtensionExecuteV2(claimFeeIx.data)
|
|
2219
2219
|
.accounts({
|
|
2220
2220
|
userPda,
|
|
2221
|
-
authority,
|
|
2221
|
+
authority: hawksightAuthority,
|
|
2222
2222
|
iyfExtensionProgram: addresses_1.IYF_EXTENSION,
|
|
2223
2223
|
})
|
|
2224
2224
|
.remainingAccounts(claimFeeIx.keys.slice(2))
|
|
@@ -2257,6 +2257,7 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2257
2257
|
// Common parameters
|
|
2258
2258
|
const userPda = this.userPda;
|
|
2259
2259
|
const authority = this.authority;
|
|
2260
|
+
const hawksightAuthority = addresses_1.HS_AUTHORITY;
|
|
2260
2261
|
// New meteora parameters
|
|
2261
2262
|
const minBinId = this.ix.data.readInt32LE(12);
|
|
2262
2263
|
const maxBinId = this.ix.data.readInt32LE(16);
|
|
@@ -2269,7 +2270,7 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2269
2270
|
// Generate IX via extension contract
|
|
2270
2271
|
// @ts-ignore
|
|
2271
2272
|
const claimReward = yield anchor_1.Anchor.instance().iyfExtension.methods
|
|
2272
|
-
.
|
|
2273
|
+
.MeteoraDlmmClaimReward2Automation(rewardIndex, minBinId, maxBinId, remainingAccountsInfo)
|
|
2273
2274
|
.accounts({
|
|
2274
2275
|
userPda,
|
|
2275
2276
|
authority,
|
|
@@ -2294,7 +2295,7 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2294
2295
|
.iyfExtensionExecuteV2(claimReward.data)
|
|
2295
2296
|
.accounts({
|
|
2296
2297
|
userPda,
|
|
2297
|
-
authority,
|
|
2298
|
+
authority: hawksightAuthority,
|
|
2298
2299
|
iyfExtensionProgram: addresses_1.IYF_EXTENSION,
|
|
2299
2300
|
})
|
|
2300
2301
|
.remainingAccounts(claimReward.keys.slice(2))
|
|
@@ -2367,7 +2368,7 @@ class ClosePositionIfEmptyAutomation extends HawksightMeteoraAutomationCpi {
|
|
|
2367
2368
|
.accounts({
|
|
2368
2369
|
// farm,
|
|
2369
2370
|
userPda,
|
|
2370
|
-
authority,
|
|
2371
|
+
authority: hawksightAuthority,
|
|
2371
2372
|
// iyfProgram,
|
|
2372
2373
|
iyfExtensionProgram: addresses_1.IYF_EXTENSION,
|
|
2373
2374
|
})
|