UNPKG

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 906 B
import { Connection, Keypair } from "@solana/web3.js"; import { AllocatorDelegateOptions, AllocatorDelegateResult } from "./types"; import { BaseDelegate } from "./base-delegate"; import { HeliusClient } from "../solana/clients/helius"; export declare class Allocator extends BaseDelegate<AllocatorDelegateOptions, AllocatorDelegateResult> { private readonly heliusClient; private readonly jupiterSwap; private readonly raydiumSwap; constructor(connection: Connection, signerKeypair: Keypair, heliusClient: HeliusClient, feeTakerKeypair?: Keypair); executeDelegate(delegateOptions: AllocatorDelegateOptions): Promise<AllocatorDelegateResult>; validateOptions(delegateOptions: AllocatorDelegateOptions): void; private processAllocation; private executeSwapWithFallback; private executeJupiterSwap; private executeRaydiumSwap; } //# sourceMappingURL=allocator.d.ts.map