delegate-framework
Version:
A TypeScript framework for building robust, production-ready blockchain workflows with comprehensive error handling, logging, and testing. Maintained by delegate.fun
19 lines • 981 B
TypeScript
import { Connection, Keypair } from "@solana/web3.js";
import { LiquidatorDelegateOptions, LiquidatorDelegateResult } from "./types";
import { BaseDelegate } from "./base-delegate";
import { HeliusClient } from "../solana/clients/helius";
export declare class Liquidator extends BaseDelegate<LiquidatorDelegateOptions, LiquidatorDelegateResult> {
private readonly heliusClient;
private readonly jupiterSwap;
private readonly raydiumSwap;
constructor(connection: Connection, signerKeypair: Keypair, heliusClient: HeliusClient, feeTakerKeypair?: Keypair);
executeDelegate(delegateOptions: LiquidatorDelegateOptions): Promise<LiquidatorDelegateResult>;
validateOptions(delegateOptions: LiquidatorDelegateOptions): void;
private getTokenAccounts;
private processTokenLiquidation;
private executeSwapWithFallback;
private executeJupiterSwap;
private executeRaydiumSwap;
private getTokenDecimals;
}
//# sourceMappingURL=liquidator.d.ts.map