@clonegod/ttd-sol-common 1.0.99 → 1.0.101
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.
|
@@ -557,6 +557,10 @@ class RpcClient {
|
|
|
557
557
|
headers: { 'Content-Type': 'application/json' },
|
|
558
558
|
});
|
|
559
559
|
if (response.data.error) {
|
|
560
|
+
(0, dist_1.log_warn)(`getBundleStatuses error!`, {
|
|
561
|
+
jitoApiUrl,
|
|
562
|
+
bundleIds,
|
|
563
|
+
});
|
|
560
564
|
throw new Error(`Error getting bundle statuses: ${JSON.stringify(response.data.error, null, 2)}`);
|
|
561
565
|
}
|
|
562
566
|
return response.data.result;
|
|
@@ -741,6 +745,9 @@ class RpcClient {
|
|
|
741
745
|
}
|
|
742
746
|
sendJitoTransaction(serializedTransaction, jitoApiUrl) {
|
|
743
747
|
return __awaiter(this, void 0, void 0, function* () {
|
|
748
|
+
(0, dist_1.log_info)('sendJitoTransaction start', {
|
|
749
|
+
jitoApiUrl
|
|
750
|
+
});
|
|
744
751
|
const response = yield axios_1.default.post(jitoApiUrl, {
|
|
745
752
|
jsonrpc: '2.0',
|
|
746
753
|
id: 1,
|
|
@@ -94,6 +94,7 @@ const handle_order_message = (appConfig, trade, message) => __awaiter(void 0, vo
|
|
|
94
94
|
msg: 'SUCCESS',
|
|
95
95
|
txid
|
|
96
96
|
};
|
|
97
|
+
global.event_emitter = appConfig;
|
|
97
98
|
new tx_result_check_1.TransactionResultChecker(env_args, appConfig, context, txid).init_tx_status().check();
|
|
98
99
|
}
|
|
99
100
|
catch (err) {
|