forked from sushiswap/sushiswap-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57c6584
commit 7038e3a
Showing
34 changed files
with
3,168 additions
and
3,739 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- v2 | ||
push: | ||
branches: | ||
- v2 | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
node: ['10.x', '12.x'] | ||
os: [ubuntu-latest, macOS-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- run: npm install -g yarn | ||
|
||
- id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ matrix.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ matrix.os }}-yarn- | ||
- run: yarn | ||
|
||
- run: yarn lint | ||
- run: yarn build | ||
- run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
dist/ | ||
dist |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
# Uniswap SDK | ||
|
||
[![npm (scoped)](https://img.shields.io/npm/v/@uniswap/sdk.svg)](https://www.npmjs.com/package/@uniswap/sdk) | ||
[![Build Status](https://travis-ci.org/Uniswap/uniswap-sdk.svg?branch=master)](https://travis-ci.org/Uniswap/uniswap-sdk) | ||
[![Coverage Status](https://coveralls.io/repos/github/Uniswap/uniswap-sdk/badge.svg?branch=master)](https://coveralls.io/github/Uniswap/uniswap-sdk?branch=master) | ||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) | ||
|
||
## Documentation is available at [docs.uniswap.io](https://docs.uniswap.io/sdk-documentation/get-started) | ||
[![Actions Status](https://github.com/Uniswap/uniswap-sdk/workflows/CI/badge.svg)](https://github.com/Uniswap/uniswap-sdk) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,33 @@ | ||
{ | ||
"name": "@uniswap/sdk", | ||
"version": "1.0.0-beta.4", | ||
"description": "An SDK for building applications on top of the Uniswap exchange protocol.", | ||
"license": "GPL-3.0-or-later", | ||
"version": "2.0.0", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": "https://github.com/Uniswap/uniswap-sdk.git", | ||
"keywords": [ | ||
"Uniswap", | ||
"Ethereum", | ||
"SDK" | ||
"uniswap", | ||
"ethereum" | ||
], | ||
"main": "./dist/index.js", | ||
"module": "dist/sdk.esm.js", | ||
"scripts": { | ||
"lint:base": "yarn eslint './src/**/*.ts'", | ||
"format:base": "yarn prettier './src/**/*.ts'", | ||
"fix:lint": "yarn lint:base --fix", | ||
"fix:format": "yarn format:base --write", | ||
"fix:all": "yarn fix:lint && yarn fix:format", | ||
"check:lint": "yarn lint:base", | ||
"check:format": "yarn format:base --check", | ||
"check:all": "yarn check:lint && yarn check:format", | ||
"prebuild": "rm -rf dist/", | ||
"build": "tsc", | ||
"watch": "yarn prebuild && tsc --watch", | ||
"test": "jest", | ||
"coverage": "jest --coverage --coverageReporters=text-lcov | coveralls" | ||
"lint": "tsdx lint", | ||
"build": "tsdx build", | ||
"start": "tsdx watch", | ||
"test": "tsdx test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Uniswap/uniswap-sdk.git" | ||
}, | ||
"author": "Noah Zinsmeister <noahwz@gmail.com>", | ||
"license": "GPL-3.0-or-later", | ||
"devDependencies": { | ||
"@types/jest": "^24.0.13", | ||
"@types/lodash.clonedeepwith": "^4.5.6", | ||
"@typescript-eslint/eslint-plugin": "^1.9.0", | ||
"@typescript-eslint/parser": "^1.9.0", | ||
"coveralls": "^3.0.3", | ||
"eslint": "^5.16.0", | ||
"eslint-config-prettier": "^4.3.0", | ||
"jest": "^24.8.0", | ||
"prettier": "^1.17.1", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "^3.4.5" | ||
"@types/jest": "^24.0.25", | ||
"tsdx": "^0.12.1", | ||
"tslib": "^1.10.0", | ||
"typescript": "^3.7.4" | ||
}, | ||
"dependencies": { | ||
"bignumber.js": "^9.0.0", | ||
"ethers": "^4.0.28", | ||
"lodash.clonedeepwith": "^4.5.0" | ||
"prettier": { | ||
"printWidth": 120, | ||
"semi": false, | ||
"singleQuote": true | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.