@0dotxyz/p0-ts-sdk 2.3.0-alpha.0 → 2.3.0-alpha.2
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 +290 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +78 -2
- package/dist/index.d.ts +78 -2
- package/dist/index.js +290 -1
- package/dist/index.js.map +1 -1
- package/dist/merge.types-Coz1eQZg.d.cts +144 -0
- package/dist/merge.types-Coz1eQZg.d.ts +144 -0
- package/dist/vendor.cjs +7367 -1
- package/dist/vendor.cjs.map +1 -1
- package/dist/vendor.d.cts +638 -4
- package/dist/vendor.d.ts +638 -4
- package/dist/vendor.js +7353 -2
- package/dist/vendor.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-BDDVBMdM.d.cts +0 -48
- package/dist/index-BDDVBMdM.d.ts +0 -48
package/dist/vendor.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
2
|
import { PublicKey, TransactionInstruction, Connection, Transaction, Commitment, AccountInfo, AccountMeta as AccountMeta$1, Signer, AddressLookupTableAccount } from '@solana/web3.js';
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
|
|
3
|
+
import BigNumber$1 from 'bignumber.js';
|
|
4
|
+
import { E as ExponentVault, R as ResolveExponentMergeContextParams, a as ExponentMergeContext, b as ExponentMergeAccounts } from './merge.types-Coz1eQZg.js';
|
|
5
|
+
export { c as CrossbarSimulatePayload, C as CurrentResult, F as FeedResponse, O as OracleSubmission, P as PullFeedAccountData, S as SWITCHBOARD_ONDEMANDE_PRICE_PRECISION, d as decodeSwitchboardPullFeedData, g as getSwitchboardProgram, s as switchboardAccountCoder } from './merge.types-Coz1eQZg.js';
|
|
5
6
|
import { Program, BorshCoder, Address } from '@coral-xyz/anchor';
|
|
6
7
|
import { R as ReserveRaw, O as ObligationRaw, h as ObligationJSON, g as ReserveJSON, C as CurvePointFields, r as RewardInfoFields, F as FarmStateRaw, i as FarmStateJSON, H as HistoricalOracleData, s as HistoricalIndexData, P as PoolBalance, I as InsuranceFund, t as FeeStructureJSON, u as OracleGuardRailsJSON, v as FeeStructure, w as OracleGuardRails, S as SpotPosition, c as DriftUserStats, m as DriftUserStatsJSON, a as DriftUser, k as DriftUserJSON, D as DriftSpotMarket, j as DriftSpotMarketJSON, b as DriftRewards, l as DriftRewardsJSON, x as DriftSpotBalanceType, J as JupLendingState, n as JupLendingStateJSON, d as JupTokenReserve, o as JupTokenReserveJSON, e as JupLendingRewardsRateModel, p as JupLendingRewardsRateModelJSON, f as JupRateModel, q as JupRateModelJSON } from './dto-rate-model.types-DveIB9Ll.js';
|
|
7
8
|
export { aa as BigFractionBytesFields, ac as BigFractionBytesJSON, E as BorrowRateCurveFields, X as BorrowRateCurveJSON, Y as CurvePointJSON, ak as FeeTier, al as FeeTierJSON, at as HistoricalIndexDataJSON, as as HistoricalOracleDataJSON, av as InsuranceFundJSON, a9 as LastUpdateFields, ab as LastUpdateJSON, a6 as ObligationCollateralFields, a4 as ObligationCollateralJSON, a7 as ObligationLiquidityFields, a3 as ObligationLiquidityJSON, a8 as ObligationOrderFields, a5 as ObligationOrderJSON, am as OrderFillerRewardStructure, an as OrderFillerRewardStructureJSON, au as PoolBalanceJSON, ao as PriceDivergenceGuardRails, ap as PriceDivergenceGuardRailsJSON, G as PriceHeuristicFields, _ as PriceHeuristicJSON, M as PythConfigurationFields, a1 as PythConfigurationJSON, z as ReserveCollateralFields, Q as ReserveCollateralJSON, A as ReserveConfigFields, U as ReserveConfigJSON, B as ReserveFeesFields, V as ReserveFeesJSON, y as ReserveLiquidityFields, N as ReserveLiquidityJSON, ad as RewardPerTimeUnitPointFields, ag as RewardPerTimeUnitPointJSON, ae as RewardScheduleCurveFields, af as RewardScheduleCurveJSON, K as ScopeConfigurationFields, $ as ScopeConfigurationJSON, aw as SpotBalanceType, ax as SpotPositionJSON, L as SwitchboardConfigurationFields, a0 as SwitchboardConfigurationJSON, T as TokenInfoFields, Z as TokenInfoJSON, ai as UserFeesFields, ah as UserFeesJSON, aq as ValidityGuardRails, ar as ValidityGuardRailsJSON, W as WithdrawalCapsFields, a2 as WithdrawalCapsJSON, aj as isSpotBalanceTypeVariant } from './dto-rate-model.types-DveIB9Ll.js';
|
|
@@ -26321,6 +26322,639 @@ type MakeUpdateJupLendRateParams = {
|
|
|
26321
26322
|
};
|
|
26322
26323
|
declare function makeUpdateJupLendRate({ lendingState }: MakeUpdateJupLendRateParams): _solana_web3_js.TransactionInstruction;
|
|
26323
26324
|
|
|
26325
|
+
/**
|
|
26326
|
+
* Exponent Finance program IDs (mainnet).
|
|
26327
|
+
*
|
|
26328
|
+
* The exponent-core repo's `declare_id!` / `Anchor.toml` use
|
|
26329
|
+
* `ExponentnaRg3CQbW6dqQNZKXp7gtZ9DGMp1cwC4HAS7`, but that is the **localnet** key
|
|
26330
|
+
* (`[programs.localnet]`); the **mainnet** core deployment is
|
|
26331
|
+
* `XP1BRLn8eCYSygrd8er5P4GKdzqKbC3DLoSsS5UYVZy` (confirmed: it's the program that
|
|
26332
|
+
* executes the PT instructions in real mainnet transactions), fronted by the
|
|
26333
|
+
* wrapper/router `XPC1MM4dYACDfykNuXYZ5una2DsMDWL24CrYubCvarC`.
|
|
26334
|
+
*
|
|
26335
|
+
* The instruction encoding/accounts come straight from the committed IDL
|
|
26336
|
+
* (`idl/exponent_core.json`) — same source Exponent's own tooling uses.
|
|
26337
|
+
*/
|
|
26338
|
+
declare const EXPONENT_CORE_PROGRAM_ID: PublicKey;
|
|
26339
|
+
declare const EXPONENT_WRAPPER_PROGRAM_ID: PublicKey;
|
|
26340
|
+
/** The program's localnet `declare_id!` (from the exponent-core repo). */
|
|
26341
|
+
declare const EXPONENT_LOCALNET_PROGRAM_ID: PublicKey;
|
|
26342
|
+
/** Anchor event-CPI authority seed. */
|
|
26343
|
+
declare const EXPONENT_EVENT_AUTHORITY_SEED = "__event_authority";
|
|
26344
|
+
|
|
26345
|
+
/**
|
|
26346
|
+
* Raw Exponent core IDL (as committed in github.com/exponent-finance/exponent-core).
|
|
26347
|
+
* Kept for reference / future codegen. NOTE: its `address` field is the IDL-declared
|
|
26348
|
+
* program id, which differs from the live deployment — see `../constants.ts`.
|
|
26349
|
+
*/
|
|
26350
|
+
declare const EXPONENT_CORE_IDL: {
|
|
26351
|
+
address: string;
|
|
26352
|
+
metadata: {
|
|
26353
|
+
name: string;
|
|
26354
|
+
version: string;
|
|
26355
|
+
spec: string;
|
|
26356
|
+
description: string;
|
|
26357
|
+
};
|
|
26358
|
+
instructions: ({
|
|
26359
|
+
name: string;
|
|
26360
|
+
discriminator: number[];
|
|
26361
|
+
accounts: ({
|
|
26362
|
+
name: string;
|
|
26363
|
+
signer: boolean;
|
|
26364
|
+
writable?: undefined;
|
|
26365
|
+
docs?: undefined;
|
|
26366
|
+
} | {
|
|
26367
|
+
name: string;
|
|
26368
|
+
writable: boolean;
|
|
26369
|
+
signer: boolean;
|
|
26370
|
+
docs?: undefined;
|
|
26371
|
+
} | {
|
|
26372
|
+
name: string;
|
|
26373
|
+
writable: boolean;
|
|
26374
|
+
signer?: undefined;
|
|
26375
|
+
docs?: undefined;
|
|
26376
|
+
} | {
|
|
26377
|
+
name: string;
|
|
26378
|
+
signer?: undefined;
|
|
26379
|
+
writable?: undefined;
|
|
26380
|
+
docs?: undefined;
|
|
26381
|
+
} | {
|
|
26382
|
+
name: string;
|
|
26383
|
+
docs: string[];
|
|
26384
|
+
signer?: undefined;
|
|
26385
|
+
writable?: undefined;
|
|
26386
|
+
} | {
|
|
26387
|
+
name: string;
|
|
26388
|
+
docs: string[];
|
|
26389
|
+
writable: boolean;
|
|
26390
|
+
signer?: undefined;
|
|
26391
|
+
})[];
|
|
26392
|
+
args: ({
|
|
26393
|
+
name: string;
|
|
26394
|
+
type: {
|
|
26395
|
+
defined: {
|
|
26396
|
+
name: string;
|
|
26397
|
+
};
|
|
26398
|
+
};
|
|
26399
|
+
} | {
|
|
26400
|
+
name: string;
|
|
26401
|
+
type: string;
|
|
26402
|
+
})[];
|
|
26403
|
+
returns?: undefined;
|
|
26404
|
+
docs?: undefined;
|
|
26405
|
+
} | {
|
|
26406
|
+
name: string;
|
|
26407
|
+
discriminator: number[];
|
|
26408
|
+
accounts: ({
|
|
26409
|
+
name: string;
|
|
26410
|
+
writable: boolean;
|
|
26411
|
+
signer: boolean;
|
|
26412
|
+
} | {
|
|
26413
|
+
name: string;
|
|
26414
|
+
writable: boolean;
|
|
26415
|
+
signer?: undefined;
|
|
26416
|
+
} | {
|
|
26417
|
+
name: string;
|
|
26418
|
+
writable?: undefined;
|
|
26419
|
+
signer?: undefined;
|
|
26420
|
+
})[];
|
|
26421
|
+
args: ({
|
|
26422
|
+
name: string;
|
|
26423
|
+
type: string;
|
|
26424
|
+
} | {
|
|
26425
|
+
name: string;
|
|
26426
|
+
type: {
|
|
26427
|
+
defined: {
|
|
26428
|
+
name: string;
|
|
26429
|
+
};
|
|
26430
|
+
};
|
|
26431
|
+
})[];
|
|
26432
|
+
returns: {
|
|
26433
|
+
defined: {
|
|
26434
|
+
name: string;
|
|
26435
|
+
};
|
|
26436
|
+
};
|
|
26437
|
+
docs?: undefined;
|
|
26438
|
+
} | {
|
|
26439
|
+
name: string;
|
|
26440
|
+
discriminator: number[];
|
|
26441
|
+
accounts: ({
|
|
26442
|
+
name: string;
|
|
26443
|
+
docs: string[];
|
|
26444
|
+
writable: boolean;
|
|
26445
|
+
signer: boolean;
|
|
26446
|
+
} | {
|
|
26447
|
+
name: string;
|
|
26448
|
+
docs: string[];
|
|
26449
|
+
writable: boolean;
|
|
26450
|
+
signer?: undefined;
|
|
26451
|
+
} | {
|
|
26452
|
+
name: string;
|
|
26453
|
+
writable: boolean;
|
|
26454
|
+
docs?: undefined;
|
|
26455
|
+
signer?: undefined;
|
|
26456
|
+
} | {
|
|
26457
|
+
name: string;
|
|
26458
|
+
docs?: undefined;
|
|
26459
|
+
writable?: undefined;
|
|
26460
|
+
signer?: undefined;
|
|
26461
|
+
})[];
|
|
26462
|
+
args: {
|
|
26463
|
+
name: string;
|
|
26464
|
+
type: {
|
|
26465
|
+
defined: {
|
|
26466
|
+
name: string;
|
|
26467
|
+
};
|
|
26468
|
+
};
|
|
26469
|
+
}[];
|
|
26470
|
+
returns: {
|
|
26471
|
+
defined: {
|
|
26472
|
+
name: string;
|
|
26473
|
+
};
|
|
26474
|
+
};
|
|
26475
|
+
docs?: undefined;
|
|
26476
|
+
} | {
|
|
26477
|
+
name: string;
|
|
26478
|
+
docs: string[];
|
|
26479
|
+
discriminator: number[];
|
|
26480
|
+
accounts: ({
|
|
26481
|
+
name: string;
|
|
26482
|
+
docs: string[];
|
|
26483
|
+
writable: boolean;
|
|
26484
|
+
signer: boolean;
|
|
26485
|
+
} | {
|
|
26486
|
+
name: string;
|
|
26487
|
+
docs: string[];
|
|
26488
|
+
writable: boolean;
|
|
26489
|
+
signer?: undefined;
|
|
26490
|
+
} | {
|
|
26491
|
+
name: string;
|
|
26492
|
+
docs?: undefined;
|
|
26493
|
+
writable?: undefined;
|
|
26494
|
+
signer?: undefined;
|
|
26495
|
+
} | {
|
|
26496
|
+
name: string;
|
|
26497
|
+
docs: string[];
|
|
26498
|
+
writable?: undefined;
|
|
26499
|
+
signer?: undefined;
|
|
26500
|
+
})[];
|
|
26501
|
+
args: {
|
|
26502
|
+
name: string;
|
|
26503
|
+
type: string;
|
|
26504
|
+
}[];
|
|
26505
|
+
returns: {
|
|
26506
|
+
defined: {
|
|
26507
|
+
name: string;
|
|
26508
|
+
};
|
|
26509
|
+
};
|
|
26510
|
+
} | {
|
|
26511
|
+
name: string;
|
|
26512
|
+
docs: string[];
|
|
26513
|
+
discriminator: number[];
|
|
26514
|
+
accounts: ({
|
|
26515
|
+
name: string;
|
|
26516
|
+
writable: boolean;
|
|
26517
|
+
signer: boolean;
|
|
26518
|
+
docs?: undefined;
|
|
26519
|
+
} | {
|
|
26520
|
+
name: string;
|
|
26521
|
+
writable?: undefined;
|
|
26522
|
+
signer?: undefined;
|
|
26523
|
+
docs?: undefined;
|
|
26524
|
+
} | {
|
|
26525
|
+
name: string;
|
|
26526
|
+
docs: string[];
|
|
26527
|
+
writable?: undefined;
|
|
26528
|
+
signer?: undefined;
|
|
26529
|
+
} | {
|
|
26530
|
+
name: string;
|
|
26531
|
+
writable: boolean;
|
|
26532
|
+
signer?: undefined;
|
|
26533
|
+
docs?: undefined;
|
|
26534
|
+
})[];
|
|
26535
|
+
args: ({
|
|
26536
|
+
name: string;
|
|
26537
|
+
type: string;
|
|
26538
|
+
} | {
|
|
26539
|
+
name: string;
|
|
26540
|
+
type: {
|
|
26541
|
+
defined: {
|
|
26542
|
+
name: string;
|
|
26543
|
+
};
|
|
26544
|
+
};
|
|
26545
|
+
})[];
|
|
26546
|
+
returns?: undefined;
|
|
26547
|
+
} | {
|
|
26548
|
+
name: string;
|
|
26549
|
+
discriminator: number[];
|
|
26550
|
+
accounts: ({
|
|
26551
|
+
name: string;
|
|
26552
|
+
writable: boolean;
|
|
26553
|
+
signer: boolean;
|
|
26554
|
+
docs?: undefined;
|
|
26555
|
+
} | {
|
|
26556
|
+
name: string;
|
|
26557
|
+
writable: boolean;
|
|
26558
|
+
signer?: undefined;
|
|
26559
|
+
docs?: undefined;
|
|
26560
|
+
} | {
|
|
26561
|
+
name: string;
|
|
26562
|
+
docs: string[];
|
|
26563
|
+
writable: boolean;
|
|
26564
|
+
signer?: undefined;
|
|
26565
|
+
} | {
|
|
26566
|
+
name: string;
|
|
26567
|
+
docs: string[];
|
|
26568
|
+
writable?: undefined;
|
|
26569
|
+
signer?: undefined;
|
|
26570
|
+
} | {
|
|
26571
|
+
name: string;
|
|
26572
|
+
writable?: undefined;
|
|
26573
|
+
signer?: undefined;
|
|
26574
|
+
docs?: undefined;
|
|
26575
|
+
})[];
|
|
26576
|
+
args: {
|
|
26577
|
+
name: string;
|
|
26578
|
+
type: string;
|
|
26579
|
+
}[];
|
|
26580
|
+
returns: {
|
|
26581
|
+
defined: {
|
|
26582
|
+
name: string;
|
|
26583
|
+
};
|
|
26584
|
+
};
|
|
26585
|
+
docs?: undefined;
|
|
26586
|
+
} | {
|
|
26587
|
+
name: string;
|
|
26588
|
+
docs: string[];
|
|
26589
|
+
discriminator: number[];
|
|
26590
|
+
accounts: ({
|
|
26591
|
+
name: string;
|
|
26592
|
+
writable: boolean;
|
|
26593
|
+
signer: boolean;
|
|
26594
|
+
docs?: undefined;
|
|
26595
|
+
} | {
|
|
26596
|
+
name: string;
|
|
26597
|
+
writable: boolean;
|
|
26598
|
+
signer?: undefined;
|
|
26599
|
+
docs?: undefined;
|
|
26600
|
+
} | {
|
|
26601
|
+
name: string;
|
|
26602
|
+
docs: string[];
|
|
26603
|
+
writable: boolean;
|
|
26604
|
+
signer?: undefined;
|
|
26605
|
+
} | {
|
|
26606
|
+
name: string;
|
|
26607
|
+
writable?: undefined;
|
|
26608
|
+
signer?: undefined;
|
|
26609
|
+
docs?: undefined;
|
|
26610
|
+
} | {
|
|
26611
|
+
name: string;
|
|
26612
|
+
docs: string[];
|
|
26613
|
+
writable?: undefined;
|
|
26614
|
+
signer?: undefined;
|
|
26615
|
+
})[];
|
|
26616
|
+
args: {
|
|
26617
|
+
name: string;
|
|
26618
|
+
type: string;
|
|
26619
|
+
}[];
|
|
26620
|
+
returns: {
|
|
26621
|
+
defined: {
|
|
26622
|
+
name: string;
|
|
26623
|
+
};
|
|
26624
|
+
};
|
|
26625
|
+
} | {
|
|
26626
|
+
name: string;
|
|
26627
|
+
docs: string[];
|
|
26628
|
+
discriminator: number[];
|
|
26629
|
+
accounts: ({
|
|
26630
|
+
name: string;
|
|
26631
|
+
writable: boolean;
|
|
26632
|
+
signer: boolean;
|
|
26633
|
+
docs?: undefined;
|
|
26634
|
+
} | {
|
|
26635
|
+
name: string;
|
|
26636
|
+
docs: string[];
|
|
26637
|
+
writable?: undefined;
|
|
26638
|
+
signer?: undefined;
|
|
26639
|
+
} | {
|
|
26640
|
+
name: string;
|
|
26641
|
+
writable: boolean;
|
|
26642
|
+
signer?: undefined;
|
|
26643
|
+
docs?: undefined;
|
|
26644
|
+
} | {
|
|
26645
|
+
name: string;
|
|
26646
|
+
docs: string[];
|
|
26647
|
+
writable: boolean;
|
|
26648
|
+
signer?: undefined;
|
|
26649
|
+
} | {
|
|
26650
|
+
name: string;
|
|
26651
|
+
writable?: undefined;
|
|
26652
|
+
signer?: undefined;
|
|
26653
|
+
docs?: undefined;
|
|
26654
|
+
})[];
|
|
26655
|
+
args: {
|
|
26656
|
+
name: string;
|
|
26657
|
+
type: string;
|
|
26658
|
+
}[];
|
|
26659
|
+
returns?: undefined;
|
|
26660
|
+
})[];
|
|
26661
|
+
accounts: {
|
|
26662
|
+
name: string;
|
|
26663
|
+
discriminator: number[];
|
|
26664
|
+
}[];
|
|
26665
|
+
events: {
|
|
26666
|
+
name: string;
|
|
26667
|
+
discriminator: number[];
|
|
26668
|
+
}[];
|
|
26669
|
+
errors: {
|
|
26670
|
+
code: number;
|
|
26671
|
+
name: string;
|
|
26672
|
+
msg: string;
|
|
26673
|
+
}[];
|
|
26674
|
+
types: ({
|
|
26675
|
+
name: string;
|
|
26676
|
+
type: {
|
|
26677
|
+
kind: string;
|
|
26678
|
+
fields: ({
|
|
26679
|
+
name: string;
|
|
26680
|
+
type: string;
|
|
26681
|
+
} | {
|
|
26682
|
+
name: string;
|
|
26683
|
+
type: {
|
|
26684
|
+
option: string;
|
|
26685
|
+
defined?: undefined;
|
|
26686
|
+
};
|
|
26687
|
+
} | {
|
|
26688
|
+
name: string;
|
|
26689
|
+
type: {
|
|
26690
|
+
defined: {
|
|
26691
|
+
name: string;
|
|
26692
|
+
};
|
|
26693
|
+
option?: undefined;
|
|
26694
|
+
};
|
|
26695
|
+
})[];
|
|
26696
|
+
variants?: undefined;
|
|
26697
|
+
};
|
|
26698
|
+
docs?: undefined;
|
|
26699
|
+
} | {
|
|
26700
|
+
name: string;
|
|
26701
|
+
type: {
|
|
26702
|
+
kind: string;
|
|
26703
|
+
variants: ({
|
|
26704
|
+
name: string;
|
|
26705
|
+
fields: string[];
|
|
26706
|
+
} | {
|
|
26707
|
+
name: string;
|
|
26708
|
+
fields: {
|
|
26709
|
+
name: string;
|
|
26710
|
+
type: string;
|
|
26711
|
+
}[];
|
|
26712
|
+
} | {
|
|
26713
|
+
name: string;
|
|
26714
|
+
fields: {
|
|
26715
|
+
name: string;
|
|
26716
|
+
type: {
|
|
26717
|
+
defined: {
|
|
26718
|
+
name: string;
|
|
26719
|
+
};
|
|
26720
|
+
};
|
|
26721
|
+
}[];
|
|
26722
|
+
})[];
|
|
26723
|
+
fields?: undefined;
|
|
26724
|
+
};
|
|
26725
|
+
docs?: undefined;
|
|
26726
|
+
} | {
|
|
26727
|
+
name: string;
|
|
26728
|
+
type: {
|
|
26729
|
+
kind: string;
|
|
26730
|
+
variants: ({
|
|
26731
|
+
name: string;
|
|
26732
|
+
fields?: undefined;
|
|
26733
|
+
} | {
|
|
26734
|
+
name: string;
|
|
26735
|
+
fields: string[];
|
|
26736
|
+
})[];
|
|
26737
|
+
fields?: undefined;
|
|
26738
|
+
};
|
|
26739
|
+
docs?: undefined;
|
|
26740
|
+
} | {
|
|
26741
|
+
name: string;
|
|
26742
|
+
docs: string[];
|
|
26743
|
+
type: {
|
|
26744
|
+
kind: string;
|
|
26745
|
+
fields: ({
|
|
26746
|
+
name: string;
|
|
26747
|
+
docs: string[];
|
|
26748
|
+
type: {
|
|
26749
|
+
vec: {
|
|
26750
|
+
defined: {
|
|
26751
|
+
name: string;
|
|
26752
|
+
};
|
|
26753
|
+
vec?: undefined;
|
|
26754
|
+
};
|
|
26755
|
+
};
|
|
26756
|
+
} | {
|
|
26757
|
+
name: string;
|
|
26758
|
+
docs: string[];
|
|
26759
|
+
type: {
|
|
26760
|
+
vec: {
|
|
26761
|
+
vec: {
|
|
26762
|
+
defined: {
|
|
26763
|
+
name: string;
|
|
26764
|
+
};
|
|
26765
|
+
};
|
|
26766
|
+
defined?: undefined;
|
|
26767
|
+
};
|
|
26768
|
+
};
|
|
26769
|
+
})[];
|
|
26770
|
+
variants?: undefined;
|
|
26771
|
+
};
|
|
26772
|
+
} | {
|
|
26773
|
+
name: string;
|
|
26774
|
+
docs: string[];
|
|
26775
|
+
type: {
|
|
26776
|
+
kind: string;
|
|
26777
|
+
fields: {
|
|
26778
|
+
array: (string | number)[];
|
|
26779
|
+
}[];
|
|
26780
|
+
variants?: undefined;
|
|
26781
|
+
};
|
|
26782
|
+
} | {
|
|
26783
|
+
name: string;
|
|
26784
|
+
docs: string[];
|
|
26785
|
+
type: {
|
|
26786
|
+
kind: string;
|
|
26787
|
+
fields: ({
|
|
26788
|
+
name: string;
|
|
26789
|
+
docs: string[];
|
|
26790
|
+
type: {
|
|
26791
|
+
defined: {
|
|
26792
|
+
name: string;
|
|
26793
|
+
};
|
|
26794
|
+
};
|
|
26795
|
+
} | {
|
|
26796
|
+
name: string;
|
|
26797
|
+
docs: string[];
|
|
26798
|
+
type: string;
|
|
26799
|
+
})[];
|
|
26800
|
+
variants?: undefined;
|
|
26801
|
+
};
|
|
26802
|
+
} | {
|
|
26803
|
+
name: string;
|
|
26804
|
+
type: {
|
|
26805
|
+
kind: string;
|
|
26806
|
+
fields: ({
|
|
26807
|
+
name: string;
|
|
26808
|
+
type: string;
|
|
26809
|
+
} | {
|
|
26810
|
+
name: string;
|
|
26811
|
+
type: {
|
|
26812
|
+
defined: {
|
|
26813
|
+
name: string;
|
|
26814
|
+
};
|
|
26815
|
+
vec?: undefined;
|
|
26816
|
+
};
|
|
26817
|
+
} | {
|
|
26818
|
+
name: string;
|
|
26819
|
+
type: {
|
|
26820
|
+
vec: string;
|
|
26821
|
+
defined?: undefined;
|
|
26822
|
+
};
|
|
26823
|
+
})[];
|
|
26824
|
+
variants?: undefined;
|
|
26825
|
+
};
|
|
26826
|
+
docs?: undefined;
|
|
26827
|
+
} | {
|
|
26828
|
+
name: string;
|
|
26829
|
+
type: {
|
|
26830
|
+
kind: string;
|
|
26831
|
+
fields: ({
|
|
26832
|
+
name: string;
|
|
26833
|
+
docs: string[];
|
|
26834
|
+
type: string;
|
|
26835
|
+
} | {
|
|
26836
|
+
name: string;
|
|
26837
|
+
docs: string[];
|
|
26838
|
+
type: {
|
|
26839
|
+
array: (string | number)[];
|
|
26840
|
+
defined?: undefined;
|
|
26841
|
+
vec?: undefined;
|
|
26842
|
+
};
|
|
26843
|
+
} | {
|
|
26844
|
+
name: string;
|
|
26845
|
+
docs: string[];
|
|
26846
|
+
type: {
|
|
26847
|
+
defined: {
|
|
26848
|
+
name: string;
|
|
26849
|
+
};
|
|
26850
|
+
array?: undefined;
|
|
26851
|
+
vec?: undefined;
|
|
26852
|
+
};
|
|
26853
|
+
} | {
|
|
26854
|
+
name: string;
|
|
26855
|
+
type: string;
|
|
26856
|
+
docs?: undefined;
|
|
26857
|
+
} | {
|
|
26858
|
+
name: string;
|
|
26859
|
+
type: {
|
|
26860
|
+
vec: {
|
|
26861
|
+
defined: {
|
|
26862
|
+
name: string;
|
|
26863
|
+
};
|
|
26864
|
+
};
|
|
26865
|
+
array?: undefined;
|
|
26866
|
+
defined?: undefined;
|
|
26867
|
+
};
|
|
26868
|
+
docs?: undefined;
|
|
26869
|
+
} | {
|
|
26870
|
+
name: string;
|
|
26871
|
+
type: {
|
|
26872
|
+
defined: {
|
|
26873
|
+
name: string;
|
|
26874
|
+
};
|
|
26875
|
+
array?: undefined;
|
|
26876
|
+
vec?: undefined;
|
|
26877
|
+
};
|
|
26878
|
+
docs?: undefined;
|
|
26879
|
+
})[];
|
|
26880
|
+
variants?: undefined;
|
|
26881
|
+
};
|
|
26882
|
+
docs?: undefined;
|
|
26883
|
+
} | {
|
|
26884
|
+
name: string;
|
|
26885
|
+
type: {
|
|
26886
|
+
kind: string;
|
|
26887
|
+
fields: ({
|
|
26888
|
+
name: string;
|
|
26889
|
+
docs: string[];
|
|
26890
|
+
type: string;
|
|
26891
|
+
} | {
|
|
26892
|
+
name: string;
|
|
26893
|
+
docs: string[];
|
|
26894
|
+
type: {
|
|
26895
|
+
defined: {
|
|
26896
|
+
name: string;
|
|
26897
|
+
};
|
|
26898
|
+
vec?: undefined;
|
|
26899
|
+
};
|
|
26900
|
+
} | {
|
|
26901
|
+
name: string;
|
|
26902
|
+
docs: string[];
|
|
26903
|
+
type: {
|
|
26904
|
+
vec: {
|
|
26905
|
+
defined: {
|
|
26906
|
+
name: string;
|
|
26907
|
+
};
|
|
26908
|
+
};
|
|
26909
|
+
defined?: undefined;
|
|
26910
|
+
};
|
|
26911
|
+
})[];
|
|
26912
|
+
variants?: undefined;
|
|
26913
|
+
};
|
|
26914
|
+
docs?: undefined;
|
|
26915
|
+
})[];
|
|
26916
|
+
};
|
|
26917
|
+
|
|
26918
|
+
/**
|
|
26919
|
+
* Exponent's high-precision `Number` is a little-endian U256 (`[u64; 4]`) scaled by 1e12
|
|
26920
|
+
* (`precise_number::ONE`). See exponent-core `libraries/precise_number`.
|
|
26921
|
+
*/
|
|
26922
|
+
declare const EXPONENT_NUMBER_DENOM: BigNumber;
|
|
26923
|
+
/** Convert a decoded Exponent `Number` (LE `[u64; 4]` U256) to a scaled BigNumber. */
|
|
26924
|
+
declare function exponentNumberToBigNumber(raw: unknown): BigNumber;
|
|
26925
|
+
/** Decode a raw `Vault` account buffer into {@link ExponentVault}. */
|
|
26926
|
+
declare function decodeExponentVault(data: Buffer): ExponentVault;
|
|
26927
|
+
/** Decode a `MarketTwo` account and return its `vault` address. */
|
|
26928
|
+
declare function decodeExponentMarketVault(data: Buffer): PublicKey;
|
|
26929
|
+
/** Fetch + decode an Exponent `Vault` account. */
|
|
26930
|
+
declare function fetchExponentVault(connection: Connection, vault: PublicKey): Promise<ExponentVault>;
|
|
26931
|
+
/** Fetch a `MarketTwo` account and resolve + fetch its `Vault`. */
|
|
26932
|
+
declare function fetchExponentVaultFromMarket(connection: Connection, market: PublicKey): Promise<{
|
|
26933
|
+
vault: PublicKey;
|
|
26934
|
+
account: ExponentVault;
|
|
26935
|
+
}>;
|
|
26936
|
+
/** Read an SPL mint's decimals (classic + token-2022 share the offset-44 layout). */
|
|
26937
|
+
declare function getMintDecimals(connection: Connection, mint: PublicKey): Promise<number>;
|
|
26938
|
+
|
|
26939
|
+
/** Derive the Anchor event-CPI authority PDA for the Exponent core program. */
|
|
26940
|
+
declare function deriveExponentEventAuthority(): PublicKey;
|
|
26941
|
+
|
|
26942
|
+
/**
|
|
26943
|
+
* Resolve everything `makeRollPtTx` needs for an Exponent PT roll by decoding the maturity
|
|
26944
|
+
* `Vault` (every vault-side `merge` account is a `has_one` field on it) and deriving the
|
|
26945
|
+
* owner's PT/YT/SY token accounts.
|
|
26946
|
+
*/
|
|
26947
|
+
declare function resolveExponentMergeContext(params: ResolveExponentMergeContextParams): Promise<ExponentMergeContext>;
|
|
26948
|
+
|
|
26949
|
+
/**
|
|
26950
|
+
* Build the Exponent `merge(amount)` instruction — redeems `amount` PT (post-maturity,
|
|
26951
|
+
* 1:1, no AMM/slippage) into SY at `sySrcDstAta`.
|
|
26952
|
+
*
|
|
26953
|
+
* @param accounts resolved merge accounts (see {@link ExponentMergeAccounts})
|
|
26954
|
+
* @param amountNative PT amount to redeem, in native units (u64)
|
|
26955
|
+
*/
|
|
26956
|
+
declare function makeExponentMergeIx(accounts: ExponentMergeAccounts, amountNative: bigint): TransactionInstruction;
|
|
26957
|
+
|
|
26324
26958
|
/** Number of slots that can pass before a publisher's price is no longer included in the aggregate. */
|
|
26325
26959
|
declare const MAX_SLOT_DIFFERENCE = 25;
|
|
26326
26960
|
interface Price {
|
|
@@ -26425,7 +27059,7 @@ declare const SinglePoolInstruction: {
|
|
|
26425
27059
|
initializePool: (voteAccount: PublicKey) => TransactionInstruction;
|
|
26426
27060
|
initializeOnRamp: (pool: PublicKey) => TransactionInstruction;
|
|
26427
27061
|
depositStake: (pool: PublicKey, userStakeAccount: PublicKey, userTokenAccount: PublicKey, userLamportAccount: PublicKey) => Promise<TransactionInstruction>;
|
|
26428
|
-
withdrawStake: (pool: PublicKey, userStakeAccount: PublicKey, userStakeAuthority: PublicKey, userTokenAccount: PublicKey, tokenAmount: BigNumber) => Promise<TransactionInstruction>;
|
|
27062
|
+
withdrawStake: (pool: PublicKey, userStakeAccount: PublicKey, userStakeAuthority: PublicKey, userTokenAccount: PublicKey, tokenAmount: BigNumber$1) => Promise<TransactionInstruction>;
|
|
26429
27063
|
createTokenMetadata: (pool: PublicKey, payer: PublicKey) => Promise<TransactionInstruction>;
|
|
26430
27064
|
updateTokenMetadata: (voteAccount: PublicKey, authorizedWithdrawer: PublicKey, tokenName: string, tokenSymbol: string, tokenUri?: string) => Promise<TransactionInstruction>;
|
|
26431
27065
|
};
|
|
@@ -27309,4 +27943,4 @@ declare function selectGatewayRoute(raw: TitanGatewayQuoteResponse, swapMode: "E
|
|
|
27309
27943
|
/** Deserialize a Titan wire instruction (raw bytes) into a web3.js instruction. */
|
|
27310
27944
|
declare function deserializeTitanWireInstruction(ix: Instruction): TransactionInstruction;
|
|
27311
27945
|
|
|
27312
|
-
export { ACCOUNT_SIZE, ACCOUNT_TYPE_SIZE, ASSOCIATED_TOKEN_PROGRAM_ID, type Account, AccountLayout, type AccountMeta, AccountState, AccountType, type ApproveInstructionData, type Base, type ClientRequest, type CloseAccountInstructionData, ConnectionClosed, CorpAction, CurvePointFields, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_IDL, DRIFT_PROGRAM_ID, type DriftIdlType, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotBalanceType, DriftSpotMarket, DriftSpotMarketJSON, type DriftSpotMarketRaw, type DriftState, type DriftStateJSON, DriftUser, DriftUserJSON, type DriftUserRaw, DriftUserStats, DriftUserStatsJSON, type Ema, ErrorResponse, ExtensionType, FARMS_PROGRAM_ID, FarmStateJSON, FarmStateRaw, FeeStructure, FeeStructureJSON, HistoricalIndexData, HistoricalOracleData, type InitializeAccountInstructionData, type Instruction, InsuranceFund, JUP_EXCHANGE_PRICES_PRECISION, JUP_LEND_IDL, JUP_LEND_PROGRAM_ID, JUP_LIQUIDITY_IDL, JUP_LIQUIDITY_PROGRAM_ID, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ID, JUP_SECONDS_PER_YEAR, type JupLendIdlType, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, type JupLendingRewardsRateModelRaw, JupLendingState, JupLendingStateJSON, type JupLendingStateRaw, type JupLiquidityIdlType, JupRateModel, JupRateModelJSON, type JupRateModelRaw, JupTokenReserve, JupTokenReserveJSON, type JupTokenReserveRaw, KFARMS_IDL, KLEND_ACCOUNT_CODER, KLEND_IDL, KLEND_PROGRAM_ID, type KaminoReserveCurveData, type KfarmsIdlType, type KlendIdlType, type KlendInterestRateCurvePoint, LENGTH_SIZE, MAX_SLOT_DIFFERENCE, MEMO_PROGRAM_ID, MINT_SIZE, MULTISIG_SIZE, type Mint, MintLayout, type Multisig, MultisigLayout, NATIVE_MINT, ONE, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, ObligationJSON, ObligationRaw, OracleGuardRails, OracleGuardRailsJSON, PERCENTAGE_PRECISION, PERCENTAGE_PRECISION_EXP, type PlatformFee, PoolBalance, type Price, type PriceComponent, type PriceData, PriceStatus, PriceType, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, REFRESH_OBLIGATION_DISCRIMINATOR, type RawAccount, type RawMint, type RawMultisig, type RefreshObligationAccounts, type RequestData, ReserveJSON, ReserveRaw, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, RewardInfoFields, type RoutePlanStep, SEED_BASE_REFERRER_STATE, SEED_BASE_REFERRER_TOKEN_STATE, SEED_BASE_SHORT_URL, SEED_BASE_USER_METADATA, SEED_DRIFT_SIGNER, SEED_DRIFT_STATE, SEED_FEE_RECEIVER, SEED_F_TOKEN_MINT, SEED_LENDING, SEED_LENDING_ADMIN, SEED_LENDING_MARKET_AUTH, SEED_LENDING_REWARDS_RATE_MODEL, SEED_LIQUIDITY, SEED_RATE_MODEL, SEED_RESERVE, SEED_RESERVE_COLL_MINT, SEED_RESERVE_COLL_SUPPLY, SEED_RESERVE_LIQ_SUPPLY, SEED_SPOT_MARKET, SEED_SPOT_MARKET_VAULT, SEED_USER, SEED_USER_CLAIM, SEED_USER_STATE, SEED_USER_STATS, SEED_USER_SUPPLY_POSITION, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_RATE_PRECISION_EXP, SPOT_MARKET_UTILIZATION_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION_EXP, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SinglePoolInstruction, SplAccountType, SpotPosition, type StakeAccount, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type SyncNativeInstructionData, TEN, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, TYPE_SIZE, type TitanGatewayQuoteParams, type TitanGatewayQuoteResponse, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, type TitanTemplateLut, type TitanTransactionTemplate, TokenAccountNotFoundError, TokenError, TokenInstruction, TokenInvalidAccountError, TokenInvalidAccountOwnerError, TokenInvalidAccountSizeError, TokenInvalidInstructionDataError, TokenInvalidInstructionKeysError, TokenInvalidInstructionProgramError, TokenInvalidInstructionTypeError, TokenInvalidMintError, TokenInvalidOwnerError, TokenOwnerOffCurveError, TokenUnsupportedInstructionError, type TransactionParams, type TransactionTemplate, type TransactionTemplateLut, type TransferCheckedInstructionData, type Uint64, V1Client, ZERO, addSigners, approveInstructionData, buildSwapQuoteResult, buildTitanTemplate, calculateAPYFromAPR, calculateDriftBorrowAPR, calculateDriftBorrowAPY, calculateDriftBorrowRate, calculateDriftDepositRate, calculateDriftInterestRate, calculateDriftLendingAPR, calculateDriftLendingAPY, calculateDriftUtilization, calculateJupLendBorrowRate, calculateJupLendLiquiditySupplyRate, calculateJupLendNewExchangePrice, calculateJupLendRewardsRate, calculateJupLendRewardsRateForExchangePrice, calculateJupLendSupplyAPY, calculateJupLendSupplyRate, calculateJupLendTotalAssets, calculateKaminoEstimatedBorrowRate, calculateKaminoEstimatedSupplyRate, calculateKaminoSupplyAPY, calculateRewardApy, calculateSlotAdjustmentFactor, calculateUtilizationRatio, closeAccountInstructionData, createAccountIx, createApproveInstruction, createAssociatedTokenAccountIdempotentInstruction, createAssociatedTokenAccountInstruction, createCloseAccountInstruction, createInitializeAccountInstruction, createMemoInstruction, createPoolOnrampIx, createSyncNativeInstruction, createTransferCheckedInstruction, decodeDriftSpotMarketData, decodeDriftStateData, decodeDriftUserData, decodeDriftUserStatsData, decodeFarmDataRaw, decodeJupLendingRewardsRateModelData, decodeJupLendingStateData, decodeJupRateModelData, decodeJupTokenReserveData, decodeKlendObligationData, decodeKlendReserveData, deriveBaseObligation, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveFeeReceiver, deriveJupLendClaimAccount, deriveJupLendFTokenMint, deriveJupLendLending, deriveJupLendLendingAdmin, deriveJupLendLendingPdas, deriveJupLendLendingRewardsRateModel, deriveJupLendLiquidity, deriveJupLendLiquiditySupplyPositionPda, deriveJupLendLiquidityVaultAta, deriveJupLendRateModel, deriveJupLendTokenReserve, deriveLendingMarketAuthority, deriveObligation, deriveReferrerState, deriveReferrerTokenState, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveShortUrl, deriveUserMetadata, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftStateRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftStateRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToFarmRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToObligationRaw, dtoToReserveRaw, encodeTitanTemplate, farmRawToDto, fetchTitanQuoteSwapV3, findMplMetadataAddress, findPoolAddress, findPoolMintAddress, findPoolMintAddressByVoteAccount, findPoolMintAuthorityAddress, findPoolMplAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, getAccount, getAccountLen, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllDerivedKaminoAccounts, getAllRequiredMarkets, getAssociatedTokenAddressSync, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendRewards, getKaminoBorrowRate, getKaminoTotalSupply, getMinimumBalanceForRentExemptAccount, getMinimumBalanceForRentExemptAccountWithExtensions, getMint, getMultipleAccounts, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, getStakeAccount, initializeAccountInstructionData, initializeStakedPoolIxs, initializeStakedPoolTx, instructionToTitanWire, interpolateLinear, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, layout, lutToTitanWire, makeRefreshObligationIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeUpdateJupLendRate, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, makeUpdateSpotMarketIx, obligationRawToDto, parsePriceData, parsePriceInfo, replenishPoolIx, reserveRawToDto, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, syncNativeInstructionData, transferCheckedInstructionData, truncateBorrowCurve, unpackAccount };
|
|
27946
|
+
export { ACCOUNT_SIZE, ACCOUNT_TYPE_SIZE, ASSOCIATED_TOKEN_PROGRAM_ID, type Account, AccountLayout, type AccountMeta, AccountState, AccountType, type ApproveInstructionData, type Base, type ClientRequest, type CloseAccountInstructionData, ConnectionClosed, CorpAction, CurvePointFields, DEFAULT_RECENT_SLOT_DURATION_MS, DRIFT_IDL, DRIFT_PROGRAM_ID, type DriftIdlType, type DriftInterestRateCurvePoint, DriftRewards, DriftRewardsJSON, DriftSpotBalanceType, DriftSpotMarket, DriftSpotMarketJSON, type DriftSpotMarketRaw, type DriftState, type DriftStateJSON, DriftUser, DriftUserJSON, type DriftUserRaw, DriftUserStats, DriftUserStatsJSON, EXPONENT_CORE_IDL, EXPONENT_CORE_PROGRAM_ID, EXPONENT_EVENT_AUTHORITY_SEED, EXPONENT_LOCALNET_PROGRAM_ID, EXPONENT_NUMBER_DENOM, EXPONENT_WRAPPER_PROGRAM_ID, type Ema, ErrorResponse, ExponentMergeAccounts, ExponentMergeContext, ExponentVault, ExtensionType, FARMS_PROGRAM_ID, FarmStateJSON, FarmStateRaw, FeeStructure, FeeStructureJSON, HistoricalIndexData, HistoricalOracleData, type InitializeAccountInstructionData, type Instruction, InsuranceFund, JUP_EXCHANGE_PRICES_PRECISION, JUP_LEND_IDL, JUP_LEND_PROGRAM_ID, JUP_LIQUIDITY_IDL, JUP_LIQUIDITY_PROGRAM_ID, JUP_MAX_REWARDS_RATE, JUP_REWARDS_PROGRAM_ID, JUP_SECONDS_PER_YEAR, type JupLendIdlType, type JupLendInterestRateCurvePoint, type JupLendRewardsResult, JupLendingRewardsRateModel, JupLendingRewardsRateModelJSON, type JupLendingRewardsRateModelRaw, JupLendingState, JupLendingStateJSON, type JupLendingStateRaw, type JupLiquidityIdlType, JupRateModel, JupRateModelJSON, type JupRateModelRaw, JupTokenReserve, JupTokenReserveJSON, type JupTokenReserveRaw, KFARMS_IDL, KLEND_ACCOUNT_CODER, KLEND_IDL, KLEND_PROGRAM_ID, type KaminoReserveCurveData, type KfarmsIdlType, type KlendIdlType, type KlendInterestRateCurvePoint, LENGTH_SIZE, MAX_SLOT_DIFFERENCE, MEMO_PROGRAM_ID, MINT_SIZE, MULTISIG_SIZE, type Mint, MintLayout, type Multisig, MultisigLayout, NATIVE_MINT, ONE, ONE_HUNDRED_PCT_IN_BPS, ONE_YEAR, ObligationJSON, ObligationRaw, OracleGuardRails, OracleGuardRailsJSON, PERCENTAGE_PRECISION, PERCENTAGE_PRECISION_EXP, type PlatformFee, PoolBalance, type Price, type PriceComponent, type PriceData, PriceStatus, PriceType, type Pubkey, type QuoteSwapStreamResponse, type QuoteUpdateParams, REFRESH_OBLIGATION_DISCRIMINATOR, type RawAccount, type RawMint, type RawMultisig, type RefreshObligationAccounts, type RequestData, ReserveJSON, ReserveRaw, ResolveExponentMergeContextParams, type ResponseData, type ResponseError, type ResponseSuccess, type ResponseWithStream, RewardInfoFields, type RoutePlanStep, SEED_BASE_REFERRER_STATE, SEED_BASE_REFERRER_TOKEN_STATE, SEED_BASE_SHORT_URL, SEED_BASE_USER_METADATA, SEED_DRIFT_SIGNER, SEED_DRIFT_STATE, SEED_FEE_RECEIVER, SEED_F_TOKEN_MINT, SEED_LENDING, SEED_LENDING_ADMIN, SEED_LENDING_MARKET_AUTH, SEED_LENDING_REWARDS_RATE_MODEL, SEED_LIQUIDITY, SEED_RATE_MODEL, SEED_RESERVE, SEED_RESERVE_COLL_MINT, SEED_RESERVE_COLL_SUPPLY, SEED_RESERVE_LIQ_SUPPLY, SEED_SPOT_MARKET, SEED_SPOT_MARKET_VAULT, SEED_USER, SEED_USER_CLAIM, SEED_USER_STATE, SEED_USER_STATS, SEED_USER_SUPPLY_POSITION, SLOTS_PER_DAY, SLOTS_PER_HOUR, SLOTS_PER_MINUTE, SLOTS_PER_SECOND, SLOTS_PER_YEAR, SPOT_MARKET_RATE_PRECISION, SPOT_MARKET_RATE_PRECISION_EXP, SPOT_MARKET_UTILIZATION_PRECISION, SPOT_MARKET_UTILIZATION_PRECISION_EXP, type SerializedInstruction, type SerializedSwapRoute, type ServerMessage, SinglePoolInstruction, SplAccountType, SpotPosition, type StakeAccount, type StopStreamRequest, type StopStreamResponse, type StreamData, type StreamDataPayload, type StreamEnd, StreamError, type StreamStart, SwapMode, type SwapParams, type SwapQuoteRequest, type SwapQuotes, type SwapRoute, SwapVersion, type SyncNativeInstructionData, TEN, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, TYPE_SIZE, type TitanGatewayQuoteParams, type TitanGatewayQuoteResponse, type TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, type TitanTemplateLut, type TitanTransactionTemplate, TokenAccountNotFoundError, TokenError, TokenInstruction, TokenInvalidAccountError, TokenInvalidAccountOwnerError, TokenInvalidAccountSizeError, TokenInvalidInstructionDataError, TokenInvalidInstructionKeysError, TokenInvalidInstructionProgramError, TokenInvalidInstructionTypeError, TokenInvalidMintError, TokenInvalidOwnerError, TokenOwnerOffCurveError, TokenUnsupportedInstructionError, type TransactionParams, type TransactionTemplate, type TransactionTemplateLut, type TransferCheckedInstructionData, type Uint64, V1Client, ZERO, addSigners, approveInstructionData, buildSwapQuoteResult, buildTitanTemplate, calculateAPYFromAPR, calculateDriftBorrowAPR, calculateDriftBorrowAPY, calculateDriftBorrowRate, calculateDriftDepositRate, calculateDriftInterestRate, calculateDriftLendingAPR, calculateDriftLendingAPY, calculateDriftUtilization, calculateJupLendBorrowRate, calculateJupLendLiquiditySupplyRate, calculateJupLendNewExchangePrice, calculateJupLendRewardsRate, calculateJupLendRewardsRateForExchangePrice, calculateJupLendSupplyAPY, calculateJupLendSupplyRate, calculateJupLendTotalAssets, calculateKaminoEstimatedBorrowRate, calculateKaminoEstimatedSupplyRate, calculateKaminoSupplyAPY, calculateRewardApy, calculateSlotAdjustmentFactor, calculateUtilizationRatio, closeAccountInstructionData, createAccountIx, createApproveInstruction, createAssociatedTokenAccountIdempotentInstruction, createAssociatedTokenAccountInstruction, createCloseAccountInstruction, createInitializeAccountInstruction, createMemoInstruction, createPoolOnrampIx, createSyncNativeInstruction, createTransferCheckedInstruction, decodeDriftSpotMarketData, decodeDriftStateData, decodeDriftUserData, decodeDriftUserStatsData, decodeExponentMarketVault, decodeExponentVault, decodeFarmDataRaw, decodeJupLendingRewardsRateModelData, decodeJupLendingStateData, decodeJupRateModelData, decodeJupTokenReserveData, decodeKlendObligationData, decodeKlendReserveData, deriveBaseObligation, deriveDriftSigner, deriveDriftSpotMarket, deriveDriftSpotMarketVault, deriveDriftState, deriveDriftUser, deriveDriftUserStats, deriveExponentEventAuthority, deriveFeeReceiver, deriveJupLendClaimAccount, deriveJupLendFTokenMint, deriveJupLendLending, deriveJupLendLendingAdmin, deriveJupLendLendingPdas, deriveJupLendLendingRewardsRateModel, deriveJupLendLiquidity, deriveJupLendLiquiditySupplyPositionPda, deriveJupLendLiquidityVaultAta, deriveJupLendRateModel, deriveJupLendTokenReserve, deriveLendingMarketAuthority, deriveObligation, deriveReferrerState, deriveReferrerTokenState, deriveReserveCollateralMint, deriveReserveCollateralSupply, deriveReserveLiquiditySupply, deriveShortUrl, deriveUserMetadata, deriveUserState, deserializeSerializedInstruction, deserializeTitanWireInstruction, driftRewardsRawToDto, driftSpotMarketRawToDto, driftStateRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftStateRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToFarmRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToObligationRaw, dtoToReserveRaw, encodeTitanTemplate, exponentNumberToBigNumber, farmRawToDto, fetchExponentVault, fetchExponentVaultFromMarket, fetchTitanQuoteSwapV3, findMplMetadataAddress, findPoolAddress, findPoolMintAddress, findPoolMintAddressByVoteAccount, findPoolMintAuthorityAddress, findPoolMplAuthorityAddress, findPoolOnRampAddress, findPoolStakeAddress, findPoolStakeAuthorityAddress, generateDriftReserveCurve, generateJupLendSupplyCurve, generateKaminoReserveCurve, getAccount, getAccountLen, getAllDerivedDriftAccounts, getAllDerivedJupLendAccounts, getAllDerivedKaminoAccounts, getAllRequiredMarkets, getAssociatedTokenAddressSync, getDriftRewards, getDriftTokenAmount, getFixedHostInterestRate, getJupLendRewards, getKaminoBorrowRate, getKaminoTotalSupply, getMinimumBalanceForRentExemptAccount, getMinimumBalanceForRentExemptAccountWithExtensions, getMint, getMintDecimals, getMultipleAccounts, getProtocolTakeRatePct, getReserveRewardsApy, getRewardPerTimeUnitSecond, getStakeAccount, initializeAccountInstructionData, initializeStakedPoolIxs, initializeStakedPoolTx, instructionToTitanWire, interpolateLinear, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, layout, lutToTitanWire, makeExponentMergeIx, makeRefreshObligationIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeUpdateJupLendRate, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, makeUpdateSpotMarketIx, obligationRawToDto, parsePriceData, parsePriceInfo, replenishPoolIx, reserveRawToDto, resolveExponentMergeContext, resolveLookupTables, scaledSupplies, selectBestRoute, selectGatewayRoute, slotAdjustmentFactor, syncNativeInstructionData, transferCheckedInstructionData, truncateBorrowCurve, unpackAccount };
|