@clonegod/ttd-sol-common 1.1.10 → 1.1.12

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.
@@ -490,7 +490,10 @@ class RpcClient {
490
490
  const { transaction, blockhash, minContextSlot } = yield this.createSmartTransaction(solana_trade_runtime, instructions, signers, lookupTables, sendOptions.feePayer);
491
491
  (0, dist_1.log_info)(`>>> createSmartTransaction, end`);
492
492
  let txid = (0, get_signature_1.getSignature)(transaction);
493
- yield this.connection.sendRawTransaction(transaction.serialize({ verifySignatures: false }), Object.assign({ maxRetries: 3, skipPreflight: true, minContextSlot }, sendOptions));
493
+ yield this.connection.sendRawTransaction(transaction.serialize({ verifySignatures: false }), {
494
+ maxRetries: 3,
495
+ skipPreflight: true
496
+ });
494
497
  return txid;
495
498
  }
496
499
  catch (error) {
@@ -67,12 +67,13 @@ const get_token_basic_info = (symbol, mint_address) => __awaiter(void 0, void 0,
67
67
  });
68
68
  exports.get_token_basic_info = get_token_basic_info;
69
69
  const get_token_basic_info_from_jupiter = (symbol, mint_address) => __awaiter(void 0, void 0, void 0, function* () {
70
- const url = `https://api.jup.ag/tokens/v1/token/${mint_address}`;
70
+ const url = `https://lite-api.jup.ag/tokens/v2/search?query=${mint_address}`;
71
71
  try {
72
72
  const response = yield axios_1.default.get(url, {
73
73
  timeout: 6000,
74
+ httpsAgent: new (require('https').Agent)({ rejectUnauthorized: false })
74
75
  });
75
- const data = response.data;
76
+ const data = response.data[0];
76
77
  let token_info = {
77
78
  chainId: 101,
78
79
  address: mint_address,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
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.1.49",
16
+ "@clonegod/ttd-common": "1.1.50",
17
17
  "@metaplex-foundation/mpl-token-metadata": "^2.5.2",
18
18
  "@solana/web3.js": "1.91.6",
19
19
  "rpc-websockets": "7.10.0",