Skip to content

Commit

Permalink
changed dir structure
Browse files Browse the repository at this point in the history
  • Loading branch information
outsmartchad committed Aug 19, 2024
1 parent 340874b commit 261d63f
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Empty file removed src/Trading/dex/jupiter/swap.js
Empty file.
Empty file removed src/Trading/dex/meteora/index.js
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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";

/**
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down

0 comments on commit 261d63f

Please sign in to comment.