@0dotxyz/p0-ts-sdk 1.1.0-alpha.1 → 1.1.0-alpha.11
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 +15899 -4579
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +204 -129
- package/dist/index.d.ts +204 -129
- package/dist/index.js +15897 -4579
- package/dist/index.js.map +1 -1
- package/dist/{rewards.types-CaEoVXqe.d.cts → rewards.types-C0f0ZwWk.d.cts} +3 -1
- package/dist/{rewards.types-CaEoVXqe.d.ts → rewards.types-C0f0ZwWk.d.ts} +3 -1
- package/dist/vendor.cjs +100 -2626
- package/dist/vendor.cjs.map +1 -1
- package/dist/vendor.d.cts +48 -20
- package/dist/vendor.d.ts +48 -20
- package/dist/vendor.js +86 -2613
- package/dist/vendor.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { VersionedTransaction, Transaction, PublicKey, TransactionError, Transac
|
|
|
5
5
|
import { Idl, Instruction, AnchorProvider, Address, Program as Program$1 } from '@coral-xyz/anchor';
|
|
6
6
|
import BigNumber$1 from 'bignumber.js';
|
|
7
7
|
import BN from 'bn.js';
|
|
8
|
-
import { F as FeedResponse, R as ReserveRaw, D as DriftSpotMarket, a as DriftRewards, O as ObligationRaw, b as FarmStateRaw, c as DriftUser, d as DriftUserStats, e as ReserveJSON, f as ObligationJSON, g as FarmStateJSON, h as DriftSpotMarketJSON, i as DriftUserJSON, j as DriftUserStatsJSON } from './rewards.types-
|
|
8
|
+
import { F as FeedResponse, R as ReserveRaw, D as DriftSpotMarket, a as DriftRewards, O as ObligationRaw, b as FarmStateRaw, c as DriftUser, d as DriftUserStats, e as ReserveJSON, f as ObligationJSON, g as FarmStateJSON, h as DriftSpotMarketJSON, i as DriftUserJSON, j as DriftRewardsJSON, k as DriftUserStatsJSON } from './rewards.types-C0f0ZwWk.js';
|
|
9
9
|
import { QuoteGetRequest, QuoteResponse } from '@jup-ag/api';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
398
|
+
name: "integrationAcc2";
|
|
400
399
|
writable: true;
|
|
401
400
|
relations: ["bank"];
|
|
402
401
|
},
|
|
403
402
|
{
|
|
404
|
-
name: "
|
|
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
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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 `
|
|
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: "
|
|
2856
|
+
name: "integrationAcc1";
|
|
2864
2857
|
docs: ["Drift spot market account that must match the bank mint"];
|
|
2865
2858
|
},
|
|
2866
2859
|
{
|
|
2867
|
-
name: "
|
|
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: "
|
|
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
|
|
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: "
|
|
3193
|
+
name: "integrationAcc1";
|
|
3201
3194
|
},
|
|
3202
3195
|
{
|
|
3203
|
-
name: "
|
|
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
|
|
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 `
|
|
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: "
|
|
3627
|
+
name: "integrationAcc1";
|
|
3633
3628
|
docs: ["Solend reserve account that must match the bank mint"];
|
|
3634
3629
|
},
|
|
3635
3630
|
{
|
|
3636
|
-
name: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
6893
|
-
msg: "
|
|
6903
|
+
name: "vacated0";
|
|
6904
|
+
msg: "vacated0";
|
|
6894
6905
|
},
|
|
6895
6906
|
{
|
|
6896
6907
|
code: 6074;
|
|
6897
|
-
name: "
|
|
6898
|
-
msg: "
|
|
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: "
|
|
7695
|
-
docs: [
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
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: "
|
|
7720
|
-
docs: [
|
|
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: "
|
|
7725
|
-
docs: [
|
|
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
|
-
|
|
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`
|
|
10376
|
-
"* Bits
|
|
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
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
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
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
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
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
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
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
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;
|
|
@@ -12945,12 +12996,17 @@ declare function partitionBanksByCrankability(banks: BankType[], crankabilityRes
|
|
|
12945
12996
|
* - pythLegacyBanks: Banks using deprecated Pyth legacy oracles
|
|
12946
12997
|
* - pythPushBanks: Banks using Pyth push oracles
|
|
12947
12998
|
* - pythStakedCollateralBanks: Banks using staked collateral with Pyth push oracles
|
|
12999
|
+
* - pythPushKaminosBanks: Banks using Kamino with Pyth push oracles
|
|
13000
|
+
* - driftPythPullBanks: Banks using Drift with Pyth pull oracles
|
|
13001
|
+
* - solendPythPullBanks: Banks using Solend with Pyth pull oracles
|
|
12948
13002
|
*/
|
|
12949
13003
|
declare const categorizePythBanks: (banks: BankType[]) => {
|
|
12950
13004
|
pythLegacyBanks: BankType[];
|
|
12951
13005
|
pythPushBanks: BankType[];
|
|
12952
13006
|
pythStakedCollateralBanks: BankType[];
|
|
12953
13007
|
pythPushKaminosBanks: BankType[];
|
|
13008
|
+
driftPythPullBanks: BankType[];
|
|
13009
|
+
solendPythPullBanks: BankType[];
|
|
12954
13010
|
};
|
|
12955
13011
|
/**
|
|
12956
13012
|
* Converts vote account coefficients to bank address coefficients for staked collateral pricing
|
|
@@ -14738,18 +14794,34 @@ declare class Bank implements BankType {
|
|
|
14738
14794
|
readonly emissionsRemaining: BigNumber$1;
|
|
14739
14795
|
readonly oracleKey: PublicKey;
|
|
14740
14796
|
readonly emode: EmodeSettings;
|
|
14741
|
-
readonly
|
|
14742
|
-
|
|
14743
|
-
|
|
14744
|
-
|
|
14745
|
-
readonly
|
|
14746
|
-
|
|
14747
|
-
|
|
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;
|
|
14748
14810
|
readonly feesDestinationAccount?: PublicKey | undefined;
|
|
14749
14811
|
readonly lendingPositionCount?: BigNumber$1 | undefined;
|
|
14750
14812
|
readonly borrowingPositionCount?: BigNumber$1 | undefined;
|
|
14751
14813
|
readonly tokenSymbol?: string | undefined;
|
|
14752
|
-
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,
|
|
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);
|
|
14753
14825
|
static fetch(address: PublicKey, program: MarginfiProgram, bankMetadata?: BankMetadata$1): Promise<Bank>;
|
|
14754
14826
|
static decodeBankRaw(encoded: Buffer, idl: MarginfiIdlType): BankRaw;
|
|
14755
14827
|
static fromBuffer(bankPk: PublicKey, rawData: Buffer, idl: MarginfiIdlType): Bank;
|
|
@@ -14879,7 +14951,8 @@ type BankIntegrationMetadataDto = {
|
|
|
14879
14951
|
driftStates?: {
|
|
14880
14952
|
spotMarketState: DriftSpotMarketJSON;
|
|
14881
14953
|
userState: DriftUserJSON;
|
|
14882
|
-
|
|
14954
|
+
userRewards: DriftRewardsJSON[];
|
|
14955
|
+
userStatsState?: DriftUserStatsJSON;
|
|
14883
14956
|
};
|
|
14884
14957
|
};
|
|
14885
14958
|
type BankIntegrationMetadataMap = {
|
|
@@ -15159,6 +15232,8 @@ declare const DISABLED_FLAG: number;
|
|
|
15159
15232
|
declare const FLASHLOAN_ENABLED_FLAG: number;
|
|
15160
15233
|
declare const TRANSFER_ACCOUNT_AUTHORITY_FLAG: number;
|
|
15161
15234
|
declare const MARGINFI_PROGRAM: PublicKey;
|
|
15235
|
+
declare const MARGINFI_PROGRAM_STAGING: PublicKey;
|
|
15236
|
+
declare const MARGINFI_PROGRAM_STAGING_ALT: PublicKey;
|
|
15162
15237
|
|
|
15163
15238
|
declare const ADDRESS_LOOKUP_TABLE_FOR_GROUP: {
|
|
15164
15239
|
[key: string]: PublicKey[];
|
|
@@ -16226,4 +16301,4 @@ declare class MarginfiAccountWrapper {
|
|
|
16226
16301
|
getClient(): Project0Client;
|
|
16227
16302
|
}
|
|
16228
16303
|
|
|
16229
|
-
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_SWAP, AccountFlags, AccountType, type ActionEmodeImpact, type ActiveEmodePair, type ActiveStakePoolMap, type Amount, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, type BalanceType, type BalanceTypeDto, Bank, type BankAddress, BankConfig, type BankConfigCompactRaw, type BankConfigDto, BankConfigFlag, type BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, type BankConfigRawDto, type BankConfigType, type BankIntegrationMetadata, type BankIntegrationMetadataDto, type BankIntegrationMetadataMap, type BankIntegrationMetadataMapDto, type BankMap, type BankMetadata, type BankMetadataRaw, type BankRaw, type BankRawDto, type BankType, type BankTypeDto, BankVaultType, ConfigRaw, type CrankCombination, type CrankabilityResult, DEFAULT_ORACLE_MAX_AGE, DISABLED_FLAG, EMPTY_HEALTH_CACHE, type EmodeConfigRaw, type EmodeConfigRawDto, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsRaw, type EmodeSettingsRawDto, type EmodeSettingsType, EmodeTag, type Environment, type ExtendedTransaction, type ExtendedTransactionProperties, type ExtendedV0Transaction, FLASHLOAN_ENABLED_FLAG, type FeeStateCache, type FetchBankIntegrationMetadataOptions, type FetchKaminoMetadataOptions, type FlashloanActionResult, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, HealthCacheStatus, type HealthCacheType, type HealthCacheTypeDto, type InstructionsWrapper, type IntegrationType, type InterestRateConfig, type InterestRateConfigCompactRaw, type InterestRateConfigDto, type InterestRateConfigOpt, type InterestRateConfigOptRaw, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, type KaminoMetadata, type KaminoStates, LST_MINT, MARGINFI_IDL, MARGINFI_PROGRAM, MARGINFI_SPONSORED_SHARD_ID, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeDepositIxOpts, type MakeDepositIxParams, type MakeDepositTxParams, type MakeDriftDepositIxParams, type MakeDriftDepositTxParams, type MakeDriftWithdrawIxParams, type MakeDriftWithdrawTxParams, type MakeFlashLoanTxParams, type MakeKaminoDepositIxParams, type MakeKaminoDepositTxParams, type MakeKaminoWithdrawIxParams, type MakeKaminoWithdrawTxParams, type MakeLoopTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeSetupIxParams, type MakeSwapCollateralTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, type MarginRequirementTypeRaw, MarginfiAccount, type MarginfiAccountRaw, type MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupRaw, type MarginfiGroupType, type MarginfiGroupTypeDto, type MarginfiIdlType, type MarginfiProgram, type MintData, type MintDataMap, OperationalState, type OperationalStateRaw, type OracleConfigOpt, type OracleConfigOptRaw, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSetupRaw, 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, type PanicStateCache, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, type Program, Project0Client, type Project0Config, Project0ConfigRaw, type PythOracleServiceOpts, type RatePoint, type RatePointDto, type RatePointRaw, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SimulationResultRaw, type SmartCrankParams, type SmartCrankResult, type SolanaTransaction, type StakeAccount, type StakePoolMevMap, type SwbOracleAiDataByKey, type SwbOracleServiceOpts, TRANSFER_ACCOUNT_AUTHORITY_FLAG, TransactionArenaKeyMap, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, TransactionType, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_MINT, type Wallet, type WithdrawWindowCache, type WrappedI80F48, ZERO_ORACLE_KEY, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkBatchOracleCrankability, checkMultipleOraclesCrankability, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, composeRemainingAccounts, computeAccountValue, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, computeBalanceUsdValue, computeBaseInterestRate, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFreeCollateral, computeFreeCollateralLegacy, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponents, computeHealthComponentsLegacy, computeHealthComponentsWithoutBiasLegacy, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeMaxBorrowForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeSmartCrank, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchKaminoMetadata, fetchMarginfiAccountAddresses, fetchMarginfiAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleAccountsFromAPI, fetchSwbOracleAccountsFromChain, fetchSwbOracleData, fetchSwbOraclePricesFromAPI, fetchSwbOraclePricesFromCrossbar, findRandomAvailableAccountIndex, freezeBankConfigIx, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupiterSwapIxsForFlashloan, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getPrice, getPriceWithConfidence, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isFlashloan, isV0Tx, isWeightedPrice, isWholePosition, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBundleTipIx, makeCloseMarginfiAccountIx, makeCloseMarginfiAccountTx, makeCrankSwbFeedIx, makeCreateAccountIxWithProjection, makeCreateAccountTxWithProjection, makeCreateMarginfiAccountIx, makeCreateMarginfiAccountTx, makeDepositIx, makeDepositTx, makeDriftDepositIx, makeDriftDepositTx, makeDriftWithdrawIx, makeDriftWithdrawTx, makeEndFlashLoanIx, makeFlashLoanTx, makeKaminoDepositIx, makeKaminoDepositTx, makeKaminoWithdrawIx, makeKaminoWithdrawTx, makeLoopTx, makePoolAddBankIx, makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeSetupIx, makeSmartCrankSwbFeedIx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateSwbFeedIx, makeVersionedTransaction, makeWithdrawEmissionsIx, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapBrokenFeedsToOraclePrices, mapPythBanksToOraclePrices, mapSwbBanksToOraclePrices, marginfiAccountToDto, nativeToUi, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, parseSwbOraclePriceData, partitionBanksByCrankability, serializeBankConfigOpt, serializeInterestRateConfig, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, toBankConfigDto, toBankDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toNumber, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, wrappedI80F48toBigNumber };
|
|
16304
|
+
export { ADDRESS_LOOKUP_TABLE_FOR_GROUP, ADDRESS_LOOKUP_TABLE_FOR_SWAP, AccountFlags, AccountType, type ActionEmodeImpact, type ActiveEmodePair, type ActiveStakePoolMap, type Amount, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, type BalanceType, type BalanceTypeDto, Bank, type BankAddress, BankConfig, type BankConfigCompactRaw, type BankConfigDto, BankConfigFlag, type BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, type BankConfigRawDto, type BankConfigType, type BankIntegrationMetadata, type BankIntegrationMetadataDto, type BankIntegrationMetadataMap, type BankIntegrationMetadataMapDto, type BankMap, type BankMetadata, type BankMetadataRaw, type BankRaw, type BankRawDto, type BankType, type BankTypeDto, BankVaultType, ConfigRaw, type CrankCombination, type CrankabilityResult, DEFAULT_ORACLE_MAX_AGE, DISABLED_FLAG, EMPTY_HEALTH_CACHE, type EmodeConfigRaw, type EmodeConfigRawDto, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsRaw, type EmodeSettingsRawDto, type EmodeSettingsType, EmodeTag, type Environment, type ExtendedTransaction, type ExtendedTransactionProperties, type ExtendedV0Transaction, FLASHLOAN_ENABLED_FLAG, type FeeStateCache, type FetchBankIntegrationMetadataOptions, type FetchKaminoMetadataOptions, type FlashloanActionResult, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, HealthCacheStatus, type HealthCacheType, type HealthCacheTypeDto, type InstructionsWrapper, type IntegrationType, type InterestRateConfig, type InterestRateConfigCompactRaw, type InterestRateConfigDto, type InterestRateConfigOpt, type InterestRateConfigOptRaw, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, JUP_SWAP_LUT_PROGRAM_AUTHORITY_INDEX, type KaminoMetadata, type KaminoStates, LST_MINT, MARGINFI_IDL, MARGINFI_PROGRAM, MARGINFI_PROGRAM_STAGING, MARGINFI_PROGRAM_STAGING_ALT, MARGINFI_SPONSORED_SHARD_ID, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBorrowIxOpts, type MakeBorrowIxParams, type MakeBorrowTxParams, type MakeCloseAccountIxParams, type MakeCloseAccountTxParams, type MakeDepositIxOpts, type MakeDepositIxParams, type MakeDepositTxParams, type MakeDriftDepositIxParams, type MakeDriftDepositTxParams, type MakeDriftWithdrawIxParams, type MakeDriftWithdrawTxParams, type MakeFlashLoanTxParams, type MakeKaminoDepositIxParams, type MakeKaminoDepositTxParams, type MakeKaminoWithdrawIxParams, type MakeKaminoWithdrawTxParams, type MakeLoopTxParams, type MakeRepayIxOpts, type MakeRepayIxParams, type MakeRepayTxParams, type MakeRepayWithCollatTxParams, type MakeSetupIxParams, type MakeSwapCollateralTxParams, type MakeWithdrawIxOpts, type MakeWithdrawIxParams, type MakeWithdrawTxParams, MarginRequirementType, type MarginRequirementTypeRaw, MarginfiAccount, type MarginfiAccountRaw, type MarginfiAccountType, type MarginfiAccountTypeDto, MarginfiAccountWrapper, MarginfiGroup, type MarginfiGroupRaw, type MarginfiGroupType, type MarginfiGroupTypeDto, type MarginfiIdlType, type MarginfiProgram, type MintData, type MintDataMap, OperationalState, type OperationalStateRaw, type OracleConfigOpt, type OracleConfigOptRaw, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSetupRaw, 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, type PanicStateCache, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, type Program, Project0Client, type Project0Config, Project0ConfigRaw, type PythOracleServiceOpts, type RatePoint, type RatePointDto, type RatePointRaw, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SimulationResultRaw, type SmartCrankParams, type SmartCrankResult, type SolanaTransaction, type StakeAccount, type StakePoolMevMap, type SwbOracleAiDataByKey, type SwbOracleServiceOpts, TRANSFER_ACCOUNT_AUTHORITY_FLAG, TransactionArenaKeyMap, type TransactionBuilderResult, TransactionBuildingError, TransactionBuildingErrorCode, type TransactionBuildingErrorDetails, TransactionConfigMap, TransactionType, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_MINT, type Wallet, type WithdrawWindowCache, type WrappedI80F48, ZERO_ORACLE_KEY, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, adjustPriceComponent, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankMetadataMapToDto, bankMetadataToDto, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, calculateApyFromInterest, calculateInterestFromApy, capConfidenceInterval, categorizePythBanks, checkBatchOracleCrankability, checkMultipleOraclesCrankability, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, composeRemainingAccounts, computeAccountValue, computeActiveEmodePairs, computeAssetHealthComponent, computeAssetUsdValue, computeBalanceUsdValue, computeBaseInterestRate, computeClaimedEmissions, computeClosePositionTokenAmount, computeEmodeImpacts, computeFreeCollateral, computeFreeCollateralLegacy, computeHealthAccountMetas, computeHealthCacheStatus, computeHealthCheckAccounts, computeHealthComponents, computeHealthComponentsLegacy, computeHealthComponentsWithoutBiasLegacy, computeInterestRates, computeLiabilityHealthComponent, computeLiabilityUsdValue, computeLiquidationPriceForBank, computeLoopingParams, computeMaxBorrowForBank, computeMaxLeverage, computeMaxWithdrawForBank, computeNetApy, computeProjectedActiveBalancesNoCpi, computeProjectedActiveBanksNoCpi, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeSmartCrank, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, convertVoteAccCoeffsToBankCoeffs, createActiveEmodePairFromPairs, createEmptyBalance, decodeAccountRaw, decodeBankRaw, decodeInstruction, decompileV0Transaction, deriveBankEmissionsAuth, deriveBankEmissionsVault, deriveBankFeeVault, deriveBankFeeVaultAuthority, deriveBankInsuranceVault, deriveBankInsuranceVaultAuthority, deriveBankLiquidityVault, deriveBankLiquidityVaultAuthority, deriveFeeState, deriveMarginfiAccount, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankMetadata, dtoToBankMetadataMap, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToMarginfiAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, fetchBank, fetchBankIntegrationMetadata, fetchKaminoMetadata, fetchMarginfiAccountAddresses, fetchMarginfiAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchProgramForMints, fetchPythOracleData, fetchPythOraclePricesFromAPI, fetchPythOraclePricesFromChain, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleAccountsFromAPI, fetchSwbOracleAccountsFromChain, fetchSwbOracleData, fetchSwbOraclePricesFromAPI, fetchSwbOraclePricesFromCrossbar, findRandomAvailableAccountIndex, freezeBankConfigIx, getAccountKeys, getActiveAccountFlags, getActiveBalances, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getAssetQuantity, getAssetShares, getAssetWeight, getBalance, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getBirdeyeFallbackPricesByFeedId, getBirdeyePricesForMints, getConfig, getHealthCacheStatusDescription, getHealthSimulationTransactions, getJupiterSwapIxsForFlashloan, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getPrice, getPriceWithConfidence, getTotalAssetQuantity, getTotalLiabilityQuantity, getTxSize, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, isFlashloan, isV0Tx, isWeightedPrice, isWholePosition, makeAddPermissionlessStakedBankIx, makeBeginFlashLoanIx, makeBorrowIx, makeBorrowTx, makeBundleTipIx, makeCloseMarginfiAccountIx, makeCloseMarginfiAccountTx, makeCrankSwbFeedIx, makeCreateAccountIxWithProjection, makeCreateAccountTxWithProjection, makeCreateMarginfiAccountIx, makeCreateMarginfiAccountTx, makeDepositIx, makeDepositTx, makeDriftDepositIx, makeDriftDepositTx, makeDriftWithdrawIx, makeDriftWithdrawTx, makeEndFlashLoanIx, makeFlashLoanTx, makeKaminoDepositIx, makeKaminoDepositTx, makeKaminoWithdrawIx, makeKaminoWithdrawTx, makeLoopTx, makePoolAddBankIx, makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx, makeRefreshKaminoBanksIxs, makeRepayIx, makeRepayTx, makeRepayWithCollatTx, makeSetupIx, makeSmartCrankSwbFeedIx, makeTxPriorityIx, makeUnwrapSolIx, makeUpdateDriftMarketIxs, makeUpdateSwbFeedIx, makeVersionedTransaction, makeWithdrawEmissionsIx, makeWithdrawIx, makeWithdrawTx, makeWrapSolIxs, mapBrokenFeedsToOraclePrices, mapPythBanksToOraclePrices, mapSwbBanksToOraclePrices, marginfiAccountToDto, nativeToUi, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseHealthCacheRaw, parseMarginfiAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseRpcPythPriceData, parseSwbOraclePriceData, partitionBanksByCrankability, serializeBankConfigOpt, serializeInterestRateConfig, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateBundle, splitInstructionsToFitTransactions, toBankConfigDto, toBankDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toNumber, uiToNative, uiToNativeBigNumber, validatorStakeGroupToDto, wrappedI80F48toBigNumber };
|