UNPKG

@reservoir0x/relay-sdk

Version:

Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.

80 lines 3.32 kB
import type { Execute } from '../types/index.js'; export declare const getCurrentStepData: (steps: Execute['steps']) => { currentStep: { error?: string | undefined; errorData?: any; action: string; description: string; kind: "transaction" | "signature"; id: "swap" | "deposit" | "approve" | "authorize" | "authorize1" | "authorize2" | "send"; requestId?: string | undefined; depositAddress?: string | undefined; items: { status: "complete" | "incomplete"; receipt?: import("viem").TransactionReceipt | import("../types/AdaptedWallet.js").SvmReceipt | import("../types/AdaptedWallet.js").SuiReceipt | undefined; checkStatus?: "failure" | "pending" | "success" | "refund" | "delayed" | "waiting" | "unknown" | undefined; progressState?: "confirming" | "validating" | "validating_delayed" | "complete" | "signing" | "posting" | undefined; data?: any; check?: { endpoint?: string | undefined; method?: string | undefined; } | undefined; orderIndexes?: number[] | undefined; orderIds?: string[] | undefined; error?: string | undefined; txHashes?: { txHash: string; chainId: number; isBatchTx?: boolean | undefined; }[] | undefined; internalTxHashes?: { txHash: string; chainId: number; isBatchTx?: boolean | undefined; }[] | undefined; errorData?: any; orderData?: { crossPostingOrderId?: string | undefined; orderId: string; orderIndex: string; }[] | undefined; isValidatingSignature?: boolean | undefined; }[]; } | null; currentStepItem: { status: "complete" | "incomplete"; receipt?: import("viem").TransactionReceipt | import("../types/AdaptedWallet.js").SvmReceipt | import("../types/AdaptedWallet.js").SuiReceipt | undefined; checkStatus?: "failure" | "pending" | "success" | "refund" | "delayed" | "waiting" | "unknown" | undefined; progressState?: "confirming" | "validating" | "validating_delayed" | "complete" | "signing" | "posting" | undefined; data?: any; check?: { endpoint?: string | undefined; method?: string | undefined; } | undefined; orderIndexes?: number[] | undefined; orderIds?: string[] | undefined; error?: string | undefined; txHashes?: { txHash: string; chainId: number; isBatchTx?: boolean | undefined; }[] | undefined; internalTxHashes?: { txHash: string; chainId: number; isBatchTx?: boolean | undefined; }[] | undefined; errorData?: any; orderData?: { crossPostingOrderId?: string | undefined; orderId: string; orderIndex: string; }[] | undefined; isValidatingSignature?: boolean | undefined; } | undefined; txHashes: { txHash: string; chainId: number; }[]; }; //# sourceMappingURL=getCurrentStepData.d.ts.map