From 646c1fd9569dd8dfbce01e2599b4e0d6717a6faf Mon Sep 17 00:00:00 2001 From: Kyle Scott Date: Thu, 12 Oct 2023 10:49:23 -0400 Subject: [PATCH] release --- .changeset/clean-news-hunt.md | 6 ++++++ .changeset/pre.json | 6 +----- .github/workflows/release.yml | 1 + packages/panoptic-sdk/package.json | 2 +- packages/panoptic-sdk/src/_test/utils.ts | 6 +++--- packages/panoptic-sdk/src/chains/sepolia.ts | 2 +- packages/panoptic-sdk/src/publicActions/getPanopticPool.ts | 2 +- .../panoptic-sdk/src/publicActions/getPanopticPoolData.ts | 2 +- .../src/publicActions/getPanopticPositionData.test.ts | 2 +- .../getPanopticSemiFungiblePositionData.test.ts | 2 +- .../publicActions/getPanopticSemiFungiblePositionData.ts | 2 +- .../src/publicActions/getPanoptionLegData.test.ts | 2 +- .../panoptic-sdk/src/publicActions/getPanoptionLegData.ts | 5 ++++- .../src/publicActions/simulatePanopticBurnOptions.test.ts | 2 +- .../src/publicActions/simulatePanopticDeployNewPool.test.ts | 6 +++--- .../src/publicActions/simulatePanopticDeployNewPool.ts | 2 +- .../src/publicActions/simulatePanopticMintOptions.test.ts | 2 +- .../src/publicActions/simulatePanopticRollOptions.test.ts | 2 +- .../simulatePanopticSFPMBurnTokenizedPosition.test.ts | 2 +- .../simulatePanopticSFPMBurnTokenizedPosition.ts | 2 +- .../publicActions/simulatePanopticSFPMInitializeAMMPool.ts | 2 +- .../simulatePanopticSFPMMintTokenizedPosition.test.ts | 2 +- .../simulatePanopticSFPMMintTokenizedPosition.ts | 2 +- .../simulatePanopticSFPMRollTokenizedPositions.test.ts | 2 +- .../simulatePanopticSFPMRollTokenizedPositions.ts | 2 +- packages/panoptic-sdk/src/types/PanopticFactory.ts | 2 +- packages/panoptic-sdk/src/types/PanopticPool.ts | 5 ++++- packages/panoptic-sdk/src/types/PanopticPosition.ts | 2 +- .../src/types/PanopticSemiFungiblePositionManager.ts | 2 +- packages/panoptic-sdk/src/utils/calculatePanopticTokenID.ts | 2 +- packages/panoptic-sdk/src/utils/createPanopticCollateral.ts | 2 +- packages/panoptic-sdk/src/utils/createPanopticPool.ts | 2 +- .../src/utils/createPanopticSemiFungiblePosition.ts | 2 +- packages/uniswap-v3-sdk/package.json | 2 +- packages/uniswap-v3-sdk/tsup.config.ts | 2 +- pnpm-lock.yaml | 6 +++--- 36 files changed, 53 insertions(+), 44 deletions(-) create mode 100644 .changeset/clean-news-hunt.md diff --git a/.changeset/clean-news-hunt.md b/.changeset/clean-news-hunt.md new file mode 100644 index 0000000..11911ab --- /dev/null +++ b/.changeset/clean-news-hunt.md @@ -0,0 +1,6 @@ +--- +"@panoptic-xyz/uniswap-v3-sdk": patch +"@panoptic-xyz/sdk": patch +--- + +Fix resolution diff --git a/.changeset/pre.json b/.changeset/pre.json index e82ad9a..715a368 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -3,12 +3,8 @@ "tag": "alpha", "initialVersions": { "reverse-mirage-next-example": "0.1.3", - "panoptic-sdk": "1.0.0", - "uniswap-v3-sdk": "1.0.0", "@panoptic-xyz/sdk": "0.0.0", "@panoptic-xyz/uniswap-v3-sdk": "0.0.0" }, - "changesets": [ - "lucky-vans-behave" - ] + "changesets": ["lucky-vans-behave"] } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6721dd2..3ee0a0c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,7 @@ jobs: uses: foundry-rs/foundry-toolchain@v1 with: version: nightly + - run: forge install - run: pnpm install - run: pnpm wagmi generate - run: pnpm build diff --git a/packages/panoptic-sdk/package.json b/packages/panoptic-sdk/package.json index e4d2450..d03592a 100644 --- a/packages/panoptic-sdk/package.json +++ b/packages/panoptic-sdk/package.json @@ -61,6 +61,6 @@ "dependencies": { "reverse-mirage": "1.0.2", "tiny-invariant": "^1.3.1", - "uniswap-v3-sdk": "workspace:*" + "@panoptic-xyz/uniswap-v3-sdk": "workspace:*" } } diff --git a/packages/panoptic-sdk/src/_test/utils.ts b/packages/panoptic-sdk/src/_test/utils.ts index d97ff15..fa92396 100644 --- a/packages/panoptic-sdk/src/_test/utils.ts +++ b/packages/panoptic-sdk/src/_test/utils.ts @@ -1,10 +1,10 @@ -import { createERC20, createFraction } from "reverse-mirage"; -import invariant from "tiny-invariant"; import { createUniswapV3Pool, uniswapV3FactoryABI, uniswapV3PoolABI, -} from "uniswap-v3-sdk"; +} from "@panoptic-xyz/uniswap-v3-sdk"; +import { createERC20, createFraction } from "reverse-mirage"; +import invariant from "tiny-invariant"; import { http, type Hex, diff --git a/packages/panoptic-sdk/src/chains/sepolia.ts b/packages/panoptic-sdk/src/chains/sepolia.ts index cc5c5aa..a42bd84 100644 --- a/packages/panoptic-sdk/src/chains/sepolia.ts +++ b/packages/panoptic-sdk/src/chains/sepolia.ts @@ -1,5 +1,5 @@ +import { sepoliaUniswapV3 } from "@panoptic-xyz/uniswap-v3-sdk"; import { sepoliaTokens } from "reverse-mirage"; -import { sepoliaUniswapV3 } from "uniswap-v3-sdk"; import type { PanopticFactory } from "../types/PanopticFactory.js"; export const sepoliaPanoptic = { diff --git a/packages/panoptic-sdk/src/publicActions/getPanopticPool.ts b/packages/panoptic-sdk/src/publicActions/getPanopticPool.ts index 1c3b567..675a1f2 100644 --- a/packages/panoptic-sdk/src/publicActions/getPanopticPool.ts +++ b/packages/panoptic-sdk/src/publicActions/getPanopticPool.ts @@ -1,4 +1,4 @@ -import { type UniswapV3Pool } from "uniswap-v3-sdk"; +import { type UniswapV3Pool } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Address, Chain, diff --git a/packages/panoptic-sdk/src/publicActions/getPanopticPoolData.ts b/packages/panoptic-sdk/src/publicActions/getPanopticPoolData.ts index 386e669..0e878d8 100644 --- a/packages/panoptic-sdk/src/publicActions/getPanopticPoolData.ts +++ b/packages/panoptic-sdk/src/publicActions/getPanopticPoolData.ts @@ -1,4 +1,4 @@ -import { getUniswapV3PoolData } from "uniswap-v3-sdk"; +import { getUniswapV3PoolData } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Chain, Client, ReadContractParameters, Transport } from "viem"; import { collateralTrackerABI } from "../generated.js"; import type { PanopticPool, PanopticPoolData } from "../types/PanopticPool.js"; diff --git a/packages/panoptic-sdk/src/publicActions/getPanopticPositionData.test.ts b/packages/panoptic-sdk/src/publicActions/getPanopticPositionData.test.ts index 7070bd7..2ecf928 100644 --- a/packages/panoptic-sdk/src/publicActions/getPanopticPositionData.test.ts +++ b/packages/panoptic-sdk/src/publicActions/getPanopticPositionData.test.ts @@ -1,5 +1,5 @@ +import { createUniswapV3Tick } from "@panoptic-xyz/uniswap-v3-sdk"; import { createAmountFromString } from "reverse-mirage"; -import { createUniswapV3Tick } from "uniswap-v3-sdk"; import { type Hex } from "viem"; import { simulateContract, writeContract } from "viem/actions"; import { beforeEach, expect, test } from "vitest"; diff --git a/packages/panoptic-sdk/src/publicActions/getPanopticSemiFungiblePositionData.test.ts b/packages/panoptic-sdk/src/publicActions/getPanopticSemiFungiblePositionData.test.ts index 104bb6e..5656f49 100644 --- a/packages/panoptic-sdk/src/publicActions/getPanopticSemiFungiblePositionData.test.ts +++ b/packages/panoptic-sdk/src/publicActions/getPanopticSemiFungiblePositionData.test.ts @@ -1,4 +1,4 @@ -import { createUniswapV3Tick } from "uniswap-v3-sdk"; +import { createUniswapV3Tick } from "@panoptic-xyz/uniswap-v3-sdk"; import { type Hex } from "viem"; import { simulateContract, writeContract } from "viem/actions"; import { sepolia } from "viem/chains"; diff --git a/packages/panoptic-sdk/src/publicActions/getPanopticSemiFungiblePositionData.ts b/packages/panoptic-sdk/src/publicActions/getPanopticSemiFungiblePositionData.ts index 375f526..5cd2e2c 100644 --- a/packages/panoptic-sdk/src/publicActions/getPanopticSemiFungiblePositionData.ts +++ b/packages/panoptic-sdk/src/publicActions/getPanopticSemiFungiblePositionData.ts @@ -1,4 +1,4 @@ -import type { UniswapV3Tick } from "uniswap-v3-sdk"; +import type { UniswapV3Tick } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Chain, Client, ReadContractParameters, Transport } from "viem"; import { readContract } from "viem/actions"; import { diff --git a/packages/panoptic-sdk/src/publicActions/getPanoptionLegData.test.ts b/packages/panoptic-sdk/src/publicActions/getPanoptionLegData.test.ts index 597b944..a5dd1bd 100644 --- a/packages/panoptic-sdk/src/publicActions/getPanoptionLegData.test.ts +++ b/packages/panoptic-sdk/src/publicActions/getPanoptionLegData.test.ts @@ -1,4 +1,4 @@ -import { createUniswapV3Tick } from "uniswap-v3-sdk"; +import { createUniswapV3Tick } from "@panoptic-xyz/uniswap-v3-sdk"; import { type Hex } from "viem"; import { simulateContract, writeContract } from "viem/actions"; import { sepolia } from "viem/chains"; diff --git a/packages/panoptic-sdk/src/publicActions/getPanoptionLegData.ts b/packages/panoptic-sdk/src/publicActions/getPanoptionLegData.ts index e2cd682..bce33f5 100644 --- a/packages/panoptic-sdk/src/publicActions/getPanoptionLegData.ts +++ b/packages/panoptic-sdk/src/publicActions/getPanoptionLegData.ts @@ -1,4 +1,7 @@ -import type { UniswapV3Pool, UniswapV3Tick } from "uniswap-v3-sdk"; +import type { + UniswapV3Pool, + UniswapV3Tick, +} from "@panoptic-xyz/uniswap-v3-sdk"; import type { Address, Chain, diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticBurnOptions.test.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticBurnOptions.test.ts index d4cf0ca..eac8650 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticBurnOptions.test.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticBurnOptions.test.ts @@ -1,5 +1,5 @@ +import { createUniswapV3Tick } from "@panoptic-xyz/uniswap-v3-sdk"; import { createAmountFromString } from "reverse-mirage"; -import { createUniswapV3Tick } from "uniswap-v3-sdk"; import { type Hex } from "viem"; import { simulateContract, writeContract } from "viem/actions"; import { beforeEach, test } from "vitest"; diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticDeployNewPool.test.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticDeployNewPool.test.ts index 0715e8f..3dee514 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticDeployNewPool.test.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticDeployNewPool.test.ts @@ -1,11 +1,11 @@ -import { createERC20 } from "reverse-mirage"; -import invariant from "tiny-invariant"; import { type UniswapV3Pool, createUniswapV3Pool, uniswapV3FactoryABI, uniswapV3PoolABI, -} from "uniswap-v3-sdk"; +} from "@panoptic-xyz/uniswap-v3-sdk"; +import { createERC20 } from "reverse-mirage"; +import invariant from "tiny-invariant"; import { type Hex } from "viem"; import { sepolia } from "viem/chains"; import { beforeEach, expect, test } from "vitest"; diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticDeployNewPool.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticDeployNewPool.ts index 244bb5a..ec3cf7f 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticDeployNewPool.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticDeployNewPool.ts @@ -1,4 +1,4 @@ -import type { UniswapV3Pool } from "uniswap-v3-sdk"; +import type { UniswapV3Pool } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Chain, Client, diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticMintOptions.test.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticMintOptions.test.ts index 6afffe7..70059eb 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticMintOptions.test.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticMintOptions.test.ts @@ -1,5 +1,5 @@ +import { createUniswapV3Tick } from "@panoptic-xyz/uniswap-v3-sdk"; import { createAmountFromString } from "reverse-mirage"; -import { createUniswapV3Tick } from "uniswap-v3-sdk"; import { type Hex } from "viem"; import { simulateContract, writeContract } from "viem/actions"; import { beforeEach, test } from "vitest"; diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticRollOptions.test.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticRollOptions.test.ts index a977261..535ee35 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticRollOptions.test.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticRollOptions.test.ts @@ -1,5 +1,5 @@ +import { createUniswapV3Tick } from "@panoptic-xyz/uniswap-v3-sdk"; import { createAmountFromString } from "reverse-mirage"; -import { createUniswapV3Tick } from "uniswap-v3-sdk"; import { type Hex } from "viem"; import { simulateContract, writeContract } from "viem/actions"; import { beforeEach, test } from "vitest"; diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMBurnTokenizedPosition.test.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMBurnTokenizedPosition.test.ts index b82904c..d400bf7 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMBurnTokenizedPosition.test.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMBurnTokenizedPosition.test.ts @@ -1,5 +1,5 @@ +import { createUniswapV3Tick } from "@panoptic-xyz/uniswap-v3-sdk"; import { getERC1155BalanceOf } from "reverse-mirage"; -import { createUniswapV3Tick } from "uniswap-v3-sdk"; import { type Hex } from "viem"; import { simulateContract, writeContract } from "viem/actions"; import { sepolia } from "viem/chains"; diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMBurnTokenizedPosition.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMBurnTokenizedPosition.ts index 02acb0f..4c54d9a 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMBurnTokenizedPosition.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMBurnTokenizedPosition.ts @@ -1,4 +1,4 @@ -import { MAX_TICK, MIN_TICK } from "uniswap-v3-sdk"; +import { MAX_TICK, MIN_TICK } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Chain, Client, diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMInitializeAMMPool.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMInitializeAMMPool.ts index e1879be..0037587 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMInitializeAMMPool.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMInitializeAMMPool.ts @@ -1,4 +1,4 @@ -import type { UniswapV3Pool } from "uniswap-v3-sdk"; +import type { UniswapV3Pool } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Chain, Client, diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMMintTokenizedPosition.test.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMMintTokenizedPosition.test.ts index 943dc60..8561d1a 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMMintTokenizedPosition.test.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMMintTokenizedPosition.test.ts @@ -1,5 +1,5 @@ +import { createUniswapV3Tick } from "@panoptic-xyz/uniswap-v3-sdk"; import { getERC1155BalanceOf } from "reverse-mirage"; -import { createUniswapV3Tick } from "uniswap-v3-sdk"; import { type Hex } from "viem"; import { simulateContract, writeContract } from "viem/actions"; import { sepolia } from "viem/chains"; diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMMintTokenizedPosition.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMMintTokenizedPosition.ts index 36e6e6e..6d5ff67 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMMintTokenizedPosition.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMMintTokenizedPosition.ts @@ -1,4 +1,4 @@ -import { MAX_TICK, MIN_TICK } from "uniswap-v3-sdk"; +import { MAX_TICK, MIN_TICK } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Chain, Client, diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMRollTokenizedPositions.test.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMRollTokenizedPositions.test.ts index 3164419..59e7a8a 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMRollTokenizedPositions.test.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMRollTokenizedPositions.test.ts @@ -1,5 +1,5 @@ +import { createUniswapV3Tick } from "@panoptic-xyz/uniswap-v3-sdk"; import { getERC1155BalanceOf } from "reverse-mirage"; -import { createUniswapV3Tick } from "uniswap-v3-sdk"; import { type Hex } from "viem"; import { simulateContract, writeContract } from "viem/actions"; import { sepolia } from "viem/chains"; diff --git a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMRollTokenizedPositions.ts b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMRollTokenizedPositions.ts index 74094a2..9f02cec 100644 --- a/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMRollTokenizedPositions.ts +++ b/packages/panoptic-sdk/src/publicActions/simulatePanopticSFPMRollTokenizedPositions.ts @@ -1,4 +1,4 @@ -import { MAX_TICK, MIN_TICK } from "uniswap-v3-sdk"; +import { MAX_TICK, MIN_TICK } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Chain, Client, diff --git a/packages/panoptic-sdk/src/types/PanopticFactory.ts b/packages/panoptic-sdk/src/types/PanopticFactory.ts index 105c2e7..7b09fdf 100644 --- a/packages/panoptic-sdk/src/types/PanopticFactory.ts +++ b/packages/panoptic-sdk/src/types/PanopticFactory.ts @@ -1,5 +1,5 @@ +import type { UniswapV3Factory } from "@panoptic-xyz/uniswap-v3-sdk"; import type { WETH } from "reverse-mirage"; -import type { UniswapV3Factory } from "uniswap-v3-sdk"; import type { Address } from "viem/accounts"; import type { PanopticSemiFungiblePositionManager } from "./PanopticSemiFungiblePositionManager.js"; diff --git a/packages/panoptic-sdk/src/types/PanopticPool.ts b/packages/panoptic-sdk/src/types/PanopticPool.ts index f25aa59..bf9a62a 100644 --- a/packages/panoptic-sdk/src/types/PanopticPool.ts +++ b/packages/panoptic-sdk/src/types/PanopticPool.ts @@ -1,4 +1,7 @@ -import type { UniswapV3Pool, UniswapV3PoolData } from "uniswap-v3-sdk"; +import type { + UniswapV3Pool, + UniswapV3PoolData, +} from "@panoptic-xyz/uniswap-v3-sdk"; import type { Address } from "viem/accounts"; import type { PanopticCollateral, diff --git a/packages/panoptic-sdk/src/types/PanopticPosition.ts b/packages/panoptic-sdk/src/types/PanopticPosition.ts index 104956e..9e25bf3 100644 --- a/packages/panoptic-sdk/src/types/PanopticPosition.ts +++ b/packages/panoptic-sdk/src/types/PanopticPosition.ts @@ -1,5 +1,5 @@ +import type { UniswapV3Tick } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Fraction, Tuple } from "reverse-mirage"; -import type { UniswapV3Tick } from "uniswap-v3-sdk"; import type { Address } from "viem/accounts"; import type { PanopticPool } from "./PanopticPool.js"; diff --git a/packages/panoptic-sdk/src/types/PanopticSemiFungiblePositionManager.ts b/packages/panoptic-sdk/src/types/PanopticSemiFungiblePositionManager.ts index 7576d56..b968292 100644 --- a/packages/panoptic-sdk/src/types/PanopticSemiFungiblePositionManager.ts +++ b/packages/panoptic-sdk/src/types/PanopticSemiFungiblePositionManager.ts @@ -1,5 +1,5 @@ +import type { UniswapV3Pool } from "@panoptic-xyz/uniswap-v3-sdk"; import type { BaseERC1155, ERC1155Data, Tuple } from "reverse-mirage"; -import type { UniswapV3Pool } from "uniswap-v3-sdk"; import type { Address } from "viem/accounts"; import type { PanoptionLeg, PanoptionLegData } from "./PanopticPosition.js"; diff --git a/packages/panoptic-sdk/src/utils/calculatePanopticTokenID.ts b/packages/panoptic-sdk/src/utils/calculatePanopticTokenID.ts index a1e84e5..d9fa97e 100644 --- a/packages/panoptic-sdk/src/utils/calculatePanopticTokenID.ts +++ b/packages/panoptic-sdk/src/utils/calculatePanopticTokenID.ts @@ -1,5 +1,5 @@ +import type { TickSpacing, UniswapV3Pool } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Tuple } from "reverse-mirage"; -import type { TickSpacing, UniswapV3Pool } from "uniswap-v3-sdk"; import type { PanoptionLeg } from "../types/PanopticPosition.js"; export const calculateLegID = (leg: PanoptionLeg, tickSpacing: TickSpacing) => { diff --git a/packages/panoptic-sdk/src/utils/createPanopticCollateral.ts b/packages/panoptic-sdk/src/utils/createPanopticCollateral.ts index e84f585..e57b51b 100644 --- a/packages/panoptic-sdk/src/utils/createPanopticCollateral.ts +++ b/packages/panoptic-sdk/src/utils/createPanopticCollateral.ts @@ -1,5 +1,5 @@ +import type { FeeTier } from "@panoptic-xyz/uniswap-v3-sdk"; import type { BaseERC20 } from "reverse-mirage"; -import type { FeeTier } from "uniswap-v3-sdk"; import type { Address } from "viem/accounts"; import type { PanopticCollateral, diff --git a/packages/panoptic-sdk/src/utils/createPanopticPool.ts b/packages/panoptic-sdk/src/utils/createPanopticPool.ts index a1b88ca..15a7d9d 100644 --- a/packages/panoptic-sdk/src/utils/createPanopticPool.ts +++ b/packages/panoptic-sdk/src/utils/createPanopticPool.ts @@ -1,4 +1,4 @@ -import type { UniswapV3Pool } from "uniswap-v3-sdk"; +import type { UniswapV3Pool } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Address } from "viem/accounts"; import type { PanopticCollateral } from "../types/PanopticCollateral.js"; import type { PanopticFactory } from "../types/PanopticFactory.js"; diff --git a/packages/panoptic-sdk/src/utils/createPanopticSemiFungiblePosition.ts b/packages/panoptic-sdk/src/utils/createPanopticSemiFungiblePosition.ts index 38b2d2d..91d6370 100644 --- a/packages/panoptic-sdk/src/utils/createPanopticSemiFungiblePosition.ts +++ b/packages/panoptic-sdk/src/utils/createPanopticSemiFungiblePosition.ts @@ -1,5 +1,5 @@ +import type { UniswapV3Pool } from "@panoptic-xyz/uniswap-v3-sdk"; import type { Tuple } from "reverse-mirage"; -import type { UniswapV3Pool } from "uniswap-v3-sdk"; import type { Address } from "viem/accounts"; import type { PanoptionLeg } from "../types/PanopticPosition.js"; import type { diff --git a/packages/uniswap-v3-sdk/package.json b/packages/uniswap-v3-sdk/package.json index 82f4910..1934301 100644 --- a/packages/uniswap-v3-sdk/package.json +++ b/packages/uniswap-v3-sdk/package.json @@ -41,7 +41,7 @@ "limit": "11 kB" }, { - "name": "uniswap-v3-sdk", + "name": "@panoptic-xyz/uniswap-v3-sdk", "path": "./dist/index.js", "limit": "7 kB", "import": "*" diff --git a/packages/uniswap-v3-sdk/tsup.config.ts b/packages/uniswap-v3-sdk/tsup.config.ts index f6bab13..eb7eca5 100644 --- a/packages/uniswap-v3-sdk/tsup.config.ts +++ b/packages/uniswap-v3-sdk/tsup.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from "tsup"; export default defineConfig({ - name: "uniswap-v3-sdk", + name: "@panoptic-xyz/uniswap-v3-sdk", entry: ["src/index.ts"], outDir: "dist", format: ["esm", "cjs"], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0cbe283..81a3109 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -102,15 +102,15 @@ importers: packages/panoptic-sdk: dependencies: + '@panoptic-xyz/uniswap-v3-sdk': + specifier: workspace:* + version: link:../uniswap-v3-sdk reverse-mirage: specifier: 1.0.2 version: 1.0.2(viem@1.15.0) tiny-invariant: specifier: ^1.3.1 version: 1.3.1 - uniswap-v3-sdk: - specifier: workspace:* - version: link:../uniswap-v3-sdk devDependencies: '@biomejs/biome': specifier: ^1.2.2