@0dotxyz/p0-ts-sdk 2.2.0-alpha.5 → 2.2.0-alpha.7
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 +1347 -1315
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +188 -110
- package/dist/index.d.ts +188 -110
- package/dist/index.js +1337 -1317
- package/dist/index.js.map +1 -1
- package/dist/vendor.cjs +20 -4
- package/dist/vendor.cjs.map +1 -1
- package/dist/vendor.js +20 -4
- package/dist/vendor.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15974,35 +15974,6 @@ interface MakeSetupIxParams {
|
|
|
15974
15974
|
tokenProgram: PublicKey;
|
|
15975
15975
|
}[];
|
|
15976
15976
|
}
|
|
15977
|
-
interface MakeMintStakedLstIxParams {
|
|
15978
|
-
amount: Amount;
|
|
15979
|
-
authority: PublicKey;
|
|
15980
|
-
stakeAccountPk: PublicKey;
|
|
15981
|
-
validator: PublicKey;
|
|
15982
|
-
connection: Connection;
|
|
15983
|
-
}
|
|
15984
|
-
interface MakeMintStakedLstTxParams extends MakeMintStakedLstIxParams {
|
|
15985
|
-
luts: AddressLookupTableAccount[];
|
|
15986
|
-
blockhash?: string;
|
|
15987
|
-
}
|
|
15988
|
-
interface MakeRedeemStakedLstIxParams {
|
|
15989
|
-
amount: Amount;
|
|
15990
|
-
authority: PublicKey;
|
|
15991
|
-
validator: PublicKey;
|
|
15992
|
-
connection: Connection;
|
|
15993
|
-
}
|
|
15994
|
-
interface MakeRedeemStakedLstTxParams extends MakeRedeemStakedLstIxParams {
|
|
15995
|
-
luts: AddressLookupTableAccount[];
|
|
15996
|
-
blockhash?: string;
|
|
15997
|
-
}
|
|
15998
|
-
interface MakeMergeStakeAccountsTxParams {
|
|
15999
|
-
authority: PublicKey;
|
|
16000
|
-
sourceStakeAccount: PublicKey;
|
|
16001
|
-
destinationStakeAccount: PublicKey;
|
|
16002
|
-
connection: Connection;
|
|
16003
|
-
luts: AddressLookupTableAccount[];
|
|
16004
|
-
blockhash?: string;
|
|
16005
|
-
}
|
|
16006
15977
|
|
|
16007
15978
|
/**
|
|
16008
15979
|
* A combination of banks that need to be cranked
|
|
@@ -17497,6 +17468,7 @@ declare function makePulseHealthIx(program: MarginfiProgram, marginfiAccountPk:
|
|
|
17497
17468
|
instructions: TransactionInstruction[];
|
|
17498
17469
|
keys: never[];
|
|
17499
17470
|
}>;
|
|
17471
|
+
declare function generateDummyAccount(group: PublicKey, authority: PublicKey, accountKey: PublicKey): MarginfiAccountType;
|
|
17500
17472
|
|
|
17501
17473
|
declare function makeDriftWithdrawIx({ program, bank, bankMap, tokenProgram, amount, marginfiAccount, driftSpotMarket, userRewards, authority, withdrawAll, isSync, opts, }: MakeDriftWithdrawIxParams): Promise<InstructionsWrapper>;
|
|
17502
17474
|
declare function makeDriftWithdrawTx(params: MakeDriftWithdrawTxParams): Promise<TransactionBuilderResult>;
|
|
@@ -17873,43 +17845,6 @@ declare function makeSwapDebtTx(params: MakeSwapDebtTxParams): Promise<{
|
|
|
17873
17845
|
quoteResponse: SwapQuoteResult | undefined;
|
|
17874
17846
|
}>;
|
|
17875
17847
|
|
|
17876
|
-
/**
|
|
17877
|
-
* Creates instructions to convert a native stake account into LST tokens.
|
|
17878
|
-
*
|
|
17879
|
-
* Steps:
|
|
17880
|
-
* 1. Create LST ATA if needed
|
|
17881
|
-
* 2. Split stake account if partial amount
|
|
17882
|
-
* 3. Authorize staker + withdrawer to pool
|
|
17883
|
-
* 4. Deposit stake into pool → user receives LST
|
|
17884
|
-
*/
|
|
17885
|
-
declare function makeMintStakedLstIx(params: MakeMintStakedLstIxParams): Promise<InstructionsWrapper>;
|
|
17886
|
-
/**
|
|
17887
|
-
* Creates a versioned transaction to convert a native stake account into LST tokens.
|
|
17888
|
-
*/
|
|
17889
|
-
declare function makeMintStakedLstTx(params: MakeMintStakedLstTxParams): Promise<ExtendedV0Transaction>;
|
|
17890
|
-
|
|
17891
|
-
/**
|
|
17892
|
-
* Creates instructions to convert LST tokens back to a native stake account.
|
|
17893
|
-
*
|
|
17894
|
-
* Steps:
|
|
17895
|
-
* 1. Create new stake account (rent-exempt)
|
|
17896
|
-
* 2. Approve pool mint authority to burn LST
|
|
17897
|
-
* 3. Withdraw stake from pool → user receives stake account
|
|
17898
|
-
*/
|
|
17899
|
-
declare function makeRedeemStakedLstIx(params: MakeRedeemStakedLstIxParams): Promise<InstructionsWrapper>;
|
|
17900
|
-
/**
|
|
17901
|
-
* Creates a versioned transaction to convert LST tokens back to a native stake account.
|
|
17902
|
-
*/
|
|
17903
|
-
declare function makeRedeemStakedLstTx(params: MakeRedeemStakedLstTxParams): Promise<ExtendedV0Transaction>;
|
|
17904
|
-
|
|
17905
|
-
/**
|
|
17906
|
-
* Creates a versioned transaction to merge two stake accounts.
|
|
17907
|
-
*
|
|
17908
|
-
* The source stake account will be merged into the destination stake account.
|
|
17909
|
-
* Both accounts must share the same authorized staker/withdrawer and vote account.
|
|
17910
|
-
*/
|
|
17911
|
-
declare function makeMergeStakeAccountsTx(params: MakeMergeStakeAccountsTxParams): Promise<ExtendedV0Transaction>;
|
|
17912
|
-
|
|
17913
17848
|
type MakeSmartCrankSwbFeedIxParams = {
|
|
17914
17849
|
marginfiAccount: MarginfiAccountType;
|
|
17915
17850
|
bankMap: Map<string, BankType>;
|
|
@@ -18489,6 +18424,97 @@ declare function computeRemainingCapacity(bank: BankType): {
|
|
|
18489
18424
|
borrowCapacity: BigNumber$1;
|
|
18490
18425
|
};
|
|
18491
18426
|
|
|
18427
|
+
/**
|
|
18428
|
+
* Computed metrics describing a bank's state at a given moment.
|
|
18429
|
+
*
|
|
18430
|
+
* All amounts are UI-scaled (decimals applied). USD values use the bank's
|
|
18431
|
+
* realtime oracle price without any margin weight applied.
|
|
18432
|
+
*/
|
|
18433
|
+
interface BankMetrics {
|
|
18434
|
+
/** Token symbol hint supplied by the caller (e.g. from bank metadata). Empty string if unknown. */
|
|
18435
|
+
symbol: string;
|
|
18436
|
+
/** Total deposits in UI units (asset share value multiplier applied). */
|
|
18437
|
+
totalDeposits: number;
|
|
18438
|
+
/** Total borrows in UI units. */
|
|
18439
|
+
totalBorrows: number;
|
|
18440
|
+
/** USD value of total deposits (realtime oracle price). */
|
|
18441
|
+
totalDepositsUsd: number;
|
|
18442
|
+
/** USD value of total borrows (realtime oracle price). */
|
|
18443
|
+
totalBorrowsUsd: number;
|
|
18444
|
+
/** Utilization rate in [0,1]. */
|
|
18445
|
+
utilizationRate: number;
|
|
18446
|
+
/** Available liquidity in UI units. */
|
|
18447
|
+
poolSize: number;
|
|
18448
|
+
/** Deposit cap in UI units. */
|
|
18449
|
+
depositCap: number;
|
|
18450
|
+
/** Borrow cap in UI units. */
|
|
18451
|
+
borrowCap: number;
|
|
18452
|
+
/** Remaining deposit capacity. */
|
|
18453
|
+
depositCapRemaining: number;
|
|
18454
|
+
/** Remaining borrow capacity. */
|
|
18455
|
+
borrowCapRemaining: number;
|
|
18456
|
+
/** Supply APY (compounded annually from the base lending rate). */
|
|
18457
|
+
supplyApy: number;
|
|
18458
|
+
/** Borrow APY (compounded annually from the borrowing rate). */
|
|
18459
|
+
borrowApy: number;
|
|
18460
|
+
}
|
|
18461
|
+
interface ComputeBankMetricsParams {
|
|
18462
|
+
bank: BankType;
|
|
18463
|
+
oraclePrice: OraclePrice;
|
|
18464
|
+
/** Asset share value multiplier (e.g. Kamino). Defaults to 1. */
|
|
18465
|
+
assetShareValueMultiplier?: BigNumber$1;
|
|
18466
|
+
/** Symbol hint surfaced on the returned metrics. */
|
|
18467
|
+
symbol?: string;
|
|
18468
|
+
}
|
|
18469
|
+
/**
|
|
18470
|
+
* Total deposits in UI units, with the asset-share-value multiplier applied (defaults to 1).
|
|
18471
|
+
*/
|
|
18472
|
+
declare function computeBankTotalDeposits(bank: BankType, assetShareValueMultiplier?: BigNumber$1): number;
|
|
18473
|
+
/**
|
|
18474
|
+
* Total borrows in UI units. Borrows aren't share-multiplied.
|
|
18475
|
+
*/
|
|
18476
|
+
declare function computeBankTotalBorrows(bank: BankType): number;
|
|
18477
|
+
/**
|
|
18478
|
+
* USD value of total deposits, computed from the realtime oracle price
|
|
18479
|
+
* (no margin weight, no price bias).
|
|
18480
|
+
*/
|
|
18481
|
+
declare function computeBankTotalDepositsUsd(bank: BankType, oraclePrice: OraclePrice, assetShareValueMultiplier?: BigNumber$1): number;
|
|
18482
|
+
/**
|
|
18483
|
+
* USD value of total borrows, computed from the realtime oracle price
|
|
18484
|
+
* (no margin weight, no price bias).
|
|
18485
|
+
*/
|
|
18486
|
+
declare function computeBankTotalBorrowsUsd(bank: BankType, oraclePrice: OraclePrice): number;
|
|
18487
|
+
/**
|
|
18488
|
+
* Available liquidity (UI units) = min(totalDeposits, borrowCap) - totalBorrows, clamped to 0.
|
|
18489
|
+
* Matches the existing UI calculation used to gate borrow-side displays.
|
|
18490
|
+
*/
|
|
18491
|
+
declare function computeBankPoolSize(bank: BankType, assetShareValueMultiplier?: BigNumber$1): number;
|
|
18492
|
+
/**
|
|
18493
|
+
* Remaining deposit capacity in UI units (cap minus deposits, accounting for accrued interest).
|
|
18494
|
+
*/
|
|
18495
|
+
declare function computeBankDepositCapRemaining(bank: BankType): number;
|
|
18496
|
+
/**
|
|
18497
|
+
* Remaining borrow capacity in UI units (cap minus borrows, accounting for accrued interest).
|
|
18498
|
+
*/
|
|
18499
|
+
declare function computeBankBorrowCapRemaining(bank: BankType): number;
|
|
18500
|
+
/**
|
|
18501
|
+
* Supply APY, compounded from the base lending rate via the shared `aprToApy` helper.
|
|
18502
|
+
*/
|
|
18503
|
+
declare function computeBankSupplyApy(bank: BankType): number;
|
|
18504
|
+
/**
|
|
18505
|
+
* Borrow APY, compounded from the borrowing rate via the shared `aprToApy` helper.
|
|
18506
|
+
*/
|
|
18507
|
+
declare function computeBankBorrowApy(bank: BankType): number;
|
|
18508
|
+
/**
|
|
18509
|
+
* Aggregator over all per-metric subfunctions. Use this when you want every UI field
|
|
18510
|
+
* for a bank in one call; use the per-metric helpers when you only need one or two
|
|
18511
|
+
* (no need to compute oracle math just to read utilization, etc.).
|
|
18512
|
+
*
|
|
18513
|
+
* Pure: pass whatever `(bank, oraclePrice)` snapshot you want reflected (live,
|
|
18514
|
+
* post-simulation, or synthetically mutated).
|
|
18515
|
+
*/
|
|
18516
|
+
declare function computeBankMetrics(params: ComputeBankMetricsParams): BankMetrics;
|
|
18517
|
+
|
|
18492
18518
|
/**
|
|
18493
18519
|
* Fee state cache - stores information from the global FeeState
|
|
18494
18520
|
* so the FeeState can be omitted on certain instructions
|
|
@@ -18674,6 +18700,36 @@ type ValidatorRateData = {
|
|
|
18674
18700
|
};
|
|
18675
18701
|
type ActiveStakePoolMap = Map<string, boolean>;
|
|
18676
18702
|
|
|
18703
|
+
interface MakeMintStakedLstIxParams {
|
|
18704
|
+
amount: Amount;
|
|
18705
|
+
authority: PublicKey;
|
|
18706
|
+
stakeAccountPk: PublicKey;
|
|
18707
|
+
validator: PublicKey;
|
|
18708
|
+
connection: Connection;
|
|
18709
|
+
}
|
|
18710
|
+
interface MakeMintStakedLstTxParams extends MakeMintStakedLstIxParams {
|
|
18711
|
+
luts: AddressLookupTableAccount[];
|
|
18712
|
+
blockhash?: string;
|
|
18713
|
+
}
|
|
18714
|
+
interface MakeRedeemStakedLstIxParams {
|
|
18715
|
+
amount: Amount;
|
|
18716
|
+
authority: PublicKey;
|
|
18717
|
+
validator: PublicKey;
|
|
18718
|
+
connection: Connection;
|
|
18719
|
+
}
|
|
18720
|
+
interface MakeRedeemStakedLstTxParams extends MakeRedeemStakedLstIxParams {
|
|
18721
|
+
luts: AddressLookupTableAccount[];
|
|
18722
|
+
blockhash?: string;
|
|
18723
|
+
}
|
|
18724
|
+
interface MakeMergeStakeAccountsTxParams {
|
|
18725
|
+
authority: PublicKey;
|
|
18726
|
+
sourceStakeAccount: PublicKey;
|
|
18727
|
+
destinationStakeAccount: PublicKey;
|
|
18728
|
+
connection: Connection;
|
|
18729
|
+
luts: AddressLookupTableAccount[];
|
|
18730
|
+
blockhash?: string;
|
|
18731
|
+
}
|
|
18732
|
+
|
|
18677
18733
|
/**
|
|
18678
18734
|
* Retrieves all active stake accounts associated with a given public key grouped by validator
|
|
18679
18735
|
*
|
|
@@ -18732,6 +18788,65 @@ declare function getStakedBankMetadataMap(): Map<string, StakedBankMetadata>;
|
|
|
18732
18788
|
*/
|
|
18733
18789
|
declare function getValidatorVoteAccountByBank(): Record<string, string>;
|
|
18734
18790
|
|
|
18791
|
+
/**
|
|
18792
|
+
* Minimal bank shape required to compute staked-bank multipliers.
|
|
18793
|
+
* Kept local to avoid a hard dependency on the Bank model.
|
|
18794
|
+
*/
|
|
18795
|
+
interface StakedBankLike {
|
|
18796
|
+
address: PublicKey;
|
|
18797
|
+
}
|
|
18798
|
+
/**
|
|
18799
|
+
* Computes the asset-share multiplier (LST → SOL ratio) for each staked bank.
|
|
18800
|
+
*
|
|
18801
|
+
* For each staked bank:
|
|
18802
|
+
* multiplier = max(stakeLamports - LAMPORTS_PER_SOL, 0) / lstMintSupply
|
|
18803
|
+
*
|
|
18804
|
+
* Banks whose metadata cannot be resolved, or whose pool accounts cannot be
|
|
18805
|
+
* fetched, default to a multiplier of 1.
|
|
18806
|
+
*
|
|
18807
|
+
* @param stakedBanks - Banks with `assetTag === AssetTag.STAKED`
|
|
18808
|
+
* @param connection - Solana RPC connection
|
|
18809
|
+
* @returns Map of bank address (base58) → BigNumber multiplier
|
|
18810
|
+
*/
|
|
18811
|
+
declare function computeStakedBankMultipliers(stakedBanks: StakedBankLike[], connection: Connection): Promise<Map<string, BigNumber$1>>;
|
|
18812
|
+
|
|
18813
|
+
/**
|
|
18814
|
+
* Creates instructions to convert a native stake account into LST tokens.
|
|
18815
|
+
*
|
|
18816
|
+
* Steps:
|
|
18817
|
+
* 1. Create LST ATA if needed
|
|
18818
|
+
* 2. Split stake account if partial amount
|
|
18819
|
+
* 3. Authorize staker + withdrawer to pool
|
|
18820
|
+
* 4. Deposit stake into pool → user receives LST
|
|
18821
|
+
*/
|
|
18822
|
+
declare function makeMintStakedLstIx(params: MakeMintStakedLstIxParams): Promise<InstructionsWrapper>;
|
|
18823
|
+
/**
|
|
18824
|
+
* Creates a versioned transaction to convert a native stake account into LST tokens.
|
|
18825
|
+
*/
|
|
18826
|
+
declare function makeMintStakedLstTx(params: MakeMintStakedLstTxParams): Promise<ExtendedV0Transaction>;
|
|
18827
|
+
|
|
18828
|
+
/**
|
|
18829
|
+
* Creates instructions to convert LST tokens back to a native stake account.
|
|
18830
|
+
*
|
|
18831
|
+
* Steps:
|
|
18832
|
+
* 1. Create new stake account (rent-exempt)
|
|
18833
|
+
* 2. Approve pool mint authority to burn LST
|
|
18834
|
+
* 3. Withdraw stake from pool → user receives stake account
|
|
18835
|
+
*/
|
|
18836
|
+
declare function makeRedeemStakedLstIx(params: MakeRedeemStakedLstIxParams): Promise<InstructionsWrapper>;
|
|
18837
|
+
/**
|
|
18838
|
+
* Creates a versioned transaction to convert LST tokens back to a native stake account.
|
|
18839
|
+
*/
|
|
18840
|
+
declare function makeRedeemStakedLstTx(params: MakeRedeemStakedLstTxParams): Promise<ExtendedV0Transaction>;
|
|
18841
|
+
|
|
18842
|
+
/**
|
|
18843
|
+
* Creates a versioned transaction to merge two stake accounts.
|
|
18844
|
+
*
|
|
18845
|
+
* The source stake account will be merged into the destination stake account.
|
|
18846
|
+
* Both accounts must share the same authorized staker/withdrawer and vote account.
|
|
18847
|
+
*/
|
|
18848
|
+
declare function makeMergeStakeAccountsTx(params: MakeMergeStakeAccountsTxParams): Promise<ExtendedV0Transaction>;
|
|
18849
|
+
|
|
18735
18850
|
/**
|
|
18736
18851
|
* Temporary Module for Functions Pending Refactoring
|
|
18737
18852
|
*
|
|
@@ -19234,10 +19349,9 @@ declare function getConfig(environment?: Environment, overrides?: Partial<Omit<P
|
|
|
19234
19349
|
* Error codes for transaction building failures
|
|
19235
19350
|
*/
|
|
19236
19351
|
declare enum TransactionBuildingErrorCode {
|
|
19237
|
-
JUPITER_SWAP_SIZE_EXCEEDED_REPAY = "JUPITER_SWAP_SIZE_EXCEEDED_REPAY",
|
|
19238
|
-
JUPITER_SWAP_SIZE_EXCEEDED_LOOP = "JUPITER_SWAP_SIZE_EXCEEDED_LOOP",
|
|
19239
19352
|
SWAP_SIZE_EXCEEDED_LOOP = "SWAP_SIZE_EXCEEDED_LOOP",
|
|
19240
19353
|
SWAP_SIZE_EXCEEDED_REPAY = "SWAP_SIZE_EXCEEDED_REPAY",
|
|
19354
|
+
SWAP_SIZE_EXCEEDED_POSITION_SWAP = "SWAP_SIZE_EXCEEDED_POSITION_SWAP",
|
|
19241
19355
|
ORACLE_CRANK_FAILED = "ORACLE_CRANK_FAILED",
|
|
19242
19356
|
KAMINO_RESERVE_NOT_FOUND = "KAMINO_RESERVE_NOT_FOUND",
|
|
19243
19357
|
DRIFT_STATE_NOT_FOUND = "DRIFT_STATE_NOT_FOUND",
|
|
@@ -19249,20 +19363,17 @@ declare enum TransactionBuildingErrorCode {
|
|
|
19249
19363
|
* Typed details for each error code
|
|
19250
19364
|
*/
|
|
19251
19365
|
interface TransactionBuildingErrorDetails {
|
|
19252
|
-
[TransactionBuildingErrorCode.
|
|
19253
|
-
bytes: number;
|
|
19254
|
-
accountKeys: number;
|
|
19255
|
-
};
|
|
19256
|
-
[TransactionBuildingErrorCode.JUPITER_SWAP_SIZE_EXCEEDED_REPAY]: {
|
|
19366
|
+
[TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_LOOP]: {
|
|
19257
19367
|
bytes: number;
|
|
19258
19368
|
accountKeys: number;
|
|
19369
|
+
provider?: string;
|
|
19259
19370
|
};
|
|
19260
|
-
[TransactionBuildingErrorCode.
|
|
19371
|
+
[TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_REPAY]: {
|
|
19261
19372
|
bytes: number;
|
|
19262
19373
|
accountKeys: number;
|
|
19263
19374
|
provider?: string;
|
|
19264
19375
|
};
|
|
19265
|
-
[TransactionBuildingErrorCode.
|
|
19376
|
+
[TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_POSITION_SWAP]: {
|
|
19266
19377
|
bytes: number;
|
|
19267
19378
|
accountKeys: number;
|
|
19268
19379
|
provider?: string;
|
|
@@ -19316,13 +19427,9 @@ declare class TransactionBuildingError<T extends TransactionBuildingErrorCode =
|
|
|
19316
19427
|
readonly code: T;
|
|
19317
19428
|
readonly details: TransactionBuildingErrorDetails[T];
|
|
19318
19429
|
private constructor();
|
|
19319
|
-
/**
|
|
19320
|
-
* Jupiter swap instruction size exceeds available transaction size
|
|
19321
|
-
*/
|
|
19322
|
-
static jupiterSwapSizeExceededLoop(bytes: number, accountKeys: number): TransactionBuildingError<TransactionBuildingErrorCode.JUPITER_SWAP_SIZE_EXCEEDED_LOOP>;
|
|
19323
|
-
static jupiterSwapSizeExceededRepay(bytes: number, accountKeys: number): TransactionBuildingError<TransactionBuildingErrorCode.JUPITER_SWAP_SIZE_EXCEEDED_REPAY>;
|
|
19324
19430
|
static swapSizeExceededLoop(bytes: number, accountKeys: number, provider?: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_LOOP>;
|
|
19325
19431
|
static swapSizeExceededRepay(bytes: number, accountKeys: number, provider?: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_REPAY>;
|
|
19432
|
+
static swapSizeExceededPositionSwap(bytes: number, accountKeys: number, provider?: string): TransactionBuildingError<TransactionBuildingErrorCode.SWAP_SIZE_EXCEEDED_POSITION_SWAP>;
|
|
19326
19433
|
/**
|
|
19327
19434
|
* Failed to crank oracles for one or more banks
|
|
19328
19435
|
*/
|
|
@@ -20675,35 +20782,6 @@ declare class MarginfiAccountWrapper {
|
|
|
20675
20782
|
* @param excludedBanks - Array of excluded bank public keys (default: [])
|
|
20676
20783
|
*/
|
|
20677
20784
|
getHealthCheckAccounts(mandatoryBanks?: PublicKey[], excludedBanks?: PublicKey[]): BankType[];
|
|
20678
|
-
/**
|
|
20679
|
-
* Creates a transaction to mint LST from a native stake account.
|
|
20680
|
-
*
|
|
20681
|
-
* Converts a native stake account (or a portion of it) into LST tokens
|
|
20682
|
-
* by depositing the stake into the single-validator pool.
|
|
20683
|
-
*
|
|
20684
|
-
* @param amount - SOL amount to convert (in UI units)
|
|
20685
|
-
* @param stakeAccountPk - The stake account to convert
|
|
20686
|
-
* @param validator - The validator vote account
|
|
20687
|
-
*/
|
|
20688
|
-
makeMintStakedLstTx(amount: Amount, stakeAccountPk: PublicKey, validator: PublicKey): Promise<ExtendedV0Transaction>;
|
|
20689
|
-
/**
|
|
20690
|
-
* Creates a transaction to redeem LST tokens back to a native stake account.
|
|
20691
|
-
*
|
|
20692
|
-
* Burns LST tokens and withdraws the underlying stake into a new stake account.
|
|
20693
|
-
*
|
|
20694
|
-
* @param amount - LST amount to redeem (in UI units)
|
|
20695
|
-
* @param validator - The validator vote account
|
|
20696
|
-
*/
|
|
20697
|
-
makeRedeemStakedLstTx(amount: Amount, validator: PublicKey): Promise<ExtendedV0Transaction>;
|
|
20698
|
-
/**
|
|
20699
|
-
* Creates a transaction to merge two stake accounts.
|
|
20700
|
-
*
|
|
20701
|
-
* Both accounts must share the same authorized staker/withdrawer and vote account.
|
|
20702
|
-
*
|
|
20703
|
-
* @param sourceStakeAccount - The stake account to merge from (will be consumed)
|
|
20704
|
-
* @param destinationStakeAccount - The stake account to merge into
|
|
20705
|
-
*/
|
|
20706
|
-
makeMergeStakeAccountsTx(sourceStakeAccount: PublicKey, destinationStakeAccount: PublicKey): Promise<ExtendedV0Transaction>;
|
|
20707
20785
|
/**
|
|
20708
20786
|
* Gets the underlying MarginfiAccount instance.
|
|
20709
20787
|
* Useful for advanced operations that need direct access.
|
|
@@ -20715,4 +20793,4 @@ declare class MarginfiAccountWrapper {
|
|
|
20715
20793
|
getClient(): Project0Client;
|
|
20716
20794
|
}
|
|
20717
20795
|
|
|
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 };
|
|
20796
|
+
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 BankMetrics, type BankRaw, type BankRawDto, type BankType, type BankTypeDto, BankVaultType, type ComputeAssetHealthComponentParams, type ComputeAssetUsdValueParams, type ComputeBalanceUsdValueParams, type ComputeBankMetricsParams, 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, computeBankBorrowApy, computeBankBorrowCapRemaining, computeBankDepositCapRemaining, computeBankMetrics, computeBankPoolSize, computeBankSupplyApy, computeBankTotalBorrows, computeBankTotalBorrowsUsd, computeBankTotalDeposits, computeBankTotalDepositsUsd, 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, computeStakedBankMultipliers, 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, generateDummyAccount, 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 };
|