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