@clonegod/ttd-sol-common 1.0.70 → 1.0.72
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.
|
@@ -51,8 +51,16 @@ class TransactionResultChecker {
|
|
|
51
51
|
const messageObj = JSON.parse(messageStr);
|
|
52
52
|
const result = messageObj.params.result;
|
|
53
53
|
const _txid = result.signature;
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
const slot = result.slot;
|
|
55
|
+
console.log({ _txid, txid: this.txid, slot });
|
|
56
|
+
result.transaction.transaction.signatures = [_txid];
|
|
57
|
+
let tx_result = {
|
|
58
|
+
slot,
|
|
59
|
+
transaction: result.transaction.transaction,
|
|
60
|
+
meta: result.transaction.meta,
|
|
61
|
+
blockTime: Date.now() / 1000,
|
|
62
|
+
version: result.transaction.version
|
|
63
|
+
};
|
|
56
64
|
let swap_result = this.transactionParser.parse_transaction_data(tx_result, this.pool_info);
|
|
57
65
|
let trade_result = this.map_swap_result_to_tx_result(swap_result);
|
|
58
66
|
if (trade_result.success) {
|
|
@@ -127,7 +135,7 @@ class TransactionResultChecker {
|
|
|
127
135
|
let order_end_time = Date.now();
|
|
128
136
|
let start_time = order_recv_time;
|
|
129
137
|
let end_time = order_end_time;
|
|
130
|
-
let total_time =
|
|
138
|
+
let total_time = end_time - start_time;
|
|
131
139
|
let time = {
|
|
132
140
|
block_time: quote_time.block_time,
|
|
133
141
|
stream_time: quote_time.stream_time,
|