@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.cjs CHANGED
@@ -24733,17 +24733,17 @@ var mapSwbBanksToOraclePrices = (banks, swbOracleAiDataByKey, crossbarResponse)
24733
24733
  });
24734
24734
  return bankOraclePriceMap;
24735
24735
  };
24736
- var mapBrokenFeedsToOraclePrices = (banks, swbOracleAiDataByKey, birdeyeResponse) => {
24736
+ var mapBrokenFeedsToOraclePrices = (banks, swbOracleAiDataByKey, fallbackPricesByFeedId) => {
24737
24737
  const bankOraclePriceMap = /* @__PURE__ */ new Map();
24738
24738
  banks.forEach((bank) => {
24739
24739
  const oracleKey = bank.config.oracleKeys[0].toBase58();
24740
24740
  const oracleData = swbOracleAiDataByKey[oracleKey];
24741
24741
  const oracleFeed = oracleData?.feedHash;
24742
- const birdeyeData = oracleFeed ? birdeyeResponse[oracleFeed] : void 0;
24743
- if (oracleFeed && oracleData && birdeyeData) {
24742
+ const fallbackPrice = oracleFeed ? fallbackPricesByFeedId[oracleFeed] : void 0;
24743
+ if (oracleFeed && oracleData && fallbackPrice) {
24744
24744
  const timestamp = (/* @__PURE__ */ new Date()).getTime().toString();
24745
24745
  const oraclePrice = parseSwbOraclePriceData(
24746
- [birdeyeData],
24746
+ [fallbackPrice],
24747
24747
  new BN9__default.default(oracleData.stdev),
24748
24748
  timestamp,
24749
24749
  oracleData
@@ -25259,8 +25259,8 @@ function partitionBanksByCrankability(banks, crankabilityResults) {
25259
25259
  return { crankable, uncrankable };
25260
25260
  }
25261
25261
 
25262
- // src/services/price/utils/birdeye.utils.ts
25263
- async function getBirdeyePricesForMints(mintAddresses, apiEndpoint, opts) {
25262
+ // src/services/price/utils/price-fallback.utils.ts
25263
+ async function getFallbackPricesForMints(mintAddresses, apiEndpoint, opts) {
25264
25264
  const queryKey = opts?.queryKey ?? "mintList";
25265
25265
  try {
25266
25266
  const url = `${apiEndpoint}?${queryKey}=${mintAddresses.join(",")}`;
@@ -25279,13 +25279,14 @@ async function getBirdeyePricesForMints(mintAddresses, apiEndpoint, opts) {
25279
25279
  });
25280
25280
  return extractedPrices;
25281
25281
  } catch (error) {
25282
- console.warn("Error fetching Birdeye prices for static feeds:", error);
25282
+ console.warn("Error fetching fallback prices for static feeds:", error);
25283
25283
  return {};
25284
25284
  }
25285
25285
  }
25286
- var getBirdeyeFallbackPricesByFeedId = async (feedMint, apiEndpoint, opts) => {
25286
+ var getBirdeyePricesForMints = getFallbackPricesForMints;
25287
+ var getFallbackPricesByFeedId = async (feedMint, apiEndpoint, opts) => {
25287
25288
  const mintAddresses = feedMint.map((feedMint2) => feedMint2.mintAddress);
25288
- const prices = await getBirdeyePricesForMints(
25289
+ const prices = await getFallbackPricesForMints(
25289
25290
  mintAddresses,
25290
25291
  apiEndpoint,
25291
25292
  opts
@@ -25301,6 +25302,7 @@ var getBirdeyeFallbackPricesByFeedId = async (feedMint, apiEndpoint, opts) => {
25301
25302
  });
25302
25303
  return priceByFeedId;
25303
25304
  };
25305
+ var getBirdeyeFallbackPricesByFeedId = getFallbackPricesByFeedId;
25304
25306
 
25305
25307
  // src/services/account/types/account.types.ts
25306
25308
  var HealthCacheFlags = /* @__PURE__ */ ((HealthCacheFlags3) => {
@@ -62818,16 +62820,17 @@ var GAMMA_VAULT_PROGRAM_ID = new web3_js.PublicKey(
62818
62820
  "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
62819
62821
  );
62820
62822
  var SEED_WITHDRAWAL_POLICY = "withdrawal_policy";
62823
+ var SEED_DEPOSIT_POLICY = "deposit_policy";
62821
62824
  var SEED_DEPOSIT_RECEIPT = "deposit_receipt";
62822
62825
  var SEED_WITHDRAW_ESCROW = "withdraw_escrow";
62823
62826
  var SEED_WITHDRAW_RECEIPT = "withdraw_receipt";
62824
62827
 
62825
- // src/vendor/gamma/idl/gamma-vault.json
62826
- var gamma_vault_default = {
62827
- address: "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV",
62828
+ // src/vendor/gamma/idl/gamma-idl-2.json
62829
+ var gamma_idl_2_default = {
62830
+ address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ",
62828
62831
  metadata: {
62829
62832
  name: "gamma_vault",
62830
- version: "2.0.0",
62833
+ version: "2.2.0",
62831
62834
  spec: "0.1.0",
62832
62835
  description: "Gamma Protocol vault program \u2014 LP vaults with instant deposits, escrow withdrawals, and performance fees"
62833
62836
  },
@@ -63180,6 +63183,407 @@ var gamma_vault_default = {
63180
63183
  ],
63181
63184
  args: []
63182
63185
  },
63186
+ {
63187
+ name: "cross_chain_deposit_and_bridge",
63188
+ docs: [
63189
+ "Authenticated BNB/DLN ingress, native Gamma deposit accounting, and",
63190
+ "dePort share send in one atomic Gamma instruction. The bridging logic and",
63191
+ "the deBridge SDK are compiled only under the non-default `cross-chain`",
63192
+ "feature; the default (production) build keeps this entrypoint present but",
63193
+ "hard-disabled (it rejects before any state transition)."
63194
+ ],
63195
+ discriminator: [
63196
+ 191,
63197
+ 64,
63198
+ 193,
63199
+ 191,
63200
+ 223,
63201
+ 242,
63202
+ 234,
63203
+ 122
63204
+ ],
63205
+ accounts: [
63206
+ {
63207
+ name: "cross_chain_config",
63208
+ pda: {
63209
+ seeds: [
63210
+ {
63211
+ kind: "const",
63212
+ value: [
63213
+ 99,
63214
+ 114,
63215
+ 111,
63216
+ 115,
63217
+ 115,
63218
+ 95,
63219
+ 99,
63220
+ 104,
63221
+ 97,
63222
+ 105,
63223
+ 110,
63224
+ 95,
63225
+ 99,
63226
+ 111,
63227
+ 110,
63228
+ 102,
63229
+ 105,
63230
+ 103
63231
+ ]
63232
+ }
63233
+ ]
63234
+ }
63235
+ },
63236
+ {
63237
+ name: "cross_chain_vault_route",
63238
+ pda: {
63239
+ seeds: [
63240
+ {
63241
+ kind: "const",
63242
+ value: [
63243
+ 99,
63244
+ 114,
63245
+ 111,
63246
+ 115,
63247
+ 115,
63248
+ 95,
63249
+ 99,
63250
+ 104,
63251
+ 97,
63252
+ 105,
63253
+ 110,
63254
+ 95,
63255
+ 114,
63256
+ 111,
63257
+ 117,
63258
+ 116,
63259
+ 101
63260
+ ]
63261
+ },
63262
+ {
63263
+ kind: "account",
63264
+ path: "lp_vault"
63265
+ }
63266
+ ]
63267
+ }
63268
+ },
63269
+ {
63270
+ name: "cross_chain_intent",
63271
+ docs: [
63272
+ "Heap-boxed to keep Anchor's generated account parser below the SBF",
63273
+ "4 KiB stack-frame limit without changing the ordered account ABI."
63274
+ ],
63275
+ writable: true,
63276
+ pda: {
63277
+ seeds: [
63278
+ {
63279
+ kind: "const",
63280
+ value: [
63281
+ 99,
63282
+ 114,
63283
+ 111,
63284
+ 115,
63285
+ 115,
63286
+ 95,
63287
+ 99,
63288
+ 104,
63289
+ 97,
63290
+ 105,
63291
+ 110,
63292
+ 95,
63293
+ 105,
63294
+ 110,
63295
+ 116,
63296
+ 101,
63297
+ 110,
63298
+ 116
63299
+ ]
63300
+ },
63301
+ {
63302
+ kind: "const",
63303
+ value: [
63304
+ 100,
63305
+ 101,
63306
+ 112,
63307
+ 111,
63308
+ 115,
63309
+ 105,
63310
+ 116
63311
+ ]
63312
+ },
63313
+ {
63314
+ kind: "account",
63315
+ path: "extcall_meta"
63316
+ }
63317
+ ]
63318
+ }
63319
+ },
63320
+ {
63321
+ name: "extcall_meta"
63322
+ },
63323
+ {
63324
+ name: "extcall_authority",
63325
+ docs: [
63326
+ "DLN's externally supplied CPI signer. Hook expense/reward funds",
63327
+ "first-use rent and the exact native fee transferred to Gamma's sender."
63328
+ ],
63329
+ writable: true,
63330
+ signer: true
63331
+ },
63332
+ {
63333
+ name: "extcall_wallet",
63334
+ writable: true
63335
+ },
63336
+ {
63337
+ name: "cross_chain_sender",
63338
+ docs: [
63339
+ "only when calling deBridge. The handler verifies owner and data before",
63340
+ "funding it with the live native fixed fee."
63341
+ ],
63342
+ writable: true,
63343
+ pda: {
63344
+ seeds: [
63345
+ {
63346
+ kind: "const",
63347
+ value: [
63348
+ 99,
63349
+ 114,
63350
+ 111,
63351
+ 115,
63352
+ 115,
63353
+ 95,
63354
+ 99,
63355
+ 104,
63356
+ 97,
63357
+ 105,
63358
+ 110,
63359
+ 95,
63360
+ 115,
63361
+ 101,
63362
+ 110,
63363
+ 100,
63364
+ 101,
63365
+ 114
63366
+ ]
63367
+ },
63368
+ {
63369
+ kind: "account",
63370
+ path: "lp_vault"
63371
+ }
63372
+ ]
63373
+ }
63374
+ },
63375
+ {
63376
+ name: "cross_chain_sender_share_wallet",
63377
+ writable: true,
63378
+ pda: {
63379
+ seeds: [
63380
+ {
63381
+ kind: "account",
63382
+ path: "cross_chain_sender"
63383
+ },
63384
+ {
63385
+ kind: "account",
63386
+ path: "token_program"
63387
+ },
63388
+ {
63389
+ kind: "account",
63390
+ path: "shares_mint"
63391
+ }
63392
+ ],
63393
+ program: {
63394
+ kind: "const",
63395
+ value: [
63396
+ 140,
63397
+ 151,
63398
+ 37,
63399
+ 143,
63400
+ 78,
63401
+ 36,
63402
+ 137,
63403
+ 241,
63404
+ 187,
63405
+ 61,
63406
+ 16,
63407
+ 41,
63408
+ 20,
63409
+ 142,
63410
+ 13,
63411
+ 131,
63412
+ 11,
63413
+ 90,
63414
+ 19,
63415
+ 153,
63416
+ 218,
63417
+ 255,
63418
+ 16,
63419
+ 132,
63420
+ 4,
63421
+ 142,
63422
+ 123,
63423
+ 216,
63424
+ 219,
63425
+ 233,
63426
+ 248,
63427
+ 89
63428
+ ]
63429
+ }
63430
+ }
63431
+ },
63432
+ {
63433
+ name: "deposit_receipt",
63434
+ writable: true,
63435
+ pda: {
63436
+ seeds: [
63437
+ {
63438
+ kind: "const",
63439
+ value: [
63440
+ 100,
63441
+ 101,
63442
+ 112,
63443
+ 111,
63444
+ 115,
63445
+ 105,
63446
+ 116,
63447
+ 95,
63448
+ 114,
63449
+ 101,
63450
+ 99,
63451
+ 101,
63452
+ 105,
63453
+ 112,
63454
+ 116
63455
+ ]
63456
+ },
63457
+ {
63458
+ kind: "account",
63459
+ path: "extcall_authority"
63460
+ },
63461
+ {
63462
+ kind: "account",
63463
+ path: "lp_vault"
63464
+ }
63465
+ ]
63466
+ }
63467
+ },
63468
+ {
63469
+ name: "instructions",
63470
+ address: "Sysvar1nstructions1111111111111111111111111"
63471
+ },
63472
+ {
63473
+ name: "lp_vault",
63474
+ writable: true,
63475
+ relations: [
63476
+ "withdrawal_policy",
63477
+ "deposit_policy"
63478
+ ]
63479
+ },
63480
+ {
63481
+ name: "withdrawal_policy",
63482
+ writable: true,
63483
+ pda: {
63484
+ seeds: [
63485
+ {
63486
+ kind: "const",
63487
+ value: [
63488
+ 119,
63489
+ 105,
63490
+ 116,
63491
+ 104,
63492
+ 100,
63493
+ 114,
63494
+ 97,
63495
+ 119,
63496
+ 97,
63497
+ 108,
63498
+ 95,
63499
+ 112,
63500
+ 111,
63501
+ 108,
63502
+ 105,
63503
+ 99,
63504
+ 121
63505
+ ]
63506
+ },
63507
+ {
63508
+ kind: "account",
63509
+ path: "lp_vault"
63510
+ }
63511
+ ]
63512
+ }
63513
+ },
63514
+ {
63515
+ name: "deposit_policy",
63516
+ pda: {
63517
+ seeds: [
63518
+ {
63519
+ kind: "const",
63520
+ value: [
63521
+ 100,
63522
+ 101,
63523
+ 112,
63524
+ 111,
63525
+ 115,
63526
+ 105,
63527
+ 116,
63528
+ 95,
63529
+ 112,
63530
+ 111,
63531
+ 108,
63532
+ 105,
63533
+ 99,
63534
+ 121
63535
+ ]
63536
+ },
63537
+ {
63538
+ kind: "account",
63539
+ path: "lp_vault"
63540
+ }
63541
+ ]
63542
+ }
63543
+ },
63544
+ {
63545
+ name: "assets_account",
63546
+ writable: true,
63547
+ relations: [
63548
+ "lp_vault"
63549
+ ]
63550
+ },
63551
+ {
63552
+ name: "assets_mint",
63553
+ relations: [
63554
+ "lp_vault"
63555
+ ]
63556
+ },
63557
+ {
63558
+ name: "shares_mint",
63559
+ writable: true,
63560
+ relations: [
63561
+ "lp_vault"
63562
+ ]
63563
+ },
63564
+ {
63565
+ name: "system_program",
63566
+ address: "11111111111111111111111111111111"
63567
+ },
63568
+ {
63569
+ name: "token_program"
63570
+ },
63571
+ {
63572
+ name: "associated_token_program",
63573
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
63574
+ }
63575
+ ],
63576
+ args: [
63577
+ {
63578
+ name: "args",
63579
+ type: {
63580
+ defined: {
63581
+ name: "CrossChainDepositArgs"
63582
+ }
63583
+ }
63584
+ }
63585
+ ]
63586
+ },
63183
63587
  {
63184
63588
  name: "deposit",
63185
63589
  docs: [
@@ -63212,7 +63616,8 @@ var gamma_vault_default = {
63212
63616
  ],
63213
63617
  writable: true,
63214
63618
  relations: [
63215
- "withdrawal_policy"
63619
+ "withdrawal_policy",
63620
+ "deposit_policy"
63216
63621
  ]
63217
63622
  },
63218
63623
  {
@@ -63252,6 +63657,39 @@ var gamma_vault_default = {
63252
63657
  ]
63253
63658
  }
63254
63659
  },
63660
+ {
63661
+ name: "deposit_policy",
63662
+ docs: [
63663
+ "Hard capacity shared by all deposit sources."
63664
+ ],
63665
+ pda: {
63666
+ seeds: [
63667
+ {
63668
+ kind: "const",
63669
+ value: [
63670
+ 100,
63671
+ 101,
63672
+ 112,
63673
+ 111,
63674
+ 115,
63675
+ 105,
63676
+ 116,
63677
+ 95,
63678
+ 112,
63679
+ 111,
63680
+ 108,
63681
+ 105,
63682
+ 99,
63683
+ 121
63684
+ ]
63685
+ },
63686
+ {
63687
+ kind: "account",
63688
+ path: "lp_vault"
63689
+ }
63690
+ ]
63691
+ }
63692
+ },
63255
63693
  {
63256
63694
  name: "assets_account",
63257
63695
  docs: [
@@ -63733,7 +64171,7 @@ var gamma_vault_default = {
63733
64171
  "upgrade-authority check below cannot be satisfied with an unrelated",
63734
64172
  "program's ProgramData."
63735
64173
  ],
63736
- address: "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV"
64174
+ address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
63737
64175
  },
63738
64176
  {
63739
64177
  name: "program_data",
@@ -63968,6 +64406,41 @@ var gamma_vault_default = {
63968
64406
  ]
63969
64407
  }
63970
64408
  },
64409
+ {
64410
+ name: "deposit_policy",
64411
+ docs: [
64412
+ "Shared hard deposit capacity. New vaults start fail-closed until their",
64413
+ "fund authority explicitly configures this policy."
64414
+ ],
64415
+ writable: true,
64416
+ pda: {
64417
+ seeds: [
64418
+ {
64419
+ kind: "const",
64420
+ value: [
64421
+ 100,
64422
+ 101,
64423
+ 112,
64424
+ 111,
64425
+ 115,
64426
+ 105,
64427
+ 116,
64428
+ 95,
64429
+ 112,
64430
+ 111,
64431
+ 108,
64432
+ 105,
64433
+ 99,
64434
+ 121
64435
+ ]
64436
+ },
64437
+ {
64438
+ kind: "account",
64439
+ path: "lp_vault"
64440
+ }
64441
+ ]
64442
+ }
64443
+ },
63971
64444
  {
63972
64445
  name: "fee_recipient_account",
63973
64446
  docs: [
@@ -64024,54 +64497,474 @@ var gamma_vault_default = {
64024
64497
  ]
64025
64498
  },
64026
64499
  {
64027
- name: "set_fee_config",
64500
+ name: "initialize_cross_chain_config",
64028
64501
  docs: [
64029
- "Configure or disable performance fee settings."
64502
+ "Initialize Gamma's program-owned cross-chain control plane. The",
64503
+ "existing Gamma upgrade authority is the only initializer and the",
64504
+ "circuit breaker always starts paused."
64030
64505
  ],
64031
64506
  discriminator: [
64032
- 221,
64033
- 222,
64034
- 52,
64035
- 206,
64036
- 114,
64037
- 198,
64038
- 64,
64039
- 91
64507
+ 162,
64508
+ 136,
64509
+ 180,
64510
+ 13,
64511
+ 95,
64512
+ 156,
64513
+ 67,
64514
+ 223
64040
64515
  ],
64041
64516
  accounts: [
64042
64517
  {
64043
- name: "fund_authority",
64044
- docs: [
64045
- "Operator / fund authority."
64046
- ],
64047
- signer: true,
64048
- relations: [
64049
- "lp_vault"
64050
- ]
64051
- },
64052
- {
64053
- name: "lp_vault",
64054
- writable: true
64055
- },
64056
- {
64057
- name: "shares_mint",
64518
+ name: "signer",
64058
64519
  writable: true,
64059
- relations: [
64060
- "lp_vault"
64061
- ]
64520
+ signer: true
64062
64521
  },
64063
64522
  {
64064
- name: "fee_recipient_account",
64065
- docs: [
64066
- "Token account that will receive fee shares.",
64067
- "Required when enabling fees (performance_fee_bps > 0) or when",
64068
- "mid-window settlement is needed (accrued fees must be settled",
64069
- "to the old recipient before changing config).",
64070
- "Omit when disabling with no accrued fees.",
64071
- "Mutable because it may be the destination of a MintTo CPI during mid-window settlement."
64072
- ],
64523
+ name: "cross_chain_config",
64073
64524
  writable: true,
64074
- optional: true
64525
+ pda: {
64526
+ seeds: [
64527
+ {
64528
+ kind: "const",
64529
+ value: [
64530
+ 99,
64531
+ 114,
64532
+ 111,
64533
+ 115,
64534
+ 115,
64535
+ 95,
64536
+ 99,
64537
+ 104,
64538
+ 97,
64539
+ 105,
64540
+ 110,
64541
+ 95,
64542
+ 99,
64543
+ 111,
64544
+ 110,
64545
+ 102,
64546
+ 105,
64547
+ 103
64548
+ ]
64549
+ }
64550
+ ]
64551
+ }
64552
+ },
64553
+ {
64554
+ name: "program",
64555
+ address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
64556
+ },
64557
+ {
64558
+ name: "program_data"
64559
+ },
64560
+ {
64561
+ name: "system_program",
64562
+ address: "11111111111111111111111111111111"
64563
+ }
64564
+ ],
64565
+ args: [
64566
+ {
64567
+ name: "admin",
64568
+ type: "pubkey"
64569
+ }
64570
+ ]
64571
+ },
64572
+ {
64573
+ name: "receive_cross_chain_withdrawal",
64574
+ docs: [
64575
+ "Future withdrawal intake shape. The handler and route configuration",
64576
+ "remain independently hard-disabled until the continuation is complete."
64577
+ ],
64578
+ discriminator: [
64579
+ 17,
64580
+ 163,
64581
+ 45,
64582
+ 124,
64583
+ 66,
64584
+ 193,
64585
+ 202,
64586
+ 124
64587
+ ],
64588
+ accounts: [
64589
+ {
64590
+ name: "cross_chain_config",
64591
+ pda: {
64592
+ seeds: [
64593
+ {
64594
+ kind: "const",
64595
+ value: [
64596
+ 99,
64597
+ 114,
64598
+ 111,
64599
+ 115,
64600
+ 115,
64601
+ 95,
64602
+ 99,
64603
+ 104,
64604
+ 97,
64605
+ 105,
64606
+ 110,
64607
+ 95,
64608
+ 99,
64609
+ 111,
64610
+ 110,
64611
+ 102,
64612
+ 105,
64613
+ 103
64614
+ ]
64615
+ }
64616
+ ]
64617
+ }
64618
+ },
64619
+ {
64620
+ name: "cross_chain_vault_route",
64621
+ writable: true,
64622
+ pda: {
64623
+ seeds: [
64624
+ {
64625
+ kind: "const",
64626
+ value: [
64627
+ 99,
64628
+ 114,
64629
+ 111,
64630
+ 115,
64631
+ 115,
64632
+ 95,
64633
+ 99,
64634
+ 104,
64635
+ 97,
64636
+ 105,
64637
+ 110,
64638
+ 95,
64639
+ 114,
64640
+ 111,
64641
+ 117,
64642
+ 116,
64643
+ 101
64644
+ ]
64645
+ },
64646
+ {
64647
+ kind: "account",
64648
+ path: "lp_vault"
64649
+ }
64650
+ ]
64651
+ }
64652
+ },
64653
+ {
64654
+ name: "cross_chain_intent",
64655
+ writable: true,
64656
+ pda: {
64657
+ seeds: [
64658
+ {
64659
+ kind: "const",
64660
+ value: [
64661
+ 99,
64662
+ 114,
64663
+ 111,
64664
+ 115,
64665
+ 115,
64666
+ 95,
64667
+ 99,
64668
+ 104,
64669
+ 97,
64670
+ 105,
64671
+ 110,
64672
+ 95,
64673
+ 105,
64674
+ 110,
64675
+ 116,
64676
+ 101,
64677
+ 110,
64678
+ 116
64679
+ ]
64680
+ },
64681
+ {
64682
+ kind: "const",
64683
+ value: [
64684
+ 119,
64685
+ 105,
64686
+ 116,
64687
+ 104,
64688
+ 100,
64689
+ 114,
64690
+ 97,
64691
+ 119,
64692
+ 97,
64693
+ 108
64694
+ ]
64695
+ },
64696
+ {
64697
+ kind: "account",
64698
+ path: "submission"
64699
+ }
64700
+ ]
64701
+ }
64702
+ },
64703
+ {
64704
+ name: "submission"
64705
+ },
64706
+ {
64707
+ name: "submission_authority",
64708
+ writable: true,
64709
+ signer: true
64710
+ },
64711
+ {
64712
+ name: "inbound_share_wallet",
64713
+ writable: true
64714
+ },
64715
+ {
64716
+ name: "share_escrow",
64717
+ writable: true,
64718
+ pda: {
64719
+ seeds: [
64720
+ {
64721
+ kind: "account",
64722
+ path: "cross_chain_vault_route"
64723
+ },
64724
+ {
64725
+ kind: "account",
64726
+ path: "token_program"
64727
+ },
64728
+ {
64729
+ kind: "account",
64730
+ path: "shares_mint"
64731
+ }
64732
+ ],
64733
+ program: {
64734
+ kind: "const",
64735
+ value: [
64736
+ 140,
64737
+ 151,
64738
+ 37,
64739
+ 143,
64740
+ 78,
64741
+ 36,
64742
+ 137,
64743
+ 241,
64744
+ 187,
64745
+ 61,
64746
+ 16,
64747
+ 41,
64748
+ 20,
64749
+ 142,
64750
+ 13,
64751
+ 131,
64752
+ 11,
64753
+ 90,
64754
+ 19,
64755
+ 153,
64756
+ 218,
64757
+ 255,
64758
+ 16,
64759
+ 132,
64760
+ 4,
64761
+ 142,
64762
+ 123,
64763
+ 216,
64764
+ 219,
64765
+ 233,
64766
+ 248,
64767
+ 89
64768
+ ]
64769
+ }
64770
+ }
64771
+ },
64772
+ {
64773
+ name: "instructions",
64774
+ address: "Sysvar1nstructions1111111111111111111111111"
64775
+ },
64776
+ {
64777
+ name: "lp_vault",
64778
+ relations: [
64779
+ "withdrawal_policy"
64780
+ ]
64781
+ },
64782
+ {
64783
+ name: "withdrawal_policy",
64784
+ pda: {
64785
+ seeds: [
64786
+ {
64787
+ kind: "const",
64788
+ value: [
64789
+ 119,
64790
+ 105,
64791
+ 116,
64792
+ 104,
64793
+ 100,
64794
+ 114,
64795
+ 97,
64796
+ 119,
64797
+ 97,
64798
+ 108,
64799
+ 95,
64800
+ 112,
64801
+ 111,
64802
+ 108,
64803
+ 105,
64804
+ 99,
64805
+ 121
64806
+ ]
64807
+ },
64808
+ {
64809
+ kind: "account",
64810
+ path: "lp_vault"
64811
+ }
64812
+ ]
64813
+ }
64814
+ },
64815
+ {
64816
+ name: "shares_mint"
64817
+ },
64818
+ {
64819
+ name: "system_program",
64820
+ address: "11111111111111111111111111111111"
64821
+ },
64822
+ {
64823
+ name: "token_program"
64824
+ }
64825
+ ],
64826
+ args: [
64827
+ {
64828
+ name: "args",
64829
+ type: {
64830
+ defined: {
64831
+ name: "CrossChainWithdrawalArgs"
64832
+ }
64833
+ }
64834
+ }
64835
+ ]
64836
+ },
64837
+ {
64838
+ name: "set_deposit_policy",
64839
+ docs: [
64840
+ "Configure the hard shared deposit capacity or pause deposits. The",
64841
+ "policy applies equally to native and cross-chain deposit callers."
64842
+ ],
64843
+ discriminator: [
64844
+ 56,
64845
+ 138,
64846
+ 17,
64847
+ 74,
64848
+ 222,
64849
+ 84,
64850
+ 14,
64851
+ 210
64852
+ ],
64853
+ accounts: [
64854
+ {
64855
+ name: "fund_authority",
64856
+ signer: true,
64857
+ relations: [
64858
+ "lp_vault"
64859
+ ]
64860
+ },
64861
+ {
64862
+ name: "payer",
64863
+ docs: [
64864
+ "Payer for initializing the policy on pre-upgrade vaults."
64865
+ ],
64866
+ writable: true,
64867
+ signer: true
64868
+ },
64869
+ {
64870
+ name: "lp_vault"
64871
+ },
64872
+ {
64873
+ name: "deposit_policy",
64874
+ writable: true,
64875
+ pda: {
64876
+ seeds: [
64877
+ {
64878
+ kind: "const",
64879
+ value: [
64880
+ 100,
64881
+ 101,
64882
+ 112,
64883
+ 111,
64884
+ 115,
64885
+ 105,
64886
+ 116,
64887
+ 95,
64888
+ 112,
64889
+ 111,
64890
+ 108,
64891
+ 105,
64892
+ 99,
64893
+ 121
64894
+ ]
64895
+ },
64896
+ {
64897
+ kind: "account",
64898
+ path: "lp_vault"
64899
+ }
64900
+ ]
64901
+ }
64902
+ },
64903
+ {
64904
+ name: "system_program",
64905
+ address: "11111111111111111111111111111111"
64906
+ }
64907
+ ],
64908
+ args: [
64909
+ {
64910
+ name: "capacity_assets",
64911
+ type: "u64"
64912
+ },
64913
+ {
64914
+ name: "deposits_paused",
64915
+ type: "bool"
64916
+ }
64917
+ ]
64918
+ },
64919
+ {
64920
+ name: "set_fee_config",
64921
+ docs: [
64922
+ "Configure or disable performance fee settings."
64923
+ ],
64924
+ discriminator: [
64925
+ 221,
64926
+ 222,
64927
+ 52,
64928
+ 206,
64929
+ 114,
64930
+ 198,
64931
+ 64,
64932
+ 91
64933
+ ],
64934
+ accounts: [
64935
+ {
64936
+ name: "fund_authority",
64937
+ docs: [
64938
+ "Operator / fund authority."
64939
+ ],
64940
+ signer: true,
64941
+ relations: [
64942
+ "lp_vault"
64943
+ ]
64944
+ },
64945
+ {
64946
+ name: "lp_vault",
64947
+ writable: true
64948
+ },
64949
+ {
64950
+ name: "shares_mint",
64951
+ writable: true,
64952
+ relations: [
64953
+ "lp_vault"
64954
+ ]
64955
+ },
64956
+ {
64957
+ name: "fee_recipient_account",
64958
+ docs: [
64959
+ "Token account that will receive fee shares.",
64960
+ "Required when enabling fees (performance_fee_bps > 0) or when",
64961
+ "mid-window settlement is needed (accrued fees must be settled",
64962
+ "to the old recipient before changing config).",
64963
+ "Omit when disabling with no accrued fees.",
64964
+ "Mutable because it may be the destination of a MintTo CPI during mid-window settlement."
64965
+ ],
64966
+ writable: true,
64967
+ optional: true
64075
64968
  },
64076
64969
  {
64077
64970
  name: "token_program"
@@ -64471,7 +65364,7 @@ var gamma_vault_default = {
64471
65364
  "upgrade-authority check below cannot be satisfied with an unrelated",
64472
65365
  "program's ProgramData."
64473
65366
  ],
64474
- address: "GaMmanX9i4jGmqDZZD2tbD6B2v9p21btenPneMXnTczV"
65367
+ address: "gvvtqvEmwQDnFwEvLJzzyweABcXV7HAYsTwTgztEHWJ"
64475
65368
  },
64476
65369
  {
64477
65370
  name: "program_data",
@@ -64498,6 +65391,69 @@ var gamma_vault_default = {
64498
65391
  }
64499
65392
  ]
64500
65393
  },
65394
+ {
65395
+ name: "update_cross_chain_config",
65396
+ discriminator: [
65397
+ 79,
65398
+ 141,
65399
+ 137,
65400
+ 119,
65401
+ 118,
65402
+ 242,
65403
+ 249,
65404
+ 118
65405
+ ],
65406
+ accounts: [
65407
+ {
65408
+ name: "admin",
65409
+ signer: true,
65410
+ relations: [
65411
+ "cross_chain_config"
65412
+ ]
65413
+ },
65414
+ {
65415
+ name: "cross_chain_config",
65416
+ writable: true,
65417
+ pda: {
65418
+ seeds: [
65419
+ {
65420
+ kind: "const",
65421
+ value: [
65422
+ 99,
65423
+ 114,
65424
+ 111,
65425
+ 115,
65426
+ 115,
65427
+ 95,
65428
+ 99,
65429
+ 104,
65430
+ 97,
65431
+ 105,
65432
+ 110,
65433
+ 95,
65434
+ 99,
65435
+ 111,
65436
+ 110,
65437
+ 102,
65438
+ 105,
65439
+ 103
65440
+ ]
65441
+ }
65442
+ ]
65443
+ }
65444
+ }
65445
+ ],
65446
+ args: [
65447
+ {
65448
+ name: "new_admin",
65449
+ type: "pubkey"
65450
+ },
65451
+ {
65452
+ name: "deposits_paused",
65453
+ type: "bool"
65454
+ }
65455
+ ]
65456
+ },
64501
65457
  {
64502
65458
  name: "update_global_config",
64503
65459
  discriminator: [
@@ -64607,6 +65563,65 @@ var gamma_vault_default = {
64607
65563
  }
64608
65564
  ]
64609
65565
  },
65566
+ {
65567
+ name: "update_nav_checked",
65568
+ docs: [
65569
+ "Atomically update NAV only when the vault still matches the state read",
65570
+ "by the caller. This prevents deposits, withdrawals, fee assessments, or",
65571
+ "another NAV publish from invalidating an off-chain NAV calculation",
65572
+ "between preflight and transaction execution."
65573
+ ],
65574
+ discriminator: [
65575
+ 2,
65576
+ 235,
65577
+ 178,
65578
+ 75,
65579
+ 223,
65580
+ 26,
65581
+ 72,
65582
+ 144
65583
+ ],
65584
+ accounts: [
65585
+ {
65586
+ name: "fund_authority",
65587
+ docs: [
65588
+ "Fund authority - only they can update NAV."
65589
+ ],
65590
+ signer: true,
65591
+ relations: [
65592
+ "lp_vault"
65593
+ ]
65594
+ },
65595
+ {
65596
+ name: "lp_vault",
65597
+ writable: true
65598
+ },
65599
+ {
65600
+ name: "shares_mint",
65601
+ relations: [
65602
+ "lp_vault"
65603
+ ]
65604
+ }
65605
+ ],
65606
+ args: [
65607
+ {
65608
+ name: "new_nav",
65609
+ type: "u64"
65610
+ },
65611
+ {
65612
+ name: "expected_nav",
65613
+ type: "u64"
65614
+ },
65615
+ {
65616
+ name: "expected_total_shares",
65617
+ type: "u64"
65618
+ },
65619
+ {
65620
+ name: "expected_nav_updated_at",
65621
+ type: "i64"
65622
+ }
65623
+ ]
65624
+ },
64610
65625
  {
64611
65626
  name: "update_nav_max_staleness",
64612
65627
  docs: [
@@ -64645,6 +65660,198 @@ var gamma_vault_default = {
64645
65660
  }
64646
65661
  ]
64647
65662
  },
65663
+ {
65664
+ name: "upsert_cross_chain_vault_route",
65665
+ discriminator: [
65666
+ 10,
65667
+ 80,
65668
+ 62,
65669
+ 8,
65670
+ 145,
65671
+ 215,
65672
+ 7,
65673
+ 31
65674
+ ],
65675
+ accounts: [
65676
+ {
65677
+ name: "admin",
65678
+ writable: true,
65679
+ signer: true,
65680
+ relations: [
65681
+ "cross_chain_config"
65682
+ ]
65683
+ },
65684
+ {
65685
+ name: "cross_chain_config",
65686
+ pda: {
65687
+ seeds: [
65688
+ {
65689
+ kind: "const",
65690
+ value: [
65691
+ 99,
65692
+ 114,
65693
+ 111,
65694
+ 115,
65695
+ 115,
65696
+ 95,
65697
+ 99,
65698
+ 104,
65699
+ 97,
65700
+ 105,
65701
+ 110,
65702
+ 95,
65703
+ 99,
65704
+ 111,
65705
+ 110,
65706
+ 102,
65707
+ 105,
65708
+ 103
65709
+ ]
65710
+ }
65711
+ ]
65712
+ }
65713
+ },
65714
+ {
65715
+ name: "cross_chain_vault_route",
65716
+ writable: true,
65717
+ pda: {
65718
+ seeds: [
65719
+ {
65720
+ kind: "const",
65721
+ value: [
65722
+ 99,
65723
+ 114,
65724
+ 111,
65725
+ 115,
65726
+ 115,
65727
+ 95,
65728
+ 99,
65729
+ 104,
65730
+ 97,
65731
+ 105,
65732
+ 110,
65733
+ 95,
65734
+ 114,
65735
+ 111,
65736
+ 117,
65737
+ 116,
65738
+ 101
65739
+ ]
65740
+ },
65741
+ {
65742
+ kind: "account",
65743
+ path: "lp_vault"
65744
+ }
65745
+ ]
65746
+ }
65747
+ },
65748
+ {
65749
+ name: "lp_vault"
65750
+ },
65751
+ {
65752
+ name: "assets_mint"
65753
+ },
65754
+ {
65755
+ name: "shares_mint"
65756
+ },
65757
+ {
65758
+ name: "share_escrow",
65759
+ writable: true,
65760
+ pda: {
65761
+ seeds: [
65762
+ {
65763
+ kind: "account",
65764
+ path: "cross_chain_vault_route"
65765
+ },
65766
+ {
65767
+ kind: "account",
65768
+ path: "token_program"
65769
+ },
65770
+ {
65771
+ kind: "account",
65772
+ path: "shares_mint"
65773
+ }
65774
+ ],
65775
+ program: {
65776
+ kind: "const",
65777
+ value: [
65778
+ 140,
65779
+ 151,
65780
+ 37,
65781
+ 143,
65782
+ 78,
65783
+ 36,
65784
+ 137,
65785
+ 241,
65786
+ 187,
65787
+ 61,
65788
+ 16,
65789
+ 41,
65790
+ 20,
65791
+ 142,
65792
+ 13,
65793
+ 131,
65794
+ 11,
65795
+ 90,
65796
+ 19,
65797
+ 153,
65798
+ 218,
65799
+ 255,
65800
+ 16,
65801
+ 132,
65802
+ 4,
65803
+ 142,
65804
+ 123,
65805
+ 216,
65806
+ 219,
65807
+ 233,
65808
+ 248,
65809
+ 89
65810
+ ]
65811
+ }
65812
+ }
65813
+ },
65814
+ {
65815
+ name: "system_program",
65816
+ address: "11111111111111111111111111111111"
65817
+ },
65818
+ {
65819
+ name: "token_program"
65820
+ },
65821
+ {
65822
+ name: "associated_token_program",
65823
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
65824
+ }
65825
+ ],
65826
+ args: [
65827
+ {
65828
+ name: "bnb_usdc",
65829
+ type: {
65830
+ array: [
65831
+ "u8",
65832
+ 20
65833
+ ]
65834
+ }
65835
+ },
65836
+ {
65837
+ name: "bnb_usdt",
65838
+ type: {
65839
+ array: [
65840
+ "u8",
65841
+ 20
65842
+ ]
65843
+ }
65844
+ },
65845
+ {
65846
+ name: "deposits_enabled",
65847
+ type: "bool"
65848
+ },
65849
+ {
65850
+ name: "withdrawals_enabled",
65851
+ type: "bool"
65852
+ }
65853
+ ]
65854
+ },
64648
65855
  {
64649
65856
  name: "withdraw",
64650
65857
  docs: [
@@ -65162,6 +66369,58 @@ var gamma_vault_default = {
65162
66369
  }
65163
66370
  ],
65164
66371
  accounts: [
66372
+ {
66373
+ name: "CrossChainConfig",
66374
+ discriminator: [
66375
+ 74,
66376
+ 146,
66377
+ 238,
66378
+ 67,
66379
+ 67,
66380
+ 21,
66381
+ 3,
66382
+ 218
66383
+ ]
66384
+ },
66385
+ {
66386
+ name: "CrossChainIntent",
66387
+ discriminator: [
66388
+ 37,
66389
+ 183,
66390
+ 58,
66391
+ 87,
66392
+ 62,
66393
+ 179,
66394
+ 16,
66395
+ 114
66396
+ ]
66397
+ },
66398
+ {
66399
+ name: "CrossChainVaultRoute",
66400
+ discriminator: [
66401
+ 48,
66402
+ 216,
66403
+ 186,
66404
+ 31,
66405
+ 186,
66406
+ 216,
66407
+ 19,
66408
+ 166
66409
+ ]
66410
+ },
66411
+ {
66412
+ name: "DepositPolicy",
66413
+ discriminator: [
66414
+ 159,
66415
+ 243,
66416
+ 65,
66417
+ 242,
66418
+ 81,
66419
+ 27,
66420
+ 41,
66421
+ 167
66422
+ ]
66423
+ },
65165
66424
  {
65166
66425
  name: "DepositReceipt",
65167
66426
  discriminator: [
@@ -65255,6 +66514,84 @@ var gamma_vault_default = {
65255
66514
  113
65256
66515
  ]
65257
66516
  },
66517
+ {
66518
+ name: "CrossChainConfigUpdated",
66519
+ discriminator: [
66520
+ 50,
66521
+ 228,
66522
+ 95,
66523
+ 17,
66524
+ 86,
66525
+ 48,
66526
+ 61,
66527
+ 70
66528
+ ]
66529
+ },
66530
+ {
66531
+ name: "CrossChainDepositCompleted",
66532
+ discriminator: [
66533
+ 45,
66534
+ 209,
66535
+ 209,
66536
+ 207,
66537
+ 158,
66538
+ 87,
66539
+ 232,
66540
+ 168
66541
+ ]
66542
+ },
66543
+ {
66544
+ name: "CrossChainIntentReplayAccepted",
66545
+ discriminator: [
66546
+ 221,
66547
+ 50,
66548
+ 69,
66549
+ 6,
66550
+ 52,
66551
+ 30,
66552
+ 90,
66553
+ 159
66554
+ ]
66555
+ },
66556
+ {
66557
+ name: "CrossChainVaultRouteUpdated",
66558
+ discriminator: [
66559
+ 181,
66560
+ 72,
66561
+ 59,
66562
+ 8,
66563
+ 36,
66564
+ 234,
66565
+ 89,
66566
+ 88
66567
+ ]
66568
+ },
66569
+ {
66570
+ name: "CrossChainWithdrawalEscrowed",
66571
+ discriminator: [
66572
+ 72,
66573
+ 146,
66574
+ 194,
66575
+ 25,
66576
+ 142,
66577
+ 51,
66578
+ 182,
66579
+ 26
66580
+ ]
66581
+ },
66582
+ {
66583
+ name: "DepositPolicyUpdated",
66584
+ discriminator: [
66585
+ 190,
66586
+ 38,
66587
+ 79,
66588
+ 160,
66589
+ 80,
66590
+ 143,
66591
+ 90,
66592
+ 255
66593
+ ]
66594
+ },
65258
66595
  {
65259
66596
  name: "FeeConfigUpdated",
65260
66597
  discriminator: [
@@ -65378,69 +66715,174 @@ var gamma_vault_default = {
65378
66715
  msg: "No pending withdrawal to fulfill!"
65379
66716
  },
65380
66717
  {
65381
- code: 6011,
65382
- name: "NoClaimableAssets",
65383
- msg: "No claimable assets to withdraw!"
66718
+ code: 6011,
66719
+ name: "NoClaimableAssets",
66720
+ msg: "No claimable assets to withdraw!"
66721
+ },
66722
+ {
66723
+ code: 6012,
66724
+ name: "FeeRecipientNotConfigured",
66725
+ msg: "Fee recipient is not configured!"
66726
+ },
66727
+ {
66728
+ code: 6013,
66729
+ name: "InvalidPerformanceFeeBps",
66730
+ msg: "Invalid performance fee - must be <= MAX_PERFORMANCE_FEE_BPS!"
66731
+ },
66732
+ {
66733
+ code: 6014,
66734
+ name: "InvalidFeeRecipient",
66735
+ msg: "Invalid fee recipient account!"
66736
+ },
66737
+ {
66738
+ code: 6015,
66739
+ name: "AssessmentTooEarly",
66740
+ msg: "Assessment interval has not elapsed!"
66741
+ },
66742
+ {
66743
+ code: 6016,
66744
+ name: "InvalidAssessmentInterval",
66745
+ msg: "Invalid assessment interval!"
66746
+ },
66747
+ {
66748
+ code: 6017,
66749
+ name: "NavUpdateTooLarge",
66750
+ msg: "NAV update would change share price by more than the allowed maximum!"
66751
+ },
66752
+ {
66753
+ code: 6018,
66754
+ name: "InvalidWithdrawalFeeBps",
66755
+ msg: "Invalid withdrawal fee - must be <= MAX_WITHDRAWAL_FEE_BPS!"
66756
+ },
66757
+ {
66758
+ code: 6019,
66759
+ name: "InvalidWithdrawalCapBps",
66760
+ msg: "Invalid withdrawal cap - must be <= 10000 bps!"
66761
+ },
66762
+ {
66763
+ code: 6020,
66764
+ name: "HourlyWithdrawalCapExceeded",
66765
+ msg: "Withdrawal exceeds hourly vault capacity!"
66766
+ },
66767
+ {
66768
+ code: 6021,
66769
+ name: "DailyWithdrawalCapExceeded",
66770
+ msg: "Withdrawal exceeds daily vault capacity!"
66771
+ },
66772
+ {
66773
+ code: 6022,
66774
+ name: "InvalidWithdrawalPolicy",
66775
+ msg: "Invalid withdrawal policy account!"
66776
+ },
66777
+ {
66778
+ code: 6023,
66779
+ name: "InvalidAuthority",
66780
+ msg: "New authority cannot be the default (all-zeros) pubkey!"
66781
+ },
66782
+ {
66783
+ code: 6024,
66784
+ name: "NavUpdateStateMismatch",
66785
+ msg: "Vault NAV state changed since the expected state was read!"
66786
+ },
66787
+ {
66788
+ code: 6025,
66789
+ name: "InvalidDepositPolicy",
66790
+ msg: "Invalid deposit policy account!"
66791
+ },
66792
+ {
66793
+ code: 6026,
66794
+ name: "DepositsPaused",
66795
+ msg: "Deposits are paused for this vault!"
66796
+ },
66797
+ {
66798
+ code: 6027,
66799
+ name: "DepositCapacityExceeded",
66800
+ msg: "Deposit would exceed the vault capacity!"
66801
+ },
66802
+ {
66803
+ code: 6028,
66804
+ name: "InvalidCrossChainRoute",
66805
+ msg: "Invalid cross-chain vault route"
66806
+ },
66807
+ {
66808
+ code: 6029,
66809
+ name: "CrossChainRouteDisabled",
66810
+ msg: "Cross-chain vault route is disabled"
66811
+ },
66812
+ {
66813
+ code: 6030,
66814
+ name: "InvalidEvmAddress",
66815
+ msg: "Invalid BNB address"
66816
+ },
66817
+ {
66818
+ code: 6031,
66819
+ name: "CrossChainTokenNotAllowed",
66820
+ msg: "BNB token is not allowlisted"
65384
66821
  },
65385
66822
  {
65386
- code: 6012,
65387
- name: "FeeRecipientNotConfigured",
65388
- msg: "Fee recipient is not configured!"
66823
+ code: 6032,
66824
+ name: "CrossChainIntentExpired",
66825
+ msg: "Cross-chain intent deadline has expired"
65389
66826
  },
65390
66827
  {
65391
- code: 6013,
65392
- name: "InvalidPerformanceFeeBps",
65393
- msg: "Invalid performance fee - must be <= MAX_PERFORMANCE_FEE_BPS!"
66828
+ code: 6033,
66829
+ name: "InvalidCrossChainAmount",
66830
+ msg: "Invalid cross-chain amount"
65394
66831
  },
65395
66832
  {
65396
- code: 6014,
65397
- name: "InvalidFeeRecipient",
65398
- msg: "Invalid fee recipient account!"
66833
+ code: 6034,
66834
+ name: "CrossChainMinimumOutputNotMet",
66835
+ msg: "Cross-chain minimum output cannot be met"
65399
66836
  },
65400
66837
  {
65401
- code: 6015,
65402
- name: "AssessmentTooEarly",
65403
- msg: "Assessment interval has not elapsed!"
66838
+ code: 6035,
66839
+ name: "CrossChainIntentReplayConflict",
66840
+ msg: "Conflicting replay of an existing cross-chain intent"
65404
66841
  },
65405
66842
  {
65406
- code: 6016,
65407
- name: "InvalidAssessmentInterval",
65408
- msg: "Invalid assessment interval!"
66843
+ code: 6036,
66844
+ name: "InvalidCrossChainIntentState",
66845
+ msg: "Invalid cross-chain intent state"
65409
66846
  },
65410
66847
  {
65411
- code: 6017,
65412
- name: "NavUpdateTooLarge",
65413
- msg: "NAV update would change share price by more than the allowed maximum!"
66848
+ code: 6037,
66849
+ name: "InvalidDebridgeCaller",
66850
+ msg: "Caller is not the authenticated deBridge execution program"
65414
66851
  },
65415
66852
  {
65416
- code: 6018,
65417
- name: "InvalidWithdrawalFeeBps",
65418
- msg: "Invalid withdrawal fee - must be <= MAX_WITHDRAWAL_FEE_BPS!"
66853
+ code: 6038,
66854
+ name: "InvalidDebridgeMetadata",
66855
+ msg: "Invalid deBridge execution metadata account"
65419
66856
  },
65420
66857
  {
65421
- code: 6019,
65422
- name: "InvalidWithdrawalCapBps",
65423
- msg: "Invalid withdrawal cap - must be <= 10000 bps!"
66858
+ code: 6039,
66859
+ name: "InvalidDebridgeSubmissionAuthority",
66860
+ msg: "Invalid deBridge submission authority"
65424
66861
  },
65425
66862
  {
65426
- code: 6020,
65427
- name: "HourlyWithdrawalCapExceeded",
65428
- msg: "Withdrawal exceeds hourly vault capacity!"
66863
+ code: 6040,
66864
+ name: "InvalidDebridgeDeliveryBalance",
66865
+ msg: "Invalid deBridge delivery balance invariant"
65429
66866
  },
65430
66867
  {
65431
- code: 6021,
65432
- name: "DailyWithdrawalCapExceeded",
65433
- msg: "Withdrawal exceeds daily vault capacity!"
66868
+ code: 6041,
66869
+ name: "InvalidDebridgeSendAccounts",
66870
+ msg: "Invalid deBridge send account boundary"
65434
66871
  },
65435
66872
  {
65436
- code: 6022,
65437
- name: "InvalidWithdrawalPolicy",
65438
- msg: "Invalid withdrawal policy account!"
66873
+ code: 6042,
66874
+ name: "CrossChainExternalBindingUnavailable",
66875
+ msg: "Cross-chain external protocol binding is not activated"
65439
66876
  },
65440
66877
  {
65441
- code: 6023,
65442
- name: "InvalidAuthority",
65443
- msg: "New authority cannot be the default (all-zeros) pubkey!"
66878
+ code: 6043,
66879
+ name: "CrossChainConfigurationRequiresPause",
66880
+ msg: "Cross-chain route configuration requires deposits to be paused"
66881
+ },
66882
+ {
66883
+ code: 6044,
66884
+ name: "InvalidDebridgeOutboundBalance",
66885
+ msg: "deBridge did not debit the exact outbound share amount"
65444
66886
  }
65445
66887
  ],
65446
66888
  types: [
@@ -65476,6 +66918,566 @@ var gamma_vault_default = {
65476
66918
  ]
65477
66919
  }
65478
66920
  },
66921
+ {
66922
+ name: "CrossChainConfig",
66923
+ docs: [
66924
+ "Program-wide administration for Gamma-owned cross-chain entrypoints.",
66925
+ "Initialization is upgrade-authority gated and always starts paused."
66926
+ ],
66927
+ type: {
66928
+ kind: "struct",
66929
+ fields: [
66930
+ {
66931
+ name: "admin",
66932
+ type: "pubkey"
66933
+ },
66934
+ {
66935
+ name: "deposits_paused",
66936
+ docs: [
66937
+ "Global deposit-only circuit breaker. Withdrawal intake has its own hard",
66938
+ "executable gate and remains unavailable in this release."
66939
+ ],
66940
+ type: "bool"
66941
+ },
66942
+ {
66943
+ name: "bump",
66944
+ type: "u8"
66945
+ }
66946
+ ]
66947
+ }
66948
+ },
66949
+ {
66950
+ name: "CrossChainConfigUpdated",
66951
+ type: {
66952
+ kind: "struct",
66953
+ fields: [
66954
+ {
66955
+ name: "old_admin",
66956
+ type: "pubkey"
66957
+ },
66958
+ {
66959
+ name: "new_admin",
66960
+ type: "pubkey"
66961
+ },
66962
+ {
66963
+ name: "deposits_paused",
66964
+ type: "bool"
66965
+ }
66966
+ ]
66967
+ }
66968
+ },
66969
+ {
66970
+ name: "CrossChainDepositArgs",
66971
+ type: {
66972
+ kind: "struct",
66973
+ fields: [
66974
+ {
66975
+ name: "beneficiary",
66976
+ docs: [
66977
+ "BNB recipient of the managed deAsset. This is order payload data; DLN's",
66978
+ "public Solana metadata does not prove it is the source transaction maker."
66979
+ ],
66980
+ type: {
66981
+ array: [
66982
+ "u8",
66983
+ 20
66984
+ ]
66985
+ }
66986
+ },
66987
+ {
66988
+ name: "source_token",
66989
+ docs: [
66990
+ "Declared hook payload value only. The published ExtcallMeta layout does",
66991
+ "not expose the DLN CreatedOrder giveOffer, so this field cannot prove",
66992
+ "which BNB token funded the order."
66993
+ ],
66994
+ type: {
66995
+ array: [
66996
+ "u8",
66997
+ 20
66998
+ ]
66999
+ }
67000
+ },
67001
+ {
67002
+ name: "deposit_amount",
67003
+ docs: [
67004
+ "Declared destination take-token tranche. This is not the BNB",
67005
+ "CreatedOrder give amount, which may use different decimals and terms."
67006
+ ],
67007
+ type: "u64"
67008
+ },
67009
+ {
67010
+ name: "min_bnb_shares",
67011
+ docs: [
67012
+ "Minimum shares after deBridge transfer fees."
67013
+ ],
67014
+ type: "u64"
67015
+ },
67016
+ {
67017
+ name: "deadline",
67018
+ type: "i64"
67019
+ },
67020
+ {
67021
+ name: "nonce",
67022
+ type: "u64"
67023
+ }
67024
+ ]
67025
+ }
67026
+ },
67027
+ {
67028
+ name: "CrossChainDepositCompleted",
67029
+ type: {
67030
+ kind: "struct",
67031
+ fields: [
67032
+ {
67033
+ name: "intent",
67034
+ type: "pubkey"
67035
+ },
67036
+ {
67037
+ name: "replay_key",
67038
+ type: "pubkey"
67039
+ },
67040
+ {
67041
+ name: "lp_vault",
67042
+ type: "pubkey"
67043
+ },
67044
+ {
67045
+ name: "native_sender",
67046
+ docs: [
67047
+ "Gamma-derived signer recorded by deBridge as `nativeSender`."
67048
+ ],
67049
+ type: "pubkey"
67050
+ },
67051
+ {
67052
+ name: "beneficiary",
67053
+ type: {
67054
+ array: [
67055
+ "u8",
67056
+ 20
67057
+ ]
67058
+ }
67059
+ },
67060
+ {
67061
+ name: "deposited_assets",
67062
+ type: "u64"
67063
+ },
67064
+ {
67065
+ name: "bridged_shares",
67066
+ type: "u64"
67067
+ },
67068
+ {
67069
+ name: "nonce",
67070
+ type: "u64"
67071
+ }
67072
+ ]
67073
+ }
67074
+ },
67075
+ {
67076
+ name: "CrossChainIntent",
67077
+ type: {
67078
+ kind: "struct",
67079
+ fields: [
67080
+ {
67081
+ name: "version",
67082
+ type: "u8"
67083
+ },
67084
+ {
67085
+ name: "kind",
67086
+ docs: [
67087
+ "1 = deposit, 2 = withdrawal."
67088
+ ],
67089
+ type: "u8"
67090
+ },
67091
+ {
67092
+ name: "status",
67093
+ type: "u8"
67094
+ },
67095
+ {
67096
+ name: "route",
67097
+ type: "pubkey"
67098
+ },
67099
+ {
67100
+ name: "replay_key",
67101
+ docs: [
67102
+ "Opaque deBridge-owned account used as the replay key."
67103
+ ],
67104
+ type: "pubkey"
67105
+ },
67106
+ {
67107
+ name: "beneficiary",
67108
+ type: {
67109
+ array: [
67110
+ "u8",
67111
+ 20
67112
+ ]
67113
+ }
67114
+ },
67115
+ {
67116
+ name: "source_or_output_token",
67117
+ type: {
67118
+ array: [
67119
+ "u8",
67120
+ 20
67121
+ ]
67122
+ }
67123
+ },
67124
+ {
67125
+ name: "input_amount",
67126
+ type: "u64"
67127
+ },
67128
+ {
67129
+ name: "minimum_output",
67130
+ docs: [
67131
+ "Deposit intents store the six-decimal minimum shares here; withdrawal",
67132
+ "intents store the six-decimal minimum native Solana vault assets here."
67133
+ ],
67134
+ type: "u64"
67135
+ },
67136
+ {
67137
+ name: "min_output_amount_raw",
67138
+ docs: [
67139
+ "Authenticated minimum final BNB USDC/USDT output for withdrawals,",
67140
+ "encoded as a fixed-width unsigned U256 in big-endian order."
67141
+ ],
67142
+ type: {
67143
+ array: [
67144
+ "u8",
67145
+ 32
67146
+ ]
67147
+ }
67148
+ },
67149
+ {
67150
+ name: "actual_output",
67151
+ docs: [
67152
+ "Actual native share output for the implemented deposit path."
67153
+ ],
67154
+ type: "u64"
67155
+ },
67156
+ {
67157
+ name: "deadline",
67158
+ type: "i64"
67159
+ },
67160
+ {
67161
+ name: "nonce",
67162
+ type: "u64"
67163
+ },
67164
+ {
67165
+ name: "created_at",
67166
+ type: "i64"
67167
+ },
67168
+ {
67169
+ name: "updated_at",
67170
+ type: "i64"
67171
+ },
67172
+ {
67173
+ name: "bump",
67174
+ type: "u8"
67175
+ }
67176
+ ]
67177
+ }
67178
+ },
67179
+ {
67180
+ name: "CrossChainIntentReplayAccepted",
67181
+ type: {
67182
+ kind: "struct",
67183
+ fields: [
67184
+ {
67185
+ name: "intent",
67186
+ type: "pubkey"
67187
+ },
67188
+ {
67189
+ name: "replay_key",
67190
+ type: "pubkey"
67191
+ },
67192
+ {
67193
+ name: "status",
67194
+ type: "u8"
67195
+ }
67196
+ ]
67197
+ }
67198
+ },
67199
+ {
67200
+ name: "CrossChainVaultRoute",
67201
+ docs: [
67202
+ "Per-vault BNB route owned directly by the Gamma program."
67203
+ ],
67204
+ type: {
67205
+ kind: "struct",
67206
+ fields: [
67207
+ {
67208
+ name: "lp_vault",
67209
+ type: "pubkey"
67210
+ },
67211
+ {
67212
+ name: "assets_mint",
67213
+ type: "pubkey"
67214
+ },
67215
+ {
67216
+ name: "shares_mint",
67217
+ type: "pubkey"
67218
+ },
67219
+ {
67220
+ name: "share_escrow",
67221
+ type: "pubkey"
67222
+ },
67223
+ {
67224
+ name: "bnb_usdc",
67225
+ type: {
67226
+ array: [
67227
+ "u8",
67228
+ 20
67229
+ ]
67230
+ }
67231
+ },
67232
+ {
67233
+ name: "bnb_usdt",
67234
+ type: {
67235
+ array: [
67236
+ "u8",
67237
+ 20
67238
+ ]
67239
+ }
67240
+ },
67241
+ {
67242
+ name: "deposits_enabled",
67243
+ type: "bool"
67244
+ },
67245
+ {
67246
+ name: "withdrawals_enabled",
67247
+ type: "bool"
67248
+ },
67249
+ {
67250
+ name: "escrowed_shares",
67251
+ docs: [
67252
+ "Native shares received from dePort but not yet consumed by a bound",
67253
+ "Gamma-withdrawal/DLN-return implementation."
67254
+ ],
67255
+ type: "u64"
67256
+ },
67257
+ {
67258
+ name: "bump",
67259
+ type: "u8"
67260
+ }
67261
+ ]
67262
+ }
67263
+ },
67264
+ {
67265
+ name: "CrossChainVaultRouteUpdated",
67266
+ type: {
67267
+ kind: "struct",
67268
+ fields: [
67269
+ {
67270
+ name: "route",
67271
+ type: "pubkey"
67272
+ },
67273
+ {
67274
+ name: "lp_vault",
67275
+ type: "pubkey"
67276
+ },
67277
+ {
67278
+ name: "deposits_enabled",
67279
+ type: "bool"
67280
+ },
67281
+ {
67282
+ name: "withdrawals_enabled",
67283
+ type: "bool"
67284
+ }
67285
+ ]
67286
+ }
67287
+ },
67288
+ {
67289
+ name: "CrossChainWithdrawalArgs",
67290
+ type: {
67291
+ kind: "struct",
67292
+ fields: [
67293
+ {
67294
+ name: "beneficiary",
67295
+ docs: [
67296
+ "Authenticated external-call payload and final BNB recipient."
67297
+ ],
67298
+ type: {
67299
+ array: [
67300
+ "u8",
67301
+ 20
67302
+ ]
67303
+ }
67304
+ },
67305
+ {
67306
+ name: "output_token",
67307
+ type: {
67308
+ array: [
67309
+ "u8",
67310
+ 20
67311
+ ]
67312
+ }
67313
+ },
67314
+ {
67315
+ name: "shares_amount",
67316
+ type: "u64"
67317
+ },
67318
+ {
67319
+ name: "min_vault_assets",
67320
+ docs: [
67321
+ "Minimum six-decimal native Solana vault assets after Gamma fees."
67322
+ ],
67323
+ type: "u64"
67324
+ },
67325
+ {
67326
+ name: "min_output_amount_raw",
67327
+ docs: [
67328
+ "Minimum final BNB output in 18-decimal raw units, fixed-width U256 BE."
67329
+ ],
67330
+ type: {
67331
+ array: [
67332
+ "u8",
67333
+ 32
67334
+ ]
67335
+ }
67336
+ },
67337
+ {
67338
+ name: "deadline",
67339
+ type: "i64"
67340
+ },
67341
+ {
67342
+ name: "nonce",
67343
+ type: "u64"
67344
+ }
67345
+ ]
67346
+ }
67347
+ },
67348
+ {
67349
+ name: "CrossChainWithdrawalEscrowed",
67350
+ type: {
67351
+ kind: "struct",
67352
+ fields: [
67353
+ {
67354
+ name: "intent",
67355
+ type: "pubkey"
67356
+ },
67357
+ {
67358
+ name: "replay_key",
67359
+ type: "pubkey"
67360
+ },
67361
+ {
67362
+ name: "lp_vault",
67363
+ type: "pubkey"
67364
+ },
67365
+ {
67366
+ name: "beneficiary",
67367
+ type: {
67368
+ array: [
67369
+ "u8",
67370
+ 20
67371
+ ]
67372
+ }
67373
+ },
67374
+ {
67375
+ name: "shares",
67376
+ type: "u64"
67377
+ },
67378
+ {
67379
+ name: "min_vault_assets",
67380
+ docs: [
67381
+ "Six-decimal native Solana vault-asset floor."
67382
+ ],
67383
+ type: "u64"
67384
+ },
67385
+ {
67386
+ name: "min_output_amount_raw",
67387
+ docs: [
67388
+ "Unsigned U256 big-endian final BNB USDC/USDT floor (18 decimals)."
67389
+ ],
67390
+ type: {
67391
+ array: [
67392
+ "u8",
67393
+ 32
67394
+ ]
67395
+ }
67396
+ },
67397
+ {
67398
+ name: "nonce",
67399
+ type: "u64"
67400
+ }
67401
+ ]
67402
+ }
67403
+ },
67404
+ {
67405
+ name: "DepositPolicy",
67406
+ docs: [
67407
+ "Per-vault deposit controls shared by every deposit source, including",
67408
+ "Solana-native users and cross-chain adapters.",
67409
+ "",
67410
+ "This is intentionally a separate PDA rather than a field on `LpVault` so",
67411
+ "existing vault accounts do not require a layout migration. Existing vaults",
67412
+ "fail closed after the program upgrade until their policy PDA is initialized",
67413
+ "by the fund authority."
67414
+ ],
67415
+ type: {
67416
+ kind: "struct",
67417
+ fields: [
67418
+ {
67419
+ name: "lp_vault",
67420
+ docs: [
67421
+ "Vault this policy belongs to."
67422
+ ],
67423
+ type: "pubkey"
67424
+ },
67425
+ {
67426
+ name: "capacity_assets",
67427
+ docs: [
67428
+ "Maximum post-deposit NAV in the vault asset's base units."
67429
+ ],
67430
+ type: "u64"
67431
+ },
67432
+ {
67433
+ name: "deposits_paused",
67434
+ docs: [
67435
+ "Emergency switch for deposits. Withdrawals do not consult this field."
67436
+ ],
67437
+ type: "bool"
67438
+ },
67439
+ {
67440
+ name: "bump",
67441
+ docs: [
67442
+ "PDA derivation bump."
67443
+ ],
67444
+ type: "u8"
67445
+ }
67446
+ ]
67447
+ }
67448
+ },
67449
+ {
67450
+ name: "DepositPolicyUpdated",
67451
+ type: {
67452
+ kind: "struct",
67453
+ fields: [
67454
+ {
67455
+ name: "vault",
67456
+ type: "pubkey"
67457
+ },
67458
+ {
67459
+ name: "old_capacity_assets",
67460
+ type: "u64"
67461
+ },
67462
+ {
67463
+ name: "new_capacity_assets",
67464
+ type: "u64"
67465
+ },
67466
+ {
67467
+ name: "old_deposits_paused",
67468
+ type: "bool"
67469
+ },
67470
+ {
67471
+ name: "new_deposits_paused",
67472
+ type: "bool"
67473
+ },
67474
+ {
67475
+ name: "timestamp",
67476
+ type: "i64"
67477
+ }
67478
+ ]
67479
+ }
67480
+ },
65479
67481
  {
65480
67482
  name: "DepositReceipt",
65481
67483
  type: {
@@ -66023,13 +68025,19 @@ var gamma_vault_default = {
66023
68025
  };
66024
68026
 
66025
68027
  // src/vendor/gamma/idl/index.ts
66026
- var GAMMA_VAULT_IDL = gamma_vault_default;
68028
+ var GAMMA_VAULT_IDL = gamma_idl_2_default;
66027
68029
  function deriveGammaWithdrawalPolicy(lpVault, programId = GAMMA_VAULT_PROGRAM_ID) {
66028
68030
  return web3_js.PublicKey.findProgramAddressSync(
66029
68031
  [Buffer.from(SEED_WITHDRAWAL_POLICY), lpVault.toBuffer()],
66030
68032
  programId
66031
68033
  );
66032
68034
  }
68035
+ function deriveGammaDepositPolicy(lpVault, programId = GAMMA_VAULT_PROGRAM_ID) {
68036
+ return web3_js.PublicKey.findProgramAddressSync(
68037
+ [Buffer.from(SEED_DEPOSIT_POLICY), lpVault.toBuffer()],
68038
+ programId
68039
+ );
68040
+ }
66033
68041
  function deriveGammaDepositReceipt(user, lpVault, programId = GAMMA_VAULT_PROGRAM_ID) {
66034
68042
  return web3_js.PublicKey.findProgramAddressSync(
66035
68043
  [Buffer.from(SEED_DEPOSIT_RECEIPT), user.toBuffer(), lpVault.toBuffer()],
@@ -66122,6 +68130,7 @@ function makeGammaDepositIx(accounts, amount) {
66122
68130
  meta(accounts.user, true, true),
66123
68131
  meta(accounts.lpVault, false, true),
66124
68132
  meta(accounts.withdrawalPolicy, false, true),
68133
+ meta(accounts.depositPolicy, false, false),
66125
68134
  meta(accounts.assetsAccount, false, true),
66126
68135
  meta(accounts.userAssetAta, false, true),
66127
68136
  meta(accounts.userShareAta, false, true),
@@ -74912,18 +76921,19 @@ var fetchSwbOracleData = async (banks, opts) => {
74912
76921
  }
74913
76922
  });
74914
76923
  let crossbarResponse;
74915
- let birdeyeResponse = {};
76924
+ let fallbackPricesByFeedId = {};
74916
76925
  if (opts.mode === "api") {
74917
76926
  crossbarResponse = await fetchSwbOraclePricesFromAPI(
74918
76927
  swbFeedIds,
74919
76928
  opts.swbCrossbarPrice.endpoint,
74920
76929
  { queryKey: opts.swbCrossbarPrice.queryKey }
74921
76930
  );
74922
- if (brokenSwbFeeds.length > 0 && opts.birdeyeFallback) {
74923
- birdeyeResponse = await getBirdeyeFallbackPricesByFeedId(
76931
+ const priceFallback = opts.priceFallback ?? opts.birdeyeFallback;
76932
+ if (brokenSwbFeeds.length > 0 && priceFallback) {
76933
+ fallbackPricesByFeedId = await getFallbackPricesByFeedId(
74924
76934
  brokenSwbFeeds,
74925
- opts.birdeyeFallback.endpoint,
74926
- { queryKey: opts.birdeyeFallback.queryKey }
76935
+ priceFallback.endpoint,
76936
+ { queryKey: priceFallback.queryKey }
74927
76937
  );
74928
76938
  }
74929
76939
  } else {
@@ -74932,7 +76942,7 @@ var fetchSwbOracleData = async (banks, opts) => {
74932
76942
  opts.crossbarEndpoint || "https://crossbar.0.xyz",
74933
76943
  "https://crossbar.switchboard.xyz"
74934
76944
  );
74935
- birdeyeResponse = {};
76945
+ fallbackPricesByFeedId = {};
74936
76946
  }
74937
76947
  const bankOraclePriceMap = mapSwbBanksToOraclePrices(
74938
76948
  switchboardBanks,
@@ -74942,7 +76952,7 @@ var fetchSwbOracleData = async (banks, opts) => {
74942
76952
  const brokenFeedOraclePriceMap = mapBrokenFeedsToOraclePrices(
74943
76953
  switchboardBanks,
74944
76954
  swbOracleAiDataByKey,
74945
- birdeyeResponse
76955
+ fallbackPricesByFeedId
74946
76956
  );
74947
76957
  const combinedOraclePriceMap = /* @__PURE__ */ new Map();
74948
76958
  bankOraclePriceMap.forEach((oraclePrice, bankAddress) => {
@@ -76734,6 +78744,7 @@ async function makeVaultDepositIx(params) {
76734
78744
  const vault = await fetchGammaLpVault(connection, lpVault);
76735
78745
  const tokenProgram = params.tokenProgram ?? await resolveVaultTokenProgram(connection, vault.assetsMint);
76736
78746
  const [withdrawalPolicy] = deriveGammaWithdrawalPolicy(lpVault);
78747
+ const [depositPolicy] = deriveGammaDepositPolicy(lpVault);
76737
78748
  const [depositReceipt] = deriveGammaDepositReceipt(user, lpVault);
76738
78749
  const userAssetAta = deriveGammaAta(vault.assetsMint, user, tokenProgram);
76739
78750
  const userShareAta = deriveGammaAta(vault.sharesMint, user, tokenProgram);
@@ -76751,6 +78762,7 @@ async function makeVaultDepositIx(params) {
76751
78762
  user,
76752
78763
  lpVault,
76753
78764
  withdrawalPolicy,
78765
+ depositPolicy,
76754
78766
  assetsAccount: vault.assetsAccount,
76755
78767
  userAssetAta,
76756
78768
  userShareAta,
@@ -76805,6 +78817,7 @@ async function makeVaultDepositWithSwapTx(params) {
76805
78817
  const tokenProgram = params.tokenProgram ?? (mintInfo.owner.equals(TOKEN_2022_PROGRAM_ID) ? TOKEN_2022_PROGRAM_ID : TOKEN_PROGRAM_ID);
76806
78818
  const assetDecimals = mintInfo.data[44];
76807
78819
  const [withdrawalPolicy] = deriveGammaWithdrawalPolicy(lpVault);
78820
+ const [depositPolicy] = deriveGammaDepositPolicy(lpVault);
76808
78821
  const [depositReceipt] = deriveGammaDepositReceipt(user, lpVault);
76809
78822
  const userAssetAta = deriveGammaAta(vault.assetsMint, user, tokenProgram);
76810
78823
  const userShareAta = deriveGammaAta(vault.sharesMint, user, tokenProgram);
@@ -76819,6 +78832,7 @@ async function makeVaultDepositWithSwapTx(params) {
76819
78832
  user,
76820
78833
  lpVault,
76821
78834
  withdrawalPolicy,
78835
+ depositPolicy,
76822
78836
  assetsAccount: vault.assetsAccount,
76823
78837
  userAssetAta,
76824
78838
  userShareAta,
@@ -79075,6 +81089,8 @@ exports.getDriftMetadata = getDriftMetadata;
79075
81089
  exports.getDriftStatesDto = getDriftStatesDto;
79076
81090
  exports.getEmodePairs = getEmodePairs;
79077
81091
  exports.getExactOutEstimate = getExactOutEstimate;
81092
+ exports.getFallbackPricesByFeedId = getFallbackPricesByFeedId;
81093
+ exports.getFallbackPricesForMints = getFallbackPricesForMints;
79078
81094
  exports.getHealthCacheStatusDescription = getHealthCacheStatusDescription;
79079
81095
  exports.getHealthSimulationTransactions = getHealthSimulationTransactions;
79080
81096
  exports.getJupLendFTokenMultiplier = getJupLendFTokenMultiplier;