@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.
- package/dist/index.cjs +151 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +123 -24
- package/dist/index.d.ts +123 -24
- package/dist/index.js +148 -43
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.cts +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/{types-CvvHQs7G.d.cts → types-B5hbKbQJ.d.cts} +7 -1
- package/dist/{types-Auh-s318.d.ts → types-C3ArshQA.d.ts} +7 -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 BankConfigOptRaw, W as WrappedI80F48, O as OrderTrigger } from './types-
|
|
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';
|
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 BankConfigOptRaw, W as WrappedI80F48, O as OrderTrigger } from './types-
|
|
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,
|