pancake swap sdk
1.0.0
알아채다
https://github.com/pancakeswap/pancake-frontend/tree/develop/packages/swap-sdk로 옮겼습니다
Uniswap SDK에서 포크.
UNISWAP SDK 문서 UnisWAP.org를 참조 할 수 있습니다.
테스트를 실행하려면 다음 단계를 따르십시오. 최소한 노드 V10과 원사가 설치되어 있어야합니다.
먼저 저장소를 복제하십시오.
git clone https://github.com/pancakeswap/pancake-swap-sdk.git
Pancakeswap-SDK 작업 디렉토리로 이동하십시오
cd pancakeswap-sdk/
종속성을 설치하십시오
yarn install
테스트를 실행하십시오
yarn test
다음과 같은 출력이 표시됩니다.
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.