@drift-labs/sdk 2.49.0-beta.13 → 2.49.0-beta.14
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.49.0-beta.
|
|
1
|
+
2.49.0-beta.14
|
|
@@ -107,7 +107,7 @@ class OrderSubscriber {
|
|
|
107
107
|
order.slot.toNumber() <= slot;
|
|
108
108
|
});
|
|
109
109
|
if (newOrders.length > 0) {
|
|
110
|
-
this.eventEmitter.emit('onUpdate', userAccount, newOrders, new web3_js_1.PublicKey(key), slot);
|
|
110
|
+
this.eventEmitter.emit('onUpdate', userAccount, newOrders, new web3_js_1.PublicKey(key), slot, dataType);
|
|
111
111
|
}
|
|
112
112
|
if (userAccount.hasOpenOrder) {
|
|
113
113
|
this.usersAccounts.set(key, { slot, userAccount });
|
|
@@ -15,5 +15,5 @@ export type OrderSubscriberConfig = {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
export interface OrderSubscriberEvents {
|
|
18
|
-
onUpdate: (account: UserAccount, updatedOrders: Order[], pubkey: PublicKey, slot: number) => void;
|
|
18
|
+
onUpdate: (account: UserAccount, updatedOrders: Order[], pubkey: PublicKey, slot: number, dataType: 'raw' | 'decoded') => void;
|
|
19
19
|
}
|
package/package.json
CHANGED