import Mpc from '../../mpc' import type { YieldXyzValidator } from '../../shared/types' import YieldXyz from './yieldxyz' export interface YieldOptions { waitForConfirmation?: ( txHash: string, network: string, ) => Promise evmRequestFn?: ( method: string, params: unknown[], network: string, ) => Promise evmPollerOptions?: { pollIntervalMs?: number timeoutMs?: number } } /** * Yield integrations (Yield.xyz, etc.). */ export default class Yield { public yieldXyz: YieldXyz constructor({ mpc, ...rest }: { mpc: Mpc } & YieldOptions) { this.yieldXyz = new YieldXyz({ mpc, ...rest }) } public getValidators(yieldId: string): Promise { return this.yieldXyz.getValidators(yieldId) } }