Catalog npm
Back to packageRELEASE DETAILS

0.3.0

npm

@0x/neon-router

0x API /swap order router

Published22 Dec 2021
Direct dependencies12
Transitive dependenciesNot calculated

README

Current package documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 12

Native requirements
12 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@mapbox/node-pre-gyp
Environment
{
  "local_name": "@mapbox/node-pre-gyp",
  "alias": false,
  "peer_metadata": null
}
^1.0.5runtime
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.3.3development
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^27.0.1development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
^5.11development
aws-sdk
Environment
{
  "local_name": "aws-sdk",
  "alias": false,
  "peer_metadata": null
}
^2.972.0development
ts-jest
Environment
{
  "local_name": "ts-jest",
  "alias": false,
  "peer_metadata": null
}
^27.0.1development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^10.0.0development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^2.3.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.2development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^26.0.23development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^4.1.4development
cargo-cp-artifact
Environment
{
  "local_name": "cargo-cp-artifact",
  "alias": false,
  "peer_metadata": null
}
^0.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "27ad74f25c3df986a5b325a5664bae9f84258fd2",
  "tarball": "https://registry.npmjs.org/@0x/neon-router/-/neon-router-0.3.0.tgz",
  "fileCount": 3,
  "integrity": "sha512-NTzeazVwo76xUgqZAGfFr8Dt7Q8qvL+tBsYHS9+Ajtcb/bN0rxlgbn4h/3cMFJqxA9lTHWfwfpXURvGPtbedsQ==",
  "signatures": [
    {
      "sig": "MEUCIE3oni9s4/60WFLCFnXbzfAJj2ak779bpTLXfg7UafvQAiEAwlLBC+sGszmWnEpkn1WelM8hGco/3WZ7RlwIwAAVf3A=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 2749,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhw0YbCRA9TVsSAnZWagAA4i4P/0i5m1jK6FhtVjdO+UgR\nl91aI1NS2F3VBPZCnJKNYxfjr9/SebVSVAHZGpFLYws+flpdbulWWOUmvGGW\n1Kp2eX3orz/B+UCr+ARNfIdgCpguuiF0Z7CyzIRGH3g2zxYT/1Vf7uq25jAp\nTEo9Lvg7IdUYS4Guy5rfmTz8Ve2okzQI/ECyePpBn80OAcaQNN40Z+x8kmKr\n4swyVRFE2zjrj549V+AVZ5CVMzyY/+KUycXQbxUsbC+FuaGLfwJDQNjl96oq\nOrnjdj9RB66/OYrHuyWNw2t/ipEdYb1uQLwYWVlEvGiVA4oRRmJyx7NBafgV\n3RQo7/51RvrBIktrX5vRxnOiImOLGnaEBA5BjTlDiSwYEdZz4upK6gbeks1j\nm1o57sUmmkA+UBBx0chMTZKjx1KCYkMV7T0SJjl7DNwrLjVb6KdFcBs8HRRN\nSO+j43IyHDIVvmCZ2265XC9++kGm6+kZq3hO80tAcJfHkYADmAXVd+xnikrr\n9H8eD0O7L/T4VlricPL/7eTNpkgpl7qmd/0jE6bOHmVUzr2bm4l5A6ERAkZ1\nqVtF8ePf2xJUi/UWUqHPw9gGbqDPAnqf3mksa5Ahk/o+4hDRNcFSnO96nJQw\n3Raduq2BTTpFQr4QOxLltZeUnUPDzeEs/0k/BzbUG4mVvdStgw33iC8MZ5AP\npQWd\r\n=M2Z/\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
0xproject/router

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:594ea56507553cd89eb969ead7d49eb0e03d2fba06b762b2d027332cc0917f75

Other collected versions

0.4.023 May0.3.59 Mar0.3.424 Feb0.3.323 Feb0.3.222 Feb0.3.127 DecView all collected versions →