@hawksightco/hawk-sdk 1.3.95 → 1.3.97

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../../src/classes/Transactions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AAoBxC,OAAO,EACL,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,eAAe,EACf,+BAA+B,EAC/B,kCAAkC,EAClC,cAAc,EACd,0BAA0B,EAC1B,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACR,WAAW,EACX,6BAA6B,EAC7B,2BAA2B,EAC3B,4BAA4B,EAC5B,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,2BAA2B,EAC3B,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EAEpB,gBAAgB,EAChB,+BAA+B,EAChC,MAAM,UAAU,CAAC;AA8BlB,OAAO,EAEL,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAKlB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAexD,qBAAa,YAAY;IACvB;;OAEG;IACH,OAAO;IAKP;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAe;IAEtC;;OAEG;IACI,EAAE,EAAE,iBAAiB,CAAC;IAE7B;;OAEG;IACH,OAAO,CAAC,OAAO,CAAmB;IAElC;;;;OAIG;IACH,MAAM,CAAC,WAAW,IAAI,YAAY;IAOlC;;;;;;OAMG;IACH,eAAe,CACb,UAAU,EAAE,IAAI,CAAC,SAAS,EAC1B,IAAI,GAAE,I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OAOG;IACG,+BAA+B,CAAC,EACpC,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IA8GtF;;;;;;OAMG;IACG,oBAAoB,CAAC,EACzB,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,oBAAoB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAuB3E;;;;;;OAMG;IACG,wBAAwB,CAAC,EAC7B,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAmG/E;;;;;;OAMG;IACG,wBAAwB,CAAC,EAC7B,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAmFhF;AAED,eAAO,MAAM,KAAK,cAA6B,CAAC"}
1
+ {"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../../src/classes/Transactions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AAoBxC,OAAO,EACL,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,eAAe,EACf,+BAA+B,EAC/B,kCAAkC,EAClC,cAAc,EACd,0BAA0B,EAC1B,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACR,WAAW,EACX,6BAA6B,EAC7B,2BAA2B,EAC3B,4BAA4B,EAC5B,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,2BAA2B,EAC3B,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EAEpB,gBAAgB,EAChB,+BAA+B,EAChC,MAAM,UAAU,CAAC;AA8BlB,OAAO,EAEL,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAKlB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAA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O,CAAC,2BAA2B,CAAC;IAkHnE;;;;;;;OAOG;IACG,eAAe,CAAC,EACpB,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAqOnE;;;;;;;OAOG;IACG,gBAAgB,CAAC,EACrB,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAsJvE;;;;;;OAMG;IACG,mBAAmB,CAAC,EACxB,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,mBAAmB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IA8H1E;;;;;;;OAOG;IACG,+BAA+B,CAAC,EACpC,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IA8GtF;;;;;;OAMG;IACG,oBAAoB,CAAC,EACzB,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,oBAAoB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAuB3E;;;;;;OAMG;IACG,wBAAwB,CAAC,EAC7B,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAmG/E;;;;;;OAMG;IACG,wBAAwB,CAAC,EAC7B,UAAU,EACV,MAAM,GACP,EAAE,WAAW,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAmFhF;AAED,eAAO,MAAM,KAAK,cAA6B,CAAC"}
@@ -734,32 +734,63 @@ class Transactions {
734
734
  }
735
735
  claimAutomationIx(_a) {
736
736
  return __awaiter(this, arguments, void 0, function* ({ connection, params, }) {
737
- const program = yield meteora_1.MeteoraDLMM.program(connection);
738
- const position = yield program.account.positionV2.fetch(params.position);
739
- const dlmmPool = yield meteora_1.MeteoraDLMM.create(connection, position.lbPair, this.ix);
740
- const userPda = (0, functions_1.generateUserPda)(params.userWallet);
741
- const { userPositions } = yield dlmmPool.getPositionsByUserAndLbPair(userPda);
742
- const userPosition = userPositions.find((userPosition) => userPosition.publicKey.equals(params.position));
743
- if (userPosition === undefined) {
744
- throw new Error(`Position: ${params.position} does not exist.`);
737
+ try {
738
+ console.log('=== CLAIM AUTOMATION IX START ===');
739
+ console.log('Params:', {
740
+ userWallet: params.userWallet.toString(),
741
+ position: params.position.toString()
742
+ });
743
+ const program = yield meteora_1.MeteoraDLMM.program(connection);
744
+ console.log('Program fetched successfully');
745
+ const position = yield program.account.positionV2.fetch(params.position);
746
+ console.log('Position fetched:', {
747
+ lbPair: position.lbPair.toString(),
748
+ owner: position.owner.toString(),
749
+ lowerBinId: position.lowerBinId.toString(),
750
+ upperBinId: position.upperBinId.toString()
751
+ });
752
+ const dlmmPool = yield meteora_1.MeteoraDLMM.create(connection, position.lbPair, this.ix);
753
+ console.log('DLMM pool created successfully');
754
+ const userPda = (0, functions_1.generateUserPda)(params.userWallet);
755
+ console.log('User PDA generated:', userPda.toString());
756
+ const { userPositions } = yield dlmmPool.getPositionsByUserAndLbPair(userPda);
757
+ console.log('User positions fetched, count:', userPositions.length);
758
+ const userPosition = userPositions.find((userPosition) => userPosition.publicKey.equals(params.position));
759
+ if (userPosition === undefined) {
760
+ throw new Error(`Position: ${params.position} does not exist.`);
761
+ }
762
+ console.log('User position found');
763
+ // Claim fee and claim reward ixs
764
+ console.log('Creating MeteoraFunctions...');
765
+ const fn = new meteora_1.MeteoraFunctions(this.ix);
766
+ console.log('Calling claimAllRewardsByPosition...');
767
+ const claimBuilder = yield fn.claimAllRewardsByPosition(connection, params.userWallet, addresses_1.HS_AUTHORITY, {
768
+ owner: userPda,
769
+ position: params.position,
770
+ lbPair: position.lbPair,
771
+ pdaTokenType: types_1.TokenType.STA,
772
+ }, hsToMeteora_1.meteoraToHawksightAutomationIxs);
773
+ console.log('Claim builder created successfully');
774
+ const mainInstructions = [
775
+ ...claimBuilder.mainIxs,
776
+ ];
777
+ console.log('=== CLAIM AUTOMATION IX SUCCESS ===');
778
+ return (0, functions_1.createTransactionMeta)({
779
+ payer: params.userWallet,
780
+ description: "Automation IX: Meteora Auto-claim instructions (claim fee, reward)",
781
+ addressLookupTableAddresses: addresses_1.GLOBAL_ALT,
782
+ mainInstructions,
783
+ });
784
+ }
785
+ catch (error) {
786
+ console.error('=== CLAIM AUTOMATION IX ERROR ===');
787
+ console.error('Error type:', error instanceof Error ? error.constructor.name : typeof error);
788
+ console.error('Error message:', error instanceof Error ? error.message : String(error));
789
+ console.error('Error stack:', error instanceof Error ? error.stack : 'No stack trace');
790
+ console.error('Full error object:', error);
791
+ console.error('=== END CLAIM AUTOMATION ERROR LOG ===');
792
+ throw error;
745
793
  }
746
- // Claim fee and claim reward ixs
747
- const fn = new meteora_1.MeteoraFunctions(this.ix);
748
- const claimBuilder = yield fn.claimAllRewardsByPosition(connection, params.userWallet, addresses_1.HS_AUTHORITY, {
749
- owner: userPda,
750
- position: params.position,
751
- lbPair: position.lbPair,
752
- pdaTokenType: types_1.TokenType.STA,
753
- }, hsToMeteora_1.meteoraToHawksightAutomationIxs);
754
- const mainInstructions = [
755
- ...claimBuilder.mainIxs,
756
- ];
757
- return (0, functions_1.createTransactionMeta)({
758
- payer: params.userWallet,
759
- description: "Automation IX: Meteora Auto-claim instructions (claim fee, reward)",
760
- addressLookupTableAddresses: addresses_1.GLOBAL_ALT,
761
- mainInstructions,
762
- });
763
794
  });
764
795
  }
765
796
  rebalanceAutomationIx(_a) {
@@ -3110,18 +3110,47 @@ export type IyfExtension = {
3110
3110
  ];
3111
3111
  "accounts": [
3112
3112
  {
3113
- "name": "userPda";
3113
+ "name": "farm";
3114
3114
  "docs": [
3115
- "Hawksight user pda"
3115
+ "Hawksight multi-index farm"
3116
3116
  ];
3117
3117
  },
3118
3118
  {
3119
- "name": "hawksightAuthority";
3119
+ "name": "userPda";
3120
3120
  "docs": [
3121
- "Rebalancer which is hard coded to be a Hawksight rebalance wallet"
3121
+ "Hawksight user pda"
3122
3122
  ];
3123
- "writable": true;
3124
- "signer": true;
3123
+ "pda": {
3124
+ "seeds": [
3125
+ {
3126
+ "kind": "const";
3127
+ "value": [
3128
+ 109,
3129
+ 117,
3130
+ 108,
3131
+ 116,
3132
+ 105,
3133
+ 45,
3134
+ 117,
3135
+ 115,
3136
+ 101,
3137
+ 114
3138
+ ];
3139
+ },
3140
+ {
3141
+ "kind": "account";
3142
+ "path": "farm";
3143
+ },
3144
+ {
3145
+ "kind": "account";
3146
+ "path": "authority";
3147
+ }
3148
+ ];
3149
+ "program": {
3150
+ "kind": "account";
3151
+ "path": "iyfProgram";
3152
+ };
3153
+ };
3125
3154
  },
3126
3155
  {
3127
3156
  "name": "authority";
@@ -3133,6 +3162,21 @@ export type IyfExtension = {
3133
3162
  "userPda"
3134
3163
  ];
3135
3164
  },
3165
+ {
3166
+ "name": "iyfProgram";
3167
+ "docs": [
3168
+ "Main index yield farming program"
3169
+ ];
3170
+ "address": "FqGg2Y1FNxMiGd51Q6UETixQWkF5fB92MysbYogRJb3P";
3171
+ },
3172
+ {
3173
+ "name": "hawksightAuthority";
3174
+ "docs": [
3175
+ "Rebalancer which is hard coded to be a Hawksight rebalance wallet"
3176
+ ];
3177
+ "writable": true;
3178
+ "signer": true;
3179
+ },
3136
3180
  {
3137
3181
  "name": "position";
3138
3182
  "writable": true;