diff --git a/src/Trading/volume/boost_volume.js b/src/Memecoin_dev/volume/boost_volume.js similarity index 89% rename from src/Trading/volume/boost_volume.js rename to src/Memecoin_dev/volume/boost_volume.js index f9f82a6b..37c5817f 100644 --- a/src/Trading/volume/boost_volume.js +++ b/src/Memecoin_dev/volume/boost_volume.js @@ -1,20 +1,18 @@ const { connection, wallet } = require("../../helpers/config.js"); const { simple_executeAndConfirm, -} = require("../../Transactions/simple_tx_executor"); +} = require("../../Transactions/simple_tx_executor.js"); const { jito_executeAndConfirm, -} = require("../../Transactions/jito_tips_tx_executor"); -const { buy, get_buy_transaction } = require("../dex/raydium/buy_helper"); -const { sell, get_sell_transaction } = require("../dex/raydium/sell_helper"); +} = require("../../Transactions/jito_tips_tx_executor.js"); const { program } = require("commander"); -const { loadOrCreateKeypair_wallet, checkTx } = require("../../helpers/util"); +const { loadOrCreateKeypair_wallet, checkTx } = require("../../helpers/util.js"); const { ComputeBudgetProgram, TransactionMessage, VersionedTransaction, } = require("@solana/web3.js"); -const { swapForVolume } = require("../../Pool/swap.js"); +const { swapForVolume } = require("../../raydium/Pool/swap.js"); let slippage = null, tokenAddress = null, payer = null, diff --git a/src/Trading/dex/jupiter/swap.js b/src/Trading/dex/jupiter/swap.js deleted file mode 100644 index e69de29b..00000000 diff --git a/src/Trading/dex/meteora/index.js b/src/Trading/dex/meteora/index.js deleted file mode 100644 index e69de29b..00000000 diff --git a/src/Trading/dex/Serum/index.js b/src/Trading_dev/dex/meteora/index.js similarity index 100% rename from src/Trading/dex/Serum/index.js rename to src/Trading_dev/dex/meteora/index.js diff --git a/src/Trading/dex/orca/index.js b/src/Trading_dev/dex/orca/index.js similarity index 100% rename from src/Trading/dex/orca/index.js rename to src/Trading_dev/dex/orca/index.js diff --git a/src/Trading/memecoin_trading_strategies/copy_trading/bought-tokens.json b/src/Trading_dev/memecoin_trading_strategies/copy_trading/bought-tokens.json similarity index 100% rename from src/Trading/memecoin_trading_strategies/copy_trading/bought-tokens.json rename to src/Trading_dev/memecoin_trading_strategies/copy_trading/bought-tokens.json diff --git a/src/Trading/memecoin_trading_strategies/copy_trading/copy-buy.js b/src/Trading_dev/memecoin_trading_strategies/copy_trading/copy-buy.js similarity index 100% rename from src/Trading/memecoin_trading_strategies/copy_trading/copy-buy.js rename to src/Trading_dev/memecoin_trading_strategies/copy_trading/copy-buy.js diff --git a/src/Trading/memecoin_trading_strategies/copy_trading/copy-sell.js b/src/Trading_dev/memecoin_trading_strategies/copy_trading/copy-sell.js similarity index 100% rename from src/Trading/memecoin_trading_strategies/copy_trading/copy-sell.js rename to src/Trading_dev/memecoin_trading_strategies/copy_trading/copy-sell.js diff --git a/src/Trading/memecoin_trading_strategies/copy_trading/copy-trade.js b/src/Trading_dev/memecoin_trading_strategies/copy_trading/copy-trade.js similarity index 100% rename from src/Trading/memecoin_trading_strategies/copy_trading/copy-trade.js rename to src/Trading_dev/memecoin_trading_strategies/copy_trading/copy-trade.js diff --git a/src/Trading/memecoin_trading_strategies/stop-loss.js b/src/Trading_dev/memecoin_trading_strategies/stop-loss.js similarity index 100% rename from src/Trading/memecoin_trading_strategies/stop-loss.js rename to src/Trading_dev/memecoin_trading_strategies/stop-loss.js diff --git a/src/Trading/memecoin_trading_strategies/take-profit.js b/src/Trading_dev/memecoin_trading_strategies/take-profit.js similarity index 100% rename from src/Trading/memecoin_trading_strategies/take-profit.js rename to src/Trading_dev/memecoin_trading_strategies/take-profit.js diff --git a/src/Trading/dex/jupiter/dca.js b/src/jupiter/dca.js similarity index 100% rename from src/Trading/dex/jupiter/dca.js rename to src/jupiter/dca.js diff --git a/src/Trading/dex/jupiter/limit_order.js b/src/jupiter/limit_order.js similarity index 100% rename from src/Trading/dex/jupiter/limit_order.js rename to src/jupiter/limit_order.js diff --git a/src/Trading/dex/jupiter/swap/buy-helper.js b/src/jupiter/swap/buy-helper.js similarity index 86% rename from src/Trading/dex/jupiter/swap/buy-helper.js rename to src/jupiter/swap/buy-helper.js index f04cddc5..749e0527 100644 --- a/src/Trading/dex/jupiter/swap/buy-helper.js +++ b/src/jupiter/swap/buy-helper.js @@ -1,7 +1,7 @@ const swap_helper = require("./swap-helper"); const { PublicKey } = require("@solana/web3.js"); -const { wallet } = require("../../../../helpers/config"); -const { getDecimals } = require("../../../../helpers/util"); +const { wallet } = require("../../helpers/config"); +const { getDecimals } = require("../../helpers/util"); const wsol = "So11111111111111111111111111111111111111112"; /** @@ -31,9 +31,8 @@ async function buy(tokenToBuy, amountTokenOut, slippage) { quoteResponse, wallet_PubKey ); - const { confirmed, signature } = await swap_helper.finalizeTransaction( - swapTransaction - ); + const { confirmed, signature } = + await swap_helper.finalizeTransaction(swapTransaction); if (confirmed) { console.log("http://solscan.io/tx/" + signature); } else { diff --git a/src/Trading/dex/jupiter/swap/sell-helper.js b/src/jupiter/swap/sell-helper.js similarity index 93% rename from src/Trading/dex/jupiter/swap/sell-helper.js rename to src/jupiter/swap/sell-helper.js index a5e8d04c..1e4d9468 100644 --- a/src/Trading/dex/jupiter/swap/sell-helper.js +++ b/src/jupiter/swap/sell-helper.js @@ -1,7 +1,7 @@ const swap_helper = require("./swap-helper"); const { PublicKey } = require("@solana/web3.js"); -const { wallet } = require("../../../../helpers/config"); -const { getDecimals } = require("../../../../helpers/util"); +const { wallet } = require("../../helpers/config"); +const { getDecimals } = require("../../helpers/util"); const wsol = "So11111111111111111111111111111111111111112"; /** diff --git a/src/Trading/dex/jupiter/swap/swap-helper.js b/src/jupiter/swap/swap-helper.js similarity index 96% rename from src/Trading/dex/jupiter/swap/swap-helper.js rename to src/jupiter/swap/swap-helper.js index fe5a3886..b87e83ab 100644 --- a/src/Trading/dex/jupiter/swap/swap-helper.js +++ b/src/jupiter/swap/swap-helper.js @@ -1,10 +1,10 @@ const { VersionedTransaction, PublicKey } = require("@solana/web3.js"); const fetch = require("cross-fetch"); -const { connection, wallet, jito_fee } = require("../../../../helpers/config"); +const { connection, wallet, jito_fee } = require("../../helpers/config"); const { jito_executeAndConfirm, -} = require("../../../../Transactions/jito_tips_tx_executor"); -const { getDecimals } = require("../../../../helpers/util"); +} = require("../../Transactions/jito_tips_tx_executor"); +const { getDecimals } = require("../../helpers/util"); /** * Retrieves a quote for swapping tokens. *