@circusdao/juggler-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

Juggler SDK

npm version npm bundle size (scoped version)

In-depth documentation on this SDK is available at uniswap.org.

Running tests

To run the tests, follow these steps. You must have at least node v10 and yarn installed.

First clone the repository:
git clone https://github.com/CircusDAO/juggler-sdk.git
Move into the root directory
cd juggler-sdk
Install dependencies
npm install
Run tests
npm run test
You should see an output like the following:
$ tsdx test
 PASS  src/entities/Token.test.ts
 PASS  src/entities/Price.test.ts
 PASS  src/entities/native/Ether.test.ts
 PASS  test/constants.test.ts
 PASS  src/entities/CurrencyAmount.test.ts
 PASS  src/functions/sortedInsert.test.ts
 PASS  src/entities/Percent.test.ts
 PASS  src/entities/AbstractCurrency.test.ts
 PASS  src/entities/Route.test.ts
 PASS  src/entities/Fraction.test.ts
 PASS  src/functions/computePriceImpact.test.ts
 PASS  src/router.test.ts
 PASS  test/entities.test.ts
 PASS  src/entities/Trade.test.ts
 PASS  src/entities/ConstantProduct.test.ts
 PASS  src/entities/Pair.test.ts
 PASS  src/functions/sqrt.test.ts (5.741s)

Test Suites: 19 passed, 19 total
Tests:       190 passed, 190 total
Snapshots:   0 total
Time:        6.334s, estimated 12s
Ran all test suites.

Package Sidebar

Install

npm i @circusdao/juggler-sdk

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

990 kB

Total Files

51

Last publish

Collaborators

  • barnaby-bob