@clonegod/ttd-sol-common 1.0.82 → 1.0.83
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.
|
@@ -577,6 +577,7 @@ class RpcClient {
|
|
|
577
577
|
if (solana_trade_runtime.jito_plugin_url) {
|
|
578
578
|
jitoApiUrl = solana_trade_runtime.jito_plugin_url;
|
|
579
579
|
}
|
|
580
|
+
this.sendJitoTransaction(serializedTransaction, `${types_1.JITO_API_URLS['Default']}/api/v1/transactions`);
|
|
580
581
|
const bundleId = yield this.sendJitoBundle([serializedTransaction], jitoApiUrl);
|
|
581
582
|
(0, dist_1.log_info)(`sendJitoBundle`, {
|
|
582
583
|
txid,
|
|
@@ -705,6 +706,7 @@ class RpcClient {
|
|
|
705
706
|
}
|
|
706
707
|
(0, dist_1.log_info)('sendSmartTransactionWithTipMixed, start');
|
|
707
708
|
this.sendTransaction(transaction);
|
|
709
|
+
this.sendJitoTransaction(serializedTransaction, `${types_1.JITO_API_URLS['Default']}/api/v1/transactions`);
|
|
708
710
|
const bundleId = yield this.sendJitoTransaction(serializedTransaction, jitoApiUrl);
|
|
709
711
|
(0, dist_1.log_info)(`sendJitoTransaction`, {
|
|
710
712
|
txid,
|
|
@@ -755,8 +757,12 @@ class RpcClient {
|
|
|
755
757
|
if (response.data.error) {
|
|
756
758
|
throw new Error(`Error sending bundles: ${JSON.stringify(response.data.error, null, 2)}`);
|
|
757
759
|
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
+
let bundleId = response.headers['x-bundle-id'];
|
|
761
|
+
(0, dist_1.log_info)('sendJitoTransaction finish', {
|
|
762
|
+
jitoApiUrl,
|
|
763
|
+
bundleId
|
|
764
|
+
});
|
|
765
|
+
return bundleId;
|
|
760
766
|
});
|
|
761
767
|
}
|
|
762
768
|
}
|