Commit 99d27e41 authored by jsy1218's avatar jsy1218 Committed by GitHub

chore: bump to v4.3.0 (#164)

* bump v2-sdk to v4.3.0

* Fix code style issues with Prettier

* v4.3.0

---------
Co-authored-by: default avatarLint Action <lint-action@samuelmeuli.com>
parent e17a80af
{ {
"name": "@uniswap/v2-sdk", "name": "@uniswap/v2-sdk",
"license": "MIT", "license": "MIT",
"version": "4.2.1", "version": "4.3.0",
"description": "🛠 An SDK for building applications on top of Uniswap V2", "description": "🛠 An SDK for building applications on top of Uniswap V2",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"dependencies": { "dependencies": {
"@ethersproject/address": "^5.0.0", "@ethersproject/address": "^5.0.0",
"@ethersproject/solidity": "^5.0.0", "@ethersproject/solidity": "^5.0.0",
"@uniswap/sdk-core": "^4.1.3", "@uniswap/sdk-core": "^4.2.0",
"tiny-invariant": "^1.1.0", "tiny-invariant": "^1.1.0",
"tiny-warning": "^1.0.3" "tiny-warning": "^1.0.3"
}, },
......
import { BigNumber } from '@ethersproject/bignumber' import { BigNumber } from '@ethersproject/bignumber'
import { ChainId, CurrencyAmount, Price, Token, WETH9 } from '@uniswap/sdk-core' import { ChainId, CurrencyAmount, Price, Token, V2_FACTORY_ADDRESSES, WETH9 } from '@uniswap/sdk-core'
import { FACTORY_ADDRESS } from '../constants'
import { InsufficientInputAmountError } from '../errors' import { InsufficientInputAmountError } from '../errors'
import { computePairAddress, Pair } from './pair' import { computePairAddress, Pair } from './pair'
...@@ -62,7 +61,7 @@ describe('Pair', () => { ...@@ -62,7 +61,7 @@ describe('Pair', () => {
it('returns the default address for a testnet not in the map', () => { it('returns the default address for a testnet not in the map', () => {
expect(Pair.getAddress(USDC_SEPOLIA, DAI_SEPOLIA)).toEqual( expect(Pair.getAddress(USDC_SEPOLIA, DAI_SEPOLIA)).toEqual(
computePairAddress({ computePairAddress({
factoryAddress: FACTORY_ADDRESS, factoryAddress: V2_FACTORY_ADDRESSES[ChainId.SEPOLIA],
tokenA: USDC_SEPOLIA, tokenA: USDC_SEPOLIA,
tokenB: DAI_SEPOLIA tokenB: DAI_SEPOLIA
}) })
......
...@@ -1706,10 +1706,10 @@ ...@@ -1706,10 +1706,10 @@
semver "^7.3.2" semver "^7.3.2"
tsutils "^3.17.1" tsutils "^3.17.1"
"@uniswap/sdk-core@^4.1.3": "@uniswap/sdk-core@^4.2.0":
version "4.1.3" version "4.2.0"
resolved "https://registry.yarnpkg.com/@uniswap/sdk-core/-/sdk-core-4.1.3.tgz#5db8c527eee89ac2467fa327bd42f0f17aee76ac" resolved "https://registry.yarnpkg.com/@uniswap/sdk-core/-/sdk-core-4.2.0.tgz#9930f133baec9c1118d891ebf8fcba7f7efc153d"
integrity sha512-dbXX4Ivam5D90gwiT0MWgHSiKdl99rC0GiPcK8Pd+iFp2myypPX9ovTR3IncI3Y83mZrlBLX9XC1Q6kA/12hOg== integrity sha512-yXAMLHZRYYuh6KpN2nOlLTYBjGiopmI9WUB4Z0tyNkW4ZZub54cUt22eibpGbZAhRAMxclox9IPIs6wwrM3soQ==
dependencies: dependencies:
"@ethersproject/address" "^5.0.2" "@ethersproject/address" "^5.0.2"
big.js "^5.2.2" big.js "^5.2.2"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment