@hawksightco/hawk-sdk 1.3.235 → 1.3.237

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,8 +1,8 @@
1
- import * as web3 from "@solana/web3.js";
2
- import * as _client from "@hawksightco/swagger-client";
3
- import { MeteoraClose, MeteoraCompound, MeteoraRedeposit, MeteoraRedeposit2, MeteoraLimitCloseAutomation, MeteoraLimitCloseAutomation2, MeteoraRebalance, MeteoraRebalance2, MeteoraRebalance3, OpenAutomationIx, RelativeOpenAutomationIx, ResponseWithStatus, TransactionMetadata, TransactionMetadataWithActions, MeteoraRebalanceForLargerPosition, LabeledInstructions, MeteoraReshapePositionAutomationParams, MeteoraRebalanceHybridLiquidity, MeteoraRedepositHybridLiquidity } from "../types";
4
- import { Client } from "./Client";
5
- import { GeneralUtility } from "./GeneralUtility";
1
+ import * as web3 from '@solana/web3.js';
2
+ import * as _client from '@hawksightco/swagger-client';
3
+ import { MeteoraClose, MeteoraCompound, MeteoraRedeposit, MeteoraRedeposit2, MeteoraLimitCloseAutomation, MeteoraLimitCloseAutomation2, MeteoraRebalance, MeteoraRebalance2, MeteoraRebalance3, OpenAutomationIx, RelativeOpenAutomationIx, ResponseWithStatus, TransactionMetadata, TransactionMetadataWithActions, MeteoraRebalanceForLargerPosition, LabeledInstructions, MeteoraReshapePositionAutomationParams, MeteoraRebalanceHybridLiquidity, MeteoraRedepositHybridLiquidity } from '../types';
4
+ import { Client } from './Client';
5
+ import { GeneralUtility } from './GeneralUtility';
6
6
  /**
7
7
  * The `TxGeneratorAutomations` class encapsulates methods to generate transactions with various trading operations
8
8
  * on decentralized market making platforms like Meteora and Orca within the Solana ecosystem. It allows
@@ -233,5 +233,7 @@ export declare class TxGeneratorAutomations {
233
233
  * NOTE: For hawksight devs only.
234
234
  */
235
235
  meteoraRedepositHybridLiquidityIxs(connection: web3.Connection, payer: string, params: MeteoraRedepositHybridLiquidity): Promise<ResponseWithStatus<TransactionMetadataWithActions[]>>;
236
+ meteoraRebalanceHybridLiquidityIxsV2(connection: web3.Connection, payer: string, params: MeteoraRebalanceHybridLiquidity): Promise<ResponseWithStatus<TransactionMetadataWithActions[]>>;
237
+ meteoraRedepositHybridLiquidityIxsV2(connection: web3.Connection, payer: string, params: MeteoraRedepositHybridLiquidity): Promise<ResponseWithStatus<TransactionMetadataWithActions[]>>;
236
238
  }
237
239
  //# sourceMappingURL=TxGeneratorAutomations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TxGeneratorAutomations.d.ts","sourceRoot":"","sources":["../../../src/classes/TxGeneratorAutomations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,iCAAiC,EAAE,mBAAmB,EAA4C,sCAAsC,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAClhB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD;;;;;;GAMG;AACH,qBAAa,sBAAsB;IAkB/B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,cAAc;IAjBjC;;OAEG;IACH,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC;IAE/C;;OAEG;IACH,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC;IAEjC;;;;OAIG;gBAEgB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc;IAMjD;;;;;;;;;OASG;IACG,kB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C,CACtC,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,+BAA+B,GACtC,OAAO,CAAC,kBAAkB,CAAC,8BAA8B,EAAE,CAAC,CAAC;IA6C1D,oCAAoC,CACxC,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,+BAA+B,GACtC,OAAO,CAAC,kBAAkB,CAAC,8BAA8B,EAAE,CAAC,CAAC;IA6C1D,oCAAoC,CACxC,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,+BAA+B,GACtC,OAAO,CAAC,kBAAkB,CAAC,8BAA8B,EAAE,CAAC,CAAC;CA4CjE"}
@@ -98,7 +98,7 @@ class TxGeneratorAutomations {
98
98
  return {
99
99
  status: 400,
100
100
  data: {
101
- code: "custom",
101
+ code: 'custom',
102
102
  message: errorMessage,
103
103
  path: [],
104
104
  },
@@ -145,7 +145,7 @@ class TxGeneratorAutomations {
145
145
  return {
146
146
  status: 400,
147
147
  data: {
148
- code: "custom",
148
+ code: 'custom',
149
149
  message: e.message,
150
150
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
151
151
  path: [],
@@ -155,7 +155,7 @@ class TxGeneratorAutomations {
155
155
  return {
156
156
  status: 400,
157
157
  data: {
158
- code: "custom",
158
+ code: 'custom',
159
159
  message: e,
160
160
  path: [],
161
161
  },
@@ -195,7 +195,7 @@ class TxGeneratorAutomations {
195
195
  return {
196
196
  status: 400,
197
197
  data: {
198
- code: "custom",
198
+ code: 'custom',
199
199
  message: errorMessage,
200
200
  path: [],
201
201
  },
@@ -223,7 +223,7 @@ class TxGeneratorAutomations {
223
223
  return {
224
224
  status: 400,
225
225
  data: {
226
- code: "custom",
226
+ code: 'custom',
227
227
  message: errorMessage,
228
228
  path: [],
229
229
  },
@@ -264,7 +264,7 @@ class TxGeneratorAutomations {
264
264
  return {
265
265
  status: 400,
266
266
  data: {
267
- code: "custom",
267
+ code: 'custom',
268
268
  message: e.message,
269
269
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
270
270
  path: [],
@@ -274,7 +274,7 @@ class TxGeneratorAutomations {
274
274
  return {
275
275
  status: 400,
276
276
  data: {
277
- code: "custom",
277
+ code: 'custom',
278
278
  message: e,
279
279
  path: [],
280
280
  },
@@ -321,7 +321,7 @@ class TxGeneratorAutomations {
321
321
  return {
322
322
  status: 400,
323
323
  data: {
324
- code: "custom",
324
+ code: 'custom',
325
325
  message: e.message,
326
326
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
327
327
  path: [],
@@ -331,7 +331,7 @@ class TxGeneratorAutomations {
331
331
  return {
332
332
  status: 400,
333
333
  data: {
334
- code: "custom",
334
+ code: 'custom',
335
335
  message: e,
336
336
  path: [],
337
337
  },
@@ -372,7 +372,7 @@ class TxGeneratorAutomations {
372
372
  return {
373
373
  status: 400,
374
374
  data: {
375
- code: "custom",
375
+ code: 'custom',
376
376
  message: e.message,
377
377
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
378
378
  path: [],
@@ -382,7 +382,7 @@ class TxGeneratorAutomations {
382
382
  return {
383
383
  status: 400,
384
384
  data: {
385
- code: "custom",
385
+ code: 'custom',
386
386
  message: e,
387
387
  path: [],
388
388
  },
@@ -423,7 +423,7 @@ class TxGeneratorAutomations {
423
423
  return {
424
424
  status: 400,
425
425
  data: {
426
- code: "custom",
426
+ code: 'custom',
427
427
  message: e.message,
428
428
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
429
429
  path: [],
@@ -433,7 +433,7 @@ class TxGeneratorAutomations {
433
433
  return {
434
434
  status: 400,
435
435
  data: {
436
- code: "custom",
436
+ code: 'custom',
437
437
  message: e,
438
438
  path: [],
439
439
  },
@@ -466,7 +466,7 @@ class TxGeneratorAutomations {
466
466
  return {
467
467
  status: 400,
468
468
  data: {
469
- code: "custom",
469
+ code: 'custom',
470
470
  message: e.message,
471
471
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
472
472
  path: [],
@@ -476,7 +476,7 @@ class TxGeneratorAutomations {
476
476
  return {
477
477
  status: 400,
478
478
  data: {
479
- code: "custom",
479
+ code: 'custom',
480
480
  message: e,
481
481
  path: [],
482
482
  },
@@ -518,7 +518,7 @@ class TxGeneratorAutomations {
518
518
  return {
519
519
  status: 400,
520
520
  data: {
521
- code: "custom",
521
+ code: 'custom',
522
522
  message: e.message,
523
523
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
524
524
  path: [],
@@ -528,7 +528,7 @@ class TxGeneratorAutomations {
528
528
  return {
529
529
  status: 400,
530
530
  data: {
531
- code: "custom",
531
+ code: 'custom',
532
532
  message: e,
533
533
  path: [],
534
534
  },
@@ -574,7 +574,7 @@ class TxGeneratorAutomations {
574
574
  return {
575
575
  status: 400,
576
576
  data: {
577
- code: "custom",
577
+ code: 'custom',
578
578
  message: e.message,
579
579
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
580
580
  path: [],
@@ -584,7 +584,7 @@ class TxGeneratorAutomations {
584
584
  return {
585
585
  status: 400,
586
586
  data: {
587
- code: "custom",
587
+ code: 'custom',
588
588
  message: e,
589
589
  path: [],
590
590
  },
@@ -631,7 +631,7 @@ class TxGeneratorAutomations {
631
631
  return {
632
632
  status: 400,
633
633
  data: {
634
- code: "custom",
634
+ code: 'custom',
635
635
  message: e.message,
636
636
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
637
637
  path: [],
@@ -641,7 +641,7 @@ class TxGeneratorAutomations {
641
641
  return {
642
642
  status: 400,
643
643
  data: {
644
- code: "custom",
644
+ code: 'custom',
645
645
  message: e,
646
646
  path: [],
647
647
  },
@@ -680,7 +680,7 @@ class TxGeneratorAutomations {
680
680
  return {
681
681
  status: 400,
682
682
  data: {
683
- code: "custom",
683
+ code: 'custom',
684
684
  message: e.message,
685
685
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
686
686
  path: [],
@@ -690,7 +690,7 @@ class TxGeneratorAutomations {
690
690
  return {
691
691
  status: 400,
692
692
  data: {
693
- code: "custom",
693
+ code: 'custom',
694
694
  message: e,
695
695
  path: [],
696
696
  },
@@ -729,7 +729,7 @@ class TxGeneratorAutomations {
729
729
  return {
730
730
  status: 400,
731
731
  data: {
732
- code: "custom",
732
+ code: 'custom',
733
733
  message: e.message,
734
734
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
735
735
  path: [],
@@ -739,7 +739,7 @@ class TxGeneratorAutomations {
739
739
  return {
740
740
  status: 400,
741
741
  data: {
742
- code: "custom",
742
+ code: 'custom',
743
743
  message: e,
744
744
  path: [],
745
745
  },
@@ -779,7 +779,7 @@ class TxGeneratorAutomations {
779
779
  return {
780
780
  status: 400,
781
781
  data: {
782
- code: "custom",
782
+ code: 'custom',
783
783
  message: errorMessage,
784
784
  path: [],
785
785
  },
@@ -818,7 +818,7 @@ class TxGeneratorAutomations {
818
818
  return {
819
819
  status: 400,
820
820
  data: {
821
- code: "custom",
821
+ code: 'custom',
822
822
  message: e.message,
823
823
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
824
824
  path: [],
@@ -828,7 +828,7 @@ class TxGeneratorAutomations {
828
828
  return {
829
829
  status: 400,
830
830
  data: {
831
- code: "custom",
831
+ code: 'custom',
832
832
  message: e,
833
833
  path: [],
834
834
  },
@@ -867,7 +867,7 @@ class TxGeneratorAutomations {
867
867
  return {
868
868
  status: 400,
869
869
  data: {
870
- code: "custom",
870
+ code: 'custom',
871
871
  message: e.message,
872
872
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
873
873
  path: [],
@@ -877,7 +877,7 @@ class TxGeneratorAutomations {
877
877
  return {
878
878
  status: 400,
879
879
  data: {
880
- code: "custom",
880
+ code: 'custom',
881
881
  message: e,
882
882
  path: [],
883
883
  },
@@ -916,7 +916,7 @@ class TxGeneratorAutomations {
916
916
  return {
917
917
  status: 400,
918
918
  data: {
919
- code: "custom",
919
+ code: 'custom',
920
920
  message: e.message,
921
921
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
922
922
  path: [],
@@ -926,7 +926,7 @@ class TxGeneratorAutomations {
926
926
  return {
927
927
  status: 400,
928
928
  data: {
929
- code: "custom",
929
+ code: 'custom',
930
930
  message: e,
931
931
  path: [],
932
932
  },
@@ -965,7 +965,7 @@ class TxGeneratorAutomations {
965
965
  return {
966
966
  status: 400,
967
967
  data: {
968
- code: "custom",
968
+ code: 'custom',
969
969
  message: e.message,
970
970
  stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
971
971
  path: [],
@@ -975,7 +975,93 @@ class TxGeneratorAutomations {
975
975
  return {
976
976
  status: 400,
977
977
  data: {
978
- code: "custom",
978
+ code: 'custom',
979
+ message: e,
980
+ path: [],
981
+ },
982
+ };
983
+ }
984
+ });
985
+ }
986
+ meteoraRebalanceHybridLiquidityIxsV2(connection, payer, params) {
987
+ return __awaiter(this, void 0, void 0, function* () {
988
+ var _a;
989
+ anchor_1.Anchor.initialize(connection);
990
+ try {
991
+ const results = yield Transactions_1.txgen.meteoraRebalanceHybridLiquidityV2Automation({
992
+ connection,
993
+ params,
994
+ fetch: undefined,
995
+ });
996
+ const txMetadatas = [];
997
+ for (const result of results) {
998
+ const txMeta = yield (0, functions_1.createTxMetadataWithActions)(this.generalUtility, connection, payer, result);
999
+ txMetadatas.push(txMeta);
1000
+ }
1001
+ return {
1002
+ status: 200,
1003
+ data: txMetadatas,
1004
+ };
1005
+ }
1006
+ catch (e) {
1007
+ if (e instanceof Error) {
1008
+ return {
1009
+ status: 400,
1010
+ data: {
1011
+ code: 'custom',
1012
+ message: e.message,
1013
+ stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
1014
+ path: [],
1015
+ },
1016
+ };
1017
+ }
1018
+ return {
1019
+ status: 400,
1020
+ data: {
1021
+ code: 'custom',
1022
+ message: e,
1023
+ path: [],
1024
+ },
1025
+ };
1026
+ }
1027
+ });
1028
+ }
1029
+ meteoraRedepositHybridLiquidityIxsV2(connection, payer, params) {
1030
+ return __awaiter(this, void 0, void 0, function* () {
1031
+ var _a;
1032
+ anchor_1.Anchor.initialize(connection);
1033
+ try {
1034
+ const results = yield Transactions_1.txgen.meteoraRedepositHybridLiquidityV2Automation({
1035
+ connection,
1036
+ params,
1037
+ fetch: undefined,
1038
+ });
1039
+ const txMetadatas = [];
1040
+ for (const result of results) {
1041
+ const txMeta = yield (0, functions_1.createTxMetadataWithActions)(this.generalUtility, connection, payer, result);
1042
+ txMetadatas.push(txMeta);
1043
+ }
1044
+ return {
1045
+ status: 200,
1046
+ data: txMetadatas,
1047
+ };
1048
+ }
1049
+ catch (e) {
1050
+ if (e instanceof Error) {
1051
+ return {
1052
+ status: 400,
1053
+ data: {
1054
+ code: 'custom',
1055
+ message: e.message,
1056
+ stack: (_a = e.stack) === null || _a === void 0 ? void 0 : _a.split('\n'),
1057
+ path: [],
1058
+ },
1059
+ };
1060
+ }
1061
+ return {
1062
+ status: 400,
1063
+ data: {
1064
+ code: 'custom',
979
1065
  message: e,
980
1066
  path: [],
981
1067
  },
@@ -1290,6 +1290,19 @@ export type Jupiter = {
1290
1290
  123
1291
1291
  ];
1292
1292
  },
1293
+ {
1294
+ "name": "CandidateSwapQuoteError";
1295
+ "discriminator": [
1296
+ 248,
1297
+ 134,
1298
+ 37,
1299
+ 55,
1300
+ 145,
1301
+ 177,
1302
+ 114,
1303
+ 79
1304
+ ];
1305
+ },
1293
1306
  {
1294
1307
  "name": "BestSwapOutAmountViolation";
1295
1308
  "discriminator": [
@@ -2584,6 +2597,67 @@ export type Jupiter = {
2584
2597
  "type": "bool";
2585
2598
  }
2586
2599
  ];
2600
+ },
2601
+ {
2602
+ "name": "Trends";
2603
+ },
2604
+ {
2605
+ "name": "HumaDeposit";
2606
+ },
2607
+ {
2608
+ "name": "HumaInstantWithdraw";
2609
+ },
2610
+ {
2611
+ "name": "Kipseli";
2612
+ "fields": [
2613
+ {
2614
+ "name": "is_base_to_quote";
2615
+ "type": "bool";
2616
+ }
2617
+ ];
2618
+ },
2619
+ {
2620
+ "name": "DynamicV2";
2621
+ "fields": [
2622
+ {
2623
+ "name": "candidate_swaps";
2624
+ "type": {
2625
+ "vec": {
2626
+ "defined": {
2627
+ "name": "CandidateSwapWithBps";
2628
+ };
2629
+ };
2630
+ };
2631
+ },
2632
+ {
2633
+ "name": "max_split_quote_calls";
2634
+ "type": "u8";
2635
+ },
2636
+ {
2637
+ "name": "max_split_candidates";
2638
+ "type": "u8";
2639
+ }
2640
+ ];
2641
+ }
2642
+ ];
2643
+ };
2644
+ },
2645
+ {
2646
+ "name": "CandidateSwapWithBps";
2647
+ "type": {
2648
+ "kind": "struct";
2649
+ "fields": [
2650
+ {
2651
+ "name": "candidate_swap";
2652
+ "type": {
2653
+ "defined": {
2654
+ "name": "CandidateSwap";
2655
+ };
2656
+ };
2657
+ },
2658
+ {
2659
+ "name": "bps";
2660
+ "type": "u32";
2587
2661
  }
2588
2662
  ];
2589
2663
  };
@@ -2631,6 +2705,42 @@ export type Jupiter = {
2631
2705
  "type": "bool";
2632
2706
  }
2633
2707
  ];
2708
+ },
2709
+ {
2710
+ "name": "RaydiumV2";
2711
+ },
2712
+ {
2713
+ "name": "RaydiumClmm";
2714
+ },
2715
+ {
2716
+ "name": "Whirlpool";
2717
+ "fields": [
2718
+ {
2719
+ "name": "a_to_b";
2720
+ "type": "bool";
2721
+ }
2722
+ ];
2723
+ },
2724
+ {
2725
+ "name": "ZeroFi";
2726
+ },
2727
+ {
2728
+ "name": "BisonFiV2";
2729
+ "fields": [
2730
+ {
2731
+ "name": "a_to_b";
2732
+ "type": "bool";
2733
+ }
2734
+ ];
2735
+ },
2736
+ {
2737
+ "name": "GoonFiV2";
2738
+ "fields": [
2739
+ {
2740
+ "name": "is_bid";
2741
+ "type": "bool";
2742
+ }
2743
+ ];
2634
2744
  }
2635
2745
  ];
2636
2746
  };
@@ -2806,6 +2916,26 @@ export type Jupiter = {
2806
2916
  }
2807
2917
  ];
2808
2918
  };
2919
+ },
2920
+ {
2921
+ "name": "CandidateSwapQuoteError";
2922
+ "type": {
2923
+ "kind": "struct";
2924
+ "fields": [
2925
+ {
2926
+ "name": "candidate_index";
2927
+ "type": "u64";
2928
+ },
2929
+ {
2930
+ "name": "in_amount";
2931
+ "type": "u64";
2932
+ },
2933
+ {
2934
+ "name": "error_code";
2935
+ "type": "u64";
2936
+ }
2937
+ ];
2938
+ };
2809
2939
  }
2810
2940
  ];
2811
2941
  };