Skip to content

Commit

Permalink
feat(release): Publish to npm registry (#6)
Browse files Browse the repository at this point in the history
* feat(release): Publish to npm registry

* feat(release): Update contract imports
  • Loading branch information
weiyuan95 authored Sep 29, 2022
1 parent 52c601e commit 8f356f6
Show file tree
Hide file tree
Showing 36 changed files with 76 additions and 78 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
runs-on: ubuntu-latest
needs: Version
env:
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2

- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3.4.1
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'
registry-url: 'https://registry.npmjs.org/'
cache: yarn

- run: yarn install --frozen-lockfile
Expand All @@ -42,9 +42,9 @@ jobs:

- run: npm version ${{ needs.version.outputs.result }} --git-tag-version=false

- run: npm config set "//npm.pkg.github.com/:_authToken" "\${NPM_AUTH_TOKEN}" --location=project
- run: npm config set "//registry.npmjs.org/:_authToken" "\${NPM_AUTH_TOKEN}" --location=project

- run: yarn publish --tag latest --no-git-checks

- run: npm config delete "//npm.pkg.github.com/:_authToken" --location=project
- run: npm config delete "//registry.npmjs.org/:_authToken" --location=project
if: always()
3 changes: 0 additions & 3 deletions .npmrc

This file was deleted.

6 changes: 3 additions & 3 deletions contracts/NonfungiblePositionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/FixedPoint128.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/FullMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/FixedPoint128.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/FullMath.sol';

import './interfaces/INonfungiblePositionManager.sol';
import './interfaces/INonfungibleTokenPositionDescriptor.sol';
Expand Down
2 changes: 1 addition & 1 deletion contracts/NonfungibleTokenPositionDescriptor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import './libraries/external/SafeERC20Namer.sol';

import './libraries/ChainId.sol';
Expand Down
6 changes: 3 additions & 3 deletions contracts/SwapRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/libraries/SafeCast.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/SafeCast.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';

import './interfaces/ISwapRouter.sol';
import './base/PeripheryImmutableState.sol';
Expand Down
2 changes: 1 addition & 1 deletion contracts/V3Migrator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/libraries/LowGasSafeMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/LowGasSafeMath.sol';
import './interfaces/external/IUniswapV2Pair.sol';

import './interfaces/INonfungiblePositionManager.sol';
Expand Down
6 changes: 3 additions & 3 deletions contracts/base/LiquidityManagement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Factory.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Factory.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/TickMath.sol';

import '../libraries/PoolAddress.sol';
import '../libraries/CallbackValidation.sol';
Expand Down
2 changes: 1 addition & 1 deletion contracts/base/PeripheryPaymentsWithFee.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity =0.7.6;

import '@openzeppelin3.4.2/contracts/token/ERC20/IERC20.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/LowGasSafeMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/LowGasSafeMath.sol';

import './PeripheryPayments.sol';
import '../interfaces/IPeripheryPaymentsWithFee.sol';
Expand Down
4 changes: 2 additions & 2 deletions contracts/base/PoolInitializer.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Factory.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Factory.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';

import './PeripheryImmutableState.sol';
import '../interfaces/IPoolInitializer.sol';
Expand Down
4 changes: 2 additions & 2 deletions contracts/examples/PairFlash.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3FlashCallback.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/LowGasSafeMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3FlashCallback.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/LowGasSafeMath.sol';

import '../base/PeripheryPayments.sol';
import '../base/PeripheryImmutableState.sol';
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ISwapRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';

/// @title Router token swapping functionality
/// @notice Functions for swapping tokens via Uniswap V3
Expand Down
8 changes: 4 additions & 4 deletions contracts/lens/Quoter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/libraries/SafeCast.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/SafeCast.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';

import '../interfaces/IQuoter.sol';
import '../base/PeripheryImmutableState.sol';
Expand Down
10 changes: 5 additions & 5 deletions contracts/lens/QuoterV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/libraries/SafeCast.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/TickBitmap.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/SafeCast.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/TickBitmap.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';

import '../interfaces/IQuoterV2.sol';
import '../base/PeripheryImmutableState.sol';
Expand Down
2 changes: 1 addition & 1 deletion contracts/lens/TickLens.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';

import '../interfaces/ITickLens.sol';

Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/CallbackValidation.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import './PoolAddress.sol';

/// @notice Provides validation for callbacks from Uniswap V3 Pools
Expand Down
4 changes: 2 additions & 2 deletions contracts/libraries/LiquidityAmounts.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;

import '@birthdayresearch/uniswap-v3-core/contracts/libraries/FullMath.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/FixedPoint96.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/FullMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/FixedPoint96.sol';

/// @title Liquidity amount functions
/// @notice Provides functions for computing liquidity amounts from token amounts and prices
Expand Down
8 changes: 4 additions & 4 deletions contracts/libraries/NFTDescriptor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/BitMath.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/FullMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/BitMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/FullMath.sol';
import '@openzeppelin3.4.2/contracts/utils/Strings.sol';
import '@openzeppelin3.4.2/contracts/math/SafeMath.sol';
import '@openzeppelin3.4.2/contracts/math/SignedSafeMath.sol';
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/NFTSVG.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity >=0.7.6;

import '@openzeppelin3.4.2/contracts/utils/Strings.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/BitMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/BitMath.sol';
import 'base64-sol/base64.sol';

/// @title NFTSVG
Expand Down
6 changes: 3 additions & 3 deletions contracts/libraries/OracleLibrary.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;

import '@birthdayresearch/uniswap-v3-core/contracts/libraries/FullMath.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/FullMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';

/// @title Oracle library
/// @notice Provides functions to integrate with V3 pool oracle
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/PoolAddress.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;

import { UniswapV3Pool } from '@birthdayresearch/uniswap-v3-core/contracts/UniswapV3Pool.sol';
import { UniswapV3Pool } from '@birthdayresearchforks/uniswap-v3-core/contracts/UniswapV3Pool.sol';

/// @title Provides functions for deriving a pool address from the factory, tokens, and the fee
library PoolAddress {
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/PoolTicksCounter.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';

library PoolTicksCounter {
/// @dev This function counts the number of initialized ticks that would incur a gas cost between tickBefore and tickAfter.
Expand Down
8 changes: 4 additions & 4 deletions contracts/libraries/PositionValue.sol
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/FixedPoint128.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/Tick.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/FixedPoint128.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/TickMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/Tick.sol';
import '../interfaces/INonfungiblePositionManager.sol';
import './LiquidityAmounts.sol';
import './PoolAddress.sol';
Expand Down
8 changes: 4 additions & 4 deletions contracts/libraries/SqrtPriceMathPartial.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;

import '@birthdayresearch/uniswap-v3-core/contracts/libraries/FullMath.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/UnsafeMath.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/FixedPoint96.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/FullMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/UnsafeMath.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/FixedPoint96.sol';

/// @title Functions based on Q64.96 sqrt price and liquidity
/// @notice Exposes two functions from @birthdayresearch/uniswap-v3-core SqrtPriceMath
/// @notice Exposes two functions from @birthdayresearchforks/uniswap-v3-core SqrtPriceMath
/// that use square root of price as a Q64.96 and liquidity to compute deltas
library SqrtPriceMathPartial {
/// @notice Gets the amount0 delta between two prices
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/MockObservations.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.7.6;

import '@birthdayresearch/uniswap-v3-core/contracts/libraries/Oracle.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/Oracle.sol';

contract MockObservations {
Oracle.Observation[4] internal oracleObservations;
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/PoolAddressTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity =0.7.6;

import '../libraries/PoolAddress.sol';
import { UniswapV3Pool } from '@birthdayresearch/uniswap-v3-core/contracts/UniswapV3Pool.sol';
import { UniswapV3Pool } from '@birthdayresearchforks/uniswap-v3-core/contracts/UniswapV3Pool.sol';

contract PoolAddressTest {
function POOL_INIT_CODE_HASH() external pure returns (bytes32) {
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/PoolTicksCounterTest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';

pragma solidity =0.7.6;

Expand Down
6 changes: 3 additions & 3 deletions contracts/test/TestUniswapV3Callee.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.7.6;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/libraries/SafeCast.sol';
import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/libraries/SafeCast.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@openzeppelin3.4.2/contracts/token/ERC20/IERC20.sol';

contract TestUniswapV3Callee is IUniswapV3SwapCallback {
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TickLensTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity =0.7.6;
pragma abicoder v2;

import '@birthdayresearch/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@birthdayresearchforks/uniswap-v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '../lens/TickLens.sol';

/// @title Tick Lens contract
Expand Down
11 changes: 6 additions & 5 deletions format-repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {resolve, join} from 'path'

const SOLIDITY_COMPILER_VERSION = "=0.7.6"
const OPEN_ZEP_PACKAGE = '@openzeppelin3.4.2'
const V3_CORE_PACKAGE = '@birthdayresearch/uniswap-v3-core'
const V3_CORE_PACKAGE = '@birthdayresearchforks/uniswap-v3-core'
const V3_CORE_PACKAGE_TO_REPLACE = '@birthdayresearch/uniswap-v3-core'
// Where to start walking from
const START_PATH = resolve('./')
// Directories to ignore. This is a naive search, similar to a **directory** glob
Expand Down Expand Up @@ -57,8 +58,8 @@ function handleSolidityFile(filePath: string) {
changeMade = true
}

if (line.includes('@birthdaycloud/uniswap-v3-core')) {
fileLinesCopy[i] = line.replace('@birthdaycloud/uniswap-v3-core', V3_CORE_PACKAGE)
if (line.includes(V3_CORE_PACKAGE_TO_REPLACE)) {
fileLinesCopy[i] = line.replace(V3_CORE_PACKAGE_TO_REPLACE, V3_CORE_PACKAGE)
changeMade = true
}

Expand Down Expand Up @@ -92,8 +93,8 @@ function handleTSFile(filePath: string) {
// Longer imports are formatted, and the line which includes the package looks like
// } from '@some-package-name'
if (line.startsWith('import') || line.startsWith('}')) {
if (line.includes('@birthdaycloud/uniswap-v3-core')) {
fileLinesCopy[i] = line.replace('@birthdaycloud/uniswap-v3-core', V3_CORE_PACKAGE)
if (line.includes(V3_CORE_PACKAGE_TO_REPLACE)) {
fileLinesCopy[i] = line.replace(V3_CORE_PACKAGE_TO_REPLACE, V3_CORE_PACKAGE)
changeMade = true
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@birthdayresearch/uniswap-v3-periphery",
"name": "@birthdayresearchforks/uniswap-v3-periphery",
"description": "BirthdayResearch fork of peripheral smart contracts for interacting with Uniswap V3",
"license": "GPL-2.0-or-later",
"publishConfig": {
Expand All @@ -22,7 +22,7 @@
},
"dependencies": {
"@openzeppelin3.4.2/contracts": "npm:@openzeppelin/[email protected]",
"@birthdayresearch/uniswap-v3-core": "0.3.2",
"@birthdayresearchforks/uniswap-v3-core": "0.4.1",
"base64-sol": "1.0.1",
"@uniswap/v2-core": "1.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion test/NonfungiblePositionManager.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { abi as IUniswapV3PoolABI } from '@birthdayresearch/uniswap-v3-core/artifacts/contracts/interfaces/IUniswapV3Pool.sol/IUniswapV3Pool.json'
import { abi as IUniswapV3PoolABI } from '@birthdayresearchforks/uniswap-v3-core/artifacts/contracts/interfaces/IUniswapV3Pool.sol/IUniswapV3Pool.json'
import { Fixture } from 'ethereum-waffle'
import { BigNumberish, constants, Wallet } from 'ethers'
import { ethers, waffle } from 'hardhat'
Expand Down
2 changes: 1 addition & 1 deletion test/PositionValue.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import completeFixture from './shared/completeFixture'

import { expect } from './shared/expect'

import { abi as IUniswapV3PoolABI } from '@birthdayresearch/uniswap-v3-core/artifacts/contracts/interfaces/IUniswapV3Pool.sol/IUniswapV3Pool.json'
import { abi as IUniswapV3PoolABI } from '@birthdayresearchforks/uniswap-v3-core/artifacts/contracts/interfaces/IUniswapV3Pool.sol/IUniswapV3Pool.json'

describe('PositionValue', async () => {
const [...wallets] = waffle.provider.getWallets()
Expand Down
2 changes: 1 addition & 1 deletion test/shared/computePoolAddress.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { bytecode } from '@birthdayresearch/uniswap-v3-core/artifacts/contracts/UniswapV3Pool.sol/UniswapV3Pool.json'
import { bytecode } from '@birthdayresearchforks/uniswap-v3-core/artifacts/contracts/UniswapV3Pool.sol/UniswapV3Pool.json'
import { utils } from 'ethers'

export const POOL_BYTECODE_HASH = utils.keccak256(bytecode)
Expand Down
Loading

0 comments on commit 8f356f6

Please sign in to comment.