@clonegod/ttd-sol-common 2.0.19 → 2.0.21
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.
|
@@ -19,7 +19,7 @@ exports.HELIUS_TIP_ACCOUNTS = [
|
|
|
19
19
|
];
|
|
20
20
|
const sendTxWithHelius = async (signedTransaction, swqos_only) => {
|
|
21
21
|
let url = process.env.HELIUS_SEND_TX_URL || 'http://tyo-sender.helius-rpc.com/fast';
|
|
22
|
-
if (
|
|
22
|
+
if (swqos_only) {
|
|
23
23
|
url = url + "?swqos_only=true";
|
|
24
24
|
}
|
|
25
25
|
const response = await axios_1.default.post(url, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clonegod/ttd-sol-common",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.21",
|
|
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-core": "2.1.
|
|
16
|
+
"@clonegod/ttd-core": "2.1.5",
|
|
17
17
|
"@solana/web3.js": "1.91.6",
|
|
18
18
|
"rpc-websockets": "7.10.0",
|
|
19
19
|
"axios": "^1.2.3",
|
package/src/trade/send/helius.ts
CHANGED
|
@@ -20,9 +20,10 @@ export const HELIUS_TIP_ACCOUNTS = [
|
|
|
20
20
|
export const sendTxWithHelius = async (signedTransaction: Transaction, swqos_only: boolean): Promise<string> => {
|
|
21
21
|
let url = process.env.HELIUS_SEND_TX_URL || 'http://tyo-sender.helius-rpc.com/fast'
|
|
22
22
|
|
|
23
|
-
if (
|
|
23
|
+
if (swqos_only) {
|
|
24
24
|
url = url + "?swqos_only=true"
|
|
25
25
|
}
|
|
26
|
+
|
|
26
27
|
const response = await axios.post<{ result: string }>(url, {
|
|
27
28
|
jsonrpc: '2.0',
|
|
28
29
|
id: Date.now().toString(),
|