@pyron-finance/pyron-client 1.0.6 → 1.0.8
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/README.md +15 -0
- package/dist/common/index.cjs +68 -0
- package/dist/common/{index.d.mts → index.d.cts} +1 -1
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +2 -67
- package/dist/{common-BDe3qLlR.js → common-70fo5HbS.cjs} +3 -2
- package/dist/{common-BtUtEjzZ.mjs → common-DSb1joUt.js} +5 -4
- package/dist/common-DSb1joUt.js.map +1 -0
- package/dist/{index-Bx-zRXFQ.d.ts → index-AiXygYKy.d.ts} +66 -68
- package/dist/index-AiXygYKy.d.ts.map +1 -0
- package/dist/{index-BAC0ffmc.d.mts → index-CMK6wLry.d.cts} +57 -55
- package/dist/index-CMK6wLry.d.cts.map +1 -0
- package/dist/{index.mjs → index.cjs} +947 -727
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +727 -946
- package/dist/index.js.map +1 -0
- package/package.json +28 -4
- package/dist/common/index.mjs +0 -3
- package/dist/common-BtUtEjzZ.mjs.map +0 -1
- package/dist/index-BAC0ffmc.d.mts.map +0 -1
- package/dist/index-Bx-zRXFQ.d.ts.map +0 -1
- package/dist/index.d.mts +0 -2
- package/dist/index.mjs.map +0 -1
- /package/dist/{chunk-B9dir_RE.mjs → chunk-Cl8Af3a2.js} +0 -0
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import * as anchor from "@coral-xyz/anchor";
|
|
2
|
-
import { Address, AnchorProvider, BN, BorshCoder, Idl, Instruction, Program, Provider } from "@coral-xyz/anchor";
|
|
3
1
|
import * as _solana_web3_js25 from "@solana/web3.js";
|
|
4
2
|
import { AccountInfo, AccountMeta, AddressLookupTableAccount, Blockhash, Commitment, ConfirmOptions, Connection, GetRecentPrioritizationFeesConfig, Keypair, PublicKey, RecentPrioritizationFees, SendOptions, Signer, SimulatedTransactionResponse, Transaction, TransactionError, TransactionInstruction, TransactionMessage, TransactionSignature, VersionedTransaction } from "@solana/web3.js";
|
|
3
|
+
import * as anchor from "@coral-xyz/anchor";
|
|
4
|
+
import { Address, AnchorProvider, BorshCoder, Idl, Instruction, Program, Provider } from "@coral-xyz/anchor";
|
|
5
|
+
import { SignerWalletAdapter } from "@solana/wallet-adapter-base";
|
|
5
6
|
import BigNumber from "bignumber.js";
|
|
6
|
-
import BN
|
|
7
|
-
import { Storage } from "unstorage";
|
|
7
|
+
import BN from "bn.js";
|
|
8
8
|
import { z } from "zod";
|
|
9
|
-
import { z as z$1 } from "zod/v4-mini";
|
|
10
|
-
import { SignerWalletAdapter } from "@solana/wallet-adapter-base";
|
|
11
9
|
import * as _fogo_sessions_sdk0 from "@fogo/sessions-sdk";
|
|
12
10
|
import { TransactionResult } from "@fogo/sessions-sdk";
|
|
11
|
+
import { Storage } from "unstorage";
|
|
12
|
+
import { z as z$1 } from "zod/v4-mini";
|
|
13
13
|
|
|
14
|
+
//#region rolldown:runtime
|
|
15
|
+
//#endregion
|
|
14
16
|
//#region src/common/types.d.ts
|
|
15
17
|
type Program$1<T extends Idl> = Omit<Program<T>, "provider"> & {
|
|
16
18
|
provider: AnchorProvider;
|
|
@@ -6722,12 +6724,12 @@ interface BankRaw {
|
|
|
6722
6724
|
feeVaultBump: number;
|
|
6723
6725
|
feeVaultAuthorityBump: number;
|
|
6724
6726
|
collectedGroupFeesOutstanding: WrappedI80F48;
|
|
6725
|
-
lastUpdate: BN
|
|
6727
|
+
lastUpdate: BN;
|
|
6726
6728
|
config: BankConfigRaw;
|
|
6727
6729
|
totalLiabilityShares: WrappedI80F48;
|
|
6728
6730
|
totalAssetShares: WrappedI80F48;
|
|
6729
|
-
flags: BN
|
|
6730
|
-
emissionsRate: BN
|
|
6731
|
+
flags: BN;
|
|
6732
|
+
emissionsRate: BN;
|
|
6731
6733
|
emissionsRemaining: WrappedI80F48;
|
|
6732
6734
|
emissionsMint: PublicKey;
|
|
6733
6735
|
emode: EmodeSettingsRaw;
|
|
@@ -6737,15 +6739,15 @@ interface BankConfigRaw {
|
|
|
6737
6739
|
assetWeightMaint: WrappedI80F48;
|
|
6738
6740
|
liabilityWeightInit: WrappedI80F48;
|
|
6739
6741
|
liabilityWeightMaint: WrappedI80F48;
|
|
6740
|
-
depositLimit: BN
|
|
6742
|
+
depositLimit: BN;
|
|
6741
6743
|
interestRateConfig: InterestRateConfigRaw;
|
|
6742
6744
|
operationalState: OperationalStateRaw;
|
|
6743
6745
|
oracleSetup: OracleSetupRaw;
|
|
6744
6746
|
oracleKeys: PublicKey[];
|
|
6745
|
-
borrowLimit: BN
|
|
6747
|
+
borrowLimit: BN;
|
|
6746
6748
|
riskTier: RiskTierRaw;
|
|
6747
6749
|
assetTag: number;
|
|
6748
|
-
totalAssetValueInitLimit: BN
|
|
6750
|
+
totalAssetValueInitLimit: BN;
|
|
6749
6751
|
oracleMaxAge: number;
|
|
6750
6752
|
}
|
|
6751
6753
|
interface BankConfigOptRaw {
|
|
@@ -6753,15 +6755,15 @@ interface BankConfigOptRaw {
|
|
|
6753
6755
|
assetWeightMaint: WrappedI80F48 | null;
|
|
6754
6756
|
liabilityWeightInit: WrappedI80F48 | null;
|
|
6755
6757
|
liabilityWeightMaint: WrappedI80F48 | null;
|
|
6756
|
-
depositLimit: BN
|
|
6757
|
-
borrowLimit: BN
|
|
6758
|
+
depositLimit: BN | null;
|
|
6759
|
+
borrowLimit: BN | null;
|
|
6758
6760
|
riskTier: {
|
|
6759
6761
|
collateral: {};
|
|
6760
6762
|
} | {
|
|
6761
6763
|
isolated: {};
|
|
6762
6764
|
} | null;
|
|
6763
6765
|
assetTag: number | null;
|
|
6764
|
-
totalAssetValueInitLimit: BN
|
|
6766
|
+
totalAssetValueInitLimit: BN | null;
|
|
6765
6767
|
interestRateConfig: InterestRateConfigRaw | null;
|
|
6766
6768
|
operationalState: {
|
|
6767
6769
|
paused: {};
|
|
@@ -6776,8 +6778,8 @@ interface BankConfigOptRaw {
|
|
|
6776
6778
|
}
|
|
6777
6779
|
interface BankConfigCompactRaw extends Omit<BankConfigRaw, "oracleKeys" | "oracle" | "oracleSetup"> {
|
|
6778
6780
|
oracleMaxAge: number;
|
|
6779
|
-
padding0?: BN
|
|
6780
|
-
padding1?: BN
|
|
6781
|
+
padding0?: BN[];
|
|
6782
|
+
padding1?: BN[];
|
|
6781
6783
|
}
|
|
6782
6784
|
type RiskTierRaw = {
|
|
6783
6785
|
collateral: {};
|
|
@@ -6826,8 +6828,8 @@ interface EmodeEntryRaw {
|
|
|
6826
6828
|
}
|
|
6827
6829
|
interface EmodeSettingsRaw {
|
|
6828
6830
|
emodeTag: number;
|
|
6829
|
-
timestamp: BN
|
|
6830
|
-
flags: BN
|
|
6831
|
+
timestamp: BN;
|
|
6832
|
+
flags: BN;
|
|
6831
6833
|
emodeConfig: EmodeConfigRaw;
|
|
6832
6834
|
}
|
|
6833
6835
|
interface EmodeConfigRaw {
|
|
@@ -7051,7 +7053,7 @@ declare function makeInitLendrAccountWithSessionIx(ldProgram: LendrProgram, {
|
|
|
7051
7053
|
lendrGroup: PublicKey;
|
|
7052
7054
|
session: EstablishedSessionState;
|
|
7053
7055
|
feePayer: PublicKey;
|
|
7054
|
-
}, accountSeed: BN
|
|
7056
|
+
}, accountSeed: BN): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7055
7057
|
declare function makeDepositIx(ldProgram: LendrProgram, accounts: {
|
|
7056
7058
|
lendrAccount: PublicKey;
|
|
7057
7059
|
signerTokenAccount: PublicKey;
|
|
@@ -7061,11 +7063,11 @@ declare function makeDepositIx(ldProgram: LendrProgram, accounts: {
|
|
|
7061
7063
|
authority?: PublicKey;
|
|
7062
7064
|
liquidityVault?: PublicKey;
|
|
7063
7065
|
}, args: {
|
|
7064
|
-
amount: BN
|
|
7066
|
+
amount: BN;
|
|
7065
7067
|
depositUpToLimit?: boolean;
|
|
7066
7068
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7067
7069
|
declare function makeDepositWithSessionIx(ldProgram: LendrProgram, accounts: LendingAccountDepositOrRepayWithSessionAccounts, args: {
|
|
7068
|
-
amount: BN
|
|
7070
|
+
amount: BN;
|
|
7069
7071
|
depositUpToLimit?: boolean;
|
|
7070
7072
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7071
7073
|
declare function makeRepayIx(ldProgram: LendrProgram, accounts: {
|
|
@@ -7077,11 +7079,11 @@ declare function makeRepayIx(ldProgram: LendrProgram, accounts: {
|
|
|
7077
7079
|
authority?: PublicKey;
|
|
7078
7080
|
liquidityVault?: PublicKey;
|
|
7079
7081
|
}, args: {
|
|
7080
|
-
amount: BN
|
|
7082
|
+
amount: BN;
|
|
7081
7083
|
repayAll?: boolean;
|
|
7082
7084
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7083
7085
|
declare function makeRepayWithSessionIx(ldProgram: LendrProgram, accounts: LendingAccountDepositOrRepayWithSessionAccounts, args: {
|
|
7084
|
-
amount: BN
|
|
7086
|
+
amount: BN;
|
|
7085
7087
|
repayAll?: boolean;
|
|
7086
7088
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7087
7089
|
declare function makeWithdrawIx(ldProgram: LendrProgram, accounts: {
|
|
@@ -7092,11 +7094,11 @@ declare function makeWithdrawIx(ldProgram: LendrProgram, accounts: {
|
|
|
7092
7094
|
group?: PublicKey;
|
|
7093
7095
|
authority?: PublicKey;
|
|
7094
7096
|
}, args: {
|
|
7095
|
-
amount: BN
|
|
7097
|
+
amount: BN;
|
|
7096
7098
|
withdrawAll?: boolean;
|
|
7097
7099
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7098
7100
|
declare function makeWithdrawWithSessionIx(ldProgram: LendrProgram, accounts: LendingAccountWithdrawOrBorrowWithSessionAccounts, args: {
|
|
7099
|
-
amount: BN
|
|
7101
|
+
amount: BN;
|
|
7100
7102
|
withdrawAll?: boolean;
|
|
7101
7103
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7102
7104
|
declare function makeBorrowIx(ldProgram: LendrProgram, accounts: {
|
|
@@ -7107,10 +7109,10 @@ declare function makeBorrowIx(ldProgram: LendrProgram, accounts: {
|
|
|
7107
7109
|
group?: PublicKey;
|
|
7108
7110
|
authority?: PublicKey;
|
|
7109
7111
|
}, args: {
|
|
7110
|
-
amount: BN
|
|
7112
|
+
amount: BN;
|
|
7111
7113
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7112
7114
|
declare function makeBorrowWithSessionIx(ldProgram: LendrProgram, accounts: LendingAccountWithdrawOrBorrowWithSessionAccounts, args: {
|
|
7113
|
-
amount: BN
|
|
7115
|
+
amount: BN;
|
|
7114
7116
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7115
7117
|
declare function makeLendingAccountLiquidateIx(ldrProgram: LendrProgram, accounts: {
|
|
7116
7118
|
assetBank: PublicKey;
|
|
@@ -7121,7 +7123,7 @@ declare function makeLendingAccountLiquidateIx(ldrProgram: LendrProgram, account
|
|
|
7121
7123
|
group?: PublicKey;
|
|
7122
7124
|
authority?: PublicKey;
|
|
7123
7125
|
}, args: {
|
|
7124
|
-
assetAmount: BN
|
|
7126
|
+
assetAmount: BN;
|
|
7125
7127
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7126
7128
|
declare function makelendingAccountWithdrawEmissionIx(ldrProgram: LendrProgram, accounts: {
|
|
7127
7129
|
lendrAccount: PublicKey;
|
|
@@ -7137,14 +7139,14 @@ declare function makeSetAccountFlagIx(ldrProgram: LendrProgram, accounts: {
|
|
|
7137
7139
|
group?: PublicKey;
|
|
7138
7140
|
admin?: PublicKey;
|
|
7139
7141
|
}, args: {
|
|
7140
|
-
flag: BN
|
|
7142
|
+
flag: BN;
|
|
7141
7143
|
}): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7142
7144
|
declare function makeUnsetAccountFlagIx(ldrProgram: LendrProgram, accounts: {
|
|
7143
7145
|
lendrAccount: PublicKey;
|
|
7144
7146
|
group?: PublicKey;
|
|
7145
7147
|
admin?: PublicKey;
|
|
7146
7148
|
}, args: {
|
|
7147
|
-
flag: BN
|
|
7149
|
+
flag: BN;
|
|
7148
7150
|
}): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7149
7151
|
declare function makePoolConfigureBankIx$1(ldrProgram: LendrProgram, accounts: {
|
|
7150
7152
|
bank: PublicKey;
|
|
@@ -7158,7 +7160,7 @@ declare function makeBeginFlashLoanIx(ldrProgram: LendrProgram, accounts: {
|
|
|
7158
7160
|
authority?: PublicKey;
|
|
7159
7161
|
ixsSysvar?: PublicKey;
|
|
7160
7162
|
}, args: {
|
|
7161
|
-
endIndex: BN
|
|
7163
|
+
endIndex: BN;
|
|
7162
7164
|
}): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7163
7165
|
declare function makeEndFlashLoanIx(ldrProgram: LendrProgram, accounts: {
|
|
7164
7166
|
lendrAccount: PublicKey;
|
|
@@ -7234,7 +7236,7 @@ remainingAccounts: AccountMeta[] | undefined, args: {
|
|
|
7234
7236
|
* will be created at the address {@link findPoolAddress} with the default
|
|
7235
7237
|
* bump.
|
|
7236
7238
|
*/
|
|
7237
|
-
seed?: BN
|
|
7239
|
+
seed?: BN;
|
|
7238
7240
|
}): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7239
7241
|
declare function makePoolAddBankIx$1(ldProgram: LendrProgram, accounts: {
|
|
7240
7242
|
lendrGroup: PublicKey;
|
|
@@ -7360,7 +7362,7 @@ declare const SYSTEM_PROGRAM_ID: PublicKey;
|
|
|
7360
7362
|
declare const SYSVAR_RENT_ID: PublicKey;
|
|
7361
7363
|
declare const SYSVAR_CLOCK_ID: PublicKey;
|
|
7362
7364
|
declare const SYSVAR_STAKE_HISTORY_ID: PublicKey;
|
|
7363
|
-
declare const STAKE_CONFIG_ID
|
|
7365
|
+
declare const STAKE_CONFIG_ID: PublicKey;
|
|
7364
7366
|
//# sourceMappingURL=programs.d.ts.map
|
|
7365
7367
|
//#endregion
|
|
7366
7368
|
//#region src/errors.d.ts
|
|
@@ -8060,7 +8062,7 @@ declare class LendrAccount implements LendrAccountType {
|
|
|
8060
8062
|
userTokenAtaPk: PublicKey;
|
|
8061
8063
|
mintData: MintData;
|
|
8062
8064
|
ixArguments: {
|
|
8063
|
-
amount: BN
|
|
8065
|
+
amount: BN;
|
|
8064
8066
|
};
|
|
8065
8067
|
remainingAccounts: {
|
|
8066
8068
|
pubkey: PublicKey;
|
|
@@ -8075,7 +8077,7 @@ declare class LendrAccount implements LendrAccountType {
|
|
|
8075
8077
|
mintData: MintData;
|
|
8076
8078
|
userAta: PublicKey;
|
|
8077
8079
|
ixArguments: {
|
|
8078
|
-
amount: BN
|
|
8080
|
+
amount: BN;
|
|
8079
8081
|
repayAll: boolean;
|
|
8080
8082
|
};
|
|
8081
8083
|
remainingAccounts: PublicKey[];
|
|
@@ -8986,11 +8988,11 @@ declare function parseOracleSetup(oracleSetupRaw: OracleSetupRaw): OracleSetup;
|
|
|
8986
8988
|
/**
|
|
8987
8989
|
* Get all active EMode flags as an array of flag names
|
|
8988
8990
|
*/
|
|
8989
|
-
declare function getActiveEmodeFlags(flags: BN
|
|
8991
|
+
declare function getActiveEmodeFlags(flags: BN): EmodeFlags[];
|
|
8990
8992
|
/**
|
|
8991
8993
|
* Check if a specific EMode flag is set
|
|
8992
8994
|
*/
|
|
8993
|
-
declare function hasEmodeFlag(flags: BN
|
|
8995
|
+
declare function hasEmodeFlag(flags: BN, flag: number): boolean;
|
|
8994
8996
|
/**
|
|
8995
8997
|
* Get all active EMode entry flags as an array of flag names
|
|
8996
8998
|
*/
|
|
@@ -9245,7 +9247,7 @@ declare class LendrClient {
|
|
|
9245
9247
|
* @returns transaction instruction
|
|
9246
9248
|
*/
|
|
9247
9249
|
makeCreateLendrAccountIx(lendrAccountPk: PublicKey): Promise<InstructionsWrapper>;
|
|
9248
|
-
makeCreateLendrAccountWithSessionIx(session: EstablishedSessionState, accountSeed: BN
|
|
9250
|
+
makeCreateLendrAccountWithSessionIx(session: EstablishedSessionState, accountSeed: BN): Promise<InstructionsWrapper>;
|
|
9249
9251
|
/**
|
|
9250
9252
|
* Create a new lendr account under the authority of the user.
|
|
9251
9253
|
*
|
|
@@ -9288,7 +9290,7 @@ declare class LendrClient {
|
|
|
9288
9290
|
}): Promise<SolanaTransaction>;
|
|
9289
9291
|
getLatestBlockHashForSure(): Promise<string>;
|
|
9290
9292
|
createVersionTransaction(instructions: TransactionInstruction[], payerKey: PublicKey, signers?: Array<Signer>, extraMetaData?: ExtendedTransactionProperties): Promise<VersionedTransaction>;
|
|
9291
|
-
createLendrAccountWithSessionTx(session: EstablishedSessionState, accountSeed: BN
|
|
9293
|
+
createLendrAccountWithSessionTx(session: EstablishedSessionState, accountSeed: BN): Promise<VersionedTransaction>;
|
|
9292
9294
|
/**
|
|
9293
9295
|
* Create transaction instruction to initialize a new group.
|
|
9294
9296
|
*
|
|
@@ -9480,7 +9482,7 @@ interface BalanceRaw {
|
|
|
9480
9482
|
assetShares: WrappedI80F48;
|
|
9481
9483
|
liabilityShares: WrappedI80F48;
|
|
9482
9484
|
emissionsOutstanding: WrappedI80F48;
|
|
9483
|
-
lastUpdate: BN
|
|
9485
|
+
lastUpdate: BN;
|
|
9484
9486
|
}
|
|
9485
9487
|
interface HealthCacheRaw {
|
|
9486
9488
|
assetValue: WrappedI80F48;
|
|
@@ -9489,7 +9491,7 @@ interface HealthCacheRaw {
|
|
|
9489
9491
|
liabilityValueMaint: WrappedI80F48;
|
|
9490
9492
|
assetValueEquity: WrappedI80F48;
|
|
9491
9493
|
liabilityValueEquity: WrappedI80F48;
|
|
9492
|
-
timestamp: BN
|
|
9494
|
+
timestamp: BN;
|
|
9493
9495
|
flags: number;
|
|
9494
9496
|
prices: number[][];
|
|
9495
9497
|
errIndex: number;
|
|
@@ -9504,10 +9506,10 @@ interface LendrAccountRaw {
|
|
|
9504
9506
|
lendingAccount: {
|
|
9505
9507
|
balances: BalanceRaw[];
|
|
9506
9508
|
};
|
|
9507
|
-
accountFlags: BN
|
|
9509
|
+
accountFlags: BN;
|
|
9508
9510
|
emissionsDestinationAccount: PublicKey;
|
|
9509
9511
|
healthCache: HealthCacheRaw;
|
|
9510
|
-
padding0?: BN
|
|
9512
|
+
padding0?: BN[];
|
|
9511
9513
|
}
|
|
9512
9514
|
type LendrRequirementTypeRaw = {
|
|
9513
9515
|
initial: {};
|
|
@@ -9645,11 +9647,11 @@ declare function parseLendrAccountRaw(lendrAccountPk: PublicKey, accountData: Le
|
|
|
9645
9647
|
/**
|
|
9646
9648
|
* Get all active account flags as an array of flag names
|
|
9647
9649
|
*/
|
|
9648
|
-
declare function getActiveAccountFlags(flags: BN
|
|
9650
|
+
declare function getActiveAccountFlags(flags: BN): AccountFlags[];
|
|
9649
9651
|
/**
|
|
9650
9652
|
* Check if an account flag is set
|
|
9651
9653
|
*/
|
|
9652
|
-
declare function hasAccountFlag(flags: BN
|
|
9654
|
+
declare function hasAccountFlag(flags: BN, flag: number): boolean;
|
|
9653
9655
|
/**
|
|
9654
9656
|
* Convert on-chain health cache flags (BN) to an array of HealthCacheFlags enum values
|
|
9655
9657
|
*
|
|
@@ -9690,7 +9692,7 @@ declare const fetchLendrAccountData: (program: LendrProgram, lendrAccountPk: Pub
|
|
|
9690
9692
|
/**
|
|
9691
9693
|
* Convert numeric flag to BN for Solana compatibility
|
|
9692
9694
|
*/
|
|
9693
|
-
declare function accountFlagToBN(flag: AccountFlags): BN
|
|
9695
|
+
declare function accountFlagToBN(flag: AccountFlags): BN;
|
|
9694
9696
|
declare function lendrAccountToDto(lendrAccount: LendrAccountType): LendrAccountTypeDto;
|
|
9695
9697
|
declare function balanceToDto(balance: BalanceType): BalanceTypeDto;
|
|
9696
9698
|
declare function healthCacheToDto(healthCache: HealthCacheType): HealthCacheTypeDto;
|
|
@@ -9723,8 +9725,8 @@ type LendrGroupTypeDto = {
|
|
|
9723
9725
|
//#region src/services/group/types/raw-group.types.d.ts
|
|
9724
9726
|
interface LendrGroupRaw {
|
|
9725
9727
|
admin: PublicKey;
|
|
9726
|
-
padding0: BN
|
|
9727
|
-
padding1: BN
|
|
9728
|
+
padding0: BN[];
|
|
9729
|
+
padding1: BN[];
|
|
9728
9730
|
}
|
|
9729
9731
|
//#endregion
|
|
9730
9732
|
//#region src/services/group/utils/deserialize.utils.d.ts
|
|
@@ -10040,16 +10042,16 @@ declare const bankExtendedMetadataOverrideSchema: z.ZodObject<{
|
|
|
10040
10042
|
}, "strip", z.ZodTypeAny, {
|
|
10041
10043
|
symbol?: string | undefined;
|
|
10042
10044
|
name?: string | undefined;
|
|
10043
|
-
mint?: string | undefined;
|
|
10044
|
-
address?: string | undefined;
|
|
10045
10045
|
logoURI?: string | undefined;
|
|
10046
|
+
address?: string | undefined;
|
|
10047
|
+
mint?: string | undefined;
|
|
10046
10048
|
validatorVoteAccount?: string | undefined;
|
|
10047
10049
|
}, {
|
|
10048
10050
|
symbol?: string | undefined;
|
|
10049
10051
|
name?: string | undefined;
|
|
10050
|
-
mint?: string | undefined;
|
|
10051
|
-
address?: string | undefined;
|
|
10052
10052
|
logoURI?: string | undefined;
|
|
10053
|
+
address?: string | undefined;
|
|
10054
|
+
mint?: string | undefined;
|
|
10053
10055
|
validatorVoteAccount?: string | undefined;
|
|
10054
10056
|
}>;
|
|
10055
10057
|
type BankExtendedMetadataOverride = z.infer<typeof bankExtendedMetadataOverrideSchema>;
|
|
@@ -10097,5 +10099,5 @@ type BankMetadataMap = {
|
|
|
10097
10099
|
//# sourceMappingURL=bank-metadata.d.ts.map
|
|
10098
10100
|
|
|
10099
10101
|
//#endregion
|
|
10100
|
-
export { AccountFlags, AccountType, ActionEmodeImpact, ActiveStakePoolMap, Amount, AssetTag, BUNDLE_TX_SIZE$1 as BUNDLE_TX_SIZE, Balance, BalanceRaw, BalanceType, BalanceTypeDto, Bank, BankAddress, BankConfig, type BankConfigCompactRaw, BankConfigDto, BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, BankConfigRawDto, BankConfigType, BankExtendedMetadata, BankExtendedMetadataMap, BankExtendedMetadataOverride, BankMap, BankMetadata, BankMetadataMap, type BankRaw, BankRawDto, BankType, BankTypeDto, BankVaultType, BanksExtendedMetadataOverrideMap, BroadcastMethodType, 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, EmodeConfigRaw, EmodeConfigRawDto, EmodeEntry, EmodeEntryDto, EmodeEntryFlags, EmodeFlags, EmodeImpact, EmodeImpactStatus, EmodePair, EmodeSettings, EmodeSettingsDto, EmodeSettingsRaw, EmodeSettingsRawDto, EmodeSettingsType, EmodeTag, Environment, ExtendedTransaction, ExtendedTransactionProperties, ExtendedV0Transaction, FLASHLOAN_ENABLED_FLAG, FetchGroupDataFn, FlashLoanArgs, FlashloanActionResult, FogoMetadataService, GROUP_PK, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, HealthCacheRaw, HealthCacheSimulationError, HealthCacheType, HealthCacheTypeDto, IMetadataService, InstructionsWrapper, InterestRateConfig, InterestRateConfigDto, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, LENDR_IDL, LENDR_PROGRAM, LENDR_SPONSORED_SHARD_ID, LST_MINT, LUT_PROGRAM_AUTHORITY_INDEX, LendingAccountDepositOrRepayWithSessionAccounts, LendingAccountWithdrawOrBorrowWithSessionAccounts, LendrAccount, LendrAccountRaw, LendrAccountType, LendrAccountTypeDto, LendrAccountWrapper, LendrClient, LendrClientFetchOptions, LendrClientOptions, LendrClientProps, LendrConfig, LendrGroup, type LendrGroupRaw, LendrGroupType, LendrGroupTypeDto, LendrIdlType, LendrProgram, LendrRequirementType, LendrRequirementTypeRaw, LogFn, LoopProps, LoopTxProps, MAX_ACCOUNT_KEYS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE$1 as MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, MakeBorrowIxOpts, MakeBorrowWithSessionIxOpts, MakeDepositIxOpts, MakeDepositWithSessionIxOpts, MakeRepayIxOpts, MakeRepayWithSessionIxOpts, MakeWithdrawIxOpts, MakeWithdrawWithSessionIxOpts, MaxCapType, MintData, MintDataMap, NodeWallet, OperationalState, type OperationalStateRaw, OracleConfigOpt, type OracleConfigOptRaw, OraclePrice, OraclePriceDto, OraclePriceMap, OracleSetup, type OracleSetupRaw, 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, PriceWithConfidence, PriceWithConfidenceDto, PriorityFees, PriotitizationFeeLevels, ProcessTransactionError, ProcessTransactionErrorType, ProcessTransactionOpts, ProcessTransactionStrategy, ProcessTransactionsClientOpts, Program$1 as Program, ProgramError, ProgramErrorWithDescription, ProgramReadonly, PythPushFeedIdMap, RepayWithCollateralProps, RepayWithCollateralTxProps, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, SKIP_SIMULATION, STAKE_CONFIG_ID
|
|
10101
|
-
//# sourceMappingURL=index-
|
|
10102
|
+
export { AccountFlags, AccountType, ActionEmodeImpact, ActiveStakePoolMap, Amount, AssetTag, BUNDLE_TX_SIZE$1 as BUNDLE_TX_SIZE, Balance, BalanceRaw, BalanceType, BalanceTypeDto, Bank, BankAddress, BankConfig, type BankConfigCompactRaw, BankConfigDto, BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, BankConfigRawDto, BankConfigType, BankExtendedMetadata, BankExtendedMetadataMap, BankExtendedMetadataOverride, BankMap, BankMetadata, BankMetadataMap, type BankRaw, BankRawDto, BankType, BankTypeDto, BankVaultType, BanksExtendedMetadataOverrideMap, BroadcastMethodType, 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, DataFetcher, EmodeConfigRaw, EmodeConfigRawDto, EmodeEntry, EmodeEntryDto, EmodeEntryFlags, EmodeFlags, EmodeImpact, EmodeImpactStatus, EmodePair, EmodeSettings, EmodeSettingsDto, EmodeSettingsRaw, EmodeSettingsRawDto, EmodeSettingsType, EmodeTag, Environment, ExtendedTransaction, ExtendedTransactionProperties, ExtendedV0Transaction, FLASHLOAN_ENABLED_FLAG, FetchGroupDataFn, FetchRawBanksArgs, FlashLoanArgs, FlashloanActionResult, FogoMetadataService, GROUP_PK, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, HealthCacheRaw, HealthCacheSimulationError, HealthCacheType, HealthCacheTypeDto, IMetadataService, InstructionsWrapper, InterestRateConfig, InterestRateConfigDto, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, LENDR_IDL, LENDR_PROGRAM, LENDR_SPONSORED_SHARD_ID, LST_MINT, LUT_PROGRAM_AUTHORITY_INDEX, LendingAccountDepositOrRepayWithSessionAccounts, LendingAccountWithdrawOrBorrowWithSessionAccounts, LendrAccount, LendrAccountRaw, LendrAccountType, LendrAccountTypeDto, LendrAccountWrapper, LendrClient, LendrClientFetchOptions, LendrClientOptions, LendrClientProps, LendrConfig, LendrGroup, type LendrGroupRaw, LendrGroupType, LendrGroupTypeDto, LendrIdlType, LendrProgram, LendrRequirementType, LendrRequirementTypeRaw, LogFn, LoopProps, LoopTxProps, MAX_ACCOUNT_KEYS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE$1 as MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, MakeBorrowIxOpts, MakeBorrowWithSessionIxOpts, MakeDepositIxOpts, MakeDepositWithSessionIxOpts, MakeRepayIxOpts, MakeRepayWithSessionIxOpts, MakeWithdrawIxOpts, MakeWithdrawWithSessionIxOpts, MaxCapType, MintData, MintDataMap, NodeWallet, OperationalState, type OperationalStateRaw, OracleConfigOpt, type OracleConfigOptRaw, OraclePrice, OraclePriceDto, OraclePriceMap, OracleSetup, type OracleSetupRaw, 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, PriceWithConfidence, PriceWithConfidenceDto, PriorityFees, PriotitizationFeeLevels, ProcessTransactionError, ProcessTransactionErrorType, ProcessTransactionOpts, ProcessTransactionStrategy, ProcessTransactionsClientOpts, Program$1 as Program, ProgramError, ProgramErrorWithDescription, ProgramReadonly, PythPushFeedIdMap, RepayWithCollateralProps, RepayWithCollateralTxProps, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, SKIP_SIMULATION, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, SimulationResult, SolanaTransaction, SpecificBroadcastMethod, SpecificBroadcastMethodType, StakeAccount, StakePoolMevMap, TLogger, TMetadata, TRANSFER_ACCOUNT_AUTHORITY_FLAG, TransactionArenaKeyMap, TransactionBroadcastType, TransactionBuilderResult, TransactionConfigMap, TransactionOptions, TransactionPriorityType, TransactionSettings, TransactionType, USDC_DECIMALS, USDC_MINT, ValidatorRateData, ValidatorStakeGroup, ValidatorStakeGroupDto, WSOL_EXTENDED_METADATA, WSOL_MINT, Wallet, WalletToken, WrappedI80F48, accountFlagToBN, addOracleToBanksIx, addTransactionMetadata, aprToApy, apyToApr, balanceToDto, bankConfigRawToDto, bankExtendedMetadataOverrideSchema, bankRawToDto, bigNumberToWrappedI80F48, bpsToPercentile, buildFeedIdMap, calculateApyFromInterest, calculateInterestFromApy, ceil, chunkedGetRawMultipleAccountInfoOrdered, chunkedGetRawMultipleAccountInfoOrderedWithNulls, chunkedGetRawMultipleAccountInfos, chunks, clampedNumeralFormatter, 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, index_d_exports$2 as index_d_exports, instructions, 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, wrappedI80F48toBigNumber };
|
|
10103
|
+
//# sourceMappingURL=index-CMK6wLry.d.cts.map
|