@pyron-finance/pyron-client 1.0.6-pre.2 → 1.0.6
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 +0 -15
- package/dist/common/{index.d.cts → index.d.mts} +1 -1
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +67 -2
- package/dist/common/index.mjs +3 -0
- package/dist/{common-70fo5HbS.cjs → common-BDe3qLlR.js} +2 -3
- package/dist/{common-DSb1joUt.js → common-BtUtEjzZ.mjs} +4 -5
- package/dist/common-BtUtEjzZ.mjs.map +1 -0
- package/dist/{index-CMK6wLry.d.cts → index-BAC0ffmc.d.mts} +55 -57
- package/dist/index-BAC0ffmc.d.mts.map +1 -0
- package/dist/{index-Bff8s4pU.d.ts → index-Bx-zRXFQ.d.ts} +40 -38
- package/dist/index-Bx-zRXFQ.d.ts.map +1 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +946 -727
- package/dist/{index.cjs → index.mjs} +727 -947
- package/dist/index.mjs.map +1 -0
- package/package.json +5 -29
- package/dist/common/index.cjs +0 -68
- package/dist/common-DSb1joUt.js.map +0 -1
- package/dist/index-Bff8s4pU.d.ts.map +0 -1
- package/dist/index-CMK6wLry.d.cts.map +0 -1
- package/dist/index.d.cts +0 -2
- package/dist/index.js.map +0 -1
- /package/dist/{chunk-Cl8Af3a2.js → chunk-B9dir_RE.mjs} +0 -0
|
@@ -1,18 +1,16 @@
|
|
|
1
|
+
import * as anchor from "@coral-xyz/anchor";
|
|
2
|
+
import { Address, AnchorProvider, BN, BorshCoder, Idl, Instruction, Program, Provider } from "@coral-xyz/anchor";
|
|
1
3
|
import * as _solana_web3_js25 from "@solana/web3.js";
|
|
2
4
|
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";
|
|
6
5
|
import BigNumber from "bignumber.js";
|
|
7
|
-
import BN from "bn.js";
|
|
6
|
+
import BN$2 from "bn.js";
|
|
7
|
+
import { Storage } from "unstorage";
|
|
8
8
|
import { z } from "zod";
|
|
9
|
+
import { z as z$1 } from "zod/v4-mini";
|
|
10
|
+
import { SignerWalletAdapter } from "@solana/wallet-adapter-base";
|
|
9
11
|
import * as _fogo_sessions_sdk0 from "@fogo/sessions-sdk";
|
|
10
12
|
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
|
|
16
14
|
//#region src/common/types.d.ts
|
|
17
15
|
type Program$1<T extends Idl> = Omit<Program<T>, "provider"> & {
|
|
18
16
|
provider: AnchorProvider;
|
|
@@ -6724,12 +6722,12 @@ interface BankRaw {
|
|
|
6724
6722
|
feeVaultBump: number;
|
|
6725
6723
|
feeVaultAuthorityBump: number;
|
|
6726
6724
|
collectedGroupFeesOutstanding: WrappedI80F48;
|
|
6727
|
-
lastUpdate: BN;
|
|
6725
|
+
lastUpdate: BN$2;
|
|
6728
6726
|
config: BankConfigRaw;
|
|
6729
6727
|
totalLiabilityShares: WrappedI80F48;
|
|
6730
6728
|
totalAssetShares: WrappedI80F48;
|
|
6731
|
-
flags: BN;
|
|
6732
|
-
emissionsRate: BN;
|
|
6729
|
+
flags: BN$2;
|
|
6730
|
+
emissionsRate: BN$2;
|
|
6733
6731
|
emissionsRemaining: WrappedI80F48;
|
|
6734
6732
|
emissionsMint: PublicKey;
|
|
6735
6733
|
emode: EmodeSettingsRaw;
|
|
@@ -6739,15 +6737,15 @@ interface BankConfigRaw {
|
|
|
6739
6737
|
assetWeightMaint: WrappedI80F48;
|
|
6740
6738
|
liabilityWeightInit: WrappedI80F48;
|
|
6741
6739
|
liabilityWeightMaint: WrappedI80F48;
|
|
6742
|
-
depositLimit: BN;
|
|
6740
|
+
depositLimit: BN$2;
|
|
6743
6741
|
interestRateConfig: InterestRateConfigRaw;
|
|
6744
6742
|
operationalState: OperationalStateRaw;
|
|
6745
6743
|
oracleSetup: OracleSetupRaw;
|
|
6746
6744
|
oracleKeys: PublicKey[];
|
|
6747
|
-
borrowLimit: BN;
|
|
6745
|
+
borrowLimit: BN$2;
|
|
6748
6746
|
riskTier: RiskTierRaw;
|
|
6749
6747
|
assetTag: number;
|
|
6750
|
-
totalAssetValueInitLimit: BN;
|
|
6748
|
+
totalAssetValueInitLimit: BN$2;
|
|
6751
6749
|
oracleMaxAge: number;
|
|
6752
6750
|
}
|
|
6753
6751
|
interface BankConfigOptRaw {
|
|
@@ -6755,15 +6753,15 @@ interface BankConfigOptRaw {
|
|
|
6755
6753
|
assetWeightMaint: WrappedI80F48 | null;
|
|
6756
6754
|
liabilityWeightInit: WrappedI80F48 | null;
|
|
6757
6755
|
liabilityWeightMaint: WrappedI80F48 | null;
|
|
6758
|
-
depositLimit: BN | null;
|
|
6759
|
-
borrowLimit: BN | null;
|
|
6756
|
+
depositLimit: BN$2 | null;
|
|
6757
|
+
borrowLimit: BN$2 | null;
|
|
6760
6758
|
riskTier: {
|
|
6761
6759
|
collateral: {};
|
|
6762
6760
|
} | {
|
|
6763
6761
|
isolated: {};
|
|
6764
6762
|
} | null;
|
|
6765
6763
|
assetTag: number | null;
|
|
6766
|
-
totalAssetValueInitLimit: BN | null;
|
|
6764
|
+
totalAssetValueInitLimit: BN$2 | null;
|
|
6767
6765
|
interestRateConfig: InterestRateConfigRaw | null;
|
|
6768
6766
|
operationalState: {
|
|
6769
6767
|
paused: {};
|
|
@@ -6778,8 +6776,8 @@ interface BankConfigOptRaw {
|
|
|
6778
6776
|
}
|
|
6779
6777
|
interface BankConfigCompactRaw extends Omit<BankConfigRaw, "oracleKeys" | "oracle" | "oracleSetup"> {
|
|
6780
6778
|
oracleMaxAge: number;
|
|
6781
|
-
padding0?: BN[];
|
|
6782
|
-
padding1?: BN[];
|
|
6779
|
+
padding0?: BN$2[];
|
|
6780
|
+
padding1?: BN$2[];
|
|
6783
6781
|
}
|
|
6784
6782
|
type RiskTierRaw = {
|
|
6785
6783
|
collateral: {};
|
|
@@ -6828,8 +6826,8 @@ interface EmodeEntryRaw {
|
|
|
6828
6826
|
}
|
|
6829
6827
|
interface EmodeSettingsRaw {
|
|
6830
6828
|
emodeTag: number;
|
|
6831
|
-
timestamp: BN;
|
|
6832
|
-
flags: BN;
|
|
6829
|
+
timestamp: BN$2;
|
|
6830
|
+
flags: BN$2;
|
|
6833
6831
|
emodeConfig: EmodeConfigRaw;
|
|
6834
6832
|
}
|
|
6835
6833
|
interface EmodeConfigRaw {
|
|
@@ -7053,7 +7051,7 @@ declare function makeInitLendrAccountWithSessionIx(ldProgram: LendrProgram, {
|
|
|
7053
7051
|
lendrGroup: PublicKey;
|
|
7054
7052
|
session: EstablishedSessionState;
|
|
7055
7053
|
feePayer: PublicKey;
|
|
7056
|
-
}, accountSeed: BN): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7054
|
+
}, accountSeed: BN$2): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7057
7055
|
declare function makeDepositIx(ldProgram: LendrProgram, accounts: {
|
|
7058
7056
|
lendrAccount: PublicKey;
|
|
7059
7057
|
signerTokenAccount: PublicKey;
|
|
@@ -7063,11 +7061,11 @@ declare function makeDepositIx(ldProgram: LendrProgram, accounts: {
|
|
|
7063
7061
|
authority?: PublicKey;
|
|
7064
7062
|
liquidityVault?: PublicKey;
|
|
7065
7063
|
}, args: {
|
|
7066
|
-
amount: BN;
|
|
7064
|
+
amount: BN$2;
|
|
7067
7065
|
depositUpToLimit?: boolean;
|
|
7068
7066
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7069
7067
|
declare function makeDepositWithSessionIx(ldProgram: LendrProgram, accounts: LendingAccountDepositOrRepayWithSessionAccounts, args: {
|
|
7070
|
-
amount: BN;
|
|
7068
|
+
amount: BN$2;
|
|
7071
7069
|
depositUpToLimit?: boolean;
|
|
7072
7070
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7073
7071
|
declare function makeRepayIx(ldProgram: LendrProgram, accounts: {
|
|
@@ -7079,11 +7077,11 @@ declare function makeRepayIx(ldProgram: LendrProgram, accounts: {
|
|
|
7079
7077
|
authority?: PublicKey;
|
|
7080
7078
|
liquidityVault?: PublicKey;
|
|
7081
7079
|
}, args: {
|
|
7082
|
-
amount: BN;
|
|
7080
|
+
amount: BN$2;
|
|
7083
7081
|
repayAll?: boolean;
|
|
7084
7082
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7085
7083
|
declare function makeRepayWithSessionIx(ldProgram: LendrProgram, accounts: LendingAccountDepositOrRepayWithSessionAccounts, args: {
|
|
7086
|
-
amount: BN;
|
|
7084
|
+
amount: BN$2;
|
|
7087
7085
|
repayAll?: boolean;
|
|
7088
7086
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7089
7087
|
declare function makeWithdrawIx(ldProgram: LendrProgram, accounts: {
|
|
@@ -7094,11 +7092,11 @@ declare function makeWithdrawIx(ldProgram: LendrProgram, accounts: {
|
|
|
7094
7092
|
group?: PublicKey;
|
|
7095
7093
|
authority?: PublicKey;
|
|
7096
7094
|
}, args: {
|
|
7097
|
-
amount: BN;
|
|
7095
|
+
amount: BN$2;
|
|
7098
7096
|
withdrawAll?: boolean;
|
|
7099
7097
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7100
7098
|
declare function makeWithdrawWithSessionIx(ldProgram: LendrProgram, accounts: LendingAccountWithdrawOrBorrowWithSessionAccounts, args: {
|
|
7101
|
-
amount: BN;
|
|
7099
|
+
amount: BN$2;
|
|
7102
7100
|
withdrawAll?: boolean;
|
|
7103
7101
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7104
7102
|
declare function makeBorrowIx(ldProgram: LendrProgram, accounts: {
|
|
@@ -7109,10 +7107,10 @@ declare function makeBorrowIx(ldProgram: LendrProgram, accounts: {
|
|
|
7109
7107
|
group?: PublicKey;
|
|
7110
7108
|
authority?: PublicKey;
|
|
7111
7109
|
}, args: {
|
|
7112
|
-
amount: BN;
|
|
7110
|
+
amount: BN$2;
|
|
7113
7111
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7114
7112
|
declare function makeBorrowWithSessionIx(ldProgram: LendrProgram, accounts: LendingAccountWithdrawOrBorrowWithSessionAccounts, args: {
|
|
7115
|
-
amount: BN;
|
|
7113
|
+
amount: BN$2;
|
|
7116
7114
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7117
7115
|
declare function makeLendingAccountLiquidateIx(ldrProgram: LendrProgram, accounts: {
|
|
7118
7116
|
assetBank: PublicKey;
|
|
@@ -7123,7 +7121,7 @@ declare function makeLendingAccountLiquidateIx(ldrProgram: LendrProgram, account
|
|
|
7123
7121
|
group?: PublicKey;
|
|
7124
7122
|
authority?: PublicKey;
|
|
7125
7123
|
}, args: {
|
|
7126
|
-
assetAmount: BN;
|
|
7124
|
+
assetAmount: BN$2;
|
|
7127
7125
|
}, remainingAccounts?: AccountMeta[]): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7128
7126
|
declare function makelendingAccountWithdrawEmissionIx(ldrProgram: LendrProgram, accounts: {
|
|
7129
7127
|
lendrAccount: PublicKey;
|
|
@@ -7139,14 +7137,14 @@ declare function makeSetAccountFlagIx(ldrProgram: LendrProgram, accounts: {
|
|
|
7139
7137
|
group?: PublicKey;
|
|
7140
7138
|
admin?: PublicKey;
|
|
7141
7139
|
}, args: {
|
|
7142
|
-
flag: BN;
|
|
7140
|
+
flag: BN$2;
|
|
7143
7141
|
}): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7144
7142
|
declare function makeUnsetAccountFlagIx(ldrProgram: LendrProgram, accounts: {
|
|
7145
7143
|
lendrAccount: PublicKey;
|
|
7146
7144
|
group?: PublicKey;
|
|
7147
7145
|
admin?: PublicKey;
|
|
7148
7146
|
}, args: {
|
|
7149
|
-
flag: BN;
|
|
7147
|
+
flag: BN$2;
|
|
7150
7148
|
}): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7151
7149
|
declare function makePoolConfigureBankIx$1(ldrProgram: LendrProgram, accounts: {
|
|
7152
7150
|
bank: PublicKey;
|
|
@@ -7160,7 +7158,7 @@ declare function makeBeginFlashLoanIx(ldrProgram: LendrProgram, accounts: {
|
|
|
7160
7158
|
authority?: PublicKey;
|
|
7161
7159
|
ixsSysvar?: PublicKey;
|
|
7162
7160
|
}, args: {
|
|
7163
|
-
endIndex: BN;
|
|
7161
|
+
endIndex: BN$2;
|
|
7164
7162
|
}): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7165
7163
|
declare function makeEndFlashLoanIx(ldrProgram: LendrProgram, accounts: {
|
|
7166
7164
|
lendrAccount: PublicKey;
|
|
@@ -7236,7 +7234,7 @@ remainingAccounts: AccountMeta[] | undefined, args: {
|
|
|
7236
7234
|
* will be created at the address {@link findPoolAddress} with the default
|
|
7237
7235
|
* bump.
|
|
7238
7236
|
*/
|
|
7239
|
-
seed?: BN;
|
|
7237
|
+
seed?: BN$2;
|
|
7240
7238
|
}): Promise<_solana_web3_js25.TransactionInstruction>;
|
|
7241
7239
|
declare function makePoolAddBankIx$1(ldProgram: LendrProgram, accounts: {
|
|
7242
7240
|
lendrGroup: PublicKey;
|
|
@@ -7362,7 +7360,7 @@ declare const SYSTEM_PROGRAM_ID: PublicKey;
|
|
|
7362
7360
|
declare const SYSVAR_RENT_ID: PublicKey;
|
|
7363
7361
|
declare const SYSVAR_CLOCK_ID: PublicKey;
|
|
7364
7362
|
declare const SYSVAR_STAKE_HISTORY_ID: PublicKey;
|
|
7365
|
-
declare const STAKE_CONFIG_ID: PublicKey;
|
|
7363
|
+
declare const STAKE_CONFIG_ID$1: PublicKey;
|
|
7366
7364
|
//# sourceMappingURL=programs.d.ts.map
|
|
7367
7365
|
//#endregion
|
|
7368
7366
|
//#region src/errors.d.ts
|
|
@@ -8062,7 +8060,7 @@ declare class LendrAccount implements LendrAccountType {
|
|
|
8062
8060
|
userTokenAtaPk: PublicKey;
|
|
8063
8061
|
mintData: MintData;
|
|
8064
8062
|
ixArguments: {
|
|
8065
|
-
amount: BN;
|
|
8063
|
+
amount: BN$2;
|
|
8066
8064
|
};
|
|
8067
8065
|
remainingAccounts: {
|
|
8068
8066
|
pubkey: PublicKey;
|
|
@@ -8077,7 +8075,7 @@ declare class LendrAccount implements LendrAccountType {
|
|
|
8077
8075
|
mintData: MintData;
|
|
8078
8076
|
userAta: PublicKey;
|
|
8079
8077
|
ixArguments: {
|
|
8080
|
-
amount: BN;
|
|
8078
|
+
amount: BN$2;
|
|
8081
8079
|
repayAll: boolean;
|
|
8082
8080
|
};
|
|
8083
8081
|
remainingAccounts: PublicKey[];
|
|
@@ -8988,11 +8986,11 @@ declare function parseOracleSetup(oracleSetupRaw: OracleSetupRaw): OracleSetup;
|
|
|
8988
8986
|
/**
|
|
8989
8987
|
* Get all active EMode flags as an array of flag names
|
|
8990
8988
|
*/
|
|
8991
|
-
declare function getActiveEmodeFlags(flags: BN): EmodeFlags[];
|
|
8989
|
+
declare function getActiveEmodeFlags(flags: BN$2): EmodeFlags[];
|
|
8992
8990
|
/**
|
|
8993
8991
|
* Check if a specific EMode flag is set
|
|
8994
8992
|
*/
|
|
8995
|
-
declare function hasEmodeFlag(flags: BN, flag: number): boolean;
|
|
8993
|
+
declare function hasEmodeFlag(flags: BN$2, flag: number): boolean;
|
|
8996
8994
|
/**
|
|
8997
8995
|
* Get all active EMode entry flags as an array of flag names
|
|
8998
8996
|
*/
|
|
@@ -9247,7 +9245,7 @@ declare class LendrClient {
|
|
|
9247
9245
|
* @returns transaction instruction
|
|
9248
9246
|
*/
|
|
9249
9247
|
makeCreateLendrAccountIx(lendrAccountPk: PublicKey): Promise<InstructionsWrapper>;
|
|
9250
|
-
makeCreateLendrAccountWithSessionIx(session: EstablishedSessionState, accountSeed: BN): Promise<InstructionsWrapper>;
|
|
9248
|
+
makeCreateLendrAccountWithSessionIx(session: EstablishedSessionState, accountSeed: BN$2): Promise<InstructionsWrapper>;
|
|
9251
9249
|
/**
|
|
9252
9250
|
* Create a new lendr account under the authority of the user.
|
|
9253
9251
|
*
|
|
@@ -9290,7 +9288,7 @@ declare class LendrClient {
|
|
|
9290
9288
|
}): Promise<SolanaTransaction>;
|
|
9291
9289
|
getLatestBlockHashForSure(): Promise<string>;
|
|
9292
9290
|
createVersionTransaction(instructions: TransactionInstruction[], payerKey: PublicKey, signers?: Array<Signer>, extraMetaData?: ExtendedTransactionProperties): Promise<VersionedTransaction>;
|
|
9293
|
-
createLendrAccountWithSessionTx(session: EstablishedSessionState, accountSeed: BN): Promise<VersionedTransaction>;
|
|
9291
|
+
createLendrAccountWithSessionTx(session: EstablishedSessionState, accountSeed: BN$2): Promise<VersionedTransaction>;
|
|
9294
9292
|
/**
|
|
9295
9293
|
* Create transaction instruction to initialize a new group.
|
|
9296
9294
|
*
|
|
@@ -9482,7 +9480,7 @@ interface BalanceRaw {
|
|
|
9482
9480
|
assetShares: WrappedI80F48;
|
|
9483
9481
|
liabilityShares: WrappedI80F48;
|
|
9484
9482
|
emissionsOutstanding: WrappedI80F48;
|
|
9485
|
-
lastUpdate: BN;
|
|
9483
|
+
lastUpdate: BN$2;
|
|
9486
9484
|
}
|
|
9487
9485
|
interface HealthCacheRaw {
|
|
9488
9486
|
assetValue: WrappedI80F48;
|
|
@@ -9491,7 +9489,7 @@ interface HealthCacheRaw {
|
|
|
9491
9489
|
liabilityValueMaint: WrappedI80F48;
|
|
9492
9490
|
assetValueEquity: WrappedI80F48;
|
|
9493
9491
|
liabilityValueEquity: WrappedI80F48;
|
|
9494
|
-
timestamp: BN;
|
|
9492
|
+
timestamp: BN$2;
|
|
9495
9493
|
flags: number;
|
|
9496
9494
|
prices: number[][];
|
|
9497
9495
|
errIndex: number;
|
|
@@ -9506,10 +9504,10 @@ interface LendrAccountRaw {
|
|
|
9506
9504
|
lendingAccount: {
|
|
9507
9505
|
balances: BalanceRaw[];
|
|
9508
9506
|
};
|
|
9509
|
-
accountFlags: BN;
|
|
9507
|
+
accountFlags: BN$2;
|
|
9510
9508
|
emissionsDestinationAccount: PublicKey;
|
|
9511
9509
|
healthCache: HealthCacheRaw;
|
|
9512
|
-
padding0?: BN[];
|
|
9510
|
+
padding0?: BN$2[];
|
|
9513
9511
|
}
|
|
9514
9512
|
type LendrRequirementTypeRaw = {
|
|
9515
9513
|
initial: {};
|
|
@@ -9647,11 +9645,11 @@ declare function parseLendrAccountRaw(lendrAccountPk: PublicKey, accountData: Le
|
|
|
9647
9645
|
/**
|
|
9648
9646
|
* Get all active account flags as an array of flag names
|
|
9649
9647
|
*/
|
|
9650
|
-
declare function getActiveAccountFlags(flags: BN): AccountFlags[];
|
|
9648
|
+
declare function getActiveAccountFlags(flags: BN$2): AccountFlags[];
|
|
9651
9649
|
/**
|
|
9652
9650
|
* Check if an account flag is set
|
|
9653
9651
|
*/
|
|
9654
|
-
declare function hasAccountFlag(flags: BN, flag: number): boolean;
|
|
9652
|
+
declare function hasAccountFlag(flags: BN$2, flag: number): boolean;
|
|
9655
9653
|
/**
|
|
9656
9654
|
* Convert on-chain health cache flags (BN) to an array of HealthCacheFlags enum values
|
|
9657
9655
|
*
|
|
@@ -9692,7 +9690,7 @@ declare const fetchLendrAccountData: (program: LendrProgram, lendrAccountPk: Pub
|
|
|
9692
9690
|
/**
|
|
9693
9691
|
* Convert numeric flag to BN for Solana compatibility
|
|
9694
9692
|
*/
|
|
9695
|
-
declare function accountFlagToBN(flag: AccountFlags): BN;
|
|
9693
|
+
declare function accountFlagToBN(flag: AccountFlags): BN$2;
|
|
9696
9694
|
declare function lendrAccountToDto(lendrAccount: LendrAccountType): LendrAccountTypeDto;
|
|
9697
9695
|
declare function balanceToDto(balance: BalanceType): BalanceTypeDto;
|
|
9698
9696
|
declare function healthCacheToDto(healthCache: HealthCacheType): HealthCacheTypeDto;
|
|
@@ -9725,8 +9723,8 @@ type LendrGroupTypeDto = {
|
|
|
9725
9723
|
//#region src/services/group/types/raw-group.types.d.ts
|
|
9726
9724
|
interface LendrGroupRaw {
|
|
9727
9725
|
admin: PublicKey;
|
|
9728
|
-
padding0: BN[];
|
|
9729
|
-
padding1: BN[];
|
|
9726
|
+
padding0: BN$2[];
|
|
9727
|
+
padding1: BN$2[];
|
|
9730
9728
|
}
|
|
9731
9729
|
//#endregion
|
|
9732
9730
|
//#region src/services/group/utils/deserialize.utils.d.ts
|
|
@@ -10042,16 +10040,16 @@ declare const bankExtendedMetadataOverrideSchema: z.ZodObject<{
|
|
|
10042
10040
|
}, "strip", z.ZodTypeAny, {
|
|
10043
10041
|
symbol?: string | undefined;
|
|
10044
10042
|
name?: string | undefined;
|
|
10045
|
-
logoURI?: string | undefined;
|
|
10046
|
-
address?: string | undefined;
|
|
10047
10043
|
mint?: string | undefined;
|
|
10044
|
+
address?: string | undefined;
|
|
10045
|
+
logoURI?: string | undefined;
|
|
10048
10046
|
validatorVoteAccount?: string | undefined;
|
|
10049
10047
|
}, {
|
|
10050
10048
|
symbol?: string | undefined;
|
|
10051
10049
|
name?: string | undefined;
|
|
10052
|
-
logoURI?: string | undefined;
|
|
10053
|
-
address?: string | undefined;
|
|
10054
10050
|
mint?: string | undefined;
|
|
10051
|
+
address?: string | undefined;
|
|
10052
|
+
logoURI?: string | undefined;
|
|
10055
10053
|
validatorVoteAccount?: string | undefined;
|
|
10056
10054
|
}>;
|
|
10057
10055
|
type BankExtendedMetadataOverride = z.infer<typeof bankExtendedMetadataOverrideSchema>;
|
|
@@ -10099,5 +10097,5 @@ type BankMetadataMap = {
|
|
|
10099
10097
|
//# sourceMappingURL=bank-metadata.d.ts.map
|
|
10100
10098
|
|
|
10101
10099
|
//#endregion
|
|
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,
|
|
10103
|
-
//# sourceMappingURL=index-
|
|
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$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, 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 };
|
|
10101
|
+
//# sourceMappingURL=index-BAC0ffmc.d.mts.map
|