UNPKG

rubic-sdk-next

Version:
9 lines (8 loc) 730 B
import { QuoteRequestInterface, QuoteResponseInterface } from '@cryptorubic/core'; import { WrappedCrossChainTrade } from '../cross-chain/calculation-manager/providers/common/models/wrapped-cross-chain-trade'; import { WrappedOnChainTradeOrNull } from '../on-chain/calculation-manager/models/wrapped-on-chain-trade-or-null'; import { RubicApiError } from './models/rubic-api-error'; export declare class TransformUtils { static transformCrossChain(res: QuoteResponseInterface, quote: QuoteRequestInterface, err: RubicApiError | null): Promise<WrappedCrossChainTrade>; static transformOnChain(response: QuoteResponseInterface, quote: QuoteRequestInterface, err: RubicApiError | null): Promise<WrappedOnChainTradeOrNull>; }