@drift-labs/sdk 2.104.0-beta.0 → 2.104.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.
- package/VERSION +1 -1
- package/lib/browser/constants/perpMarkets.js +22 -0
- package/lib/browser/index.d.ts +1 -0
- package/lib/browser/index.js +1 -0
- package/lib/node/constants/perpMarkets.js +22 -0
- package/lib/node/index.d.ts +1 -0
- package/lib/node/index.js +1 -0
- package/package.json +1 -1
- package/src/constants/perpMarkets.ts +24 -0
- package/src/index.ts +1 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.104.0-beta.
|
|
1
|
+
2.104.0-beta.2
|
|
@@ -957,6 +957,28 @@ exports.MainnetPerpMarkets = [
|
|
|
957
957
|
launchTs: 1732721897000,
|
|
958
958
|
oracleSource: __1.OracleSource.Prelaunch,
|
|
959
959
|
},
|
|
960
|
+
{
|
|
961
|
+
fullName: 'Hyperliquid',
|
|
962
|
+
category: ['DEX'],
|
|
963
|
+
symbol: 'HYPE-PERP',
|
|
964
|
+
baseAssetSymbol: 'HYPE',
|
|
965
|
+
marketIndex: 59,
|
|
966
|
+
oracle: new web3_js_1.PublicKey('Hn9JHQHKSvtnZ2xTWCgRGVNmav2TPffH7T72T6WoJ1cw'),
|
|
967
|
+
launchTs: 1733374800000,
|
|
968
|
+
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
969
|
+
pythFeedId: '0x4279e31cc369bbcc2faf022b382b080e32a8e689ff20fbc530d2a603eb6cd98b',
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
fullName: 'LiteCoin',
|
|
973
|
+
category: ['Payment'],
|
|
974
|
+
symbol: 'LTC-PERP',
|
|
975
|
+
baseAssetSymbol: 'LTC',
|
|
976
|
+
marketIndex: 60,
|
|
977
|
+
oracle: new web3_js_1.PublicKey('AmjHowvVkVJApCPUiwV9CdHVFn29LiBYZQqtZQ3xMqdg'),
|
|
978
|
+
launchTs: 1733374800000,
|
|
979
|
+
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
980
|
+
pythFeedId: '0x6e3f3fa8253588df9326580180233eb791e03b443a3ba7a1d892e73874e19a54',
|
|
981
|
+
},
|
|
960
982
|
];
|
|
961
983
|
exports.PerpMarkets = {
|
|
962
984
|
devnet: exports.DevnetPerpMarkets,
|
package/lib/browser/index.d.ts
CHANGED
package/lib/browser/index.js
CHANGED
|
@@ -145,3 +145,4 @@ __exportStar(require("./blockhashSubscriber"), exports);
|
|
|
145
145
|
__exportStar(require("./util/chainClock"), exports);
|
|
146
146
|
__exportStar(require("./util/TransactionConfirmationManager"), exports);
|
|
147
147
|
__exportStar(require("./clock/clockSubscriber"), exports);
|
|
148
|
+
__exportStar(require("./math/userStatus"), exports);
|
|
@@ -957,6 +957,28 @@ exports.MainnetPerpMarkets = [
|
|
|
957
957
|
launchTs: 1732721897000,
|
|
958
958
|
oracleSource: __1.OracleSource.Prelaunch,
|
|
959
959
|
},
|
|
960
|
+
{
|
|
961
|
+
fullName: 'Hyperliquid',
|
|
962
|
+
category: ['DEX'],
|
|
963
|
+
symbol: 'HYPE-PERP',
|
|
964
|
+
baseAssetSymbol: 'HYPE',
|
|
965
|
+
marketIndex: 59,
|
|
966
|
+
oracle: new web3_js_1.PublicKey('Hn9JHQHKSvtnZ2xTWCgRGVNmav2TPffH7T72T6WoJ1cw'),
|
|
967
|
+
launchTs: 1733374800000,
|
|
968
|
+
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
969
|
+
pythFeedId: '0x4279e31cc369bbcc2faf022b382b080e32a8e689ff20fbc530d2a603eb6cd98b',
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
fullName: 'LiteCoin',
|
|
973
|
+
category: ['Payment'],
|
|
974
|
+
symbol: 'LTC-PERP',
|
|
975
|
+
baseAssetSymbol: 'LTC',
|
|
976
|
+
marketIndex: 60,
|
|
977
|
+
oracle: new web3_js_1.PublicKey('AmjHowvVkVJApCPUiwV9CdHVFn29LiBYZQqtZQ3xMqdg'),
|
|
978
|
+
launchTs: 1733374800000,
|
|
979
|
+
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
980
|
+
pythFeedId: '0x6e3f3fa8253588df9326580180233eb791e03b443a3ba7a1d892e73874e19a54',
|
|
981
|
+
},
|
|
960
982
|
];
|
|
961
983
|
exports.PerpMarkets = {
|
|
962
984
|
devnet: exports.DevnetPerpMarkets,
|
package/lib/node/index.d.ts
CHANGED
package/lib/node/index.js
CHANGED
|
@@ -145,3 +145,4 @@ __exportStar(require("./blockhashSubscriber"), exports);
|
|
|
145
145
|
__exportStar(require("./util/chainClock"), exports);
|
|
146
146
|
__exportStar(require("./util/TransactionConfirmationManager"), exports);
|
|
147
147
|
__exportStar(require("./clock/clockSubscriber"), exports);
|
|
148
|
+
__exportStar(require("./math/userStatus"), exports);
|
package/package.json
CHANGED
|
@@ -1040,6 +1040,30 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
1040
1040
|
launchTs: 1732721897000,
|
|
1041
1041
|
oracleSource: OracleSource.Prelaunch,
|
|
1042
1042
|
},
|
|
1043
|
+
{
|
|
1044
|
+
fullName: 'Hyperliquid',
|
|
1045
|
+
category: ['DEX'],
|
|
1046
|
+
symbol: 'HYPE-PERP',
|
|
1047
|
+
baseAssetSymbol: 'HYPE',
|
|
1048
|
+
marketIndex: 59,
|
|
1049
|
+
oracle: new PublicKey('Hn9JHQHKSvtnZ2xTWCgRGVNmav2TPffH7T72T6WoJ1cw'),
|
|
1050
|
+
launchTs: 1733374800000,
|
|
1051
|
+
oracleSource: OracleSource.PYTH_PULL,
|
|
1052
|
+
pythFeedId:
|
|
1053
|
+
'0x4279e31cc369bbcc2faf022b382b080e32a8e689ff20fbc530d2a603eb6cd98b',
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
fullName: 'LiteCoin',
|
|
1057
|
+
category: ['Payment'],
|
|
1058
|
+
symbol: 'LTC-PERP',
|
|
1059
|
+
baseAssetSymbol: 'LTC',
|
|
1060
|
+
marketIndex: 60,
|
|
1061
|
+
oracle: new PublicKey('AmjHowvVkVJApCPUiwV9CdHVFn29LiBYZQqtZQ3xMqdg'),
|
|
1062
|
+
launchTs: 1733374800000,
|
|
1063
|
+
oracleSource: OracleSource.PYTH_PULL,
|
|
1064
|
+
pythFeedId:
|
|
1065
|
+
'0x6e3f3fa8253588df9326580180233eb791e03b443a3ba7a1d892e73874e19a54',
|
|
1066
|
+
},
|
|
1043
1067
|
];
|
|
1044
1068
|
|
|
1045
1069
|
export const PerpMarkets: { [key in DriftEnv]: PerpMarketConfig[] } = {
|
package/src/index.ts
CHANGED
|
@@ -123,5 +123,6 @@ export * from './blockhashSubscriber';
|
|
|
123
123
|
export * from './util/chainClock';
|
|
124
124
|
export * from './util/TransactionConfirmationManager';
|
|
125
125
|
export * from './clock/clockSubscriber';
|
|
126
|
+
export * from './math/userStatus';
|
|
126
127
|
|
|
127
128
|
export { BN, PublicKey, pyth };
|