@0dotxyz/p0-ts-sdk 2.6.0-alpha.0 → 2.6.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.js CHANGED
@@ -24705,17 +24705,17 @@ var mapSwbBanksToOraclePrices = (banks, swbOracleAiDataByKey, crossbarResponse)
24705
24705
  });
24706
24706
  return bankOraclePriceMap;
24707
24707
  };
24708
- var mapBrokenFeedsToOraclePrices = (banks, swbOracleAiDataByKey, birdeyeResponse) => {
24708
+ var mapBrokenFeedsToOraclePrices = (banks, swbOracleAiDataByKey, fallbackPricesByFeedId) => {
24709
24709
  const bankOraclePriceMap = /* @__PURE__ */ new Map();
24710
24710
  banks.forEach((bank) => {
24711
24711
  const oracleKey = bank.config.oracleKeys[0].toBase58();
24712
24712
  const oracleData = swbOracleAiDataByKey[oracleKey];
24713
24713
  const oracleFeed = oracleData?.feedHash;
24714
- const birdeyeData = oracleFeed ? birdeyeResponse[oracleFeed] : void 0;
24715
- if (oracleFeed && oracleData && birdeyeData) {
24714
+ const fallbackPrice = oracleFeed ? fallbackPricesByFeedId[oracleFeed] : void 0;
24715
+ if (oracleFeed && oracleData && fallbackPrice) {
24716
24716
  const timestamp = (/* @__PURE__ */ new Date()).getTime().toString();
24717
24717
  const oraclePrice = parseSwbOraclePriceData(
24718
- [birdeyeData],
24718
+ [fallbackPrice],
24719
24719
  new BN9(oracleData.stdev),
24720
24720
  timestamp,
24721
24721
  oracleData
@@ -25231,8 +25231,8 @@ function partitionBanksByCrankability(banks, crankabilityResults) {
25231
25231
  return { crankable, uncrankable };
25232
25232
  }
25233
25233
 
25234
- // src/services/price/utils/birdeye.utils.ts
25235
- async function getBirdeyePricesForMints(mintAddresses, apiEndpoint, opts) {
25234
+ // src/services/price/utils/price-fallback.utils.ts
25235
+ async function getFallbackPricesForMints(mintAddresses, apiEndpoint, opts) {
25236
25236
  const queryKey = opts?.queryKey ?? "mintList";
25237
25237
  try {
25238
25238
  const url = `${apiEndpoint}?${queryKey}=${mintAddresses.join(",")}`;
@@ -25251,13 +25251,14 @@ async function getBirdeyePricesForMints(mintAddresses, apiEndpoint, opts) {
25251
25251
  });
25252
25252
  return extractedPrices;
25253
25253
  } catch (error) {
25254
- console.warn("Error fetching Birdeye prices for static feeds:", error);
25254
+ console.warn("Error fetching fallback prices for static feeds:", error);
25255
25255
  return {};
25256
25256
  }
25257
25257
  }
25258
- var getBirdeyeFallbackPricesByFeedId = async (feedMint, apiEndpoint, opts) => {
25258
+ var getBirdeyePricesForMints = getFallbackPricesForMints;
25259
+ var getFallbackPricesByFeedId = async (feedMint, apiEndpoint, opts) => {
25259
25260
  const mintAddresses = feedMint.map((feedMint2) => feedMint2.mintAddress);
25260
- const prices = await getBirdeyePricesForMints(
25261
+ const prices = await getFallbackPricesForMints(
25261
25262
  mintAddresses,
25262
25263
  apiEndpoint,
25263
25264
  opts
@@ -25273,6 +25274,7 @@ var getBirdeyeFallbackPricesByFeedId = async (feedMint, apiEndpoint, opts) => {
25273
25274
  });
25274
25275
  return priceByFeedId;
25275
25276
  };
25277
+ var getBirdeyeFallbackPricesByFeedId = getFallbackPricesByFeedId;
25276
25278
 
25277
25279
  // src/services/account/types/account.types.ts
25278
25280
  var HealthCacheFlags = /* @__PURE__ */ ((HealthCacheFlags3) => {
@@ -62790,16 +62792,17 @@ var GAMMA_VAULT_PROGRAM_ID = new PublicKey(
62790
62792
  "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
62791
62793
  );
62792
62794
  var SEED_WITHDRAWAL_POLICY = "withdrawal_policy";
62795
+ var SEED_DEPOSIT_POLICY = "deposit_policy";
62793
62796
  var SEED_DEPOSIT_RECEIPT = "deposit_receipt";
62794
62797
  var SEED_WITHDRAW_ESCROW = "withdraw_escrow";
62795
62798
  var SEED_WITHDRAW_RECEIPT = "withdraw_receipt";
62796
62799
 
62797
- // src/vendor/gamma/idl/gamma-vault.json
62798
- var gamma_vault_default = {
62799
- address: "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV",
62800
+ // src/vendor/gamma/idl/gamma-idl-2.json
62801
+ var gamma_idl_2_default = {
62802
+ address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ",
62800
62803
  metadata: {
62801
62804
  name: "gamma_vault",
62802
- version: "2.0.0",
62805
+ version: "2.2.0",
62803
62806
  spec: "0.1.0",
62804
62807
  description: "Gamma Protocol vault program \u2014 LP vaults with instant deposits, escrow withdrawals, and performance fees"
62805
62808
  },
@@ -63152,6 +63155,407 @@ var gamma_vault_default = {
63152
63155
  ],
63153
63156
  args: []
63154
63157
  },
63158
+ {
63159
+ name: "cross_chain_deposit_and_bridge",
63160
+ docs: [
63161
+ "Authenticated BNB/DLN ingress, native Gamma deposit accounting, and",
63162
+ "dePort share send in one atomic Gamma instruction. The bridging logic and",
63163
+ "the deBridge SDK are compiled only under the non-default `cross-chain`",
63164
+ "feature; the default (production) build keeps this entrypoint present but",
63165
+ "hard-disabled (it rejects before any state transition)."
63166
+ ],
63167
+ discriminator: [
63168
+ 191,
63169
+ 64,
63170
+ 193,
63171
+ 191,
63172
+ 223,
63173
+ 242,
63174
+ 234,
63175
+ 122
63176
+ ],
63177
+ accounts: [
63178
+ {
63179
+ name: "cross_chain_config",
63180
+ pda: {
63181
+ seeds: [
63182
+ {
63183
+ kind: "const",
63184
+ value: [
63185
+ 99,
63186
+ 114,
63187
+ 111,
63188
+ 115,
63189
+ 115,
63190
+ 95,
63191
+ 99,
63192
+ 104,
63193
+ 97,
63194
+ 105,
63195
+ 110,
63196
+ 95,
63197
+ 99,
63198
+ 111,
63199
+ 110,
63200
+ 102,
63201
+ 105,
63202
+ 103
63203
+ ]
63204
+ }
63205
+ ]
63206
+ }
63207
+ },
63208
+ {
63209
+ name: "cross_chain_vault_route",
63210
+ pda: {
63211
+ seeds: [
63212
+ {
63213
+ kind: "const",
63214
+ value: [
63215
+ 99,
63216
+ 114,
63217
+ 111,
63218
+ 115,
63219
+ 115,
63220
+ 95,
63221
+ 99,
63222
+ 104,
63223
+ 97,
63224
+ 105,
63225
+ 110,
63226
+ 95,
63227
+ 114,
63228
+ 111,
63229
+ 117,
63230
+ 116,
63231
+ 101
63232
+ ]
63233
+ },
63234
+ {
63235
+ kind: "account",
63236
+ path: "lp_vault"
63237
+ }
63238
+ ]
63239
+ }
63240
+ },
63241
+ {
63242
+ name: "cross_chain_intent",
63243
+ docs: [
63244
+ "Heap-boxed to keep Anchor's generated account parser below the SBF",
63245
+ "4 KiB stack-frame limit without changing the ordered account ABI."
63246
+ ],
63247
+ writable: true,
63248
+ pda: {
63249
+ seeds: [
63250
+ {
63251
+ kind: "const",
63252
+ value: [
63253
+ 99,
63254
+ 114,
63255
+ 111,
63256
+ 115,
63257
+ 115,
63258
+ 95,
63259
+ 99,
63260
+ 104,
63261
+ 97,
63262
+ 105,
63263
+ 110,
63264
+ 95,
63265
+ 105,
63266
+ 110,
63267
+ 116,
63268
+ 101,
63269
+ 110,
63270
+ 116
63271
+ ]
63272
+ },
63273
+ {
63274
+ kind: "const",
63275
+ value: [
63276
+ 100,
63277
+ 101,
63278
+ 112,
63279
+ 111,
63280
+ 115,
63281
+ 105,
63282
+ 116
63283
+ ]
63284
+ },
63285
+ {
63286
+ kind: "account",
63287
+ path: "extcall_meta"
63288
+ }
63289
+ ]
63290
+ }
63291
+ },
63292
+ {
63293
+ name: "extcall_meta"
63294
+ },
63295
+ {
63296
+ name: "extcall_authority",
63297
+ docs: [
63298
+ "DLN's externally supplied CPI signer. Hook expense/reward funds",
63299
+ "first-use rent and the exact native fee transferred to Gamma's sender."
63300
+ ],
63301
+ writable: true,
63302
+ signer: true
63303
+ },
63304
+ {
63305
+ name: "extcall_wallet",
63306
+ writable: true
63307
+ },
63308
+ {
63309
+ name: "cross_chain_sender",
63310
+ docs: [
63311
+ "only when calling deBridge. The handler verifies owner and data before",
63312
+ "funding it with the live native fixed fee."
63313
+ ],
63314
+ writable: true,
63315
+ pda: {
63316
+ seeds: [
63317
+ {
63318
+ kind: "const",
63319
+ value: [
63320
+ 99,
63321
+ 114,
63322
+ 111,
63323
+ 115,
63324
+ 115,
63325
+ 95,
63326
+ 99,
63327
+ 104,
63328
+ 97,
63329
+ 105,
63330
+ 110,
63331
+ 95,
63332
+ 115,
63333
+ 101,
63334
+ 110,
63335
+ 100,
63336
+ 101,
63337
+ 114
63338
+ ]
63339
+ },
63340
+ {
63341
+ kind: "account",
63342
+ path: "lp_vault"
63343
+ }
63344
+ ]
63345
+ }
63346
+ },
63347
+ {
63348
+ name: "cross_chain_sender_share_wallet",
63349
+ writable: true,
63350
+ pda: {
63351
+ seeds: [
63352
+ {
63353
+ kind: "account",
63354
+ path: "cross_chain_sender"
63355
+ },
63356
+ {
63357
+ kind: "account",
63358
+ path: "token_program"
63359
+ },
63360
+ {
63361
+ kind: "account",
63362
+ path: "shares_mint"
63363
+ }
63364
+ ],
63365
+ program: {
63366
+ kind: "const",
63367
+ value: [
63368
+ 140,
63369
+ 151,
63370
+ 37,
63371
+ 143,
63372
+ 78,
63373
+ 36,
63374
+ 137,
63375
+ 241,
63376
+ 187,
63377
+ 61,
63378
+ 16,
63379
+ 41,
63380
+ 20,
63381
+ 142,
63382
+ 13,
63383
+ 131,
63384
+ 11,
63385
+ 90,
63386
+ 19,
63387
+ 153,
63388
+ 218,
63389
+ 255,
63390
+ 16,
63391
+ 132,
63392
+ 4,
63393
+ 142,
63394
+ 123,
63395
+ 216,
63396
+ 219,
63397
+ 233,
63398
+ 248,
63399
+ 89
63400
+ ]
63401
+ }
63402
+ }
63403
+ },
63404
+ {
63405
+ name: "deposit_receipt",
63406
+ writable: true,
63407
+ pda: {
63408
+ seeds: [
63409
+ {
63410
+ kind: "const",
63411
+ value: [
63412
+ 100,
63413
+ 101,
63414
+ 112,
63415
+ 111,
63416
+ 115,
63417
+ 105,
63418
+ 116,
63419
+ 95,
63420
+ 114,
63421
+ 101,
63422
+ 99,
63423
+ 101,
63424
+ 105,
63425
+ 112,
63426
+ 116
63427
+ ]
63428
+ },
63429
+ {
63430
+ kind: "account",
63431
+ path: "extcall_authority"
63432
+ },
63433
+ {
63434
+ kind: "account",
63435
+ path: "lp_vault"
63436
+ }
63437
+ ]
63438
+ }
63439
+ },
63440
+ {
63441
+ name: "instructions",
63442
+ address: "Sysvar1nstructions1111111111111111111111111"
63443
+ },
63444
+ {
63445
+ name: "lp_vault",
63446
+ writable: true,
63447
+ relations: [
63448
+ "withdrawal_policy",
63449
+ "deposit_policy"
63450
+ ]
63451
+ },
63452
+ {
63453
+ name: "withdrawal_policy",
63454
+ writable: true,
63455
+ pda: {
63456
+ seeds: [
63457
+ {
63458
+ kind: "const",
63459
+ value: [
63460
+ 119,
63461
+ 105,
63462
+ 116,
63463
+ 104,
63464
+ 100,
63465
+ 114,
63466
+ 97,
63467
+ 119,
63468
+ 97,
63469
+ 108,
63470
+ 95,
63471
+ 112,
63472
+ 111,
63473
+ 108,
63474
+ 105,
63475
+ 99,
63476
+ 121
63477
+ ]
63478
+ },
63479
+ {
63480
+ kind: "account",
63481
+ path: "lp_vault"
63482
+ }
63483
+ ]
63484
+ }
63485
+ },
63486
+ {
63487
+ name: "deposit_policy",
63488
+ pda: {
63489
+ seeds: [
63490
+ {
63491
+ kind: "const",
63492
+ value: [
63493
+ 100,
63494
+ 101,
63495
+ 112,
63496
+ 111,
63497
+ 115,
63498
+ 105,
63499
+ 116,
63500
+ 95,
63501
+ 112,
63502
+ 111,
63503
+ 108,
63504
+ 105,
63505
+ 99,
63506
+ 121
63507
+ ]
63508
+ },
63509
+ {
63510
+ kind: "account",
63511
+ path: "lp_vault"
63512
+ }
63513
+ ]
63514
+ }
63515
+ },
63516
+ {
63517
+ name: "assets_account",
63518
+ writable: true,
63519
+ relations: [
63520
+ "lp_vault"
63521
+ ]
63522
+ },
63523
+ {
63524
+ name: "assets_mint",
63525
+ relations: [
63526
+ "lp_vault"
63527
+ ]
63528
+ },
63529
+ {
63530
+ name: "shares_mint",
63531
+ writable: true,
63532
+ relations: [
63533
+ "lp_vault"
63534
+ ]
63535
+ },
63536
+ {
63537
+ name: "system_program",
63538
+ address: "11111111111111111111111111111111"
63539
+ },
63540
+ {
63541
+ name: "token_program"
63542
+ },
63543
+ {
63544
+ name: "associated_token_program",
63545
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
63546
+ }
63547
+ ],
63548
+ args: [
63549
+ {
63550
+ name: "args",
63551
+ type: {
63552
+ defined: {
63553
+ name: "CrossChainDepositArgs"
63554
+ }
63555
+ }
63556
+ }
63557
+ ]
63558
+ },
63155
63559
  {
63156
63560
  name: "deposit",
63157
63561
  docs: [
@@ -63184,7 +63588,8 @@ var gamma_vault_default = {
63184
63588
  ],
63185
63589
  writable: true,
63186
63590
  relations: [
63187
- "withdrawal_policy"
63591
+ "withdrawal_policy",
63592
+ "deposit_policy"
63188
63593
  ]
63189
63594
  },
63190
63595
  {
@@ -63224,6 +63629,39 @@ var gamma_vault_default = {
63224
63629
  ]
63225
63630
  }
63226
63631
  },
63632
+ {
63633
+ name: "deposit_policy",
63634
+ docs: [
63635
+ "Hard capacity shared by all deposit sources."
63636
+ ],
63637
+ pda: {
63638
+ seeds: [
63639
+ {
63640
+ kind: "const",
63641
+ value: [
63642
+ 100,
63643
+ 101,
63644
+ 112,
63645
+ 111,
63646
+ 115,
63647
+ 105,
63648
+ 116,
63649
+ 95,
63650
+ 112,
63651
+ 111,
63652
+ 108,
63653
+ 105,
63654
+ 99,
63655
+ 121
63656
+ ]
63657
+ },
63658
+ {
63659
+ kind: "account",
63660
+ path: "lp_vault"
63661
+ }
63662
+ ]
63663
+ }
63664
+ },
63227
63665
  {
63228
63666
  name: "assets_account",
63229
63667
  docs: [
@@ -63705,7 +64143,7 @@ var gamma_vault_default = {
63705
64143
  "upgrade-authority check below cannot be satisfied with an unrelated",
63706
64144
  "program's ProgramData."
63707
64145
  ],
63708
- address: "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV"
64146
+ address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
63709
64147
  },
63710
64148
  {
63711
64149
  name: "program_data",
@@ -63940,6 +64378,41 @@ var gamma_vault_default = {
63940
64378
  ]
63941
64379
  }
63942
64380
  },
64381
+ {
64382
+ name: "deposit_policy",
64383
+ docs: [
64384
+ "Shared hard deposit capacity. New vaults start fail-closed until their",
64385
+ "fund authority explicitly configures this policy."
64386
+ ],
64387
+ writable: true,
64388
+ pda: {
64389
+ seeds: [
64390
+ {
64391
+ kind: "const",
64392
+ value: [
64393
+ 100,
64394
+ 101,
64395
+ 112,
64396
+ 111,
64397
+ 115,
64398
+ 105,
64399
+ 116,
64400
+ 95,
64401
+ 112,
64402
+ 111,
64403
+ 108,
64404
+ 105,
64405
+ 99,
64406
+ 121
64407
+ ]
64408
+ },
64409
+ {
64410
+ kind: "account",
64411
+ path: "lp_vault"
64412
+ }
64413
+ ]
64414
+ }
64415
+ },
63943
64416
  {
63944
64417
  name: "fee_recipient_account",
63945
64418
  docs: [
@@ -63996,54 +64469,474 @@ var gamma_vault_default = {
63996
64469
  ]
63997
64470
  },
63998
64471
  {
63999
- name: "set_fee_config",
64472
+ name: "initialize_cross_chain_config",
64000
64473
  docs: [
64001
- "Configure or disable performance fee settings."
64474
+ "Initialize Gamma's program-owned cross-chain control plane. The",
64475
+ "existing Gamma upgrade authority is the only initializer and the",
64476
+ "circuit breaker always starts paused."
64002
64477
  ],
64003
64478
  discriminator: [
64004
- 221,
64005
- 222,
64006
- 52,
64007
- 206,
64008
- 114,
64009
- 198,
64010
- 64,
64011
- 91
64479
+ 162,
64480
+ 136,
64481
+ 180,
64482
+ 13,
64483
+ 95,
64484
+ 156,
64485
+ 67,
64486
+ 223
64012
64487
  ],
64013
64488
  accounts: [
64014
64489
  {
64015
- name: "fund_authority",
64016
- docs: [
64017
- "Operator / fund authority."
64018
- ],
64019
- signer: true,
64020
- relations: [
64021
- "lp_vault"
64022
- ]
64023
- },
64024
- {
64025
- name: "lp_vault",
64026
- writable: true
64027
- },
64028
- {
64029
- name: "shares_mint",
64490
+ name: "signer",
64030
64491
  writable: true,
64031
- relations: [
64032
- "lp_vault"
64033
- ]
64492
+ signer: true
64034
64493
  },
64035
64494
  {
64036
- name: "fee_recipient_account",
64037
- docs: [
64038
- "Token account that will receive fee shares.",
64039
- "Required when enabling fees (performance_fee_bps > 0) or when",
64040
- "mid-window settlement is needed (accrued fees must be settled",
64041
- "to the old recipient before changing config).",
64042
- "Omit when disabling with no accrued fees.",
64043
- "Mutable because it may be the destination of a MintTo CPI during mid-window settlement."
64044
- ],
64495
+ name: "cross_chain_config",
64045
64496
  writable: true,
64046
- optional: true
64497
+ pda: {
64498
+ seeds: [
64499
+ {
64500
+ kind: "const",
64501
+ value: [
64502
+ 99,
64503
+ 114,
64504
+ 111,
64505
+ 115,
64506
+ 115,
64507
+ 95,
64508
+ 99,
64509
+ 104,
64510
+ 97,
64511
+ 105,
64512
+ 110,
64513
+ 95,
64514
+ 99,
64515
+ 111,
64516
+ 110,
64517
+ 102,
64518
+ 105,
64519
+ 103
64520
+ ]
64521
+ }
64522
+ ]
64523
+ }
64524
+ },
64525
+ {
64526
+ name: "program",
64527
+ address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
64528
+ },
64529
+ {
64530
+ name: "program_data"
64531
+ },
64532
+ {
64533
+ name: "system_program",
64534
+ address: "11111111111111111111111111111111"
64535
+ }
64536
+ ],
64537
+ args: [
64538
+ {
64539
+ name: "admin",
64540
+ type: "pubkey"
64541
+ }
64542
+ ]
64543
+ },
64544
+ {
64545
+ name: "receive_cross_chain_withdrawal",
64546
+ docs: [
64547
+ "Future withdrawal intake shape. The handler and route configuration",
64548
+ "remain independently hard-disabled until the continuation is complete."
64549
+ ],
64550
+ discriminator: [
64551
+ 17,
64552
+ 163,
64553
+ 45,
64554
+ 124,
64555
+ 66,
64556
+ 193,
64557
+ 202,
64558
+ 124
64559
+ ],
64560
+ accounts: [
64561
+ {
64562
+ name: "cross_chain_config",
64563
+ pda: {
64564
+ seeds: [
64565
+ {
64566
+ kind: "const",
64567
+ value: [
64568
+ 99,
64569
+ 114,
64570
+ 111,
64571
+ 115,
64572
+ 115,
64573
+ 95,
64574
+ 99,
64575
+ 104,
64576
+ 97,
64577
+ 105,
64578
+ 110,
64579
+ 95,
64580
+ 99,
64581
+ 111,
64582
+ 110,
64583
+ 102,
64584
+ 105,
64585
+ 103
64586
+ ]
64587
+ }
64588
+ ]
64589
+ }
64590
+ },
64591
+ {
64592
+ name: "cross_chain_vault_route",
64593
+ writable: true,
64594
+ pda: {
64595
+ seeds: [
64596
+ {
64597
+ kind: "const",
64598
+ value: [
64599
+ 99,
64600
+ 114,
64601
+ 111,
64602
+ 115,
64603
+ 115,
64604
+ 95,
64605
+ 99,
64606
+ 104,
64607
+ 97,
64608
+ 105,
64609
+ 110,
64610
+ 95,
64611
+ 114,
64612
+ 111,
64613
+ 117,
64614
+ 116,
64615
+ 101
64616
+ ]
64617
+ },
64618
+ {
64619
+ kind: "account",
64620
+ path: "lp_vault"
64621
+ }
64622
+ ]
64623
+ }
64624
+ },
64625
+ {
64626
+ name: "cross_chain_intent",
64627
+ writable: true,
64628
+ pda: {
64629
+ seeds: [
64630
+ {
64631
+ kind: "const",
64632
+ value: [
64633
+ 99,
64634
+ 114,
64635
+ 111,
64636
+ 115,
64637
+ 115,
64638
+ 95,
64639
+ 99,
64640
+ 104,
64641
+ 97,
64642
+ 105,
64643
+ 110,
64644
+ 95,
64645
+ 105,
64646
+ 110,
64647
+ 116,
64648
+ 101,
64649
+ 110,
64650
+ 116
64651
+ ]
64652
+ },
64653
+ {
64654
+ kind: "const",
64655
+ value: [
64656
+ 119,
64657
+ 105,
64658
+ 116,
64659
+ 104,
64660
+ 100,
64661
+ 114,
64662
+ 97,
64663
+ 119,
64664
+ 97,
64665
+ 108
64666
+ ]
64667
+ },
64668
+ {
64669
+ kind: "account",
64670
+ path: "submission"
64671
+ }
64672
+ ]
64673
+ }
64674
+ },
64675
+ {
64676
+ name: "submission"
64677
+ },
64678
+ {
64679
+ name: "submission_authority",
64680
+ writable: true,
64681
+ signer: true
64682
+ },
64683
+ {
64684
+ name: "inbound_share_wallet",
64685
+ writable: true
64686
+ },
64687
+ {
64688
+ name: "share_escrow",
64689
+ writable: true,
64690
+ pda: {
64691
+ seeds: [
64692
+ {
64693
+ kind: "account",
64694
+ path: "cross_chain_vault_route"
64695
+ },
64696
+ {
64697
+ kind: "account",
64698
+ path: "token_program"
64699
+ },
64700
+ {
64701
+ kind: "account",
64702
+ path: "shares_mint"
64703
+ }
64704
+ ],
64705
+ program: {
64706
+ kind: "const",
64707
+ value: [
64708
+ 140,
64709
+ 151,
64710
+ 37,
64711
+ 143,
64712
+ 78,
64713
+ 36,
64714
+ 137,
64715
+ 241,
64716
+ 187,
64717
+ 61,
64718
+ 16,
64719
+ 41,
64720
+ 20,
64721
+ 142,
64722
+ 13,
64723
+ 131,
64724
+ 11,
64725
+ 90,
64726
+ 19,
64727
+ 153,
64728
+ 218,
64729
+ 255,
64730
+ 16,
64731
+ 132,
64732
+ 4,
64733
+ 142,
64734
+ 123,
64735
+ 216,
64736
+ 219,
64737
+ 233,
64738
+ 248,
64739
+ 89
64740
+ ]
64741
+ }
64742
+ }
64743
+ },
64744
+ {
64745
+ name: "instructions",
64746
+ address: "Sysvar1nstructions1111111111111111111111111"
64747
+ },
64748
+ {
64749
+ name: "lp_vault",
64750
+ relations: [
64751
+ "withdrawal_policy"
64752
+ ]
64753
+ },
64754
+ {
64755
+ name: "withdrawal_policy",
64756
+ pda: {
64757
+ seeds: [
64758
+ {
64759
+ kind: "const",
64760
+ value: [
64761
+ 119,
64762
+ 105,
64763
+ 116,
64764
+ 104,
64765
+ 100,
64766
+ 114,
64767
+ 97,
64768
+ 119,
64769
+ 97,
64770
+ 108,
64771
+ 95,
64772
+ 112,
64773
+ 111,
64774
+ 108,
64775
+ 105,
64776
+ 99,
64777
+ 121
64778
+ ]
64779
+ },
64780
+ {
64781
+ kind: "account",
64782
+ path: "lp_vault"
64783
+ }
64784
+ ]
64785
+ }
64786
+ },
64787
+ {
64788
+ name: "shares_mint"
64789
+ },
64790
+ {
64791
+ name: "system_program",
64792
+ address: "11111111111111111111111111111111"
64793
+ },
64794
+ {
64795
+ name: "token_program"
64796
+ }
64797
+ ],
64798
+ args: [
64799
+ {
64800
+ name: "args",
64801
+ type: {
64802
+ defined: {
64803
+ name: "CrossChainWithdrawalArgs"
64804
+ }
64805
+ }
64806
+ }
64807
+ ]
64808
+ },
64809
+ {
64810
+ name: "set_deposit_policy",
64811
+ docs: [
64812
+ "Configure the hard shared deposit capacity or pause deposits. The",
64813
+ "policy applies equally to native and cross-chain deposit callers."
64814
+ ],
64815
+ discriminator: [
64816
+ 56,
64817
+ 138,
64818
+ 17,
64819
+ 74,
64820
+ 222,
64821
+ 84,
64822
+ 14,
64823
+ 210
64824
+ ],
64825
+ accounts: [
64826
+ {
64827
+ name: "fund_authority",
64828
+ signer: true,
64829
+ relations: [
64830
+ "lp_vault"
64831
+ ]
64832
+ },
64833
+ {
64834
+ name: "payer",
64835
+ docs: [
64836
+ "Payer for initializing the policy on pre-upgrade vaults."
64837
+ ],
64838
+ writable: true,
64839
+ signer: true
64840
+ },
64841
+ {
64842
+ name: "lp_vault"
64843
+ },
64844
+ {
64845
+ name: "deposit_policy",
64846
+ writable: true,
64847
+ pda: {
64848
+ seeds: [
64849
+ {
64850
+ kind: "const",
64851
+ value: [
64852
+ 100,
64853
+ 101,
64854
+ 112,
64855
+ 111,
64856
+ 115,
64857
+ 105,
64858
+ 116,
64859
+ 95,
64860
+ 112,
64861
+ 111,
64862
+ 108,
64863
+ 105,
64864
+ 99,
64865
+ 121
64866
+ ]
64867
+ },
64868
+ {
64869
+ kind: "account",
64870
+ path: "lp_vault"
64871
+ }
64872
+ ]
64873
+ }
64874
+ },
64875
+ {
64876
+ name: "system_program",
64877
+ address: "11111111111111111111111111111111"
64878
+ }
64879
+ ],
64880
+ args: [
64881
+ {
64882
+ name: "capacity_assets",
64883
+ type: "u64"
64884
+ },
64885
+ {
64886
+ name: "deposits_paused",
64887
+ type: "bool"
64888
+ }
64889
+ ]
64890
+ },
64891
+ {
64892
+ name: "set_fee_config",
64893
+ docs: [
64894
+ "Configure or disable performance fee settings."
64895
+ ],
64896
+ discriminator: [
64897
+ 221,
64898
+ 222,
64899
+ 52,
64900
+ 206,
64901
+ 114,
64902
+ 198,
64903
+ 64,
64904
+ 91
64905
+ ],
64906
+ accounts: [
64907
+ {
64908
+ name: "fund_authority",
64909
+ docs: [
64910
+ "Operator / fund authority."
64911
+ ],
64912
+ signer: true,
64913
+ relations: [
64914
+ "lp_vault"
64915
+ ]
64916
+ },
64917
+ {
64918
+ name: "lp_vault",
64919
+ writable: true
64920
+ },
64921
+ {
64922
+ name: "shares_mint",
64923
+ writable: true,
64924
+ relations: [
64925
+ "lp_vault"
64926
+ ]
64927
+ },
64928
+ {
64929
+ name: "fee_recipient_account",
64930
+ docs: [
64931
+ "Token account that will receive fee shares.",
64932
+ "Required when enabling fees (performance_fee_bps > 0) or when",
64933
+ "mid-window settlement is needed (accrued fees must be settled",
64934
+ "to the old recipient before changing config).",
64935
+ "Omit when disabling with no accrued fees.",
64936
+ "Mutable because it may be the destination of a MintTo CPI during mid-window settlement."
64937
+ ],
64938
+ writable: true,
64939
+ optional: true
64047
64940
  },
64048
64941
  {
64049
64942
  name: "token_program"
@@ -64443,7 +65336,7 @@ var gamma_vault_default = {
64443
65336
  "upgrade-authority check below cannot be satisfied with an unrelated",
64444
65337
  "program's ProgramData."
64445
65338
  ],
64446
- address: "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV"
65339
+ address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
64447
65340
  },
64448
65341
  {
64449
65342
  name: "program_data",
@@ -64470,6 +65363,69 @@ var gamma_vault_default = {
64470
65363
  }
64471
65364
  ]
64472
65365
  },
65366
+ {
65367
+ name: "update_cross_chain_config",
65368
+ discriminator: [
65369
+ 79,
65370
+ 141,
65371
+ 137,
65372
+ 119,
65373
+ 118,
65374
+ 242,
65375
+ 249,
65376
+ 118
65377
+ ],
65378
+ accounts: [
65379
+ {
65380
+ name: "admin",
65381
+ signer: true,
65382
+ relations: [
65383
+ "cross_chain_config"
65384
+ ]
65385
+ },
65386
+ {
65387
+ name: "cross_chain_config",
65388
+ writable: true,
65389
+ pda: {
65390
+ seeds: [
65391
+ {
65392
+ kind: "const",
65393
+ value: [
65394
+ 99,
65395
+ 114,
65396
+ 111,
65397
+ 115,
65398
+ 115,
65399
+ 95,
65400
+ 99,
65401
+ 104,
65402
+ 97,
65403
+ 105,
65404
+ 110,
65405
+ 95,
65406
+ 99,
65407
+ 111,
65408
+ 110,
65409
+ 102,
65410
+ 105,
65411
+ 103
65412
+ ]
65413
+ }
65414
+ ]
65415
+ }
65416
+ }
65417
+ ],
65418
+ args: [
65419
+ {
65420
+ name: "new_admin",
65421
+ type: "pubkey"
65422
+ },
65423
+ {
65424
+ name: "deposits_paused",
65425
+ type: "bool"
65426
+ }
65427
+ ]
65428
+ },
64473
65429
  {
64474
65430
  name: "update_global_config",
64475
65431
  discriminator: [
@@ -64579,6 +65535,65 @@ var gamma_vault_default = {
64579
65535
  }
64580
65536
  ]
64581
65537
  },
65538
+ {
65539
+ name: "update_nav_checked",
65540
+ docs: [
65541
+ "Atomically update NAV only when the vault still matches the state read",
65542
+ "by the caller. This prevents deposits, withdrawals, fee assessments, or",
65543
+ "another NAV publish from invalidating an off-chain NAV calculation",
65544
+ "between preflight and transaction execution."
65545
+ ],
65546
+ discriminator: [
65547
+ 2,
65548
+ 235,
65549
+ 178,
65550
+ 75,
65551
+ 223,
65552
+ 26,
65553
+ 72,
65554
+ 144
65555
+ ],
65556
+ accounts: [
65557
+ {
65558
+ name: "fund_authority",
65559
+ docs: [
65560
+ "Fund authority - only they can update NAV."
65561
+ ],
65562
+ signer: true,
65563
+ relations: [
65564
+ "lp_vault"
65565
+ ]
65566
+ },
65567
+ {
65568
+ name: "lp_vault",
65569
+ writable: true
65570
+ },
65571
+ {
65572
+ name: "shares_mint",
65573
+ relations: [
65574
+ "lp_vault"
65575
+ ]
65576
+ }
65577
+ ],
65578
+ args: [
65579
+ {
65580
+ name: "new_nav",
65581
+ type: "u64"
65582
+ },
65583
+ {
65584
+ name: "expected_nav",
65585
+ type: "u64"
65586
+ },
65587
+ {
65588
+ name: "expected_total_shares",
65589
+ type: "u64"
65590
+ },
65591
+ {
65592
+ name: "expected_nav_updated_at",
65593
+ type: "i64"
65594
+ }
65595
+ ]
65596
+ },
64582
65597
  {
64583
65598
  name: "update_nav_max_staleness",
64584
65599
  docs: [
@@ -64617,6 +65632,198 @@ var gamma_vault_default = {
64617
65632
  }
64618
65633
  ]
64619
65634
  },
65635
+ {
65636
+ name: "upsert_cross_chain_vault_route",
65637
+ discriminator: [
65638
+ 10,
65639
+ 80,
65640
+ 62,
65641
+ 8,
65642
+ 145,
65643
+ 215,
65644
+ 7,
65645
+ 31
65646
+ ],
65647
+ accounts: [
65648
+ {
65649
+ name: "admin",
65650
+ writable: true,
65651
+ signer: true,
65652
+ relations: [
65653
+ "cross_chain_config"
65654
+ ]
65655
+ },
65656
+ {
65657
+ name: "cross_chain_config",
65658
+ pda: {
65659
+ seeds: [
65660
+ {
65661
+ kind: "const",
65662
+ value: [
65663
+ 99,
65664
+ 114,
65665
+ 111,
65666
+ 115,
65667
+ 115,
65668
+ 95,
65669
+ 99,
65670
+ 104,
65671
+ 97,
65672
+ 105,
65673
+ 110,
65674
+ 95,
65675
+ 99,
65676
+ 111,
65677
+ 110,
65678
+ 102,
65679
+ 105,
65680
+ 103
65681
+ ]
65682
+ }
65683
+ ]
65684
+ }
65685
+ },
65686
+ {
65687
+ name: "cross_chain_vault_route",
65688
+ writable: true,
65689
+ pda: {
65690
+ seeds: [
65691
+ {
65692
+ kind: "const",
65693
+ value: [
65694
+ 99,
65695
+ 114,
65696
+ 111,
65697
+ 115,
65698
+ 115,
65699
+ 95,
65700
+ 99,
65701
+ 104,
65702
+ 97,
65703
+ 105,
65704
+ 110,
65705
+ 95,
65706
+ 114,
65707
+ 111,
65708
+ 117,
65709
+ 116,
65710
+ 101
65711
+ ]
65712
+ },
65713
+ {
65714
+ kind: "account",
65715
+ path: "lp_vault"
65716
+ }
65717
+ ]
65718
+ }
65719
+ },
65720
+ {
65721
+ name: "lp_vault"
65722
+ },
65723
+ {
65724
+ name: "assets_mint"
65725
+ },
65726
+ {
65727
+ name: "shares_mint"
65728
+ },
65729
+ {
65730
+ name: "share_escrow",
65731
+ writable: true,
65732
+ pda: {
65733
+ seeds: [
65734
+ {
65735
+ kind: "account",
65736
+ path: "cross_chain_vault_route"
65737
+ },
65738
+ {
65739
+ kind: "account",
65740
+ path: "token_program"
65741
+ },
65742
+ {
65743
+ kind: "account",
65744
+ path: "shares_mint"
65745
+ }
65746
+ ],
65747
+ program: {
65748
+ kind: "const",
65749
+ value: [
65750
+ 140,
65751
+ 151,
65752
+ 37,
65753
+ 143,
65754
+ 78,
65755
+ 36,
65756
+ 137,
65757
+ 241,
65758
+ 187,
65759
+ 61,
65760
+ 16,
65761
+ 41,
65762
+ 20,
65763
+ 142,
65764
+ 13,
65765
+ 131,
65766
+ 11,
65767
+ 90,
65768
+ 19,
65769
+ 153,
65770
+ 218,
65771
+ 255,
65772
+ 16,
65773
+ 132,
65774
+ 4,
65775
+ 142,
65776
+ 123,
65777
+ 216,
65778
+ 219,
65779
+ 233,
65780
+ 248,
65781
+ 89
65782
+ ]
65783
+ }
65784
+ }
65785
+ },
65786
+ {
65787
+ name: "system_program",
65788
+ address: "11111111111111111111111111111111"
65789
+ },
65790
+ {
65791
+ name: "token_program"
65792
+ },
65793
+ {
65794
+ name: "associated_token_program",
65795
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
65796
+ }
65797
+ ],
65798
+ args: [
65799
+ {
65800
+ name: "bnb_usdc",
65801
+ type: {
65802
+ array: [
65803
+ "u8",
65804
+ 20
65805
+ ]
65806
+ }
65807
+ },
65808
+ {
65809
+ name: "bnb_usdt",
65810
+ type: {
65811
+ array: [
65812
+ "u8",
65813
+ 20
65814
+ ]
65815
+ }
65816
+ },
65817
+ {
65818
+ name: "deposits_enabled",
65819
+ type: "bool"
65820
+ },
65821
+ {
65822
+ name: "withdrawals_enabled",
65823
+ type: "bool"
65824
+ }
65825
+ ]
65826
+ },
64620
65827
  {
64621
65828
  name: "withdraw",
64622
65829
  docs: [
@@ -65134,6 +66341,58 @@ var gamma_vault_default = {
65134
66341
  }
65135
66342
  ],
65136
66343
  accounts: [
66344
+ {
66345
+ name: "CrossChainConfig",
66346
+ discriminator: [
66347
+ 74,
66348
+ 146,
66349
+ 238,
66350
+ 67,
66351
+ 67,
66352
+ 21,
66353
+ 3,
66354
+ 218
66355
+ ]
66356
+ },
66357
+ {
66358
+ name: "CrossChainIntent",
66359
+ discriminator: [
66360
+ 37,
66361
+ 183,
66362
+ 58,
66363
+ 87,
66364
+ 62,
66365
+ 179,
66366
+ 16,
66367
+ 114
66368
+ ]
66369
+ },
66370
+ {
66371
+ name: "CrossChainVaultRoute",
66372
+ discriminator: [
66373
+ 48,
66374
+ 216,
66375
+ 186,
66376
+ 31,
66377
+ 186,
66378
+ 216,
66379
+ 19,
66380
+ 166
66381
+ ]
66382
+ },
66383
+ {
66384
+ name: "DepositPolicy",
66385
+ discriminator: [
66386
+ 159,
66387
+ 243,
66388
+ 65,
66389
+ 242,
66390
+ 81,
66391
+ 27,
66392
+ 41,
66393
+ 167
66394
+ ]
66395
+ },
65137
66396
  {
65138
66397
  name: "DepositReceipt",
65139
66398
  discriminator: [
@@ -65227,6 +66486,84 @@ var gamma_vault_default = {
65227
66486
  113
65228
66487
  ]
65229
66488
  },
66489
+ {
66490
+ name: "CrossChainConfigUpdated",
66491
+ discriminator: [
66492
+ 50,
66493
+ 228,
66494
+ 95,
66495
+ 17,
66496
+ 86,
66497
+ 48,
66498
+ 61,
66499
+ 70
66500
+ ]
66501
+ },
66502
+ {
66503
+ name: "CrossChainDepositCompleted",
66504
+ discriminator: [
66505
+ 45,
66506
+ 209,
66507
+ 209,
66508
+ 207,
66509
+ 158,
66510
+ 87,
66511
+ 232,
66512
+ 168
66513
+ ]
66514
+ },
66515
+ {
66516
+ name: "CrossChainIntentReplayAccepted",
66517
+ discriminator: [
66518
+ 221,
66519
+ 50,
66520
+ 69,
66521
+ 6,
66522
+ 52,
66523
+ 30,
66524
+ 90,
66525
+ 159
66526
+ ]
66527
+ },
66528
+ {
66529
+ name: "CrossChainVaultRouteUpdated",
66530
+ discriminator: [
66531
+ 181,
66532
+ 72,
66533
+ 59,
66534
+ 8,
66535
+ 36,
66536
+ 234,
66537
+ 89,
66538
+ 88
66539
+ ]
66540
+ },
66541
+ {
66542
+ name: "CrossChainWithdrawalEscrowed",
66543
+ discriminator: [
66544
+ 72,
66545
+ 146,
66546
+ 194,
66547
+ 25,
66548
+ 142,
66549
+ 51,
66550
+ 182,
66551
+ 26
66552
+ ]
66553
+ },
66554
+ {
66555
+ name: "DepositPolicyUpdated",
66556
+ discriminator: [
66557
+ 190,
66558
+ 38,
66559
+ 79,
66560
+ 160,
66561
+ 80,
66562
+ 143,
66563
+ 90,
66564
+ 255
66565
+ ]
66566
+ },
65230
66567
  {
65231
66568
  name: "FeeConfigUpdated",
65232
66569
  discriminator: [
@@ -65350,69 +66687,174 @@ var gamma_vault_default = {
65350
66687
  msg: "No pending withdrawal to fulfill!"
65351
66688
  },
65352
66689
  {
65353
- code: 6011,
65354
- name: "NoClaimableAssets",
65355
- msg: "No claimable assets to withdraw!"
66690
+ code: 6011,
66691
+ name: "NoClaimableAssets",
66692
+ msg: "No claimable assets to withdraw!"
66693
+ },
66694
+ {
66695
+ code: 6012,
66696
+ name: "FeeRecipientNotConfigured",
66697
+ msg: "Fee recipient is not configured!"
66698
+ },
66699
+ {
66700
+ code: 6013,
66701
+ name: "InvalidPerformanceFeeBps",
66702
+ msg: "Invalid performance fee - must be <= MAX_PERFORMANCE_FEE_BPS!"
66703
+ },
66704
+ {
66705
+ code: 6014,
66706
+ name: "InvalidFeeRecipient",
66707
+ msg: "Invalid fee recipient account!"
66708
+ },
66709
+ {
66710
+ code: 6015,
66711
+ name: "AssessmentTooEarly",
66712
+ msg: "Assessment interval has not elapsed!"
66713
+ },
66714
+ {
66715
+ code: 6016,
66716
+ name: "InvalidAssessmentInterval",
66717
+ msg: "Invalid assessment interval!"
66718
+ },
66719
+ {
66720
+ code: 6017,
66721
+ name: "NavUpdateTooLarge",
66722
+ msg: "NAV update would change share price by more than the allowed maximum!"
66723
+ },
66724
+ {
66725
+ code: 6018,
66726
+ name: "InvalidWithdrawalFeeBps",
66727
+ msg: "Invalid withdrawal fee - must be <= MAX_WITHDRAWAL_FEE_BPS!"
66728
+ },
66729
+ {
66730
+ code: 6019,
66731
+ name: "InvalidWithdrawalCapBps",
66732
+ msg: "Invalid withdrawal cap - must be <= 10000 bps!"
66733
+ },
66734
+ {
66735
+ code: 6020,
66736
+ name: "HourlyWithdrawalCapExceeded",
66737
+ msg: "Withdrawal exceeds hourly vault capacity!"
66738
+ },
66739
+ {
66740
+ code: 6021,
66741
+ name: "DailyWithdrawalCapExceeded",
66742
+ msg: "Withdrawal exceeds daily vault capacity!"
66743
+ },
66744
+ {
66745
+ code: 6022,
66746
+ name: "InvalidWithdrawalPolicy",
66747
+ msg: "Invalid withdrawal policy account!"
66748
+ },
66749
+ {
66750
+ code: 6023,
66751
+ name: "InvalidAuthority",
66752
+ msg: "New authority cannot be the default (all-zeros) pubkey!"
66753
+ },
66754
+ {
66755
+ code: 6024,
66756
+ name: "NavUpdateStateMismatch",
66757
+ msg: "Vault NAV state changed since the expected state was read!"
66758
+ },
66759
+ {
66760
+ code: 6025,
66761
+ name: "InvalidDepositPolicy",
66762
+ msg: "Invalid deposit policy account!"
66763
+ },
66764
+ {
66765
+ code: 6026,
66766
+ name: "DepositsPaused",
66767
+ msg: "Deposits are paused for this vault!"
66768
+ },
66769
+ {
66770
+ code: 6027,
66771
+ name: "DepositCapacityExceeded",
66772
+ msg: "Deposit would exceed the vault capacity!"
66773
+ },
66774
+ {
66775
+ code: 6028,
66776
+ name: "InvalidCrossChainRoute",
66777
+ msg: "Invalid cross-chain vault route"
66778
+ },
66779
+ {
66780
+ code: 6029,
66781
+ name: "CrossChainRouteDisabled",
66782
+ msg: "Cross-chain vault route is disabled"
66783
+ },
66784
+ {
66785
+ code: 6030,
66786
+ name: "InvalidEvmAddress",
66787
+ msg: "Invalid BNB address"
66788
+ },
66789
+ {
66790
+ code: 6031,
66791
+ name: "CrossChainTokenNotAllowed",
66792
+ msg: "BNB token is not allowlisted"
65356
66793
  },
65357
66794
  {
65358
- code: 6012,
65359
- name: "FeeRecipientNotConfigured",
65360
- msg: "Fee recipient is not configured!"
66795
+ code: 6032,
66796
+ name: "CrossChainIntentExpired",
66797
+ msg: "Cross-chain intent deadline has expired"
65361
66798
  },
65362
66799
  {
65363
- code: 6013,
65364
- name: "InvalidPerformanceFeeBps",
65365
- msg: "Invalid performance fee - must be <= MAX_PERFORMANCE_FEE_BPS!"
66800
+ code: 6033,
66801
+ name: "InvalidCrossChainAmount",
66802
+ msg: "Invalid cross-chain amount"
65366
66803
  },
65367
66804
  {
65368
- code: 6014,
65369
- name: "InvalidFeeRecipient",
65370
- msg: "Invalid fee recipient account!"
66805
+ code: 6034,
66806
+ name: "CrossChainMinimumOutputNotMet",
66807
+ msg: "Cross-chain minimum output cannot be met"
65371
66808
  },
65372
66809
  {
65373
- code: 6015,
65374
- name: "AssessmentTooEarly",
65375
- msg: "Assessment interval has not elapsed!"
66810
+ code: 6035,
66811
+ name: "CrossChainIntentReplayConflict",
66812
+ msg: "Conflicting replay of an existing cross-chain intent"
65376
66813
  },
65377
66814
  {
65378
- code: 6016,
65379
- name: "InvalidAssessmentInterval",
65380
- msg: "Invalid assessment interval!"
66815
+ code: 6036,
66816
+ name: "InvalidCrossChainIntentState",
66817
+ msg: "Invalid cross-chain intent state"
65381
66818
  },
65382
66819
  {
65383
- code: 6017,
65384
- name: "NavUpdateTooLarge",
65385
- msg: "NAV update would change share price by more than the allowed maximum!"
66820
+ code: 6037,
66821
+ name: "InvalidDebridgeCaller",
66822
+ msg: "Caller is not the authenticated deBridge execution program"
65386
66823
  },
65387
66824
  {
65388
- code: 6018,
65389
- name: "InvalidWithdrawalFeeBps",
65390
- msg: "Invalid withdrawal fee - must be <= MAX_WITHDRAWAL_FEE_BPS!"
66825
+ code: 6038,
66826
+ name: "InvalidDebridgeMetadata",
66827
+ msg: "Invalid deBridge execution metadata account"
65391
66828
  },
65392
66829
  {
65393
- code: 6019,
65394
- name: "InvalidWithdrawalCapBps",
65395
- msg: "Invalid withdrawal cap - must be <= 10000 bps!"
66830
+ code: 6039,
66831
+ name: "InvalidDebridgeSubmissionAuthority",
66832
+ msg: "Invalid deBridge submission authority"
65396
66833
  },
65397
66834
  {
65398
- code: 6020,
65399
- name: "HourlyWithdrawalCapExceeded",
65400
- msg: "Withdrawal exceeds hourly vault capacity!"
66835
+ code: 6040,
66836
+ name: "InvalidDebridgeDeliveryBalance",
66837
+ msg: "Invalid deBridge delivery balance invariant"
65401
66838
  },
65402
66839
  {
65403
- code: 6021,
65404
- name: "DailyWithdrawalCapExceeded",
65405
- msg: "Withdrawal exceeds daily vault capacity!"
66840
+ code: 6041,
66841
+ name: "InvalidDebridgeSendAccounts",
66842
+ msg: "Invalid deBridge send account boundary"
65406
66843
  },
65407
66844
  {
65408
- code: 6022,
65409
- name: "InvalidWithdrawalPolicy",
65410
- msg: "Invalid withdrawal policy account!"
66845
+ code: 6042,
66846
+ name: "CrossChainExternalBindingUnavailable",
66847
+ msg: "Cross-chain external protocol binding is not activated"
65411
66848
  },
65412
66849
  {
65413
- code: 6023,
65414
- name: "InvalidAuthority",
65415
- msg: "New authority cannot be the default (all-zeros) pubkey!"
66850
+ code: 6043,
66851
+ name: "CrossChainConfigurationRequiresPause",
66852
+ msg: "Cross-chain route configuration requires deposits to be paused"
66853
+ },
66854
+ {
66855
+ code: 6044,
66856
+ name: "InvalidDebridgeOutboundBalance",
66857
+ msg: "deBridge did not debit the exact outbound share amount"
65416
66858
  }
65417
66859
  ],
65418
66860
  types: [
@@ -65448,6 +66890,566 @@ var gamma_vault_default = {
65448
66890
  ]
65449
66891
  }
65450
66892
  },
66893
+ {
66894
+ name: "CrossChainConfig",
66895
+ docs: [
66896
+ "Program-wide administration for Gamma-owned cross-chain entrypoints.",
66897
+ "Initialization is upgrade-authority gated and always starts paused."
66898
+ ],
66899
+ type: {
66900
+ kind: "struct",
66901
+ fields: [
66902
+ {
66903
+ name: "admin",
66904
+ type: "pubkey"
66905
+ },
66906
+ {
66907
+ name: "deposits_paused",
66908
+ docs: [
66909
+ "Global deposit-only circuit breaker. Withdrawal intake has its own hard",
66910
+ "executable gate and remains unavailable in this release."
66911
+ ],
66912
+ type: "bool"
66913
+ },
66914
+ {
66915
+ name: "bump",
66916
+ type: "u8"
66917
+ }
66918
+ ]
66919
+ }
66920
+ },
66921
+ {
66922
+ name: "CrossChainConfigUpdated",
66923
+ type: {
66924
+ kind: "struct",
66925
+ fields: [
66926
+ {
66927
+ name: "old_admin",
66928
+ type: "pubkey"
66929
+ },
66930
+ {
66931
+ name: "new_admin",
66932
+ type: "pubkey"
66933
+ },
66934
+ {
66935
+ name: "deposits_paused",
66936
+ type: "bool"
66937
+ }
66938
+ ]
66939
+ }
66940
+ },
66941
+ {
66942
+ name: "CrossChainDepositArgs",
66943
+ type: {
66944
+ kind: "struct",
66945
+ fields: [
66946
+ {
66947
+ name: "beneficiary",
66948
+ docs: [
66949
+ "BNB recipient of the managed deAsset. This is order payload data; DLN's",
66950
+ "public Solana metadata does not prove it is the source transaction maker."
66951
+ ],
66952
+ type: {
66953
+ array: [
66954
+ "u8",
66955
+ 20
66956
+ ]
66957
+ }
66958
+ },
66959
+ {
66960
+ name: "source_token",
66961
+ docs: [
66962
+ "Declared hook payload value only. The published ExtcallMeta layout does",
66963
+ "not expose the DLN CreatedOrder giveOffer, so this field cannot prove",
66964
+ "which BNB token funded the order."
66965
+ ],
66966
+ type: {
66967
+ array: [
66968
+ "u8",
66969
+ 20
66970
+ ]
66971
+ }
66972
+ },
66973
+ {
66974
+ name: "deposit_amount",
66975
+ docs: [
66976
+ "Declared destination take-token tranche. This is not the BNB",
66977
+ "CreatedOrder give amount, which may use different decimals and terms."
66978
+ ],
66979
+ type: "u64"
66980
+ },
66981
+ {
66982
+ name: "min_bnb_shares",
66983
+ docs: [
66984
+ "Minimum shares after deBridge transfer fees."
66985
+ ],
66986
+ type: "u64"
66987
+ },
66988
+ {
66989
+ name: "deadline",
66990
+ type: "i64"
66991
+ },
66992
+ {
66993
+ name: "nonce",
66994
+ type: "u64"
66995
+ }
66996
+ ]
66997
+ }
66998
+ },
66999
+ {
67000
+ name: "CrossChainDepositCompleted",
67001
+ type: {
67002
+ kind: "struct",
67003
+ fields: [
67004
+ {
67005
+ name: "intent",
67006
+ type: "pubkey"
67007
+ },
67008
+ {
67009
+ name: "replay_key",
67010
+ type: "pubkey"
67011
+ },
67012
+ {
67013
+ name: "lp_vault",
67014
+ type: "pubkey"
67015
+ },
67016
+ {
67017
+ name: "native_sender",
67018
+ docs: [
67019
+ "Gamma-derived signer recorded by deBridge as `nativeSender`."
67020
+ ],
67021
+ type: "pubkey"
67022
+ },
67023
+ {
67024
+ name: "beneficiary",
67025
+ type: {
67026
+ array: [
67027
+ "u8",
67028
+ 20
67029
+ ]
67030
+ }
67031
+ },
67032
+ {
67033
+ name: "deposited_assets",
67034
+ type: "u64"
67035
+ },
67036
+ {
67037
+ name: "bridged_shares",
67038
+ type: "u64"
67039
+ },
67040
+ {
67041
+ name: "nonce",
67042
+ type: "u64"
67043
+ }
67044
+ ]
67045
+ }
67046
+ },
67047
+ {
67048
+ name: "CrossChainIntent",
67049
+ type: {
67050
+ kind: "struct",
67051
+ fields: [
67052
+ {
67053
+ name: "version",
67054
+ type: "u8"
67055
+ },
67056
+ {
67057
+ name: "kind",
67058
+ docs: [
67059
+ "1 = deposit, 2 = withdrawal."
67060
+ ],
67061
+ type: "u8"
67062
+ },
67063
+ {
67064
+ name: "status",
67065
+ type: "u8"
67066
+ },
67067
+ {
67068
+ name: "route",
67069
+ type: "pubkey"
67070
+ },
67071
+ {
67072
+ name: "replay_key",
67073
+ docs: [
67074
+ "Opaque deBridge-owned account used as the replay key."
67075
+ ],
67076
+ type: "pubkey"
67077
+ },
67078
+ {
67079
+ name: "beneficiary",
67080
+ type: {
67081
+ array: [
67082
+ "u8",
67083
+ 20
67084
+ ]
67085
+ }
67086
+ },
67087
+ {
67088
+ name: "source_or_output_token",
67089
+ type: {
67090
+ array: [
67091
+ "u8",
67092
+ 20
67093
+ ]
67094
+ }
67095
+ },
67096
+ {
67097
+ name: "input_amount",
67098
+ type: "u64"
67099
+ },
67100
+ {
67101
+ name: "minimum_output",
67102
+ docs: [
67103
+ "Deposit intents store the six-decimal minimum shares here; withdrawal",
67104
+ "intents store the six-decimal minimum native Solana vault assets here."
67105
+ ],
67106
+ type: "u64"
67107
+ },
67108
+ {
67109
+ name: "min_output_amount_raw",
67110
+ docs: [
67111
+ "Authenticated minimum final BNB USDC/USDT output for withdrawals,",
67112
+ "encoded as a fixed-width unsigned U256 in big-endian order."
67113
+ ],
67114
+ type: {
67115
+ array: [
67116
+ "u8",
67117
+ 32
67118
+ ]
67119
+ }
67120
+ },
67121
+ {
67122
+ name: "actual_output",
67123
+ docs: [
67124
+ "Actual native share output for the implemented deposit path."
67125
+ ],
67126
+ type: "u64"
67127
+ },
67128
+ {
67129
+ name: "deadline",
67130
+ type: "i64"
67131
+ },
67132
+ {
67133
+ name: "nonce",
67134
+ type: "u64"
67135
+ },
67136
+ {
67137
+ name: "created_at",
67138
+ type: "i64"
67139
+ },
67140
+ {
67141
+ name: "updated_at",
67142
+ type: "i64"
67143
+ },
67144
+ {
67145
+ name: "bump",
67146
+ type: "u8"
67147
+ }
67148
+ ]
67149
+ }
67150
+ },
67151
+ {
67152
+ name: "CrossChainIntentReplayAccepted",
67153
+ type: {
67154
+ kind: "struct",
67155
+ fields: [
67156
+ {
67157
+ name: "intent",
67158
+ type: "pubkey"
67159
+ },
67160
+ {
67161
+ name: "replay_key",
67162
+ type: "pubkey"
67163
+ },
67164
+ {
67165
+ name: "status",
67166
+ type: "u8"
67167
+ }
67168
+ ]
67169
+ }
67170
+ },
67171
+ {
67172
+ name: "CrossChainVaultRoute",
67173
+ docs: [
67174
+ "Per-vault BNB route owned directly by the Gamma program."
67175
+ ],
67176
+ type: {
67177
+ kind: "struct",
67178
+ fields: [
67179
+ {
67180
+ name: "lp_vault",
67181
+ type: "pubkey"
67182
+ },
67183
+ {
67184
+ name: "assets_mint",
67185
+ type: "pubkey"
67186
+ },
67187
+ {
67188
+ name: "shares_mint",
67189
+ type: "pubkey"
67190
+ },
67191
+ {
67192
+ name: "share_escrow",
67193
+ type: "pubkey"
67194
+ },
67195
+ {
67196
+ name: "bnb_usdc",
67197
+ type: {
67198
+ array: [
67199
+ "u8",
67200
+ 20
67201
+ ]
67202
+ }
67203
+ },
67204
+ {
67205
+ name: "bnb_usdt",
67206
+ type: {
67207
+ array: [
67208
+ "u8",
67209
+ 20
67210
+ ]
67211
+ }
67212
+ },
67213
+ {
67214
+ name: "deposits_enabled",
67215
+ type: "bool"
67216
+ },
67217
+ {
67218
+ name: "withdrawals_enabled",
67219
+ type: "bool"
67220
+ },
67221
+ {
67222
+ name: "escrowed_shares",
67223
+ docs: [
67224
+ "Native shares received from dePort but not yet consumed by a bound",
67225
+ "Gamma-withdrawal/DLN-return implementation."
67226
+ ],
67227
+ type: "u64"
67228
+ },
67229
+ {
67230
+ name: "bump",
67231
+ type: "u8"
67232
+ }
67233
+ ]
67234
+ }
67235
+ },
67236
+ {
67237
+ name: "CrossChainVaultRouteUpdated",
67238
+ type: {
67239
+ kind: "struct",
67240
+ fields: [
67241
+ {
67242
+ name: "route",
67243
+ type: "pubkey"
67244
+ },
67245
+ {
67246
+ name: "lp_vault",
67247
+ type: "pubkey"
67248
+ },
67249
+ {
67250
+ name: "deposits_enabled",
67251
+ type: "bool"
67252
+ },
67253
+ {
67254
+ name: "withdrawals_enabled",
67255
+ type: "bool"
67256
+ }
67257
+ ]
67258
+ }
67259
+ },
67260
+ {
67261
+ name: "CrossChainWithdrawalArgs",
67262
+ type: {
67263
+ kind: "struct",
67264
+ fields: [
67265
+ {
67266
+ name: "beneficiary",
67267
+ docs: [
67268
+ "Authenticated external-call payload and final BNB recipient."
67269
+ ],
67270
+ type: {
67271
+ array: [
67272
+ "u8",
67273
+ 20
67274
+ ]
67275
+ }
67276
+ },
67277
+ {
67278
+ name: "output_token",
67279
+ type: {
67280
+ array: [
67281
+ "u8",
67282
+ 20
67283
+ ]
67284
+ }
67285
+ },
67286
+ {
67287
+ name: "shares_amount",
67288
+ type: "u64"
67289
+ },
67290
+ {
67291
+ name: "min_vault_assets",
67292
+ docs: [
67293
+ "Minimum six-decimal native Solana vault assets after Gamma fees."
67294
+ ],
67295
+ type: "u64"
67296
+ },
67297
+ {
67298
+ name: "min_output_amount_raw",
67299
+ docs: [
67300
+ "Minimum final BNB output in 18-decimal raw units, fixed-width U256 BE."
67301
+ ],
67302
+ type: {
67303
+ array: [
67304
+ "u8",
67305
+ 32
67306
+ ]
67307
+ }
67308
+ },
67309
+ {
67310
+ name: "deadline",
67311
+ type: "i64"
67312
+ },
67313
+ {
67314
+ name: "nonce",
67315
+ type: "u64"
67316
+ }
67317
+ ]
67318
+ }
67319
+ },
67320
+ {
67321
+ name: "CrossChainWithdrawalEscrowed",
67322
+ type: {
67323
+ kind: "struct",
67324
+ fields: [
67325
+ {
67326
+ name: "intent",
67327
+ type: "pubkey"
67328
+ },
67329
+ {
67330
+ name: "replay_key",
67331
+ type: "pubkey"
67332
+ },
67333
+ {
67334
+ name: "lp_vault",
67335
+ type: "pubkey"
67336
+ },
67337
+ {
67338
+ name: "beneficiary",
67339
+ type: {
67340
+ array: [
67341
+ "u8",
67342
+ 20
67343
+ ]
67344
+ }
67345
+ },
67346
+ {
67347
+ name: "shares",
67348
+ type: "u64"
67349
+ },
67350
+ {
67351
+ name: "min_vault_assets",
67352
+ docs: [
67353
+ "Six-decimal native Solana vault-asset floor."
67354
+ ],
67355
+ type: "u64"
67356
+ },
67357
+ {
67358
+ name: "min_output_amount_raw",
67359
+ docs: [
67360
+ "Unsigned U256 big-endian final BNB USDC/USDT floor (18 decimals)."
67361
+ ],
67362
+ type: {
67363
+ array: [
67364
+ "u8",
67365
+ 32
67366
+ ]
67367
+ }
67368
+ },
67369
+ {
67370
+ name: "nonce",
67371
+ type: "u64"
67372
+ }
67373
+ ]
67374
+ }
67375
+ },
67376
+ {
67377
+ name: "DepositPolicy",
67378
+ docs: [
67379
+ "Per-vault deposit controls shared by every deposit source, including",
67380
+ "Solana-native users and cross-chain adapters.",
67381
+ "",
67382
+ "This is intentionally a separate PDA rather than a field on `LpVault` so",
67383
+ "existing vault accounts do not require a layout migration. Existing vaults",
67384
+ "fail closed after the program upgrade until their policy PDA is initialized",
67385
+ "by the fund authority."
67386
+ ],
67387
+ type: {
67388
+ kind: "struct",
67389
+ fields: [
67390
+ {
67391
+ name: "lp_vault",
67392
+ docs: [
67393
+ "Vault this policy belongs to."
67394
+ ],
67395
+ type: "pubkey"
67396
+ },
67397
+ {
67398
+ name: "capacity_assets",
67399
+ docs: [
67400
+ "Maximum post-deposit NAV in the vault asset's base units."
67401
+ ],
67402
+ type: "u64"
67403
+ },
67404
+ {
67405
+ name: "deposits_paused",
67406
+ docs: [
67407
+ "Emergency switch for deposits. Withdrawals do not consult this field."
67408
+ ],
67409
+ type: "bool"
67410
+ },
67411
+ {
67412
+ name: "bump",
67413
+ docs: [
67414
+ "PDA derivation bump."
67415
+ ],
67416
+ type: "u8"
67417
+ }
67418
+ ]
67419
+ }
67420
+ },
67421
+ {
67422
+ name: "DepositPolicyUpdated",
67423
+ type: {
67424
+ kind: "struct",
67425
+ fields: [
67426
+ {
67427
+ name: "vault",
67428
+ type: "pubkey"
67429
+ },
67430
+ {
67431
+ name: "old_capacity_assets",
67432
+ type: "u64"
67433
+ },
67434
+ {
67435
+ name: "new_capacity_assets",
67436
+ type: "u64"
67437
+ },
67438
+ {
67439
+ name: "old_deposits_paused",
67440
+ type: "bool"
67441
+ },
67442
+ {
67443
+ name: "new_deposits_paused",
67444
+ type: "bool"
67445
+ },
67446
+ {
67447
+ name: "timestamp",
67448
+ type: "i64"
67449
+ }
67450
+ ]
67451
+ }
67452
+ },
65451
67453
  {
65452
67454
  name: "DepositReceipt",
65453
67455
  type: {
@@ -65995,13 +67997,19 @@ var gamma_vault_default = {
65995
67997
  };
65996
67998
 
65997
67999
  // src/vendor/gamma/idl/index.ts
65998
- var GAMMA_VAULT_IDL = gamma_vault_default;
68000
+ var GAMMA_VAULT_IDL = gamma_idl_2_default;
65999
68001
  function deriveGammaWithdrawalPolicy(lpVault, programId = GAMMA_VAULT_PROGRAM_ID) {
66000
68002
  return PublicKey.findProgramAddressSync(
66001
68003
  [Buffer.from(SEED_WITHDRAWAL_POLICY), lpVault.toBuffer()],
66002
68004
  programId
66003
68005
  );
66004
68006
  }
68007
+ function deriveGammaDepositPolicy(lpVault, programId = GAMMA_VAULT_PROGRAM_ID) {
68008
+ return PublicKey.findProgramAddressSync(
68009
+ [Buffer.from(SEED_DEPOSIT_POLICY), lpVault.toBuffer()],
68010
+ programId
68011
+ );
68012
+ }
66005
68013
  function deriveGammaDepositReceipt(user, lpVault, programId = GAMMA_VAULT_PROGRAM_ID) {
66006
68014
  return PublicKey.findProgramAddressSync(
66007
68015
  [Buffer.from(SEED_DEPOSIT_RECEIPT), user.toBuffer(), lpVault.toBuffer()],
@@ -66094,6 +68102,7 @@ function makeGammaDepositIx(accounts, amount) {
66094
68102
  meta(accounts.user, true, true),
66095
68103
  meta(accounts.lpVault, false, true),
66096
68104
  meta(accounts.withdrawalPolicy, false, true),
68105
+ meta(accounts.depositPolicy, false, false),
66097
68106
  meta(accounts.assetsAccount, false, true),
66098
68107
  meta(accounts.userAssetAta, false, true),
66099
68108
  meta(accounts.userShareAta, false, true),
@@ -74884,18 +76893,19 @@ var fetchSwbOracleData = async (banks, opts) => {
74884
76893
  }
74885
76894
  });
74886
76895
  let crossbarResponse;
74887
- let birdeyeResponse = {};
76896
+ let fallbackPricesByFeedId = {};
74888
76897
  if (opts.mode === "api") {
74889
76898
  crossbarResponse = await fetchSwbOraclePricesFromAPI(
74890
76899
  swbFeedIds,
74891
76900
  opts.swbCrossbarPrice.endpoint,
74892
76901
  { queryKey: opts.swbCrossbarPrice.queryKey }
74893
76902
  );
74894
- if (brokenSwbFeeds.length > 0 && opts.birdeyeFallback) {
74895
- birdeyeResponse = await getBirdeyeFallbackPricesByFeedId(
76903
+ const priceFallback = opts.priceFallback ?? opts.birdeyeFallback;
76904
+ if (brokenSwbFeeds.length > 0 && priceFallback) {
76905
+ fallbackPricesByFeedId = await getFallbackPricesByFeedId(
74896
76906
  brokenSwbFeeds,
74897
- opts.birdeyeFallback.endpoint,
74898
- { queryKey: opts.birdeyeFallback.queryKey }
76907
+ priceFallback.endpoint,
76908
+ { queryKey: priceFallback.queryKey }
74899
76909
  );
74900
76910
  }
74901
76911
  } else {
@@ -74904,7 +76914,7 @@ var fetchSwbOracleData = async (banks, opts) => {
74904
76914
  opts.crossbarEndpoint || "https://crossbar.0.xyz",
74905
76915
  "https://crossbar.switchboard.xyz"
74906
76916
  );
74907
- birdeyeResponse = {};
76917
+ fallbackPricesByFeedId = {};
74908
76918
  }
74909
76919
  const bankOraclePriceMap = mapSwbBanksToOraclePrices(
74910
76920
  switchboardBanks,
@@ -74914,7 +76924,7 @@ var fetchSwbOracleData = async (banks, opts) => {
74914
76924
  const brokenFeedOraclePriceMap = mapBrokenFeedsToOraclePrices(
74915
76925
  switchboardBanks,
74916
76926
  swbOracleAiDataByKey,
74917
- birdeyeResponse
76927
+ fallbackPricesByFeedId
74918
76928
  );
74919
76929
  const combinedOraclePriceMap = /* @__PURE__ */ new Map();
74920
76930
  bankOraclePriceMap.forEach((oraclePrice, bankAddress) => {
@@ -76706,6 +78716,7 @@ async function makeVaultDepositIx(params) {
76706
78716
  const vault = await fetchGammaLpVault(connection, lpVault);
76707
78717
  const tokenProgram = params.tokenProgram ?? await resolveVaultTokenProgram(connection, vault.assetsMint);
76708
78718
  const [withdrawalPolicy] = deriveGammaWithdrawalPolicy(lpVault);
78719
+ const [depositPolicy] = deriveGammaDepositPolicy(lpVault);
76709
78720
  const [depositReceipt] = deriveGammaDepositReceipt(user, lpVault);
76710
78721
  const userAssetAta = deriveGammaAta(vault.assetsMint, user, tokenProgram);
76711
78722
  const userShareAta = deriveGammaAta(vault.sharesMint, user, tokenProgram);
@@ -76723,6 +78734,7 @@ async function makeVaultDepositIx(params) {
76723
78734
  user,
76724
78735
  lpVault,
76725
78736
  withdrawalPolicy,
78737
+ depositPolicy,
76726
78738
  assetsAccount: vault.assetsAccount,
76727
78739
  userAssetAta,
76728
78740
  userShareAta,
@@ -76777,6 +78789,7 @@ async function makeVaultDepositWithSwapTx(params) {
76777
78789
  const tokenProgram = params.tokenProgram ?? (mintInfo.owner.equals(TOKEN_2022_PROGRAM_ID) ? TOKEN_2022_PROGRAM_ID : TOKEN_PROGRAM_ID);
76778
78790
  const assetDecimals = mintInfo.data[44];
76779
78791
  const [withdrawalPolicy] = deriveGammaWithdrawalPolicy(lpVault);
78792
+ const [depositPolicy] = deriveGammaDepositPolicy(lpVault);
76780
78793
  const [depositReceipt] = deriveGammaDepositReceipt(user, lpVault);
76781
78794
  const userAssetAta = deriveGammaAta(vault.assetsMint, user, tokenProgram);
76782
78795
  const userShareAta = deriveGammaAta(vault.sharesMint, user, tokenProgram);
@@ -76791,6 +78804,7 @@ async function makeVaultDepositWithSwapTx(params) {
76791
78804
  user,
76792
78805
  lpVault,
76793
78806
  withdrawalPolicy,
78807
+ depositPolicy,
76794
78808
  assetsAccount: vault.assetsAccount,
76795
78809
  userAssetAta,
76796
78810
  userShareAta,
@@ -78792,6 +80806,6 @@ var EmodeSettings = class _EmodeSettings {
78792
80806
  }
78793
80807
  };
78794
80808
 
78795
- export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, AccountFlags, AccountType, AssetTag, BUNDLE_TX_SIZE, Balance, Bank, BankConfig, BankConfigFlag, BankVaultType, DEFAULT_CROSSBAR_URL, DEFAULT_FALLBACK_CROSSBAR_URL, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, EMPTY_HEALTH_CACHE, EmodeEntryFlags, EmodeFlags, EmodeImpactStatus, EmodeSettings, EmodeTag, FLASHLOAN_ENABLED_FLAG, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, HealthCacheSimulationError, HealthCacheStatus, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, LST_MINT, MARGINFI_IDL, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_ACCOUNT_LOCKS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, MarginRequirementType, MarginfiAccount, MarginfiAccountWrapper, MarginfiGroup, OperationalState, OracleSetup, PDA_BANK_EMISSIONS_AUTH_SEED, PDA_BANK_EMISSIONS_VAULT_SEED, PDA_BANK_FEE_STATE_SEED, PDA_BANK_FEE_VAULT_AUTH_SEED, PDA_BANK_FEE_VAULT_SEED, PDA_BANK_INSURANCE_VAULT_AUTH_SEED, PDA_BANK_INSURANCE_VAULT_SEED, PDA_BANK_LIQUIDITY_VAULT_AUTH_SEED, PDA_BANK_LIQUIDITY_VAULT_SEED, PDA_MARGINFI_ACCOUNT_SEED, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, PriceBias, Project0Client, RiskTier, SINGLE_POOL_PROGRAM_ID, STAKED_ORACLE_DISABLED_FLAG, STAKED_ORACLE_USES_ONRAMP_FLAG, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWAP_ADAPTERS, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, SwapProvider, TRANSFER_ACCOUNT_AUTHORITY_FLAG, TransactionArenaKeyMap, TransactionBuildingError, TransactionBuildingErrorCode, TransactionConfigMap, TransactionType, USDC_DECIMALS, USDC_MINT, WSOL_MINT, ZERO_ORACLE_KEY, accountConflictsWithBridge, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRateLimiterRawToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkBatchOracleCrankability, checkJupiterFeeAccount, checkMultipleOraclesCrankability, checkTitanFeeAccount, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, compileFlashloanPrecheck, composeBridgedSwap, composeRemainingAccounts, computeAccountValue, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, computeBalanceUsdValue, computeBankBorrowApy, computeBankBorrowCapRemaining, computeBankDepositCapRemaining, computeBankMetrics, computeBankPoolSize, computeBankSupplyApy, computeBankTotalBorrows, computeBankTotalBorrowsUsd, computeBankTotalDeposits, computeBankTotalDepositsUsd, computeBaseInterestRate, computeBorrowEstimateForRepay, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFlashLoanNonSwapBudget, computeFlashloanSwapConstraints, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeSmartCrank, computeStakedBankMultipliers, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, computeV0TxSize, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deserializeInstruction, deserializeLut, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRateLimiter, dtoToBankRateLimiterRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchGammaLpVault, fetchGammaWithdrawReceipt, fetchMarginfiAccountActiveBalancesForBank, fetchMarginfiAccountAddresses, fetchMarginfiAccountAddressesHoldingBank, fetchMarginfiAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleAccountsFromAPI, fetchSwbOracleAccountsFromChain, fetchSwbOracleData, fetchSwbOraclePricesFromAPI, fetchSwbOraclePricesFromCrossbar, findRandomAvailableAccountIndex, freezeBankConfigIx, generateDummyAccount, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getDriftCTokenMultiplier, getDriftMetadata, getDriftStatesDto, getEmodePairs, getExactOutEstimate, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupLendFTokenMultiplier, getJupLendMetadata, getJupLendStatesDto, getJupiterReferralFeeAccount, getJupiterSwapIxsForFlashloan, getKaminoCTokenMultiplier, getKaminoMetadata, getKaminoStatesDto, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapAdapter, getSwapIxsForFlashloan, getTitanExactOutEstimate, getTitanSwapIxsForFlashloan, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, getWritableAccountKeys, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isDecomposableSwapError, isDepositIx, isFlashloan, isGroupRateLimiterEnabled, isStandardBorrowable, isStandardDepositable, isV0Tx, isWeightedPrice, isWholePosition, makeAccountTransferToNewAccountTx, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx3 as makeBeginFlashLoanIx, makeBorrowIx3 as makeBorrowIx, makeBorrowTx, makeBundleTipIx, makeCloseMarginfiAccountIx, makeCloseMarginfiAccountTx, makeCrankSwbFeedIx, makeCreateAccountIxWithProjection, makeCreateAccountTxWithProjection, makeCreateMarginfiAccountIx, makeCreateMarginfiAccountTx, makeDepositIx3 as makeDepositIx, makeDepositTx, makeDriftDepositIx3 as makeDriftDepositIx, makeDriftDepositTx, makeDriftWithdrawIx3 as makeDriftWithdrawIx, makeDriftWithdrawTx, makeEndFlashLoanIx3 as makeEndFlashLoanIx, makeFlashLoanTx, makeJuplendDepositIx2 as makeJuplendDepositIx, makeJuplendDepositTx, makeJuplendWithdrawIx2 as makeJuplendWithdrawIx, makeJuplendWithdrawTx, makeKaminoDepositIx3 as makeKaminoDepositIx, makeKaminoDepositTx, makeKaminoWithdrawIx3 as makeKaminoWithdrawIx, makeKaminoWithdrawTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makePoolAddBankIx3 as makePoolAddBankIx, makePoolConfigureBankIx3 as makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx2 as makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshKaminoBanksIxs, makeRepayIx3 as makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeRollPtTx, makeSetupIx, makeSmartCrankSwbFeedIx, makeSwapCollateralTx, makeSwapDebtTx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateSwbFeedIx, makeVaultCompleteWithdrawalIx, makeVaultCompleteWithdrawalTx, makeVaultDepositIx, makeVaultDepositTx, makeVaultDepositWithSwapTx, makeVaultWithdrawIx, makeVaultWithdrawTx, makeVersionedTransaction, makeWithdrawIx3 as makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapBrokenFeedsToOraclePrices, mapJupiterQuoteToSwapQuoteResult, mapPythBanksToOraclePrices, mapSwbBanksToOraclePrices, marginfiAccountToDto, mergeBridgeQuotes, mergeBridgeQuotesDebt, mergeBridgeQuotesLoop, nativeToUi, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRateLimiterRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, parseSwbOraclePriceData, partitionBanksByCrankability, patchDepositAmount, resolveAmount, resolveBridgeBanks, resolveVaultTokenProgram, runSwapEngine, selectLutsForAccountAction, selectLutsForBanks, serializeBankConfigOpt, serializeInstruction, serializeInterestRateConfig, serializeLut, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, serializeSwapEngineRequest, serializeSwapEngineResult, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, swapEngineProvidersFromOpts, swapEngineQuoteFieldsFromOpts, toBankConfigDto, toBankDto, toBankRateLimiterDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toJupiterConfig, toNumber, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, wrappedI80F48toBigNumber };
80809
+ export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_GROUP_NATIVE_STAKE, ADDRESS_LOOKUP_TABLE_FOR_SWAP, AccountFlags, AccountType, AssetTag, BUNDLE_TX_SIZE, Balance, Bank, BankConfig, BankConfigFlag, BankVaultType, DEFAULT_CROSSBAR_URL, DEFAULT_FALLBACK_CROSSBAR_URL, DEFAULT_ORACLE_MAX_AGE, DEFAULT_REPAY_ALL_EXTRA_BUFFER_BPS, DISABLED_FLAG, EMPTY_HEALTH_CACHE, EmodeEntryFlags, EmodeFlags, EmodeImpactStatus, EmodeSettings, EmodeTag, FLASHLOAN_ENABLED_FLAG, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, HealthCacheSimulationError, HealthCacheStatus, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, LST_MINT, MARGINFI_IDL, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_ACCOUNT_LOCKS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, MarginRequirementType, MarginfiAccount, MarginfiAccountWrapper, MarginfiGroup, OperationalState, OracleSetup, PDA_BANK_EMISSIONS_AUTH_SEED, PDA_BANK_EMISSIONS_VAULT_SEED, PDA_BANK_FEE_STATE_SEED, PDA_BANK_FEE_VAULT_AUTH_SEED, PDA_BANK_FEE_VAULT_SEED, PDA_BANK_INSURANCE_VAULT_AUTH_SEED, PDA_BANK_INSURANCE_VAULT_SEED, PDA_BANK_LIQUIDITY_VAULT_AUTH_SEED, PDA_BANK_LIQUIDITY_VAULT_SEED, PDA_MARGINFI_ACCOUNT_SEED, PRIORITY_TX_SIZE, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, PriceBias, Project0Client, RiskTier, SINGLE_POOL_PROGRAM_ID, STAKED_ORACLE_DISABLED_FLAG, STAKED_ORACLE_USES_ONRAMP_FLAG, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWAP_ADAPTERS, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, SwapProvider, TRANSFER_ACCOUNT_AUTHORITY_FLAG, TransactionArenaKeyMap, TransactionBuildingError, TransactionBuildingErrorCode, TransactionConfigMap, TransactionType, USDC_DECIMALS, USDC_MINT, WSOL_MINT, ZERO_ORACLE_KEY, accountConflictsWithBridge, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRateLimiterRawToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkBatchOracleCrankability, checkJupiterFeeAccount, checkMultipleOraclesCrankability, checkTitanFeeAccount, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, compileFlashloanPrecheck, composeBridgedSwap, composeRemainingAccounts, computeAccountValue, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, computeBalanceUsdValue, computeBankBorrowApy, computeBankBorrowCapRemaining, computeBankDepositCapRemaining, computeBankMetrics, computeBankPoolSize, computeBankSupplyApy, computeBankTotalBorrows, computeBankTotalBorrowsUsd, computeBankTotalDeposits, computeBankTotalDepositsUsd, computeBaseInterestRate, computeBorrowEstimateForRepay, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFlashLoanNonSwapBudget, computeFlashloanSwapConstraints, computeFreeCollateralFromBalances, computeFreeCollateralFromCache, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponentsFromBalances, computeHealthComponentsFromCache, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeLowestEmodeWeights, computeMaxBorrowForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeSmartCrank, computeStakedBankMultipliers, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, computeV0TxSize, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, deserializeInstruction, deserializeLut, deserializeSwapEngineRequest, deserializeSwapEngineResult, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRateLimiter, dtoToBankRateLimiterRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchGammaLpVault, fetchGammaWithdrawReceipt, fetchMarginfiAccountActiveBalancesForBank, fetchMarginfiAccountAddresses, fetchMarginfiAccountAddressesHoldingBank, fetchMarginfiAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleAccountsFromAPI, fetchSwbOracleAccountsFromChain, fetchSwbOracleData, fetchSwbOraclePricesFromAPI, fetchSwbOraclePricesFromCrossbar, findRandomAvailableAccountIndex, freezeBankConfigIx, generateDummyAccount, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getDriftCTokenMultiplier, getDriftMetadata, getDriftStatesDto, getEmodePairs, getExactOutEstimate, getFallbackPricesByFeedId, getFallbackPricesForMints, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupLendFTokenMultiplier, getJupLendMetadata, getJupLendStatesDto, getJupiterReferralFeeAccount, getJupiterSwapIxsForFlashloan, getKaminoCTokenMultiplier, getKaminoMetadata, getKaminoStatesDto, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getOracleSourceFromBank, getOracleSourceFromOracleSetup, getOracleSourceNameFromKey, getPrice, getPriceWithConfidence, getStakedBankMetadataMap, getSwapAdapter, getSwapIxsForFlashloan, getTitanExactOutEstimate, getTitanSwapIxsForFlashloan, getTotalAccountKeys, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, getValidatorVoteAccountByBank, getWritableAccountKeys, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isDecomposableSwapError, isDepositIx, isFlashloan, isGroupRateLimiterEnabled, isStandardBorrowable, isStandardDepositable, isV0Tx, isWeightedPrice, isWholePosition, makeAccountTransferToNewAccountTx, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx3 as makeBeginFlashLoanIx, makeBorrowIx3 as makeBorrowIx, makeBorrowTx, makeBundleTipIx, makeCloseMarginfiAccountIx, makeCloseMarginfiAccountTx, makeCrankSwbFeedIx, makeCreateAccountIxWithProjection, makeCreateAccountTxWithProjection, makeCreateMarginfiAccountIx, makeCreateMarginfiAccountTx, makeDepositIx3 as makeDepositIx, makeDepositTx, makeDriftDepositIx3 as makeDriftDepositIx, makeDriftDepositTx, makeDriftWithdrawIx3 as makeDriftWithdrawIx, makeDriftWithdrawTx, makeEndFlashLoanIx3 as makeEndFlashLoanIx, makeFlashLoanTx, makeJuplendDepositIx2 as makeJuplendDepositIx, makeJuplendDepositTx, makeJuplendWithdrawIx2 as makeJuplendWithdrawIx, makeJuplendWithdrawTx, makeKaminoDepositIx3 as makeKaminoDepositIx, makeKaminoDepositTx, makeKaminoWithdrawIx3 as makeKaminoWithdrawIx, makeKaminoWithdrawTx, makeLoopTx, makeMergeStakeAccountsTx, makeMintStakedLstIx, makeMintStakedLstTx, makePoolAddBankIx3 as makePoolAddBankIx, makePoolConfigureBankIx3 as makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx2 as makePulseHealthIx, makeRedeemStakedLstIx, makeRedeemStakedLstTx, makeRefreshKaminoBanksIxs, makeRepayIx3 as makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeRollPtTx, makeSetupIx, makeSmartCrankSwbFeedIx, makeSwapCollateralTx, makeSwapDebtTx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateJupLendRateIxs, makeUpdateSwbFeedIx, makeVaultCompleteWithdrawalIx, makeVaultCompleteWithdrawalTx, makeVaultDepositIx, makeVaultDepositTx, makeVaultDepositWithSwapTx, makeVaultWithdrawIx, makeVaultWithdrawTx, makeVersionedTransaction, makeWithdrawIx3 as makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapBrokenFeedsToOraclePrices, mapJupiterQuoteToSwapQuoteResult, mapPythBanksToOraclePrices, mapSwbBanksToOraclePrices, marginfiAccountToDto, mergeBridgeQuotes, mergeBridgeQuotesDebt, mergeBridgeQuotesLoop, nativeToUi, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRateLimiterRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, parseSwbOraclePriceData, partitionBanksByCrankability, patchDepositAmount, resolveAmount, resolveBridgeBanks, resolveVaultTokenProgram, runSwapEngine, selectLutsForAccountAction, selectLutsForBanks, serializeBankConfigOpt, serializeInstruction, serializeInterestRateConfig, serializeLut, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, serializeSwapEngineRequest, serializeSwapEngineResult, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, swapEngineProvidersFromOpts, swapEngineQuoteFieldsFromOpts, toBankConfigDto, toBankDto, toBankRateLimiterDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toJupiterConfig, toNumber, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, wrappedI80F48toBigNumber };
78796
80810
  //# sourceMappingURL=index.js.map
78797
80811
  //# sourceMappingURL=index.js.map