@drift-labs/sdk 2.2.0-beta.1 → 2.2.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/lib/idl/drift.json +8 -5
- package/lib/types.d.ts +3 -0
- package/lib/types.js +1 -0
- package/package.json +1 -1
- package/src/idl/drift.json +8 -5
- package/src/types.ts +1 -0
package/lib/idl/drift.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.2.0-beta.2",
|
|
3
3
|
"name": "drift",
|
|
4
4
|
"instructions": [
|
|
5
5
|
{
|
|
@@ -4672,13 +4672,13 @@
|
|
|
4672
4672
|
{
|
|
4673
4673
|
"name": "auctionStartPrice",
|
|
4674
4674
|
"type": {
|
|
4675
|
-
"option": "
|
|
4675
|
+
"option": "i64"
|
|
4676
4676
|
}
|
|
4677
4677
|
},
|
|
4678
4678
|
{
|
|
4679
4679
|
"name": "auctionEndPrice",
|
|
4680
4680
|
"type": {
|
|
4681
|
-
"option": "
|
|
4681
|
+
"option": "i64"
|
|
4682
4682
|
}
|
|
4683
4683
|
}
|
|
4684
4684
|
]
|
|
@@ -5708,11 +5708,11 @@
|
|
|
5708
5708
|
},
|
|
5709
5709
|
{
|
|
5710
5710
|
"name": "auctionStartPrice",
|
|
5711
|
-
"type": "
|
|
5711
|
+
"type": "i64"
|
|
5712
5712
|
},
|
|
5713
5713
|
{
|
|
5714
5714
|
"name": "auctionEndPrice",
|
|
5715
|
-
"type": "
|
|
5715
|
+
"type": "i64"
|
|
5716
5716
|
},
|
|
5717
5717
|
{
|
|
5718
5718
|
"name": "maxTs",
|
|
@@ -6419,6 +6419,9 @@
|
|
|
6419
6419
|
},
|
|
6420
6420
|
{
|
|
6421
6421
|
"name": "TriggerLimit"
|
|
6422
|
+
},
|
|
6423
|
+
{
|
|
6424
|
+
"name": "Oracle"
|
|
6422
6425
|
}
|
|
6423
6426
|
]
|
|
6424
6427
|
}
|
package/lib/types.d.ts
CHANGED
package/lib/types.js
CHANGED
|
@@ -85,6 +85,7 @@ OrderType.LIMIT = { limit: {} };
|
|
|
85
85
|
OrderType.TRIGGER_MARKET = { triggerMarket: {} };
|
|
86
86
|
OrderType.TRIGGER_LIMIT = { triggerLimit: {} };
|
|
87
87
|
OrderType.MARKET = { market: {} };
|
|
88
|
+
OrderType.ORACLE = { oracle: {} };
|
|
88
89
|
class MarketType {
|
|
89
90
|
}
|
|
90
91
|
exports.MarketType = MarketType;
|
package/package.json
CHANGED
package/src/idl/drift.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.2.0-beta.2",
|
|
3
3
|
"name": "drift",
|
|
4
4
|
"instructions": [
|
|
5
5
|
{
|
|
@@ -4672,13 +4672,13 @@
|
|
|
4672
4672
|
{
|
|
4673
4673
|
"name": "auctionStartPrice",
|
|
4674
4674
|
"type": {
|
|
4675
|
-
"option": "
|
|
4675
|
+
"option": "i64"
|
|
4676
4676
|
}
|
|
4677
4677
|
},
|
|
4678
4678
|
{
|
|
4679
4679
|
"name": "auctionEndPrice",
|
|
4680
4680
|
"type": {
|
|
4681
|
-
"option": "
|
|
4681
|
+
"option": "i64"
|
|
4682
4682
|
}
|
|
4683
4683
|
}
|
|
4684
4684
|
]
|
|
@@ -5708,11 +5708,11 @@
|
|
|
5708
5708
|
},
|
|
5709
5709
|
{
|
|
5710
5710
|
"name": "auctionStartPrice",
|
|
5711
|
-
"type": "
|
|
5711
|
+
"type": "i64"
|
|
5712
5712
|
},
|
|
5713
5713
|
{
|
|
5714
5714
|
"name": "auctionEndPrice",
|
|
5715
|
-
"type": "
|
|
5715
|
+
"type": "i64"
|
|
5716
5716
|
},
|
|
5717
5717
|
{
|
|
5718
5718
|
"name": "maxTs",
|
|
@@ -6419,6 +6419,9 @@
|
|
|
6419
6419
|
},
|
|
6420
6420
|
{
|
|
6421
6421
|
"name": "TriggerLimit"
|
|
6422
|
+
},
|
|
6423
|
+
{
|
|
6424
|
+
"name": "Oracle"
|
|
6422
6425
|
}
|
|
6423
6426
|
]
|
|
6424
6427
|
}
|
package/src/types.ts
CHANGED
|
@@ -83,6 +83,7 @@ export class OrderType {
|
|
|
83
83
|
static readonly TRIGGER_MARKET = { triggerMarket: {} };
|
|
84
84
|
static readonly TRIGGER_LIMIT = { triggerLimit: {} };
|
|
85
85
|
static readonly MARKET = { market: {} };
|
|
86
|
+
static readonly ORACLE = { oracle: {} };
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
export declare type MarketTypeStr = 'perp' | 'spot';
|