@drift-labs/sdk 2.153.0-beta.0 → 2.153.0-beta.2

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.
@@ -4220,6 +4220,27 @@
4220
4220
  }
4221
4221
  ]
4222
4222
  },
4223
+ {
4224
+ "name": "deleteSerumFulfillmentConfig",
4225
+ "accounts": [
4226
+ {
4227
+ "name": "state",
4228
+ "isMut": false,
4229
+ "isSigner": false
4230
+ },
4231
+ {
4232
+ "name": "serumFulfillmentConfig",
4233
+ "isMut": true,
4234
+ "isSigner": false
4235
+ },
4236
+ {
4237
+ "name": "admin",
4238
+ "isMut": true,
4239
+ "isSigner": true
4240
+ }
4241
+ ],
4242
+ "args": []
4243
+ },
4223
4244
  {
4224
4245
  "name": "initializeOpenbookV2FulfillmentConfig",
4225
4246
  "accounts": [
@@ -4309,6 +4330,27 @@
4309
4330
  }
4310
4331
  ]
4311
4332
  },
4333
+ {
4334
+ "name": "deleteOpenbookV2FulfillmentConfig",
4335
+ "accounts": [
4336
+ {
4337
+ "name": "state",
4338
+ "isMut": false,
4339
+ "isSigner": false
4340
+ },
4341
+ {
4342
+ "name": "openbookV2FulfillmentConfig",
4343
+ "isMut": true,
4344
+ "isSigner": false
4345
+ },
4346
+ {
4347
+ "name": "admin",
4348
+ "isMut": true,
4349
+ "isSigner": true
4350
+ }
4351
+ ],
4352
+ "args": []
4353
+ },
4312
4354
  {
4313
4355
  "name": "initializePhoenixFulfillmentConfig",
4314
4356
  "accounts": [
@@ -14566,8 +14608,7 @@
14566
14608
  {
14567
14609
  "name": "isolatedPositionScaledBalance",
14568
14610
  "docs": [
14569
- "The last base asset amount per lp the amm had",
14570
- "Used to settle the users lp position",
14611
+ "The scaled balance of the isolated position",
14571
14612
  "precision: SPOT_BALANCE_PRECISION"
14572
14613
  ],
14573
14614
  "type": "u64"
@@ -16068,6 +16109,9 @@
16068
16109
  },
16069
16110
  {
16070
16111
  "name": "HasBuilder"
16112
+ },
16113
+ {
16114
+ "name": "IsIsolatedPosition"
16071
16115
  }
16072
16116
  ]
16073
16117
  }
@@ -1,5 +0,0 @@
1
- import { DriftEnv } from './config';
2
- import { SpotMarketConfig } from './constants';
3
- import { PerpMarketConfig } from './constants/perpMarkets';
4
- export declare const getActivePerpMarkets: (driftEnv: DriftEnv) => PerpMarketConfig[];
5
- export declare const getActiveSpotMarkets: (driftEnv: DriftEnv) => SpotMarketConfig[];
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getActiveSpotMarkets = exports.getActivePerpMarkets = void 0;
4
- const constants_1 = require("./constants");
5
- const perpMarkets_1 = require("./constants/perpMarkets");
6
- const types_1 = require("./types");
7
- const getActivePerpMarkets = (driftEnv) => {
8
- return perpMarkets_1.PerpMarkets[driftEnv !== null && driftEnv !== void 0 ? driftEnv : 'mainnet-beta'].filter((market) => !market.marketStatus ||
9
- !(0, types_1.isOneOfVariant)(market.marketStatus, ['delisted', 'settlement']));
10
- };
11
- exports.getActivePerpMarkets = getActivePerpMarkets;
12
- const getActiveSpotMarkets = (driftEnv) => {
13
- return constants_1.SpotMarkets[driftEnv !== null && driftEnv !== void 0 ? driftEnv : 'mainnet-beta'].filter((market) => !market.marketStatus ||
14
- !(0, types_1.isOneOfVariant)(market.marketStatus, ['delisted', 'settlement']));
15
- };
16
- exports.getActiveSpotMarkets = getActiveSpotMarkets;
@@ -1,6 +0,0 @@
1
- import { DriftEnv } from './config';
2
- import { SpotMarketConfig } from './constants';
3
- import { PerpMarketConfig } from './constants/perpMarkets';
4
- export declare const getActivePerpMarkets: (driftEnv: DriftEnv) => PerpMarketConfig[];
5
- export declare const getActiveSpotMarkets: (driftEnv: DriftEnv) => SpotMarketConfig[];
6
- //# sourceMappingURL=markets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markets.d.ts","sourceRoot":"","sources":["../../src/markets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAe,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAe,MAAM,yBAAyB,CAAC;AAGxE,eAAO,MAAM,oBAAoB,aACtB,QAAQ,KAChB,gBAAgB,EAMlB,CAAC;AAEF,eAAO,MAAM,oBAAoB,aACtB,QAAQ,KAChB,gBAAgB,EAMlB,CAAC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getActiveSpotMarkets = exports.getActivePerpMarkets = void 0;
4
- const constants_1 = require("./constants");
5
- const perpMarkets_1 = require("./constants/perpMarkets");
6
- const types_1 = require("./types");
7
- const getActivePerpMarkets = (driftEnv) => {
8
- return perpMarkets_1.PerpMarkets[driftEnv !== null && driftEnv !== void 0 ? driftEnv : 'mainnet-beta'].filter((market) => !market.marketStatus ||
9
- !(0, types_1.isOneOfVariant)(market.marketStatus, ['delisted', 'settlement']));
10
- };
11
- exports.getActivePerpMarkets = getActivePerpMarkets;
12
- const getActiveSpotMarkets = (driftEnv) => {
13
- return constants_1.SpotMarkets[driftEnv !== null && driftEnv !== void 0 ? driftEnv : 'mainnet-beta'].filter((market) => !market.marketStatus ||
14
- !(0, types_1.isOneOfVariant)(market.marketStatus, ['delisted', 'settlement']));
15
- };
16
- exports.getActiveSpotMarkets = getActiveSpotMarkets;
package/src/markets.ts DELETED
@@ -1,24 +0,0 @@
1
- import { DriftEnv } from './config';
2
- import { SpotMarketConfig, SpotMarkets } from './constants';
3
- import { PerpMarketConfig, PerpMarkets } from './constants/perpMarkets';
4
- import { isOneOfVariant } from './types';
5
-
6
- export const getActivePerpMarkets = (
7
- driftEnv: DriftEnv
8
- ): PerpMarketConfig[] => {
9
- return PerpMarkets[driftEnv ?? 'mainnet-beta'].filter(
10
- (market) =>
11
- !market.marketStatus ||
12
- !isOneOfVariant(market.marketStatus, ['delisted', 'settlement'])
13
- );
14
- };
15
-
16
- export const getActiveSpotMarkets = (
17
- driftEnv: DriftEnv
18
- ): SpotMarketConfig[] => {
19
- return SpotMarkets[driftEnv ?? 'mainnet-beta'].filter(
20
- (market) =>
21
- !market.marketStatus ||
22
- !isOneOfVariant(market.marketStatus, ['delisted', 'settlement'])
23
- );
24
- };