From 99d27e41a51d4af9a8cf6f7e5dee3ce7d5fdcb7a Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:42:35 -0800 Subject: [PATCH] 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: Lint Action --- package.json | 4 ++-- src/entities/pair.test.ts | 5 ++--- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 8c228c94d..d0c54a776 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@uniswap/v2-sdk", "license": "MIT", - "version": "4.2.1", + "version": "4.3.0", "description": "🛠 An SDK for building applications on top of Uniswap V2", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -24,7 +24,7 @@ "dependencies": { "@ethersproject/address": "^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-warning": "^1.0.3" }, diff --git a/src/entities/pair.test.ts b/src/entities/pair.test.ts index 45a41096d..56f3a9a22 100644 --- a/src/entities/pair.test.ts +++ b/src/entities/pair.test.ts @@ -1,6 +1,5 @@ import { BigNumber } from '@ethersproject/bignumber' -import { ChainId, CurrencyAmount, Price, Token, WETH9 } from '@uniswap/sdk-core' -import { FACTORY_ADDRESS } from '../constants' +import { ChainId, CurrencyAmount, Price, Token, V2_FACTORY_ADDRESSES, WETH9 } from '@uniswap/sdk-core' import { InsufficientInputAmountError } from '../errors' import { computePairAddress, Pair } from './pair' @@ -62,7 +61,7 @@ describe('Pair', () => { it('returns the default address for a testnet not in the map', () => { expect(Pair.getAddress(USDC_SEPOLIA, DAI_SEPOLIA)).toEqual( computePairAddress({ - factoryAddress: FACTORY_ADDRESS, + factoryAddress: V2_FACTORY_ADDRESSES[ChainId.SEPOLIA], tokenA: USDC_SEPOLIA, tokenB: DAI_SEPOLIA }) diff --git a/yarn.lock b/yarn.lock index bbede29f4..0d1ed4993 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1706,10 +1706,10 @@ semver "^7.3.2" tsutils "^3.17.1" -"@uniswap/sdk-core@^4.1.3": - version "4.1.3" - resolved "https://registry.yarnpkg.com/@uniswap/sdk-core/-/sdk-core-4.1.3.tgz#5db8c527eee89ac2467fa327bd42f0f17aee76ac" - integrity sha512-dbXX4Ivam5D90gwiT0MWgHSiKdl99rC0GiPcK8Pd+iFp2myypPX9ovTR3IncI3Y83mZrlBLX9XC1Q6kA/12hOg== +"@uniswap/sdk-core@^4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@uniswap/sdk-core/-/sdk-core-4.2.0.tgz#9930f133baec9c1118d891ebf8fcba7f7efc153d" + integrity sha512-yXAMLHZRYYuh6KpN2nOlLTYBjGiopmI9WUB4Z0tyNkW4ZZub54cUt22eibpGbZAhRAMxclox9IPIs6wwrM3soQ== dependencies: "@ethersproject/address" "^5.0.2" big.js "^5.2.2"