@f5i23q999d/cow-sdk
Version:
<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>
27 lines (26 loc) • 886 B
TypeScript
import { SwapAdvancedSettings, TradingSdk } from '../../trading/index.js';
import { BridgeProvider, BridgeQuoteAndPost, BridgeQuoteResult, GetErc20Decimals, QuoteBridgeRequest } from '../types.js';
type GetQuoteWithBridgeParams<T extends BridgeQuoteResult> = {
/**
* Overall request for the swap and the bridge.
*/
swapAndBridgeRequest: QuoteBridgeRequest;
/**
* Advanced settings for the swap.
*/
advancedSettings?: SwapAdvancedSettings;
/**
* Provider for the bridge.
*/
provider: BridgeProvider<T>;
/**
* Trading SDK.
*/
tradingSdk: TradingSdk;
/**
* Function to get the decimals of the ERC20 tokens.
*/
getErc20Decimals: GetErc20Decimals;
};
export declare function getQuoteWithBridge<T extends BridgeQuoteResult>(params: GetQuoteWithBridgeParams<T>): Promise<BridgeQuoteAndPost>;
export {};