@0dotxyz/p0-ts-sdk 2.10.1-alpha.0 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +114 -106
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -15
- package/dist/index.d.ts +28 -15
- package/dist/index.js +114 -106
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.cts +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/{types-DQD0k0pr.d.cts → types-BOPERR6x.d.cts} +12 -1
- package/dist/{types--m9sTr2x.d.ts → types-D2GhlUZp.d.ts} +12 -1
- package/package.json +1 -1
package/dist/instructions.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
2
|
import { PublicKey, AccountMeta } from '@solana/web3.js';
|
|
3
3
|
import BN from 'bn.js';
|
|
4
|
-
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigFastRaw, b as BankConfigGovRaw, W as WrappedI80F48, O as OrderTrigger } from './types-
|
|
4
|
+
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigFastRaw, b as BankConfigGovRaw, W as WrappedI80F48, O as OrderTrigger } from './types-BOPERR6x.cjs';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
import 'bignumber.js';
|
|
7
7
|
import './dto-farm.types-6lrPBcZr.cjs';
|
package/dist/instructions.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
2
|
import { PublicKey, AccountMeta } from '@solana/web3.js';
|
|
3
3
|
import BN from 'bn.js';
|
|
4
|
-
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigFastRaw, b as BankConfigGovRaw, W as WrappedI80F48, O as OrderTrigger } from './types
|
|
4
|
+
import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigFastRaw, b as BankConfigGovRaw, W as WrappedI80F48, O as OrderTrigger } from './types-D2GhlUZp.js';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
import 'bignumber.js';
|
|
7
7
|
import './dto-farm.types-6lrPBcZr.js';
|
|
@@ -24532,9 +24532,13 @@ declare enum HealthCacheFlags {
|
|
|
24532
24532
|
*/
|
|
24533
24533
|
ORACLE_OK = 4
|
|
24534
24534
|
}
|
|
24535
|
+
/** Where an account's `healthCache` values come from. */
|
|
24535
24536
|
declare enum HealthCacheStatus {
|
|
24537
|
+
/** As stored on-chain, not refreshed since the account's last instruction */
|
|
24536
24538
|
UNSET = 0,
|
|
24539
|
+
/** Refreshed by a simulated `pulse_health`: values, prices and flags come from the program */
|
|
24537
24540
|
ONCHAIN = 1,
|
|
24541
|
+
/** Computed locally from balances and oracle prices after the simulation failed; no prices or flags */
|
|
24538
24542
|
COMPUTED = 2
|
|
24539
24543
|
}
|
|
24540
24544
|
interface HealthCacheType {
|
|
@@ -24999,6 +25003,11 @@ declare class Bank implements BankType {
|
|
|
24999
25003
|
readonly lendingPositionCount?: BigNumber$1 | undefined;
|
|
25000
25004
|
readonly borrowingPositionCount?: BigNumber$1 | undefined;
|
|
25001
25005
|
readonly tokenSymbol?: string | undefined;
|
|
25006
|
+
readonly stakedOracleDisabled?: boolean | undefined;
|
|
25007
|
+
readonly stakedOracleUsesOnramp?: boolean | undefined;
|
|
25008
|
+
readonly stakedIntegrationAccounts?: {
|
|
25009
|
+
validatorVoteAccount: PublicKey;
|
|
25010
|
+
} | undefined;
|
|
25002
25011
|
constructor(address: PublicKey, mint: PublicKey, mintDecimals: number, group: PublicKey, assetShareValue: BigNumber$1, liabilityShareValue: BigNumber$1, liquidityVault: PublicKey, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: PublicKey, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber$1, feeVault: PublicKey, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber$1, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber$1, totalLiabilityShares: BigNumber$1, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: PublicKey, emissionsRemaining: BigNumber$1, collectedProgramFeesOutstanding: BigNumber$1, oracleKey: PublicKey, emode: EmodeSettings, premiumTag: number, premiumActive: boolean, premiumActivatedAt: number, kaminoEmergency: boolean, rateLimiter?: BankRateLimiterType | undefined, kaminoIntegrationAccounts?: {
|
|
25003
25012
|
kaminoReserve: PublicKey;
|
|
25004
25013
|
kaminoObligation: PublicKey;
|
|
@@ -25013,7 +25022,9 @@ declare class Bank implements BankType {
|
|
|
25013
25022
|
jupLendingState: PublicKey;
|
|
25014
25023
|
jupFTokenVault: PublicKey;
|
|
25015
25024
|
jupFTokenAta: PublicKey;
|
|
25016
|
-
} | undefined, feesDestinationAccount?: PublicKey | undefined, lendingPositionCount?: BigNumber$1 | undefined, borrowingPositionCount?: BigNumber$1 | undefined, tokenSymbol?: string | undefined
|
|
25025
|
+
} | undefined, feesDestinationAccount?: PublicKey | undefined, lendingPositionCount?: BigNumber$1 | undefined, borrowingPositionCount?: BigNumber$1 | undefined, tokenSymbol?: string | undefined, stakedOracleDisabled?: boolean | undefined, stakedOracleUsesOnramp?: boolean | undefined, stakedIntegrationAccounts?: {
|
|
25026
|
+
validatorVoteAccount: PublicKey;
|
|
25027
|
+
} | undefined);
|
|
25017
25028
|
static fetch(address: PublicKey, program: MarginfiProgram, bankMetadata?: BankMetadata$1): Promise<Bank>;
|
|
25018
25029
|
static decodeBankRaw(encoded: Buffer, idl: MarginfiIdlType): BankRaw;
|
|
25019
25030
|
static fromBuffer(bankPk: PublicKey, rawData: Buffer, idl: MarginfiIdlType): Bank;
|
|
@@ -24532,9 +24532,13 @@ declare enum HealthCacheFlags {
|
|
|
24532
24532
|
*/
|
|
24533
24533
|
ORACLE_OK = 4
|
|
24534
24534
|
}
|
|
24535
|
+
/** Where an account's `healthCache` values come from. */
|
|
24535
24536
|
declare enum HealthCacheStatus {
|
|
24537
|
+
/** As stored on-chain, not refreshed since the account's last instruction */
|
|
24536
24538
|
UNSET = 0,
|
|
24539
|
+
/** Refreshed by a simulated `pulse_health`: values, prices and flags come from the program */
|
|
24537
24540
|
ONCHAIN = 1,
|
|
24541
|
+
/** Computed locally from balances and oracle prices after the simulation failed; no prices or flags */
|
|
24538
24542
|
COMPUTED = 2
|
|
24539
24543
|
}
|
|
24540
24544
|
interface HealthCacheType {
|
|
@@ -24999,6 +25003,11 @@ declare class Bank implements BankType {
|
|
|
24999
25003
|
readonly lendingPositionCount?: BigNumber$1 | undefined;
|
|
25000
25004
|
readonly borrowingPositionCount?: BigNumber$1 | undefined;
|
|
25001
25005
|
readonly tokenSymbol?: string | undefined;
|
|
25006
|
+
readonly stakedOracleDisabled?: boolean | undefined;
|
|
25007
|
+
readonly stakedOracleUsesOnramp?: boolean | undefined;
|
|
25008
|
+
readonly stakedIntegrationAccounts?: {
|
|
25009
|
+
validatorVoteAccount: PublicKey;
|
|
25010
|
+
} | undefined;
|
|
25002
25011
|
constructor(address: PublicKey, mint: PublicKey, mintDecimals: number, group: PublicKey, assetShareValue: BigNumber$1, liabilityShareValue: BigNumber$1, liquidityVault: PublicKey, liquidityVaultBump: number, liquidityVaultAuthorityBump: number, insuranceVault: PublicKey, insuranceVaultBump: number, insuranceVaultAuthorityBump: number, collectedInsuranceFeesOutstanding: BigNumber$1, feeVault: PublicKey, feeVaultBump: number, feeVaultAuthorityBump: number, collectedGroupFeesOutstanding: BigNumber$1, lastUpdate: number, config: BankConfig, totalAssetShares: BigNumber$1, totalLiabilityShares: BigNumber$1, emissionsActiveBorrowing: boolean, emissionsActiveLending: boolean, emissionsRate: number, emissionsMint: PublicKey, emissionsRemaining: BigNumber$1, collectedProgramFeesOutstanding: BigNumber$1, oracleKey: PublicKey, emode: EmodeSettings, premiumTag: number, premiumActive: boolean, premiumActivatedAt: number, kaminoEmergency: boolean, rateLimiter?: BankRateLimiterType | undefined, kaminoIntegrationAccounts?: {
|
|
25003
25012
|
kaminoReserve: PublicKey;
|
|
25004
25013
|
kaminoObligation: PublicKey;
|
|
@@ -25013,7 +25022,9 @@ declare class Bank implements BankType {
|
|
|
25013
25022
|
jupLendingState: PublicKey;
|
|
25014
25023
|
jupFTokenVault: PublicKey;
|
|
25015
25024
|
jupFTokenAta: PublicKey;
|
|
25016
|
-
} | undefined, feesDestinationAccount?: PublicKey | undefined, lendingPositionCount?: BigNumber$1 | undefined, borrowingPositionCount?: BigNumber$1 | undefined, tokenSymbol?: string | undefined
|
|
25025
|
+
} | undefined, feesDestinationAccount?: PublicKey | undefined, lendingPositionCount?: BigNumber$1 | undefined, borrowingPositionCount?: BigNumber$1 | undefined, tokenSymbol?: string | undefined, stakedOracleDisabled?: boolean | undefined, stakedOracleUsesOnramp?: boolean | undefined, stakedIntegrationAccounts?: {
|
|
25026
|
+
validatorVoteAccount: PublicKey;
|
|
25027
|
+
} | undefined);
|
|
25017
25028
|
static fetch(address: PublicKey, program: MarginfiProgram, bankMetadata?: BankMetadata$1): Promise<Bank>;
|
|
25018
25029
|
static decodeBankRaw(encoded: Buffer, idl: MarginfiIdlType): BankRaw;
|
|
25019
25030
|
static fromBuffer(bankPk: PublicKey, rawData: Buffer, idl: MarginfiIdlType): Bank;
|