@drift-labs/sdk 2.131.0-beta.5 → 2.131.0-beta.7

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.131.0-beta.5
1
+ 2.131.0-beta.7
@@ -0,0 +1,5 @@
1
+ export * from './insuranceFund';
2
+ export * from './numericConstants';
3
+ export * from './perpMarkets';
4
+ export * from './spotMarkets';
5
+ export * from './txConstants';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./insuranceFund"), exports);
18
+ __exportStar(require("./numericConstants"), exports);
19
+ __exportStar(require("./perpMarkets"), exports);
20
+ __exportStar(require("./spotMarkets"), exports);
21
+ __exportStar(require("./txConstants"), exports);
@@ -7576,6 +7576,27 @@
7576
7576
  }
7577
7577
  ],
7578
7578
  "args": []
7579
+ },
7580
+ {
7581
+ "name": "updateFeatureBitFlagsMedianTriggerPrice",
7582
+ "accounts": [
7583
+ {
7584
+ "name": "admin",
7585
+ "isMut": false,
7586
+ "isSigner": true
7587
+ },
7588
+ {
7589
+ "name": "state",
7590
+ "isMut": true,
7591
+ "isSigner": false
7592
+ }
7593
+ ],
7594
+ "args": [
7595
+ {
7596
+ "name": "enable",
7597
+ "type": "bool"
7598
+ }
7599
+ ]
7579
7600
  }
7580
7601
  ],
7581
7602
  "accounts": [
@@ -11434,7 +11455,7 @@
11434
11455
  {
11435
11456
  "name": "openBids",
11436
11457
  "docs": [
11437
- "How many spot bids the user has open",
11458
+ "How many spot non reduce only trigger orders the user has open",
11438
11459
  "precision: token mint precision"
11439
11460
  ],
11440
11461
  "type": "i64"
@@ -11442,7 +11463,7 @@
11442
11463
  {
11443
11464
  "name": "openAsks",
11444
11465
  "docs": [
11445
- "How many spot asks the user has open",
11466
+ "How many spot non reduce only trigger orders the user has open",
11446
11467
  "precision: token mint precision"
11447
11468
  ],
11448
11469
  "type": "i64"
@@ -11541,7 +11562,7 @@
11541
11562
  {
11542
11563
  "name": "openBids",
11543
11564
  "docs": [
11544
- "The amount of open bids the user has in this perp market",
11565
+ "The amount of non reduce only trigger orders the user has open",
11545
11566
  "precision: BASE_PRECISION"
11546
11567
  ],
11547
11568
  "type": "i64"
@@ -11549,7 +11570,7 @@
11549
11570
  {
11550
11571
  "name": "openAsks",
11551
11572
  "docs": [
11552
- "The amount of open asks the user has in this perp market",
11573
+ "The amount of non reduce only trigger orders the user has open",
11553
11574
  "precision: BASE_PRECISION"
11554
11575
  ],
11555
11576
  "type": "i64"
@@ -12810,7 +12831,7 @@
12810
12831
  "name": "MmOracleUpdate"
12811
12832
  },
12812
12833
  {
12813
- "name": "EnableMedianTriggerPrice"
12834
+ "name": "MedianTriggerPrice"
12814
12835
  }
12815
12836
  ]
12816
12837
  }
@@ -12942,6 +12963,9 @@
12942
12963
  },
12943
12964
  {
12944
12965
  "name": "SafeTriggerOrder"
12966
+ },
12967
+ {
12968
+ "name": "NewTriggerReduceOnly"
12945
12969
  }
12946
12970
  ]
12947
12971
  }
@@ -13738,6 +13762,13 @@
13738
13762
  "option": "u64"
13739
13763
  },
13740
13764
  "index": false
13765
+ },
13766
+ {
13767
+ "name": "triggerPrice",
13768
+ "type": {
13769
+ "option": "u64"
13770
+ },
13771
+ "index": false
13741
13772
  }
13742
13773
  ]
13743
13774
  },
@@ -6,7 +6,6 @@ export * from './oracles/types';
6
6
  export * from './oracles/pythClient';
7
7
  export * from './oracles/strictOraclePrice';
8
8
  export * from './types';
9
- export * from './constants/perpMarkets';
10
9
  export * from './accounts/fetch';
11
10
  export * from './accounts/webSocketDriftClientAccountSubscriber';
12
11
  export * from './accounts/webSocketInsuranceFundStakeAccountSubscriber';
@@ -77,7 +76,6 @@ export * from './types';
77
76
  export * from './math/utils';
78
77
  export * from './math/fuel';
79
78
  export * from './config';
80
- export * from './constants/numericConstants';
81
79
  export * from './serum/serumSubscriber';
82
80
  export * from './serum/serumFulfillmentConfigMap';
83
81
  export * from './phoenix/phoenixSubscriber';
@@ -107,7 +105,6 @@ export * from './util/tps';
107
105
  export * from './util/promiseTimeout';
108
106
  export * from './util/pythOracleUtils';
109
107
  export * from './math/spotBalance';
110
- export * from './constants/spotMarkets';
111
108
  export * from './driftClientConfig';
112
109
  export * from './dlob/DLOB';
113
110
  export * from './dlob/DLOBNode';
@@ -131,6 +128,6 @@ export * from './util/chainClock';
131
128
  export * from './util/TransactionConfirmationManager';
132
129
  export * from './clock/clockSubscriber';
133
130
  export * from './math/userStatus';
134
- export * from './constants/txConstants';
135
131
  export * from './indicative-quotes/indicativeQuotesSender';
132
+ export * from './constants';
136
133
  export { BN, PublicKey, pyth };
@@ -29,7 +29,6 @@ __exportStar(require("./oracles/types"), exports);
29
29
  __exportStar(require("./oracles/pythClient"), exports);
30
30
  __exportStar(require("./oracles/strictOraclePrice"), exports);
31
31
  __exportStar(require("./types"), exports);
32
- __exportStar(require("./constants/perpMarkets"), exports);
33
32
  __exportStar(require("./accounts/fetch"), exports);
34
33
  __exportStar(require("./accounts/webSocketDriftClientAccountSubscriber"), exports);
35
34
  __exportStar(require("./accounts/webSocketInsuranceFundStakeAccountSubscriber"), exports);
@@ -102,7 +101,6 @@ __exportStar(require("./types"), exports);
102
101
  __exportStar(require("./math/utils"), exports);
103
102
  __exportStar(require("./math/fuel"), exports);
104
103
  __exportStar(require("./config"), exports);
105
- __exportStar(require("./constants/numericConstants"), exports);
106
104
  __exportStar(require("./serum/serumSubscriber"), exports);
107
105
  __exportStar(require("./serum/serumFulfillmentConfigMap"), exports);
108
106
  __exportStar(require("./phoenix/phoenixSubscriber"), exports);
@@ -132,7 +130,6 @@ __exportStar(require("./util/tps"), exports);
132
130
  __exportStar(require("./util/promiseTimeout"), exports);
133
131
  __exportStar(require("./util/pythOracleUtils"), exports);
134
132
  __exportStar(require("./math/spotBalance"), exports);
135
- __exportStar(require("./constants/spotMarkets"), exports);
136
133
  __exportStar(require("./driftClientConfig"), exports);
137
134
  __exportStar(require("./dlob/DLOB"), exports);
138
135
  __exportStar(require("./dlob/DLOBNode"), exports);
@@ -156,5 +153,5 @@ __exportStar(require("./util/chainClock"), exports);
156
153
  __exportStar(require("./util/TransactionConfirmationManager"), exports);
157
154
  __exportStar(require("./clock/clockSubscriber"), exports);
158
155
  __exportStar(require("./math/userStatus"), exports);
159
- __exportStar(require("./constants/txConstants"), exports);
160
156
  __exportStar(require("./indicative-quotes/indicativeQuotesSender"), exports);
157
+ __exportStar(require("./constants"), exports);
@@ -0,0 +1,6 @@
1
+ export * from './insuranceFund';
2
+ export * from './numericConstants';
3
+ export * from './perpMarkets';
4
+ export * from './spotMarkets';
5
+ export * from './txConstants';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./insuranceFund"), exports);
18
+ __exportStar(require("./numericConstants"), exports);
19
+ __exportStar(require("./perpMarkets"), exports);
20
+ __exportStar(require("./spotMarkets"), exports);
21
+ __exportStar(require("./txConstants"), exports);
@@ -7576,6 +7576,27 @@
7576
7576
  }
7577
7577
  ],
7578
7578
  "args": []
7579
+ },
7580
+ {
7581
+ "name": "updateFeatureBitFlagsMedianTriggerPrice",
7582
+ "accounts": [
7583
+ {
7584
+ "name": "admin",
7585
+ "isMut": false,
7586
+ "isSigner": true
7587
+ },
7588
+ {
7589
+ "name": "state",
7590
+ "isMut": true,
7591
+ "isSigner": false
7592
+ }
7593
+ ],
7594
+ "args": [
7595
+ {
7596
+ "name": "enable",
7597
+ "type": "bool"
7598
+ }
7599
+ ]
7579
7600
  }
7580
7601
  ],
7581
7602
  "accounts": [
@@ -11434,7 +11455,7 @@
11434
11455
  {
11435
11456
  "name": "openBids",
11436
11457
  "docs": [
11437
- "How many spot bids the user has open",
11458
+ "How many spot non reduce only trigger orders the user has open",
11438
11459
  "precision: token mint precision"
11439
11460
  ],
11440
11461
  "type": "i64"
@@ -11442,7 +11463,7 @@
11442
11463
  {
11443
11464
  "name": "openAsks",
11444
11465
  "docs": [
11445
- "How many spot asks the user has open",
11466
+ "How many spot non reduce only trigger orders the user has open",
11446
11467
  "precision: token mint precision"
11447
11468
  ],
11448
11469
  "type": "i64"
@@ -11541,7 +11562,7 @@
11541
11562
  {
11542
11563
  "name": "openBids",
11543
11564
  "docs": [
11544
- "The amount of open bids the user has in this perp market",
11565
+ "The amount of non reduce only trigger orders the user has open",
11545
11566
  "precision: BASE_PRECISION"
11546
11567
  ],
11547
11568
  "type": "i64"
@@ -11549,7 +11570,7 @@
11549
11570
  {
11550
11571
  "name": "openAsks",
11551
11572
  "docs": [
11552
- "The amount of open asks the user has in this perp market",
11573
+ "The amount of non reduce only trigger orders the user has open",
11553
11574
  "precision: BASE_PRECISION"
11554
11575
  ],
11555
11576
  "type": "i64"
@@ -12810,7 +12831,7 @@
12810
12831
  "name": "MmOracleUpdate"
12811
12832
  },
12812
12833
  {
12813
- "name": "EnableMedianTriggerPrice"
12834
+ "name": "MedianTriggerPrice"
12814
12835
  }
12815
12836
  ]
12816
12837
  }
@@ -12942,6 +12963,9 @@
12942
12963
  },
12943
12964
  {
12944
12965
  "name": "SafeTriggerOrder"
12966
+ },
12967
+ {
12968
+ "name": "NewTriggerReduceOnly"
12945
12969
  }
12946
12970
  ]
12947
12971
  }
@@ -13738,6 +13762,13 @@
13738
13762
  "option": "u64"
13739
13763
  },
13740
13764
  "index": false
13765
+ },
13766
+ {
13767
+ "name": "triggerPrice",
13768
+ "type": {
13769
+ "option": "u64"
13770
+ },
13771
+ "index": false
13741
13772
  }
13742
13773
  ]
13743
13774
  },
@@ -6,7 +6,6 @@ export * from './oracles/types';
6
6
  export * from './oracles/pythClient';
7
7
  export * from './oracles/strictOraclePrice';
8
8
  export * from './types';
9
- export * from './constants/perpMarkets';
10
9
  export * from './accounts/fetch';
11
10
  export * from './accounts/webSocketDriftClientAccountSubscriber';
12
11
  export * from './accounts/webSocketInsuranceFundStakeAccountSubscriber';
@@ -77,7 +76,6 @@ export * from './types';
77
76
  export * from './math/utils';
78
77
  export * from './math/fuel';
79
78
  export * from './config';
80
- export * from './constants/numericConstants';
81
79
  export * from './serum/serumSubscriber';
82
80
  export * from './serum/serumFulfillmentConfigMap';
83
81
  export * from './phoenix/phoenixSubscriber';
@@ -107,7 +105,6 @@ export * from './util/tps';
107
105
  export * from './util/promiseTimeout';
108
106
  export * from './util/pythOracleUtils';
109
107
  export * from './math/spotBalance';
110
- export * from './constants/spotMarkets';
111
108
  export * from './driftClientConfig';
112
109
  export * from './dlob/DLOB';
113
110
  export * from './dlob/DLOBNode';
@@ -131,7 +128,7 @@ export * from './util/chainClock';
131
128
  export * from './util/TransactionConfirmationManager';
132
129
  export * from './clock/clockSubscriber';
133
130
  export * from './math/userStatus';
134
- export * from './constants/txConstants';
135
131
  export * from './indicative-quotes/indicativeQuotesSender';
132
+ export * from './constants';
136
133
  export { BN, PublicKey, pyth };
137
134
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,qBAAqB,CAAC;AAEvC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kDAAkD,CAAC;AACjE,cAAc,yDAAyD,CAAC;AACxE,cAAc,6DAA6D,CAAC;AAC5E,OAAO,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AACvF,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,OAAO,EAAE,kCAAkC,EAAE,MAAM,+CAA+C,CAAC;AACnG,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,C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uB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,aAAa,CAAC;AAE5B,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC"}
package/lib/node/index.js CHANGED
@@ -29,7 +29,6 @@ __exportStar(require("./oracles/types"), exports);
29
29
  __exportStar(require("./oracles/pythClient"), exports);
30
30
  __exportStar(require("./oracles/strictOraclePrice"), exports);
31
31
  __exportStar(require("./types"), exports);
32
- __exportStar(require("./constants/perpMarkets"), exports);
33
32
  __exportStar(require("./accounts/fetch"), exports);
34
33
  __exportStar(require("./accounts/webSocketDriftClientAccountSubscriber"), exports);
35
34
  __exportStar(require("./accounts/webSocketInsuranceFundStakeAccountSubscriber"), exports);
@@ -102,7 +101,6 @@ __exportStar(require("./types"), exports);
102
101
  __exportStar(require("./math/utils"), exports);
103
102
  __exportStar(require("./math/fuel"), exports);
104
103
  __exportStar(require("./config"), exports);
105
- __exportStar(require("./constants/numericConstants"), exports);
106
104
  __exportStar(require("./serum/serumSubscriber"), exports);
107
105
  __exportStar(require("./serum/serumFulfillmentConfigMap"), exports);
108
106
  __exportStar(require("./phoenix/phoenixSubscriber"), exports);
@@ -132,7 +130,6 @@ __exportStar(require("./util/tps"), exports);
132
130
  __exportStar(require("./util/promiseTimeout"), exports);
133
131
  __exportStar(require("./util/pythOracleUtils"), exports);
134
132
  __exportStar(require("./math/spotBalance"), exports);
135
- __exportStar(require("./constants/spotMarkets"), exports);
136
133
  __exportStar(require("./driftClientConfig"), exports);
137
134
  __exportStar(require("./dlob/DLOB"), exports);
138
135
  __exportStar(require("./dlob/DLOBNode"), exports);
@@ -156,5 +153,5 @@ __exportStar(require("./util/chainClock"), exports);
156
153
  __exportStar(require("./util/TransactionConfirmationManager"), exports);
157
154
  __exportStar(require("./clock/clockSubscriber"), exports);
158
155
  __exportStar(require("./math/userStatus"), exports);
159
- __exportStar(require("./constants/txConstants"), exports);
160
156
  __exportStar(require("./indicative-quotes/indicativeQuotesSender"), exports);
157
+ __exportStar(require("./constants"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.131.0-beta.5",
3
+ "version": "2.131.0-beta.7",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -0,0 +1,5 @@
1
+ export * from './insuranceFund';
2
+ export * from './numericConstants';
3
+ export * from './perpMarkets';
4
+ export * from './spotMarkets';
5
+ export * from './txConstants';
@@ -7576,6 +7576,27 @@
7576
7576
  }
7577
7577
  ],
7578
7578
  "args": []
7579
+ },
7580
+ {
7581
+ "name": "updateFeatureBitFlagsMedianTriggerPrice",
7582
+ "accounts": [
7583
+ {
7584
+ "name": "admin",
7585
+ "isMut": false,
7586
+ "isSigner": true
7587
+ },
7588
+ {
7589
+ "name": "state",
7590
+ "isMut": true,
7591
+ "isSigner": false
7592
+ }
7593
+ ],
7594
+ "args": [
7595
+ {
7596
+ "name": "enable",
7597
+ "type": "bool"
7598
+ }
7599
+ ]
7579
7600
  }
7580
7601
  ],
7581
7602
  "accounts": [
@@ -11434,7 +11455,7 @@
11434
11455
  {
11435
11456
  "name": "openBids",
11436
11457
  "docs": [
11437
- "How many spot bids the user has open",
11458
+ "How many spot non reduce only trigger orders the user has open",
11438
11459
  "precision: token mint precision"
11439
11460
  ],
11440
11461
  "type": "i64"
@@ -11442,7 +11463,7 @@
11442
11463
  {
11443
11464
  "name": "openAsks",
11444
11465
  "docs": [
11445
- "How many spot asks the user has open",
11466
+ "How many spot non reduce only trigger orders the user has open",
11446
11467
  "precision: token mint precision"
11447
11468
  ],
11448
11469
  "type": "i64"
@@ -11541,7 +11562,7 @@
11541
11562
  {
11542
11563
  "name": "openBids",
11543
11564
  "docs": [
11544
- "The amount of open bids the user has in this perp market",
11565
+ "The amount of non reduce only trigger orders the user has open",
11545
11566
  "precision: BASE_PRECISION"
11546
11567
  ],
11547
11568
  "type": "i64"
@@ -11549,7 +11570,7 @@
11549
11570
  {
11550
11571
  "name": "openAsks",
11551
11572
  "docs": [
11552
- "The amount of open asks the user has in this perp market",
11573
+ "The amount of non reduce only trigger orders the user has open",
11553
11574
  "precision: BASE_PRECISION"
11554
11575
  ],
11555
11576
  "type": "i64"
@@ -12810,7 +12831,7 @@
12810
12831
  "name": "MmOracleUpdate"
12811
12832
  },
12812
12833
  {
12813
- "name": "EnableMedianTriggerPrice"
12834
+ "name": "MedianTriggerPrice"
12814
12835
  }
12815
12836
  ]
12816
12837
  }
@@ -12942,6 +12963,9 @@
12942
12963
  },
12943
12964
  {
12944
12965
  "name": "SafeTriggerOrder"
12966
+ },
12967
+ {
12968
+ "name": "NewTriggerReduceOnly"
12945
12969
  }
12946
12970
  ]
12947
12971
  }
@@ -13738,6 +13762,13 @@
13738
13762
  "option": "u64"
13739
13763
  },
13740
13764
  "index": false
13765
+ },
13766
+ {
13767
+ "name": "triggerPrice",
13768
+ "type": {
13769
+ "option": "u64"
13770
+ },
13771
+ "index": false
13741
13772
  }
13742
13773
  ]
13743
13774
  },
@@ -16046,4 +16077,4 @@
16046
16077
  "metadata": {
16047
16078
  "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
16048
16079
  }
16049
- }
16080
+ }
package/src/index.ts CHANGED
@@ -7,7 +7,6 @@ export * from './oracles/types';
7
7
  export * from './oracles/pythClient';
8
8
  export * from './oracles/strictOraclePrice';
9
9
  export * from './types';
10
- export * from './constants/perpMarkets';
11
10
  export * from './accounts/fetch';
12
11
  export * from './accounts/webSocketDriftClientAccountSubscriber';
13
12
  export * from './accounts/webSocketInsuranceFundStakeAccountSubscriber';
@@ -78,7 +77,6 @@ export * from './types';
78
77
  export * from './math/utils';
79
78
  export * from './math/fuel';
80
79
  export * from './config';
81
- export * from './constants/numericConstants';
82
80
  export * from './serum/serumSubscriber';
83
81
  export * from './serum/serumFulfillmentConfigMap';
84
82
  export * from './phoenix/phoenixSubscriber';
@@ -108,7 +106,6 @@ export * from './util/tps';
108
106
  export * from './util/promiseTimeout';
109
107
  export * from './util/pythOracleUtils';
110
108
  export * from './math/spotBalance';
111
- export * from './constants/spotMarkets';
112
109
  export * from './driftClientConfig';
113
110
  export * from './dlob/DLOB';
114
111
  export * from './dlob/DLOBNode';
@@ -132,7 +129,7 @@ export * from './util/chainClock';
132
129
  export * from './util/TransactionConfirmationManager';
133
130
  export * from './clock/clockSubscriber';
134
131
  export * from './math/userStatus';
135
- export * from './constants/txConstants';
136
132
  export * from './indicative-quotes/indicativeQuotesSender';
133
+ export * from './constants';
137
134
 
138
135
  export { BN, PublicKey, pyth };