@clonegod/ttd-sol-common 2.0.34 → 2.0.35
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.
|
@@ -6,8 +6,8 @@ function subscribe_pool_account_update(dex_id, pool_list, callback) {
|
|
|
6
6
|
const ws_url = process.env.SUBSCIBE_MULTIPLE_PROVIDERS_WS_URL || 'ws://127.0.0.1:10000';
|
|
7
7
|
const ws_client = new dist_1.WebSocketClient(ws_url);
|
|
8
8
|
ws_client.onOpen(() => {
|
|
9
|
-
pool_list.forEach(({
|
|
10
|
-
ws_client.send(JSON.stringify({ dex_id,
|
|
9
|
+
pool_list.forEach(({ pool_name, pool_address }, _) => {
|
|
10
|
+
ws_client.send(JSON.stringify({ dex_id, pool_name, pool_address }));
|
|
11
11
|
});
|
|
12
12
|
});
|
|
13
13
|
ws_client.onMessage(((eventData) => {
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -11,8 +11,8 @@ export function subscribe_pool_account_update(dex_id: DEX_ID, pool_list: Standar
|
|
|
11
11
|
const ws_url = process.env.SUBSCIBE_MULTIPLE_PROVIDERS_WS_URL || 'ws://127.0.0.1:10000';
|
|
12
12
|
const ws_client = new WebSocketClient(ws_url)
|
|
13
13
|
ws_client.onOpen(() => {
|
|
14
|
-
pool_list.forEach(({
|
|
15
|
-
ws_client.send(JSON.stringify({ dex_id,
|
|
14
|
+
pool_list.forEach(({ pool_name, pool_address }, _) => {
|
|
15
|
+
ws_client.send(JSON.stringify({ dex_id, pool_name, pool_address }))
|
|
16
16
|
})
|
|
17
17
|
})
|
|
18
18
|
ws_client.onMessage(((eventData: SolanaPoolAccountUpdateEventData): void => {
|