From e63569e01c7fe62c62d874a4faee4c6cf6a993cd Mon Sep 17 00:00:00 2001 From: nick134 Date: Mon, 3 Apr 2023 22:31:44 +0200 Subject: [PATCH] linted --- src/core/logging/slackLogger.ts | 2 +- src/core/node/skipclients.ts | 34 ------------------------- src/core/types/messages/swapmessages.ts | 18 ------------- 3 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 src/core/node/skipclients.ts diff --git a/src/core/logging/slackLogger.ts b/src/core/logging/slackLogger.ts index a8c9f31..db767b4 100644 --- a/src/core/logging/slackLogger.ts +++ b/src/core/logging/slackLogger.ts @@ -27,4 +27,4 @@ export class SlackLogger { }); } } -} \ No newline at end of file +} diff --git a/src/core/node/skipclients.ts b/src/core/node/skipclients.ts deleted file mode 100644 index c330531..0000000 --- a/src/core/node/skipclients.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; -import { SkipBundleClient } from "@skip-mev/skipjs"; -/** - * - */ -export interface SkipResult { - jsonrpc: string; - id: number; - result: { - code: number; - txs: Array; - auction_fee: string; - bundle_size: string; - desired_height: string; - waited_for_simulation_results: boolean; - simulation_success: boolean; - result_check_txs: Array; - result_deliver_txs: Array; - error: string; - }; -} - -/** - * - */ -export async function getSkipClient( - RPC_URL: string, - mnemonic: string, - walletPrefix: string, -): Promise<[SkipBundleClient, DirectSecp256k1HdWallet]> { - const skipClient = await new SkipBundleClient(RPC_URL); - const skipSigner = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: walletPrefix }); - return [skipClient, skipSigner]; -} diff --git a/src/core/types/messages/swapmessages.ts b/src/core/types/messages/swapmessages.ts index b425775..9417bce 100644 --- a/src/core/types/messages/swapmessages.ts +++ b/src/core/types/messages/swapmessages.ts @@ -175,21 +175,3 @@ export function isWyndDaoSwapOperationsMessages( ): msg is Array { return msg[0]["wyndex_swap" as keyof (typeof msg)[0]] !== undefined; } - -/** - * - */ -export function isWyndDaoSwapOperationsMessages( - msg: SwapOperationsInnerMessageOperations, -): msg is Array { - return msg[0]["wyndex_swap" as keyof typeof msg[0]] !== undefined; -} - -/** - * - */ -export function isWyndDaoSwapOperationsMessages( - msg: SwapOperationsInnerMessageOperations, -): msg is Array { - return msg[0]["wyndex_swap" as keyof typeof msg[0]] !== undefined; -}