@circusdao/juggler-sdk
v1.0.7
Published
🛠 An SDK for building applications on top of Juggler.
Downloads
6
Maintainers
Readme
Juggler SDK
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.