Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prune deps #81

Merged
merged 4 commits into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parserOptions": { "project": "./tsconfig.json" },
"env": { "es6": true },
"ignorePatterns": ["node_modules", "build", "coverage"],
"plugins": ["import", "eslint-comments", "functional"],
"plugins": ["import", "eslint-comments"],
"extends": [
"eslint:recommended",
"plugin:eslint-comments/recommended",
Expand Down
2 changes: 1 addition & 1 deletion cli/base-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ParserOutput } from '@oclif/parser/lib/parse';
import DEFAULT_TOKEN_LIST from '@uniswap/default-token-list';
import { Currency, CurrencyAmount, Token } from '@uniswap/sdk-core';
import { MethodParameters } from '@uniswap/v3-sdk';
import { default as bunyan, default as Logger } from 'bunyan';
import bunyan, { default as Logger } from 'bunyan';
import bunyanDebugStream from 'bunyan-debug-stream';
import { BigNumber, ethers } from 'ethers';
import _ from 'lodash';
Expand Down
382 changes: 210 additions & 172 deletions package-lock.json

Large diffs are not rendered by default.

21 changes: 9 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,52 +31,49 @@
"node": ">=10"
},
"dependencies": {
"@bitauth/libauth": "^1.17.1",
"@ethersproject/bignumber": "^5.1.1",
"@oclif/command": "^1.8.0",
"@oclif/errors": "^1.3.5",
"@types/async-retry": "^1.4.2",
"@types/await-timeout": "^0.3.1",
"@types/bunyan": "^1.8.6",
"@types/bunyan-blackhole": "^0.2.2",
"@types/lodash": "^4.14.168",
"@types/sinon": "^10.0.2",
"@types/stats-lite": "^2.2.0",
"@uniswap/default-token-list": "^2.0.0",
"@uniswap/router-sdk": "^1.0.5",
"@uniswap/swap-router-contracts": "1.2.0",
"@uniswap/token-lists": "^1.0.0-beta.25",
"@uniswap/v2-core": "^1.0.1",
"@uniswap/v2-periphery": "^1.1.0-beta.0",
"@uniswap/v2-sdk": "^3.0.1",
"@uniswap/v3-periphery": "^1.1.1",
"@uniswap/v3-sdk": "^3.7.0",
"async-retry": "^1.3.1",
"await-timeout": "^1.1.1",
"axios": "^0.21.1",
"bunyan": "^1.8.15",
"bunyan-blackhole": "^1.1.1",
"bunyan-debug-stream": "^2.0.0",
"cli-logger": "^0.5.40",
"dotenv": "^10.0.0",
"ethereum-types": "^3.5.0",
"ethers": "^5.1.4",
"graphql": "^15.5.0",
"graphql-request": "^3.4.0",
"lodash": "^4.17.21",
"mnemonist": "^0.38.3",
"node-cache": "^5.1.2",
"stats-lite": "^2.2.0",
"tslib": "^1.14.1"
"stats-lite": "^2.2.0"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@oclif/command": "^1.8.0",
"@oclif/errors": "^1.3.5",
"@typechain/ethers-v5": "^7.0.1",
"@types/jest": "^26.0.24",
"@types/jest-sinon": "^1.0.2",
"@types/node": "^15.0.2",
"@types/sinon": "^10.0.2",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"@uniswap/v2-core": "^1.0.1",
"@uniswap/v2-periphery": "^1.1.0-beta.0",
"@uniswap/v3-core": "^1.0.0",
"@uniswap/v3-periphery": "^1.1.1",
"dotenv": "^10.0.0",
"eslint": "^7.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-eslint-comments": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/providers/eth-gas-station-info-gas-price-provider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { default as retry } from 'async-retry';
import retry from 'async-retry';
import axios from 'axios';
import { BigNumber } from 'ethers';
import { log } from '../util/log';
Expand Down
2 changes: 1 addition & 1 deletion src/providers/uri-subgraph-provider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { default as retry } from 'async-retry';
import retry from 'async-retry';
import Timeout from 'await-timeout';
import axios from 'axios';
import { ChainId } from '../util/chains';
Expand Down
4 changes: 2 additions & 2 deletions src/providers/v2/pool-provider.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Token } from '@uniswap/sdk-core';
import { Pair } from '@uniswap/v2-sdk';
import { default as AsyncRetry, default as retry } from 'async-retry';
import retry, { Options as RetryOptions } from 'async-retry';
import { BigNumber } from 'ethers';
import _ from 'lodash';
import { IUniswapV2Pair__factory } from '../../types/v2';
Expand Down Expand Up @@ -54,7 +54,7 @@ export type V2PoolAccessor = {
getAllPools: () => Pair[];
};

export type V2PoolRetryOptions = AsyncRetry.Options;
export type V2PoolRetryOptions = RetryOptions;

export class V2PoolProvider implements IV2PoolProvider {
// Computing pool addresses is slow as it requires hashing, encoding etc.
Expand Down
2 changes: 1 addition & 1 deletion src/providers/v2/subgraph-provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Token } from '@uniswap/sdk-core';
import { default as retry } from 'async-retry';
import retry from 'async-retry';
import Timeout from 'await-timeout';
import { gql, GraphQLClient } from 'graphql-request';
import _ from 'lodash';
Expand Down
4 changes: 2 additions & 2 deletions src/providers/v3/pool-provider.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Token } from '@uniswap/sdk-core';
import { computePoolAddress, FeeAmount, Pool } from '@uniswap/v3-sdk';
import { default as AsyncRetry, default as retry } from 'async-retry';
import retry, { Options as RetryOptions } from 'async-retry';
import { BigNumber } from 'ethers';
import _ from 'lodash';
import { IUniswapV3PoolState__factory } from '../../types/v3';
Expand Down Expand Up @@ -67,7 +67,7 @@ export type V3PoolAccessor = {
getAllPools: () => Pool[];
};

export type V3PoolRetryOptions = AsyncRetry.Options;
export type V3PoolRetryOptions = RetryOptions;

export class V3PoolProvider implements IV3PoolProvider {
// Computing pool addresses is slow as it requires hashing, encoding etc.
Expand Down
4 changes: 2 additions & 2 deletions src/providers/v3/quote-provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { encodeRouteToPath } from '@uniswap/v3-sdk';
import { default as AsyncRetry, default as retry } from 'async-retry';
import retry, { Options as RetryOptions } from 'async-retry';
import { BigNumber, providers } from 'ethers';
import _ from 'lodash';
import stats from 'stats-lite';
Expand Down Expand Up @@ -68,7 +68,7 @@ export class ProviderGasError extends Error {
public name = 'ProviderGasError';
}

export type QuoteRetryOptions = AsyncRetry.Options;
export type QuoteRetryOptions = RetryOptions;

/**
* The V3 route and a list of quotes for that route.
Expand Down
2 changes: 1 addition & 1 deletion src/providers/v3/subgraph-provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Token } from '@uniswap/sdk-core';
import { default as retry } from 'async-retry';
import retry from 'async-retry';
import Timeout from 'await-timeout';
import { gql, GraphQLClient } from 'graphql-request';
import _ from 'lodash';
Expand Down
2 changes: 1 addition & 1 deletion src/routers/alpha-router/alpha-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
SqrtPriceMath,
TickMath,
} from '@uniswap/v3-sdk';
import { default as retry } from 'async-retry';
import retry from 'async-retry';
import { BigNumber, providers } from 'ethers';
import JSBI from 'jsbi';
import _ from 'lodash';
Expand Down