@0dotxyz/p0-ts-sdk 1.1.0-alpha.3 → 1.1.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -102,7 +102,6 @@ type Marginfi = {
102
102
  {
103
103
  name: "authority";
104
104
  signer: true;
105
- relations: ["marginfiAccount"];
106
105
  },
107
106
  {
108
107
  name: "bank";
@@ -166,19 +165,19 @@ type Marginfi = {
166
165
  docs: ["The Drift state account"];
167
166
  },
168
167
  {
169
- name: "driftUser";
168
+ name: "integrationAcc2";
170
169
  docs: ["The Drift user account owned by liquidity_vault_authority"];
171
170
  writable: true;
172
171
  relations: ["bank"];
173
172
  },
174
173
  {
175
- name: "driftUserStats";
174
+ name: "integrationAcc3";
176
175
  docs: ["The Drift user stats account owned by liquidity_vault_authority"];
177
176
  writable: true;
178
177
  relations: ["bank"];
179
178
  },
180
179
  {
181
- name: "driftSpotMarket";
180
+ name: "integrationAcc1";
182
181
  docs: ["The Drift spot market for this asset"];
183
182
  writable: true;
184
183
  relations: ["bank"];
@@ -396,19 +395,19 @@ type Marginfi = {
396
395
  docs: ["Drift accounts"];
397
396
  },
398
397
  {
399
- name: "driftUser";
398
+ name: "integrationAcc2";
400
399
  writable: true;
401
400
  relations: ["bank"];
402
401
  },
403
402
  {
404
- name: "driftUserStats";
403
+ name: "integrationAcc3";
405
404
  writable: true;
406
405
  relations: ["bank"];
407
406
  },
408
407
  {
409
408
  name: "harvestDriftSpotMarket";
410
409
  docs: [
411
- "The harvest spot market - MUST be different from bank's drift_spot_market",
410
+ "The harvest spot market - MUST be different from bank's Drift spot market (integration_acc_1)",
412
411
  "This is the market that contains admin deposits to harvest"
413
412
  ];
414
413
  writable: true;
@@ -514,7 +513,7 @@ type Marginfi = {
514
513
  relations: ["bank"];
515
514
  },
516
515
  {
517
- name: "driftUserStats";
516
+ name: "integrationAcc3";
518
517
  docs: ["The user stats account to be created"];
519
518
  writable: true;
520
519
  pda: {
@@ -569,7 +568,7 @@ type Marginfi = {
569
568
  relations: ["bank"];
570
569
  },
571
570
  {
572
- name: "driftUser";
571
+ name: "integrationAcc2";
573
572
  docs: ["The user account to be created (sub_account_id = 0)"];
574
573
  writable: true;
575
574
  pda: {
@@ -632,7 +631,7 @@ type Marginfi = {
632
631
  writable: true;
633
632
  },
634
633
  {
635
- name: "driftSpotMarket";
634
+ name: "integrationAcc1";
636
635
  writable: true;
637
636
  relations: ["bank"];
638
637
  },
@@ -753,19 +752,19 @@ type Marginfi = {
753
752
  docs: ["The Drift state account"];
754
753
  },
755
754
  {
756
- name: "driftUser";
755
+ name: "integrationAcc2";
757
756
  docs: ["The Drift user account owned by liquidity_vault_authority"];
758
757
  writable: true;
759
758
  relations: ["bank"];
760
759
  },
761
760
  {
762
- name: "driftUserStats";
761
+ name: "integrationAcc3";
763
762
  docs: ["The Drift user stats account owned by liquidity_vault_authority"];
764
763
  writable: true;
765
764
  relations: ["bank"];
766
765
  },
767
766
  {
768
- name: "driftSpotMarket";
767
+ name: "integrationAcc1";
769
768
  docs: ["The Drift spot market for this asset"];
770
769
  writable: true;
771
770
  relations: ["bank"];
@@ -1192,7 +1191,6 @@ type Marginfi = {
1192
1191
  {
1193
1192
  name: "authority";
1194
1193
  signer: true;
1195
- relations: ["marginfiAccount"];
1196
1194
  },
1197
1195
  {
1198
1196
  name: "bank";
@@ -1251,7 +1249,7 @@ type Marginfi = {
1251
1249
  relations: ["bank"];
1252
1250
  },
1253
1251
  {
1254
- name: "kaminoObligation";
1252
+ name: "integrationAcc2";
1255
1253
  writable: true;
1256
1254
  relations: ["bank"];
1257
1255
  },
@@ -1262,7 +1260,7 @@ type Marginfi = {
1262
1260
  name: "lendingMarketAuthority";
1263
1261
  },
1264
1262
  {
1265
- name: "kaminoReserve";
1263
+ name: "integrationAcc1";
1266
1264
  docs: ["The Kamino reserve that holds liquidity"];
1267
1265
  writable: true;
1268
1266
  relations: ["bank"];
@@ -1581,7 +1579,7 @@ type Marginfi = {
1581
1579
  relations: ["bank"];
1582
1580
  },
1583
1581
  {
1584
- name: "kaminoObligation";
1582
+ name: "integrationAcc2";
1585
1583
  docs: [
1586
1584
  "The obligation account to be created. Note that the key was already derived when",
1587
1585
  "initializing the bank, and this must match the obligation recorded at that time."
@@ -1600,7 +1598,7 @@ type Marginfi = {
1600
1598
  name: "lendingMarketAuthority";
1601
1599
  },
1602
1600
  {
1603
- name: "kaminoReserve";
1601
+ name: "integrationAcc1";
1604
1602
  writable: true;
1605
1603
  relations: ["bank"];
1606
1604
  },
@@ -1786,7 +1784,7 @@ type Marginfi = {
1786
1784
  relations: ["bank"];
1787
1785
  },
1788
1786
  {
1789
- name: "kaminoObligation";
1787
+ name: "integrationAcc2";
1790
1788
  writable: true;
1791
1789
  relations: ["bank"];
1792
1790
  },
@@ -1799,7 +1797,7 @@ type Marginfi = {
1799
1797
  docs: ["The Kamino lending market authority"];
1800
1798
  },
1801
1799
  {
1802
- name: "kaminoReserve";
1800
+ name: "integrationAcc1";
1803
1801
  docs: ["The Kamino reserve that holds liquidity"];
1804
1802
  writable: true;
1805
1803
  relations: ["bank"];
@@ -1890,7 +1888,6 @@ type Marginfi = {
1890
1888
  {
1891
1889
  name: "authority";
1892
1890
  signer: true;
1893
- relations: ["marginfiAccount"];
1894
1891
  },
1895
1892
  {
1896
1893
  name: "bank";
@@ -1967,7 +1964,6 @@ type Marginfi = {
1967
1964
  {
1968
1965
  name: "authority";
1969
1966
  signer: true;
1970
- relations: ["marginfiAccount"];
1971
1967
  },
1972
1968
  {
1973
1969
  name: "bank";
@@ -1991,7 +1987,6 @@ type Marginfi = {
1991
1987
  {
1992
1988
  name: "authority";
1993
1989
  signer: true;
1994
- relations: ["marginfiAccount"];
1995
1990
  },
1996
1991
  {
1997
1992
  name: "bank";
@@ -2068,7 +2063,6 @@ type Marginfi = {
2068
2063
  {
2069
2064
  name: "authority";
2070
2065
  signer: true;
2071
- relations: ["liquidatorMarginfiAccount"];
2072
2066
  },
2073
2067
  {
2074
2068
  name: "liquidateeMarginfiAccount";
@@ -2375,7 +2369,6 @@ type Marginfi = {
2375
2369
  {
2376
2370
  name: "authority";
2377
2371
  signer: true;
2378
- relations: ["marginfiAccount"];
2379
2372
  },
2380
2373
  {
2381
2374
  name: "bank";
@@ -2837,7 +2830,7 @@ type Marginfi = {
2837
2830
  },
2838
2831
  {
2839
2832
  name: "bankMint";
2840
- docs: ["Must match the mint used by `drift_spot_market`"];
2833
+ docs: ["Must match the mint used by `integration_acc_1`"];
2841
2834
  },
2842
2835
  {
2843
2836
  name: "bank";
@@ -2860,11 +2853,11 @@ type Marginfi = {
2860
2853
  };
2861
2854
  },
2862
2855
  {
2863
- name: "driftSpotMarket";
2856
+ name: "integrationAcc1";
2864
2857
  docs: ["Drift spot market account that must match the bank mint"];
2865
2858
  },
2866
2859
  {
2867
- name: "driftUser";
2860
+ name: "integrationAcc2";
2868
2861
  docs: [
2869
2862
  "Drift user account for the marginfi program (derived from liquidity_vault_authority)"
2870
2863
  ];
@@ -2923,7 +2916,7 @@ type Marginfi = {
2923
2916
  };
2924
2917
  },
2925
2918
  {
2926
- name: "driftUserStats";
2919
+ name: "integrationAcc3";
2927
2920
  docs: [
2928
2921
  "Drift user stats account for the marginfi program (derived from liquidity_vault_authority)"
2929
2922
  ];
@@ -3172,8 +3165,8 @@ type Marginfi = {
3172
3165
  {
3173
3166
  name: "bankMint";
3174
3167
  docs: [
3175
- "Must match the mint used by `kamino_reserve`, Kamino calls this the `reserve_liquidity_mint`",
3176
- "aka `liquidity.mint_pubkey`"
3168
+ "Must match the mint used by the Kamino reserve (integration_acc_1), Kamino calls this the",
3169
+ "`reserve_liquidity_mint` aka `liquidity.mint_pubkey`"
3177
3170
  ];
3178
3171
  },
3179
3172
  {
@@ -3197,16 +3190,18 @@ type Marginfi = {
3197
3190
  };
3198
3191
  },
3199
3192
  {
3200
- name: "kaminoReserve";
3193
+ name: "integrationAcc1";
3201
3194
  },
3202
3195
  {
3203
- name: "kaminoObligation";
3196
+ name: "integrationAcc2";
3204
3197
  docs: ["Note: not yet initialized in this instruction, run `init_obligation` after."];
3205
3198
  },
3206
3199
  {
3207
3200
  name: "liquidityVaultAuthority";
3208
3201
  docs: [
3209
- "Will be authority of the bank's `kamino_obligation`. Note: When depositing/withdrawing",
3202
+ "Will be authority of the bank's Kamino obligation (integration_acc_2). Note: When",
3203
+ "depositing/withdrawing Kamino assets, the source/destination must also be owned by the",
3204
+ "obligation authority.",
3210
3205
  "Kamino assets, the source/destination must also be owned by the obligation authority. This",
3211
3206
  "account owns the `liquidity_vault`, and thus acts as intermediary for deposits/withdraws"
3212
3207
  ];
@@ -3605,7 +3600,7 @@ type Marginfi = {
3605
3600
  {
3606
3601
  name: "bankMint";
3607
3602
  docs: [
3608
- "Must match the mint used by `solend_reserve`, Solend calls this the `liquidity.mint_pubkey`"
3603
+ "Must match the mint used by `integration_acc_1`, Solend calls this the `liquidity.mint_pubkey`"
3609
3604
  ];
3610
3605
  },
3611
3606
  {
@@ -3629,11 +3624,11 @@ type Marginfi = {
3629
3624
  };
3630
3625
  },
3631
3626
  {
3632
- name: "solendReserve";
3627
+ name: "integrationAcc1";
3633
3628
  docs: ["Solend reserve account that must match the bank mint"];
3634
3629
  },
3635
3630
  {
3636
- name: "solendObligation";
3631
+ name: "integrationAcc2";
3637
3632
  docs: [
3638
3633
  "Obligation PDA for this bank in Solend",
3639
3634
  "Will be initialized and transferred to Solend in init_obligation instruction"
@@ -5398,6 +5393,30 @@ type Marginfi = {
5398
5393
  }
5399
5394
  ];
5400
5395
  },
5396
+ {
5397
+ name: "marginfiAccountSetFreeze";
5398
+ discriminator: [199, 179, 231, 30, 138, 247, 110, 227];
5399
+ accounts: [
5400
+ {
5401
+ name: "group";
5402
+ relations: ["marginfiAccount"];
5403
+ },
5404
+ {
5405
+ name: "marginfiAccount";
5406
+ writable: true;
5407
+ },
5408
+ {
5409
+ name: "admin";
5410
+ signer: true;
5411
+ }
5412
+ ];
5413
+ args: [
5414
+ {
5415
+ name: "frozen";
5416
+ type: "bool";
5417
+ }
5418
+ ];
5419
+ },
5401
5420
  {
5402
5421
  name: "marginfiAccountUpdateEmissionsDestinationAccount";
5403
5422
  discriminator: [73, 185, 162, 201, 111, 24, 116, 185];
@@ -5461,10 +5480,6 @@ type Marginfi = {
5461
5480
  name: "newRiskAdmin";
5462
5481
  type: "pubkey";
5463
5482
  },
5464
- {
5465
- name: "isArenaGroup";
5466
- type: "bool";
5467
- },
5468
5483
  {
5469
5484
  name: "emodeMaxInitLeverage";
5470
5485
  type: {
@@ -5517,12 +5532,7 @@ type Marginfi = {
5517
5532
  address: "11111111111111111111111111111111";
5518
5533
  }
5519
5534
  ];
5520
- args: [
5521
- {
5522
- name: "isArenaGroup";
5523
- type: "bool";
5524
- }
5525
- ];
5535
+ args: [];
5526
5536
  },
5527
5537
  {
5528
5538
  name: "migrateCurve";
@@ -5702,7 +5712,6 @@ type Marginfi = {
5702
5712
  {
5703
5713
  name: "authority";
5704
5714
  signer: true;
5705
- relations: ["marginfiAccount"];
5706
5715
  },
5707
5716
  {
5708
5717
  name: "bank";
@@ -5757,7 +5766,7 @@ type Marginfi = {
5757
5766
  relations: ["bank"];
5758
5767
  },
5759
5768
  {
5760
- name: "solendObligation";
5769
+ name: "integrationAcc2";
5761
5770
  docs: ["The Solend obligation account"];
5762
5771
  writable: true;
5763
5772
  relations: ["bank"];
@@ -5770,7 +5779,7 @@ type Marginfi = {
5770
5779
  docs: ["Derived from the lending market"];
5771
5780
  },
5772
5781
  {
5773
- name: "solendReserve";
5782
+ name: "integrationAcc1";
5774
5783
  docs: ["The Solend reserve that holds liquidity"];
5775
5784
  writable: true;
5776
5785
  relations: ["bank"];
@@ -5900,7 +5909,7 @@ type Marginfi = {
5900
5909
  relations: ["bank"];
5901
5910
  },
5902
5911
  {
5903
- name: "solendObligation";
5912
+ name: "integrationAcc2";
5904
5913
  writable: true;
5905
5914
  pda: {
5906
5915
  seeds: [
@@ -5942,7 +5951,7 @@ type Marginfi = {
5942
5951
  docs: ["Derived from the lending market"];
5943
5952
  },
5944
5953
  {
5945
- name: "solendReserve";
5954
+ name: "integrationAcc1";
5946
5955
  writable: true;
5947
5956
  relations: ["bank"];
5948
5957
  },
@@ -6078,7 +6087,7 @@ type Marginfi = {
6078
6087
  relations: ["bank"];
6079
6088
  },
6080
6089
  {
6081
- name: "solendObligation";
6090
+ name: "integrationAcc2";
6082
6091
  docs: ["The Solend obligation account"];
6083
6092
  writable: true;
6084
6093
  relations: ["bank"];
@@ -6092,7 +6101,7 @@ type Marginfi = {
6092
6101
  docs: ["Derived from the lending market"];
6093
6102
  },
6094
6103
  {
6095
- name: "solendReserve";
6104
+ name: "integrationAcc1";
6096
6105
  docs: ["The Solend reserve that holds liquidity"];
6097
6106
  writable: true;
6098
6107
  relations: ["bank"];
@@ -6231,7 +6240,6 @@ type Marginfi = {
6231
6240
  {
6232
6241
  name: "authority";
6233
6242
  signer: true;
6234
- relations: ["oldMarginfiAccount"];
6235
6243
  },
6236
6244
  {
6237
6245
  name: "feePayer";
@@ -6305,7 +6313,6 @@ type Marginfi = {
6305
6313
  {
6306
6314
  name: "authority";
6307
6315
  signer: true;
6308
- relations: ["oldMarginfiAccount"];
6309
6316
  },
6310
6317
  {
6311
6318
  name: "feePayer";
@@ -6508,6 +6515,10 @@ type Marginfi = {
6508
6515
  name: "marginfiAccountCreateEvent";
6509
6516
  discriminator: [183, 5, 117, 104, 122, 199, 68, 51];
6510
6517
  },
6518
+ {
6519
+ name: "marginfiAccountFreezeEvent";
6520
+ discriminator: [219, 219, 57, 178, 75, 86, 146, 122];
6521
+ },
6511
6522
  {
6512
6523
  name: "marginfiAccountTransferToNewAccount";
6513
6524
  discriminator: [59, 105, 171, 110, 223, 136, 80, 89];
@@ -6889,13 +6900,13 @@ type Marginfi = {
6889
6900
  },
6890
6901
  {
6891
6902
  code: 6073;
6892
- name: "arenaBankLimit";
6893
- msg: "Arena groups can only support two banks";
6903
+ name: "vacated0";
6904
+ msg: "vacated0";
6894
6905
  },
6895
6906
  {
6896
6907
  code: 6074;
6897
- name: "arenaSettingCannotChange";
6898
- msg: "Arena groups cannot return to non-arena status";
6908
+ name: "vacated1";
6909
+ msg: "vacated1";
6899
6910
  },
6900
6911
  {
6901
6912
  code: 6075;
@@ -7037,6 +7048,11 @@ type Marginfi = {
7037
7048
  name: "zeroWithdrawalLimit";
7038
7049
  msg: "Cannot set daily withdrawal limit to zero";
7039
7050
  },
7051
+ {
7052
+ code: 6103;
7053
+ name: "accountFrozen";
7054
+ msg: "Account is frozen by the group admin";
7055
+ },
7040
7056
  {
7041
7057
  code: 6200;
7042
7058
  name: "wrongAssetTagForStandardInstructions";
@@ -7691,38 +7707,31 @@ type Marginfi = {
7691
7707
  };
7692
7708
  },
7693
7709
  {
7694
- name: "kaminoReserve";
7695
- docs: ["Kamino banks only, otherwise Pubkey default"];
7696
- type: "pubkey";
7697
- },
7698
- {
7699
- name: "kaminoObligation";
7700
- docs: ["Kamino banks only, otherwise Pubkey default"];
7701
- type: "pubkey";
7702
- },
7703
- {
7704
- name: "driftSpotMarket";
7705
- docs: ["Drift banks only, otherwise Pubkey default"];
7706
- type: "pubkey";
7707
- },
7708
- {
7709
- name: "driftUser";
7710
- docs: ["Drift banks only, otherwise Pubkey default"];
7711
- type: "pubkey";
7712
- },
7713
- {
7714
- name: "driftUserStats";
7715
- docs: ["Drift banks only, otherwise Pubkey default"];
7710
+ name: "integrationAcc1";
7711
+ docs: [
7712
+ "Integration account slot 1 (default Pubkey for non-integrations).",
7713
+ "- Kamino: reserve",
7714
+ "- Drift: spot market",
7715
+ "- Solend: reserve"
7716
+ ];
7716
7717
  type: "pubkey";
7717
7718
  },
7718
7719
  {
7719
- name: "solendReserve";
7720
- docs: ["Solend banks only, otherwise Pubkey default"];
7720
+ name: "integrationAcc2";
7721
+ docs: [
7722
+ "Integration account slot 2 (default Pubkey for non-integrations).",
7723
+ "- Kamino: obligation",
7724
+ "- Drift: user",
7725
+ "- Solend: obligation"
7726
+ ];
7721
7727
  type: "pubkey";
7722
7728
  },
7723
7729
  {
7724
- name: "solendObligation";
7725
- docs: ["Solend banks only, otherwise Pubkey default"];
7730
+ name: "integrationAcc3";
7731
+ docs: [
7732
+ "Integration account slot 3 (default Pubkey for non-integrations).",
7733
+ "- Drift: user stats"
7734
+ ];
7726
7735
  type: "pubkey";
7727
7736
  },
7728
7737
  {
@@ -7732,7 +7741,7 @@ type Marginfi = {
7732
7741
  {
7733
7742
  array: ["u64", 2];
7734
7743
  },
7735
- 5
7744
+ 13
7736
7745
  ];
7737
7746
  };
7738
7747
  }
@@ -10217,7 +10226,9 @@ type Marginfi = {
10217
10226
  "- 16: `ACCOUNT_IN_RECEIVERSHIP` - the account is eligible to be liquidated and has entered",
10218
10227
  "receivership, a liquidator is able to control borrows and withdraws until the end of the",
10219
10228
  "tx. This flag will only appear within a tx.",
10220
- "- 32: `ACCOUNT_IN_DELEVERAGE - the account is being deleveraged by the risk admin"
10229
+ "- 32: `ACCOUNT_IN_DELEVERAGE - the account is being deleveraged by the risk admin",
10230
+ "- 64: `ACCOUNT_FROZEN` - the admin has frozen the account; only the group admin may perform",
10231
+ "actions until unfrozen."
10221
10232
  ];
10222
10233
  type: "u64";
10223
10234
  },
@@ -10325,6 +10336,26 @@ type Marginfi = {
10325
10336
  ];
10326
10337
  };
10327
10338
  },
10339
+ {
10340
+ name: "marginfiAccountFreezeEvent";
10341
+ type: {
10342
+ kind: "struct";
10343
+ fields: [
10344
+ {
10345
+ name: "header";
10346
+ type: {
10347
+ defined: {
10348
+ name: "accountEventHeader";
10349
+ };
10350
+ };
10351
+ },
10352
+ {
10353
+ name: "frozen";
10354
+ type: "bool";
10355
+ }
10356
+ ];
10357
+ };
10358
+ },
10328
10359
  {
10329
10360
  name: "marginfiAccountTransferToNewAccount";
10330
10361
  type: {
@@ -10372,8 +10403,8 @@ type Marginfi = {
10372
10403
  docs: [
10373
10404
  "Bitmask for group settings flags.",
10374
10405
  "* 0: `PROGRAM_FEES_ENABLED` If set, program-level fees are enabled.",
10375
- "* 1: `ARENA_GROUP` If set, this is an arena group, which can only have two banks",
10376
- "* Bits 2-63: Reserved for future use."
10406
+ "* 1: `ARENA_GROUP` Deprecated, available for future use.",
10407
+ "* Bits 1-63: Reserved for future use."
10377
10408
  ];
10378
10409
  type: "u64";
10379
10410
  },
@@ -12204,13 +12235,25 @@ interface BankRaw {
12204
12235
  emissionsRate: BN;
12205
12236
  emissionsRemaining: WrappedI80F48;
12206
12237
  emissionsMint: PublicKey;
12207
- kaminoReserve: PublicKey;
12208
- kaminoObligation: PublicKey;
12209
- driftSpotMarket: PublicKey;
12210
- driftUser: PublicKey;
12211
- driftUserStats: PublicKey;
12212
- solendReserve: PublicKey;
12213
- solendObligation: PublicKey;
12238
+ /**
12239
+ * Integration account slot 1 (default Pubkey for non-integrations).
12240
+ * - Kamino: reserve
12241
+ * - Drift: spot market
12242
+ * - Solend: reserve
12243
+ */
12244
+ integrationAcc1: PublicKey;
12245
+ /**
12246
+ * Integration account slot 2 (default Pubkey for non-integrations).
12247
+ * - Kamino: obligation
12248
+ * - Drift: user
12249
+ * - Solend: obligation
12250
+ */
12251
+ integrationAcc2: PublicKey;
12252
+ /**
12253
+ * Integration account slot 3 (default Pubkey for non-integrations).
12254
+ * - Drift: user stats
12255
+ */
12256
+ integrationAcc3: PublicKey;
12214
12257
  emode: EmodeSettingsRaw;
12215
12258
  feesDestinationAccount?: PublicKey;
12216
12259
  cache?: BankCacheRaw;
@@ -12489,13 +12532,19 @@ interface BankType {
12489
12532
  feesDestinationAccount?: PublicKey;
12490
12533
  lendingPositionCount?: BigNumber$1;
12491
12534
  borrowingPositionCount?: BigNumber$1;
12492
- kaminoReserve: PublicKey;
12493
- kaminoObligation: PublicKey;
12494
- driftSpotMarket: PublicKey;
12495
- driftUser: PublicKey;
12496
- driftUserStats: PublicKey;
12497
- solendReserve: PublicKey;
12498
- solendObligation: PublicKey;
12535
+ kaminoIntegrationAccounts?: {
12536
+ kaminoReserve: PublicKey;
12537
+ kaminoObligation: PublicKey;
12538
+ };
12539
+ driftIntegrationAccounts?: {
12540
+ driftSpotMarket: PublicKey;
12541
+ driftUser: PublicKey;
12542
+ driftUserStats: PublicKey;
12543
+ };
12544
+ solendIntegrationAccounts?: {
12545
+ solendReserve: PublicKey;
12546
+ solendObligation: PublicKey;
12547
+ };
12499
12548
  }
12500
12549
  /**
12501
12550
  * Bitwise flags for EMode entry
@@ -12679,13 +12728,19 @@ interface BankTypeDto {
12679
12728
  feesDestinationAccount?: string;
12680
12729
  lendingPositionCount?: string;
12681
12730
  borrowingPositionCount?: string;
12682
- kaminoReserve: string;
12683
- kaminoObligation: string;
12684
- driftSpotMarket: string;
12685
- driftUser: string;
12686
- driftUserStats: string;
12687
- solendReserve: string;
12688
- solendObligation: string;
12731
+ kaminoIntegrationAccounts?: {
12732
+ kaminoReserve: string;
12733
+ kaminoObligation: string;
12734
+ };
12735
+ driftIntegrationAccounts?: {
12736
+ driftSpotMarket: string;
12737
+ driftUser: string;
12738
+ driftUserStats: string;
12739
+ };
12740
+ solendIntegrationAccounts?: {
12741
+ solendReserve: string;
12742
+ solendObligation: string;
12743
+ };
12689
12744
  }
12690
12745
  interface BankRawDto {
12691
12746
  group: string;
@@ -12708,13 +12763,9 @@ interface BankRawDto {
12708
12763
  config: BankConfigRawDto;
12709
12764
  totalLiabilityShares: WrappedI80F48;
12710
12765
  totalAssetShares: WrappedI80F48;
12711
- kaminoReserve: string;
12712
- kaminoObligation: string;
12713
- driftSpotMarket: string;
12714
- driftUser: string;
12715
- driftUserStats: string;
12716
- solendReserve: string;
12717
- solendObligation: string;
12766
+ integrationAcc1: string;
12767
+ integrationAcc2: string;
12768
+ integrationAcc3: string;
12718
12769
  flags: string;
12719
12770
  emissionsRate: string;
12720
12771
  emissionsRemaining: WrappedI80F48;
@@ -14743,18 +14794,34 @@ declare class Bank implements BankType {
14743
14794
  readonly emissionsRemaining: BigNumber$1;
14744
14795
  readonly oracleKey: PublicKey;
14745
14796
  readonly emode: EmodeSettings;
14746
- readonly kaminoReserve: PublicKey;
14747
- readonly kaminoObligation: PublicKey;
14748
- readonly driftSpotMarket: PublicKey;
14749
- readonly driftUser: PublicKey;
14750
- readonly driftUserStats: PublicKey;
14751
- readonly solendReserve: PublicKey;
14752
- readonly solendObligation: PublicKey;
14797
+ readonly kaminoIntegrationAccounts?: {
14798
+ kaminoReserve: PublicKey;
14799
+ kaminoObligation: PublicKey;
14800
+ } | undefined;
14801
+ readonly driftIntegrationAccounts?: {
14802
+ driftSpotMarket: PublicKey;
14803
+ driftUser: PublicKey;
14804
+ driftUserStats: PublicKey;
14805
+ } | undefined;
14806
+ readonly solendIntegrationAccounts?: {
14807
+ solendReserve: PublicKey;
14808
+ solendObligation: PublicKey;
14809
+ } | undefined;
14753
14810
  readonly feesDestinationAccount?: PublicKey | undefined;
14754
14811
  readonly lendingPositionCount?: BigNumber$1 | undefined;
14755
14812
  readonly borrowingPositionCount?: BigNumber$1 | undefined;
14756
14813
  readonly tokenSymbol?: string | undefined;
14757
- constructor(address: PublicKey, mint: PublicKey, mintDecimals: number, group: PublicKey, mintRate: number | null, mintPrice: number, assetShareValue: BigNumber$1, liabilityShareValue: BigNumber$1, liquidityVault: PublicKey, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: PublicKey, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber$1, feeVault: PublicKey, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber$1, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber$1, totalLiabilityShares: BigNumber$1, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: PublicKey, emissionsRemaining: BigNumber$1, oracleKey: PublicKey, emode: EmodeSettings, kaminoReserve: PublicKey, kaminoObligation: PublicKey, driftSpotMarket: PublicKey, driftUser: PublicKey, driftUserStats: PublicKey, solendReserve: PublicKey, solendObligation: PublicKey, feesDestinationAccount?: PublicKey | undefined, lendingPositionCount?: BigNumber$1 | undefined, borrowingPositionCount?: BigNumber$1 | undefined, tokenSymbol?: string | undefined);
14814
+ constructor(address: PublicKey, mint: PublicKey, mintDecimals: number, group: PublicKey, mintRate: number | null, mintPrice: number, assetShareValue: BigNumber$1, liabilityShareValue: BigNumber$1, liquidityVault: PublicKey, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: PublicKey, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber$1, feeVault: PublicKey, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber$1, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber$1, totalLiabilityShares: BigNumber$1, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: PublicKey, emissionsRemaining: BigNumber$1, oracleKey: PublicKey, emode: EmodeSettings, kaminoIntegrationAccounts?: {
14815
+ kaminoReserve: PublicKey;
14816
+ kaminoObligation: PublicKey;
14817
+ } | undefined, driftIntegrationAccounts?: {
14818
+ driftSpotMarket: PublicKey;
14819
+ driftUser: PublicKey;
14820
+ driftUserStats: PublicKey;
14821
+ } | undefined, solendIntegrationAccounts?: {
14822
+ solendReserve: PublicKey;
14823
+ solendObligation: PublicKey;
14824
+ } | undefined, feesDestinationAccount?: PublicKey | undefined, lendingPositionCount?: BigNumber$1 | undefined, borrowingPositionCount?: BigNumber$1 | undefined, tokenSymbol?: string | undefined);
14758
14825
  static fetch(address: PublicKey, program: MarginfiProgram, bankMetadata?: BankMetadata$1): Promise<Bank>;
14759
14826
  static decodeBankRaw(encoded: Buffer, idl: MarginfiIdlType): BankRaw;
14760
14827
  static fromBuffer(bankPk: PublicKey, rawData: Buffer, idl: MarginfiIdlType): Bank;