@0dotxyz/p0-ts-sdk 2.2.0-alpha.3 → 2.2.0-alpha.5
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/dist/index.cjs +2302 -917
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +284 -72
- package/dist/index.d.ts +284 -72
- package/dist/index.js +2288 -918
- package/dist/index.js.map +1 -1
- package/dist/vendor.cjs +349 -0
- package/dist/vendor.cjs.map +1 -1
- package/dist/vendor.d.cts +288 -3
- package/dist/vendor.d.ts +288 -3
- package/dist/vendor.js +340 -2
- package/dist/vendor.js.map +1 -1
- package/package.json +4 -10
package/dist/index.d.cts
CHANGED
|
@@ -14407,6 +14407,8 @@ declare function addTransactionMetadata<T extends Transaction | VersionedTransac
|
|
|
14407
14407
|
*/
|
|
14408
14408
|
declare function getTxSize(tx: VersionedTransaction | Transaction): number;
|
|
14409
14409
|
declare function getAccountKeys(tx: VersionedTransaction | Transaction, lookupTableAccounts: AddressLookupTableAccount[]): number;
|
|
14410
|
+
declare function getWritableAccountKeys(tx: VersionedTransaction | Transaction): number;
|
|
14411
|
+
declare function getTotalAccountKeys(tx: VersionedTransaction | Transaction): number;
|
|
14410
14412
|
|
|
14411
14413
|
/**
|
|
14412
14414
|
* Decodes a Solana transaction instruction using the provided Interface Definition Language (IDL).
|
|
@@ -15551,6 +15553,56 @@ declare class HealthCacheSimulationError extends Error {
|
|
|
15551
15553
|
constructor(message: string, mrgnErr: number | null, internalErr: number | null);
|
|
15552
15554
|
}
|
|
15553
15555
|
|
|
15556
|
+
declare enum SwapProvider {
|
|
15557
|
+
JUPITER = "JUPITER",
|
|
15558
|
+
TITAN = "TITAN",
|
|
15559
|
+
DFLOW = "DFLOW"
|
|
15560
|
+
}
|
|
15561
|
+
interface SwapApiConfig {
|
|
15562
|
+
basePath?: string;
|
|
15563
|
+
apiKey?: string;
|
|
15564
|
+
headers?: Record<string, string>;
|
|
15565
|
+
}
|
|
15566
|
+
interface SwapProviderEntry {
|
|
15567
|
+
provider: SwapProvider;
|
|
15568
|
+
apiConfig?: SwapApiConfig;
|
|
15569
|
+
}
|
|
15570
|
+
interface SwapProviderConfig {
|
|
15571
|
+
provider: SwapProvider;
|
|
15572
|
+
slippageMode: "DYNAMIC" | "FIXED";
|
|
15573
|
+
slippageBps: number;
|
|
15574
|
+
platformFeeBps: number;
|
|
15575
|
+
directRoutesOnly?: boolean;
|
|
15576
|
+
apiConfig?: SwapApiConfig;
|
|
15577
|
+
fallbackProviders?: SwapProviderEntry[];
|
|
15578
|
+
}
|
|
15579
|
+
interface SwapOpts {
|
|
15580
|
+
swapConfig?: SwapProviderConfig;
|
|
15581
|
+
swapIxs?: {
|
|
15582
|
+
instructions: TransactionInstruction[];
|
|
15583
|
+
lookupTables: AddressLookupTableAccount[];
|
|
15584
|
+
};
|
|
15585
|
+
}
|
|
15586
|
+
interface SwapQuoteResult {
|
|
15587
|
+
inAmount: string;
|
|
15588
|
+
outAmount: string;
|
|
15589
|
+
otherAmountThreshold: string;
|
|
15590
|
+
slippageBps: number;
|
|
15591
|
+
platformFee?: {
|
|
15592
|
+
amount: string;
|
|
15593
|
+
feeBps: number;
|
|
15594
|
+
};
|
|
15595
|
+
priceImpactPct?: string;
|
|
15596
|
+
contextSlot?: number;
|
|
15597
|
+
timeTaken?: number;
|
|
15598
|
+
provider?: SwapProvider;
|
|
15599
|
+
}
|
|
15600
|
+
interface SwapIxsResult {
|
|
15601
|
+
swapInstructions: TransactionInstruction[];
|
|
15602
|
+
setupInstructions: TransactionInstruction[];
|
|
15603
|
+
addressLookupTableAddresses: AddressLookupTableAccount[];
|
|
15604
|
+
quoteResponse: SwapQuoteResult;
|
|
15605
|
+
}
|
|
15554
15606
|
interface MakeDepositIxOpts {
|
|
15555
15607
|
wrapAndUnwrapSol?: boolean;
|
|
15556
15608
|
wSolBalanceUi?: number;
|
|
@@ -15822,19 +15874,7 @@ interface MakeLoopTxParams {
|
|
|
15822
15874
|
borrowBank: BankType;
|
|
15823
15875
|
tokenProgram: PublicKey;
|
|
15824
15876
|
};
|
|
15825
|
-
swapOpts:
|
|
15826
|
-
jupiterOptions?: {
|
|
15827
|
-
slippageMode: "DYNAMIC" | "FIXED";
|
|
15828
|
-
slippageBps: number;
|
|
15829
|
-
platformFeeBps: number;
|
|
15830
|
-
directRoutesOnly?: boolean;
|
|
15831
|
-
configParams?: ConfigurationParameters;
|
|
15832
|
-
};
|
|
15833
|
-
swapIxs?: {
|
|
15834
|
-
instructions: TransactionInstruction[];
|
|
15835
|
-
lookupTables: AddressLookupTableAccount[];
|
|
15836
|
-
};
|
|
15837
|
-
};
|
|
15877
|
+
swapOpts: SwapOpts;
|
|
15838
15878
|
addressLookupTableAccounts?: AddressLookupTableAccount[];
|
|
15839
15879
|
overrideInferAccounts?: {
|
|
15840
15880
|
group?: PublicKey;
|
|
@@ -15863,19 +15903,7 @@ interface MakeRepayWithCollatTxParams {
|
|
|
15863
15903
|
totalPositionAmount: number;
|
|
15864
15904
|
repayAmount?: number;
|
|
15865
15905
|
};
|
|
15866
|
-
swapOpts:
|
|
15867
|
-
jupiterOptions?: {
|
|
15868
|
-
slippageMode: "DYNAMIC" | "FIXED";
|
|
15869
|
-
slippageBps: number;
|
|
15870
|
-
platformFeeBps: number;
|
|
15871
|
-
directRoutesOnly?: boolean;
|
|
15872
|
-
configParams?: ConfigurationParameters;
|
|
15873
|
-
};
|
|
15874
|
-
swapIxs?: {
|
|
15875
|
-
instructions: TransactionInstruction[];
|
|
15876
|
-
lookupTables: AddressLookupTableAccount[];
|
|
15877
|
-
};
|
|
15878
|
-
};
|
|
15906
|
+
swapOpts: SwapOpts;
|
|
15879
15907
|
addressLookupTableAccounts?: AddressLookupTableAccount[];
|
|
15880
15908
|
overrideInferAccounts?: {
|
|
15881
15909
|
group?: PublicKey;
|
|
@@ -15902,15 +15930,7 @@ interface MakeSwapCollateralTxParams {
|
|
|
15902
15930
|
depositBank: BankType;
|
|
15903
15931
|
tokenProgram: PublicKey;
|
|
15904
15932
|
};
|
|
15905
|
-
swapOpts:
|
|
15906
|
-
jupiterOptions?: {
|
|
15907
|
-
slippageMode: "DYNAMIC" | "FIXED";
|
|
15908
|
-
slippageBps: number;
|
|
15909
|
-
platformFeeBps: number;
|
|
15910
|
-
directRoutesOnly?: boolean;
|
|
15911
|
-
configParams?: ConfigurationParameters;
|
|
15912
|
-
};
|
|
15913
|
-
};
|
|
15933
|
+
swapOpts: SwapOpts;
|
|
15914
15934
|
addressLookupTableAccounts?: AddressLookupTableAccount[];
|
|
15915
15935
|
overrideInferAccounts?: {
|
|
15916
15936
|
group?: PublicKey;
|
|
@@ -15937,15 +15957,7 @@ interface MakeSwapDebtTxParams {
|
|
|
15937
15957
|
borrowBank: BankType;
|
|
15938
15958
|
tokenProgram: PublicKey;
|
|
15939
15959
|
};
|
|
15940
|
-
swapOpts:
|
|
15941
|
-
jupiterOptions?: {
|
|
15942
|
-
slippageMode: "DYNAMIC" | "FIXED";
|
|
15943
|
-
slippageBps: number;
|
|
15944
|
-
platformFeeBps: number;
|
|
15945
|
-
directRoutesOnly?: boolean;
|
|
15946
|
-
configParams?: ConfigurationParameters;
|
|
15947
|
-
};
|
|
15948
|
-
};
|
|
15960
|
+
swapOpts: SwapOpts;
|
|
15949
15961
|
addressLookupTableAccounts?: AddressLookupTableAccount[];
|
|
15950
15962
|
overrideInferAccounts?: {
|
|
15951
15963
|
group?: PublicKey;
|
|
@@ -17217,19 +17229,75 @@ interface ComputeMaxWithdrawForBankParams {
|
|
|
17217
17229
|
*/
|
|
17218
17230
|
declare function computeMaxWithdrawForBank(params: ComputeMaxWithdrawForBankParams): BigNumber$1;
|
|
17219
17231
|
|
|
17232
|
+
declare function toJupiterConfig(apiConfig?: SwapApiConfig): ConfigurationParameters | undefined;
|
|
17220
17233
|
type GetJupiterSwapIxsForFlashloanParams = {
|
|
17221
17234
|
quoteParams: QuoteGetRequest;
|
|
17222
17235
|
authority: PublicKey;
|
|
17223
17236
|
connection: Connection;
|
|
17224
17237
|
destinationTokenAccount: PublicKey;
|
|
17225
|
-
|
|
17238
|
+
apiConfig?: SwapApiConfig;
|
|
17239
|
+
maxSwapAccounts?: number;
|
|
17226
17240
|
};
|
|
17227
|
-
declare const getJupiterSwapIxsForFlashloan: ({ quoteParams, authority, connection, destinationTokenAccount,
|
|
17228
|
-
|
|
17229
|
-
|
|
17230
|
-
|
|
17231
|
-
|
|
17232
|
-
|
|
17241
|
+
declare const getJupiterSwapIxsForFlashloan: ({ quoteParams, authority, connection, destinationTokenAccount, apiConfig, maxSwapAccounts, }: GetJupiterSwapIxsForFlashloanParams) => Promise<SwapIxsResult>;
|
|
17242
|
+
|
|
17243
|
+
type TitanQuoteParams = {
|
|
17244
|
+
inputMint: string;
|
|
17245
|
+
outputMint: string;
|
|
17246
|
+
amount: number;
|
|
17247
|
+
swapMode: "ExactIn" | "ExactOut";
|
|
17248
|
+
slippageBps?: number;
|
|
17249
|
+
platformFeeBps?: number;
|
|
17250
|
+
directRoutesOnly?: boolean;
|
|
17251
|
+
sizeConstraint?: number;
|
|
17252
|
+
maxSwapAccounts?: number;
|
|
17253
|
+
maxSwapTotalAccounts?: number;
|
|
17254
|
+
};
|
|
17255
|
+
type GetTitanSwapIxsParams = {
|
|
17256
|
+
quoteParams: TitanQuoteParams;
|
|
17257
|
+
authority: PublicKey;
|
|
17258
|
+
connection: Connection;
|
|
17259
|
+
destinationTokenAccount: PublicKey;
|
|
17260
|
+
apiConfig?: SwapApiConfig;
|
|
17261
|
+
};
|
|
17262
|
+
type GetTitanExactOutEstimateParams = {
|
|
17263
|
+
inputMint: string;
|
|
17264
|
+
outputMint: string;
|
|
17265
|
+
amount: number;
|
|
17266
|
+
slippageBps?: number;
|
|
17267
|
+
apiConfig?: SwapApiConfig;
|
|
17268
|
+
};
|
|
17269
|
+
declare const getTitanSwapIxsForFlashloan: ({ quoteParams, authority, connection, destinationTokenAccount, apiConfig, }: GetTitanSwapIxsParams) => Promise<SwapIxsResult>;
|
|
17270
|
+
declare const getTitanExactOutEstimate: (params: GetTitanExactOutEstimateParams) => Promise<{
|
|
17271
|
+
otherAmountThreshold: string;
|
|
17272
|
+
quoteResult: SwapQuoteResult;
|
|
17273
|
+
}>;
|
|
17274
|
+
|
|
17275
|
+
type GetSwapIxsForFlashloanParams = {
|
|
17276
|
+
inputMint: string;
|
|
17277
|
+
outputMint: string;
|
|
17278
|
+
amount: number;
|
|
17279
|
+
swapMode: "ExactIn" | "ExactOut";
|
|
17280
|
+
authority: PublicKey;
|
|
17281
|
+
connection: Connection;
|
|
17282
|
+
destinationTokenAccount: PublicKey;
|
|
17283
|
+
swapOpts: SwapOpts;
|
|
17284
|
+
sizeConstraint?: number;
|
|
17285
|
+
maxSwapTotalAccounts?: number;
|
|
17286
|
+
};
|
|
17287
|
+
declare const getSwapIxsForFlashloan: (params: GetSwapIxsForFlashloanParams) => Promise<SwapIxsResult>;
|
|
17288
|
+
type GetExactOutEstimateParams = {
|
|
17289
|
+
inputMint: string;
|
|
17290
|
+
outputMint: string;
|
|
17291
|
+
amount: number;
|
|
17292
|
+
swapOpts: SwapOpts;
|
|
17293
|
+
connection: Connection;
|
|
17294
|
+
};
|
|
17295
|
+
type ExactOutEstimateResult = {
|
|
17296
|
+
otherAmountThreshold: string;
|
|
17297
|
+
quoteResult: SwapQuoteResult;
|
|
17298
|
+
};
|
|
17299
|
+
declare const getExactOutEstimate: (params: GetExactOutEstimateParams) => Promise<ExactOutEstimateResult>;
|
|
17300
|
+
declare function mapJupiterQuoteToSwapQuoteResult(quote: QuoteResponse): SwapQuoteResult;
|
|
17233
17301
|
|
|
17234
17302
|
declare function computeClosePositionTokenAmount(position: {
|
|
17235
17303
|
amount: number;
|
|
@@ -17240,6 +17308,115 @@ declare function isWholePosition(position: {
|
|
|
17240
17308
|
isLending: boolean;
|
|
17241
17309
|
}, amount: number, mintDecimals: number): boolean;
|
|
17242
17310
|
|
|
17311
|
+
/**
|
|
17312
|
+
* Synchronous flashloan TX size estimator.
|
|
17313
|
+
*
|
|
17314
|
+
* Estimates the serialized size of a V0 flashloan transaction without compiling
|
|
17315
|
+
* or serializing the message. This allows us to synchronously compute the byte
|
|
17316
|
+
* overhead of non-swap instructions and determine how much budget remains for
|
|
17317
|
+
* the swap IX (e.g. Titan).
|
|
17318
|
+
*
|
|
17319
|
+
* Thoroughly tested using R&D scripts (rnd-flashloan-size.ts) and cross-referenced
|
|
17320
|
+
* against actual serialized transaction sizes across all action types (Loop, Repay,
|
|
17321
|
+
* SwapCollateral, SwapDebt) and asset tag variants (Standard, Kamino, Drift).
|
|
17322
|
+
*/
|
|
17323
|
+
|
|
17324
|
+
/**
|
|
17325
|
+
* Estimate the serialized size of a V0 transaction from its instructions and LUTs.
|
|
17326
|
+
* Simulates the key resolution logic of TransactionMessage.compileToV0Message
|
|
17327
|
+
* without actually compiling or serializing the message.
|
|
17328
|
+
*/
|
|
17329
|
+
declare function computeV0TxSize(ixs: TransactionInstruction[], payerKey: PublicKey, luts: AddressLookupTableAccount[]): {
|
|
17330
|
+
size: number;
|
|
17331
|
+
accountCount: number;
|
|
17332
|
+
writableAccountCount: number;
|
|
17333
|
+
};
|
|
17334
|
+
interface FlashloanSwapConstraints {
|
|
17335
|
+
/** Available bytes for swap instruction(s) */
|
|
17336
|
+
sizeConstraint: number;
|
|
17337
|
+
/** Available total account slots for swap instruction(s) */
|
|
17338
|
+
maxSwapTotalAccounts: number;
|
|
17339
|
+
}
|
|
17340
|
+
/**
|
|
17341
|
+
* Compute the available byte budget and account budget for swap instructions
|
|
17342
|
+
* in a flashloan TX. Compiles a real V0 message and serializes it for an exact
|
|
17343
|
+
* non-swap byte count.
|
|
17344
|
+
*
|
|
17345
|
+
* @param ixs - The non-swap IXs (CU requests + primary + secondary).
|
|
17346
|
+
* Must NOT include BeginFL/EndFL — those are synthesized internally.
|
|
17347
|
+
*/
|
|
17348
|
+
declare function computeFlashLoanNonSwapBudget({ program, marginfiAccount, ixs, bankMap, addressLookupTableAccounts, }: {
|
|
17349
|
+
program: MarginfiProgram;
|
|
17350
|
+
marginfiAccount: {
|
|
17351
|
+
address: PublicKey;
|
|
17352
|
+
authority: PublicKey;
|
|
17353
|
+
balances: BalanceType[];
|
|
17354
|
+
};
|
|
17355
|
+
ixs: TransactionInstruction[];
|
|
17356
|
+
bankMap: Map<string, BankType>;
|
|
17357
|
+
addressLookupTableAccounts: AddressLookupTableAccount[];
|
|
17358
|
+
}): FlashloanSwapConstraints;
|
|
17359
|
+
interface FlashloanPrecheckResult {
|
|
17360
|
+
/** Exact serialized size of the full flashloan TX */
|
|
17361
|
+
fullTxSize: number;
|
|
17362
|
+
/** How many bytes over MAX_TX_SIZE (negative = under budget) */
|
|
17363
|
+
overshoot: number;
|
|
17364
|
+
/** Total writable accounts in the full TX */
|
|
17365
|
+
writableAccounts: number;
|
|
17366
|
+
/** Total accounts (static + LUT) in the full TX */
|
|
17367
|
+
totalAccounts: number;
|
|
17368
|
+
}
|
|
17369
|
+
/**
|
|
17370
|
+
* Compile the full flashloan TX (all IXs + all LUTs) and return exact size info.
|
|
17371
|
+
* Call this AFTER receiving swap IXs but BEFORE makeFlashLoanTx to detect overflows
|
|
17372
|
+
* early with good diagnostics.
|
|
17373
|
+
*
|
|
17374
|
+
* Uses a dummy blockhash (same 32 bytes as a real one) so the size is exact.
|
|
17375
|
+
*/
|
|
17376
|
+
declare function compileFlashloanPrecheck({ allIxs, payer, luts, sizeConstraint, swapIxCount, swapLutCount, }: {
|
|
17377
|
+
allIxs: TransactionInstruction[];
|
|
17378
|
+
payer: PublicKey;
|
|
17379
|
+
luts: AddressLookupTableAccount[];
|
|
17380
|
+
sizeConstraint: number;
|
|
17381
|
+
swapIxCount: number;
|
|
17382
|
+
swapLutCount: number;
|
|
17383
|
+
}): FlashloanPrecheckResult;
|
|
17384
|
+
type FlashloanBudgetIx = {
|
|
17385
|
+
type: "borrow";
|
|
17386
|
+
bank: BankType;
|
|
17387
|
+
tokenProgram: PublicKey;
|
|
17388
|
+
} | {
|
|
17389
|
+
type: "repay";
|
|
17390
|
+
bank: BankType;
|
|
17391
|
+
tokenProgram: PublicKey;
|
|
17392
|
+
} | {
|
|
17393
|
+
type: "deposit";
|
|
17394
|
+
bank: BankType;
|
|
17395
|
+
tokenProgram: PublicKey;
|
|
17396
|
+
} | {
|
|
17397
|
+
type: "withdraw";
|
|
17398
|
+
bank: BankType;
|
|
17399
|
+
tokenProgram: PublicKey;
|
|
17400
|
+
};
|
|
17401
|
+
/**
|
|
17402
|
+
* Compute flashloan swap constraints by building dummy primary + secondary IXs
|
|
17403
|
+
* and measuring the remaining TX budget. Replaces the duplicated switch/case
|
|
17404
|
+
* blocks in each action file.
|
|
17405
|
+
*/
|
|
17406
|
+
declare function computeFlashloanSwapConstraints({ program, marginfiAccount, bankMap, addressLookupTableAccounts, bankMetadataMap, primaryIx, secondaryIx, overrideInferAccounts, }: {
|
|
17407
|
+
program: MarginfiProgram;
|
|
17408
|
+
marginfiAccount: MarginfiAccountType;
|
|
17409
|
+
bankMap: Map<string, BankType>;
|
|
17410
|
+
addressLookupTableAccounts: AddressLookupTableAccount[];
|
|
17411
|
+
bankMetadataMap: BankIntegrationMetadataMap;
|
|
17412
|
+
primaryIx: FlashloanBudgetIx;
|
|
17413
|
+
secondaryIx: FlashloanBudgetIx;
|
|
17414
|
+
overrideInferAccounts?: {
|
|
17415
|
+
group?: PublicKey;
|
|
17416
|
+
authority?: PublicKey;
|
|
17417
|
+
};
|
|
17418
|
+
}): Promise<FlashloanSwapConstraints>;
|
|
17419
|
+
|
|
17243
17420
|
/**
|
|
17244
17421
|
* Creates an instruction to close a Marginfi account.
|
|
17245
17422
|
*
|
|
@@ -17574,7 +17751,7 @@ declare function makeJuplendDepositTx(params: MakeJuplendDepositTxParams): Promi
|
|
|
17574
17751
|
declare function makeLoopTx(params: MakeLoopTxParams): Promise<{
|
|
17575
17752
|
transactions: ExtendedV0Transaction[];
|
|
17576
17753
|
actionTxIndex: number;
|
|
17577
|
-
quoteResponse:
|
|
17754
|
+
quoteResponse: SwapQuoteResult | undefined;
|
|
17578
17755
|
}>;
|
|
17579
17756
|
|
|
17580
17757
|
/**
|
|
@@ -17633,7 +17810,7 @@ declare function makeRepayIx({ program, bank, tokenProgram, amount, authority, a
|
|
|
17633
17810
|
declare function makeRepayTx(params: MakeRepayTxParams): Promise<ExtendedTransaction>;
|
|
17634
17811
|
declare function makeRepayWithCollatTx(params: MakeRepayWithCollatTxParams): Promise<{
|
|
17635
17812
|
transactions: ExtendedV0Transaction[];
|
|
17636
|
-
swapQuote:
|
|
17813
|
+
swapQuote: SwapQuoteResult | undefined;
|
|
17637
17814
|
amountToRepay: number;
|
|
17638
17815
|
}>;
|
|
17639
17816
|
|
|
@@ -17661,14 +17838,14 @@ declare function makeClearEmissionsIx(program: MarginfiProgram, marginfiAccount:
|
|
|
17661
17838
|
* oraclePrices,
|
|
17662
17839
|
* withdrawOpts: { totalPositionAmount: 10, withdrawBank: jitoSolBank, tokenProgram },
|
|
17663
17840
|
* depositOpts: { depositBank: mSolBank, tokenProgram },
|
|
17664
|
-
* swapOpts: {
|
|
17841
|
+
* swapOpts: { swapConfig: { provider: SwapProvider.JUPITER, slippageMode: "DYNAMIC", slippageBps: 50, platformFeeBps: 0 } },
|
|
17665
17842
|
* // ...
|
|
17666
17843
|
* });
|
|
17667
17844
|
*/
|
|
17668
17845
|
declare function makeSwapCollateralTx(params: MakeSwapCollateralTxParams): Promise<{
|
|
17669
17846
|
transactions: ExtendedV0Transaction[];
|
|
17670
17847
|
actionTxIndex: number;
|
|
17671
|
-
quoteResponse:
|
|
17848
|
+
quoteResponse: SwapQuoteResult | undefined;
|
|
17672
17849
|
}>;
|
|
17673
17850
|
|
|
17674
17851
|
/**
|
|
@@ -17686,14 +17863,14 @@ declare function makeSwapCollateralTx(params: MakeSwapCollateralTxParams): Promi
|
|
|
17686
17863
|
* oraclePrices,
|
|
17687
17864
|
* repayOpts: { totalPositionAmount: 100, repayBank: usdcBank, tokenProgram },
|
|
17688
17865
|
* borrowOpts: { borrowBank: solBank, tokenProgram },
|
|
17689
|
-
* swapOpts: {
|
|
17866
|
+
* swapOpts: { swapConfig: { provider: SwapProvider.JUPITER, slippageMode: "DYNAMIC", slippageBps: 50, platformFeeBps: 0 } },
|
|
17690
17867
|
* // ...
|
|
17691
17868
|
* });
|
|
17692
17869
|
*/
|
|
17693
17870
|
declare function makeSwapDebtTx(params: MakeSwapDebtTxParams): Promise<{
|
|
17694
17871
|
transactions: ExtendedV0Transaction[];
|
|
17695
17872
|
actionTxIndex: number;
|
|
17696
|
-
quoteResponse:
|
|
17873
|
+
quoteResponse: SwapQuoteResult | undefined;
|
|
17697
17874
|
}>;
|
|
17698
17875
|
|
|
17699
17876
|
/**
|
|
@@ -18094,7 +18271,7 @@ declare function computeMaxLeverage(depositBank: BankType, borrowBank: BankType,
|
|
|
18094
18271
|
* );
|
|
18095
18272
|
* ```
|
|
18096
18273
|
*/
|
|
18097
|
-
declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType,
|
|
18274
|
+
declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType, depositPriceUsd: number, borrowPriceUsd: number, opts?: {
|
|
18098
18275
|
assetWeightInit?: BigNumber$1;
|
|
18099
18276
|
liabilityWeightInit?: BigNumber$1;
|
|
18100
18277
|
}): {
|
|
@@ -19059,10 +19236,14 @@ declare function getConfig(environment?: Environment, overrides?: Partial<Omit<P
|
|
|
19059
19236
|
declare enum TransactionBuildingErrorCode {
|
|
19060
19237
|
JUPITER_SWAP_SIZE_EXCEEDED_REPAY = "JUPITER_SWAP_SIZE_EXCEEDED_REPAY",
|
|
19061
19238
|
JUPITER_SWAP_SIZE_EXCEEDED_LOOP = "JUPITER_SWAP_SIZE_EXCEEDED_LOOP",
|
|
19239
|
+
SWAP_SIZE_EXCEEDED_LOOP = "SWAP_SIZE_EXCEEDED_LOOP",
|
|
19240
|
+
SWAP_SIZE_EXCEEDED_REPAY = "SWAP_SIZE_EXCEEDED_REPAY",
|
|
19062
19241
|
ORACLE_CRANK_FAILED = "ORACLE_CRANK_FAILED",
|
|
19063
19242
|
KAMINO_RESERVE_NOT_FOUND = "KAMINO_RESERVE_NOT_FOUND",
|
|
19064
19243
|
DRIFT_STATE_NOT_FOUND = "DRIFT_STATE_NOT_FOUND",
|
|
19065
|
-
JUPLEND_STATE_NOT_FOUND = "JUPLEND_STATE_NOT_FOUND"
|
|
19244
|
+
JUPLEND_STATE_NOT_FOUND = "JUPLEND_STATE_NOT_FOUND",
|
|
19245
|
+
SWITCHBOARD_FEED_UPDATE_FAILED = "SWITCHBOARD_FEED_UPDATE_FAILED",
|
|
19246
|
+
SWAP_QUOTE_FAILED = "SWAP_QUOTE_FAILED"
|
|
19066
19247
|
}
|
|
19067
19248
|
/**
|
|
19068
19249
|
* Typed details for each error code
|
|
@@ -19076,6 +19257,16 @@ interface TransactionBuildingErrorDetails {
|
|
|
19076
19257
|
bytes: number;
|
|
19077
19258
|
accountKeys: number;
|
|
19078
19259
|
};
|
|
19260
|
+
[TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_LOOP]: {
|
|
19261
|
+
bytes: number;
|
|
19262
|
+
accountKeys: number;
|
|
19263
|
+
provider?: string;
|
|
19264
|
+
};
|
|
19265
|
+
[TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_REPAY]: {
|
|
19266
|
+
bytes: number;
|
|
19267
|
+
accountKeys: number;
|
|
19268
|
+
provider?: string;
|
|
19269
|
+
};
|
|
19079
19270
|
[TransactionBuildingErrorCode.ORACLE_CRANK_FAILED]: {
|
|
19080
19271
|
uncrankableLiabilities: Array<{
|
|
19081
19272
|
bankAddress: string;
|
|
@@ -19105,6 +19296,16 @@ interface TransactionBuildingErrorDetails {
|
|
|
19105
19296
|
bankMint: string;
|
|
19106
19297
|
bankSymbol?: string;
|
|
19107
19298
|
};
|
|
19299
|
+
[TransactionBuildingErrorCode.SWITCHBOARD_FEED_UPDATE_FAILED]: {
|
|
19300
|
+
oracleKeys: string[];
|
|
19301
|
+
reason: string;
|
|
19302
|
+
};
|
|
19303
|
+
[TransactionBuildingErrorCode.SWAP_QUOTE_FAILED]: {
|
|
19304
|
+
provider: string;
|
|
19305
|
+
inputMint: string;
|
|
19306
|
+
outputMint: string;
|
|
19307
|
+
reason: string;
|
|
19308
|
+
};
|
|
19108
19309
|
}
|
|
19109
19310
|
/**
|
|
19110
19311
|
* Error thrown during transaction building in the SDK.
|
|
@@ -19120,6 +19321,8 @@ declare class TransactionBuildingError<T extends TransactionBuildingErrorCode =
|
|
|
19120
19321
|
*/
|
|
19121
19322
|
static jupiterSwapSizeExceededLoop(bytes: number, accountKeys: number): TransactionBuildingError<TransactionBuildingErrorCode.JUPITER_SWAP_SIZE_EXCEEDED_LOOP>;
|
|
19122
19323
|
static jupiterSwapSizeExceededRepay(bytes: number, accountKeys: number): TransactionBuildingError<TransactionBuildingErrorCode.JUPITER_SWAP_SIZE_EXCEEDED_REPAY>;
|
|
19324
|
+
static swapSizeExceededLoop(bytes: number, accountKeys: number, provider?: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_LOOP>;
|
|
19325
|
+
static swapSizeExceededRepay(bytes: number, accountKeys: number, provider?: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_REPAY>;
|
|
19123
19326
|
/**
|
|
19124
19327
|
* Failed to crank oracles for one or more banks
|
|
19125
19328
|
*/
|
|
@@ -19146,6 +19349,14 @@ declare class TransactionBuildingError<T extends TransactionBuildingErrorCode =
|
|
|
19146
19349
|
* Failed to find JupLend state for a bank
|
|
19147
19350
|
*/
|
|
19148
19351
|
static jupLendStateNotFound(bankAddress: string, bankMint: string, bankSymbol?: string): TransactionBuildingError<TransactionBuildingErrorCode.JUPLEND_STATE_NOT_FOUND>;
|
|
19352
|
+
/**
|
|
19353
|
+
* Failed to update Switchboard price feeds
|
|
19354
|
+
*/
|
|
19355
|
+
static switchboardFeedUpdateFailed(oracleKeys: string[], reason: string): TransactionBuildingError<TransactionBuildingErrorCode.SWITCHBOARD_FEED_UPDATE_FAILED>;
|
|
19356
|
+
/**
|
|
19357
|
+
* Failed to get a swap quote from any provider
|
|
19358
|
+
*/
|
|
19359
|
+
static swapQuoteFailed(provider: string, inputMint: string, outputMint: string, reason: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_QUOTE_FAILED>;
|
|
19149
19360
|
/**
|
|
19150
19361
|
* Generic escape hatch for custom errors
|
|
19151
19362
|
*/
|
|
@@ -19310,6 +19521,7 @@ declare const HOURS_PER_YEAR: number;
|
|
|
19310
19521
|
declare const MAX_U64: string;
|
|
19311
19522
|
|
|
19312
19523
|
declare const MAX_TX_SIZE: number;
|
|
19524
|
+
declare const MAX_ACCOUNT_LOCKS = 64;
|
|
19313
19525
|
declare const BUNDLE_TX_SIZE: number;
|
|
19314
19526
|
declare const PRIORITY_TX_SIZE: number;
|
|
19315
19527
|
|
|
@@ -19812,7 +20024,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
|
|
|
19812
20024
|
* @param params.oraclePrices - Map of current oracle prices
|
|
19813
20025
|
* @param params.depositOpts - Deposit configuration (bank, amount, mode)
|
|
19814
20026
|
* @param params.borrowOpts - Borrow configuration (bank, amount)
|
|
19815
|
-
* @param params.swapOpts -
|
|
20027
|
+
* @param params.swapOpts - Swap configuration (venue, slippage, fees)
|
|
19816
20028
|
* @param params.addressLookupTableAccounts - Address lookup tables
|
|
19817
20029
|
* @param params.overrideInferAccounts - Optional account overrides
|
|
19818
20030
|
* @param params.additionalIxs - Additional instructions to include
|
|
@@ -19827,7 +20039,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
|
|
|
19827
20039
|
makeLoopTx(params: Omit<MakeLoopTxParams, "marginfiAccount">): Promise<{
|
|
19828
20040
|
transactions: ExtendedV0Transaction[];
|
|
19829
20041
|
actionTxIndex: number;
|
|
19830
|
-
quoteResponse:
|
|
20042
|
+
quoteResponse: SwapQuoteResult | undefined;
|
|
19831
20043
|
}>;
|
|
19832
20044
|
/**
|
|
19833
20045
|
* Creates a transaction to repay debt using collateral.
|
|
@@ -19844,7 +20056,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
|
|
|
19844
20056
|
* @param params.oraclePrices - Map of current oracle prices
|
|
19845
20057
|
* @param params.withdrawOpts - Withdraw configuration (bank, amount)
|
|
19846
20058
|
* @param params.repayOpts - Repay configuration (bank, optional amount)
|
|
19847
|
-
* @param params.swapOpts -
|
|
20059
|
+
* @param params.swapOpts - Swap configuration (venue, slippage, fees)
|
|
19848
20060
|
* @param params.addressLookupTableAccounts - Address lookup tables
|
|
19849
20061
|
* @param params.overrideInferAccounts - Optional account overrides
|
|
19850
20062
|
* @param params.additionalIxs - Additional instructions to include
|
|
@@ -19859,7 +20071,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
|
|
|
19859
20071
|
*/
|
|
19860
20072
|
makeRepayWithCollatTx(params: Omit<MakeRepayWithCollatTxParams, "marginfiAccount">): Promise<{
|
|
19861
20073
|
transactions: ExtendedV0Transaction[];
|
|
19862
|
-
swapQuote:
|
|
20074
|
+
swapQuote: SwapQuoteResult | undefined;
|
|
19863
20075
|
amountToRepay: number;
|
|
19864
20076
|
}>;
|
|
19865
20077
|
/**
|
|
@@ -19878,7 +20090,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
|
|
|
19878
20090
|
* @param params.oraclePrices - Map of current oracle prices
|
|
19879
20091
|
* @param params.withdrawOpts - Withdraw configuration (bank, amount, tokenProgram)
|
|
19880
20092
|
* @param params.depositOpts - Deposit configuration (bank, tokenProgram)
|
|
19881
|
-
* @param params.swapOpts -
|
|
20093
|
+
* @param params.swapOpts - Swap configuration (venue, slippage, fees)
|
|
19882
20094
|
* @param params.addressLookupTableAccounts - Address lookup tables
|
|
19883
20095
|
* @param params.overrideInferAccounts - Optional account overrides
|
|
19884
20096
|
* @param params.additionalIxs - Additional instructions to include
|
|
@@ -19894,7 +20106,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
|
|
|
19894
20106
|
makeSwapCollateralTx(params: Omit<MakeSwapCollateralTxParams, "marginfiAccount">): Promise<{
|
|
19895
20107
|
transactions: ExtendedV0Transaction[];
|
|
19896
20108
|
actionTxIndex: number;
|
|
19897
|
-
quoteResponse:
|
|
20109
|
+
quoteResponse: SwapQuoteResult | undefined;
|
|
19898
20110
|
}>;
|
|
19899
20111
|
/**
|
|
19900
20112
|
* Creates a transaction to swap one debt position to another using a flash loan.
|
|
@@ -19912,7 +20124,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
|
|
|
19912
20124
|
* @param params.oraclePrices - Map of current oracle prices
|
|
19913
20125
|
* @param params.repayOpts - Repay configuration (bank, amount, tokenProgram)
|
|
19914
20126
|
* @param params.borrowOpts - Borrow configuration (bank, tokenProgram)
|
|
19915
|
-
* @param params.swapOpts -
|
|
20127
|
+
* @param params.swapOpts - Swap configuration (venue, slippage, fees)
|
|
19916
20128
|
* @param params.addressLookupTableAccounts - Address lookup tables
|
|
19917
20129
|
* @param params.overrideInferAccounts - Optional account overrides
|
|
19918
20130
|
* @param params.additionalIxs - Additional instructions to include
|
|
@@ -19927,7 +20139,7 @@ declare class MarginfiAccount implements MarginfiAccountType {
|
|
|
19927
20139
|
makeSwapDebtTx(params: Omit<MakeSwapDebtTxParams, "marginfiAccount">): Promise<{
|
|
19928
20140
|
transactions: ExtendedV0Transaction[];
|
|
19929
20141
|
actionTxIndex: number;
|
|
19930
|
-
quoteResponse:
|
|
20142
|
+
quoteResponse: SwapQuoteResult | undefined;
|
|
19931
20143
|
}>;
|
|
19932
20144
|
/**
|
|
19933
20145
|
* Creates a deposit transaction.
|
|
@@ -20226,7 +20438,7 @@ declare class MarginfiAccountWrapper {
|
|
|
20226
20438
|
makeLoopTx(params: Omit<MakeLoopTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
|
|
20227
20439
|
transactions: ExtendedV0Transaction[];
|
|
20228
20440
|
actionTxIndex: number;
|
|
20229
|
-
quoteResponse:
|
|
20441
|
+
quoteResponse: SwapQuoteResult | undefined;
|
|
20230
20442
|
}>;
|
|
20231
20443
|
/**
|
|
20232
20444
|
* Creates a repay with collateral transaction with auto-injected client data.
|
|
@@ -20237,7 +20449,7 @@ declare class MarginfiAccountWrapper {
|
|
|
20237
20449
|
*/
|
|
20238
20450
|
makeRepayWithCollatTx(params: Omit<MakeRepayWithCollatTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
|
|
20239
20451
|
transactions: ExtendedV0Transaction[];
|
|
20240
|
-
swapQuote:
|
|
20452
|
+
swapQuote: SwapQuoteResult | undefined;
|
|
20241
20453
|
amountToRepay: number;
|
|
20242
20454
|
}>;
|
|
20243
20455
|
/**
|
|
@@ -20253,7 +20465,7 @@ declare class MarginfiAccountWrapper {
|
|
|
20253
20465
|
makeSwapCollateralTx(params: Omit<MakeSwapCollateralTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
|
|
20254
20466
|
transactions: ExtendedV0Transaction[];
|
|
20255
20467
|
actionTxIndex: number;
|
|
20256
|
-
quoteResponse:
|
|
20468
|
+
quoteResponse: SwapQuoteResult | undefined;
|
|
20257
20469
|
}>;
|
|
20258
20470
|
/**
|
|
20259
20471
|
* Creates a swap debt transaction with auto-injected client data.
|
|
@@ -20268,7 +20480,7 @@ declare class MarginfiAccountWrapper {
|
|
|
20268
20480
|
makeSwapDebtTx(params: Omit<MakeSwapDebtTxParams, "program" | "marginfiAccount" | "bankMap" | "oraclePrices" | "bankMetadataMap" | "addressLookupTableAccounts">): Promise<{
|
|
20269
20481
|
transactions: ExtendedV0Transaction[];
|
|
20270
20482
|
actionTxIndex: number;
|
|
20271
|
-
quoteResponse:
|
|
20483
|
+
quoteResponse: SwapQuoteResult | undefined;
|
|
20272
20484
|
}>;
|
|
20273
20485
|
/**
|
|
20274
20486
|
* Creates a deposit transaction with auto-injected client data.
|
|
@@ -20503,4 +20715,4 @@ declare class MarginfiAccountWrapper {
|
|
|
20503
20715
|
getClient(): Project0Client;
|
|
20504
20716
|
}
|
|
20505
20717
|
|
|
20506
|
-
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_SWAP, AccountFlags, AccountType, type ActionEmodeImpact, type ActiveEmodePair, type ActiveStakePoolMap, type Amount, type AmountType, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, type BalanceType, type BalanceTypeDto, Bank, type BankAddress, BankConfig, type BankConfigCompactRaw, type BankConfigDto, BankConfigFlag, type BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, type BankConfigRawDto, type BankConfigType, type BankIntegrationMetadata, type BankIntegrationMetadataDto, type BankIntegrationMetadataMap, type BankIntegrationMetadataMapDto, type BankMap, type BankMetadata, type BankMetadataRaw, type BankRaw, type BankRawDto, type BankType, type BankTypeDto, BankVaultType, type ComputeAssetHealthComponentParams, type ComputeAssetUsdValueParams, type ComputeBalanceUsdValueParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeHealthComponentsWithoutBiasParams, type ComputeLiabilityHealthComponentParams, type ComputeLiabilityUsdValueParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, type ComputeUsdValueParams, ConfigRaw, type CrankCombination, type CrankabilityResult, DEFAULT_ORACLE_MAX_AGE, DISABLED_FLAG, type DriftBankInput, type DriftMetadata, type DriftStateByBank, type DriftStateJsonByBank, EMPTY_HEALTH_CACHE, type EmodeConfigRaw, type EmodeConfigRawDto, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsRaw, type EmodeSettingsRawDto, type EmodeSettingsType, EmodeTag, type Environment, type ExtendedTransaction, type ExtendedTransactionProperties, type ExtendedV0Transaction, FLASHLOAN_ENABLED_FLAG, type FeeStateCache, type FetchBankIntegrationMetadataOptions, type FetchDriftMetadataOptions, type FetchJupLendMetadataOptions, type FetchKaminoMetadataOptions, type FlashloanActionResult, type GetAssetWeightParams, type GetBalanceUsdValueWithPriceBiasParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, HealthCacheStatus, type HealthCacheType, type HealthCacheTypeDto, type InstructionsWrapper, type IntegrationType, type InterestRateConfig, type InterestRateConfigCompactRaw, type InterestRateConfigDto, type InterestRateConfigOpt, type InterestRateConfigOptRaw, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, type JupLendBankInput, type JupLendMetadata, type JupLendStateByBank, type JupLendStateJsonByBank, type KaminoBankInput, type KaminoMetadata, type KaminoStateByBank, type KaminoStateJsonByBank, type KaminoStates, LST_MINT, MARGINFI_IDL, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeDepositIxOpts, type MakeDepositIxParams, type MakeDepositTxParams, type MakeDriftDepositIxParams, type MakeDriftDepositTxParams, type MakeDriftWithdrawIxParams, type MakeDriftWithdrawTxParams, type MakeFlashLoanTxParams, type MakeJuplendDepositIxParams, type MakeJuplendDepositTxParams, type MakeJuplendWithdrawIxParams, type MakeJuplendWithdrawTxParams, type MakeKaminoDepositIxParams, type MakeKaminoDepositTxParams, type MakeKaminoWithdrawIxParams, type MakeKaminoWithdrawTxParams, type MakeLoopTxParams, type MakeMergeStakeAccountsTxParams, type MakeMintStakedLstIxParams, type MakeMintStakedLstTxParams, type MakeRedeemStakedLstIxParams, type MakeRedeemStakedLstTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeSetupIxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, type MarginRequirementTypeRaw, MarginfiAccount, type MarginfiAccountRaw, type MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupRaw, type MarginfiGroupType, type MarginfiGroupTypeDto, type MarginfiIdlType, type MarginfiProgram, type MintData, type MintDataMap, OperationalState, type OperationalStateRaw, type OracleConfigOpt, type OracleConfigOptRaw, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSetupRaw, type OracleSourceKey, PDA_BANK_EMISSIONS_AUTH_SEED, PDA_BANK_EMISSIONS_VAULT_SEED, PDA_BANK_FEE_STATE_SEED, PDA_BANK_FEE_VAULT_AUTH_SEED, PDA_BANK_FEE_VAULT_SEED, PDA_BANK_INSURANCE_VAULT_AUTH_SEED, PDA_BANK_INSURANCE_VAULT_SEED, PDA_BANK_LIQUIDITY_VAULT_AUTH_SEED, PDA_BANK_LIQUIDITY_VAULT_SEED, PDA_MARGINFI_ACCOUNT_SEED, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PanicStateCache, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, type Program, Project0Client, type Project0Config, Project0ConfigRaw, type PythOracleServiceOpts, type RatePoint, type RatePointDto, type RatePointRaw, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SmartCrankParams, type SmartCrankResult, type SolanaTransaction, type StakeAccount, type StakePoolMevMap, type StakedBankMetadata, type SwbOracleAiDataByKey, type SwbOracleServiceOpts, TRANSFER_ACCOUNT_AUTHORITY_FLAG, TransactionArenaKeyMap, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, TransactionType, type TypedAmount, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_MINT, type Wallet, type WithdrawWindowCache, type WrappedI80F48, ZERO_ORACLE_KEY, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkBatchOracleCrankability, checkMultipleOraclesCrankability, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, composeRemainingAccounts, computeAccountValue, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, computeBalanceUsdValue, computeBaseInterestRate, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeHealthComponentsWithoutBiasFromBalances, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeSmartCrank, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchMarginfiAccountAddresses, fetchMarginfiAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleAccountsFromAPI, fetchSwbOracleAccountsFromChain, fetchSwbOracleData, fetchSwbOraclePricesFromAPI, fetchSwbOraclePricesFromCrossbar, findRandomAvailableAccountIndex, freezeBankConfigIx, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getDriftCTokenMultiplier, getDriftMetadata, getDriftStatesDto, getEmodePairs, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupLendFTokenMultiplier, getJupLendMetadata, getJupLendStatesDto, getJupiterSwapIxsForFlashloan, getKaminoCTokenMultiplier, getKaminoMetadata, getKaminoStatesDto, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isFlashloan, isV0Tx, isWeightedPrice, isWholePosition, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBundleTipIx, makeClearEmissionsIx, makeCloseMarginfiAccountIx, makeCloseMarginfiAccountTx, makeCrankSwbFeedIx, makeCreateAccountIxWithProjection, makeCreateAccountTxWithProjection, makeCreateMarginfiAccountIx, makeCreateMarginfiAccountTx, makeDepositIx, makeDepositTx, makeDriftDepositIx, makeDriftDepositTx, makeDriftWithdrawIx, makeDriftWithdrawTx, makeEndFlashLoanIx, makeFlashLoanTx, makeJuplendDepositIx, makeJuplendDepositTx, makeJuplendWithdrawIx, makeJuplendWithdrawTx, makeKaminoDepositIx, makeKaminoDepositTx, makeKaminoWithdrawIx, makeKaminoWithdrawTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makePoolAddBankIx, makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeSetupIx, makeSmartCrankSwbFeedIx, makeSwapCollateralTx, makeSwapDebtTx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateSwbFeedIx, makeVersionedTransaction, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapBrokenFeedsToOraclePrices, mapPythBanksToOraclePrices, mapSwbBanksToOraclePrices, marginfiAccountToDto, nativeToUi, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, parseSwbOraclePriceData, partitionBanksByCrankability, resolveAmount, serializeBankConfigOpt, serializeInterestRateConfig, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, toBankConfigDto, toBankDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toNumber, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, wrappedI80F48toBigNumber };
|
|
20718
|
+
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_SWAP, AccountFlags, AccountType, type ActionEmodeImpact, type ActiveEmodePair, type ActiveStakePoolMap, type Amount, type AmountType, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, type BalanceType, type BalanceTypeDto, Bank, type BankAddress, BankConfig, type BankConfigCompactRaw, type BankConfigDto, BankConfigFlag, type BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, type BankConfigRawDto, type BankConfigType, type BankIntegrationMetadata, type BankIntegrationMetadataDto, type BankIntegrationMetadataMap, type BankIntegrationMetadataMapDto, type BankMap, type BankMetadata, type BankMetadataRaw, type BankRaw, type BankRawDto, type BankType, type BankTypeDto, BankVaultType, type ComputeAssetHealthComponentParams, type ComputeAssetUsdValueParams, type ComputeBalanceUsdValueParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeHealthComponentsWithoutBiasParams, type ComputeLiabilityHealthComponentParams, type ComputeLiabilityUsdValueParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, type ComputeUsdValueParams, ConfigRaw, type CrankCombination, type CrankabilityResult, DEFAULT_ORACLE_MAX_AGE, DISABLED_FLAG, type DriftBankInput, type DriftMetadata, type DriftStateByBank, type DriftStateJsonByBank, EMPTY_HEALTH_CACHE, type EmodeConfigRaw, type EmodeConfigRawDto, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsRaw, type EmodeSettingsRawDto, type EmodeSettingsType, EmodeTag, type Environment, type ExactOutEstimateResult, type ExtendedTransaction, type ExtendedTransactionProperties, type ExtendedV0Transaction, FLASHLOAN_ENABLED_FLAG, type FeeStateCache, type FetchBankIntegrationMetadataOptions, type FetchDriftMetadataOptions, type FetchJupLendMetadataOptions, type FetchKaminoMetadataOptions, type FlashloanActionResult, type FlashloanBudgetIx, type FlashloanPrecheckResult, type FlashloanSwapConstraints, type GetAssetWeightParams, type GetBalanceUsdValueWithPriceBiasParams, type GetExactOutEstimateParams, type GetSwapIxsForFlashloanParams, type GetTitanExactOutEstimateParams, type GetTitanSwapIxsParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, HealthCacheStatus, type HealthCacheType, type HealthCacheTypeDto, type InstructionsWrapper, type IntegrationType, type InterestRateConfig, type InterestRateConfigCompactRaw, type InterestRateConfigDto, type InterestRateConfigOpt, type InterestRateConfigOptRaw, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, type JupLendBankInput, type JupLendMetadata, type JupLendStateByBank, type JupLendStateJsonByBank, type KaminoBankInput, type KaminoMetadata, type KaminoStateByBank, type KaminoStateJsonByBank, type KaminoStates, LST_MINT, MARGINFI_IDL, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_ACCOUNT_LOCKS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeDepositIxOpts, type MakeDepositIxParams, type MakeDepositTxParams, type MakeDriftDepositIxParams, type MakeDriftDepositTxParams, type MakeDriftWithdrawIxParams, type MakeDriftWithdrawTxParams, type MakeFlashLoanTxParams, type MakeJuplendDepositIxParams, type MakeJuplendDepositTxParams, type MakeJuplendWithdrawIxParams, type MakeJuplendWithdrawTxParams, type MakeKaminoDepositIxParams, type MakeKaminoDepositTxParams, type MakeKaminoWithdrawIxParams, type MakeKaminoWithdrawTxParams, type MakeLoopTxParams, type MakeMergeStakeAccountsTxParams, type MakeMintStakedLstIxParams, type MakeMintStakedLstTxParams, type MakeRedeemStakedLstIxParams, type MakeRedeemStakedLstTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeSetupIxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, type MarginRequirementTypeRaw, MarginfiAccount, type MarginfiAccountRaw, type MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupRaw, type MarginfiGroupType, type MarginfiGroupTypeDto, type MarginfiIdlType, type MarginfiProgram, type MintData, type MintDataMap, OperationalState, type OperationalStateRaw, type OracleConfigOpt, type OracleConfigOptRaw, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSetupRaw, type OracleSourceKey, PDA_BANK_EMISSIONS_AUTH_SEED, PDA_BANK_EMISSIONS_VAULT_SEED, PDA_BANK_FEE_STATE_SEED, PDA_BANK_FEE_VAULT_AUTH_SEED, PDA_BANK_FEE_VAULT_SEED, PDA_BANK_INSURANCE_VAULT_AUTH_SEED, PDA_BANK_INSURANCE_VAULT_SEED, PDA_BANK_LIQUIDITY_VAULT_AUTH_SEED, PDA_BANK_LIQUIDITY_VAULT_SEED, PDA_MARGINFI_ACCOUNT_SEED, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, type PanicStateCache, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, type Program, Project0Client, type Project0Config, Project0ConfigRaw, type PythOracleServiceOpts, type RatePoint, type RatePointDto, type RatePointRaw, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SmartCrankParams, type SmartCrankResult, type SolanaTransaction, type StakeAccount, type StakePoolMevMap, type StakedBankMetadata, type SwapApiConfig, type SwapIxsResult, type SwapOpts, SwapProvider, type SwapProviderConfig, type SwapProviderEntry, type SwapQuoteResult, type SwbOracleAiDataByKey, type SwbOracleServiceOpts, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TitanQuoteParams, TransactionArenaKeyMap, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, TransactionType, type TypedAmount, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_MINT, type Wallet, type WithdrawWindowCache, type WrappedI80F48, ZERO_ORACLE_KEY, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkBatchOracleCrankability, checkMultipleOraclesCrankability, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, compileFlashloanPrecheck, composeRemainingAccounts, computeAccountValue, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, computeBalanceUsdValue, computeBaseInterestRate, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFlashLoanNonSwapBudget, computeFlashloanSwapConstraints, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeHealthComponentsWithoutBiasFromBalances, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeSmartCrank, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, computeV0TxSize, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchMarginfiAccountAddresses, fetchMarginfiAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleAccountsFromAPI, fetchSwbOracleAccountsFromChain, fetchSwbOracleData, fetchSwbOraclePricesFromAPI, fetchSwbOraclePricesFromCrossbar, findRandomAvailableAccountIndex, freezeBankConfigIx, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getDriftCTokenMultiplier, getDriftMetadata, getDriftStatesDto, getEmodePairs, getExactOutEstimate, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupLendFTokenMultiplier, getJupLendMetadata, getJupLendStatesDto, getJupiterSwapIxsForFlashloan, getKaminoCTokenMultiplier, getKaminoMetadata, getKaminoStatesDto, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapIxsForFlashloan, getTitanExactOutEstimate, getTitanSwapIxsForFlashloan, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, getWritableAccountKeys, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isFlashloan, isV0Tx, isWeightedPrice, isWholePosition, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBundleTipIx, makeClearEmissionsIx, makeCloseMarginfiAccountIx, makeCloseMarginfiAccountTx, makeCrankSwbFeedIx, makeCreateAccountIxWithProjection, makeCreateAccountTxWithProjection, makeCreateMarginfiAccountIx, makeCreateMarginfiAccountTx, makeDepositIx, makeDepositTx, makeDriftDepositIx, makeDriftDepositTx, makeDriftWithdrawIx, makeDriftWithdrawTx, makeEndFlashLoanIx, makeFlashLoanTx, makeJuplendDepositIx, makeJuplendDepositTx, makeJuplendWithdrawIx, makeJuplendWithdrawTx, makeKaminoDepositIx, makeKaminoDepositTx, makeKaminoWithdrawIx, makeKaminoWithdrawTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makePoolAddBankIx, makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeSetupIx, makeSmartCrankSwbFeedIx, makeSwapCollateralTx, makeSwapDebtTx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateSwbFeedIx, makeVersionedTransaction, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapBrokenFeedsToOraclePrices, mapJupiterQuoteToSwapQuoteResult, mapPythBanksToOraclePrices, mapSwbBanksToOraclePrices, marginfiAccountToDto, nativeToUi, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, parseSwbOraclePriceData, partitionBanksByCrankability, resolveAmount, serializeBankConfigOpt, serializeInterestRateConfig, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, toBankConfigDto, toBankDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toJupiterConfig, toNumber, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, wrappedI80F48toBigNumber };
|