• Stars
    star
    189
  • Rank 204,649 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Notice

Moved to https://github.com/pancakeswap/pancake-frontend/tree/develop/packages/swap-sdk

Pancakeswap SDK

Forked from the Uniswap SDK.

You can refer to the Uniswap SDK documentation 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/pancakeswap/pancake-swap-sdk.git

Move into the pancakeswap-sdk working directory

cd pancakeswap-sdk/

Install dependencies

yarn install

Run tests

yarn test

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.

More Repositories

1

pancake-frontend

🥞 Pancake main features (farms, pools, IFO, lottery, profiles)
TypeScript
2,669
star
2

pancake-farm

Solidity
428
star
3

pancake-info-api

Serverless API implementation for PancakeSwap on-chain data query.
TypeScript
330
star
4

pancake-swap-interface-v1

🥞 Pancake trading interface V1
TypeScript
303
star
5

pancake-toolkit

⚒️ Pancake frontend packages
TypeScript
303
star
6

pancake-subgraph

📊 Pancake subgraph (blocks, profile, prediction, NFT's, ...)
TypeScript
292
star
7

pancake-swap-core

Core smart contracts
TypeScript
264
star
8

pancake-smart-contracts

PancakeSwap Smart Contracts
TypeScript
202
star
9

pancake-swap-periphery

Solidity
174
star
10

pancake-document

HTML
94
star
11

pancake-swap-lib

Solidity
85
star
12

lottery-contract

JavaScript
83
star
13

pancake-info-v1

JavaScript
77
star
14

pancake-uikit

💠 Set of UI components for pancake projects
TypeScript
77
star
15

token-list

TypeScript
69
star
16

pancake-contracts-move

Move
69
star
17

pancake-lottery-scheduler

🎰 Pancake Lottery scheduler
TypeScript
40
star
18

pancake-profile-api

🖼️ Serverless API implementation for PancakeSwap Profile contract
TypeScript
32
star
19

initial-farm-offering

🥞 IFO contract
JavaScript
25
star
20

PancakeSwap-Design

18
star
21

pancake-v2-subgraph

[ARCHIVED] PancakeSwap v2 subgraph
TypeScript
17
star
22

pancake-nft-api

Serverless API implementation for PancakeSwap NFT Marketplace contract
TypeScript
16
star
23

pancake-v4-periphery-deprecated

Solidity
13
star
24

pancake-v3-contracts

TypeScript
12
star
25

smart-router-example

Usage example of @pancakeswap/smart-router
TypeScript
9
star
26

pancake-nft-publish

Java
9
star
27

token-pocket-splash

TypeScript
6
star
28

Revelation-Hackathon-Bounties

PancakeSwap bounties for Revelation Hackathon by BNB Chain
6
star
29

pancake-taro-toolkit

pancake-toolkit for taro
TypeScript
3
star
30

eslint-config-pancake

Eslint config for PancakeSwap
JavaScript
3
star
31

airdrop-v3-users

TypeScript
2
star
32

permit2

🔑🔑🔑 next generation token approvals mechanism
Solidity
2
star
33

on-ramp-client-side-api

TypeScript
1
star
34

syrup-pool-data-api

TypeScript
1
star