UNPKG

@dzapio/sdk

Version:

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

18 lines (17 loc) 618 B
import { AxiosError } from 'axios'; import { StatusCodes, TxnStatus } from '../enums'; export declare const BRIDGE_ERRORS: { BridgeCallFailed: string; }; export declare function getErrorName(errorString: string): string | null; export declare const getRevertMsg: (res: string) => string; export declare const isAxiosError: (error: unknown) => error is AxiosError; export declare const handleViemTransactionError: ({ error }: { error: any; }) => { status: TxnStatus; error: any; errorMsg: any; code: StatusCodes; }; export declare const isAtomicReadyWalletRejectedUpgradeError: (e: any) => any;