@0x/neon-router
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

Neon bindings for 0x API Router

For more information about 0x API see https://0x.org/api.

Developers

Test

cargo test
npm run build
npm run test

Plotting liquidity curves for local development

When building the module with the plots feature enabled, the router will create a ./plots folder relative to the folder it is executed from and output plots of the curves for every sampled source.

Building with all optional features enabled

All optional features can be enabled by building with

npm run build:all_features

Publishing the package

Production npm publish

  1. Bump the version appropriately in the package.json, commit with the message [publish binary] and push to the remote. An action will automatically build the binaries and upload them to S3
  2. Publish the new version to npm with npm run publish:npm

Private gitpkg publish

  1. Bump the version by running npm run publish:private:bump_version, commit with the message [publish binary] and push to the remote. An action will automatically build the binaries and upload them to S3
  2. Publish the package to gitpkg by running npm run publish:private
  3. See Quip doc about how to use gitpkg published packages

Developing with 0x API locally

You can develop neon-router directly towards you local 0x API instance, but it requires a bit of setup

  1. In neon-router run yarn link
  2. In neon-router run npm run build or npm run build:all_features
  3. In asset-swapper run yarn link "@0x/neon-router" && yarn build
  4. In 0x-api run yarn link "@0x/asset-swapper"
  5. You can now make changes to the router, rebuild it, then restart 0x API to use the updated version

Readme

Keywords

none

Package Sidebar

Install

npm i @0x/neon-router

Homepage

0x.org/api

Weekly Downloads

254

Version

0.4.0

License

Apache-2.0

Unpacked Size

5.02 kB

Total Files

3

Last publish

Collaborators

  • aeph4muh
  • rhinodavid
  • mwelche
  • savdont
  • kyuc
  • henryzhu
  • tobernguyen
  • dekz
  • amirbandeali
  • phil-ociraptor