• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cowprotocol / cow-sdk / 14001954831

21 Mar 2025 10:26PM UTC coverage: 73.659% (-3.4%) from 77.101%
14001954831

Pull #253

github

anxolin
chore: improve signatures
Pull Request #253: feat(bridging): get quote + post cross-chain swap

392 of 552 branches covered (71.01%)

Branch coverage included in aggregate %.

41 of 126 new or added lines in 16 files covered. (32.54%)

23 existing lines in 5 files now uncovered.

844 of 1126 relevant lines covered (74.96%)

16.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/bridging/BridgingSdk/getQuoteWithoutBridge.ts
1
/* eslint-disable @typescript-eslint/no-unused-vars */
2
import { QuoteAndPost, SwapAdvancedSettings, TradeParameters, TradingSdk } from '../../trading'
3
import { QuoteBridgeRequest } from '../types'
4

5
export function getQuoteWithoutBridge(params: {
6
  tradingSdk: TradingSdk
7
  quoteBridgeRequest: QuoteBridgeRequest
8
  advancedSettings?: SwapAdvancedSettings
9
}): Promise<QuoteAndPost> {
NEW
10
  const { quoteBridgeRequest, advancedSettings, tradingSdk } = params
×
NEW
11
  const { sellTokenAddress, buyTokenAddress, amount, ...rest } = quoteBridgeRequest
×
NEW
12
  const swapParams: TradeParameters = {
×
13
    ...rest,
14
    sellToken: sellTokenAddress,
15
    buyToken: buyTokenAddress,
16
    amount: amount.toString(),
17
  }
18

NEW
19
  return tradingSdk.getQuote(swapParams, advancedSettings)
×
20
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc