@hawksightco/hawk-sdk 0.0.13 → 0.0.15

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,6 +1,6 @@
1
1
  import * as web3 from "@solana/web3.js";
2
2
  import * as _client from "@hawksightco/swagger-client";
3
- import { ResponseWithStatus, TransactionMetadata, TransactionMetadataResponse, UserPortfolioOut } from "../types";
3
+ import { ResponseWithStatus, TransactionMetadata, UserPortfolioOut } from "../types";
4
4
  import { Client } from "./Client";
5
5
  import { GeneralUtility } from "./GeneralUtility";
6
6
  /**
@@ -63,6 +63,6 @@ export declare class General {
63
63
  * @param params Registration parameters required by the API.
64
64
  * @returns A Promise resolving to the transaction metadata or an error response, depending on the outcome of the registration.
65
65
  */
66
- register(connection: web3.Connection, payer: string, params: _client.RegisterBody): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
66
+ register(connection: web3.Connection, payer: string, params: _client.RegisterBody): Promise<ResponseWithStatus<TransactionMetadata>>;
67
67
  }
68
68
  //# sourceMappingURL=General.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"General.d.ts","sourceRoot":"","sources":["../../../src/classes/General.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,2BAA2B,EAAuB,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACvI,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;GAKG;AACH,qBAAa,OAAO;IAahB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,cAAc;IAZjC,4GAA4G;IAC5G,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC,0CAA0C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C,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,cAAc;IAZjC,4GAA4G;IAC5G,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC,0CAA0C,CAAC;IAE5E,sGAAsG;IACtG,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC;IAEjC;;;OAGG;gBAEgB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc;IAOjD;;;;OAIG;IACH,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,0CAA0C;IAIlF;;;;OAIG;IACH,iBAAiB,CAAC,cAAc,EAAE,MAAM;IAIxC;;;;;OAKG;IACG,SAAS,CACb,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GACA,OAAO,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IAQhD;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,kBAAkB,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAQxE;;;;OAIG;IACG,MAAM,IAAI,OAAO,CAAC,kBAAkB,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAQzE;;;;;;;OAOG;IACG,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;CAU3I"}
@@ -11,6 +11,7 @@ export declare class Transaction {
11
11
  readonly payerKey: web3.PublicKey;
12
12
  private _recentBlockhash;
13
13
  readonly alts: web3.AddressLookupTableAccount[];
14
+ private generalUtility;
14
15
  /** Compiled TransactionMessage which includes payer, instructions, and recent blockhash */
15
16
  private _txMessage;
16
17
  get txMessage(): web3.TransactionMessage;
@@ -35,7 +36,7 @@ export declare class Transaction {
35
36
  * @param recentBlockhash The blockhash of a recent ledger entry
36
37
  * @param alts Address lookup tables that optimize account address storage
37
38
  */
38
- constructor(txMetadataResponse: TransactionMetadataResponse, payerKey: web3.PublicKey, _recentBlockhash: string, alts: web3.AddressLookupTableAccount[]);
39
+ constructor(txMetadataResponse: TransactionMetadataResponse, payerKey: web3.PublicKey, _recentBlockhash: string, alts: web3.AddressLookupTableAccount[], generalUtility: GeneralUtility);
39
40
  /**
40
41
  * Signs the transaction with provided signers.
41
42
  *
@@ -53,7 +54,7 @@ export declare class Transaction {
53
54
  /**
54
55
  * Add priority fee instructions (compute budget)
55
56
  */
56
- addPriorityFeeIx(generalUtility: GeneralUtility, connection: web3.Connection, priorityLevel: client.UtilGetPriorityFeeEstimateBodyPriorityEnum, computeUnitLimit: number, maxPriorityFee?: number): Promise<web3.TransactionInstruction[]>;
57
+ addPriorityFeeIx(connection: web3.Connection, priorityLevel: client.UtilGetPriorityFeeEstimateBodyPriorityEnum, computeUnitLimit: number, maxPriorityFee?: number): Promise<web3.TransactionInstruction[]>;
57
58
  /**
58
59
  * Simulate transaction
59
60
  *
@@ -64,7 +65,7 @@ export declare class Transaction {
64
65
  /**
65
66
  * Builds transaction object
66
67
  */
67
- private buildTransaction;
68
+ buildTransaction(recentBlockhash: string): [web3.TransactionMessage, web3.VersionedTransaction];
68
69
  /**
69
70
  * Gathers the public keys of all parties required to sign the transaction.
70
71
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/classes/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;GAGG;AACH,qBAAa,WAAW;IAiCpB,QAAQ,CAAC,kBAAkB,EAAE,2BAA2B;IACxD,QAAQ,CAAC,QAAQ,EAAE,I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kC;IAE/D,yEAAyE;IACzE,OAAO,CAAC,aAAa,CAAgC;IACrD,IAAI,YAAY,IAAI,IAAI,CAAC,sBAAsB,EAAE,CAA+B;IAEhF;;;;;;;OAOG;gBAEQ,kBAAkB,EAAE,2BAA2B,EAC/C,QAAQ,EAAE,IAAI,CAAC,SAAS,EACzB,gBAAgB,EAAE,MAAM,EACvB,IAAI,EAAE,IAAI,CAAC,yBAAyB,EAAE,EACvC,cAAc,EAAE,cAAc;IAkCxC;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,UAAU,GAAE,OAAe,GAAG,IAAI;IAqB/D;;;;OAIG;IACH,yBAAyB,IAAI,OAAO;IAIpC;;OAEG;IACG,gBAAgB,CACpB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,aAAa,EAAE,MAAM,CAAC,0CAA0C,EAChE,gBAAgB,EAAE,MAAM,EACxB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,CAAC;IA+BzC;;;;;OAKG;IACG,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,4BAA4B,CAAC;IA+B7F;;OAEG;IACH,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,oBAAoB,CAAC;IAW/F;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAQpC;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAQpC;;OAEG;IACH,OAAO,CAAC,oBAAoB;CAW7B"}
@@ -55,7 +55,7 @@ class Transaction {
55
55
  * @param recentBlockhash The blockhash of a recent ledger entry
56
56
  * @param alts Address lookup tables that optimize account address storage
57
57
  */
58
- constructor(txMetadataResponse, payerKey, _recentBlockhash, alts) {
58
+ constructor(txMetadataResponse, payerKey, _recentBlockhash, alts, generalUtility) {
59
59
  // // Construct compute instructions
60
60
  // const computeIxs = txMetadataResponse.computeBudgetInstructions.map(ix => {
61
61
  // return new web3.TransactionInstruction({
@@ -70,6 +70,7 @@ class Transaction {
70
70
  this.payerKey = payerKey;
71
71
  this._recentBlockhash = _recentBlockhash;
72
72
  this.alts = alts;
73
+ this.generalUtility = generalUtility;
73
74
  /** Estimated fee in SOL for priority fee when addPriorityFee() method is called. */
74
75
  this._priorityFeeEstimate = "";
75
76
  // Construct main instructions
@@ -128,12 +129,12 @@ class Transaction {
128
129
  /**
129
130
  * Add priority fee instructions (compute budget)
130
131
  */
131
- addPriorityFeeIx(generalUtility, connection, priorityLevel, computeUnitLimit, maxPriorityFee) {
132
+ addPriorityFeeIx(connection, priorityLevel, computeUnitLimit, maxPriorityFee) {
132
133
  return __awaiter(this, void 0, void 0, function* () {
133
134
  // First, remove priority fee instructions (compute budget if there is)
134
135
  this.removePriorityFeeIxs();
135
136
  // Then get fee estimate by simulating the transaction
136
- const estimate = yield (0, functions_1.getFeeEstimate)(generalUtility, priorityLevel, this.txMetadataResponse);
137
+ const estimate = yield (0, functions_1.getFeeEstimate)(this.generalUtility, priorityLevel, this.txMetadataResponse);
137
138
  const priorityFeeEstimate = maxPriorityFee !== undefined && maxPriorityFee > 0 ? Math.round(Math.min(estimate, maxPriorityFee)) : Math.round(estimate);
138
139
  // Create priority fee ixs for transaction
139
140
  const priorityFeeIxs = [
@@ -1,6 +1,6 @@
1
1
  import * as web3 from "@solana/web3.js";
2
2
  import * as _client from "@hawksightco/swagger-client";
3
- import { ResponseWithStatus, TransactionMetadata, TransactionMetadataResponse } from "../types";
3
+ import { ResponseWithStatus, TransactionMetadata } from "../types";
4
4
  import { Client } from "./Client";
5
5
  import { GeneralUtility } from "./GeneralUtility";
6
6
  /**
@@ -45,7 +45,7 @@ export declare class TxGenerator {
45
45
  * @param params Parameters required
46
46
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
47
47
  */
48
- meteoraCreatePositionAndDeposit(connection: web3.Connection, payer: string, params: _client.TxCreatePositionAndDepositBody): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
48
+ meteoraCreatePositionAndDeposit(connection: web3.Connection, payer: string, params: _client.TxCreatePositionAndDepositBody): Promise<ResponseWithStatus<TransactionMetadata>>;
49
49
  /**
50
50
  * Creates meteora instruction that deposits to position.
51
51
  *
@@ -54,7 +54,7 @@ export declare class TxGenerator {
54
54
  * @param params Parameters required
55
55
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
56
56
  */
57
- meteoraDeposit(connection: web3.Connection, payer: string, params: _client.TxDepositBody): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
57
+ meteoraDeposit(connection: web3.Connection, payer: string, params: _client.TxDepositBody): Promise<ResponseWithStatus<TransactionMetadata>>;
58
58
  /**
59
59
  * Creates meteora instruction withdraws from a position.
60
60
  *
@@ -63,7 +63,7 @@ export declare class TxGenerator {
63
63
  * @param params Parameters required
64
64
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
65
65
  */
66
- meteoraWithdraw(connection: web3.Connection, payer: string, params: _client.TxWithdrawBody): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
66
+ meteoraWithdraw(connection: web3.Connection, payer: string, params: _client.TxWithdrawBody): Promise<ResponseWithStatus<TransactionMetadata>>;
67
67
  /**
68
68
  * Creates meteora instruction that claims fees and rewards.
69
69
  *
@@ -72,7 +72,7 @@ export declare class TxGenerator {
72
72
  * @param params Parameters required
73
73
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
74
74
  */
75
- meteoraClaim(connection: web3.Connection, payer: string, params: _client.TxClaimBody): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
75
+ meteoraClaim(connection: web3.Connection, payer: string, params: _client.TxClaimBody): Promise<ResponseWithStatus<TransactionMetadata>>;
76
76
  /**
77
77
  * Creates meteora instruction that closes position.
78
78
  *
@@ -81,7 +81,7 @@ export declare class TxGenerator {
81
81
  * @param params Parameters required
82
82
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
83
83
  */
84
- meteoraClosePosition(connection: web3.Connection, payer: string, params: _client.TxClosePositionBody): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
84
+ meteoraClosePosition(connection: web3.Connection, payer: string, params: _client.TxClosePositionBody): Promise<ResponseWithStatus<TransactionMetadata>>;
85
85
  /**
86
86
  * Creates orca instruction that opens new position
87
87
  *
@@ -90,7 +90,7 @@ export declare class TxGenerator {
90
90
  * @param params Parameters required
91
91
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
92
92
  */
93
- orcaOpenPosition(connection: web3.Connection, payer: string, params: _client.TxOpenPositionBody): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
93
+ orcaOpenPosition(connection: web3.Connection, payer: string, params: _client.TxOpenPositionBody): Promise<ResponseWithStatus<TransactionMetadata>>;
94
94
  /**
95
95
  * Creates orca instruction that closes position
96
96
  *
@@ -99,7 +99,7 @@ export declare class TxGenerator {
99
99
  * @param params Parameters required
100
100
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
101
101
  */
102
- orcaClosePosition(connection: web3.Connection, payer: string, params: _client.TxClosePositionBody1): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
102
+ orcaClosePosition(connection: web3.Connection, payer: string, params: _client.TxClosePositionBody1): Promise<ResponseWithStatus<TransactionMetadata>>;
103
103
  /**
104
104
  * Creates orca instruction that deposits to a position
105
105
  *
@@ -108,7 +108,7 @@ export declare class TxGenerator {
108
108
  * @param params Parameters required
109
109
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
110
110
  */
111
- orcaDeposit(connection: web3.Connection, payer: string, params: _client.TxDepositBody1): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
111
+ orcaDeposit(connection: web3.Connection, payer: string, params: _client.TxDepositBody1): Promise<ResponseWithStatus<TransactionMetadata>>;
112
112
  /**
113
113
  * Creates orca instruction that withdraws from a position
114
114
  *
@@ -117,7 +117,7 @@ export declare class TxGenerator {
117
117
  * @param params Parameters required
118
118
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
119
119
  */
120
- orcaWithdraw(connection: web3.Connection, payer: string, params: _client.TxWithdrawBody1): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
120
+ orcaWithdraw(connection: web3.Connection, payer: string, params: _client.TxWithdrawBody1): Promise<ResponseWithStatus<TransactionMetadata>>;
121
121
  /**
122
122
  * Creates orca instruction that claims fees and rewards
123
123
  *
@@ -126,6 +126,6 @@ export declare class TxGenerator {
126
126
  * @param params Parameters required
127
127
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
128
128
  */
129
- orcaClaimRewards(connection: web3.Connection, payer: string, params: _client.TxClaimRewardsBody): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
129
+ orcaClaimRewards(connection: web3.Connection, payer: string, params: _client.TxClaimRewardsBody): Promise<ResponseWithStatus<TransactionMetadata>>;
130
130
  }
131
131
  //# sourceMappingURL=TxGenerator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TxGenerator.d.ts","sourceRoot":"","sources":["../../../src/classes/TxGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,2BAA2B,EAAuB,MAAM,UAAU,CAAC;AACr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AAc,GAAG,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IAW/I;;;;;;;OAOG;IACG,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IAWjJ;;;;;;;OAOG;IACG,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;CAUzJ"}
@@ -1,6 +1,6 @@
1
1
  import * as web3 from "@solana/web3.js";
2
2
  import * as _client from "@hawksightco/swagger-client";
3
- import { ResponseWithStatus, TransactionMetadata, TransactionMetadataResponse } from "../types";
3
+ import { ResponseWithStatus, TransactionMetadata } from "../types";
4
4
  import { Client } from "./Client";
5
5
  import { GeneralUtility } from "./GeneralUtility";
6
6
  /**
@@ -28,43 +28,15 @@ export declare class TxGeneratorAutomations {
28
28
  */
29
29
  constructor(client: Client, generalUtility: GeneralUtility);
30
30
  /**
31
- * Creates meteora automation instruction that claims fee and rewards
31
+ * Creates meteora auto-compound instruction (claim fee, reward, and deposit to position)
32
32
  *
33
33
  * NOTE: For hawksight devs only.
34
34
  *
35
- * Autocompound IX
36
- *
37
- * @param connection The Solana web3 connection object for blockchain interactions.
38
- * @param payer The public key of the payer for transaction fees.
39
- * @param params Parameters required
40
- * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
41
- */
42
- meteoraClaimFeeAndRewards(connection: web3.Connection, payer: string, params: _client.AutomationClaimFeeAndRewardsAutomationIxBody): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
43
- /**
44
- * Creates meteora automation instruction fully withdraws position and closes it
45
- *
46
- * NOTE: For hawksight devs only.
47
- *
48
- * Rebalance IX Part 1
49
- *
50
- * @param connection The Solana web3 connection object for blockchain interactions.
51
- * @param payer The public key of the payer for transaction fees.
52
- * @param params Parameters required
53
- * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
54
- */
55
- meteoraFullWithdrawalAndClosePosition(connection: web3.Connection, payer: string, params: _client.AutomationFullWithdrawAndClosePositionAutomationIxBody): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
56
- /**
57
- * Creates meteora automation instruction that creates new position and deposit to that position
58
- *
59
- * NOTE: For hawksight devs only.
60
- *
61
- * Rebalance IX Part 2
62
- *
63
35
  * @param connection The Solana web3 connection object for blockchain interactions.
64
36
  * @param payer The public key of the payer for transaction fees.
65
37
  * @param params Parameters required
66
38
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
67
39
  */
68
- meteoraCreatePositionAndDeposit(connection: web3.Connection, payer: string, params: _client.AutomationCreatePositionAndDepositAutomationIxBody): Promise<ResponseWithStatus<TransactionMetadataResponse> | ResponseWithStatus<TransactionMetadata>>;
40
+ meteoraCompoundIxs(connection: web3.Connection, payer: string, params: _client.AutomationCompoundAutomationIxBody): Promise<ResponseWithStatus<TransactionMetadata>>;
69
41
  }
70
42
  //# 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,kBAAkB,EAAE,mBAAmB,EAAE,2BAA2B,EAAuB,MAAM,UAAU,CAAC;AACrH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;GAMG;AAC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AO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;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,0CAA0C,CAAC;IAE5E;;OAEG;IACH,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC;IAEjC;;;;OAIG;gBAEgB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc;IAMjD;;;;;;;;;OASG;IACG,kBAAkB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,kCAAkC,GAAG,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;CAU3K"}
@@ -55,62 +55,18 @@ class TxGeneratorAutomations {
55
55
  this.maxPriorityFee = 500000; // Default max priority fee in lamports
56
56
  }
57
57
  /**
58
- * Creates meteora automation instruction that claims fee and rewards
58
+ * Creates meteora auto-compound instruction (claim fee, reward, and deposit to position)
59
59
  *
60
60
  * NOTE: For hawksight devs only.
61
61
  *
62
- * Autocompound IX
63
- *
64
- * @param connection The Solana web3 connection object for blockchain interactions.
65
- * @param payer The public key of the payer for transaction fees.
66
- * @param params Parameters required
67
- * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
68
- */
69
- meteoraClaimFeeAndRewards(connection, payer, params) {
70
- return __awaiter(this, void 0, void 0, function* () {
71
- const result = yield this.client.meteoraDLMMAutomationInstructionsApi.meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(params).catch(e => e.response);
72
- return (0, functions_1.resultOrError)({
73
- status: result.status,
74
- data: result.data,
75
- }, (data) => __awaiter(this, void 0, void 0, function* () { return yield (0, functions_1.createTxMetadata)(this.generalUtility, connection, payer, data, this.priorityLevel, this.maxPriorityFee); }));
76
- });
77
- }
78
- /**
79
- * Creates meteora automation instruction fully withdraws position and closes it
80
- *
81
- * NOTE: For hawksight devs only.
82
- *
83
- * Rebalance IX Part 1
84
- *
85
- * @param connection The Solana web3 connection object for blockchain interactions.
86
- * @param payer The public key of the payer for transaction fees.
87
- * @param params Parameters required
88
- * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
89
- */
90
- meteoraFullWithdrawalAndClosePosition(connection, payer, params) {
91
- return __awaiter(this, void 0, void 0, function* () {
92
- const result = yield this.client.meteoraDLMMAutomationInstructionsApi.meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(params).catch(e => e.response);
93
- return (0, functions_1.resultOrError)({
94
- status: result.status,
95
- data: result.data,
96
- }, (data) => __awaiter(this, void 0, void 0, function* () { return yield (0, functions_1.createTxMetadata)(this.generalUtility, connection, payer, data, this.priorityLevel, this.maxPriorityFee); }));
97
- });
98
- }
99
- /**
100
- * Creates meteora automation instruction that creates new position and deposit to that position
101
- *
102
- * NOTE: For hawksight devs only.
103
- *
104
- * Rebalance IX Part 2
105
- *
106
62
  * @param connection The Solana web3 connection object for blockchain interactions.
107
63
  * @param payer The public key of the payer for transaction fees.
108
64
  * @param params Parameters required
109
65
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
110
66
  */
111
- meteoraCreatePositionAndDeposit(connection, payer, params) {
67
+ meteoraCompoundIxs(connection, payer, params) {
112
68
  return __awaiter(this, void 0, void 0, function* () {
113
- const result = yield this.client.meteoraDLMMAutomationInstructionsApi.meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(params).catch(e => e.response);
69
+ const result = yield this.client.meteoraDLMMAutomationInstructionsApi.meteoraDlmmAutomationCompoundAutomationIxPost(params).catch(e => e.response);
114
70
  return (0, functions_1.resultOrError)({
115
71
  status: result.status,
116
72
  data: result.data,
@@ -1 +1 @@
1
- {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,2BAA2B,EAAuB,MAAM,SAAS,CAAC;AAGpH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,gBAAgB,CACpC,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,2BAA2B,EACjC,aAAa,EAAE,MAAM,CAAC,0CAA0C,EAChE,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,mBAAmB,CAAC,CAyC9B;AAED;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,GAAG,EAC/C,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,EAC1C,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC,GAAG,CAAC,GAC1C,OAAO,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAYlC;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAClC,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,MAAM,CAAC,0CAA0C,EAC3D,WAAW,EAAE,2BAA2B,GACvC,OAAO,CAAC,MAAM,CAAC,CASjB"}
1
+ {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,2BAA2B,EAAuB,MAAM,SAAS,CAAC;AAGpH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,gBAAgB,CACpC,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,2BAA2B,EACjC,aAAa,EAAE,MAAM,CAAC,0CAA0C,EAChE,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,mBAAmB,CAAC,CA0C9B;AAED;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,GAAG,EAC/C,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,EAC1C,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC,GAAG,CAAC,GAC1C,OAAO,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAYlC;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAClC,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,MAAM,CAAC,0CAA0C,EAC3D,WAAW,EAAE,2BAA2B,GACvC,OAAO,CAAC,MAAM,CAAC,CASjB"}
@@ -62,19 +62,19 @@ function createTxMetadata(generalUtility, connection, payer, data, priorityLevel
62
62
  // Get the recent blockhash
63
63
  const { blockhash: recentBlockhash } = yield connection.getLatestBlockhash();
64
64
  // Create initial transaction instance
65
- const transaction = new Transaction_1.Transaction(data, new web3.PublicKey(payer), recentBlockhash, alts);
66
- // Simulate transaction to get consumed units
67
- const simulation = yield transaction.simulateTransaction(connection);
68
- // Check if there's error in transaction
69
- if (simulation.err !== null) {
70
- console.error(`Transaction Error: ${simulation.err}`);
71
- for (const log in simulation.logs) {
72
- console.error(log);
73
- }
74
- throw new Error(simulation.err.toString());
75
- }
76
- // Include priority fee instructions generated via Helius (assuming we use Helius as RPC)
77
- transaction.addPriorityFeeIx(generalUtility, connection, priorityLevel, simulation.unitsConsumed, maxPriorityFee);
65
+ const transaction = new Transaction_1.Transaction(data, new web3.PublicKey(payer), recentBlockhash, alts, generalUtility);
66
+ // // Simulate transaction to get consumed units
67
+ // const simulation = await transaction.simulateTransaction(connection);
68
+ // // Check if there's error in transaction
69
+ // if (simulation.err !== null) {
70
+ // console.log(`Transaction Error: ${simulation.err}`);
71
+ // for (const log of simulation.logs as string[]) {
72
+ // console.log(log);
73
+ // }
74
+ // // throw new Error(simulation.err.toString());
75
+ // }
76
+ // // Include priority fee instructions generated via Helius (assuming we use Helius as RPC)
77
+ // transaction.addPriorityFeeIx(connection, priorityLevel, simulation.unitsConsumed, maxPriorityFee);
78
78
  // Return transaction metadatauni
79
79
  return {
80
80
  description: data.description,
@@ -1,6 +1,7 @@
1
1
  import * as web3 from "@solana/web3.js";
2
2
  import BN from "bn.js";
3
3
  import { Transaction as TransactionClass } from "./classes/Transaction";
4
+ export { Transaction as TransactionClass } from "./classes/Transaction";
4
5
  export type AccountMeta = {
5
6
  isSigner: boolean;
6
7
  isWritable: boolean;
@@ -264,5 +265,4 @@ export type SimulatedTransactionResponse = {
264
265
  unitsConsumed: number;
265
266
  returnData?: web3.TransactionReturnData | null;
266
267
  };
267
- export {};
268
268
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,MAAM,OAAO,CAAC;AACvB,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAExE,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,WAAW,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,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2BAA2B,EAAE,MAAM,EAAE,CAAC;IACtC,yBAAyB,EAAE,WAAW,EAAE,CAAC;IACzC,gBAAgB,EAAE,WAAW,EAAE,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,gBAAgB,CAAC;CAC/B,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,GAAG,EAAE,IAAI,CAAC,gBAAgB,GAAG,MAAM,GAAG,IAAI,CAAC;IAC3C,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,+BAA+B,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC;IAClE,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC;CAChD,CAAC"}
package/dist/src/types.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Protocol = exports.Tags = void 0;
3
+ exports.Protocol = exports.Tags = exports.TransactionClass = void 0;
4
+ var Transaction_1 = require("./classes/Transaction");
5
+ Object.defineProperty(exports, "TransactionClass", { enumerable: true, get: function () { return Transaction_1.Transaction; } });
4
6
  var Tags;
5
7
  (function (Tags) {
6
8
  Tags["Stable"] = "stable";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawksightco/hawk-sdk",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",