@0dotxyz/p0-ts-sdk 2.9.0-alpha.0 → 2.9.0

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.
@@ -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 BankConfigOptRaw, W as WrappedI80F48, O as OrderTrigger } from './types-CvvHQs7G.cjs';
4
+ import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw, W as WrappedI80F48, O as OrderTrigger } from './types-B5hbKbQJ.cjs';
5
5
  import '@coral-xyz/anchor';
6
6
  import 'bignumber.js';
7
7
  import './dto-farm.types-BAA9xrey.cjs';
@@ -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 BankConfigOptRaw, W as WrappedI80F48, O as OrderTrigger } from './types-Auh-s318.js';
4
+ import { M as MarginfiProgram, B as BankConfigCompactRaw, a as BankConfigOptRaw, W as WrappedI80F48, O as OrderTrigger } from './types-C3ArshQA.js';
5
5
  import '@coral-xyz/anchor';
6
6
  import 'bignumber.js';
7
7
  import './dto-farm.types-BAA9xrey.js';
@@ -20750,12 +20750,18 @@ interface MarginfiAccountType {
20750
20750
  accountFlags: AccountFlags[];
20751
20751
  emissionsDestinationAccount: PublicKey;
20752
20752
  healthCache: HealthCacheType;
20753
+ /** Orders that point at this account, including orphaned ones. Transfer requires 0. */
20754
+ activeOrders: number;
20753
20755
  }
20754
20756
  declare enum AccountFlags {
20755
20757
  ACCOUNT_DISABLED = 1,// 1
20756
20758
  ACCOUNT_IN_FLASHLOAN = 2,// 2
20757
20759
  ACCOUNT_FLAG_DEPRECATED = 4,// 4
20758
- ACCOUNT_TRANSFER_AUTHORITY_ALLOWED = 8
20760
+ ACCOUNT_TRANSFER_AUTHORITY_ALLOWED = 8,// 8
20761
+ ACCOUNT_IN_RECEIVERSHIP = 16,// 16
20762
+ ACCOUNT_IN_DELEVERAGE = 32,// 32
20763
+ ACCOUNT_FROZEN = 64,// 64
20764
+ ACCOUNT_IN_ORDER_EXECUTION = 128
20759
20765
  }
20760
20766
  declare enum MarginRequirementType {
20761
20767
  Initial = 0,
@@ -20750,12 +20750,18 @@ interface MarginfiAccountType {
20750
20750
  accountFlags: AccountFlags[];
20751
20751
  emissionsDestinationAccount: PublicKey;
20752
20752
  healthCache: HealthCacheType;
20753
+ /** Orders that point at this account, including orphaned ones. Transfer requires 0. */
20754
+ activeOrders: number;
20753
20755
  }
20754
20756
  declare enum AccountFlags {
20755
20757
  ACCOUNT_DISABLED = 1,// 1
20756
20758
  ACCOUNT_IN_FLASHLOAN = 2,// 2
20757
20759
  ACCOUNT_FLAG_DEPRECATED = 4,// 4
20758
- ACCOUNT_TRANSFER_AUTHORITY_ALLOWED = 8
20760
+ ACCOUNT_TRANSFER_AUTHORITY_ALLOWED = 8,// 8
20761
+ ACCOUNT_IN_RECEIVERSHIP = 16,// 16
20762
+ ACCOUNT_IN_DELEVERAGE = 32,// 32
20763
+ ACCOUNT_FROZEN = 64,// 64
20764
+ ACCOUNT_IN_ORDER_EXECUTION = 128
20759
20765
  }
20760
20766
  declare enum MarginRequirementType {
20761
20767
  Initial = 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0dotxyz/p0-ts-sdk",
3
- "version": "2.9.0-alpha.0",
3
+ "version": "2.9.0",
4
4
  "packageManager": "pnpm@10.32.1",
5
5
  "description": "TypeScript SDK for P0 Protocol - A Solana DeFi lending protocol",
6
6
  "type": "module",