@hawksightco/hawk-sdk 1.3.264 → 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.
Files changed (181) hide show
  1. package/package.json +1 -1
  2. package/dist/src/addresses.d.ts +0 -37
  3. package/dist/src/addresses.d.ts.map +0 -1
  4. package/dist/src/addresses.js +0 -84
  5. package/dist/src/anchor.d.ts +0 -22
  6. package/dist/src/anchor.d.ts.map +0 -1
  7. package/dist/src/anchor.js +0 -121
  8. package/dist/src/classes/AltStorage.d.ts +0 -29
  9. package/dist/src/classes/AltStorage.d.ts.map +0 -1
  10. package/dist/src/classes/AltStorage.js +0 -58
  11. package/dist/src/classes/Atomicity.d.ts +0 -34
  12. package/dist/src/classes/Atomicity.d.ts.map +0 -1
  13. package/dist/src/classes/Atomicity.js +0 -110
  14. package/dist/src/classes/Client.d.ts +0 -35
  15. package/dist/src/classes/Client.d.ts.map +0 -1
  16. package/dist/src/classes/Client.js +0 -66
  17. package/dist/src/classes/CombineTransactions.d.ts +0 -11
  18. package/dist/src/classes/CombineTransactions.d.ts.map +0 -1
  19. package/dist/src/classes/CombineTransactions.js +0 -58
  20. package/dist/src/classes/CreateTxMetadata.d.ts +0 -100
  21. package/dist/src/classes/CreateTxMetadata.d.ts.map +0 -1
  22. package/dist/src/classes/CreateTxMetadata.js +0 -415
  23. package/dist/src/classes/General.d.ts +0 -87
  24. package/dist/src/classes/General.d.ts.map +0 -1
  25. package/dist/src/classes/General.js +0 -176
  26. package/dist/src/classes/GeneralUtility.d.ts +0 -79
  27. package/dist/src/classes/GeneralUtility.d.ts.map +0 -1
  28. package/dist/src/classes/GeneralUtility.js +0 -121
  29. package/dist/src/classes/HawkAPI.d.ts +0 -122
  30. package/dist/src/classes/HawkAPI.d.ts.map +0 -1
  31. package/dist/src/classes/HawkAPI.js +0 -169
  32. package/dist/src/classes/Health.d.ts +0 -29
  33. package/dist/src/classes/Health.d.ts.map +0 -1
  34. package/dist/src/classes/Health.js +0 -48
  35. package/dist/src/classes/JupiterAlts.d.ts +0 -37
  36. package/dist/src/classes/JupiterAlts.d.ts.map +0 -1
  37. package/dist/src/classes/JupiterAlts.js +0 -114
  38. package/dist/src/classes/JupiterSwap.d.ts +0 -21
  39. package/dist/src/classes/JupiterSwap.d.ts.map +0 -1
  40. package/dist/src/classes/JupiterSwap.js +0 -40
  41. package/dist/src/classes/Logging.d.ts +0 -13
  42. package/dist/src/classes/Logging.d.ts.map +0 -1
  43. package/dist/src/classes/Logging.js +0 -50
  44. package/dist/src/classes/MultiTransaction.d.ts +0 -75
  45. package/dist/src/classes/MultiTransaction.d.ts.map +0 -1
  46. package/dist/src/classes/MultiTransaction.js +0 -296
  47. package/dist/src/classes/RaydiumSDK.d.ts +0 -67
  48. package/dist/src/classes/RaydiumSDK.d.ts.map +0 -1
  49. package/dist/src/classes/RaydiumSDK.js +0 -206
  50. package/dist/src/classes/Search.d.ts +0 -100
  51. package/dist/src/classes/Search.d.ts.map +0 -1
  52. package/dist/src/classes/Search.js +0 -216
  53. package/dist/src/classes/SimpleIxGenerator.d.ts +0 -57
  54. package/dist/src/classes/SimpleIxGenerator.d.ts.map +0 -1
  55. package/dist/src/classes/SimpleIxGenerator.js +0 -62
  56. package/dist/src/classes/SimplePdaGenerator.d.ts +0 -28
  57. package/dist/src/classes/SimplePdaGenerator.d.ts.map +0 -1
  58. package/dist/src/classes/SimplePdaGenerator.js +0 -33
  59. package/dist/src/classes/Transaction.d.ts +0 -229
  60. package/dist/src/classes/Transaction.d.ts.map +0 -1
  61. package/dist/src/classes/Transaction.js +0 -643
  62. package/dist/src/classes/Transaction2.d.ts +0 -107
  63. package/dist/src/classes/Transaction2.d.ts.map +0 -1
  64. package/dist/src/classes/Transaction2.js +0 -249
  65. package/dist/src/classes/Transaction3.d.ts +0 -165
  66. package/dist/src/classes/Transaction3.d.ts.map +0 -1
  67. package/dist/src/classes/Transaction3.js +0 -416
  68. package/dist/src/classes/TransactionBatchExecute.d.ts +0 -163
  69. package/dist/src/classes/TransactionBatchExecute.d.ts.map +0 -1
  70. package/dist/src/classes/TransactionBatchExecute.js +0 -466
  71. package/dist/src/classes/TransactionBatchExecute2.d.ts +0 -99
  72. package/dist/src/classes/TransactionBatchExecute2.d.ts.map +0 -1
  73. package/dist/src/classes/TransactionBatchExecute2.js +0 -357
  74. package/dist/src/classes/Transactions.d.ts +0 -586
  75. package/dist/src/classes/Transactions.d.ts.map +0 -1
  76. package/dist/src/classes/Transactions.js +0 -7658
  77. package/dist/src/classes/TxGenerator.d.ts +0 -350
  78. package/dist/src/classes/TxGenerator.d.ts.map +0 -1
  79. package/dist/src/classes/TxGenerator.js +0 -1957
  80. package/dist/src/classes/TxGeneratorAutomations.d.ts +0 -186
  81. package/dist/src/classes/TxGeneratorAutomations.d.ts.map +0 -1
  82. package/dist/src/classes/TxGeneratorAutomations.js +0 -897
  83. package/dist/src/classes/Util.d.ts +0 -87
  84. package/dist/src/classes/Util.d.ts.map +0 -1
  85. package/dist/src/classes/Util.js +0 -148
  86. package/dist/src/classes/account-cache/AccountCache.d.ts +0 -54
  87. package/dist/src/classes/account-cache/AccountCache.d.ts.map +0 -1
  88. package/dist/src/classes/account-cache/AccountCache.js +0 -143
  89. package/dist/src/classes/account-cache/MintCache.d.ts +0 -33
  90. package/dist/src/classes/account-cache/MintCache.d.ts.map +0 -1
  91. package/dist/src/classes/account-cache/MintCache.js +0 -47
  92. package/dist/src/classes/account-cache/TokenCache.d.ts +0 -33
  93. package/dist/src/classes/account-cache/TokenCache.d.ts.map +0 -1
  94. package/dist/src/classes/account-cache/TokenCache.js +0 -47
  95. package/dist/src/errors.d.ts +0 -13
  96. package/dist/src/errors.d.ts.map +0 -1
  97. package/dist/src/errors.js +0 -96
  98. package/dist/src/functions.d.ts +0 -514
  99. package/dist/src/functions.d.ts.map +0 -1
  100. package/dist/src/functions.js +0 -1636
  101. package/dist/src/hawksight.d.ts +0 -53
  102. package/dist/src/hawksight.d.ts.map +0 -1
  103. package/dist/src/hawksight.js +0 -328
  104. package/dist/src/hsToMeteora.d.ts +0 -31
  105. package/dist/src/hsToMeteora.d.ts.map +0 -1
  106. package/dist/src/hsToMeteora.js +0 -3175
  107. package/dist/src/idl/iyf-extension-idl.d.ts +0 -14583
  108. package/dist/src/idl/iyf-extension-idl.d.ts.map +0 -1
  109. package/dist/src/idl/iyf-extension-idl.js +0 -14578
  110. package/dist/src/idl/iyf-extension-wrapper.d.ts +0 -112
  111. package/dist/src/idl/iyf-extension-wrapper.d.ts.map +0 -1
  112. package/dist/src/idl/iyf-extension-wrapper.js +0 -2
  113. package/dist/src/idl/iyf-main-idl.d.ts +0 -11329
  114. package/dist/src/idl/iyf-main-idl.d.ts.map +0 -1
  115. package/dist/src/idl/iyf-main-idl.js +0 -11324
  116. package/dist/src/idl/iyf-main-wrapper.d.ts +0 -112
  117. package/dist/src/idl/iyf-main-wrapper.d.ts.map +0 -1
  118. package/dist/src/idl/iyf-main-wrapper.js +0 -2
  119. package/dist/src/idl/jupiter-idl.d.ts +0 -3063
  120. package/dist/src/idl/jupiter-idl.d.ts.map +0 -1
  121. package/dist/src/idl/jupiter-idl.js +0 -3061
  122. package/dist/src/idl/meteora-idl.d.ts +0 -7371
  123. package/dist/src/idl/meteora-idl.d.ts.map +0 -1
  124. package/dist/src/idl/meteora-idl.js +0 -7372
  125. package/dist/src/idl/orca-idl.d.ts +0 -3833
  126. package/dist/src/idl/orca-idl.d.ts.map +0 -1
  127. package/dist/src/idl/orca-idl.js +0 -3834
  128. package/dist/src/idl/raydium-idl.d.ts +0 -3054
  129. package/dist/src/idl/raydium-idl.d.ts.map +0 -1
  130. package/dist/src/idl/raydium-idl.js +0 -3055
  131. package/dist/src/index.d.ts +0 -9
  132. package/dist/src/index.d.ts.map +0 -1
  133. package/dist/src/index.js +0 -31
  134. package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts +0 -126
  135. package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts.map +0 -1
  136. package/dist/src/ixGenerator/IyfExtensionIxGenerator.js +0 -467
  137. package/dist/src/ixGenerator/IyfMainIxGenerator.d.ts +0 -330
  138. package/dist/src/ixGenerator/IyfMainIxGenerator.d.ts.map +0 -1
  139. package/dist/src/ixGenerator/IyfMainIxGenerator.js +0 -1239
  140. package/dist/src/ixGenerator/MeteoraDlmmIxGenerator.d.ts +0 -685
  141. package/dist/src/ixGenerator/MeteoraDlmmIxGenerator.d.ts.map +0 -1
  142. package/dist/src/ixGenerator/MeteoraDlmmIxGenerator.js +0 -3005
  143. package/dist/src/ixGenerator/OrcaIxGenerator.d.ts +0 -119
  144. package/dist/src/ixGenerator/OrcaIxGenerator.d.ts.map +0 -1
  145. package/dist/src/ixGenerator/OrcaIxGenerator.js +0 -438
  146. package/dist/src/ixGenerator/RaydiumIxGenerator.d.ts +0 -99
  147. package/dist/src/ixGenerator/RaydiumIxGenerator.d.ts.map +0 -1
  148. package/dist/src/ixGenerator/RaydiumIxGenerator.js +0 -558
  149. package/dist/src/ixGenerator/UtilIxGenerator.d.ts +0 -20
  150. package/dist/src/ixGenerator/UtilIxGenerator.d.ts.map +0 -1
  151. package/dist/src/ixGenerator/UtilIxGenerator.js +0 -25
  152. package/dist/src/meteora/index.d.ts +0 -2
  153. package/dist/src/meteora/index.d.ts.map +0 -1
  154. package/dist/src/meteora/index.js +0 -17
  155. package/dist/src/meteora/liquidityStrategy.d.ts +0 -408
  156. package/dist/src/meteora/liquidityStrategy.d.ts.map +0 -1
  157. package/dist/src/meteora/liquidityStrategy.js +0 -1325
  158. package/dist/src/meteora.d.ts +0 -669
  159. package/dist/src/meteora.d.ts.map +0 -1
  160. package/dist/src/meteora.js +0 -1932
  161. package/dist/src/orca.d.ts +0 -57
  162. package/dist/src/orca.d.ts.map +0 -1
  163. package/dist/src/orca.js +0 -123
  164. package/dist/src/pdaGenerator/HawksightPdaGenerator.d.ts +0 -29
  165. package/dist/src/pdaGenerator/HawksightPdaGenerator.d.ts.map +0 -1
  166. package/dist/src/pdaGenerator/HawksightPdaGenerator.js +0 -75
  167. package/dist/src/pdaGenerator/MeteoraPdaGenerator.d.ts +0 -76
  168. package/dist/src/pdaGenerator/MeteoraPdaGenerator.d.ts.map +0 -1
  169. package/dist/src/pdaGenerator/MeteoraPdaGenerator.js +0 -166
  170. package/dist/src/pdaGenerator/OrcaPdaGenerator.d.ts +0 -23
  171. package/dist/src/pdaGenerator/OrcaPdaGenerator.d.ts.map +0 -1
  172. package/dist/src/pdaGenerator/OrcaPdaGenerator.js +0 -68
  173. package/dist/src/pdaGenerator/RaydiumPdaGenerator.d.ts +0 -49
  174. package/dist/src/pdaGenerator/RaydiumPdaGenerator.d.ts.map +0 -1
  175. package/dist/src/pdaGenerator/RaydiumPdaGenerator.js +0 -114
  176. package/dist/src/pdaGenerator/UtilPdaGenerator.d.ts +0 -8
  177. package/dist/src/pdaGenerator/UtilPdaGenerator.d.ts.map +0 -1
  178. package/dist/src/pdaGenerator/UtilPdaGenerator.js +0 -51
  179. package/dist/src/types.d.ts +0 -1100
  180. package/dist/src/types.d.ts.map +0 -1
  181. package/dist/src/types.js +0 -95
@@ -1,1100 +0,0 @@
1
- import * as web3 from '@solana/web3.js';
2
- import BN from 'bn.js';
3
- import { Transaction as TransactionClass } from './classes/Transaction';
4
- export { Transaction as TransactionClass } from './classes/Transaction';
5
- import { StrategyType as MeteoraStrategyType } from '@meteora-ag/dlmm';
6
- export type AccountMeta = {
7
- isSigner: boolean;
8
- isWritable: boolean;
9
- pubkey: string;
10
- };
11
- export type TransactionInstruction = {
12
- programId: string;
13
- keys: AccountMeta[];
14
- data: string;
15
- };
16
- export type Transaction = TransactionInstruction[];
17
- export type Web3Transaction = web3.TransactionInstruction[];
18
- export type BinRange = {
19
- lowerRange: number;
20
- upperRange: number;
21
- };
22
- /**
23
- * RemainingAccountsType enum for Meteora DLMM transfer hook accounts
24
- */
25
- export declare enum RemainingAccountsType {
26
- TransferHookX = 0,// Transfer hook accounts for token X
27
- TransferHookY = 1,// Transfer hook accounts for token Y
28
- TransferHookReward = 2,// Transfer hook accounts for reward token
29
- TransferHookMultiReward = 3
30
- }
31
- /**
32
- * RemainingAccountsSlice describes a slice of transfer hook accounts
33
- */
34
- export type RemainingAccountsSlice = {
35
- accountsType: RemainingAccountsType;
36
- length: number;
37
- multiRewardIndex?: number;
38
- };
39
- /**
40
- * RemainingAccountsInfo contains slices describing transfer hook accounts
41
- * and the actual account metas to include as remaining accounts
42
- */
43
- export type RemainingAccountsInfo = {
44
- slices: RemainingAccountsSlice[];
45
- accounts: web3.AccountMeta[];
46
- };
47
- export type Distribution = 'SPOT' | 'CURVE' | 'BID-ASK' | 'SPOT-IMBALANCED' | 'CURVE-IMBALANCED' | 'BID-ASK-IMBALANCED' | 'SPOT-ONE-SIDE' | 'CURVE-ONE-SIDE' | 'BID-ASK-ONE-SIDE';
48
- export type MeteoraTokenMetrics = {
49
- address: string;
50
- name: string;
51
- symbol: string;
52
- decimals: number;
53
- is_verified: boolean;
54
- holders: number;
55
- freeze_authority_disabled: boolean;
56
- total_supply: number;
57
- price: number;
58
- market_cap: number;
59
- };
60
- export type MeteoraTimeWindowData = {
61
- '30m': number;
62
- '1h': number;
63
- '2h': number;
64
- '4h': number;
65
- '12h': number;
66
- '24h': number;
67
- };
68
- export type MeteoraPoolApiConfig = {
69
- bin_step: number;
70
- base_fee_pct: number;
71
- max_fee_pct: number;
72
- protocol_fee_pct: number;
73
- };
74
- export type MeteoraCumulativeMetrics = {
75
- volume: number;
76
- trade_fee: number;
77
- protocol_fee: number;
78
- };
79
- export type MeteoraPoolInfo = {
80
- address: string;
81
- name: string;
82
- token_x: MeteoraTokenMetrics;
83
- token_y: MeteoraTokenMetrics;
84
- reserve_x: string;
85
- reserve_y: string;
86
- token_x_amount: number;
87
- token_y_amount: number;
88
- created_at: number;
89
- reward_mint_x: string;
90
- reward_mint_y: string;
91
- pool_config: MeteoraPoolApiConfig;
92
- dynamic_fee_pct: number;
93
- tvl: number;
94
- current_price: number;
95
- apr: number;
96
- apy: number;
97
- has_farm: boolean;
98
- farm_apr: number;
99
- farm_apy: number;
100
- volume: MeteoraTimeWindowData;
101
- fees: MeteoraTimeWindowData;
102
- protocol_fees: MeteoraTimeWindowData;
103
- fee_tvl_ratio: MeteoraTimeWindowData;
104
- cumulative_metrics: MeteoraCumulativeMetrics;
105
- is_blacklisted: boolean;
106
- tags: string[];
107
- launchpad: string | null;
108
- };
109
- export declare enum Tags {
110
- Memecoin = "memecoin",
111
- Ecosystem = "ecosystem",
112
- Bluechip = "bluechip",
113
- Stablecoin = "stablecoin",
114
- SOL = "sol"
115
- }
116
- export declare enum Protocol {
117
- Saber = "saber",
118
- Orca = "orca",
119
- Meteora = "meteora",
120
- Raydium = "raydium"
121
- }
122
- interface BasePool {
123
- id: string;
124
- name: string;
125
- url: string;
126
- tags: Tags[];
127
- hidden: boolean;
128
- }
129
- export type Pool = (BasePool & {
130
- protocol: Protocol.Saber;
131
- config: SaberPoolConfig;
132
- }) | (BasePool & {
133
- protocol: Protocol.Orca;
134
- config: OrcaPoolConfig;
135
- }) | (BasePool & {
136
- protocol: Protocol.Meteora;
137
- config: MeteoraPoolConfig;
138
- });
139
- export type SaberPoolConfig = {
140
- address: web3.PublicKey;
141
- srcMint: web3.PublicKey;
142
- dstMint: web3.PublicKey;
143
- lpMint: web3.PublicKey;
144
- tokenMint: web3.PublicKey;
145
- rewardMint: web3.PublicKey;
146
- saberSwap: web3.PublicKey;
147
- saberAuthority: web3.PublicKey;
148
- saberSwapTokenAccountA: web3.PublicKey;
149
- saberSwapTokenAccountB: web3.PublicKey;
150
- saberSwapAdminFeeAccountA: web3.PublicKey;
151
- saberSwapAdminFeeAccountB: web3.PublicKey;
152
- saberFarmRewarder: web3.PublicKey;
153
- quarry: web3.PublicKey;
154
- mintWrapper: web3.PublicKey;
155
- redemptionVault: web3.PublicKey;
156
- redeemer: web3.PublicKey;
157
- minterInfo: web3.PublicKey;
158
- minter: web3.PublicKey;
159
- claimFeeTokenAccount: web3.PublicKey;
160
- };
161
- export type OrcaPoolConfig = OrcaPoolInfo;
162
- export type MeteoraPoolConfig = {
163
- address: string;
164
- mint_a: string;
165
- mint_b: string;
166
- reserve_a: string;
167
- reserve_b: string;
168
- reward_mint_a: string;
169
- reward_mint_b: string;
170
- bin_step: number;
171
- };
172
- export type Token = {
173
- address: string;
174
- name: string;
175
- symbol: string;
176
- decimals: number;
177
- logo: string;
178
- verified: boolean;
179
- };
180
- export type Instruction = {
181
- accounts: {
182
- isSigner: boolean;
183
- isWritable: boolean;
184
- pubkey: string;
185
- }[];
186
- data: string;
187
- programId: string;
188
- };
189
- export type TransactionPriority = 'Default' | 'Low' | 'Medium' | 'High' | 'VeryHigh' | 'UnsafeMax' | 'None';
190
- export type Balance = {
191
- amount: string;
192
- mint: string;
193
- };
194
- export type UserPositionBalances = {
195
- balances: Balance[];
196
- fees: Balance[];
197
- rewards: Balance[];
198
- };
199
- export type UserPositionInfo = UserPositionBalances & ({
200
- protocol: Protocol.Meteora;
201
- info: {
202
- lowerBinId: number;
203
- upperBinId: number;
204
- };
205
- } | {
206
- protocol: Protocol.Orca;
207
- info: null;
208
- } | {
209
- protocol: Protocol.Saber;
210
- info: null;
211
- });
212
- export type UserPools = Record<string, UserPositionInfo>;
213
- export type UserPortfolio = {
214
- wallet: string;
215
- userPda: string;
216
- pools: Record<string, UserPools>;
217
- };
218
- export type PoolOut = UserPositionInfo & {
219
- positionAddress: string;
220
- };
221
- export type UserPortfolioOut = {
222
- wallet: string;
223
- userPda: string;
224
- pools: Record<string, PoolOut[]>;
225
- };
226
- export type OrcaPoolInfo = {
227
- address: string;
228
- feeApr: {
229
- day: number;
230
- month: number;
231
- week: number;
232
- };
233
- lpFeeRate: number;
234
- modifiedTimeMs: number;
235
- price: number;
236
- priceRange: {
237
- day: {
238
- min: number;
239
- max: number;
240
- };
241
- month: {
242
- min: number;
243
- max: number;
244
- };
245
- week: {
246
- min: number;
247
- max: number;
248
- };
249
- };
250
- protocolFeeRate: number;
251
- reward0Apr: {
252
- day: number;
253
- week: number;
254
- month: number;
255
- };
256
- reward1Apr: {
257
- day: number;
258
- week: number;
259
- month: number;
260
- };
261
- reward2Apr: {
262
- day: number;
263
- week: number;
264
- month: number;
265
- };
266
- tickSpacing: number;
267
- tokenA: {
268
- coingeckoId: string;
269
- decimals: number;
270
- logoURI: string;
271
- mint: string;
272
- name: string;
273
- poolToken: boolean;
274
- symbol: string;
275
- whitelisted: boolean;
276
- };
277
- tokenB: {
278
- coingeckoId: string;
279
- decimals: number;
280
- logoURI: string;
281
- mint: string;
282
- name: string;
283
- poolToken: boolean;
284
- symbol: string;
285
- whitelisted: boolean;
286
- };
287
- totalApr: {
288
- day: number;
289
- week: number;
290
- month: number;
291
- };
292
- tvl: number;
293
- volume: {
294
- day: number;
295
- week: number;
296
- month: number;
297
- };
298
- volumeDenominatedA: {
299
- day: number;
300
- week: number;
301
- month: number;
302
- };
303
- volumeDemonimatedB: {
304
- day: number;
305
- week: number;
306
- month: number;
307
- };
308
- whirlpoolsConfig: string;
309
- whitelisted: boolean;
310
- };
311
- export type OrcaPoolResponse = {
312
- whirlpools: OrcaPoolInfo[];
313
- };
314
- export type OrcaPoolInfoIndexed = Record<string, OrcaPoolInfo>;
315
- export type TokenAccountInfo = {
316
- address: web3.PublicKey;
317
- owner: web3.PublicKey;
318
- mint: web3.PublicKey;
319
- amount: BN;
320
- };
321
- export type ResponseWithStatus<T> = {
322
- status: number;
323
- data: T;
324
- };
325
- export type HealthResponse = Record<string, 'OK' | 'NOT OK'>;
326
- export type MeteoraDlmmActiveBin = Record<string, number>;
327
- export type BadRequestError = {
328
- code: string;
329
- message: string;
330
- path: string;
331
- };
332
- export type TransactionMetadataResponse = {
333
- description: string;
334
- estimatedFeeInSOL: string;
335
- addressLookupTableAddresses: string[];
336
- computeBudgetInstructions: Instruction[];
337
- mainInstructions: Instruction[];
338
- payer: string;
339
- signature: string;
340
- };
341
- export type TransactionMetadataResponse2 = {
342
- actions: string[];
343
- addressLookupTableAddresses: string[];
344
- computeBudgetInstructions: Instruction[];
345
- mainInstructions: Instruction[];
346
- payer: string;
347
- };
348
- /**
349
- * Old implementation
350
- */
351
- export type TransactionMetadata = {
352
- description: string;
353
- estimatedFeeInSOL: string;
354
- transaction: TransactionClass;
355
- };
356
- /**
357
- * Instead of single description, this version of metadata includes an array of actions
358
- * that describes each instruction in the transaction.
359
- */
360
- export type TransactionMetadataWithActions = {
361
- actions: string[];
362
- transaction: TransactionClass;
363
- };
364
- /**
365
- * Type definition for search indices and their associated hash.
366
- */
367
- export type SearchIndices = {
368
- hash: string;
369
- indices: Record<string, Record<number, 1>>;
370
- };
371
- export interface SearchTokenStore {
372
- tokenIndices: SearchIndices;
373
- tokens: Token[];
374
- }
375
- export type LoadFromPersistenceFn = () => Promise<[
376
- SearchIndices | undefined,
377
- Token[] | undefined
378
- ]>;
379
- export type StoreToPersistenceFn = (tokenIndices: SearchIndices, tokens: Token[]) => Promise<void>;
380
- export type TxgenParams<T, DeserializedAccounts = undefined> = {
381
- connection: web3.Connection;
382
- params: T;
383
- fetch: DeserializedAccounts;
384
- };
385
- export type Register = {
386
- authority: web3.PublicKey;
387
- };
388
- export type InitializeStorageTokenAccount = {
389
- userWallet: web3.PublicKey;
390
- mints: web3.PublicKey[];
391
- protocol?: string;
392
- pool?: string;
393
- };
394
- export type ClaimTokenFromPda = {
395
- userWallet: web3.PublicKey;
396
- mint: web3.PublicKey;
397
- };
398
- export type ClaimTokensFromSTA = {
399
- userWallet: web3.PublicKey;
400
- mints: web3.PublicKey[];
401
- };
402
- export type MeteoraCreatePositionAndDeposit = {
403
- position: web3.PublicKey;
404
- pool: web3.PublicKey;
405
- userWallet: web3.PublicKey;
406
- totalXAmount: BN;
407
- totalYAmount: BN;
408
- slippage?: number;
409
- binRange: BinRange;
410
- distribution: Distribution;
411
- skipInputTokenCheck: boolean;
412
- pdaTokenType?: TokenType;
413
- };
414
- export type OpenAutomationIx = {
415
- position: web3.PublicKey;
416
- pool: web3.PublicKey;
417
- userWallet: web3.PublicKey;
418
- totalXAmount: BN;
419
- totalYAmount: BN;
420
- slippage?: number;
421
- binRange: BinRange;
422
- distribution: Distribution;
423
- skipInputTokenCheck: boolean;
424
- opt: {
425
- pdaTokenType?: TokenType;
426
- withAmount: {
427
- userTokenXAmount: BN | null;
428
- userTokenYAmount: BN | null;
429
- };
430
- fuelAccount?: boolean;
431
- };
432
- };
433
- export type RelativeOpenAutomationIx = {
434
- position: web3.PublicKey;
435
- pool: web3.PublicKey;
436
- userWallet: web3.PublicKey;
437
- relativeBinRange: BinRange;
438
- checkRange: BinRange;
439
- distribution: Distribution;
440
- targetActiveBin?: number;
441
- fuelAccount?: boolean;
442
- pdaTokenType?: TokenType;
443
- userTokenXAmount?: BN;
444
- userTokenYAmount?: BN;
445
- };
446
- export type MeteoraCreatePositionAndDepositPda = {
447
- position: web3.PublicKey;
448
- pool: web3.PublicKey;
449
- userWallet: web3.PublicKey;
450
- slippage?: number;
451
- binRange: BinRange;
452
- distribution: Distribution;
453
- skipInputTokenCheck: boolean;
454
- pdaTokenType?: TokenType;
455
- };
456
- export type MeteoraInitializeBinArrays = {
457
- pool: web3.PublicKey;
458
- userWallet: web3.PublicKey;
459
- minBinId: number;
460
- maxBinId: number;
461
- };
462
- export type MeteoraDeposit = {
463
- position: web3.PublicKey;
464
- userWallet: web3.PublicKey;
465
- totalXAmount: BN;
466
- totalYAmount: BN;
467
- distribution: Distribution;
468
- slippage?: number;
469
- skipInputTokenCheck: boolean;
470
- fastGeneration?: {
471
- pool: web3.PublicKey;
472
- upperBinId: number;
473
- lowerBinId: number;
474
- };
475
- pdaTokenType?: TokenType;
476
- };
477
- export type MeteoraWithdraw = {
478
- position: web3.PublicKey;
479
- userWallet: web3.PublicKey;
480
- amountBps: BN;
481
- shouldClaimAndClose: boolean;
482
- fastGeneration?: {
483
- pool: web3.PublicKey;
484
- upperBinId: number;
485
- lowerBinId: number;
486
- };
487
- useAta?: boolean;
488
- pdaTokenType?: TokenType;
489
- };
490
- /**
491
- * MeteoraWithdrawLargerPosition extends MeteoraWithdraw with optional bin range selection.
492
- * Uses simple instructions (removeLiquidityByRange2, claimFee2, claimReward2, closePositionIfEmpty)
493
- * instead of Meteora SDK to avoid tx size bloat from multiple claimFee instructions.
494
- */
495
- export type MeteoraWithdrawLargerPosition = MeteoraWithdraw;
496
- export type MeteoraTxWithdraw = {
497
- position: string;
498
- userWallet: string;
499
- amountBps: number;
500
- shouldClaimAndClose: boolean;
501
- fastGeneration?: {
502
- pool: string;
503
- upperBinId: number;
504
- lowerBinId: number;
505
- };
506
- useAta?: boolean;
507
- pdaTokenType?: TokenType;
508
- };
509
- /**
510
- * MeteoraTxWithdrawLargerPosition - string version for API/RPC calls
511
- */
512
- export type MeteoraTxWithdrawLargerPosition = MeteoraTxWithdraw;
513
- export type MeteoraClaim = {
514
- userWallet: web3.PublicKey;
515
- position: web3.PublicKey;
516
- fastGeneration?: {
517
- pool: web3.PublicKey;
518
- };
519
- pdaTokenType?: TokenType;
520
- };
521
- export type MeteoraClaimAll = {
522
- userWallet: web3.PublicKey;
523
- };
524
- export type MeteoraClose = {
525
- userWallet: web3.PublicKey;
526
- position: web3.PublicKey;
527
- pdaTokenType?: TokenType;
528
- fuelAccount?: boolean;
529
- };
530
- export type MeteoraCompound = {
531
- userWallet: web3.PublicKey;
532
- position: web3.PublicKey;
533
- distribution?: Distribution;
534
- pdaTokenType?: TokenType;
535
- };
536
- export type MeteoraRedeposit = {
537
- userWallet: web3.PublicKey;
538
- position: web3.PublicKey;
539
- distribution: Distribution;
540
- useAta?: boolean;
541
- };
542
- export type MeteoraRedeposit2 = {
543
- userWallet: web3.PublicKey;
544
- position: web3.PublicKey;
545
- distribution: Distribution;
546
- useAta?: boolean;
547
- checkRange?: BinRange;
548
- };
549
- export type MeteoraRebalance2 = {
550
- userWallet: web3.PublicKey;
551
- currentPosition: web3.PublicKey;
552
- newPosition: web3.PublicKey;
553
- relativeBinRange: BinRange;
554
- checkRange: BinRange;
555
- distribution: Distribution;
556
- useAta?: boolean;
557
- targetActiveBin?: number;
558
- };
559
- export type SideDistribution = {
560
- distribution: Distribution;
561
- percentage: number;
562
- };
563
- export type HybridLiquidityDistribution = {
564
- x: SideDistribution;
565
- y: SideDistribution;
566
- };
567
- export type MeteoraRebalanceHybridLiquidity = {
568
- userWallet: web3.PublicKey;
569
- currentPosition: web3.PublicKey;
570
- newPosition: web3.PublicKey;
571
- relativeBinRange: BinRange;
572
- checkRange: BinRange;
573
- layers: HybridLiquidityDistribution[];
574
- compound: boolean;
575
- targetActiveBin?: number;
576
- amountXOverride?: BN;
577
- amountYOverride?: BN;
578
- };
579
- export type MeteoraRedepositHybridLiquidity = {
580
- userWallet: web3.PublicKey;
581
- position: web3.PublicKey;
582
- layers: HybridLiquidityDistribution[];
583
- compound: boolean;
584
- targetActiveBin?: number;
585
- amountXOverride?: BN;
586
- amountYOverride?: BN;
587
- };
588
- export type MeteoraRebalanceForLargerPosition = {
589
- userWallet: web3.PublicKey;
590
- currentPosition: web3.PublicKey;
591
- newPosition: web3.PublicKey;
592
- relativeLowerBin: number;
593
- width: number;
594
- distribution: Distribution;
595
- useAta?: boolean;
596
- adjustedTotalXAmount?: BN;
597
- adjustedTotalYAmount?: BN;
598
- };
599
- export type LabeledInstruction = {
600
- /**
601
- * The actual Solana instruction to be executed as part of a transaction.
602
- */
603
- instruction: web3.TransactionInstruction;
604
- /**
605
- * A descriptive label for the instruction, describing what exactly it does.
606
- */
607
- label: string;
608
- /**
609
- * Classified under a broader category or belongs to a set
610
- */
611
- class?: string;
612
- };
613
- export type MeteoraRebalanceLargePositionAutomation2 = {
614
- userWallet: web3.PublicKey;
615
- lbPair: web3.PublicKey;
616
- position: web3.PublicKey;
617
- relativeLowerBin: number;
618
- width: number;
619
- distribution: Distribution;
620
- shouldClaimFee?: boolean;
621
- shouldClaimReward?: boolean;
622
- };
623
- /**
624
- * Params for removing liquidity in rebalance
625
- */
626
- export type RemoveLiquidityParams = {
627
- minBinId?: number;
628
- maxBinId?: number;
629
- bps: number;
630
- };
631
- /**
632
- * Params for adding liquidity in rebalance
633
- */
634
- export type AddLiquidityParams = {
635
- minDeltaId: number;
636
- maxDeltaId: number;
637
- x0: BN;
638
- y0: BN;
639
- deltaX: BN;
640
- deltaY: BN;
641
- bitFlag: number;
642
- favorXInActiveId: boolean;
643
- };
644
- /**
645
- * Full params for the Meteora rebalance_liquidity instruction
646
- */
647
- export type RebalanceLiquidityParams = {
648
- activeId: number;
649
- maxActiveBinSlippage: number;
650
- shouldClaimFee: boolean;
651
- shouldClaimReward: boolean;
652
- minWithdrawXAmount: BN;
653
- maxDepositXAmount: BN;
654
- minWithdrawYAmount: BN;
655
- maxDepositYAmount: BN;
656
- shrinkMode: number;
657
- removeLiquidityParams: RemoveLiquidityParams[];
658
- addLiquidityParams: AddLiquidityParams[];
659
- };
660
- /**
661
- * Meteora DLMM position shrink mode for rebalance_liquidity.
662
- *
663
- * Controls whether the position account is shrunk (reallocated smaller)
664
- * after liquidity removal during a rebalance operation.
665
- *
666
- * Stored in the first byte of the 32-byte padding field of RebalanceLiquidityParams.
667
- */
668
- export declare enum ShrinkMode {
669
- /** Default — allow shrinking on both sides (Meteora SDK default) */
670
- Default = 0,
671
- /** Do not shrink the lower side */
672
- NoShrinkLower = 1,
673
- /** Do not shrink the upper side */
674
- NoShrinkUpper = 2,
675
- /** Do not shrink either side */
676
- NoShrinkBoth = 3
677
- }
678
- export type MeteoraLimitCloseAutomation = {
679
- userWallet: web3.PublicKey;
680
- position: web3.PublicKey;
681
- minBinId: number;
682
- maxBinId: number;
683
- pdaTokenType?: TokenType;
684
- isLimitOrder?: boolean;
685
- };
686
- export type MeteoraLimitCloseAutomation2 = {
687
- userWallet: web3.PublicKey;
688
- position: web3.PublicKey;
689
- minBinId: number;
690
- maxBinId: number;
691
- pdaTokenType?: TokenType;
692
- isLimitOrder?: boolean;
693
- isHawkRefund: boolean;
694
- };
695
- export type MeteoraLimitCloseV2Automation = {
696
- userWallet: web3.PublicKey;
697
- position: web3.PublicKey;
698
- minBinId: number;
699
- maxBinId: number;
700
- pdaTokenType: TokenType.ATA | TokenType.STA | TokenType.LTA;
701
- isLimitOrder?: boolean;
702
- isHawkRefund?: boolean;
703
- };
704
- export type MeteoraCreatePoolAndPosition = {
705
- userWallet: web3.PublicKey;
706
- position: web3.PublicKey;
707
- presetParameter: web3.PublicKey;
708
- tokenMintX: web3.PublicKey;
709
- tokenMintY: web3.PublicKey;
710
- activeId: number;
711
- lowerBinId: number;
712
- upperBinId: number;
713
- strategyType: StrategyType;
714
- amountX: BN;
715
- amountY: BN;
716
- binStep: BN;
717
- baseFactor: BN;
718
- baseFeePowerFactor: BN;
719
- };
720
- /**
721
- * Parameters for initializing a large Meteora DLMM position (more than 69 bins).
722
- *
723
- * This method generates:
724
- * - Initialize position instruction (max 70 bins initial)
725
- * - Multiple increase position length instructions (91 bins each) to reach the target size
726
- *
727
- * Maximum supported: 1400 bins per position (limited by Meteora)
728
- */
729
- export type MeteoraInitializeLargePosition = {
730
- userWallet: web3.PublicKey;
731
- lbPair: web3.PublicKey;
732
- position: web3.PublicKey;
733
- lowerBinId: number;
734
- upperBinId: number;
735
- };
736
- export type MeteoraDepositToLargePosition = {
737
- userWallet: web3.PublicKey;
738
- lbPair: web3.PublicKey;
739
- position: web3.PublicKey;
740
- tokenXMint: web3.PublicKey;
741
- tokenYMint: web3.PublicKey;
742
- tokenXProgram: web3.PublicKey;
743
- tokenYProgram: web3.PublicKey;
744
- lowerBinId: number;
745
- upperBinId: number;
746
- totalXAmount: BN;
747
- totalYAmount: BN;
748
- /** Strategy type: 0 = SPOT, 1 = CURVE, 2 = BID_ASK. Defaults to SPOT. */
749
- strategyType?: number;
750
- pdaTokenType?: TokenType;
751
- };
752
- /**
753
- * Meteora DLMM Deposit to Larger Position
754
- *
755
- * Single-transaction method to optionally initialize a position and add liquidity
756
- * for larger positions (up to 70 bins due to Meteora InitializePosition width limitation).
757
- *
758
- * This method combines:
759
- * - Initialize bin arrays (meteoraDlmmInitializeBinArray) - idempotent
760
- * - Optionally initialize position (if initializePosition is true)
761
- * - Add liquidity using addLiquidityByStrategy
762
- *
763
- * Designed for automation compatibility - all operations in a single transaction.
764
- * Note: Number of bins limited to 70 due to Meteora InitializePosition width constraint.
765
- */
766
- export type MeteoraDepositLargerPosition = {
767
- userWallet: web3.PublicKey;
768
- lbPair: web3.PublicKey;
769
- position: web3.PublicKey;
770
- lowerBinId: number;
771
- upperBinId: number;
772
- totalXAmount: BN;
773
- totalYAmount: BN;
774
- distribution: Distribution;
775
- slippage?: number;
776
- skipInputTokenCheck: boolean;
777
- pdaTokenType?: TokenType;
778
- /** If true, initialize the position first. If false, skip position initialization. */
779
- initializePosition?: boolean;
780
- };
781
- /**
782
- * Meteora DLMM Create Position and Deposit to Large Position
783
- *
784
- * Combined method that creates a position AND deposits liquidity for any bin count.
785
- * - For ≤149 bins: delegates to meteoraDepositLargerPosition (single tx)
786
- * - For ≥150 bins: uses _meteoraInitializeLargePosition + _meteoraDepositToLargePosition (multi-tx)
787
- */
788
- export type MeteoraCreatePositionAndDepositToLargePosition = {
789
- userWallet: web3.PublicKey;
790
- lbPair: web3.PublicKey;
791
- position: web3.PublicKey;
792
- lowerBinId: number;
793
- upperBinId: number;
794
- totalXAmount: BN;
795
- totalYAmount: BN;
796
- /** Strategy type: 0 = SPOT, 1 = CURVE, 2 = BID_ASK. Defaults to SPOT. Used for ≥150-bin path. */
797
- strategyType?: number;
798
- /** Distribution type. Used for ≤149-bin path. Defaults to 'SPOT-IMBALANCED'. */
799
- distribution?: Distribution;
800
- slippage?: number;
801
- skipInputTokenCheck?: boolean;
802
- pdaTokenType?: TokenType;
803
- };
804
- export type MeteoraDepositHybridToLargePosition = {
805
- userWallet: web3.PublicKey;
806
- lbPair: web3.PublicKey;
807
- position: web3.PublicKey;
808
- tokenXMint: web3.PublicKey;
809
- tokenYMint: web3.PublicKey;
810
- tokenXProgram: web3.PublicKey;
811
- tokenYProgram: web3.PublicKey;
812
- lowerBinId: number;
813
- upperBinId: number;
814
- totalXAmount: BN;
815
- totalYAmount: BN;
816
- layers: HybridLiquidityDistribution[];
817
- pdaTokenType?: TokenType;
818
- };
819
- export type MeteoraCreatePositionAndDepositHybridToLargePosition = {
820
- position: web3.PublicKey;
821
- pool: web3.PublicKey;
822
- userWallet: web3.PublicKey;
823
- totalXAmount: BN;
824
- totalYAmount: BN;
825
- binRange: BinRange;
826
- layers: HybridLiquidityDistribution[];
827
- skipInputTokenCheck: boolean;
828
- pdaTokenType?: TokenType;
829
- };
830
- export type OrcaOpenPosition = {
831
- userWallet: web3.PublicKey;
832
- positionMint: web3.PublicKey;
833
- whirlpool: web3.PublicKey;
834
- tickLowerIndex: number;
835
- tickUpperIndex: number;
836
- farm?: web3.PublicKey;
837
- };
838
- export type OrcaClosePosition = {
839
- userWallet: web3.PublicKey;
840
- position: web3.PublicKey;
841
- farm?: web3.PublicKey;
842
- };
843
- export type OrcaDeposit = {
844
- userWallet: web3.PublicKey;
845
- mintOrPosition: {
846
- positionMint?: web3.PublicKey;
847
- position?: web3.PublicKey;
848
- };
849
- totalXAmount: BN;
850
- totalYAmount: BN;
851
- newPosition?: {
852
- whirlpool: web3.PublicKey;
853
- tickLowerIndex: number;
854
- tickUpperIndex: number;
855
- };
856
- is2022Position?: boolean;
857
- farm?: web3.PublicKey;
858
- };
859
- export type OrcaSweepDust = {
860
- userWallet: web3.PublicKey;
861
- mintOrPosition: {
862
- positionMint?: web3.PublicKey;
863
- position?: web3.PublicKey;
864
- };
865
- newPosition?: {
866
- whirlpool: web3.PublicKey;
867
- tickLowerIndex: number;
868
- tickUpperIndex: number;
869
- };
870
- aToB: boolean;
871
- slippageBps: number;
872
- is2022Position?: boolean;
873
- farm?: web3.PublicKey;
874
- };
875
- export type OrcaWithdraw = {
876
- userWallet: web3.PublicKey;
877
- position: web3.PublicKey;
878
- percentage: number;
879
- useAta?: boolean;
880
- is2022Position?: boolean;
881
- farm?: web3.PublicKey;
882
- };
883
- export type OrcaClaimRewards = {
884
- userWallet: web3.PublicKey;
885
- position: web3.PublicKey;
886
- is2022Position?: boolean;
887
- farm?: web3.PublicKey;
888
- };
889
- export declare enum StrategyType {
890
- SpotOneSide = 0,
891
- CurveOneSide = 1,
892
- BidAskOneSide = 2,
893
- SpotBalanced = 3,
894
- CurveBalanced = 4,
895
- BidAskBalanced = 5,
896
- SpotImBalanced = 6,
897
- CurveImBalanced = 7,
898
- BidAskImBalanced = 8
899
- }
900
- export type OneSide = boolean;
901
- export declare const StrategyTypeMap: Record<Distribution, StrategyType>;
902
- export declare const StrategyTypeMap2: Record<number, [MeteoraStrategyType, OneSide]>;
903
- export interface TokenAccountData {
904
- mint: web3.PublicKey;
905
- owner: web3.PublicKey;
906
- amount: BN;
907
- }
908
- export type MeteoraToHawksightOptions = {
909
- pdaTokenType?: TokenType;
910
- params?: any;
911
- };
912
- export interface MeteoraToHawksightParams {
913
- ixs: web3.TransactionInstruction[];
914
- userPda: web3.PublicKey;
915
- authority: web3.PublicKey;
916
- opt?: MeteoraToHawksightOptions;
917
- }
918
- export type MeteoraToHawksightFn = ({ ixs, userPda, authority, opt, }: MeteoraToHawksightParams) => Promise<web3.TransactionInstruction[]>;
919
- export interface MeteoraToHawksightParamsLabeled {
920
- ixs: web3.TransactionInstruction[];
921
- userPda: web3.PublicKey;
922
- authority: web3.PublicKey;
923
- classification: string;
924
- opt?: MeteoraToHawksightOptions;
925
- }
926
- export type MeteoraToHawksightFnLabeled = ({ ixs, userPda, authority, classification, opt, }: MeteoraToHawksightParamsLabeled) => Promise<LabeledInstruction[]>;
927
- export type CreateAtaIdempotentParams = {
928
- accounts: {
929
- payer: web3.PublicKey;
930
- mint: web3.PublicKey;
931
- owner: web3.PublicKey;
932
- programId?: web3.PublicKey;
933
- }[];
934
- };
935
- export type GetMintsFromInstructionParams = {
936
- instructions: web3.TransactionInstruction[];
937
- find: Record<string, {
938
- programId: string;
939
- mintIndices: number[];
940
- manualSnakeCase?: boolean;
941
- }>;
942
- };
943
- export type HawkApiOptions = {
944
- disableTokenLoad?: boolean;
945
- disableTxMetadataLoad?: boolean;
946
- };
947
- export type PriorityFeeEstimate = {
948
- priorityFeeEstimate: number;
949
- feeLevels: Record<string, number>;
950
- };
951
- export type InsertNonceAtOpt = {
952
- onlyEndOfTx?: boolean;
953
- };
954
- export type SignerPlugin = (transaction: web3.VersionedTransaction) => Promise<web3.VersionedTransaction>;
955
- export type SignerPlugin2 = (transaction: web3.VersionedTransaction[]) => Promise<web3.VersionedTransaction[]>;
956
- export type SendSignedTx = (signedTx: web3.VersionedTransaction, lastValidBlockHeight: number) => Promise<string>;
957
- export type RaydiumOpenPosition = {
958
- userWallet: web3.PublicKey;
959
- nftMint: web3.PublicKey;
960
- poolState: web3.PublicKey;
961
- tickLowerIndex: number;
962
- tickUpperIndex: number;
963
- amountX: BN;
964
- amountY: BN;
965
- slippage: number;
966
- getLiquidityFromAmounts?: {
967
- liquidity: BN;
968
- amount0Max: BN;
969
- amount1Max: BN;
970
- };
971
- };
972
- export type RaydiumOpenPositionAutomation = {
973
- userWallet: web3.PublicKey;
974
- nftMint: web3.PublicKey;
975
- poolState: web3.PublicKey;
976
- tickLowerIndex: number;
977
- tickUpperIndex: number;
978
- amountX?: BN;
979
- amountY?: BN;
980
- slippage?: number;
981
- getLiquidityFromAmounts?: {
982
- liquidity: BN;
983
- amount0Max: BN;
984
- amount1Max: BN;
985
- };
986
- };
987
- export type RaydiumClosePosition = {
988
- userWallet: web3.PublicKey;
989
- personalPosition: web3.PublicKey;
990
- };
991
- export type RaydiumWithdrawAndClosePosition = {
992
- userWallet: web3.PublicKey;
993
- personalPosition: web3.PublicKey;
994
- slippage: number;
995
- };
996
- export type RaydiumIncreaseLiquidity = {
997
- userWallet: web3.PublicKey;
998
- personalPosition: web3.PublicKey;
999
- amountX: BN;
1000
- amountY: BN;
1001
- slippage: number;
1002
- getLiquidityFromAmounts?: {
1003
- liquidity: BN;
1004
- amount0Max: BN;
1005
- amount1Max: BN;
1006
- };
1007
- };
1008
- export type RaydiumIncreaseLiquidityAutomation = {
1009
- userWallet: web3.PublicKey;
1010
- personalPosition: web3.PublicKey;
1011
- amountX?: BN;
1012
- amountY?: BN;
1013
- slippage?: number;
1014
- getLiquidityFromAmounts?: {
1015
- liquidity: BN;
1016
- amount0Max: BN;
1017
- amount1Max: BN;
1018
- };
1019
- };
1020
- export type RaydiumDecreaseLiquidity = {
1021
- userWallet: web3.PublicKey;
1022
- personalPosition: web3.PublicKey;
1023
- liquidity: BN;
1024
- slippage: number;
1025
- };
1026
- export type RaydiumDecreaseLiquidityAutomation = {
1027
- userWallet: web3.PublicKey;
1028
- personalPosition: web3.PublicKey;
1029
- liquidity?: BN;
1030
- slippage?: number;
1031
- };
1032
- export type RaydiumSweepDust = {
1033
- userWallet: web3.PublicKey;
1034
- personalPosition: web3.PublicKey;
1035
- };
1036
- export type CreateLimitTokenParams = {
1037
- connection: web3.Connection;
1038
- userWallet: web3.PublicKey;
1039
- payer: web3.PublicKey;
1040
- mint: web3.PublicKey;
1041
- };
1042
- export type CloseLimitTokenParams = {
1043
- connection: web3.Connection;
1044
- userWallet: web3.PublicKey;
1045
- mint: web3.PublicKey;
1046
- };
1047
- export declare enum TokenType {
1048
- ATA = "ATA",
1049
- STA = "STA",
1050
- LTA = "LTA"
1051
- }
1052
- export type CombineTransactionsParams = {
1053
- connection: web3.Connection;
1054
- payer: web3.PublicKey;
1055
- description: string;
1056
- instructions: (web3.TransactionInstruction | TransactionClass | ResponseWithStatus<TransactionMetadata>)[];
1057
- additionalAlt: string[];
1058
- };
1059
- export type RaydiumClosePositionAutomation = {
1060
- connection: web3.Connection;
1061
- userWallet: web3.PublicKey;
1062
- positionNftMint: web3.PublicKey;
1063
- };
1064
- export type RaydiumFetch = {
1065
- poolStateInfo: {
1066
- tokenMint0: web3.PublicKey;
1067
- tokenMint1: web3.PublicKey;
1068
- tokenVault0: web3.PublicKey;
1069
- tokenVault1: web3.PublicKey;
1070
- ammConfig: web3.PublicKey;
1071
- observationKey: web3.PublicKey;
1072
- tickCurrent: number;
1073
- tickSpacing: number;
1074
- rewardInfos: {
1075
- tokenMint: web3.PublicKey;
1076
- tokenVault: web3.PublicKey;
1077
- }[];
1078
- };
1079
- positionInfo?: {
1080
- poolId: web3.PublicKey;
1081
- tickLowerIndex: number;
1082
- tickUpperIndex: number;
1083
- nftMint: web3.PublicKey;
1084
- liquidity: BN;
1085
- };
1086
- };
1087
- export type RaydiumFetchParams = {
1088
- personalPosition?: web3.PublicKey;
1089
- poolState?: web3.PublicKey;
1090
- };
1091
- export declare enum MeteoraPositionSide {
1092
- Lower = 0,
1093
- Upper = 1
1094
- }
1095
- export type SaberWithdrawAndClosePosition = {
1096
- userWallet: web3.PublicKey;
1097
- pool: SaberPoolConfig;
1098
- amount: BN;
1099
- };
1100
- //# sourceMappingURL=types.d.ts.map