@0dotxyz/p0-ts-sdk 2.3.1 → 2.3.3
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 +322 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +211 -6
- package/dist/index.d.ts +211 -6
- package/dist/index.js +309 -8
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.cts +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/{types-BC4kJXuQ.d.ts → types-Cxl2AUvk.d.ts} +59 -2
- package/dist/{types-6ULf9Ciw.d.cts → types-DtUR-yHt.d.cts} +59 -2
- package/package.json +2 -1
package/dist/instructions.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
2
|
import { PublicKey, AccountMeta } from '@solana/web3.js';
|
|
3
3
|
import BN from 'bn.js';
|
|
4
|
-
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw } from './types-
|
|
4
|
+
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw } from './types-DtUR-yHt.cjs';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
import 'bignumber.js';
|
|
7
7
|
import './dto-rate-model.types-DveIB9Ll.cjs';
|
package/dist/instructions.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
2
|
import { PublicKey, AccountMeta } from '@solana/web3.js';
|
|
3
3
|
import BN from 'bn.js';
|
|
4
|
-
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw } from './types-
|
|
4
|
+
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw } from './types-Cxl2AUvk.js';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
import 'bignumber.js';
|
|
7
7
|
import './dto-rate-model.types-DveIB9Ll.js';
|
|
@@ -14401,8 +14401,10 @@ interface BankType {
|
|
|
14401
14401
|
emissionsRate: number;
|
|
14402
14402
|
emissionsMint: PublicKey;
|
|
14403
14403
|
emissionsRemaining: BigNumber$1;
|
|
14404
|
+
collectedProgramFeesOutstanding: BigNumber$1;
|
|
14404
14405
|
oracleKey: PublicKey;
|
|
14405
14406
|
emode: EmodeSettingsType;
|
|
14407
|
+
rateLimiter?: BankRateLimiterType;
|
|
14406
14408
|
feesDestinationAccount?: PublicKey;
|
|
14407
14409
|
lendingPositionCount?: BigNumber$1;
|
|
14408
14410
|
borrowingPositionCount?: BigNumber$1;
|
|
@@ -14425,6 +14427,26 @@ interface BankType {
|
|
|
14425
14427
|
jupFTokenAta: PublicKey;
|
|
14426
14428
|
};
|
|
14427
14429
|
}
|
|
14430
|
+
/**
|
|
14431
|
+
* A sliding window rate limiter that tracks net outflow over a time window.
|
|
14432
|
+
* Net outflow = (withdraws + borrows) - (deposits + repays).
|
|
14433
|
+
*/
|
|
14434
|
+
interface RateLimitWindowType {
|
|
14435
|
+
/** Maximum net outflow allowed per window (0 = disabled), in native tokens */
|
|
14436
|
+
maxOutflow: BigNumber$1;
|
|
14437
|
+
/** Window duration in seconds (e.g., 3600 for hourly, 86400 for daily) */
|
|
14438
|
+
windowDuration: number;
|
|
14439
|
+
/** Unix timestamp when the current window started */
|
|
14440
|
+
windowStart: number;
|
|
14441
|
+
/** Net outflow accumulated in the previous window (signed) */
|
|
14442
|
+
prevWindowOutflow: BigNumber$1;
|
|
14443
|
+
/** Net outflow accumulated in the current window (signed) */
|
|
14444
|
+
curWindowOutflow: BigNumber$1;
|
|
14445
|
+
}
|
|
14446
|
+
interface BankRateLimiterType {
|
|
14447
|
+
hourly: RateLimitWindowType;
|
|
14448
|
+
daily: RateLimitWindowType;
|
|
14449
|
+
}
|
|
14428
14450
|
/**
|
|
14429
14451
|
* Bitwise flags for EMode entry
|
|
14430
14452
|
*/
|
|
@@ -14550,6 +14572,10 @@ interface BankRaw {
|
|
|
14550
14572
|
emissionsRate: BN;
|
|
14551
14573
|
emissionsRemaining: WrappedI80F48;
|
|
14552
14574
|
emissionsMint: PublicKey;
|
|
14575
|
+
/**
|
|
14576
|
+
* Fees collected and pending withdraw for the `FeeState.global_fee_wallet`'s canonical ATA for `mint`
|
|
14577
|
+
*/
|
|
14578
|
+
collectedProgramFeesOutstanding?: WrappedI80F48;
|
|
14553
14579
|
/**
|
|
14554
14580
|
* Integration account slot 1 (default Pubkey for non-integrations).
|
|
14555
14581
|
* - Kamino: reserve
|
|
@@ -14567,8 +14593,14 @@ interface BankRaw {
|
|
|
14567
14593
|
/**
|
|
14568
14594
|
* Integration account slot 3 (default Pubkey for non-integrations).
|
|
14569
14595
|
* - Drift: user stats
|
|
14596
|
+
* - JupLend: withdraw intermediary ATA (ATA of liquidity_vault_authority for bank mint)
|
|
14570
14597
|
*/
|
|
14571
14598
|
integrationAcc3: PublicKey;
|
|
14599
|
+
/**
|
|
14600
|
+
* Rate limiter for controlling withdraw/borrow outflow.
|
|
14601
|
+
* Tracks net outflow (outflows - inflows) in native tokens.
|
|
14602
|
+
*/
|
|
14603
|
+
rateLimiter?: BankRateLimiterRaw;
|
|
14572
14604
|
emode: EmodeSettingsRaw;
|
|
14573
14605
|
feesDestinationAccount?: PublicKey;
|
|
14574
14606
|
cache?: BankCacheRaw;
|
|
@@ -14581,6 +14613,29 @@ interface BankCacheRaw {
|
|
|
14581
14613
|
borrowingRate: number;
|
|
14582
14614
|
interestAccumulatedFor: number;
|
|
14583
14615
|
accumulatedSinceLastUpdate: WrappedI80F48;
|
|
14616
|
+
lastOraclePrice: WrappedI80F48;
|
|
14617
|
+
lastOraclePriceTimestamp: BN;
|
|
14618
|
+
lastOraclePriceConfidence: WrappedI80F48;
|
|
14619
|
+
liqCacheFlags: number;
|
|
14620
|
+
liquidationPriceRt: WrappedI80F48;
|
|
14621
|
+
liquidationPriceRtConfidence: WrappedI80F48;
|
|
14622
|
+
liquidationPriceTwap: WrappedI80F48;
|
|
14623
|
+
liquidationPriceTwapConfidence: WrappedI80F48;
|
|
14624
|
+
}
|
|
14625
|
+
/**
|
|
14626
|
+
* A sliding window rate limiter that tracks net outflow over a time window.
|
|
14627
|
+
* Net outflow = (withdraws + borrows) - (deposits + repays).
|
|
14628
|
+
*/
|
|
14629
|
+
interface RateLimitWindowRaw {
|
|
14630
|
+
maxOutflow: BN;
|
|
14631
|
+
windowDuration: BN;
|
|
14632
|
+
windowStart: BN;
|
|
14633
|
+
prevWindowOutflow: BN;
|
|
14634
|
+
curWindowOutflow: BN;
|
|
14635
|
+
}
|
|
14636
|
+
interface BankRateLimiterRaw {
|
|
14637
|
+
hourly: RateLimitWindowRaw;
|
|
14638
|
+
daily: RateLimitWindowRaw;
|
|
14584
14639
|
}
|
|
14585
14640
|
interface BankConfigRaw {
|
|
14586
14641
|
assetWeightInit: WrappedI80F48;
|
|
@@ -15187,8 +15242,10 @@ declare class Bank implements BankType {
|
|
|
15187
15242
|
readonly emissionsRate: number;
|
|
15188
15243
|
readonly emissionsMint: PublicKey;
|
|
15189
15244
|
readonly emissionsRemaining: BigNumber$1;
|
|
15245
|
+
readonly collectedProgramFeesOutstanding: BigNumber$1;
|
|
15190
15246
|
readonly oracleKey: PublicKey;
|
|
15191
15247
|
readonly emode: EmodeSettings;
|
|
15248
|
+
readonly rateLimiter?: BankRateLimiterType | undefined;
|
|
15192
15249
|
readonly kaminoIntegrationAccounts?: {
|
|
15193
15250
|
kaminoReserve: PublicKey;
|
|
15194
15251
|
kaminoObligation: PublicKey;
|
|
@@ -15211,7 +15268,7 @@ declare class Bank implements BankType {
|
|
|
15211
15268
|
readonly lendingPositionCount?: BigNumber$1 | undefined;
|
|
15212
15269
|
readonly borrowingPositionCount?: BigNumber$1 | undefined;
|
|
15213
15270
|
readonly tokenSymbol?: string | undefined;
|
|
15214
|
-
constructor(address: PublicKey, mint: PublicKey, mintDecimals: number, group: PublicKey, assetShareValue: BigNumber$1, liabilityShareValue: BigNumber$1, liquidityVault: PublicKey, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: PublicKey, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber$1, feeVault: PublicKey, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber$1, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber$1, totalLiabilityShares: BigNumber$1, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: PublicKey, emissionsRemaining: BigNumber$1, oracleKey: PublicKey, emode: EmodeSettings, kaminoIntegrationAccounts?: {
|
|
15271
|
+
constructor(address: PublicKey, mint: PublicKey, mintDecimals: number, group: PublicKey, assetShareValue: BigNumber$1, liabilityShareValue: BigNumber$1, liquidityVault: PublicKey, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: PublicKey, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber$1, feeVault: PublicKey, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber$1, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber$1, totalLiabilityShares: BigNumber$1, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: PublicKey, emissionsRemaining: BigNumber$1, collectedProgramFeesOutstanding: BigNumber$1, oracleKey: PublicKey, emode: EmodeSettings, rateLimiter?: BankRateLimiterType | undefined, kaminoIntegrationAccounts?: {
|
|
15215
15272
|
kaminoReserve: PublicKey;
|
|
15216
15273
|
kaminoObligation: PublicKey;
|
|
15217
15274
|
} | undefined, driftIntegrationAccounts?: {
|
|
@@ -15389,4 +15446,4 @@ declare function resolveAmount(amount: Amount | TypedAmount): {
|
|
|
15389
15446
|
type: AmountType;
|
|
15390
15447
|
};
|
|
15391
15448
|
|
|
15392
|
-
export {
|
|
15449
|
+
export { BankConfig as $, AssetTag as A, type BankConfigCompactRaw as B, type BankIntegrationMetadataMap as C, type BalanceType as D, EmodeTag as E, type HealthCacheType as F, type EmodePair as G, HealthCacheFlags as H, type InterestRateConfigRaw as I, type ActiveEmodePair as J, type ActionEmodeImpact as K, MarginRequirementType as L, type MarginfiProgram as M, EmodeImpactStatus as N, OperationalState as O, type PriceWithConfidence as P, BankVaultType as Q, RiskTier as R, type BankIntegrationMetadataMapDto as S, type TypedAmount as T, type BankIntegrationMetadataDto as U, type BankIntegrationMetadata as V, type WrappedI80F48 as W, Bank as X, type Environment as Y, type Project0Config as Z, type MintData as _, type BankConfigOptRaw as a, EmodeSettings as a0, type RateLimitWindowRaw as a1, type BankMetadataRaw as a2, type RatePointRaw as a3, type InterestRateConfigCompactRaw as a4, type InterestRateConfigOptRaw as a5, type OracleConfigOptRaw as a6, type EmodeConfigRaw as a7, type RatePoint as a8, type InterestRateConfigOpt as a9, type OraclePriceMap as aA, type MintDataMap as aB, type AmountType as aC, resolveAmount as aD, type RateLimitWindowType as aa, type EmodeEntry as ab, type OracleConfigOpt as ac, type EmodeImpact as ad, isWeightedPrice as ae, type GetAssetWeightParams as af, getAssetWeight as ag, getLiabilityWeight as ah, computeMaxLeverage as ai, computeLoopingParams as aj, type ComputeUsdValueParams as ak, computeUsdValue as al, type ComputeLiabilityUsdValueParams as am, computeLiabilityUsdValue as an, type ComputeAssetUsdValueParams as ao, computeAssetUsdValue as ap, computeTvl as aq, type PriceWithConfidenceDto as ar, MARGINFI_IDL as as, type Program as at, type Wallet as au, type BankMetadata as av, type BankAddress as aw, AccountType as ax, type KaminoStates as ay, type BankMap as az, type BankType as b, BankConfigFlag as c, OracleSetup as d, EmodeEntryFlags as e, EmodeFlags as f, type OperationalStateRaw as g, type OracleSetupRaw as h, type RiskTierRaw as i, type BankConfigOpt as j, type InterestRateConfig as k, type BankConfigType as l, type BankConfigRaw as m, type EmodeSettingsType as n, type BankRaw as o, type BankRateLimiterRaw as p, type EmodeSettingsRaw as q, type MarginfiIdlType as r, type BankRateLimiterType as s, type OraclePrice as t, PriceBias as u, type OraclePriceDto as v, HealthCacheStatus as w, AccountFlags as x, type MarginfiAccountType as y, type Amount as z };
|
|
@@ -14401,8 +14401,10 @@ interface BankType {
|
|
|
14401
14401
|
emissionsRate: number;
|
|
14402
14402
|
emissionsMint: PublicKey;
|
|
14403
14403
|
emissionsRemaining: BigNumber$1;
|
|
14404
|
+
collectedProgramFeesOutstanding: BigNumber$1;
|
|
14404
14405
|
oracleKey: PublicKey;
|
|
14405
14406
|
emode: EmodeSettingsType;
|
|
14407
|
+
rateLimiter?: BankRateLimiterType;
|
|
14406
14408
|
feesDestinationAccount?: PublicKey;
|
|
14407
14409
|
lendingPositionCount?: BigNumber$1;
|
|
14408
14410
|
borrowingPositionCount?: BigNumber$1;
|
|
@@ -14425,6 +14427,26 @@ interface BankType {
|
|
|
14425
14427
|
jupFTokenAta: PublicKey;
|
|
14426
14428
|
};
|
|
14427
14429
|
}
|
|
14430
|
+
/**
|
|
14431
|
+
* A sliding window rate limiter that tracks net outflow over a time window.
|
|
14432
|
+
* Net outflow = (withdraws + borrows) - (deposits + repays).
|
|
14433
|
+
*/
|
|
14434
|
+
interface RateLimitWindowType {
|
|
14435
|
+
/** Maximum net outflow allowed per window (0 = disabled), in native tokens */
|
|
14436
|
+
maxOutflow: BigNumber$1;
|
|
14437
|
+
/** Window duration in seconds (e.g., 3600 for hourly, 86400 for daily) */
|
|
14438
|
+
windowDuration: number;
|
|
14439
|
+
/** Unix timestamp when the current window started */
|
|
14440
|
+
windowStart: number;
|
|
14441
|
+
/** Net outflow accumulated in the previous window (signed) */
|
|
14442
|
+
prevWindowOutflow: BigNumber$1;
|
|
14443
|
+
/** Net outflow accumulated in the current window (signed) */
|
|
14444
|
+
curWindowOutflow: BigNumber$1;
|
|
14445
|
+
}
|
|
14446
|
+
interface BankRateLimiterType {
|
|
14447
|
+
hourly: RateLimitWindowType;
|
|
14448
|
+
daily: RateLimitWindowType;
|
|
14449
|
+
}
|
|
14428
14450
|
/**
|
|
14429
14451
|
* Bitwise flags for EMode entry
|
|
14430
14452
|
*/
|
|
@@ -14550,6 +14572,10 @@ interface BankRaw {
|
|
|
14550
14572
|
emissionsRate: BN;
|
|
14551
14573
|
emissionsRemaining: WrappedI80F48;
|
|
14552
14574
|
emissionsMint: PublicKey;
|
|
14575
|
+
/**
|
|
14576
|
+
* Fees collected and pending withdraw for the `FeeState.global_fee_wallet`'s canonical ATA for `mint`
|
|
14577
|
+
*/
|
|
14578
|
+
collectedProgramFeesOutstanding?: WrappedI80F48;
|
|
14553
14579
|
/**
|
|
14554
14580
|
* Integration account slot 1 (default Pubkey for non-integrations).
|
|
14555
14581
|
* - Kamino: reserve
|
|
@@ -14567,8 +14593,14 @@ interface BankRaw {
|
|
|
14567
14593
|
/**
|
|
14568
14594
|
* Integration account slot 3 (default Pubkey for non-integrations).
|
|
14569
14595
|
* - Drift: user stats
|
|
14596
|
+
* - JupLend: withdraw intermediary ATA (ATA of liquidity_vault_authority for bank mint)
|
|
14570
14597
|
*/
|
|
14571
14598
|
integrationAcc3: PublicKey;
|
|
14599
|
+
/**
|
|
14600
|
+
* Rate limiter for controlling withdraw/borrow outflow.
|
|
14601
|
+
* Tracks net outflow (outflows - inflows) in native tokens.
|
|
14602
|
+
*/
|
|
14603
|
+
rateLimiter?: BankRateLimiterRaw;
|
|
14572
14604
|
emode: EmodeSettingsRaw;
|
|
14573
14605
|
feesDestinationAccount?: PublicKey;
|
|
14574
14606
|
cache?: BankCacheRaw;
|
|
@@ -14581,6 +14613,29 @@ interface BankCacheRaw {
|
|
|
14581
14613
|
borrowingRate: number;
|
|
14582
14614
|
interestAccumulatedFor: number;
|
|
14583
14615
|
accumulatedSinceLastUpdate: WrappedI80F48;
|
|
14616
|
+
lastOraclePrice: WrappedI80F48;
|
|
14617
|
+
lastOraclePriceTimestamp: BN;
|
|
14618
|
+
lastOraclePriceConfidence: WrappedI80F48;
|
|
14619
|
+
liqCacheFlags: number;
|
|
14620
|
+
liquidationPriceRt: WrappedI80F48;
|
|
14621
|
+
liquidationPriceRtConfidence: WrappedI80F48;
|
|
14622
|
+
liquidationPriceTwap: WrappedI80F48;
|
|
14623
|
+
liquidationPriceTwapConfidence: WrappedI80F48;
|
|
14624
|
+
}
|
|
14625
|
+
/**
|
|
14626
|
+
* A sliding window rate limiter that tracks net outflow over a time window.
|
|
14627
|
+
* Net outflow = (withdraws + borrows) - (deposits + repays).
|
|
14628
|
+
*/
|
|
14629
|
+
interface RateLimitWindowRaw {
|
|
14630
|
+
maxOutflow: BN;
|
|
14631
|
+
windowDuration: BN;
|
|
14632
|
+
windowStart: BN;
|
|
14633
|
+
prevWindowOutflow: BN;
|
|
14634
|
+
curWindowOutflow: BN;
|
|
14635
|
+
}
|
|
14636
|
+
interface BankRateLimiterRaw {
|
|
14637
|
+
hourly: RateLimitWindowRaw;
|
|
14638
|
+
daily: RateLimitWindowRaw;
|
|
14584
14639
|
}
|
|
14585
14640
|
interface BankConfigRaw {
|
|
14586
14641
|
assetWeightInit: WrappedI80F48;
|
|
@@ -15187,8 +15242,10 @@ declare class Bank implements BankType {
|
|
|
15187
15242
|
readonly emissionsRate: number;
|
|
15188
15243
|
readonly emissionsMint: PublicKey;
|
|
15189
15244
|
readonly emissionsRemaining: BigNumber$1;
|
|
15245
|
+
readonly collectedProgramFeesOutstanding: BigNumber$1;
|
|
15190
15246
|
readonly oracleKey: PublicKey;
|
|
15191
15247
|
readonly emode: EmodeSettings;
|
|
15248
|
+
readonly rateLimiter?: BankRateLimiterType | undefined;
|
|
15192
15249
|
readonly kaminoIntegrationAccounts?: {
|
|
15193
15250
|
kaminoReserve: PublicKey;
|
|
15194
15251
|
kaminoObligation: PublicKey;
|
|
@@ -15211,7 +15268,7 @@ declare class Bank implements BankType {
|
|
|
15211
15268
|
readonly lendingPositionCount?: BigNumber$1 | undefined;
|
|
15212
15269
|
readonly borrowingPositionCount?: BigNumber$1 | undefined;
|
|
15213
15270
|
readonly tokenSymbol?: string | undefined;
|
|
15214
|
-
constructor(address: PublicKey, mint: PublicKey, mintDecimals: number, group: PublicKey, assetShareValue: BigNumber$1, liabilityShareValue: BigNumber$1, liquidityVault: PublicKey, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: PublicKey, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber$1, feeVault: PublicKey, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber$1, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber$1, totalLiabilityShares: BigNumber$1, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: PublicKey, emissionsRemaining: BigNumber$1, oracleKey: PublicKey, emode: EmodeSettings, kaminoIntegrationAccounts?: {
|
|
15271
|
+
constructor(address: PublicKey, mint: PublicKey, mintDecimals: number, group: PublicKey, assetShareValue: BigNumber$1, liabilityShareValue: BigNumber$1, liquidityVault: PublicKey, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: PublicKey, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber$1, feeVault: PublicKey, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber$1, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber$1, totalLiabilityShares: BigNumber$1, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: PublicKey, emissionsRemaining: BigNumber$1, collectedProgramFeesOutstanding: BigNumber$1, oracleKey: PublicKey, emode: EmodeSettings, rateLimiter?: BankRateLimiterType | undefined, kaminoIntegrationAccounts?: {
|
|
15215
15272
|
kaminoReserve: PublicKey;
|
|
15216
15273
|
kaminoObligation: PublicKey;
|
|
15217
15274
|
} | undefined, driftIntegrationAccounts?: {
|
|
@@ -15389,4 +15446,4 @@ declare function resolveAmount(amount: Amount | TypedAmount): {
|
|
|
15389
15446
|
type: AmountType;
|
|
15390
15447
|
};
|
|
15391
15448
|
|
|
15392
|
-
export {
|
|
15449
|
+
export { BankConfig as $, AssetTag as A, type BankConfigCompactRaw as B, type BankIntegrationMetadataMap as C, type BalanceType as D, EmodeTag as E, type HealthCacheType as F, type EmodePair as G, HealthCacheFlags as H, type InterestRateConfigRaw as I, type ActiveEmodePair as J, type ActionEmodeImpact as K, MarginRequirementType as L, type MarginfiProgram as M, EmodeImpactStatus as N, OperationalState as O, type PriceWithConfidence as P, BankVaultType as Q, RiskTier as R, type BankIntegrationMetadataMapDto as S, type TypedAmount as T, type BankIntegrationMetadataDto as U, type BankIntegrationMetadata as V, type WrappedI80F48 as W, Bank as X, type Environment as Y, type Project0Config as Z, type MintData as _, type BankConfigOptRaw as a, EmodeSettings as a0, type RateLimitWindowRaw as a1, type BankMetadataRaw as a2, type RatePointRaw as a3, type InterestRateConfigCompactRaw as a4, type InterestRateConfigOptRaw as a5, type OracleConfigOptRaw as a6, type EmodeConfigRaw as a7, type RatePoint as a8, type InterestRateConfigOpt as a9, type OraclePriceMap as aA, type MintDataMap as aB, type AmountType as aC, resolveAmount as aD, type RateLimitWindowType as aa, type EmodeEntry as ab, type OracleConfigOpt as ac, type EmodeImpact as ad, isWeightedPrice as ae, type GetAssetWeightParams as af, getAssetWeight as ag, getLiabilityWeight as ah, computeMaxLeverage as ai, computeLoopingParams as aj, type ComputeUsdValueParams as ak, computeUsdValue as al, type ComputeLiabilityUsdValueParams as am, computeLiabilityUsdValue as an, type ComputeAssetUsdValueParams as ao, computeAssetUsdValue as ap, computeTvl as aq, type PriceWithConfidenceDto as ar, MARGINFI_IDL as as, type Program as at, type Wallet as au, type BankMetadata as av, type BankAddress as aw, AccountType as ax, type KaminoStates as ay, type BankMap as az, type BankType as b, BankConfigFlag as c, OracleSetup as d, EmodeEntryFlags as e, EmodeFlags as f, type OperationalStateRaw as g, type OracleSetupRaw as h, type RiskTierRaw as i, type BankConfigOpt as j, type InterestRateConfig as k, type BankConfigType as l, type BankConfigRaw as m, type EmodeSettingsType as n, type BankRaw as o, type BankRateLimiterRaw as p, type EmodeSettingsRaw as q, type MarginfiIdlType as r, type BankRateLimiterType as s, type OraclePrice as t, PriceBias as u, type OraclePriceDto as v, HealthCacheStatus as w, AccountFlags as x, type MarginfiAccountType as y, type Amount as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0dotxyz/p0-ts-sdk",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"packageManager": "pnpm@10.32.1",
|
|
5
5
|
"description": "TypeScript SDK for P0 Protocol - A Solana DeFi lending protocol",
|
|
6
6
|
"type": "module",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"test": "vitest run",
|
|
48
48
|
"test:watch": "vitest",
|
|
49
49
|
"example:swap-engine": "tsx examples/swap-engine.ts",
|
|
50
|
+
"example:mint-holders": "tsx examples/18-mint-holders.ts",
|
|
50
51
|
"docs": "typedoc",
|
|
51
52
|
"changeset": "changeset",
|
|
52
53
|
"version": "changeset version",
|