@clonegod/ttd-sol-common 1.0.111 → 1.0.113
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.
|
@@ -17,14 +17,13 @@ function log_quote_price(event_source, price_message, tx_hash) {
|
|
|
17
17
|
let price_time = new Date().getTime();
|
|
18
18
|
let price_time_str = (0, dist_1.parseToDateTime)(price_time);
|
|
19
19
|
let times = [
|
|
20
|
-
time.
|
|
20
|
+
time.quote_start_time - time.stream_time,
|
|
21
21
|
time.quote_end_time - time.quote_start_time,
|
|
22
22
|
time.price_time - time.stream_time,
|
|
23
|
-
time.price_time - time.block_time,
|
|
24
23
|
];
|
|
25
|
-
|
|
24
|
+
if (event_source || tx_hash) {
|
|
26
25
|
console.log(`> [${event_source}] - ${tx_hash}`);
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
}
|
|
27
|
+
console.log(price_time_str, ' - ', unique_orderbook_id, ' - ', String(price_id).padEnd(32), ' - ', pool_name.padEnd(12), ' - ', pair.padEnd(12), ' - ', String(quote_amount_usd).padEnd(4), ' - ', String(ask.price).padEnd(8), ' - ', String(bid.price).padEnd(8), ' - ', `${times.join(',')} ms`, '\n');
|
|
29
28
|
});
|
|
30
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clonegod/ttd-sol-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.113",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"push": "npm run build && npm publish"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@clonegod/ttd-common": "^1.0.
|
|
16
|
+
"@clonegod/ttd-common": "^1.0.162",
|
|
17
17
|
"@irys/sdk": "^0.2.10",
|
|
18
18
|
"@metaplex-foundation/mpl-token-metadata": "^2.5.2",
|
|
19
19
|
"@solana/web3.js": "1.91.6",
|