Baryon
  • πŸ‘‹Baryon Network
  • Product
    • BaryonSwap
      • How to Swap
    • BaryonFarm
      • How to Add Liquidity
      • How to Remove Liquidity
      • How to Farm
      • How to Claim the reward
    • BaryonStake
      • How to Stake
      • How to Unstake
      • How to Harvest
    • Baryon Snapshot
      • How to use Baryon Snapshot
    • FAQs
      • Is Baryon safe? Has Baryon been audited?
      • Why did my transaction fail?
      • What is the difference between APY and APR?
      • How to resolve the "No wallet" error when connecting wallet to Baryon Network
      • What are liquidity provider tokens?
      • When will you open more pools?
      • What wallets can I use with Baryon? How do I connect my wallet to Baryon?
      • My LP tokens aren’t showing up on the site or in my wallet?
      • Can I use Baryon on my phone?
      • What is price impact?
      • What is slippage tolerance? How can I adjust it when swapping?
      • Are there any fees associated with the BaryonFarm?
      • What fees do I pay when I exchange tokens?
      • How to calculate and distribute the reward on BaryonFarm?
      • Can I withdraw my liquidity anytime?
      • Where can I check Baryon Analytics?
      • I can't find an answer for my question. Where do I find an answer?
      • How could I report a bug?
  • OFFICIAL LINKS
    • Twitter
    • Telegram Chat
    • Telegram Channel
    • Blog
    • Brand Kit
    • Knowledge Space
  • πŸ“Developers
    • Installation Guides
      • Token List
      • @baryon-network/sdk
      • Contract Factory
  • Audit
    • BaryonSwap
    • BaryonFarm & Stake
  • LEGAL
    • Terms of Services
    • Privacy Policy
Powered by GitBook
On this page
  • BaryonSwap SDK
  • Running tests
  1. Developers
  2. Installation Guides

@baryon-network/sdk

PreviousToken ListNextContract Factory

Last updated 7 months ago

1.0.1 β€’ Public β€’ Published 5 hours ago

  • Readme

  • Explore BETA

  • 6 Dependencies

  • 0 Dependents

  • 2 Versions

BaryonSwap SDK

Forked from the .

You can refer to the Uniswap SDK documentation .

Running tests

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

First clone the repository:

git clone https://github.com/coin98/baryon-swap-sdk.git

Move into the baryon-swap-sdk working directory

Install dependencies

Run tests

You should see output like the following:

yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
πŸ“
Uniswap SDK
uniswap.org
yarn