@drift-labs/jit-proxy 0.13.39 → 0.13.40
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/jitter/baseJitter.js +2 -2
- package/package.json +1 -1
- package/src/jitter/baseJitter.ts +3 -11
package/lib/jitter/baseJitter.js
CHANGED
|
@@ -81,8 +81,8 @@ class BaseJitter {
|
|
|
81
81
|
await ((_b = this.fastlaneOrderSubscriber) === null || _b === void 0 ? void 0 : _b.subscribe(async (orderMessageRaw, signedMsgOrderParamsMessage) => {
|
|
82
82
|
var _a, _b, _c;
|
|
83
83
|
const signedMsgOrderParamsBufHex = Buffer.from(orderMessageRaw['order_message']);
|
|
84
|
-
const
|
|
85
|
-
const
|
|
84
|
+
const signedMsgOrderParams = signedMsgOrderParamsMessage.signedMsgOrderParams;
|
|
85
|
+
const takerSubaccountId = signedMsgOrderParamsMessage.subAccountId;
|
|
86
86
|
const takerAuthority = new web3_js_1.PublicKey(orderMessageRaw['taker_authority']);
|
|
87
87
|
const signingAuthority = new web3_js_1.PublicKey(orderMessageRaw['signing_authority']);
|
|
88
88
|
const takerUserPubkey = await (0, sdk_1.getUserAccountPublicKey)(this.driftClient.program.programId, takerAuthority, takerSubaccountId);
|
package/package.json
CHANGED
package/src/jitter/baseJitter.ts
CHANGED
|
@@ -195,17 +195,9 @@ export abstract class BaseJitter {
|
|
|
195
195
|
const signedMsgOrderParamsBufHex = Buffer.from(
|
|
196
196
|
orderMessageRaw['order_message']
|
|
197
197
|
);
|
|
198
|
-
const
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
);
|
|
202
|
-
const {
|
|
203
|
-
signedMsgOrderParams,
|
|
204
|
-
subAccountId: takerSubaccountId,
|
|
205
|
-
}: SignedMsgOrderParamsMessage =
|
|
206
|
-
this.driftClient.decodeSignedMsgOrderParamsMessage(
|
|
207
|
-
signedMsgOrderParamsBuf
|
|
208
|
-
);
|
|
198
|
+
const signedMsgOrderParams =
|
|
199
|
+
signedMsgOrderParamsMessage.signedMsgOrderParams;
|
|
200
|
+
const takerSubaccountId = signedMsgOrderParamsMessage.subAccountId;
|
|
209
201
|
|
|
210
202
|
const takerAuthority = new PublicKey(
|
|
211
203
|
orderMessageRaw['taker_authority']
|