@drift-labs/sdk-browser 2.108.0-beta.3 → 2.108.0-beta.4
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.108.0-beta.
|
|
1
|
+
2.108.0-beta.4
|
|
@@ -72,7 +72,7 @@ class SwiftOrderSubscriber {
|
|
|
72
72
|
if (message['order']) {
|
|
73
73
|
const order = JSON.parse(message['order']);
|
|
74
74
|
const swiftOrderParamsBuf = Buffer.from(order['order_message'], 'hex');
|
|
75
|
-
const swiftOrderParamsMessage = this.driftClient.
|
|
75
|
+
const swiftOrderParamsMessage = this.driftClient.decodeSwiftOrderParamsMessage(swiftOrderParamsBuf);
|
|
76
76
|
if (!swiftOrderParamsMessage.swiftOrderParams.price) {
|
|
77
77
|
console.error(`order has no price: ${JSON.stringify(swiftOrderParamsMessage.swiftOrderParams)}`);
|
|
78
78
|
return;
|
|
@@ -72,7 +72,7 @@ class SwiftOrderSubscriber {
|
|
|
72
72
|
if (message['order']) {
|
|
73
73
|
const order = JSON.parse(message['order']);
|
|
74
74
|
const swiftOrderParamsBuf = Buffer.from(order['order_message'], 'hex');
|
|
75
|
-
const swiftOrderParamsMessage = this.driftClient.
|
|
75
|
+
const swiftOrderParamsMessage = this.driftClient.decodeSwiftOrderParamsMessage(swiftOrderParamsBuf);
|
|
76
76
|
if (!swiftOrderParamsMessage.swiftOrderParams.price) {
|
|
77
77
|
console.error(`order has no price: ${JSON.stringify(swiftOrderParamsMessage.swiftOrderParams)}`);
|
|
78
78
|
return;
|
package/package.json
CHANGED
|
@@ -124,10 +124,7 @@ export class SwiftOrderSubscriber {
|
|
|
124
124
|
'hex'
|
|
125
125
|
);
|
|
126
126
|
const swiftOrderParamsMessage: SwiftOrderParamsMessage =
|
|
127
|
-
this.driftClient.
|
|
128
|
-
'SwiftOrderParamsMessage',
|
|
129
|
-
swiftOrderParamsBuf
|
|
130
|
-
);
|
|
127
|
+
this.driftClient.decodeSwiftOrderParamsMessage(swiftOrderParamsBuf);
|
|
131
128
|
|
|
132
129
|
if (!swiftOrderParamsMessage.swiftOrderParams.price) {
|
|
133
130
|
console.error(
|