@drift-labs/sdk-browser 2.104.0-beta.27 → 2.104.0-beta.29
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 +11 -0
- package/lib/browser/constants/spotMarkets.js +11 -0
- package/lib/browser/dlob/DLOBNode.js +1 -1
- package/lib/node/constants/perpMarkets.js +11 -0
- package/lib/node/constants/spotMarkets.js +11 -0
- package/lib/node/dlob/DLOBNode.js +1 -1
- package/package.json +1 -1
- package/src/constants/perpMarkets.ts +12 -0
- package/src/constants/spotMarkets.ts +12 -0
- package/src/dlob/DLOBNode.ts +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.104.0-beta.
|
|
1
|
+
2.104.0-beta.29
|
|
@@ -990,6 +990,17 @@ exports.MainnetPerpMarkets = [
|
|
|
990
990
|
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
991
991
|
pythFeedId: '0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
|
|
992
992
|
},
|
|
993
|
+
{
|
|
994
|
+
fullName: 'PENGU',
|
|
995
|
+
category: ['Meme'],
|
|
996
|
+
symbol: 'PENGU-PERP',
|
|
997
|
+
baseAssetSymbol: 'PENGU',
|
|
998
|
+
marketIndex: 62,
|
|
999
|
+
oracle: new web3_js_1.PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
|
|
1000
|
+
launchTs: 1734444000000,
|
|
1001
|
+
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
1002
|
+
pythFeedId: '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
|
|
1003
|
+
},
|
|
993
1004
|
];
|
|
994
1005
|
exports.PerpMarkets = {
|
|
995
1006
|
devnet: exports.DevnetPerpMarkets,
|
|
@@ -463,6 +463,17 @@ exports.MainnetSpotMarkets = [
|
|
|
463
463
|
precisionExp: numericConstants_1.SIX,
|
|
464
464
|
pythFeedId: '0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
|
|
465
465
|
},
|
|
466
|
+
{
|
|
467
|
+
symbol: 'PENGU',
|
|
468
|
+
marketIndex: 31,
|
|
469
|
+
poolId: 0,
|
|
470
|
+
oracle: new web3_js_1.PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
|
|
471
|
+
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
472
|
+
mint: new web3_js_1.PublicKey('2zMMhcVQEXDtdE6vsFS7S7D5oUodfJHE8vd1gnBouauv'),
|
|
473
|
+
precision: new __1.BN(10).pow(numericConstants_1.SIX),
|
|
474
|
+
precisionExp: numericConstants_1.SIX,
|
|
475
|
+
pythFeedId: '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
|
|
476
|
+
},
|
|
466
477
|
];
|
|
467
478
|
exports.SpotMarkets = {
|
|
468
479
|
devnet: exports.DevnetSpotMarkets,
|
|
@@ -72,7 +72,7 @@ exports.TriggerOrderNode = TriggerOrderNode;
|
|
|
72
72
|
// We'll use the swift uuid for the order id since it's not yet on-chain
|
|
73
73
|
class SwiftOrderNode extends OrderNode {
|
|
74
74
|
constructor(order, userAccount) {
|
|
75
|
-
super(order, userAccount, true);
|
|
75
|
+
super(order, userAccount, false, true);
|
|
76
76
|
}
|
|
77
77
|
getSortValue(order) {
|
|
78
78
|
return order.slot;
|
|
@@ -990,6 +990,17 @@ exports.MainnetPerpMarkets = [
|
|
|
990
990
|
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
991
991
|
pythFeedId: '0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
|
|
992
992
|
},
|
|
993
|
+
{
|
|
994
|
+
fullName: 'PENGU',
|
|
995
|
+
category: ['Meme'],
|
|
996
|
+
symbol: 'PENGU-PERP',
|
|
997
|
+
baseAssetSymbol: 'PENGU',
|
|
998
|
+
marketIndex: 62,
|
|
999
|
+
oracle: new web3_js_1.PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
|
|
1000
|
+
launchTs: 1734444000000,
|
|
1001
|
+
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
1002
|
+
pythFeedId: '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
|
|
1003
|
+
},
|
|
993
1004
|
];
|
|
994
1005
|
exports.PerpMarkets = {
|
|
995
1006
|
devnet: exports.DevnetPerpMarkets,
|
|
@@ -463,6 +463,17 @@ exports.MainnetSpotMarkets = [
|
|
|
463
463
|
precisionExp: numericConstants_1.SIX,
|
|
464
464
|
pythFeedId: '0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
|
|
465
465
|
},
|
|
466
|
+
{
|
|
467
|
+
symbol: 'PENGU',
|
|
468
|
+
marketIndex: 31,
|
|
469
|
+
poolId: 0,
|
|
470
|
+
oracle: new web3_js_1.PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
|
|
471
|
+
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
472
|
+
mint: new web3_js_1.PublicKey('2zMMhcVQEXDtdE6vsFS7S7D5oUodfJHE8vd1gnBouauv'),
|
|
473
|
+
precision: new __1.BN(10).pow(numericConstants_1.SIX),
|
|
474
|
+
precisionExp: numericConstants_1.SIX,
|
|
475
|
+
pythFeedId: '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
|
|
476
|
+
},
|
|
466
477
|
];
|
|
467
478
|
exports.SpotMarkets = {
|
|
468
479
|
devnet: exports.DevnetSpotMarkets,
|
|
@@ -72,7 +72,7 @@ exports.TriggerOrderNode = TriggerOrderNode;
|
|
|
72
72
|
// We'll use the swift uuid for the order id since it's not yet on-chain
|
|
73
73
|
class SwiftOrderNode extends OrderNode {
|
|
74
74
|
constructor(order, userAccount) {
|
|
75
|
-
super(order, userAccount, true);
|
|
75
|
+
super(order, userAccount, false, true);
|
|
76
76
|
}
|
|
77
77
|
getSortValue(order) {
|
|
78
78
|
return order.slot;
|
package/package.json
CHANGED
|
@@ -1076,6 +1076,18 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
1076
1076
|
pythFeedId:
|
|
1077
1077
|
'0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
|
|
1078
1078
|
},
|
|
1079
|
+
{
|
|
1080
|
+
fullName: 'PENGU',
|
|
1081
|
+
category: ['Meme'],
|
|
1082
|
+
symbol: 'PENGU-PERP',
|
|
1083
|
+
baseAssetSymbol: 'PENGU',
|
|
1084
|
+
marketIndex: 62,
|
|
1085
|
+
oracle: new PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
|
|
1086
|
+
launchTs: 1734444000000,
|
|
1087
|
+
oracleSource: OracleSource.PYTH_PULL,
|
|
1088
|
+
pythFeedId:
|
|
1089
|
+
'0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
|
|
1090
|
+
},
|
|
1079
1091
|
];
|
|
1080
1092
|
|
|
1081
1093
|
export const PerpMarkets: { [key in DriftEnv]: PerpMarketConfig[] } = {
|
|
@@ -557,6 +557,18 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
557
557
|
pythFeedId:
|
|
558
558
|
'0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
|
|
559
559
|
},
|
|
560
|
+
{
|
|
561
|
+
symbol: 'PENGU',
|
|
562
|
+
marketIndex: 31,
|
|
563
|
+
poolId: 0,
|
|
564
|
+
oracle: new PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
|
|
565
|
+
oracleSource: OracleSource.PYTH_PULL,
|
|
566
|
+
mint: new PublicKey('2zMMhcVQEXDtdE6vsFS7S7D5oUodfJHE8vd1gnBouauv'),
|
|
567
|
+
precision: new BN(10).pow(SIX),
|
|
568
|
+
precisionExp: SIX,
|
|
569
|
+
pythFeedId:
|
|
570
|
+
'0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
|
|
571
|
+
},
|
|
560
572
|
];
|
|
561
573
|
|
|
562
574
|
export const SpotMarkets: { [key in DriftEnv]: SpotMarketConfig[] } = {
|
package/src/dlob/DLOBNode.ts
CHANGED
|
@@ -139,7 +139,7 @@ export class SwiftOrderNode extends OrderNode {
|
|
|
139
139
|
previous?: SwiftOrderNode;
|
|
140
140
|
|
|
141
141
|
constructor(order: Order, userAccount: string) {
|
|
142
|
-
super(order, userAccount, true);
|
|
142
|
+
super(order, userAccount, false, true);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
getSortValue(order: Order): BN {
|