@clonegod/ttd-sol-common 1.1.11 → 1.1.13
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.
|
@@ -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/
|
|
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.
|
|
3
|
+
"version": "1.1.13",
|
|
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.
|
|
16
|
+
"@clonegod/ttd-common": "1.1.51",
|
|
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",
|