Skip to content

Commit

Permalink
Merge pull request #9 from Numoen/dev
Browse files Browse the repository at this point in the history
release alpha 2
  • Loading branch information
kyscott18 authored Oct 12, 2023
2 parents 9dc7546 + 646c1fd commit cb8fc2b
Show file tree
Hide file tree
Showing 36 changed files with 53 additions and 44 deletions.
6 changes: 6 additions & 0 deletions .changeset/clean-news-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@panoptic-xyz/uniswap-v3-sdk": patch
"@panoptic-xyz/sdk": patch
---

Fix resolution
6 changes: 1 addition & 5 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/panoptic-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*"
}
}
6 changes: 3 additions & 3 deletions packages/panoptic-sdk/src/_test/utils.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/panoptic-sdk/src/chains/sepolia.ts
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion packages/panoptic-sdk/src/publicActions/getPanopticPool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type UniswapV3Pool } from "uniswap-v3-sdk";
import { type UniswapV3Pool } from "@panoptic-xyz/uniswap-v3-sdk";
import type {
Address,
Chain,
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { UniswapV3Pool } from "uniswap-v3-sdk";
import type { UniswapV3Pool } from "@panoptic-xyz/uniswap-v3-sdk";
import type {
Chain,
Client,
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { UniswapV3Pool } from "uniswap-v3-sdk";
import type { UniswapV3Pool } from "@panoptic-xyz/uniswap-v3-sdk";
import type {
Chain,
Client,
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/panoptic-sdk/src/types/PanopticFactory.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
5 changes: 4 additions & 1 deletion packages/panoptic-sdk/src/types/PanopticPool.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/panoptic-sdk/src/types/PanopticPosition.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/panoptic-sdk/src/utils/createPanopticPool.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/uniswap-v3-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/uniswap-v3-sdk/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb8fc2b

Please sign in to comment.