moodlezoup / 0x-swap-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0x-swap-server

Run multiple (minimal) swap/quote endpoints for A-B testing different versions of asset-swapper.

Setup

You need to side-load two (or more) versions of asset-swapper by using package aliasing and (possibly) yarn resolutions. See the package.json for my setup. You will need to modify it for your environment.

You might also need to modify src/start.js to manually add/modify an endpoint for your AS package.

Running

NODE_RPC=YOUR_NODE_HTTP_RPC yarn start

About


Languages

Language:JavaScript 100.0%