mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-09 20:12:06 +10:00
lint
This commit is contained in:
@ -44,7 +44,7 @@ export class JitoTransactionExecutor implements TransactionExecutor {
|
||||
transaction: VersionedTransaction,
|
||||
payer: Keypair,
|
||||
latestBlockhash: BlockhashWithExpiryBlockHeight,
|
||||
): Promise<{ confirmed: boolean; signature?: string }> {
|
||||
): Promise<{ confirmed: boolean; signature?: string; error?: string }> {
|
||||
logger.debug('Starting Jito transaction execution...');
|
||||
this.JitoFeeWallet = this.getRandomValidatorKey(); // Update wallet key each execution
|
||||
logger.trace(`Selected Jito fee wallet: ${this.JitoFeeWallet.toBase58()}`);
|
||||
|
||||
@ -21,7 +21,7 @@ export class WarpTransactionExecutor implements TransactionExecutor {
|
||||
transaction: VersionedTransaction,
|
||||
payer: Keypair,
|
||||
latestBlockhash: BlockhashWithExpiryBlockHeight,
|
||||
): Promise<{ confirmed: boolean; signature?: string }> {
|
||||
): Promise<{ confirmed: boolean; signature?: string; error?: string }> {
|
||||
logger.debug('Executing transaction...');
|
||||
|
||||
try {
|
||||
@ -41,7 +41,7 @@ export class WarpTransactionExecutor implements TransactionExecutor {
|
||||
const warpFeeTx = new VersionedTransaction(warpFeeMessage);
|
||||
warpFeeTx.sign([payer]);
|
||||
|
||||
const response = await axios.post<{ confirmed: boolean; signature: string, error?: string }>(
|
||||
const response = await axios.post<{ confirmed: boolean; signature: string; error?: string }>(
|
||||
'https://tx.warp.id/transaction/execute',
|
||||
{
|
||||
transactions: [bs58.encode(warpFeeTx.serialize()), bs58.encode(transaction.serialize())],
|
||||
|
||||
Reference in New Issue
Block a user