@0dotxyz/p0-ts-sdk 2.5.5-alpha.2 → 2.5.5-alpha.4
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 +577 -324
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +167 -37
- package/dist/index.d.ts +167 -37
- package/dist/index.js +572 -325
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -136,12 +136,17 @@ declare function isFlashloan(tx: SolanaTransaction): boolean;
|
|
|
136
136
|
declare function makeVersionedTransaction(blockhash: Blockhash, transaction: Transaction, payer: PublicKey, addressLookupTables?: AddressLookupTableAccount[]): Promise<VersionedTransaction>;
|
|
137
137
|
/**
|
|
138
138
|
* Splits your instructions into as many VersionedTransactions as needed
|
|
139
|
-
* so that none exceed MAX_TX_SIZE
|
|
139
|
+
* so that none exceed MAX_TX_SIZE (minus `sizeMargin`, if given) nor
|
|
140
|
+
* `maxAccountLocks` account locks (if given).
|
|
140
141
|
*/
|
|
141
142
|
declare function splitInstructionsToFitTransactions(mandatoryIxs: TransactionInstruction[], ixs: TransactionInstruction[], opts: {
|
|
142
143
|
blockhash: string;
|
|
143
144
|
payerKey: PublicKey;
|
|
144
145
|
luts: AddressLookupTableAccount[];
|
|
146
|
+
/** Bytes reserved below MAX_TX_SIZE, e.g. for compute-budget ixs appended at send time. */
|
|
147
|
+
sizeMargin?: number;
|
|
148
|
+
/** Also cap the total account locks per transaction (e.g. MAX_ACCOUNT_LOCKS). */
|
|
149
|
+
maxAccountLocks?: number;
|
|
145
150
|
}): VersionedTransaction[];
|
|
146
151
|
/**
|
|
147
152
|
* Enhances a given transaction with additional metadata.
|
|
@@ -1257,6 +1262,46 @@ interface TransferPositionsResult {
|
|
|
1257
1262
|
/** The destination account (passed-in, or the projected account created in the tx). */
|
|
1258
1263
|
destinationAccount: MarginfiAccountType;
|
|
1259
1264
|
}
|
|
1265
|
+
interface MakeBulkWithdrawTxParams {
|
|
1266
|
+
program: MarginfiProgram;
|
|
1267
|
+
connection: Connection;
|
|
1268
|
+
marginfiAccount: MarginfiAccountType;
|
|
1269
|
+
/** Banks whose FULL positions to withdraw, in execution order. */
|
|
1270
|
+
bankAddresses: PublicKey[];
|
|
1271
|
+
bankMap: Map<string, BankType>;
|
|
1272
|
+
oraclePrices: Map<string, OraclePrice>;
|
|
1273
|
+
bankMetadataMap: BankIntegrationMetadataMap;
|
|
1274
|
+
assetShareValueMultiplierByBank: Map<string, BigNumber>;
|
|
1275
|
+
/** Token program per withdrawn bank (base58 bank address → token program id). */
|
|
1276
|
+
tokenProgramsByBank: Map<string, PublicKey>;
|
|
1277
|
+
luts: AddressLookupTableAccount[];
|
|
1278
|
+
crossbarUrl?: string;
|
|
1279
|
+
overrideInferAccounts?: {
|
|
1280
|
+
group?: PublicKey;
|
|
1281
|
+
authority?: PublicKey;
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
interface MakeBulkRepayTxParams {
|
|
1285
|
+
program: MarginfiProgram;
|
|
1286
|
+
connection: Connection;
|
|
1287
|
+
marginfiAccount: MarginfiAccountType;
|
|
1288
|
+
/** Banks whose FULL debts to repay from the wallet. */
|
|
1289
|
+
bankAddresses: PublicKey[];
|
|
1290
|
+
bankMap: Map<string, BankType>;
|
|
1291
|
+
/** Token program per repaid bank (base58 bank address → token program id). */
|
|
1292
|
+
tokenProgramsByBank: Map<string, PublicKey>;
|
|
1293
|
+
addressLookupTableAccounts?: AddressLookupTableAccount[];
|
|
1294
|
+
overrideInferAccounts?: {
|
|
1295
|
+
group?: PublicKey;
|
|
1296
|
+
authority?: PublicKey;
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
interface BulkLendTxsResult {
|
|
1300
|
+
/** Ordered for sequential execution: [setup/crank txs…, action txs…]. */
|
|
1301
|
+
transactions: ExtendedV0Transaction[];
|
|
1302
|
+
/** Index of the first action tx in `transactions`. */
|
|
1303
|
+
actionTxIndex: number;
|
|
1304
|
+
}
|
|
1260
1305
|
interface MakeLoopTxParams {
|
|
1261
1306
|
program: MarginfiProgram;
|
|
1262
1307
|
marginfiAccount: MarginfiAccountType;
|
|
@@ -2536,7 +2581,7 @@ declare function computeTotalOutstandingEmissions(balance: BalanceType, bank: Ba
|
|
|
2536
2581
|
* - Including all active banks (excluding any in the exclusion list)
|
|
2537
2582
|
* - Reserving inactive slots for mandatory banks that aren't currently active
|
|
2538
2583
|
*
|
|
2539
|
-
* @param
|
|
2584
|
+
* @param account - The marginfi account whose balances are evaluated
|
|
2540
2585
|
* @param banksMap - Map of bank addresses to bank data
|
|
2541
2586
|
* @param mandatoryBanks - Banks that must be included (e.g., for pending transactions)
|
|
2542
2587
|
* @param excludedBanks - Banks to exclude from health checks
|
|
@@ -2544,15 +2589,20 @@ declare function computeTotalOutstandingEmissions(balance: BalanceType, bank: Ba
|
|
|
2544
2589
|
*
|
|
2545
2590
|
* @example
|
|
2546
2591
|
* ```typescript
|
|
2547
|
-
* const healthCheckBanks = computeHealthCheckAccounts(
|
|
2548
|
-
* account
|
|
2592
|
+
* const healthCheckBanks = computeHealthCheckAccounts({
|
|
2593
|
+
* account,
|
|
2549
2594
|
* banksMap,
|
|
2550
|
-
* [newBankToDeposit], //
|
|
2551
|
-
* [closingBank] //
|
|
2552
|
-
* );
|
|
2595
|
+
* mandatoryBanks: [newBankToDeposit], // Not active yet but will be
|
|
2596
|
+
* excludedBanks: [closingBank], // Being closed in this transaction
|
|
2597
|
+
* });
|
|
2553
2598
|
* ```
|
|
2554
2599
|
*/
|
|
2555
|
-
declare function computeHealthCheckAccounts(
|
|
2600
|
+
declare function computeHealthCheckAccounts({ account, banksMap, mandatoryBanks, excludedBanks, }: {
|
|
2601
|
+
account: MarginfiAccountType;
|
|
2602
|
+
banksMap: Map<string, BankType>;
|
|
2603
|
+
mandatoryBanks?: PublicKey[];
|
|
2604
|
+
excludedBanks?: PublicKey[];
|
|
2605
|
+
}): BankType[];
|
|
2556
2606
|
/**
|
|
2557
2607
|
* Converts bank objects to health check account metas (public keys).
|
|
2558
2608
|
*
|
|
@@ -2574,14 +2624,17 @@ declare function computeHealthCheckAccounts(balances: BalanceType[], banksMap: M
|
|
|
2574
2624
|
*
|
|
2575
2625
|
* @example
|
|
2576
2626
|
* ```typescript
|
|
2577
|
-
* const healthAccounts = computeHealthAccountMetas(
|
|
2578
|
-
* [usdcBank, solBank, kaminoUsdcBank],
|
|
2579
|
-
*
|
|
2580
|
-
* );
|
|
2627
|
+
* const healthAccounts = computeHealthAccountMetas({
|
|
2628
|
+
* banksToInclude: [usdcBank, solBank, kaminoUsdcBank],
|
|
2629
|
+
* });
|
|
2581
2630
|
* // Returns: [bank1, oracle1, bank2, oracle2, bank3, oracle3, kaminoReserve3, ...]
|
|
2582
2631
|
* ```
|
|
2583
2632
|
*/
|
|
2584
|
-
declare function computeHealthAccountMetas(banksToInclude
|
|
2633
|
+
declare function computeHealthAccountMetas({ banksToInclude, enableSorting, trailingBanks, }: {
|
|
2634
|
+
banksToInclude: BankType[];
|
|
2635
|
+
enableSorting?: boolean;
|
|
2636
|
+
trailingBanks?: BankType[];
|
|
2637
|
+
}): PublicKey[];
|
|
2585
2638
|
/**
|
|
2586
2639
|
* Projects which banks will be active after a series of instructions execute.
|
|
2587
2640
|
*
|
|
@@ -2590,7 +2643,8 @@ declare function computeHealthAccountMetas(banksToInclude: BankType[], enableSor
|
|
|
2590
2643
|
* health check account inclusion by predicting which banks are relevant.
|
|
2591
2644
|
*
|
|
2592
2645
|
* **Note**: This does NOT simulate Cross-Program Invocations (CPI). Only direct
|
|
2593
|
-
* marginfi instructions are considered.
|
|
2646
|
+
* marginfi instructions are considered. Instructions operating on a different
|
|
2647
|
+
* marginfi account than `account` are ignored.
|
|
2594
2648
|
*
|
|
2595
2649
|
* Supported instructions:
|
|
2596
2650
|
* - Deposits: `lendingAccountDeposit`, `kaminoDeposit`, `driftDeposit`, `solendDeposit`
|
|
@@ -2598,22 +2652,26 @@ declare function computeHealthAccountMetas(banksToInclude: BankType[], enableSor
|
|
|
2598
2652
|
* - Repays: `lendingAccountRepay`
|
|
2599
2653
|
* - Withdrawals: `lendingAccountWithdraw`, `kaminoWithdraw`, `driftWithdraw`, `solendWithdraw`
|
|
2600
2654
|
*
|
|
2601
|
-
* @param
|
|
2655
|
+
* @param account - The marginfi account whose balances are projected
|
|
2602
2656
|
* @param instructions - Instructions to simulate
|
|
2603
2657
|
* @param program - Marginfi program for instruction decoding
|
|
2604
2658
|
* @returns Array of bank public keys that will be active after instruction execution
|
|
2605
2659
|
*
|
|
2606
2660
|
* @example
|
|
2607
2661
|
* ```typescript
|
|
2608
|
-
* const projectedBanks = computeProjectedActiveBanksNoCpi(
|
|
2609
|
-
* account
|
|
2610
|
-
* [depositIx, borrowIx],
|
|
2611
|
-
* marginfiProgram
|
|
2612
|
-
* );
|
|
2662
|
+
* const projectedBanks = computeProjectedActiveBanksNoCpi({
|
|
2663
|
+
* account,
|
|
2664
|
+
* instructions: [depositIx, borrowIx],
|
|
2665
|
+
* program: marginfiProgram,
|
|
2666
|
+
* });
|
|
2613
2667
|
* // Use projectedBanks for health check account selection
|
|
2614
2668
|
* ```
|
|
2615
2669
|
*/
|
|
2616
|
-
declare function computeProjectedActiveBanksNoCpi(
|
|
2670
|
+
declare function computeProjectedActiveBanksNoCpi({ account, instructions, program, }: {
|
|
2671
|
+
account: MarginfiAccountType;
|
|
2672
|
+
instructions: TransactionInstruction[];
|
|
2673
|
+
program: MarginfiProgram;
|
|
2674
|
+
}): PublicKey[];
|
|
2617
2675
|
/**
|
|
2618
2676
|
* Computes projected balances after applying a series of instructions.
|
|
2619
2677
|
*
|
|
@@ -2622,12 +2680,13 @@ declare function computeProjectedActiveBanksNoCpi(balances: BalanceType[], instr
|
|
|
2622
2680
|
* than `computeProjectedActiveBanksNoCpi` which only tracks active banks.
|
|
2623
2681
|
*
|
|
2624
2682
|
* **Note**: This does NOT simulate Cross-Program Invocations (CPI). Only direct
|
|
2625
|
-
* marginfi instructions are considered.
|
|
2683
|
+
* marginfi instructions are considered. Instructions operating on a different
|
|
2684
|
+
* marginfi account than `account` are ignored.
|
|
2626
2685
|
*
|
|
2627
2686
|
* **Integrated Protocols**: For Kamino/Drift deposits, the `assetShareValueMultiplierByBank`
|
|
2628
2687
|
* is used to convert cToken amounts to actual asset quantities before computing shares.
|
|
2629
2688
|
*
|
|
2630
|
-
* @param
|
|
2689
|
+
* @param account - The marginfi account whose balances are projected
|
|
2631
2690
|
* @param instructions - Instructions to simulate
|
|
2632
2691
|
* @param program - Marginfi program for instruction decoding
|
|
2633
2692
|
* @param banksMap - Map of bank addresses to bank data (needed for share value conversion)
|
|
@@ -2639,18 +2698,24 @@ declare function computeProjectedActiveBanksNoCpi(balances: BalanceType[], instr
|
|
|
2639
2698
|
*
|
|
2640
2699
|
* @example
|
|
2641
2700
|
* ```typescript
|
|
2642
|
-
* const result = computeProjectedActiveBalancesNoCpi(
|
|
2643
|
-
* account
|
|
2644
|
-
* [depositIx, borrowIx],
|
|
2645
|
-
* marginfiProgram,
|
|
2701
|
+
* const result = computeProjectedActiveBalancesNoCpi({
|
|
2702
|
+
* account,
|
|
2703
|
+
* instructions: [depositIx, borrowIx],
|
|
2704
|
+
* program: marginfiProgram,
|
|
2646
2705
|
* banksMap,
|
|
2647
|
-
*
|
|
2648
|
-
* );
|
|
2706
|
+
* assetShareValueMultiplierByBank,
|
|
2707
|
+
* });
|
|
2649
2708
|
* console.log(`Projected ${result.projectedBalances.length} balances`);
|
|
2650
2709
|
* console.log(`Impacted ${result.impactedAssetsBanks.length} asset banks`);
|
|
2651
2710
|
* ```
|
|
2652
2711
|
*/
|
|
2653
|
-
declare function computeProjectedActiveBalancesNoCpi(
|
|
2712
|
+
declare function computeProjectedActiveBalancesNoCpi({ account, instructions, program, banksMap, assetShareValueMultiplierByBank, }: {
|
|
2713
|
+
account: MarginfiAccountType;
|
|
2714
|
+
instructions: TransactionInstruction[];
|
|
2715
|
+
program: MarginfiProgram;
|
|
2716
|
+
banksMap: Map<string, BankType>;
|
|
2717
|
+
assetShareValueMultiplierByBank: Map<string, BigNumber$1>;
|
|
2718
|
+
}): {
|
|
2654
2719
|
projectedBalances: BalanceType[];
|
|
2655
2720
|
impactedAssetsBanks: string[];
|
|
2656
2721
|
impactedLiabilityBanks: string[];
|
|
@@ -2977,11 +3042,7 @@ interface FlashloanSwapConstraints {
|
|
|
2977
3042
|
*/
|
|
2978
3043
|
declare function computeFlashLoanNonSwapBudget({ program, marginfiAccount, ixs, bankMap, addressLookupTableAccounts, }: {
|
|
2979
3044
|
program: MarginfiProgram;
|
|
2980
|
-
marginfiAccount:
|
|
2981
|
-
address: PublicKey;
|
|
2982
|
-
authority: PublicKey;
|
|
2983
|
-
balances: BalanceType[];
|
|
2984
|
-
};
|
|
3045
|
+
marginfiAccount: MarginfiAccountType;
|
|
2985
3046
|
ixs: TransactionInstruction[];
|
|
2986
3047
|
bankMap: Map<string, BankType>;
|
|
2987
3048
|
addressLookupTableAccounts: AddressLookupTableAccount[];
|
|
@@ -3205,7 +3266,7 @@ declare function makeCreateAccountIxWithProjection(props: {
|
|
|
3205
3266
|
declare function makeCreateMarginfiAccountTx(program: MarginfiProgram, authority: PublicKey, groupAddress: PublicKey, addressLookupTables: AddressLookupTableAccount[], accountIndex: number, thirdPartyId?: number): Promise<SolanaTransaction>;
|
|
3206
3267
|
declare function makeCreateMarginfiAccountIx(program: MarginfiProgram, authority: PublicKey, groupAddress: PublicKey, accountIndex: number, thirdPartyId?: number): Promise<TransactionInstruction>;
|
|
3207
3268
|
declare function makeSetupIx({ connection, authority, tokens }: MakeSetupIxParams): Promise<TransactionInstruction[]>;
|
|
3208
|
-
declare function makePulseHealthIx(program: MarginfiProgram,
|
|
3269
|
+
declare function makePulseHealthIx(program: MarginfiProgram, marginfiAccount: MarginfiAccountType, banks: Map<string, BankType>, mandatoryBanks: PublicKey[], excludedBanks: PublicKey[]): Promise<{
|
|
3209
3270
|
instructions: TransactionInstruction[];
|
|
3210
3271
|
keys: never[];
|
|
3211
3272
|
}>;
|
|
@@ -3737,6 +3798,31 @@ declare function buildCollateralLegIxs(ctx: BuildContext, position: ClassifiedPo
|
|
|
3737
3798
|
*/
|
|
3738
3799
|
declare function makeTransferPositionsTx(params: MakeTransferPositionsTxParams): Promise<TransferPositionsResult>;
|
|
3739
3800
|
|
|
3801
|
+
/**
|
|
3802
|
+
* Withdraw the FULL position of every given bank, packing as many withdraws
|
|
3803
|
+
* per transaction as fit the size/lock limits. Venue dispatch (Kamino /
|
|
3804
|
+
* JupLend / Drift / standard) and the per-instruction health packs live here:
|
|
3805
|
+
* each withdraw's remaining accounts exclude every bank already closed by the
|
|
3806
|
+
* withdraws before it — across the whole ordered batch — because the on-chain
|
|
3807
|
+
* health check runs against the account's live (shrinking) balance set.
|
|
3808
|
+
*
|
|
3809
|
+
* The returned transactions MUST land as one atomic Jito bundle (same slot,
|
|
3810
|
+
* sequential): the integration refreshes (Kamino reserves + obligations, rate
|
|
3811
|
+
* cranks) live in a single prelude tx rather than in each withdraw tx, and
|
|
3812
|
+
* Klend's slot-based staleness checks only stay satisfied when the withdraws
|
|
3813
|
+
* execute in the refresh's slot.
|
|
3814
|
+
*
|
|
3815
|
+
* Returns `[ATA setup txs…, crank tx?, refresh tx?, withdraw txs…]`;
|
|
3816
|
+
* `actionTxIndex` points at the first withdraw tx.
|
|
3817
|
+
*/
|
|
3818
|
+
declare function makeBulkWithdrawTx(params: MakeBulkWithdrawTxParams): Promise<BulkLendTxsResult>;
|
|
3819
|
+
/**
|
|
3820
|
+
* Repay the FULL debt of every given bank from the wallet, packing as many
|
|
3821
|
+
* repays per transaction as fit. Repays carry no health pack and need no
|
|
3822
|
+
* oracle cranks, so most batches are a single transaction.
|
|
3823
|
+
*/
|
|
3824
|
+
declare function makeBulkRepayTx(params: MakeBulkRepayTxParams): Promise<BulkLendTxsResult>;
|
|
3825
|
+
|
|
3740
3826
|
type MakeSmartCrankSwbFeedIxParams = {
|
|
3741
3827
|
marginfiAccount: MarginfiAccountType;
|
|
3742
3828
|
bankMap: Map<string, BankType>;
|
|
@@ -3757,6 +3843,25 @@ declare function makeSmartCrankSwbFeedIx(params: MakeSmartCrankSwbFeedIxParams):
|
|
|
3757
3843
|
instructions: TransactionInstruction[];
|
|
3758
3844
|
luts: AddressLookupTableAccount[];
|
|
3759
3845
|
}>;
|
|
3846
|
+
type MakeSmartCrankSwbFeedIxForAccountsParams = Omit<MakeSmartCrankSwbFeedIxParams, "marginfiAccount"> & {
|
|
3847
|
+
/**
|
|
3848
|
+
* Accounts targeted by instructions in the set. Each account is projected against
|
|
3849
|
+
* the instructions that operate on it (the projection filters by account), so the
|
|
3850
|
+
* same full instruction list serves every account. The first account's authority
|
|
3851
|
+
* pays the feed updates.
|
|
3852
|
+
*/
|
|
3853
|
+
marginfiAccounts: MarginfiAccountType[];
|
|
3854
|
+
};
|
|
3855
|
+
/**
|
|
3856
|
+
* Multi-account variant of {@link makeSmartCrankSwbFeedIx} for instruction sets that
|
|
3857
|
+
* span several marginfi accounts (e.g. transferring positions: the source is cranked
|
|
3858
|
+
* against its withdraws, the destination against its projected post-transfer
|
|
3859
|
+
* deposits). Overlapping feeds across accounts are cranked once.
|
|
3860
|
+
*/
|
|
3861
|
+
declare function makeSmartCrankSwbFeedIxForAccounts(params: MakeSmartCrankSwbFeedIxForAccountsParams): Promise<{
|
|
3862
|
+
instructions: TransactionInstruction[];
|
|
3863
|
+
luts: AddressLookupTableAccount[];
|
|
3864
|
+
}>;
|
|
3760
3865
|
declare const DEFAULT_CROSSBAR_URL = "https://crossbar.0.xyz";
|
|
3761
3866
|
declare const DEFAULT_FALLBACK_CROSSBAR_URL = "https://crossbar.switchboard.xyz";
|
|
3762
3867
|
declare function makeCrankSwbFeedIx(marginfiAccount: MarginfiAccountType, bankMap: Map<string, BankType>, newBanksPk: PublicKey[], provider: AnchorProvider, crossbarUrl?: string): Promise<{
|
|
@@ -3827,6 +3932,23 @@ declare function makeUpdateDriftMarketIxs(marginfiAccount: MarginfiAccountType,
|
|
|
3827
3932
|
*/
|
|
3828
3933
|
declare function makeUpdateJupLendRateIxs(marginfiAccount: MarginfiAccountType, bankMap: Map<string, BankType>, banksToExclude: PublicKey[], bankMetadataMap: BankIntegrationMetadataMap): InstructionsWrapper;
|
|
3829
3934
|
|
|
3935
|
+
/**
|
|
3936
|
+
* Groups the per-integration refresh/update instructions (Kamino reserve refresh,
|
|
3937
|
+
* Drift spot market update, JupLend rate update) into a single wrapper.
|
|
3938
|
+
*
|
|
3939
|
+
* JupLend and Drift action instructions update their own bank via CPI, so the bank
|
|
3940
|
+
* being acted on is excluded from those updates. Kamino has no such CPI, so the
|
|
3941
|
+
* action bank must be explicitly included in the refresh set instead.
|
|
3942
|
+
*
|
|
3943
|
+
* @param marginfiAccount - The marginfi account containing active bank balances
|
|
3944
|
+
* @param bankMap - Map of bank addresses (base58) to bank instances
|
|
3945
|
+
* @param banksToExclude - Banks skipped for the JupLend/Drift updates (their CPI already updates them)
|
|
3946
|
+
* @param bankMetadataMap - Map containing Bank-specific metadata (integration states)
|
|
3947
|
+
* @param kaminoNewBanksPk - Banks to union into the Kamino refresh set, defaults to `banksToExclude`
|
|
3948
|
+
* @returns InstructionsWrapper with instructions ordered kamino -> drift -> juplend
|
|
3949
|
+
*/
|
|
3950
|
+
declare function makeRefreshIntegrationBanksIxs(marginfiAccount: MarginfiAccountType, bankMap: Map<string, BankType>, banksToExclude: PublicKey[], bankMetadataMap: BankIntegrationMetadataMap, kaminoNewBanksPk?: PublicKey[]): InstructionsWrapper;
|
|
3951
|
+
|
|
3830
3952
|
type ValidatorVoteAccountByBank = {
|
|
3831
3953
|
[address: string]: string;
|
|
3832
3954
|
};
|
|
@@ -4131,6 +4253,14 @@ declare function computeBankBorrowApy(bank: BankType): number;
|
|
|
4131
4253
|
*/
|
|
4132
4254
|
declare function computeBankMetrics(params: ComputeBankMetricsParams): BankMetrics;
|
|
4133
4255
|
|
|
4256
|
+
/**
|
|
4257
|
+
* Lookup-or-throw helpers for action-builder inputs. The optional `makeError`
|
|
4258
|
+
* lets callers throw their own typed error (e.g. a TransactionBuildingError
|
|
4259
|
+
* with user-facing copy) instead of a plain Error.
|
|
4260
|
+
*/
|
|
4261
|
+
declare function requireBank(bankMap: Map<string, BankType>, address: PublicKey, makeError?: (message: string) => Error): BankType;
|
|
4262
|
+
declare function requireTokenProgram(tokenProgramsByBank: Map<string, PublicKey>, address: PublicKey, makeError?: (message: string) => Error): PublicKey;
|
|
4263
|
+
|
|
4134
4264
|
/**
|
|
4135
4265
|
* Fee state cache - stores information from the global FeeState
|
|
4136
4266
|
* so the FeeState can be omitted on certain instructions
|
|
@@ -6325,4 +6455,4 @@ declare class MarginfiAccountWrapper {
|
|
|
6325
6455
|
getClient(): Project0Client;
|
|
6326
6456
|
}
|
|
6327
6457
|
|
|
6328
|
-
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, type AccountActiveBalanceForBank, AccountFlags, ActionEmodeImpact, ActiveEmodePair, type ActiveStakePoolMap, Amount, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, BalanceType, type BalanceTypeDto, Bank, type BankConfigDto, BankConfigFlag, BankConfigOpt, BankConfigOptRaw, BankConfigRaw, type BankConfigRawDto, BankConfigType, BankIntegrationMetadata, BankIntegrationMetadataDto, BankIntegrationMetadataMap, BankIntegrationMetadataMapDto, type BankMetrics, type BankRateLimiterDto, BankRateLimiterRaw, type BankRateLimiterRawDto, BankRateLimiterType, BankRaw, type BankRawDto, BankType, type BankTypeDto, BankVaultType, type BridgeSide, type BridgedSwapLeg, type BuildContext, type ClassifiedPosition, type ComposeBridgedSwapParams, type ComposeBridgedSwapResult, type ComputeAssetHealthComponentParams, type ComputeBalanceUsdValueParams, type ComputeBankMetricsParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeLiabilityHealthComponentParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, ConfigRaw, type CrankCombination, type CrankabilityResult, DEFAULT_CROSSBAR_URL, DEFAULT_FALLBACK_CROSSBAR_URL, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, type DriftBankInput, type DriftMetadata, type DriftStateByBank, type DriftStateJsonByBank, EMPTY_HEALTH_CACHE, type EmodeConfigRawDto, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, EmodeImpactStatus, EmodePair, type EmodeSettingsDto, EmodeSettingsRaw, type EmodeSettingsRawDto, EmodeSettingsType, EmodeTag, 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 GetBalanceUsdValueWithPriceBiasParams, type GetExactOutEstimateParams, type GetSwapIxsForFlashloanParams, type GetTitanExactOutEstimateParams, type GetTitanSwapIxsParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, HealthCacheStatus, HealthCacheType, type HealthCacheTypeDto, type InstructionsWrapper, type IntegrationType, InterestRateConfig, type InterestRateConfigDto, 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, LST_MINT, type LoopFlashloanDescriptor, 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 MakeAccountTransferToNewAccountTxParams, 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 MakeRollPtTxParams, type MakeSetupIxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeTransferPositionsTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, type MarginRequirementTypeRaw, MarginfiAccount, type MarginfiAccountRaw, MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupRaw, type MarginfiGroupType, type MarginfiGroupTypeDto, MarginfiIdlType, MarginfiProgram, type MintAuthorityBalance, MintData, OperationalState, OperationalStateRaw, OraclePrice, OraclePriceDto, OracleSetup, 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, PriceWithConfidence, Project0Client, Project0Config, Project0ConfigRaw, type ProviderSwapRoute, type PythOracleServiceOpts, type RateLimitWindowDto, type RateLimitWindowRawDto, type RatePointDto, type ResolveBridgeBanksParams, RiskTier, RiskTierRaw, type RollPtOpts, SINGLE_POOL_PROGRAM_ID, STAKED_ORACLE_DISABLED_FLAG, STAKED_ORACLE_USES_ONRAMP_FLAG, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWAP_ADAPTERS, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SerializedInstruction, type SerializedLut, type SerializedSwapEngineRequest, type SerializedSwapEngineResult, type SerializedTxFootprint, type SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SmartCrankParams, type SmartCrankResult, type SolanaTransaction, type StakeAccount, type StakePoolMevMap, type StakedBankMetadata, type SwapAdapter, type SwapApiConfig, type SwapCandidate, type SwapEngineRequest, type SwapEngineResult, type SwapEngineRunner, 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 TransferPositionSide, type TransferPositionsResult, type TxFootprint, TypedAmount, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_MINT, type WithdrawWindowCache, WrappedI80F48, ZERO_ORACLE_KEY, accountConflictsWithBridge, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRateLimiterRawToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, buildCollateralLegIxs, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkBatchOracleCrankability, checkJupiterFeeAccount, checkMultipleOraclesCrankability, checkTitanFeeAccount, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, classifyAndValidate, compileFlashloanPrecheck, composeBridgedSwap, composeRemainingAccounts, computeAccountValue, computeActiveEmodePairs, computeAssetHealthComponent, computeBalanceUsdValue, computeBankBorrowApy, computeBankBorrowCapRemaining, computeBankDepositCapRemaining, computeBankMetrics, computeBankPoolSize, computeBankSupplyApy, computeBankTotalBorrows, computeBankTotalBorrowsUsd, computeBankTotalDeposits, computeBankTotalDepositsUsd, computeBaseInterestRate, computeBorrowEstimateForRepay, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFlashLoanNonSwapBudget, computeFlashloanSwapConstraints, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiquidationPriceForBank, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxWithdrawForBank, computeNetApy, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeSmartCrank, computeStakedBankMultipliers, computeTotalOutstandingEmissions, computeUtilizationRate, computeV0TxSize, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deserializeInstruction, deserializeLut, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRateLimiter, dtoToBankRateLimiterRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchMarginfiAccountActiveBalancesForBank, fetchMarginfiAccountAddresses, fetchMarginfiAccountAddressesHoldingBank, fetchMarginfiAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleAccountsFromAPI, fetchSwbOracleAccountsFromChain, fetchSwbOracleData, fetchSwbOraclePricesFromAPI, fetchSwbOraclePricesFromCrossbar, findRandomAvailableAccountIndex, freezeBankConfigIx, generateDummyAccount, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getDriftCTokenMultiplier, getDriftMetadata, getDriftStatesDto, getEmodePairs, getExactOutEstimate, getFallbackPricesByFeedId, getFallbackPricesForMints, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupLendFTokenMultiplier, getJupLendMetadata, getJupLendStatesDto, getJupiterReferralFeeAccount, getJupiterSwapIxsForFlashloan, getKaminoCTokenMultiplier, getKaminoMetadata, getKaminoStatesDto, getLiabilityQuantity, getLiabilityShares, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapAdapter, getSwapIxsForFlashloan, getTitanExactOutEstimate, getTitanSwapIxsForFlashloan, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, getWritableAccountKeys, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isDecomposableSwapError, isDepositIx, isFlashloan, isGroupRateLimiterEnabled, isStandardBorrowable, isStandardDepositable, isV0Tx, isWholePosition, makeAccountTransferToNewAccountTx, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBundleTipIx, 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, makeRollPtTx, makeSetupIx, makeSmartCrankSwbFeedIx, makeSwapCollateralTx, makeSwapDebtTx, makeTransferPositionsTx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateSwbFeedIx, makeVersionedTransaction, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapBrokenFeedsToOraclePrices, mapJupiterQuoteToSwapQuoteResult, mapPythBanksToOraclePrices, mapSwbBanksToOraclePrices, marginfiAccountToDto, mergeBridgeQuotes, mergeBridgeQuotesDebt, mergeBridgeQuotesLoop, nativeToUi, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRateLimiterRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, parseSwbOraclePriceData, partitionBanksByCrankability, patchDepositAmount, resolveBridgeBanks, runSwapEngine, selectLutsForAccountAction, selectLutsForBanks, serializeBankConfigOpt, serializeInstruction, serializeInterestRateConfig, serializeLut, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, serializeSwapEngineRequest, serializeSwapEngineResult, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, swapEngineProvidersFromOpts, swapEngineQuoteFieldsFromOpts, toBankConfigDto, toBankDto, toBankRateLimiterDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toJupiterConfig, toNumber, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, wrappedI80F48toBigNumber };
|
|
6458
|
+
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, type AccountActiveBalanceForBank, AccountFlags, ActionEmodeImpact, ActiveEmodePair, type ActiveStakePoolMap, Amount, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, BalanceType, type BalanceTypeDto, Bank, type BankConfigDto, BankConfigFlag, BankConfigOpt, BankConfigOptRaw, BankConfigRaw, type BankConfigRawDto, BankConfigType, BankIntegrationMetadata, BankIntegrationMetadataDto, BankIntegrationMetadataMap, BankIntegrationMetadataMapDto, type BankMetrics, type BankRateLimiterDto, BankRateLimiterRaw, type BankRateLimiterRawDto, BankRateLimiterType, BankRaw, type BankRawDto, BankType, type BankTypeDto, BankVaultType, type BridgeSide, type BridgedSwapLeg, type BuildContext, type BulkLendTxsResult, type ClassifiedPosition, type ComposeBridgedSwapParams, type ComposeBridgedSwapResult, type ComputeAssetHealthComponentParams, type ComputeBalanceUsdValueParams, type ComputeBankMetricsParams, type ComputeFreeCollateralFromBalancesParams, type ComputeHealthCacheStatusParams, type ComputeHealthComponentsFromBalancesParams, type ComputeLiabilityHealthComponentParams, type ComputeLiquidationPriceForBankParams, type ComputeMaxBorrowForBankParams, type ComputeMaxWithdrawForBankParams, type ComputeNetApyParams, ConfigRaw, type CrankCombination, type CrankabilityResult, DEFAULT_CROSSBAR_URL, DEFAULT_FALLBACK_CROSSBAR_URL, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, type DriftBankInput, type DriftMetadata, type DriftStateByBank, type DriftStateJsonByBank, EMPTY_HEALTH_CACHE, type EmodeConfigRawDto, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, EmodeImpactStatus, EmodePair, type EmodeSettingsDto, EmodeSettingsRaw, type EmodeSettingsRawDto, EmodeSettingsType, EmodeTag, 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 GetBalanceUsdValueWithPriceBiasParams, type GetExactOutEstimateParams, type GetSwapIxsForFlashloanParams, type GetTitanExactOutEstimateParams, type GetTitanSwapIxsParams, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, HealthCacheStatus, HealthCacheType, type HealthCacheTypeDto, type InstructionsWrapper, type IntegrationType, InterestRateConfig, type InterestRateConfigDto, 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, LST_MINT, type LoopFlashloanDescriptor, 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 MakeAccountTransferToNewAccountTxParams, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeBulkRepayTxParams, type MakeBulkWithdrawTxParams, 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 MakeRollPtTxParams, type MakeSetupIxParams, type MakeSwapCollateralTxParams, type MakeSwapDebtTxParams, type MakeTransferPositionsTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, type MarginRequirementTypeRaw, MarginfiAccount, type MarginfiAccountRaw, MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupRaw, type MarginfiGroupType, type MarginfiGroupTypeDto, MarginfiIdlType, MarginfiProgram, type MintAuthorityBalance, MintData, OperationalState, OperationalStateRaw, OraclePrice, OraclePriceDto, OracleSetup, 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, PriceWithConfidence, Project0Client, Project0Config, Project0ConfigRaw, type ProviderSwapRoute, type PythOracleServiceOpts, type RateLimitWindowDto, type RateLimitWindowRawDto, type RatePointDto, type ResolveBridgeBanksParams, RiskTier, RiskTierRaw, type RollPtOpts, SINGLE_POOL_PROGRAM_ID, STAKED_ORACLE_DISABLED_FLAG, STAKED_ORACLE_USES_ONRAMP_FLAG, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWAP_ADAPTERS, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SerializedInstruction, type SerializedLut, type SerializedSwapEngineRequest, type SerializedSwapEngineResult, type SerializedTxFootprint, type SimulateAccountHealthCacheWithFallbackParams, type SimulationResultRaw, type SmartCrankParams, type SmartCrankResult, type SolanaTransaction, type StakeAccount, type StakePoolMevMap, type StakedBankMetadata, type SwapAdapter, type SwapApiConfig, type SwapCandidate, type SwapEngineRequest, type SwapEngineResult, type SwapEngineRunner, 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 TransferPositionSide, type TransferPositionsResult, type TxFootprint, TypedAmount, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_MINT, type WithdrawWindowCache, WrappedI80F48, ZERO_ORACLE_KEY, accountConflictsWithBridge, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRateLimiterRawToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, buildCollateralLegIxs, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkBatchOracleCrankability, checkJupiterFeeAccount, checkMultipleOraclesCrankability, checkTitanFeeAccount, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, classifyAndValidate, compileFlashloanPrecheck, composeBridgedSwap, composeRemainingAccounts, computeAccountValue, computeActiveEmodePairs, computeAssetHealthComponent, computeBalanceUsdValue, computeBankBorrowApy, computeBankBorrowCapRemaining, computeBankDepositCapRemaining, computeBankMetrics, computeBankPoolSize, computeBankSupplyApy, computeBankTotalBorrows, computeBankTotalBorrowsUsd, computeBankTotalDeposits, computeBankTotalDepositsUsd, computeBaseInterestRate, computeBorrowEstimateForRepay, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFlashLoanNonSwapBudget, computeFlashloanSwapConstraints, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiquidationPriceForBank, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxWithdrawForBank, computeNetApy, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeSmartCrank, computeStakedBankMultipliers, computeTotalOutstandingEmissions, computeUtilizationRate, computeV0TxSize, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deserializeInstruction, deserializeLut, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRateLimiter, dtoToBankRateLimiterRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchMarginfiAccountActiveBalancesForBank, fetchMarginfiAccountAddresses, fetchMarginfiAccountAddressesHoldingBank, fetchMarginfiAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleAccountsFromAPI, fetchSwbOracleAccountsFromChain, fetchSwbOracleData, fetchSwbOraclePricesFromAPI, fetchSwbOraclePricesFromCrossbar, findRandomAvailableAccountIndex, freezeBankConfigIx, generateDummyAccount, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getDriftCTokenMultiplier, getDriftMetadata, getDriftStatesDto, getEmodePairs, getExactOutEstimate, getFallbackPricesByFeedId, getFallbackPricesForMints, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupLendFTokenMultiplier, getJupLendMetadata, getJupLendStatesDto, getJupiterReferralFeeAccount, getJupiterSwapIxsForFlashloan, getKaminoCTokenMultiplier, getKaminoMetadata, getKaminoStatesDto, getLiabilityQuantity, getLiabilityShares, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapAdapter, getSwapIxsForFlashloan, getTitanExactOutEstimate, getTitanSwapIxsForFlashloan, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, getWritableAccountKeys, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isDecomposableSwapError, isDepositIx, isFlashloan, isGroupRateLimiterEnabled, isStandardBorrowable, isStandardDepositable, isV0Tx, isWholePosition, makeAccountTransferToNewAccountTx, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBulkRepayTx, makeBulkWithdrawTx, makeBundleTipIx, 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, makeRefreshIntegrationBanksIxs, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeRollPtTx, makeSetupIx, makeSmartCrankSwbFeedIx, makeSmartCrankSwbFeedIxForAccounts, makeSwapCollateralTx, makeSwapDebtTx, makeTransferPositionsTx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateSwbFeedIx, makeVersionedTransaction, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapBrokenFeedsToOraclePrices, mapJupiterQuoteToSwapQuoteResult, mapPythBanksToOraclePrices, mapSwbBanksToOraclePrices, marginfiAccountToDto, mergeBridgeQuotes, mergeBridgeQuotesDebt, mergeBridgeQuotesLoop, nativeToUi, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRateLimiterRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, parseSwbOraclePriceData, partitionBanksByCrankability, patchDepositAmount, requireBank, requireTokenProgram, resolveBridgeBanks, runSwapEngine, selectLutsForAccountAction, selectLutsForBanks, serializeBankConfigOpt, serializeInstruction, serializeInterestRateConfig, serializeLut, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, serializeSwapEngineRequest, serializeSwapEngineResult, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, swapEngineProvidersFromOpts, swapEngineQuoteFieldsFromOpts, toBankConfigDto, toBankDto, toBankRateLimiterDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toJupiterConfig, toNumber, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, wrappedI80F48toBigNumber };
|