@pyron-finance/pyron-client 1.0.0 → 1.0.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/{chunk-B9dir_RE.mjs → chunk-D3ESV8qN.mjs} +3 -1
- package/dist/common/index.d.mts +1 -1
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +1 -1
- package/dist/common/index.mjs +1 -1
- package/dist/{index-DoxqUMQW.d.ts → index-Bpr6asS1.d.ts} +1 -69
- package/dist/index-Bpr6asS1.d.ts.map +1 -0
- package/dist/{index-DUhjh5_z.d.mts → index-CjdbT6Xw.d.mts} +1 -69
- package/dist/index-CjdbT6Xw.d.mts.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-DITEj1yC.mjs → src-B_34n__D.mjs} +227 -368
- package/dist/src-B_34n__D.mjs.map +1 -0
- package/dist/{src-WLna_-6m.js → src-CWX5tHYY.js} +254 -380
- package/package.json +9 -7
- package/dist/index-DUhjh5_z.d.mts.map +0 -1
- package/dist/index-DoxqUMQW.d.ts.map +0 -1
- package/dist/src-DITEj1yC.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __export } from "./chunk-
|
|
1
|
+
import { __export } from "./chunk-D3ESV8qN.mjs";
|
|
2
2
|
import * as anchor from "@coral-xyz/anchor";
|
|
3
3
|
import { AnchorProvider, BN, BorshAccountsCoder, BorshCoder, BorshInstructionCoder, LangErrorMessage, Program, translateAddress } from "@coral-xyz/anchor";
|
|
4
4
|
import bs58 from "bs58";
|
|
@@ -2655,8 +2655,6 @@ const replenishPoolIx = (voteAccount) => {
|
|
|
2655
2655
|
//#endregion
|
|
2656
2656
|
//#region src/vendor/switchboard_legacy/account.ts
|
|
2657
2657
|
var Account = class {
|
|
2658
|
-
program;
|
|
2659
|
-
publicKey;
|
|
2660
2658
|
/**
|
|
2661
2659
|
* Account constructor
|
|
2662
2660
|
* @param program SwitchboardProgram
|
|
@@ -2693,10 +2691,16 @@ var AggregatorAccount = class extends Account {
|
|
|
2693
2691
|
//#endregion
|
|
2694
2692
|
//#region src/vendor/switchboard_legacy/AggregatorResolutionMode.ts
|
|
2695
2693
|
var ModeRoundResolution = class {
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2694
|
+
constructor() {
|
|
2695
|
+
this.discriminator = 0;
|
|
2696
|
+
this.kind = "ModeRoundResolution";
|
|
2697
|
+
}
|
|
2698
|
+
static {
|
|
2699
|
+
this.discriminator = 0;
|
|
2700
|
+
}
|
|
2701
|
+
static {
|
|
2702
|
+
this.kind = "ModeRoundResolution";
|
|
2703
|
+
}
|
|
2700
2704
|
toJSON() {
|
|
2701
2705
|
return { kind: "ModeRoundResolution" };
|
|
2702
2706
|
}
|
|
@@ -2705,10 +2709,16 @@ var ModeRoundResolution = class {
|
|
|
2705
2709
|
}
|
|
2706
2710
|
};
|
|
2707
2711
|
var ModeSlidingResolution = class {
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
+
constructor() {
|
|
2713
|
+
this.discriminator = 1;
|
|
2714
|
+
this.kind = "ModeSlidingResolution";
|
|
2715
|
+
}
|
|
2716
|
+
static {
|
|
2717
|
+
this.discriminator = 1;
|
|
2718
|
+
}
|
|
2719
|
+
static {
|
|
2720
|
+
this.kind = "ModeSlidingResolution";
|
|
2721
|
+
}
|
|
2712
2722
|
toJSON() {
|
|
2713
2723
|
return { kind: "ModeSlidingResolution" };
|
|
2714
2724
|
}
|
|
@@ -2749,13 +2759,6 @@ function layout(property) {
|
|
|
2749
2759
|
//#endregion
|
|
2750
2760
|
//#region src/vendor/switchboard_legacy/switchboardDecimal.ts
|
|
2751
2761
|
var SwitchboardDecimal = class SwitchboardDecimal {
|
|
2752
|
-
/**
|
|
2753
|
-
* The part of a floating-point number that represents the significant digits of that number,
|
|
2754
|
-
* and that is multiplied by the base, 10, raised to the power of scale to give the actual value of the number.
|
|
2755
|
-
*/
|
|
2756
|
-
mantissa;
|
|
2757
|
-
/** The number of decimal places to move to the left to yield the actual value. */
|
|
2758
|
-
scale;
|
|
2759
2762
|
constructor(fields) {
|
|
2760
2763
|
this.mantissa = fields.mantissa;
|
|
2761
2764
|
this.scale = fields.scale;
|
|
@@ -2865,37 +2868,6 @@ var SwitchboardDecimal = class SwitchboardDecimal {
|
|
|
2865
2868
|
//#endregion
|
|
2866
2869
|
//#region src/vendor/switchboard_legacy/aggregatorRound.ts
|
|
2867
2870
|
var AggregatorRound = class AggregatorRound {
|
|
2868
|
-
/**
|
|
2869
|
-
* Maintains the number of successful responses received from nodes.
|
|
2870
|
-
* Nodes can submit one successful response per round.
|
|
2871
|
-
*/
|
|
2872
|
-
numSuccess;
|
|
2873
|
-
/** Number of error responses. */
|
|
2874
|
-
numError;
|
|
2875
|
-
/** Whether an update request round has ended. */
|
|
2876
|
-
isClosed;
|
|
2877
|
-
/** Maintains the `solana_program::clock::Slot` that the round was opened at. */
|
|
2878
|
-
roundOpenSlot;
|
|
2879
|
-
/** Maintains the `solana_program::clock::UnixTimestamp;` the round was opened at. */
|
|
2880
|
-
roundOpenTimestamp;
|
|
2881
|
-
/** Maintains the current median of all successful round responses. */
|
|
2882
|
-
result;
|
|
2883
|
-
/** Standard deviation of the accepted results in the round. */
|
|
2884
|
-
stdDeviation;
|
|
2885
|
-
/** Maintains the minimum node response this round. */
|
|
2886
|
-
minResponse;
|
|
2887
|
-
/** Maintains the maximum node response this round. */
|
|
2888
|
-
maxResponse;
|
|
2889
|
-
/** Pubkeys of the oracles fulfilling this round. */
|
|
2890
|
-
oraclePubkeysData;
|
|
2891
|
-
/** Represents all successful node responses this round. `NaN` if empty. */
|
|
2892
|
-
mediansData;
|
|
2893
|
-
/** Current rewards/slashes oracles have received this round. */
|
|
2894
|
-
currentPayout;
|
|
2895
|
-
/** Keep track of which responses are fulfilled here. */
|
|
2896
|
-
mediansFulfilled;
|
|
2897
|
-
/** Keeps track of which errors are fulfilled here. */
|
|
2898
|
-
errorsFulfilled;
|
|
2899
2871
|
constructor(fields) {
|
|
2900
2872
|
this.numSuccess = fields.numSuccess;
|
|
2901
2873
|
this.numError = fields.numError;
|
|
@@ -3010,8 +2982,6 @@ var AggregatorRound = class AggregatorRound {
|
|
|
3010
2982
|
//#endregion
|
|
3011
2983
|
//#region src/vendor/switchboard_legacy/Hash.ts
|
|
3012
2984
|
var Hash = class Hash {
|
|
3013
|
-
/** The bytes used to derive the hash. */
|
|
3014
|
-
data;
|
|
3015
2985
|
constructor(fields) {
|
|
3016
2986
|
this.data = fields.data;
|
|
3017
2987
|
}
|
|
@@ -3038,125 +3008,57 @@ var Hash = class Hash {
|
|
|
3038
3008
|
//#endregion
|
|
3039
3009
|
//#region src/vendor/switchboard_legacy/aggregatorAccountData.ts
|
|
3040
3010
|
var AggregatorAccountData = class AggregatorAccountData {
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
/** The previous confirmed round result. */
|
|
3093
|
-
previousConfirmedRoundResult;
|
|
3094
|
-
/** The slot when the previous confirmed round was opened. */
|
|
3095
|
-
previousConfirmedRoundSlot;
|
|
3096
|
-
/** Whether an aggregator is permitted to join a crank. */
|
|
3097
|
-
disableCrank;
|
|
3098
|
-
/** Job weights used for the weighted median of the aggregator's assigned job accounts. */
|
|
3099
|
-
jobWeights;
|
|
3100
|
-
/** Unix timestamp when the feed was created. */
|
|
3101
|
-
creationTimestamp;
|
|
3102
|
-
/**
|
|
3103
|
-
* Use sliding window or round based resolution
|
|
3104
|
-
* NOTE: This changes result propogation in latest_round_result
|
|
3105
|
-
*/
|
|
3106
|
-
resolutionMode;
|
|
3107
|
-
basePriorityFee;
|
|
3108
|
-
priorityFeeBump;
|
|
3109
|
-
priorityFeeBumpPeriod;
|
|
3110
|
-
maxPriorityFeeMultiplier;
|
|
3111
|
-
/** Reserved for future info. */
|
|
3112
|
-
ebuf;
|
|
3113
|
-
static discriminator = Buffer.from([
|
|
3114
|
-
217,
|
|
3115
|
-
230,
|
|
3116
|
-
65,
|
|
3117
|
-
101,
|
|
3118
|
-
201,
|
|
3119
|
-
162,
|
|
3120
|
-
27,
|
|
3121
|
-
125
|
|
3122
|
-
]);
|
|
3123
|
-
static layout = borsh.struct([
|
|
3124
|
-
borsh.array(borsh.u8(), 32, "name"),
|
|
3125
|
-
borsh.array(borsh.u8(), 128, "metadata"),
|
|
3126
|
-
borsh.array(borsh.u8(), 32, "reserved1"),
|
|
3127
|
-
borsh.publicKey("queuePubkey"),
|
|
3128
|
-
borsh.u32("oracleRequestBatchSize"),
|
|
3129
|
-
borsh.u32("minOracleResults"),
|
|
3130
|
-
borsh.u32("minJobResults"),
|
|
3131
|
-
borsh.u32("minUpdateDelaySeconds"),
|
|
3132
|
-
borsh.i64("startAfter"),
|
|
3133
|
-
SwitchboardDecimal.layout("varianceThreshold"),
|
|
3134
|
-
borsh.i64("forceReportPeriod"),
|
|
3135
|
-
borsh.i64("expiration"),
|
|
3136
|
-
borsh.u64("consecutiveFailureCount"),
|
|
3137
|
-
borsh.i64("nextAllowedUpdateTime"),
|
|
3138
|
-
borsh.bool("isLocked"),
|
|
3139
|
-
borsh.publicKey("crankPubkey"),
|
|
3140
|
-
AggregatorRound.layout("latestConfirmedRound"),
|
|
3141
|
-
AggregatorRound.layout("currentRound"),
|
|
3142
|
-
borsh.array(borsh.publicKey(), 16, "jobPubkeysData"),
|
|
3143
|
-
borsh.array(Hash.layout({}), 16, "jobHashes"),
|
|
3144
|
-
borsh.u32("jobPubkeysSize"),
|
|
3145
|
-
borsh.array(borsh.u8(), 32, "jobsChecksum"),
|
|
3146
|
-
borsh.publicKey("authority"),
|
|
3147
|
-
borsh.publicKey("historyBuffer"),
|
|
3148
|
-
SwitchboardDecimal.layout("previousConfirmedRoundResult"),
|
|
3149
|
-
borsh.u64("previousConfirmedRoundSlot"),
|
|
3150
|
-
borsh.bool("disableCrank"),
|
|
3151
|
-
borsh.array(borsh.u8(), 16, "jobWeights"),
|
|
3152
|
-
borsh.i64("creationTimestamp"),
|
|
3153
|
-
layout("resolutionMode"),
|
|
3154
|
-
borsh.u32("basePriorityFee"),
|
|
3155
|
-
borsh.u32("priorityFeeBump"),
|
|
3156
|
-
borsh.u32("priorityFeeBumpPeriod"),
|
|
3157
|
-
borsh.u32("maxPriorityFeeMultiplier"),
|
|
3158
|
-
borsh.array(borsh.u8(), 122, "ebuf")
|
|
3159
|
-
]);
|
|
3011
|
+
static {
|
|
3012
|
+
this.discriminator = Buffer.from([
|
|
3013
|
+
217,
|
|
3014
|
+
230,
|
|
3015
|
+
65,
|
|
3016
|
+
101,
|
|
3017
|
+
201,
|
|
3018
|
+
162,
|
|
3019
|
+
27,
|
|
3020
|
+
125
|
|
3021
|
+
]);
|
|
3022
|
+
}
|
|
3023
|
+
static {
|
|
3024
|
+
this.layout = borsh.struct([
|
|
3025
|
+
borsh.array(borsh.u8(), 32, "name"),
|
|
3026
|
+
borsh.array(borsh.u8(), 128, "metadata"),
|
|
3027
|
+
borsh.array(borsh.u8(), 32, "reserved1"),
|
|
3028
|
+
borsh.publicKey("queuePubkey"),
|
|
3029
|
+
borsh.u32("oracleRequestBatchSize"),
|
|
3030
|
+
borsh.u32("minOracleResults"),
|
|
3031
|
+
borsh.u32("minJobResults"),
|
|
3032
|
+
borsh.u32("minUpdateDelaySeconds"),
|
|
3033
|
+
borsh.i64("startAfter"),
|
|
3034
|
+
SwitchboardDecimal.layout("varianceThreshold"),
|
|
3035
|
+
borsh.i64("forceReportPeriod"),
|
|
3036
|
+
borsh.i64("expiration"),
|
|
3037
|
+
borsh.u64("consecutiveFailureCount"),
|
|
3038
|
+
borsh.i64("nextAllowedUpdateTime"),
|
|
3039
|
+
borsh.bool("isLocked"),
|
|
3040
|
+
borsh.publicKey("crankPubkey"),
|
|
3041
|
+
AggregatorRound.layout("latestConfirmedRound"),
|
|
3042
|
+
AggregatorRound.layout("currentRound"),
|
|
3043
|
+
borsh.array(borsh.publicKey(), 16, "jobPubkeysData"),
|
|
3044
|
+
borsh.array(Hash.layout({}), 16, "jobHashes"),
|
|
3045
|
+
borsh.u32("jobPubkeysSize"),
|
|
3046
|
+
borsh.array(borsh.u8(), 32, "jobsChecksum"),
|
|
3047
|
+
borsh.publicKey("authority"),
|
|
3048
|
+
borsh.publicKey("historyBuffer"),
|
|
3049
|
+
SwitchboardDecimal.layout("previousConfirmedRoundResult"),
|
|
3050
|
+
borsh.u64("previousConfirmedRoundSlot"),
|
|
3051
|
+
borsh.bool("disableCrank"),
|
|
3052
|
+
borsh.array(borsh.u8(), 16, "jobWeights"),
|
|
3053
|
+
borsh.i64("creationTimestamp"),
|
|
3054
|
+
layout("resolutionMode"),
|
|
3055
|
+
borsh.u32("basePriorityFee"),
|
|
3056
|
+
borsh.u32("priorityFeeBump"),
|
|
3057
|
+
borsh.u32("priorityFeeBumpPeriod"),
|
|
3058
|
+
borsh.u32("maxPriorityFeeMultiplier"),
|
|
3059
|
+
borsh.array(borsh.u8(), 122, "ebuf")
|
|
3060
|
+
]);
|
|
3061
|
+
}
|
|
3160
3062
|
constructor(fields) {
|
|
3161
3063
|
this.name = fields.name;
|
|
3162
3064
|
this.metadata = fields.metadata;
|
|
@@ -6916,8 +6818,7 @@ function decodeSwitchboardPullFeedData(data) {
|
|
|
6916
6818
|
|
|
6917
6819
|
//#endregion
|
|
6918
6820
|
//#region src/vendor/index.ts
|
|
6919
|
-
var vendor_exports = {
|
|
6920
|
-
__export(vendor_exports, {
|
|
6821
|
+
var vendor_exports = /* @__PURE__ */ __export({
|
|
6921
6822
|
AccountType: () => AccountType$1,
|
|
6922
6823
|
AggregatorAccount: () => AggregatorAccount,
|
|
6923
6824
|
AggregatorAccountData: () => AggregatorAccountData,
|
|
@@ -11725,8 +11626,6 @@ function isWeightedPrice(reqType) {
|
|
|
11725
11626
|
//#endregion
|
|
11726
11627
|
//#region src/models/account/wrapper.ts
|
|
11727
11628
|
var LendrAccountWrapper = class LendrAccountWrapper {
|
|
11728
|
-
address;
|
|
11729
|
-
_lendrAccount;
|
|
11730
11629
|
/**
|
|
11731
11630
|
* @internal
|
|
11732
11631
|
*/
|
|
@@ -13409,7 +13308,6 @@ var HealthCache = class HealthCache {
|
|
|
13409
13308
|
//#endregion
|
|
13410
13309
|
//#region src/services/transaction/helpers/bundle-sending.ts
|
|
13411
13310
|
var SendBundleError = class extends Error {
|
|
13412
|
-
bundleId;
|
|
13413
13311
|
constructor(message, bundleId) {
|
|
13414
13312
|
super(message);
|
|
13415
13313
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
@@ -19570,11 +19468,6 @@ let ProcessTransactionErrorType = /* @__PURE__ */ function(ProcessTransactionErr
|
|
|
19570
19468
|
return ProcessTransactionErrorType$1;
|
|
19571
19469
|
}({});
|
|
19572
19470
|
var ProcessTransactionError = class ProcessTransactionError extends Error {
|
|
19573
|
-
logs;
|
|
19574
|
-
type;
|
|
19575
|
-
programId;
|
|
19576
|
-
failedTxs;
|
|
19577
|
-
_error;
|
|
19578
19471
|
constructor({ message, type, logs, programId, code, failedTxs, _error }) {
|
|
19579
19472
|
super(message);
|
|
19580
19473
|
this.programId = programId;
|
|
@@ -20974,8 +20867,6 @@ function healthCacheToDto(healthCache) {
|
|
|
20974
20867
|
* Custom error class for health cache simulation failures
|
|
20975
20868
|
*/
|
|
20976
20869
|
var HealthCacheSimulationError = class HealthCacheSimulationError extends Error {
|
|
20977
|
-
lndrErr;
|
|
20978
|
-
internalErr;
|
|
20979
20870
|
constructor(message, lndrErr, internalErr) {
|
|
20980
20871
|
super(message);
|
|
20981
20872
|
this.name = "HealthCacheSimulationError";
|
|
@@ -21405,12 +21296,9 @@ const metadataSchema = z$1.object({
|
|
|
21405
21296
|
});
|
|
21406
21297
|
const endpointSchema = z$1.record(z$1.string(), metadataSchema);
|
|
21407
21298
|
var MetadataService = class {
|
|
21408
|
-
/** NOTE: record key is base58 of mint public key */
|
|
21409
|
-
_cache = new Map();
|
|
21410
|
-
/** NOTE: record key is base58 of mint public key */
|
|
21411
|
-
overrides;
|
|
21412
21299
|
constructor(connection, overrides = {}) {
|
|
21413
21300
|
this.connection = connection;
|
|
21301
|
+
this._cache = new Map();
|
|
21414
21302
|
this.overrides = overrides;
|
|
21415
21303
|
}
|
|
21416
21304
|
async forMints(mints) {
|
|
@@ -21777,8 +21665,6 @@ function fetchLatestIdl() {
|
|
|
21777
21665
|
//#endregion
|
|
21778
21666
|
//#region src/models/group.ts
|
|
21779
21667
|
var LendrGroup = class LendrGroup {
|
|
21780
|
-
address;
|
|
21781
|
-
admin;
|
|
21782
21668
|
constructor(admin, address$2) {
|
|
21783
21669
|
this.admin = admin;
|
|
21784
21670
|
this.address = address$2;
|
|
@@ -21828,24 +21714,6 @@ var LendrGroup = class LendrGroup {
|
|
|
21828
21714
|
* Entrypoint to interact with the lendr contract.
|
|
21829
21715
|
*/
|
|
21830
21716
|
var LendrClient = class LendrClient {
|
|
21831
|
-
program;
|
|
21832
|
-
wallet;
|
|
21833
|
-
config;
|
|
21834
|
-
isReadOnly;
|
|
21835
|
-
logger;
|
|
21836
|
-
group;
|
|
21837
|
-
banks;
|
|
21838
|
-
oraclePrices;
|
|
21839
|
-
mintDatas;
|
|
21840
|
-
addressLookupTables;
|
|
21841
|
-
lookupTablesAddresses;
|
|
21842
|
-
feedIdMap;
|
|
21843
|
-
processTransactionStrategy;
|
|
21844
|
-
bundleSimRpcEndpoint;
|
|
21845
|
-
bankMetadataMap;
|
|
21846
|
-
overrideBankAddresses;
|
|
21847
|
-
overrideBanksMetadata;
|
|
21848
|
-
metadataService;
|
|
21849
21717
|
constructor({ program, wallet, config, isReadOnly, group, banks, priceInfos, mintDatas, addressLookupTables, feedIdMap, logger, bankMetadataMap, overrideBanksMetadata, overrideBankAddresses, bundleSimRpcEndpoint, processTransactionStrategy, lookupTablesAddresses, metadataService }) {
|
|
21850
21718
|
this.program = program;
|
|
21851
21719
|
this.wallet = wallet;
|
|
@@ -21944,174 +21812,165 @@ var LendrClient = class LendrClient {
|
|
|
21944
21812
|
const accounts$2 = await Promise.all(addressLookupTableAddresses.map((address$2) => connection.getAddressLookupTable(address$2)));
|
|
21945
21813
|
return accounts$2.map((response) => response?.value).filter((table) => table !== null);
|
|
21946
21814
|
}
|
|
21947
|
-
|
|
21948
|
-
|
|
21949
|
-
|
|
21950
|
-
|
|
21951
|
-
|
|
21952
|
-
|
|
21953
|
-
|
|
21954
|
-
|
|
21955
|
-
|
|
21956
|
-
|
|
21957
|
-
|
|
21958
|
-
|
|
21959
|
-
|
|
21960
|
-
|
|
21961
|
-
|
|
21962
|
-
|
|
21963
|
-
|
|
21964
|
-
|
|
21965
|
-
|
|
21966
|
-
commitment
|
|
21967
|
-
});
|
|
21968
|
-
const feedIdMap = await buildFeedIdMap(banksRawData.map((b) => b.data.config), program.provider.connection);
|
|
21969
|
-
const mintKeys = [];
|
|
21970
|
-
const emissionMintKeys = [];
|
|
21971
|
-
const oracleKeys = [];
|
|
21972
|
-
for (const bank of banksRawData) {
|
|
21973
|
-
mintKeys.push(bank.data.mint);
|
|
21974
|
-
if (!bank.data.emissionsMint.equals(PublicKey.default)) {
|
|
21975
|
-
emissionMintKeys.push(bank.data.emissionsMint);
|
|
21976
|
-
}
|
|
21977
|
-
oracleKeys.push(findOracleKey(BankConfig.fromAccountParsed(bank.data.config), feedIdMap).oracleKey);
|
|
21978
|
-
}
|
|
21979
|
-
const allAccountInfos = await chunkedGetRawMultipleAccountInfoOrdered(program.provider.connection, [
|
|
21980
|
-
groupAddress.toBase58(),
|
|
21981
|
-
...oracleKeys.map((pk) => pk.toBase58()),
|
|
21982
|
-
...mintKeys.map((pk) => pk.toBase58()),
|
|
21983
|
-
...emissionMintKeys.map((pk) => pk.toBase58())
|
|
21984
|
-
]);
|
|
21985
|
-
const groupAccountInfo = allAccountInfos.shift();
|
|
21986
|
-
if (!groupAccountInfo) {
|
|
21987
|
-
throw new Error("Failed to fetch the on-chain group data");
|
|
21988
|
-
}
|
|
21989
|
-
const oracleAccountInfos = allAccountInfos.splice(0, oracleKeys.length);
|
|
21990
|
-
const mintAccountInfos = allAccountInfos.splice(0, mintKeys.length);
|
|
21991
|
-
const emissionMintAccountInfos = allAccountInfos.splice(0);
|
|
21992
|
-
const lendrGroup = LendrGroup.fromBuffer(groupAddress, groupAccountInfo.data, program.idl);
|
|
21993
|
-
const banksExtendedMetadata = await fetchBanksExtendedMetadata({
|
|
21994
|
-
mintsWithOwner: mintKeys.map((mint, idx) => ({
|
|
21995
|
-
mint,
|
|
21996
|
-
owner: mintAccountInfos[idx].owner
|
|
21997
|
-
})),
|
|
21998
|
-
metadataService,
|
|
21999
|
-
logger,
|
|
22000
|
-
overrideBanksMetadata
|
|
22001
|
-
});
|
|
22002
|
-
const banks = new Map();
|
|
22003
|
-
const priceInfos = new Map();
|
|
22004
|
-
const pythStakedCollateralBanks = [];
|
|
22005
|
-
const tokensData = new Map();
|
|
22006
|
-
const stakedCollatMap = {};
|
|
22007
|
-
const solPools = [];
|
|
22008
|
-
const mints = [];
|
|
22009
|
-
banksRawData.forEach(({ address: address$2, data }, index) => {
|
|
22010
|
-
const bankAddressStr = address$2.toBase58();
|
|
22011
|
-
const metadata$2 = banksExtendedMetadata.get(data.mint.toBase58());
|
|
22012
|
-
const mintDataRaw = mintAccountInfos[index];
|
|
22013
|
-
if (!mintDataRaw) {
|
|
22014
|
-
throw new Error(`Failed to fetch mint account for bank ${bankAddressStr}`);
|
|
22015
|
-
}
|
|
22016
|
-
const priceDataRaw = oracleAccountInfos[index];
|
|
22017
|
-
if (!priceDataRaw) {
|
|
22018
|
-
throw new Error(`Failed to fetch price oracle account for bank ${bankAddressStr}`);
|
|
21815
|
+
static {
|
|
21816
|
+
this.fetchGroupData = async ({ connection, program, groupAddress, commitment, overrideBanksMetadata, overrideBankAddresses, logger = new NoopLogger(), metadataService }) => {
|
|
21817
|
+
const banksRawData = await LendrClient.fetchRawBanks({
|
|
21818
|
+
program,
|
|
21819
|
+
groupAddress,
|
|
21820
|
+
logger,
|
|
21821
|
+
bankAddresses: overrideBankAddresses,
|
|
21822
|
+
commitment
|
|
21823
|
+
});
|
|
21824
|
+
const feedIdMap = await buildFeedIdMap(banksRawData.map((b) => b.data.config), program.provider.connection);
|
|
21825
|
+
const mintKeys = [];
|
|
21826
|
+
const emissionMintKeys = [];
|
|
21827
|
+
const oracleKeys = [];
|
|
21828
|
+
for (const bank of banksRawData) {
|
|
21829
|
+
mintKeys.push(bank.data.mint);
|
|
21830
|
+
if (!bank.data.emissionsMint.equals(PublicKey.default)) {
|
|
21831
|
+
emissionMintKeys.push(bank.data.emissionsMint);
|
|
21832
|
+
}
|
|
21833
|
+
oracleKeys.push(findOracleKey(BankConfig.fromAccountParsed(bank.data.config), feedIdMap).oracleKey);
|
|
22019
21834
|
}
|
|
22020
|
-
const
|
|
22021
|
-
|
|
22022
|
-
|
|
22023
|
-
|
|
22024
|
-
|
|
22025
|
-
|
|
21835
|
+
const allAccountInfos = await chunkedGetRawMultipleAccountInfoOrdered(program.provider.connection, [
|
|
21836
|
+
groupAddress.toBase58(),
|
|
21837
|
+
...oracleKeys.map((pk) => pk.toBase58()),
|
|
21838
|
+
...mintKeys.map((pk) => pk.toBase58()),
|
|
21839
|
+
...emissionMintKeys.map((pk) => pk.toBase58())
|
|
21840
|
+
]);
|
|
21841
|
+
const groupAccountInfo = allAccountInfos.shift();
|
|
21842
|
+
if (!groupAccountInfo) {
|
|
21843
|
+
throw new Error("Failed to fetch the on-chain group data");
|
|
22026
21844
|
}
|
|
22027
|
-
|
|
22028
|
-
|
|
22029
|
-
|
|
22030
|
-
|
|
22031
|
-
|
|
21845
|
+
const oracleAccountInfos = allAccountInfos.splice(0, oracleKeys.length);
|
|
21846
|
+
const mintAccountInfos = allAccountInfos.splice(0, mintKeys.length);
|
|
21847
|
+
const emissionMintAccountInfos = allAccountInfos.splice(0);
|
|
21848
|
+
const lendrGroup = LendrGroup.fromBuffer(groupAddress, groupAccountInfo.data, program.idl);
|
|
21849
|
+
const banksExtendedMetadata = await fetchBanksExtendedMetadata({
|
|
21850
|
+
mintsWithOwner: mintKeys.map((mint, idx) => ({
|
|
21851
|
+
mint,
|
|
21852
|
+
owner: mintAccountInfos[idx].owner
|
|
21853
|
+
})),
|
|
21854
|
+
metadataService,
|
|
21855
|
+
logger,
|
|
21856
|
+
overrideBanksMetadata
|
|
22032
21857
|
});
|
|
22033
|
-
const
|
|
22034
|
-
priceInfos
|
|
22035
|
-
|
|
22036
|
-
|
|
22037
|
-
|
|
22038
|
-
|
|
22039
|
-
|
|
22040
|
-
|
|
22041
|
-
|
|
22042
|
-
|
|
22043
|
-
|
|
22044
|
-
|
|
22045
|
-
|
|
22046
|
-
|
|
22047
|
-
|
|
22048
|
-
|
|
22049
|
-
|
|
22050
|
-
|
|
22051
|
-
|
|
22052
|
-
|
|
22053
|
-
|
|
22054
|
-
|
|
22055
|
-
|
|
22056
|
-
|
|
22057
|
-
|
|
22058
|
-
|
|
22059
|
-
|
|
22060
|
-
|
|
22061
|
-
|
|
22062
|
-
|
|
22063
|
-
const adjustPriceComponent$1 = (priceComponent, stakeActual$1, tokenSupply$1) => ({
|
|
22064
|
-
price: adjustPrice(priceComponent.price, stakeActual$1, tokenSupply$1),
|
|
22065
|
-
confidence: priceComponent.confidence,
|
|
22066
|
-
lowestPrice: adjustPrice(priceComponent.lowestPrice, stakeActual$1, tokenSupply$1),
|
|
22067
|
-
highestPrice: adjustPrice(priceComponent.highestPrice, stakeActual$1, tokenSupply$1)
|
|
21858
|
+
const banks = new Map();
|
|
21859
|
+
const priceInfos = new Map();
|
|
21860
|
+
const pythStakedCollateralBanks = [];
|
|
21861
|
+
const tokensData = new Map();
|
|
21862
|
+
const stakedCollatMap = {};
|
|
21863
|
+
const solPools = [];
|
|
21864
|
+
const mints = [];
|
|
21865
|
+
banksRawData.forEach(({ address: address$2, data }, index) => {
|
|
21866
|
+
const bankAddressStr = address$2.toBase58();
|
|
21867
|
+
const metadata$2 = banksExtendedMetadata.get(data.mint.toBase58());
|
|
21868
|
+
const mintDataRaw = mintAccountInfos[index];
|
|
21869
|
+
if (!mintDataRaw) {
|
|
21870
|
+
throw new Error(`Failed to fetch mint account for bank ${bankAddressStr}`);
|
|
21871
|
+
}
|
|
21872
|
+
const priceDataRaw = oracleAccountInfos[index];
|
|
21873
|
+
if (!priceDataRaw) {
|
|
21874
|
+
throw new Error(`Failed to fetch price oracle account for bank ${bankAddressStr}`);
|
|
21875
|
+
}
|
|
21876
|
+
const bank = Bank.fromAccountParsed(address$2, data, feedIdMap, metadata$2, mintDataRaw.owner);
|
|
21877
|
+
banks.set(bankAddressStr, bank);
|
|
21878
|
+
let emissionTokenProgram = null;
|
|
21879
|
+
if (!data.emissionsMint.equals(PublicKey.default)) {
|
|
21880
|
+
const emissionMintDataRawIndex = emissionMintKeys.findIndex((pk) => pk.equals(data.emissionsMint));
|
|
21881
|
+
emissionTokenProgram = emissionMintDataRawIndex >= 0 ? emissionMintAccountInfos[emissionMintDataRawIndex].owner : null;
|
|
21882
|
+
}
|
|
21883
|
+
tokensData.set(bankAddressStr, {
|
|
21884
|
+
mint: mintKeys[index],
|
|
21885
|
+
tokenProgram: mintDataRaw.owner,
|
|
21886
|
+
feeBps: 0,
|
|
21887
|
+
emissionTokenProgram
|
|
22068
21888
|
});
|
|
22069
|
-
const
|
|
22070
|
-
|
|
22071
|
-
|
|
22072
|
-
|
|
22073
|
-
|
|
22074
|
-
|
|
21889
|
+
const oracleSetup = parseOracleSetup(data.config.oracleSetup);
|
|
21890
|
+
priceInfos.set(bankAddressStr, parseOraclePriceData(oracleSetup, priceDataRaw.data, logger));
|
|
21891
|
+
if (oracleSetup === OracleSetup.StakedWithPythPush && metadata$2?.validatorVoteAccount) {
|
|
21892
|
+
const [poolAddress] = PublicKey.findProgramAddressSync([Buffer.from("pool"), new PublicKey(metadata$2.validatorVoteAccount).toBuffer()], SINGLE_POOL_PROGRAM_ID);
|
|
21893
|
+
const [stakePoolAddress] = PublicKey.findProgramAddressSync([Buffer.from("stake"), poolAddress.toBuffer()], SINGLE_POOL_PROGRAM_ID);
|
|
21894
|
+
stakedCollatMap[address$2.toBase58()] = {
|
|
21895
|
+
bankAddress: address$2,
|
|
21896
|
+
mint: new PublicKey(metadata$2.mint),
|
|
21897
|
+
stakePoolAddress,
|
|
21898
|
+
poolAddress
|
|
21899
|
+
};
|
|
21900
|
+
solPools.push(stakePoolAddress.toBase58());
|
|
21901
|
+
mints.push(metadata$2.mint);
|
|
21902
|
+
}
|
|
21903
|
+
});
|
|
21904
|
+
const dataAis = await chunkedGetRawMultipleAccountInfoOrdered(program.provider.connection, [...mints, ...solPools]);
|
|
21905
|
+
const stakePoolsAis = dataAis.slice(mints.length).map((ai) => getStakeAccount(ai.data));
|
|
21906
|
+
const lstMintsAis = dataAis.slice(0, mints.length).map((mintAi) => MintLayout.decode(mintAi.data));
|
|
21907
|
+
const lstMintRecord = Object.fromEntries(mints.map((mint, i) => [mint, lstMintsAis[i]]));
|
|
21908
|
+
const solPoolsRecord = Object.fromEntries(solPools.map((poolKey, i) => [poolKey, stakePoolsAis[i]]));
|
|
21909
|
+
for (const index in stakedCollatMap) {
|
|
21910
|
+
const { bankAddress, mint, stakePoolAddress, poolAddress } = stakedCollatMap[index];
|
|
21911
|
+
const stakeAccount = solPoolsRecord[stakePoolAddress.toBase58()];
|
|
21912
|
+
const tokenSupply = lstMintRecord[mint.toBase58()].supply;
|
|
21913
|
+
const stakeActual = Number(stakeAccount.stake.delegation.stake);
|
|
21914
|
+
const oracle = priceInfos.get(bankAddress.toBase58());
|
|
21915
|
+
if (oracle) {
|
|
21916
|
+
const adjustPrice = (price, stakeActual$1, tokenSupply$1) => {
|
|
21917
|
+
return Number(tokenSupply$1) === 0 ? price : new BigNumber(price.toNumber() * (stakeActual$1 - LAMPORTS_PER_SOL) / Number(tokenSupply$1));
|
|
21918
|
+
};
|
|
21919
|
+
const adjustPriceComponent$1 = (priceComponent, stakeActual$1, tokenSupply$1) => ({
|
|
21920
|
+
price: adjustPrice(priceComponent.price, stakeActual$1, tokenSupply$1),
|
|
21921
|
+
confidence: priceComponent.confidence,
|
|
21922
|
+
lowestPrice: adjustPrice(priceComponent.lowestPrice, stakeActual$1, tokenSupply$1),
|
|
21923
|
+
highestPrice: adjustPrice(priceComponent.highestPrice, stakeActual$1, tokenSupply$1)
|
|
21924
|
+
});
|
|
21925
|
+
const oraclePrice = {
|
|
21926
|
+
timestamp: oracle.timestamp,
|
|
21927
|
+
priceRealtime: adjustPriceComponent$1(oracle.priceRealtime, stakeActual, tokenSupply),
|
|
21928
|
+
priceWeighted: adjustPriceComponent$1(oracle.priceWeighted, stakeActual, tokenSupply)
|
|
21929
|
+
};
|
|
21930
|
+
priceInfos.set(bankAddress.toBase58(), oraclePrice);
|
|
21931
|
+
}
|
|
22075
21932
|
}
|
|
22076
|
-
|
|
22077
|
-
|
|
22078
|
-
|
|
22079
|
-
|
|
22080
|
-
|
|
22081
|
-
|
|
22082
|
-
|
|
22083
|
-
|
|
22084
|
-
|
|
22085
|
-
|
|
22086
|
-
|
|
22087
|
-
|
|
21933
|
+
logger.debug({
|
|
21934
|
+
banksSize: banks.size,
|
|
21935
|
+
priceFeedsSize: priceInfos.size
|
|
21936
|
+
}, "[lendr:client] Fetched banks and price feeds");
|
|
21937
|
+
return {
|
|
21938
|
+
lendrGroup,
|
|
21939
|
+
banks,
|
|
21940
|
+
priceInfos,
|
|
21941
|
+
tokensData,
|
|
21942
|
+
feedIdMap,
|
|
21943
|
+
banksExtendedMetadata
|
|
21944
|
+
};
|
|
22088
21945
|
};
|
|
22089
|
-
}
|
|
22090
|
-
static
|
|
22091
|
-
|
|
22092
|
-
|
|
22093
|
-
|
|
22094
|
-
|
|
22095
|
-
|
|
22096
|
-
|
|
22097
|
-
|
|
22098
|
-
|
|
22099
|
-
|
|
22100
|
-
|
|
22101
|
-
logger.debug({ banksLength: bankAddresses.length }, "[lending:client] Using preloaded bank addresses, skipping gpa call");
|
|
22102
|
-
const bankAccountsData = await program.account.bank.fetchMultiple(bankAddresses, commitment);
|
|
22103
|
-
const banksRawData = [];
|
|
22104
|
-
for (let i = 0; i < bankAccountsData.length; i++) {
|
|
22105
|
-
if (bankAccountsData[i] === null) {
|
|
22106
|
-
continue;
|
|
21946
|
+
}
|
|
21947
|
+
static {
|
|
21948
|
+
this.fetchRawBanks = async ({ groupAddress, bankAddresses, program, logger = new NoopLogger(), commitment }) => {
|
|
21949
|
+
if (!bankAddresses || bankAddresses.length === 0) {
|
|
21950
|
+
const bankAccountsData$1 = await program.account.bank.all([{ memcmp: {
|
|
21951
|
+
offset: 8 + 32 + 1,
|
|
21952
|
+
bytes: groupAddress.toBase58()
|
|
21953
|
+
} }]);
|
|
21954
|
+
return bankAccountsData$1.map((account) => ({
|
|
21955
|
+
address: account.publicKey,
|
|
21956
|
+
data: account.account
|
|
21957
|
+
}));
|
|
22107
21958
|
}
|
|
22108
|
-
|
|
22109
|
-
|
|
22110
|
-
|
|
22111
|
-
|
|
22112
|
-
|
|
22113
|
-
|
|
22114
|
-
|
|
21959
|
+
logger.debug({ banksLength: bankAddresses.length }, "[lending:client] Using preloaded bank addresses, skipping gpa call");
|
|
21960
|
+
const bankAccountsData = await program.account.bank.fetchMultiple(bankAddresses, commitment);
|
|
21961
|
+
const banksRawData = [];
|
|
21962
|
+
for (let i = 0; i < bankAccountsData.length; i++) {
|
|
21963
|
+
if (bankAccountsData[i] === null) {
|
|
21964
|
+
continue;
|
|
21965
|
+
}
|
|
21966
|
+
banksRawData.push({
|
|
21967
|
+
address: bankAddresses[i],
|
|
21968
|
+
data: bankAccountsData[i]
|
|
21969
|
+
});
|
|
21970
|
+
}
|
|
21971
|
+
return banksRawData;
|
|
21972
|
+
};
|
|
21973
|
+
}
|
|
22115
21974
|
async reload() {
|
|
22116
21975
|
const { lendrGroup, banks, priceInfos, tokensData, feedIdMap, banksExtendedMetadata } = await LendrClient.fetchGroupData({
|
|
22117
21976
|
connection: this.program.provider.connection,
|
|
@@ -22631,4 +22490,4 @@ var client_default = LendrClient;
|
|
|
22631
22490
|
|
|
22632
22491
|
//#endregion
|
|
22633
22492
|
export { AccountFlags, AccountType, AssetTag, BUNDLE_TX_SIZE$1 as BUNDLE_TX_SIZE, Balance, Bank, BankConfig, BankVaultType, CustomNumberFormat, DEFAULT_CLUSTER, DEFAULT_COMMITMENT, DEFAULT_CONFIRM_OPTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_PROCESS_TX_OPTS, DEFAULT_PROCESS_TX_STRATEGY, DEFAULT_SEND_OPTS, DISABLED_FLAG, DUMMY_USDC_MINT, EmodeEntryFlags, EmodeFlags, EmodeImpactStatus, EmodeSettings, EmodeTag, FLASHLOAN_ENABLED_FLAG, GROUP_PK, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, HealthCacheSimulationError, JUPITER_V6_PROGRAM, LENDR_IDL, LENDR_PROGRAM, LENDR_SPONSORED_SHARD_ID, LST_MINT, LUT_PROGRAM_AUTHORITY_INDEX, LendrAccount, LendrAccountWrapper, LendrGroup, LendrRequirementType, MAX_ACCOUNT_KEYS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE$1 as MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, MetadataService, NodeWallet, OperationalState, OracleSetup, 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, PRIORITY_TX_SIZE$1 as PRIORITY_TX_SIZE, PROGRAM_ID, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, PriceBias, PriotitizationFeeLevels, ProcessTransactionError, ProcessTransactionErrorType, RiskTier, SINGLE_POOL_PROGRAM_ID, SKIP_SIMULATION, STAKE_CONFIG_ID$1 as STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, TRANSFER_ACCOUNT_AUTHORITY_FLAG, TransactionArenaKeyMap, TransactionConfigMap, TransactionType, USDC_DECIMALS, USDC_MINT, WSOL_EXTENDED_METADATA, WSOL_MINT, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankExtendedMetadataOverrideSchema, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, buildFeedIdMap, calculateApyFromInterest, calculateInterestFromApy, ceil, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, chunks, clampedNumeralFormatter, client_default, compareInstructions, composeRemainingAccounts, computeAccountValue, computeActiveEmodePairs, computeAssetUsdValue, computeBalanceUsdValue, computeBaseInterestRate, computeClaimedEmissions, computeEmodeImpacts, computeFreeCollateral, computeFreeCollateralLegacy, computeHealthAccountMetas, computeHealthCheckAccounts, computeHealthComponents, computeHealthComponentsLegacy, computeHealthComponentsWithoutBiasLegacy, computeInterestRates, computeLiabilityUsdValue, computeLoopingParams, computeMaxLeverage, computeNetApy, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, confirmTransaction, crankPythOracleIx, createLendrAccountTx, createUpdateFeedIx, decodeAccountRaw, decodeBankRaw, decodeComputeBudgetInstruction, decodeInstruction, decompileV0Transaction, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToLendrAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, dynamicNumeralFormatter, emodeSettingsRawToDto, feedIdToString, fetchBanksExtendedMetadata, fetchLendrAccountAddresses, fetchLendrAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchPythOracleData, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleData, findOracleKey, findPythPushOracleAddress, floor, freezeBankConfigIx, getAccountKeys, getActiveAccountFlags, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getActiveStaleBanks, getAssetQuantity, getAssetShares, getAssetWeight, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getCalculatedPrioritizationFeeByPercentile, getComputeBudgetUnits, getConfig, getConfigPda, getHealthCacheStatusDescription, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getMaxPrioritizationFeeByPercentile, getMeanPrioritizationFeeByPercentile, getMedianPrioritizationFeeByPercentile, getMinPrioritizationFeeByPercentile, getPrice, getPriceFeedAccountForProgram, getPriceWithConfidence, getRecentPrioritizationFeesByPercentile, getTotalAssetQuantity, getTotalLiabilityQuantity, getTreasuryPda, getTxSize, getValueInsensitive, groupToDto, groupedNumberFormatter, groupedNumberFormatterDyn, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, instructions_default, isV0Tx, isWeightedPrice, legacyTxToV0Tx, lendrAccountToDto, makeAddPermissionlessStakedBankIx, makeBundleTipIx, makeDisableAccountTransferForAccountIx, makeDisableFlashLoanForAccountIx, makeEnableAccountTransferForAccountIx, makeEnableFlashLoanForAccountIx, makePoolAddBankIx, makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx, makeTxPriorityIx, makeUnwrapSolIx, makeVersionedTransaction, makeWrapSolIxs, median, metadataSchema, microLamportsToUi, nativeToUi, numeralFormatter, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRaw, parseBanksMetadataOverride, parseEmodeTag, parseErrorFromLogs, parseLendrAccountRaw, parseOperationalState, parseOraclePriceData, parseOracleSetup, parseRiskTier, parseTransactionError, percentFormatter, percentFormatterDyn, percentFormatterMod, processTransactions, replaceV0TxBlockhash, replaceV0TxInstructions, serializeBankConfigOpt, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, setTimeoutPromise, shortenAddress, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateTransactions, sleep, splitInstructionsToFitTransactions, toBankConfigDto, toBankDto, toBigNumber, toEmodeSettingsDto, toInterestRateConfigDto, toNumber, tokenPriceFormatter, uiToMicroLamports, uiToNative, uiToNativeBigNumber, updateV0Tx, usdFormatter, usdFormatterDyn, validatorStakeGroupToDto, vendor_exports, wrappedI80F48toBigNumber };
|
|
22634
|
-
//# sourceMappingURL=src-
|
|
22493
|
+
//# sourceMappingURL=src-B_34n__D.mjs.map
|