How to use the @0x/asset-swapper.SwapQuoteConsumer function in @0x/asset-swapper

To help you get started, we’ve selected a few @0x/asset-swapper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 0xProject / 0x-monorepo / packages / instant / src / util / asset_swapper_factory.ts View on Github external
getSwapQuoteConsumer: (supportedProvider: SupportedProvider, network: Network): SwapQuoteConsumer => {
        const swapQuoteConsumerOptions: Partial = {
            chainId: network,
        };
        return new SwapQuoteConsumer(supportedProvider, swapQuoteConsumerOptions);
    },
};