This SDK facilitates interactions with the contracts in Universal Router.
Install this SDK as below:
npm install @derpdex/universal-router-sdk
Install latest version of universal-router-sdk. Then import the corresponding Trade class and Data object for each protocol you'd like to interact with.
Make sure you are running node v16
Install dependencies and run typescript unit tests
yarn install
yarn test:hardhat
Run forge integration tests
yarn symlink # must install git submodules
forge install
yarn test:forge