@0dotxyz/p0-ts-sdk 2.2.7 → 2.3.0-alpha.1

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/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
- export { a 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 './index-BDDVBMdM.js';
3
+ import BigNumber$1 from 'bignumber.js';
4
+ import { E as ExponentVault, R as ResolveExponentMergeContextParams, a as ExponentMergeContext, b as ExponentMergeAccounts } from './merge.types-BS8s5Ck0.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-BS8s5Ck0.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
  };
@@ -26923,6 +27557,26 @@ interface Instruction {
26923
27557
  /** Instruction data. */
26924
27558
  d: Uint8Array;
26925
27559
  }
27560
+ /** An address lookup table referenced by a transaction template (key + inner addresses). */
27561
+ interface TransactionTemplateLut {
27562
+ /** ALT account address. */
27563
+ p: Pubkey;
27564
+ /** Addresses stored inside the ALT, in order. */
27565
+ a: Pubkey[];
27566
+ }
27567
+ /**
27568
+ * Footprint of the instructions/ALTs surrounding the swap, so the router sizes
27569
+ * routes to fit alongside them. Wire format uses single-letter fields: `i`
27570
+ * instructions, `a` ALTs, `m` extra account metas. See the gateway helper
27571
+ * `buildTitanTemplate`. Over the WebSocket this is sent as a native msgpack
27572
+ * object (no base64) — unlike the gateway GET there is no URL-length limit, so
27573
+ * large ALTs are fine.
27574
+ */
27575
+ interface TransactionTemplate {
27576
+ i: Instruction[];
27577
+ a: TransactionTemplateLut[];
27578
+ m: AccountMeta[];
27579
+ }
26926
27580
  declare enum SwapMode {
26927
27581
  ExactIn = "ExactIn",
26928
27582
  ExactOut = "ExactOut"
@@ -26958,6 +27612,12 @@ interface SwapParams {
26958
27612
  accountsLimitTotal?: number;
26959
27613
  /** Limit writable accounts used by routes. Default: 64. Available since v1.1. */
26960
27614
  accountsLimitWritable?: number;
27615
+ /**
27616
+ * Reserve room for the surrounding (non-swap) instructions + ALTs so the
27617
+ * router sizes routes to fit. Mutually exclusive with `sizeConstraint` /
27618
+ * `accountsLimitTotal` / `accountsLimitWritable`. Available since v1.2.
27619
+ */
27620
+ transactionTemplate?: TransactionTemplate;
26961
27621
  }
26962
27622
  interface TransactionParams {
26963
27623
  userPublicKey: Pubkey;
@@ -27036,6 +27696,10 @@ interface SwapQuotes {
27036
27696
  quotes: {
27037
27697
  [key: string]: SwapRoute;
27038
27698
  };
27699
+ /** Present when DART is enabled; names the route Titan recommends. */
27700
+ metadata?: {
27701
+ ExpectedWinner?: string;
27702
+ };
27039
27703
  }
27040
27704
  interface SwapRoute {
27041
27705
  inAmount: number;
@@ -27188,4 +27852,95 @@ declare function buildSwapQuoteResult(route: {
27188
27852
  }, swapMode: "ExactIn" | "ExactOut"): TitanSwapQuoteResult;
27189
27853
  declare function resolveLookupTables(connection: Connection, lutPubkeys: PublicKey[]): Promise<AddressLookupTableAccount[]>;
27190
27854
 
27191
- 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 TitanProxyExactOutResponse, type TitanProxySwapQuoteResponse, type TitanSwapQuoteResult, TokenAccountNotFoundError, TokenError, TokenInstruction, TokenInvalidAccountError, TokenInvalidAccountOwnerError, TokenInvalidAccountSizeError, TokenInvalidInstructionDataError, TokenInvalidInstructionKeysError, TokenInvalidInstructionProgramError, TokenInvalidInstructionTypeError, TokenInvalidMintError, TokenInvalidOwnerError, TokenOwnerOffCurveError, TokenUnsupportedInstructionError, type TransactionParams, type TransferCheckedInstructionData, type Uint64, V1Client, ZERO, addSigners, approveInstructionData, buildSwapQuoteResult, 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, driftRewardsRawToDto, driftSpotMarketRawToDto, driftStateRawToDto, driftUserRawToDto, driftUserStatsRawToDto, dtoToDriftRewardsRaw, dtoToDriftSpotMarketRaw, dtoToDriftStateRaw, dtoToDriftUserRaw, dtoToDriftUserStatsRaw, dtoToFarmRaw, dtoToJupLendingRewardsRateModelRaw, dtoToJupLendingStateRaw, dtoToJupRateModelRaw, dtoToJupTokenReserveRaw, dtoToObligationRaw, dtoToReserveRaw, farmRawToDto, 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, interpolateLinear, jupLendingRewardsRateModelRawToDto, jupLendingStateRawToDto, jupRateModelRawToDto, jupTokenReserveRawToDto, layout, makeRefreshObligationIx, makeRefreshReservesBatchIx, makeRefreshingIxs, makeUpdateJupLendRate, makeUpdateJupLendRateIx, makeUpdateSpotMarketCumulativeInterestIx, makeUpdateSpotMarketIx, obligationRawToDto, parsePriceData, parsePriceInfo, replenishPoolIx, reserveRawToDto, resolveLookupTables, scaledSupplies, selectBestRoute, slotAdjustmentFactor, syncNativeInstructionData, transferCheckedInstructionData, truncateBorrowCurve, unpackAccount };
27855
+ interface TitanTemplateLut {
27856
+ /** ALT account address (32 raw bytes). */
27857
+ p: Uint8Array;
27858
+ /** Addresses stored inside the ALT, in order (32 raw bytes each). */
27859
+ a: Uint8Array[];
27860
+ }
27861
+ interface TitanTransactionTemplate {
27862
+ i: Instruction[];
27863
+ a: TitanTemplateLut[];
27864
+ m: {
27865
+ p: Uint8Array;
27866
+ s: boolean;
27867
+ w: boolean;
27868
+ }[];
27869
+ }
27870
+ /** Convert a web3.js instruction into Titan wire format (raw bytes). */
27871
+ declare function instructionToTitanWire(ix: TransactionInstruction): Instruction;
27872
+ /** Convert a web3.js ALT into Titan wire format (key + inner addresses). */
27873
+ declare function lutToTitanWire(lut: AddressLookupTableAccount): TitanTemplateLut;
27874
+ /**
27875
+ * Build a Titan `transactionTemplate` from the surrounding (non-swap) footprint.
27876
+ * ALT order is preserved — pass them in the order the final message will use.
27877
+ */
27878
+ declare function buildTitanTemplate(footprint: {
27879
+ instructions: TransactionInstruction[];
27880
+ luts: AddressLookupTableAccount[];
27881
+ extraAccountMetas?: {
27882
+ pubkey: PublicKey;
27883
+ isSigner: boolean;
27884
+ isWritable: boolean;
27885
+ }[];
27886
+ }): TitanTransactionTemplate;
27887
+ /** msgpack-encode then base64 a template for the gateway query string. */
27888
+ declare function encodeTitanTemplate(template: TitanTransactionTemplate): string;
27889
+ interface TitanGatewayQuoteParams {
27890
+ /** Gateway base path, e.g. `https://<host>/api/v1`. `/quote/swap` is appended. */
27891
+ basePath: string;
27892
+ apiKey?: string;
27893
+ headers?: Record<string, string>;
27894
+ inputMint: string;
27895
+ outputMint: string;
27896
+ amount: number;
27897
+ userPublicKey: string;
27898
+ outputAccount: string;
27899
+ slippageBps?: number;
27900
+ swapMode?: "ExactIn" | "ExactOut";
27901
+ dexes?: string[];
27902
+ excludeDexes?: string[];
27903
+ onlyDirectRoutes?: boolean;
27904
+ /** Allowlist of quote providers by id. The gateway has no exclude-list, so to
27905
+ * drop a provider (e.g. Titan-DART) we list the ones we want. */
27906
+ providers?: string[];
27907
+ /** msgpack+base64 template. Mutually exclusive with the size/account limits
27908
+ * below. Note: sent as a query-string value, so a template that embeds large
27909
+ * ALTs can exceed the gateway's URI limit (414) — prefer the numeric limits
27910
+ * for flashloan footprints that reference big lookup tables. */
27911
+ transactionTemplate?: string;
27912
+ /** Numeric sizing (small query params; safe for LUT-heavy footprints). */
27913
+ addSizeConstraint?: boolean;
27914
+ sizeConstraint?: number;
27915
+ accountsLimitTotal?: number;
27916
+ accountsLimitWritable?: number;
27917
+ feeBps?: number;
27918
+ feeAccount?: string;
27919
+ }
27920
+ interface TitanGatewayQuoteResponse {
27921
+ quotes: {
27922
+ [id: string]: SwapRoute;
27923
+ };
27924
+ metadata?: {
27925
+ ExpectedWinner?: string;
27926
+ };
27927
+ }
27928
+ /**
27929
+ * Fetch a V3 quote/swap from the Titan gateway and return the best route.
27930
+ * Honors the gateway's `ExpectedWinner` when present, otherwise falls back to
27931
+ * `selectBestRoute` semantics (max out for ExactIn, min in for ExactOut).
27932
+ */
27933
+ declare function fetchTitanQuoteSwapV3(params: TitanGatewayQuoteParams): Promise<{
27934
+ route: SwapRoute;
27935
+ raw: TitanGatewayQuoteResponse;
27936
+ }>;
27937
+ /**
27938
+ * Pick the best usable route from a quotes map, honoring Titan's
27939
+ * `ExpectedWinner` when present and skipping non-viable (zero-amount) routes.
27940
+ * Shared by the gateway REST path and the WebSocket adapter.
27941
+ */
27942
+ declare function selectGatewayRoute(raw: TitanGatewayQuoteResponse, swapMode: "ExactIn" | "ExactOut"): SwapRoute | null;
27943
+ /** Deserialize a Titan wire instruction (raw bytes) into a web3.js instruction. */
27944
+ declare function deserializeTitanWireInstruction(ix: Instruction): TransactionInstruction;
27945
+
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 };