delegate-framework
Version:
A TypeScript framework for building robust, production-ready blockchain workflows with comprehensive error handling, logging, and testing. Maintained by delegate.fun
17 lines • 873 B
TypeScript
import { Connection, Keypair } from "@solana/web3.js";
import { HopperDelegateOptions, HopperDelegateResult } from "./types";
import { BaseDelegate } from "./base-delegate";
import { HeliusClient } from "../solana/clients/helius";
export declare class Hopper extends BaseDelegate<HopperDelegateOptions, HopperDelegateResult> {
private readonly heliusClient;
constructor(connection: Connection, signerKeypair: Keypair, heliusClient: HeliusClient, feeTakerKeypair?: Keypair);
executeDelegate(delegateOptions: HopperDelegateOptions): Promise<HopperDelegateResult>;
validateOptions(delegateOptions: HopperDelegateOptions): void;
private executeSolHopping;
private executeTokenHopping;
private executeTransaction;
private getTokenBalance;
private getTokenDecimals;
private calculateAmountToTransfer;
}
//# sourceMappingURL=hopper.d.ts.map