@hawksightco/hawk-sdk 1.3.263 → 1.3.265
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/package.json +1 -1
- package/dist/src/addresses.d.ts +0 -37
- package/dist/src/addresses.d.ts.map +0 -1
- package/dist/src/addresses.js +0 -84
- package/dist/src/anchor.d.ts +0 -22
- package/dist/src/anchor.d.ts.map +0 -1
- package/dist/src/anchor.js +0 -121
- package/dist/src/classes/AltStorage.d.ts +0 -29
- package/dist/src/classes/AltStorage.d.ts.map +0 -1
- package/dist/src/classes/AltStorage.js +0 -58
- package/dist/src/classes/Atomicity.d.ts +0 -34
- package/dist/src/classes/Atomicity.d.ts.map +0 -1
- package/dist/src/classes/Atomicity.js +0 -110
- package/dist/src/classes/Client.d.ts +0 -35
- package/dist/src/classes/Client.d.ts.map +0 -1
- package/dist/src/classes/Client.js +0 -66
- package/dist/src/classes/CombineTransactions.d.ts +0 -11
- package/dist/src/classes/CombineTransactions.d.ts.map +0 -1
- package/dist/src/classes/CombineTransactions.js +0 -58
- package/dist/src/classes/CreateTxMetadata.d.ts +0 -100
- package/dist/src/classes/CreateTxMetadata.d.ts.map +0 -1
- package/dist/src/classes/CreateTxMetadata.js +0 -415
- package/dist/src/classes/General.d.ts +0 -87
- package/dist/src/classes/General.d.ts.map +0 -1
- package/dist/src/classes/General.js +0 -176
- package/dist/src/classes/GeneralUtility.d.ts +0 -79
- package/dist/src/classes/GeneralUtility.d.ts.map +0 -1
- package/dist/src/classes/GeneralUtility.js +0 -121
- package/dist/src/classes/HawkAPI.d.ts +0 -122
- package/dist/src/classes/HawkAPI.d.ts.map +0 -1
- package/dist/src/classes/HawkAPI.js +0 -169
- package/dist/src/classes/Health.d.ts +0 -29
- package/dist/src/classes/Health.d.ts.map +0 -1
- package/dist/src/classes/Health.js +0 -48
- package/dist/src/classes/JupiterAlts.d.ts +0 -37
- package/dist/src/classes/JupiterAlts.d.ts.map +0 -1
- package/dist/src/classes/JupiterAlts.js +0 -114
- package/dist/src/classes/JupiterSwap.d.ts +0 -21
- package/dist/src/classes/JupiterSwap.d.ts.map +0 -1
- package/dist/src/classes/JupiterSwap.js +0 -40
- package/dist/src/classes/Logging.d.ts +0 -13
- package/dist/src/classes/Logging.d.ts.map +0 -1
- package/dist/src/classes/Logging.js +0 -50
- package/dist/src/classes/MultiTransaction.d.ts +0 -75
- package/dist/src/classes/MultiTransaction.d.ts.map +0 -1
- package/dist/src/classes/MultiTransaction.js +0 -296
- package/dist/src/classes/RaydiumSDK.d.ts +0 -67
- package/dist/src/classes/RaydiumSDK.d.ts.map +0 -1
- package/dist/src/classes/RaydiumSDK.js +0 -206
- package/dist/src/classes/Search.d.ts +0 -100
- package/dist/src/classes/Search.d.ts.map +0 -1
- package/dist/src/classes/Search.js +0 -216
- package/dist/src/classes/SimpleIxGenerator.d.ts +0 -57
- package/dist/src/classes/SimpleIxGenerator.d.ts.map +0 -1
- package/dist/src/classes/SimpleIxGenerator.js +0 -62
- package/dist/src/classes/SimplePdaGenerator.d.ts +0 -28
- package/dist/src/classes/SimplePdaGenerator.d.ts.map +0 -1
- package/dist/src/classes/SimplePdaGenerator.js +0 -33
- package/dist/src/classes/Transaction.d.ts +0 -229
- package/dist/src/classes/Transaction.d.ts.map +0 -1
- package/dist/src/classes/Transaction.js +0 -643
- package/dist/src/classes/Transaction2.d.ts +0 -107
- package/dist/src/classes/Transaction2.d.ts.map +0 -1
- package/dist/src/classes/Transaction2.js +0 -249
- package/dist/src/classes/Transaction3.d.ts +0 -165
- package/dist/src/classes/Transaction3.d.ts.map +0 -1
- package/dist/src/classes/Transaction3.js +0 -416
- package/dist/src/classes/TransactionBatchExecute.d.ts +0 -163
- package/dist/src/classes/TransactionBatchExecute.d.ts.map +0 -1
- package/dist/src/classes/TransactionBatchExecute.js +0 -466
- package/dist/src/classes/TransactionBatchExecute2.d.ts +0 -99
- package/dist/src/classes/TransactionBatchExecute2.d.ts.map +0 -1
- package/dist/src/classes/TransactionBatchExecute2.js +0 -357
- package/dist/src/classes/Transactions.d.ts +0 -586
- package/dist/src/classes/Transactions.d.ts.map +0 -1
- package/dist/src/classes/Transactions.js +0 -7656
- package/dist/src/classes/TxGenerator.d.ts +0 -350
- package/dist/src/classes/TxGenerator.d.ts.map +0 -1
- package/dist/src/classes/TxGenerator.js +0 -1957
- package/dist/src/classes/TxGeneratorAutomations.d.ts +0 -186
- package/dist/src/classes/TxGeneratorAutomations.d.ts.map +0 -1
- package/dist/src/classes/TxGeneratorAutomations.js +0 -897
- package/dist/src/classes/Util.d.ts +0 -87
- package/dist/src/classes/Util.d.ts.map +0 -1
- package/dist/src/classes/Util.js +0 -148
- package/dist/src/classes/account-cache/AccountCache.d.ts +0 -54
- package/dist/src/classes/account-cache/AccountCache.d.ts.map +0 -1
- package/dist/src/classes/account-cache/AccountCache.js +0 -143
- package/dist/src/classes/account-cache/MintCache.d.ts +0 -33
- package/dist/src/classes/account-cache/MintCache.d.ts.map +0 -1
- package/dist/src/classes/account-cache/MintCache.js +0 -47
- package/dist/src/classes/account-cache/TokenCache.d.ts +0 -33
- package/dist/src/classes/account-cache/TokenCache.d.ts.map +0 -1
- package/dist/src/classes/account-cache/TokenCache.js +0 -47
- package/dist/src/errors.d.ts +0 -13
- package/dist/src/errors.d.ts.map +0 -1
- package/dist/src/errors.js +0 -96
- package/dist/src/functions.d.ts +0 -514
- package/dist/src/functions.d.ts.map +0 -1
- package/dist/src/functions.js +0 -1636
- package/dist/src/hawksight.d.ts +0 -53
- package/dist/src/hawksight.d.ts.map +0 -1
- package/dist/src/hawksight.js +0 -328
- package/dist/src/hsToMeteora.d.ts +0 -31
- package/dist/src/hsToMeteora.d.ts.map +0 -1
- package/dist/src/hsToMeteora.js +0 -3175
- package/dist/src/idl/iyf-extension-idl.d.ts +0 -14583
- package/dist/src/idl/iyf-extension-idl.d.ts.map +0 -1
- package/dist/src/idl/iyf-extension-idl.js +0 -14578
- package/dist/src/idl/iyf-extension-wrapper.d.ts +0 -112
- package/dist/src/idl/iyf-extension-wrapper.d.ts.map +0 -1
- package/dist/src/idl/iyf-extension-wrapper.js +0 -2
- package/dist/src/idl/iyf-main-idl.d.ts +0 -11329
- package/dist/src/idl/iyf-main-idl.d.ts.map +0 -1
- package/dist/src/idl/iyf-main-idl.js +0 -11324
- package/dist/src/idl/iyf-main-wrapper.d.ts +0 -112
- package/dist/src/idl/iyf-main-wrapper.d.ts.map +0 -1
- package/dist/src/idl/iyf-main-wrapper.js +0 -2
- package/dist/src/idl/jupiter-idl.d.ts +0 -3063
- package/dist/src/idl/jupiter-idl.d.ts.map +0 -1
- package/dist/src/idl/jupiter-idl.js +0 -3061
- package/dist/src/idl/meteora-idl.d.ts +0 -7371
- package/dist/src/idl/meteora-idl.d.ts.map +0 -1
- package/dist/src/idl/meteora-idl.js +0 -7372
- package/dist/src/idl/orca-idl.d.ts +0 -3833
- package/dist/src/idl/orca-idl.d.ts.map +0 -1
- package/dist/src/idl/orca-idl.js +0 -3834
- package/dist/src/idl/raydium-idl.d.ts +0 -3054
- package/dist/src/idl/raydium-idl.d.ts.map +0 -1
- package/dist/src/idl/raydium-idl.js +0 -3055
- package/dist/src/index.d.ts +0 -9
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -31
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts +0 -126
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts.map +0 -1
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.js +0 -467
- package/dist/src/ixGenerator/IyfMainIxGenerator.d.ts +0 -330
- package/dist/src/ixGenerator/IyfMainIxGenerator.d.ts.map +0 -1
- package/dist/src/ixGenerator/IyfMainIxGenerator.js +0 -1239
- package/dist/src/ixGenerator/MeteoraDlmmIxGenerator.d.ts +0 -685
- package/dist/src/ixGenerator/MeteoraDlmmIxGenerator.d.ts.map +0 -1
- package/dist/src/ixGenerator/MeteoraDlmmIxGenerator.js +0 -3005
- package/dist/src/ixGenerator/OrcaIxGenerator.d.ts +0 -119
- package/dist/src/ixGenerator/OrcaIxGenerator.d.ts.map +0 -1
- package/dist/src/ixGenerator/OrcaIxGenerator.js +0 -438
- package/dist/src/ixGenerator/RaydiumIxGenerator.d.ts +0 -99
- package/dist/src/ixGenerator/RaydiumIxGenerator.d.ts.map +0 -1
- package/dist/src/ixGenerator/RaydiumIxGenerator.js +0 -558
- package/dist/src/ixGenerator/UtilIxGenerator.d.ts +0 -20
- package/dist/src/ixGenerator/UtilIxGenerator.d.ts.map +0 -1
- package/dist/src/ixGenerator/UtilIxGenerator.js +0 -25
- package/dist/src/meteora/index.d.ts +0 -2
- package/dist/src/meteora/index.d.ts.map +0 -1
- package/dist/src/meteora/index.js +0 -17
- package/dist/src/meteora/liquidityStrategy.d.ts +0 -408
- package/dist/src/meteora/liquidityStrategy.d.ts.map +0 -1
- package/dist/src/meteora/liquidityStrategy.js +0 -1325
- package/dist/src/meteora.d.ts +0 -669
- package/dist/src/meteora.d.ts.map +0 -1
- package/dist/src/meteora.js +0 -1932
- package/dist/src/orca.d.ts +0 -57
- package/dist/src/orca.d.ts.map +0 -1
- package/dist/src/orca.js +0 -123
- package/dist/src/pdaGenerator/HawksightPdaGenerator.d.ts +0 -29
- package/dist/src/pdaGenerator/HawksightPdaGenerator.d.ts.map +0 -1
- package/dist/src/pdaGenerator/HawksightPdaGenerator.js +0 -75
- package/dist/src/pdaGenerator/MeteoraPdaGenerator.d.ts +0 -76
- package/dist/src/pdaGenerator/MeteoraPdaGenerator.d.ts.map +0 -1
- package/dist/src/pdaGenerator/MeteoraPdaGenerator.js +0 -166
- package/dist/src/pdaGenerator/OrcaPdaGenerator.d.ts +0 -23
- package/dist/src/pdaGenerator/OrcaPdaGenerator.d.ts.map +0 -1
- package/dist/src/pdaGenerator/OrcaPdaGenerator.js +0 -68
- package/dist/src/pdaGenerator/RaydiumPdaGenerator.d.ts +0 -49
- package/dist/src/pdaGenerator/RaydiumPdaGenerator.d.ts.map +0 -1
- package/dist/src/pdaGenerator/RaydiumPdaGenerator.js +0 -114
- package/dist/src/pdaGenerator/UtilPdaGenerator.d.ts +0 -8
- package/dist/src/pdaGenerator/UtilPdaGenerator.d.ts.map +0 -1
- package/dist/src/pdaGenerator/UtilPdaGenerator.js +0 -51
- package/dist/src/types.d.ts +0 -1100
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js +0 -95
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import * as web3 from '@solana/web3.js';
|
|
2
|
-
import * as _client from '@hawksightco/swagger-client';
|
|
3
|
-
import { MeteoraClose, MeteoraCompound, MeteoraRedeposit, MeteoraRedeposit2, MeteoraLimitCloseAutomation, MeteoraLimitCloseAutomation2, MeteoraLimitCloseV2Automation, MeteoraRebalance2, OpenAutomationIx, RelativeOpenAutomationIx, ResponseWithStatus, TransactionMetadata, TransactionMetadataWithActions, MeteoraRebalanceForLargerPosition, MeteoraRebalanceHybridLiquidity, MeteoraRedepositHybridLiquidity } from '../types';
|
|
4
|
-
import { Client } from './Client';
|
|
5
|
-
import { GeneralUtility } from './GeneralUtility';
|
|
6
|
-
/**
|
|
7
|
-
* The `TxGeneratorAutomations` class encapsulates methods to generate transactions with various trading operations
|
|
8
|
-
* on decentralized market making platforms like Meteora and Orca within the Solana ecosystem. It allows
|
|
9
|
-
* setting custom transaction priority and fees to manage transaction processing speed and cost.
|
|
10
|
-
*
|
|
11
|
-
* NOTE: For hawksight devs only.
|
|
12
|
-
*/
|
|
13
|
-
export declare class TxGeneratorAutomations {
|
|
14
|
-
private readonly client;
|
|
15
|
-
private readonly generalUtility;
|
|
16
|
-
/**
|
|
17
|
-
* The current priority level of transactions generated by this instance.
|
|
18
|
-
*/
|
|
19
|
-
protected priorityLevel: _client.PriorityLevel;
|
|
20
|
-
/**
|
|
21
|
-
* The maximum priority fee in lamports that can be added to transactions for faster processing.
|
|
22
|
-
*/
|
|
23
|
-
protected maxPriorityFee: number;
|
|
24
|
-
/**
|
|
25
|
-
* Initializes a new instance of the TxGenerator class with a specified client.
|
|
26
|
-
*
|
|
27
|
-
* @param client An instance of Client used to interact with various APIs for transaction generation.
|
|
28
|
-
*/
|
|
29
|
-
constructor(client: Client, generalUtility: GeneralUtility);
|
|
30
|
-
/**
|
|
31
|
-
* Creates meteora auto-compound instruction (claim fee, reward, and deposit to position)
|
|
32
|
-
*
|
|
33
|
-
* NOTE: For hawksight devs only.
|
|
34
|
-
*
|
|
35
|
-
* @param connection The Solana web3 connection object for blockchain interactions.
|
|
36
|
-
* @param payer The public key of the payer for transaction fees.
|
|
37
|
-
* @param params Parameters required
|
|
38
|
-
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
|
|
39
|
-
*/
|
|
40
|
-
meteoraCompoundIxs(connection: web3.Connection, payer: string, params: MeteoraCompound): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
41
|
-
/**
|
|
42
|
-
* Compound (claim + re-deposit) fees and rewards from a large Meteora DLMM position (up to 1400 bins).
|
|
43
|
-
*
|
|
44
|
-
* For ≤149 bins, delegates to single-TX compoundAutomationIx.
|
|
45
|
-
* For ≥150 bins, chunks claim and re-deposit into multiple TXs.
|
|
46
|
-
*
|
|
47
|
-
* NOTE: For hawksight devs only.
|
|
48
|
-
*
|
|
49
|
-
* @param connection The Solana web3 connection object for blockchain interactions.
|
|
50
|
-
* @param payer The public key of the payer for transaction fees.
|
|
51
|
-
* @param params Parameters required
|
|
52
|
-
* @returns A ResponseWithStatus containing an array of TransactionMetadataWithActions.
|
|
53
|
-
*/
|
|
54
|
-
meteoraCompoundFromLargePositionIxs(connection: web3.Connection, payer: string, params: MeteoraCompound): Promise<ResponseWithStatus<TransactionMetadataWithActions[]>>;
|
|
55
|
-
/**
|
|
56
|
-
* Creates meteora redeposit instruction (withdraw liquidity, claim fees, and deposit back to same position)
|
|
57
|
-
*
|
|
58
|
-
* NOTE: For hawksight devs only.
|
|
59
|
-
*
|
|
60
|
-
* @param connection The Solana web3 connection object for blockchain interactions.
|
|
61
|
-
* @param payer The public key of the payer for transaction fees.
|
|
62
|
-
* @param params Parameters required (position, distribution, useAta for fee destination)
|
|
63
|
-
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
|
|
64
|
-
*/
|
|
65
|
-
meteoraRedepositIxs(connection: web3.Connection, payer: string, params: MeteoraRedeposit): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
66
|
-
meteoraRedepositIxs2(connection: web3.Connection, payer: string, params: MeteoraRedeposit2): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
67
|
-
/**
|
|
68
|
-
* Creates meteora auto-claim instruction (claim fee, reward)
|
|
69
|
-
*
|
|
70
|
-
* @deprecated Use meteoraClaimFromLargePositionIxs instead
|
|
71
|
-
*
|
|
72
|
-
* NOTE: For hawksight devs only.
|
|
73
|
-
*
|
|
74
|
-
* @param connection The Solana web3 connection object for blockchain interactions.
|
|
75
|
-
* @param payer The public key of the payer for transaction fees.
|
|
76
|
-
* @param params Parameters required
|
|
77
|
-
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
|
|
78
|
-
*/
|
|
79
|
-
meteoraClaimIxs(connection: web3.Connection, payer: string, params: MeteoraCompound): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
80
|
-
/**
|
|
81
|
-
* Claims fees and rewards from a large Meteora DLMM position (up to 1400 bins).
|
|
82
|
-
*
|
|
83
|
-
* For ≤149 bins, delegates to single-TX claimAutomationIx.
|
|
84
|
-
* For ≥150 bins, chunks the bin range into ≤149-bin pieces, returning multiple TXs.
|
|
85
|
-
*
|
|
86
|
-
* NOTE: For hawksight devs only.
|
|
87
|
-
*
|
|
88
|
-
* @param connection The Solana web3 connection object for blockchain interactions.
|
|
89
|
-
* @param payer The public key of the payer for transaction fees.
|
|
90
|
-
* @param params Parameters required
|
|
91
|
-
* @returns A ResponseWithStatus containing an array of TransactionMetadata.
|
|
92
|
-
*/
|
|
93
|
-
meteoraClaimFromLargePositionIxs(connection: web3.Connection, payer: string, params: MeteoraCompound): Promise<ResponseWithStatus<TransactionMetadata[]>>;
|
|
94
|
-
/**
|
|
95
|
-
* Creates meteora auto-rebalance instruction (uses new re-deposit instruction)
|
|
96
|
-
*
|
|
97
|
-
* @deprecated Use meteoraRebalanceLargePositionAutomation instead
|
|
98
|
-
*
|
|
99
|
-
* NOTE: For hawksight devs only.
|
|
100
|
-
*
|
|
101
|
-
* @param connection The Solana web3 connection object for blockchain interactions.
|
|
102
|
-
* @param payer The public key of the payer for transaction fees.
|
|
103
|
-
* @param params Parameters required
|
|
104
|
-
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
|
|
105
|
-
*/
|
|
106
|
-
meteoraRebalanceIxs2(connection: web3.Connection, payer: string, params: MeteoraRebalance2): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
107
|
-
meteoraRedepositForLargePositionIxs(connection: web3.Connection, payer: string, params: MeteoraRedeposit): Promise<ResponseWithStatus<TransactionMetadata[]>>;
|
|
108
|
-
/**
|
|
109
|
-
* Rebalances a large Meteora DLMM position (up to 1400 bins) using automation instructions.
|
|
110
|
-
*
|
|
111
|
-
* For ≤70 bins, delegates to meteoraRebalanceSmallerPositionAutomation.
|
|
112
|
-
* For ≥150 bins, uses a chunked multi-TX approach (withdraw, init, deposit).
|
|
113
|
-
*
|
|
114
|
-
* NOTE: For hawksight devs only.
|
|
115
|
-
*
|
|
116
|
-
* @param connection The Solana web3 connection object for blockchain interactions.
|
|
117
|
-
* @param payer The public key of the payer for transaction fees.
|
|
118
|
-
* @param params Parameters required
|
|
119
|
-
* @returns A ResponseWithStatus containing an array of TransactionMetadata.
|
|
120
|
-
*/
|
|
121
|
-
meteoraRebalanceLargePositionAutomation(connection: web3.Connection, payer: string, params: MeteoraRebalanceForLargerPosition): Promise<ResponseWithStatus<TransactionMetadata[]>>;
|
|
122
|
-
/**
|
|
123
|
-
* Creates meteora close limit instruction (combination of claim fees/rewards + remove liquidity + close position)
|
|
124
|
-
*
|
|
125
|
-
* NOTE: For hawksight devs only.
|
|
126
|
-
*
|
|
127
|
-
* @param connection The Solana web3 connection object for blockchain interactions.
|
|
128
|
-
* @param payer The public key of the payer for transaction fees.
|
|
129
|
-
* @param params Parameters required
|
|
130
|
-
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
|
|
131
|
-
*/
|
|
132
|
-
meteoraLimitCloseIxs(connection: web3.Connection, payer: string, params: MeteoraLimitCloseAutomation): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
133
|
-
/**
|
|
134
|
-
* Creates meteora close limit instruction (combination of claim fees/rewards + remove liquidity + close position)
|
|
135
|
-
*
|
|
136
|
-
* NOTE: For hawksight devs only.
|
|
137
|
-
*
|
|
138
|
-
* @param connection The Solana web3 connection object for blockchain interactions.
|
|
139
|
-
* @param payer The public key of the payer for transaction fees.
|
|
140
|
-
* @param params Parameters required
|
|
141
|
-
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
|
|
142
|
-
*/
|
|
143
|
-
meteoraLimitCloseIxs2(connection: web3.Connection, payer: string, params: MeteoraLimitCloseAutomation2): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
144
|
-
meteoraLimitCloseIxsV2(connection: web3.Connection, payer: string, params: MeteoraLimitCloseV2Automation): Promise<ResponseWithStatus<TransactionMetadataWithActions[]>>;
|
|
145
|
-
/**
|
|
146
|
-
* Creates meteora close instruction (combination of claim fees/rewards + remove liquidity + close position)
|
|
147
|
-
*
|
|
148
|
-
* NOTE: For hawksight devs only.
|
|
149
|
-
*
|
|
150
|
-
* @param connection The Solana web3 connection object for blockchain interactions.
|
|
151
|
-
* @param payer The public key of the payer for transaction fees.
|
|
152
|
-
* @param params Parameters required
|
|
153
|
-
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
|
|
154
|
-
*/
|
|
155
|
-
meteoraCloseIxs(connection: web3.Connection, payer: string, params: MeteoraClose): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
156
|
-
/**
|
|
157
|
-
* Creates meteora open instruction (open position)
|
|
158
|
-
*
|
|
159
|
-
* NOTE: For hawksight devs only.
|
|
160
|
-
*
|
|
161
|
-
* @param connection The Solana web3 connection object for blockchain interactions.
|
|
162
|
-
* @param payer The public key of the payer for transaction fees.
|
|
163
|
-
* @param params Parameters required
|
|
164
|
-
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
|
|
165
|
-
*/
|
|
166
|
-
meteoraOpenIxs(connection: web3.Connection, payer: string, params: OpenAutomationIx): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
167
|
-
/**
|
|
168
|
-
* Creates transaction metadata for a large Meteora relative-position open.
|
|
169
|
-
*
|
|
170
|
-
* This route splits the open into one or more init/extend transactions followed
|
|
171
|
-
* by a deposit transaction so callers can execute positions wider than the
|
|
172
|
-
* init-only relative-open limit.
|
|
173
|
-
*
|
|
174
|
-
* NOTE: For hawksight devs only.
|
|
175
|
-
*
|
|
176
|
-
* @param connection The Solana web3 connection used to fetch pool and token state and build instructions.
|
|
177
|
-
* @param payer The public key string that pays transaction fees for the generated metadata.
|
|
178
|
-
* @param params Relative open automation parameters, including position, pool, relative bin range, check range, distribution, and optional token amounts.
|
|
179
|
-
* @returns A ResponseWithStatus whose successful data is an ordered TransactionMetadataWithActions array for init/extend and add-liquidity transactions; failures return status 400 with a custom error payload.
|
|
180
|
-
*/
|
|
181
|
-
meteoraRelativeOpenLargePositionIxs(connection: web3.Connection, payer: string, params: RelativeOpenAutomationIx): Promise<ResponseWithStatus<TransactionMetadataWithActions[]>>;
|
|
182
|
-
meteoraRelativeOpenIxs(connection: web3.Connection, payer: string, params: RelativeOpenAutomationIx): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
183
|
-
meteoraRebalanceHybridLiquidityIxsV2(connection: web3.Connection, payer: string, params: MeteoraRebalanceHybridLiquidity): Promise<ResponseWithStatus<TransactionMetadataWithActions[]>>;
|
|
184
|
-
meteoraRedepositHybridLiquidityIxsV2(connection: web3.Connection, payer: string, params: MeteoraRedepositHybridLiquidity): Promise<ResponseWithStatus<TransactionMetadataWithActions[]>>;
|
|
185
|
-
}
|
|
186
|
-
//# sourceMappingURL=TxGeneratorAutomations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,EACL,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC7B,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,8BAA8B,EAC9B,iCAAiC,EACjC,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD;;;;;;GAMG;AACH,qBAAa,sBAAsB;IAiB/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,kBAAkB,CACtB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,eAAe,GACtB,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IAiCnD;;;;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