@0dotxyz/p0-ts-sdk 2.6.0-alpha.2 → 2.6.0-alpha.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/dist/vendor.cjs CHANGED
@@ -45779,7 +45779,7 @@ async function resolveExponentWrapperMergeContext(params) {
45779
45779
  };
45780
45780
  }
45781
45781
  var GAMMA_VAULT_PROGRAM_ID = new web3_js.PublicKey(
45782
- "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
45782
+ "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV"
45783
45783
  );
45784
45784
  var SEED_WITHDRAWAL_POLICY = "withdrawal_policy";
45785
45785
  var SEED_DEPOSIT_POLICY = "deposit_policy";
@@ -45789,7 +45789,7 @@ var SEED_WITHDRAW_RECEIPT = "withdraw_receipt";
45789
45789
 
45790
45790
  // src/vendor/gamma/idl/gamma-idl-2.json
45791
45791
  var gamma_idl_2_default = {
45792
- address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ",
45792
+ address: "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV",
45793
45793
  metadata: {
45794
45794
  name: "gamma_vault",
45795
45795
  version: "2.2.0",
@@ -47133,7 +47133,7 @@ var gamma_idl_2_default = {
47133
47133
  "upgrade-authority check below cannot be satisfied with an unrelated",
47134
47134
  "program's ProgramData."
47135
47135
  ],
47136
- address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
47136
+ address: "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV"
47137
47137
  },
47138
47138
  {
47139
47139
  name: "program_data",
@@ -47514,7 +47514,7 @@ var gamma_idl_2_default = {
47514
47514
  },
47515
47515
  {
47516
47516
  name: "program",
47517
- address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
47517
+ address: "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV"
47518
47518
  },
47519
47519
  {
47520
47520
  name: "program_data"
@@ -48326,7 +48326,7 @@ var gamma_idl_2_default = {
48326
48326
  "upgrade-authority check below cannot be satisfied with an unrelated",
48327
48327
  "program's ProgramData."
48328
48328
  ],
48329
- address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
48329
+ address: "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV"
48330
48330
  },
48331
48331
  {
48332
48332
  name: "program_data",