@clonegod/ttd-sol-common 1.0.101 → 1.0.103

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.
@@ -702,11 +702,11 @@ class RpcClient {
702
702
  let txid = (0, get_signature_1.getSignature)(transaction);
703
703
  setTimeout(() => __awaiter(this, void 0, void 0, function* () {
704
704
  const serializedTransaction = bs58_1.default.encode(transaction.serialize());
705
- let jitoApiUrl = `${types_1.JITO_API_URLS[region]}/api/v1/transactions?bundleOnly=true`;
705
+ let jitoApiUrl = `${types_1.JITO_API_URLS[region]}/api/v1/bundles`;
706
706
  (0, dist_1.log_info)('sendSmartTransactionWithTipMixed, start');
707
707
  this.sendTransaction(transaction);
708
708
  this.sendJitoTransaction(serializedTransaction, `${types_1.JITO_API_URLS['Default']}/api/v1/transactions?bundleOnly=true`);
709
- const bundleId = yield this.sendJitoTransaction(serializedTransaction, jitoApiUrl);
709
+ const bundleId = yield this.sendJitoTransaction(serializedTransaction, `${types_1.JITO_API_URLS['Default']}/api/v1/transactions?bundleOnly=true`);
710
710
  (0, dist_1.log_info)(`sendJitoTransaction`, {
711
711
  txid,
712
712
  bundleId
@@ -12,6 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.notify_new_txid = void 0;
13
13
  const common_1 = require("../common");
14
14
  const notify_new_txid = (txid) => __awaiter(void 0, void 0, void 0, function* () {
15
+ if (!global.event_emitter) {
16
+ return;
17
+ }
15
18
  global.event_emitter.emit(common_1.LOCAL_EVENT_NAME.EVENT_WALLET_TRANSACTION_NEW_TXID, txid);
16
19
  });
17
20
  exports.notify_new_txid = notify_new_txid;
@@ -86,8 +86,8 @@ class TransactionResultChecker {
86
86
  check_tx_result_interval() {
87
87
  return __awaiter(this, void 0, void 0, function* () {
88
88
  const check_start_time = Date.now();
89
- const check_interval = 1000;
90
- const check_timeout = 30 * 1000;
89
+ const check_interval = parseInt(process.env.CHECK_TX_RESULT_INTERVAL_MILLS || '1000');
90
+ const check_timeout = parseInt(process.env.CHECK_TX_RESULT_TIMEOUT_MILLS || '30000');
91
91
  const intervalId = setInterval(() => __awaiter(this, void 0, void 0, function* () {
92
92
  this.check_count += 1;
93
93
  (0, dist_1.log_info)(`check transaction start: seq=[${this.check_count}], txhash= ${this.txid}, trace_id=${this.trace_id}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.101",
3
+ "version": "1.0.103",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",