@velocity-exchange/sdk 0.0.2 → 0.0.5
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/CHANGELOG.md +15 -0
- package/README.md +5 -6
- package/bunfig.toml +3 -0
- package/lib/browser/auctionSubscriber/auctionSubscriber.d.ts +4 -2
- package/lib/browser/auctionSubscriber/auctionSubscriber.js +9 -4
- package/lib/browser/auctionSubscriber/auctionSubscriberGrpc.d.ts +4 -2
- package/lib/browser/auctionSubscriber/auctionSubscriberGrpc.js +9 -4
- package/lib/browser/auctionSubscriber/types.d.ts +4 -2
- package/lib/browser/config.d.ts +3 -8
- package/lib/browser/config.js +14 -22
- package/lib/browser/constituentMap/constituentMap.d.ts +4 -2
- package/lib/browser/constituentMap/constituentMap.js +14 -10
- package/lib/browser/core/VelocityCore.d.ts +4 -0
- package/lib/browser/core/VelocityCore.js +3 -1
- package/lib/browser/decode/user.js +5 -5
- package/lib/browser/dlob/DLOB.js +1 -1
- package/lib/browser/dlob/DLOBNode.js +1 -2
- package/lib/browser/dlob/DLOBSubscriber.d.ts +3 -1
- package/lib/browser/dlob/DLOBSubscriber.js +19 -10
- package/lib/browser/dlob/types.d.ts +3 -1
- package/lib/browser/idl/drift.d.ts +59 -6
- package/lib/browser/idl/drift.json +6049 -806
- package/lib/browser/math/auction.d.ts +1 -1
- package/lib/browser/math/auction.js +2 -9
- package/lib/browser/math/orders.js +3 -3
- package/lib/browser/orderSubscriber/OrderSubscriber.d.ts +3 -1
- package/lib/browser/orderSubscriber/OrderSubscriber.js +19 -11
- package/lib/browser/orderSubscriber/types.d.ts +3 -1
- package/lib/browser/priorityFee/priorityFeeSubscriber.d.ts +4 -2
- package/lib/browser/priorityFee/priorityFeeSubscriber.js +15 -11
- package/lib/browser/priorityFee/priorityFeeSubscriberMap.d.ts +11 -9
- package/lib/browser/priorityFee/priorityFeeSubscriberMap.js +18 -18
- package/lib/browser/priorityFee/types.d.ts +9 -5
- package/lib/browser/priorityFee/types.js +1 -1
- package/lib/browser/swift/grpcSignedMsgUserAccountSubscriber.d.ts +3 -12
- package/lib/browser/swift/grpcSignedMsgUserAccountSubscriber.js +3 -9
- package/lib/browser/swift/signedMsgUserAccountSubscriber.d.ts +11 -8
- package/lib/browser/swift/signedMsgUserAccountSubscriber.js +10 -5
- package/lib/browser/swift/swiftOrderSubscriber.d.ts +7 -4
- package/lib/browser/swift/swiftOrderSubscriber.js +19 -11
- package/lib/browser/types.d.ts +2 -2
- package/lib/browser/user.d.ts +3 -1
- package/lib/browser/user.js +93 -86
- package/lib/browser/userConfig.d.ts +4 -2
- package/lib/browser/userMap/referrerMap.d.ts +5 -3
- package/lib/browser/userMap/referrerMap.js +18 -14
- package/lib/browser/userMap/revenueShareEscrowMap.d.ts +5 -3
- package/lib/browser/userMap/revenueShareEscrowMap.js +18 -14
- package/lib/browser/userMap/userMap.d.ts +3 -1
- package/lib/browser/userMap/userMap.js +24 -19
- package/lib/browser/userMap/userMapConfig.d.ts +4 -2
- package/lib/browser/userMap/userStatsMap.d.ts +5 -3
- package/lib/browser/userMap/userStatsMap.js +15 -11
- package/lib/browser/userStats.d.ts +3 -1
- package/lib/browser/userStats.js +21 -15
- package/lib/browser/userStatsConfig.d.ts +4 -2
- package/lib/browser/util/deprecatedAlias.d.ts +26 -0
- package/lib/browser/util/deprecatedAlias.js +10 -0
- package/lib/browser/velocityClient.d.ts +6 -6
- package/lib/browser/velocityClient.js +6 -6
- package/lib/browser/velocityClientConfig.d.ts +7 -4
- package/lib/node/auctionSubscriber/auctionSubscriber.d.ts +4 -2
- package/lib/node/auctionSubscriber/auctionSubscriber.d.ts.map +1 -1
- package/lib/node/auctionSubscriber/auctionSubscriber.js +9 -4
- package/lib/node/auctionSubscriber/auctionSubscriberGrpc.d.ts +4 -2
- package/lib/node/auctionSubscriber/auctionSubscriberGrpc.d.ts.map +1 -1
- package/lib/node/auctionSubscriber/auctionSubscriberGrpc.js +9 -4
- package/lib/node/auctionSubscriber/types.d.ts +4 -2
- package/lib/node/auctionSubscriber/types.d.ts.map +1 -1
- package/lib/node/config.d.ts +3 -8
- package/lib/node/config.d.ts.map +1 -1
- package/lib/node/config.js +14 -22
- package/lib/node/constituentMap/constituentMap.d.ts +4 -2
- package/lib/node/constituentMap/constituentMap.d.ts.map +1 -1
- package/lib/node/constituentMap/constituentMap.js +14 -10
- package/lib/node/core/VelocityCore.d.ts +4 -0
- package/lib/node/core/VelocityCore.d.ts.map +1 -1
- package/lib/node/core/VelocityCore.js +3 -1
- package/lib/node/decode/user.js +5 -5
- package/lib/node/dlob/DLOB.js +1 -1
- package/lib/node/dlob/DLOBNode.js +1 -2
- package/lib/node/dlob/DLOBSubscriber.d.ts +3 -1
- package/lib/node/dlob/DLOBSubscriber.d.ts.map +1 -1
- package/lib/node/dlob/DLOBSubscriber.js +19 -10
- package/lib/node/dlob/types.d.ts +3 -1
- package/lib/node/dlob/types.d.ts.map +1 -1
- package/lib/node/idl/drift.d.ts +59 -6
- package/lib/node/idl/drift.d.ts.map +1 -1
- package/lib/node/idl/drift.json +6049 -806
- package/lib/node/math/auction.d.ts +1 -1
- package/lib/node/math/auction.d.ts.map +1 -1
- package/lib/node/math/auction.js +2 -9
- package/lib/node/math/orders.d.ts.map +1 -1
- package/lib/node/math/orders.js +3 -3
- package/lib/node/orderSubscriber/OrderSubscriber.d.ts +3 -1
- package/lib/node/orderSubscriber/OrderSubscriber.d.ts.map +1 -1
- package/lib/node/orderSubscriber/OrderSubscriber.js +19 -11
- package/lib/node/orderSubscriber/types.d.ts +3 -1
- package/lib/node/orderSubscriber/types.d.ts.map +1 -1
- package/lib/node/priorityFee/priorityFeeSubscriber.d.ts +4 -2
- package/lib/node/priorityFee/priorityFeeSubscriber.d.ts.map +1 -1
- package/lib/node/priorityFee/priorityFeeSubscriber.js +15 -11
- package/lib/node/priorityFee/priorityFeeSubscriberMap.d.ts +11 -9
- package/lib/node/priorityFee/priorityFeeSubscriberMap.d.ts.map +1 -1
- package/lib/node/priorityFee/priorityFeeSubscriberMap.js +18 -18
- package/lib/node/priorityFee/types.d.ts +9 -5
- package/lib/node/priorityFee/types.d.ts.map +1 -1
- package/lib/node/priorityFee/types.js +1 -1
- package/lib/node/swift/grpcSignedMsgUserAccountSubscriber.d.ts +3 -12
- package/lib/node/swift/grpcSignedMsgUserAccountSubscriber.d.ts.map +1 -1
- package/lib/node/swift/grpcSignedMsgUserAccountSubscriber.js +3 -9
- package/lib/node/swift/signedMsgUserAccountSubscriber.d.ts +11 -8
- package/lib/node/swift/signedMsgUserAccountSubscriber.d.ts.map +1 -1
- package/lib/node/swift/signedMsgUserAccountSubscriber.js +10 -5
- package/lib/node/swift/swiftOrderSubscriber.d.ts +7 -4
- package/lib/node/swift/swiftOrderSubscriber.d.ts.map +1 -1
- package/lib/node/swift/swiftOrderSubscriber.js +19 -11
- package/lib/node/types.d.ts +2 -2
- package/lib/node/types.d.ts.map +1 -1
- package/lib/node/user.d.ts +3 -1
- package/lib/node/user.d.ts.map +1 -1
- package/lib/node/user.js +93 -86
- package/lib/node/userConfig.d.ts +4 -2
- package/lib/node/userConfig.d.ts.map +1 -1
- package/lib/node/userMap/referrerMap.d.ts +5 -3
- package/lib/node/userMap/referrerMap.d.ts.map +1 -1
- package/lib/node/userMap/referrerMap.js +18 -14
- package/lib/node/userMap/revenueShareEscrowMap.d.ts +5 -3
- package/lib/node/userMap/revenueShareEscrowMap.d.ts.map +1 -1
- package/lib/node/userMap/revenueShareEscrowMap.js +18 -14
- package/lib/node/userMap/userMap.d.ts +3 -1
- package/lib/node/userMap/userMap.d.ts.map +1 -1
- package/lib/node/userMap/userMap.js +24 -19
- package/lib/node/userMap/userMapConfig.d.ts +4 -2
- package/lib/node/userMap/userMapConfig.d.ts.map +1 -1
- package/lib/node/userMap/userStatsMap.d.ts +5 -3
- package/lib/node/userMap/userStatsMap.d.ts.map +1 -1
- package/lib/node/userMap/userStatsMap.js +15 -11
- package/lib/node/userStats.d.ts +3 -1
- package/lib/node/userStats.d.ts.map +1 -1
- package/lib/node/userStats.js +21 -15
- package/lib/node/userStatsConfig.d.ts +4 -2
- package/lib/node/userStatsConfig.d.ts.map +1 -1
- package/lib/node/util/deprecatedAlias.d.ts +27 -0
- package/lib/node/util/deprecatedAlias.d.ts.map +1 -0
- package/lib/node/util/deprecatedAlias.js +10 -0
- package/lib/node/velocityClient.d.ts +6 -6
- package/lib/node/velocityClient.d.ts.map +1 -1
- package/lib/node/velocityClient.js +6 -6
- package/lib/node/velocityClientConfig.d.ts +7 -4
- package/lib/node/velocityClientConfig.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/auctionSubscriber/auctionSubscriber.ts +12 -6
- package/src/auctionSubscriber/auctionSubscriberGrpc.ts +12 -6
- package/src/auctionSubscriber/types.ts +5 -2
- package/src/config.ts +38 -27
- package/src/constituentMap/constituentMap.ts +17 -9
- package/src/core/VelocityCore.ts +6 -0
- package/src/decode/user.ts +5 -5
- package/src/dlob/DLOB.ts +1 -1
- package/src/dlob/DLOBNode.ts +1 -1
- package/src/dlob/DLOBSubscriber.ts +21 -11
- package/src/dlob/types.ts +3 -1
- package/src/idl/drift.json +23940 -18697
- package/src/idl/drift.ts +59 -6
- package/src/math/auction.ts +3 -10
- package/src/math/orders.ts +3 -6
- package/src/orderSubscriber/OrderSubscriber.ts +17 -7
- package/src/orderSubscriber/types.ts +3 -1
- package/src/priorityFee/priorityFeeSubscriber.ts +13 -9
- package/src/priorityFee/priorityFeeSubscriberMap.ts +23 -25
- package/src/priorityFee/types.ts +19 -9
- package/src/swift/grpcSignedMsgUserAccountSubscriber.ts +10 -23
- package/src/swift/signedMsgUserAccountSubscriber.ts +22 -14
- package/src/swift/swiftOrderSubscriber.ts +24 -16
- package/src/types.ts +2 -2
- package/src/user.ts +93 -82
- package/src/userConfig.ts +5 -2
- package/src/userMap/referrerMap.ts +19 -15
- package/src/userMap/revenueShareEscrowMap.ts +20 -16
- package/src/userMap/userMap.ts +20 -15
- package/src/userMap/userMapConfig.ts +6 -3
- package/src/userMap/userStatsMap.ts +19 -15
- package/src/userStats.ts +13 -7
- package/src/userStatsConfig.ts +5 -2
- package/src/util/deprecatedAlias.ts +21 -0
- package/src/velocityClient.ts +12 -12
- package/src/velocityClientConfig.ts +27 -42
- package/tests/auctions/test.ts +4 -4
- package/tests/decode/test.ts +1 -1
- package/tests/dlob/test.ts +5 -5
- package/tests/user/helpers.ts +1 -1
|
@@ -6,8 +6,17 @@ const events_1 = require("events");
|
|
|
6
6
|
const types_1 = require("../types");
|
|
7
7
|
const orderBookLevels_1 = require("./orderBookLevels");
|
|
8
8
|
class DLOBSubscriber {
|
|
9
|
+
/** @deprecated Use `velocityClient` instead. `driftClient` will be removed in a future major. */
|
|
10
|
+
get driftClient() {
|
|
11
|
+
return this.velocityClient;
|
|
12
|
+
}
|
|
9
13
|
constructor(config) {
|
|
10
|
-
|
|
14
|
+
var _a;
|
|
15
|
+
const velocityClient = (_a = config.velocityClient) !== null && _a !== void 0 ? _a : config.driftClient;
|
|
16
|
+
if (!velocityClient) {
|
|
17
|
+
throw new Error('DLOBSubscriber: velocityClient (or deprecated driftClient) must be provided');
|
|
18
|
+
}
|
|
19
|
+
this.velocityClient = velocityClient;
|
|
11
20
|
this.dlobSource = config.dlobSource;
|
|
12
21
|
this.slotSource = config.slotSource;
|
|
13
22
|
this.updateFrequency = config.updateFrequency;
|
|
@@ -48,7 +57,7 @@ class DLOBSubscriber {
|
|
|
48
57
|
*/
|
|
49
58
|
getL2({ marketName, marketIndex, marketType, depth = 10, includeVamm = false, numVammOrders, fallbackL2Generators = [], latestSlot, }) {
|
|
50
59
|
if (marketName) {
|
|
51
|
-
const derivedMarketInfo = this.
|
|
60
|
+
const derivedMarketInfo = this.velocityClient.getMarketIndexAndType(marketName);
|
|
52
61
|
if (!derivedMarketInfo) {
|
|
53
62
|
throw new Error(`Market ${marketName} not found`);
|
|
54
63
|
}
|
|
@@ -63,12 +72,12 @@ class DLOBSubscriber {
|
|
|
63
72
|
let oraclePriceData;
|
|
64
73
|
const isPerp = (0, types_1.isVariant)(marketType, 'perp');
|
|
65
74
|
if (isPerp) {
|
|
66
|
-
const perpMarketAccount = this.
|
|
67
|
-
oraclePriceData = this.
|
|
75
|
+
const perpMarketAccount = this.velocityClient.getPerpMarketAccount(marketIndex);
|
|
76
|
+
oraclePriceData = this.velocityClient.getOracleDataForPerpMarket(perpMarketAccount.marketIndex);
|
|
68
77
|
}
|
|
69
78
|
else {
|
|
70
79
|
oraclePriceData =
|
|
71
|
-
this.
|
|
80
|
+
this.velocityClient.getOracleDataForSpotMarket(marketIndex);
|
|
72
81
|
}
|
|
73
82
|
if (isPerp && includeVamm) {
|
|
74
83
|
if (fallbackL2Generators.length > 0) {
|
|
@@ -76,8 +85,8 @@ class DLOBSubscriber {
|
|
|
76
85
|
}
|
|
77
86
|
fallbackL2Generators = [
|
|
78
87
|
(0, orderBookLevels_1.getVammL2Generator)({
|
|
79
|
-
marketAccount: this.
|
|
80
|
-
mmOraclePriceData: this.
|
|
88
|
+
marketAccount: this.velocityClient.getPerpMarketAccount(marketIndex),
|
|
89
|
+
mmOraclePriceData: this.velocityClient.getMMOracleDataForPerpMarket(marketIndex),
|
|
81
90
|
numOrders: numVammOrders !== null && numVammOrders !== void 0 ? numVammOrders : depth,
|
|
82
91
|
topOfBookQuoteAmounts: marketIndex < 3
|
|
83
92
|
? orderBookLevels_1.MAJORS_TOP_OF_BOOK_QUOTE_AMOUNTS
|
|
@@ -104,7 +113,7 @@ class DLOBSubscriber {
|
|
|
104
113
|
*/
|
|
105
114
|
getL3({ marketName, marketIndex, marketType, }) {
|
|
106
115
|
if (marketName) {
|
|
107
|
-
const derivedMarketInfo = this.
|
|
116
|
+
const derivedMarketInfo = this.velocityClient.getMarketIndexAndType(marketName);
|
|
108
117
|
if (!derivedMarketInfo) {
|
|
109
118
|
throw new Error(`Market ${marketName} not found`);
|
|
110
119
|
}
|
|
@@ -120,11 +129,11 @@ class DLOBSubscriber {
|
|
|
120
129
|
const isPerp = (0, types_1.isVariant)(marketType, 'perp');
|
|
121
130
|
if (isPerp) {
|
|
122
131
|
oraclePriceData =
|
|
123
|
-
this.
|
|
132
|
+
this.velocityClient.getOracleDataForPerpMarket(marketIndex);
|
|
124
133
|
}
|
|
125
134
|
else {
|
|
126
135
|
oraclePriceData =
|
|
127
|
-
this.
|
|
136
|
+
this.velocityClient.getOracleDataForSpotMarket(marketIndex);
|
|
128
137
|
}
|
|
129
138
|
return this.dlob.getL3({
|
|
130
139
|
marketIndex,
|
package/lib/node/dlob/types.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { DLOB } from './DLOB';
|
|
2
2
|
import { VelocityClient } from '../velocityClient';
|
|
3
3
|
export type DLOBSubscriptionConfig = {
|
|
4
|
-
|
|
4
|
+
velocityClient?: VelocityClient;
|
|
5
|
+
/** @deprecated Use `velocityClient` instead. `driftClient` will be removed in a future major. */
|
|
6
|
+
driftClient?: VelocityClient;
|
|
5
7
|
dlobSource: DLOBSource;
|
|
6
8
|
slotSource: SlotSource;
|
|
7
9
|
updateFrequency: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dlob/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,MAAM,sBAAsB,GAAG;IACpC,WAAW,EAAE,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dlob/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,MAAM,sBAAsB,GAAG;IACpC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,iGAAiG;IACjG,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACpC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,UAAU;IAC1B,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,UAAU;IAC1B,OAAO,IAAI,MAAM,CAAC;CAClB"}
|
package/lib/node/idl/drift.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* IDL can be found at `target/idl/drift.json`.
|
|
6
6
|
*/
|
|
7
7
|
export type Drift = {
|
|
8
|
-
"address": "
|
|
8
|
+
"address": "vELoC1audYbSYVRXn1vPaV8Axoa9oU6BYmNGZZBDZ1P";
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "drift";
|
|
11
11
|
"version": "2.162.0";
|
|
@@ -2884,6 +2884,59 @@ export type Drift = {
|
|
|
2884
2884
|
];
|
|
2885
2885
|
"args": [];
|
|
2886
2886
|
},
|
|
2887
|
+
{
|
|
2888
|
+
"name": "forceWipeAccountsDevnet";
|
|
2889
|
+
"docs": [
|
|
2890
|
+
"Devnet-only escape hatch: cleans up accounts stranded by a layout-breaking",
|
|
2891
|
+
"program upgrade (or by a partial re-init). For each account passed via",
|
|
2892
|
+
"`remaining_accounts`:",
|
|
2893
|
+
"- drift-owned PDA → drain lamports (runtime GCs at end of tx)",
|
|
2894
|
+
"- token-program owned vault (drift_signer close-authority) → CPI",
|
|
2895
|
+
"`close_account`, rent refunded to admin",
|
|
2896
|
+
"Admin gate reads State's first pubkey field at raw offset 8..40 so it",
|
|
2897
|
+
"works regardless of the State layout currently on chain. `drift_signer_nonce`",
|
|
2898
|
+
"must match `State.signer_nonce`; mismatch fails the token CPI signature.",
|
|
2899
|
+
"Stripped from mainnet builds via `mainnet-beta`."
|
|
2900
|
+
];
|
|
2901
|
+
"discriminator": [
|
|
2902
|
+
105,
|
|
2903
|
+
74,
|
|
2904
|
+
87,
|
|
2905
|
+
6,
|
|
2906
|
+
166,
|
|
2907
|
+
227,
|
|
2908
|
+
138,
|
|
2909
|
+
215
|
|
2910
|
+
];
|
|
2911
|
+
"accounts": [
|
|
2912
|
+
{
|
|
2913
|
+
"name": "admin";
|
|
2914
|
+
"writable": true;
|
|
2915
|
+
"signer": true;
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
"name": "state";
|
|
2919
|
+
"docs": [
|
|
2920
|
+
"(cold-)admin pubkey at offset 8..40."
|
|
2921
|
+
];
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"name": "driftSigner";
|
|
2925
|
+
"docs": [
|
|
2926
|
+
"at CPI time when closing token vaults; ignored otherwise."
|
|
2927
|
+
];
|
|
2928
|
+
},
|
|
2929
|
+
{
|
|
2930
|
+
"name": "tokenProgram";
|
|
2931
|
+
}
|
|
2932
|
+
];
|
|
2933
|
+
"args": [
|
|
2934
|
+
{
|
|
2935
|
+
"name": "driftSignerNonce";
|
|
2936
|
+
"type": "u8";
|
|
2937
|
+
}
|
|
2938
|
+
];
|
|
2939
|
+
},
|
|
2887
2940
|
{
|
|
2888
2941
|
"name": "initialize";
|
|
2889
2942
|
"discriminator": [
|
|
@@ -19727,7 +19780,7 @@ export type Drift = {
|
|
|
19727
19780
|
{
|
|
19728
19781
|
"name": "oraclePriceOffset";
|
|
19729
19782
|
"type": {
|
|
19730
|
-
"option": "
|
|
19783
|
+
"option": "i64";
|
|
19731
19784
|
};
|
|
19732
19785
|
},
|
|
19733
19786
|
{
|
|
@@ -19968,7 +20021,7 @@ export type Drift = {
|
|
|
19968
20021
|
"If set, the order limit price is the oracle price + this offset",
|
|
19969
20022
|
"precision: PRICE_PRECISION"
|
|
19970
20023
|
];
|
|
19971
|
-
"type": "
|
|
20024
|
+
"type": "i64";
|
|
19972
20025
|
},
|
|
19973
20026
|
{
|
|
19974
20027
|
"name": "orderId";
|
|
@@ -20105,7 +20158,7 @@ export type Drift = {
|
|
|
20105
20158
|
"type": {
|
|
20106
20159
|
"array": [
|
|
20107
20160
|
"u8",
|
|
20108
|
-
|
|
20161
|
+
5
|
|
20109
20162
|
];
|
|
20110
20163
|
};
|
|
20111
20164
|
}
|
|
@@ -20631,7 +20684,7 @@ export type Drift = {
|
|
|
20631
20684
|
{
|
|
20632
20685
|
"name": "oraclePriceOffset";
|
|
20633
20686
|
"type": {
|
|
20634
|
-
"option": "
|
|
20687
|
+
"option": "i64";
|
|
20635
20688
|
};
|
|
20636
20689
|
},
|
|
20637
20690
|
{
|
|
@@ -21813,7 +21866,7 @@ export type Drift = {
|
|
|
21813
21866
|
{
|
|
21814
21867
|
"name": "bitFlags";
|
|
21815
21868
|
"docs": [
|
|
21816
|
-
"
|
|
21869
|
+
"Order bit flags"
|
|
21817
21870
|
];
|
|
21818
21871
|
"type": "u8";
|
|
21819
21872
|
},
|