@funkit/fun-relay
Version:
15 lines • 814 B
TypeScript
import { type Execute, type ProgressData } from '@reservoir0x/relay-sdk';
import type { Hex, WalletClient } from 'viem';
import type { Logger, RelayExecutionInfo } from './types';
export type RelayExecutionStep = ProgressData['currentStep'] & {};
export interface ExecuteRelayQuoteParams {
logger: Logger;
onConfirmed: (txHash: Hex) => Promise<void>;
onError: (error: Error) => Promise<void>;
onProgress?: (step: RelayExecutionStep | null) => void;
relayQuote: Execute;
walletClient: WalletClient;
}
export declare function executeRelayQuote({ logger, onConfirmed, onError, onProgress, relayQuote, walletClient, }: ExecuteRelayQuoteParams): Promise<void>;
export declare function getRelayExecutionInfo(requestId: string): Promise<RelayExecutionInfo>;
//# sourceMappingURL=execution.d.ts.map