fixed build issues
This commit is contained in:
parent
3d7585671f
commit
e39ef95191
@ -13,7 +13,6 @@ import {
|
||||
SwapQuote,
|
||||
SwapQuoteConsumerBase,
|
||||
SwapQuoteConsumerOpts,
|
||||
ValidSwapQuoteConsumer,
|
||||
} from '../types';
|
||||
import { assert } from '../utils/assert';
|
||||
import { assetDataUtils } from '../utils/asset_data_utils';
|
||||
@ -75,7 +74,7 @@ export class SwapQuoteConsumer implements SwapQuoteConsumerBase<SmartContractPar
|
||||
public async getConsumerForSwapQuoteAsync(
|
||||
quote: SwapQuote,
|
||||
opts: Partial<DynamicSwapQuoteGetOutputOpts>,
|
||||
): Promise<ValidSwapQuoteConsumer> {
|
||||
): Promise<SwapQuoteConsumerBase<SmartContractParams>> {
|
||||
const wethAssetData = assetDataUtils.getEtherTokenAssetData(this._contractWrappers);
|
||||
if (swapQuoteConsumerUtils.isValidForwarderSwapQuote(quote, wethAssetData)) {
|
||||
if (opts.takerAddress !== undefined) {
|
||||
|
@ -129,8 +129,6 @@ export interface SwapQuoteConsumerBase<T> {
|
||||
executeSwapQuoteOrThrowAsync(quote: SwapQuote, opts: Partial<SwapQuoteExecutionOpts>): Promise<string>;
|
||||
}
|
||||
|
||||
export type ValidSwapQuoteConsumer = ExchangeSwapQuoteConsumer | ForwarderSwapQuoteConsumer;
|
||||
|
||||
/**
|
||||
* networkId: The networkId that the desired orders should be for.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user