diff --git a/package.json b/package.json index 29722f81..a26c96cb 100644 --- a/package.json +++ b/package.json @@ -27,13 +27,13 @@ "@ethersproject/abi": "^5.0.12", "@ethersproject/solidity": "^5.0.9", "@uniswap/sdk-core": "^1.0.9", - "@uniswap/v3-periphery": "^1.0.0-beta.19", + "@uniswap/v3-periphery": "^1.0.0-beta.21", "tiny-invariant": "^1.1.0", "tiny-warning": "^1.0.3" }, "devDependencies": { "@types/jest": "^24.0.25", - "@uniswap/v3-core": "^1.0.0-rc.1", + "@uniswap/v3-core": "^1.0.0-rc.2", "tsdx": "^0.14.1" }, "engines": { diff --git a/src/constants.ts b/src/constants.ts index 00d059bb..d87170ce 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -7,7 +7,7 @@ export const SWAP_ROUTER_ADDRESS = '0x1F98431c8aD98523631AE4a59f267346ea31F984' // todo: replace with v3 nft position manager export const NONFUNGIBLE_POSITION_MANAGER_ADDRESS = '0x1F98431c8aD98523631AE4a59f267346ea31F984' -export const POOL_INIT_CODE_HASH = '0xa8180af292c6986c74fa300a542e049db8a89221e2452e431c3d8103b610c568' +export const POOL_INIT_CODE_HASH = '0xc02f72e8ae5e68802e6d893d58ddfb0df89a2f4c9c2f04927db1186a29373660' /** * The default factory enabled fee amounts, denominated in hundredths of bips. diff --git a/src/entities/pool.test.ts b/src/entities/pool.test.ts index fb4a89df..8f95c58a 100644 --- a/src/entities/pool.test.ts +++ b/src/entities/pool.test.ts @@ -71,7 +71,7 @@ describe('Pool', () => { describe('#getAddress', () => { it('matches an example', () => { const result = Pool.getAddress(USDC, DAI, FeeAmount.LOW) - expect(result).toEqual('0xE2E0399F5Fa02d7a3B6A9566539C14C799FAf413') + expect(result).toEqual('0x760E81283C2eb407D3307D5cAd5B5Ee8972CB84a') }) }) diff --git a/src/utils/computePoolAddress.test.ts b/src/utils/computePoolAddress.test.ts index f3dcb189..8547960d 100644 --- a/src/utils/computePoolAddress.test.ts +++ b/src/utils/computePoolAddress.test.ts @@ -14,7 +14,7 @@ describe('#computePoolAddress', () => { tokenB }) - expect(result).toEqual('0x5a0AABBB6A52d525305553659f70D5Cb2423ffeF') + expect(result).toEqual('0x1F6c3461c8fCE2312463f5BF56b2630A991CA747') }) it('should correctly compute the pool address', () => { diff --git a/yarn.lock b/yarn.lock index 0d183d6f..850dbf1e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1547,20 +1547,20 @@ resolved "https://registry.yarnpkg.com/@uniswap/v2-core/-/v2-core-1.0.1.tgz#af8f508bf183204779938969e2e54043e147d425" integrity sha512-MtybtkUPSyysqLY2U210NBDeCHX+ltHt3oADGdjqoThZaFRDKwM6k1Nb3F0A3hk5hwuQvytFWhrWHOEq6nVJ8Q== -"@uniswap/v3-core@1.0.0-rc.1", "@uniswap/v3-core@^1.0.0-rc.1": - version "1.0.0-rc.1" - resolved "https://registry.yarnpkg.com/@uniswap/v3-core/-/v3-core-1.0.0-rc.1.tgz#f2bbc483451364a951fba06eb2d978c6e8bdd58f" - integrity sha512-4ET2H0a8p7nVBGFWfio9SHc+RA6UIXEvlTRIJNsDwjQvfs8Jq9lfJ+eSOUTGmiB8Vp8V5dWarLDBU/rDE159pQ== +"@uniswap/v3-core@1.0.0-rc.2", "@uniswap/v3-core@^1.0.0-rc.2": + version "1.0.0-rc.2" + resolved "https://registry.yarnpkg.com/@uniswap/v3-core/-/v3-core-1.0.0-rc.2.tgz#a1afb3253a7295bec6165ad1d960121e6851a576" + integrity sha512-vsqkqAHPCKsVi0nWwWeX+mHnSTJ8ZUdu1zAVXB9Mj9A+aeBQGV9foRKs9ufDGJq7S1nqmz+7FdjSOcVoeiUqgQ== -"@uniswap/v3-periphery@^1.0.0-beta.19": - version "1.0.0-beta.19" - resolved "https://registry.yarnpkg.com/@uniswap/v3-periphery/-/v3-periphery-1.0.0-beta.19.tgz#d9af90b12657049674cd2f26ae1c61b6cc393261" - integrity sha512-ZQX5KN/89OB7UjrmGOSB7QZIEbgW+R0uaVM5NdlK63Ji0rZjmddeoYS8oNk7i5BU3WR+xJY5DgfiDSmn1W6Sww== +"@uniswap/v3-periphery@^1.0.0-beta.21": + version "1.0.0-beta.21" + resolved "https://registry.yarnpkg.com/@uniswap/v3-periphery/-/v3-periphery-1.0.0-beta.21.tgz#0b8510bebca4b74aabdca72c5545bd5bec5128cd" + integrity sha512-o4U+lyH6qtlG2RTy3H/mtUGJuflkmVJ0pnXyrThZKC1KV/avlVgf4hmlG2PvOCV0yfwGMjQARKQ4jv6OpLFVqA== dependencies: "@openzeppelin/contracts" "3.4.1-solc-0.7-2" "@uniswap/lib" "^4.0.1-alpha" "@uniswap/v2-core" "1.0.1" - "@uniswap/v3-core" "1.0.0-rc.1" + "@uniswap/v3-core" "1.0.0-rc.2" abab@^2.0.0: version "2.0.5"