@0dotxyz/p0-ts-sdk 2.5.2 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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-f-ZjRBYz.cjs';
4
+ import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw } from './types-DrxdJJIi.cjs';
5
5
  import '@coral-xyz/anchor';
6
6
  import 'bignumber.js';
7
7
  import './dto-rate-model.types-IT8wckYH.cjs';
@@ -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-Bv7AjHar.js';
4
+ import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw } from './types-D1QBbDkU.js';
5
5
  import '@coral-xyz/anchor';
6
6
  import 'bignumber.js';
7
7
  import './dto-rate-model.types-IT8wckYH.js';
@@ -117,6 +117,13 @@ interface BuildGetRequest {
117
117
  payer?: string;
118
118
  wrapAndUnwrapSol?: boolean;
119
119
  destinationTokenAccount?: string;
120
+ /**
121
+ * Set to true if the transaction will be submitted as part of a Jito bundle.
122
+ * Excludes DEXes that are incompatible with Jito bundles (their routes can
123
+ * lock vote accounts, which Jito rejects with "bundles cannot lock any vote
124
+ * accounts"). Defaults to false on the API side.
125
+ */
126
+ forJitoBundle?: boolean;
120
127
  }
121
128
  /** Response from `GET /swap/v2/build`. */
122
129
  interface BuildResponse {
package/dist/jupiter.d.ts CHANGED
@@ -117,6 +117,13 @@ interface BuildGetRequest {
117
117
  payer?: string;
118
118
  wrapAndUnwrapSol?: boolean;
119
119
  destinationTokenAccount?: string;
120
+ /**
121
+ * Set to true if the transaction will be submitted as part of a Jito bundle.
122
+ * Excludes DEXes that are incompatible with Jito bundles (their routes can
123
+ * lock vote accounts, which Jito rejects with "bundles cannot lock any vote
124
+ * accounts"). Defaults to false on the API side.
125
+ */
126
+ forJitoBundle?: boolean;
120
127
  }
121
128
  /** Response from `GET /swap/v2/build`. */
122
129
  interface BuildResponse {
@@ -19416,6 +19416,7 @@ declare enum EmodeFlags {
19416
19416
  declare enum EmodeTag {
19417
19417
  UNSET = 0,
19418
19418
  SOL = 501,
19419
+ SOL_T2 = 502,
19419
19420
  LST_T1 = 1571,
19420
19421
  LST_T2 = 1572,
19421
19422
  LST_PT = 15787,
@@ -19423,7 +19424,9 @@ declare enum EmodeTag {
19423
19424
  STABLE_T1 = 57481,
19424
19425
  STABLE_T2 = 57482,
19425
19426
  BTC_T1 = 871,
19426
- BTC_T2 = 872
19427
+ BTC_T2 = 872,
19428
+ HYUSD = 47050,
19429
+ PT_HYUSD = 8747
19427
19430
  }
19428
19431
  interface EmodeSettingsType {
19429
19432
  emodeTag: EmodeTag;
@@ -19416,6 +19416,7 @@ declare enum EmodeFlags {
19416
19416
  declare enum EmodeTag {
19417
19417
  UNSET = 0,
19418
19418
  SOL = 501,
19419
+ SOL_T2 = 502,
19419
19420
  LST_T1 = 1571,
19420
19421
  LST_T2 = 1572,
19421
19422
  LST_PT = 15787,
@@ -19423,7 +19424,9 @@ declare enum EmodeTag {
19423
19424
  STABLE_T1 = 57481,
19424
19425
  STABLE_T2 = 57482,
19425
19426
  BTC_T1 = 871,
19426
- BTC_T2 = 872
19427
+ BTC_T2 = 872,
19428
+ HYUSD = 47050,
19429
+ PT_HYUSD = 8747
19427
19430
  }
19428
19431
  interface EmodeSettingsType {
19429
19432
  emodeTag: EmodeTag;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0dotxyz/p0-ts-sdk",
3
- "version": "2.5.2",
3
+ "version": "2.5.4",
4
4
  "packageManager": "pnpm@10.32.1",
5
5
  "description": "TypeScript SDK for P0 Protocol - A Solana DeFi lending protocol",
6
6
  "type": "module",