UNPKG

@dzapio/sdk

Version:

A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.

29 lines (28 loc) 682 B
import { ProviderDetails } from '..'; import { ZapPathAsset } from './path'; export type ZapStatus = 'PENDING' | 'COMPLETED' | 'FAILED'; export type ZapStatusAsset = { asset: ZapPathAsset; amount: string; amountUSD: string; }; export type ZapStatusStep = { chainId: number; hash?: string; status: ZapStatus; action: string; protocol: ProviderDetails; input: ZapStatusAsset[]; output: ZapStatusAsset[]; }; export type ZapStatusResponse = { status: ZapStatus; steps: ZapStatusStep[]; recipient: string; timestamp: number; completedAt: number; }; export type ZapStatusRequest = { chainId: number; txnHash: string; };