Skip to content

Commit

Permalink
sdk-wells: rename package to sdk-wells (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalecks committed Jul 17, 2023
2 parents 467ee77 + 43474f3 commit 8a12ad7
Show file tree
Hide file tree
Showing 23 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const jestConfig: JestConfigWithTsJest = {
rootDir: "projects/sdk-wells",
testMatch: ["<rootDir>/src/**/?(*.)+(spec|test).[jt]s?(x)", "<rootDir>/test/**/?(*.)+(spec|test).[jt]s?(x)"],
moduleNameMapper: {
"@beanstalk/wells/(.*)$": "<rootDir>/src/$1",
"@beanstalk/sdk-wells/(.*)$": "<rootDir>/src/$1",
"^src/(.*)$": "<rootDir>/src/$1"
}
},
Expand Down
2 changes: 1 addition & 1 deletion projects/dex-ui/src/components/Swap/useSwapBuilder.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SwapBuilder } from "@beanstalk/wells";
import { SwapBuilder } from "@beanstalk/sdk-wells";
import { useEffect, useState } from "react";
import useSdk from "src/utils/sdk/useSdk";
import { useWells } from "src/wells/useWells";
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dependencies": {
"@beanstalk/sdk": "workspace:*",
"@beanstalk/sdk-core": "workspace:*",
"@beanstalk/wells": "workspace:*",
"@beanstalk/sdk-wells": "workspace:*",
"chalk": "4",
"dotenv": "16.0.3",
"table": "6.8.1"
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/dex/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Aquifer, WellFunction, WellsSDK, Well } from "@beanstalk/wells";
import { Aquifer, WellFunction, WellsSDK, Well } from "@beanstalk/sdk-wells";
import { BeanstalkSDK, TestUtils } from "@beanstalk/sdk";
import { signer, provider, account, sdk as bsdk } from "../setup";
import { TokenValue } from "@beanstalk/sdk-core";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Clipboard, FarmFromMode, FarmToMode, TokenValue } from "@beanstalk/sdk";
import chalk from "chalk";
import { BigNumber } from "ethers";
import { WETH9__factory } from "@beanstalk/wells";
import { WETH9__factory } from "@beanstalk/sdk-wells";
import { account as _account, impersonate, chain } from "../../setup";
import { getWell, getWellsFromAquifer } from "../utils";

Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/dex/flows/multi-reverse-wrap-eth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Clipboard, FarmFromMode, FarmToMode, TokenValue } from "@beanstalk/sdk";
import chalk from "chalk";
import { BigNumber } from "ethers";
import { WETH9__factory } from "@beanstalk/wells";
import { WETH9__factory } from "@beanstalk/sdk-wells";
import { account as _account, impersonate, chain } from "../../setup";
import { getWell, getWellsFromAquifer } from "../utils";

Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/dex/flows/multi-unwrap-eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Clipboard, FarmFromMode, FarmToMode, TokenValue } from "@beanstalk/sdk"
import chalk from "chalk";
import { BigNumber } from "ethers";
import { account as _account, impersonate, chain } from "../../setup";
import { WETH9__factory } from "@beanstalk/wells";
import { WETH9__factory } from "@beanstalk/sdk-wells";
import { getWellsFromAquifer, getWell } from "../utils";

main().catch((e) => {
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/dex/flows/multi-wrap-eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Clipboard, FarmFromMode, FarmToMode, TokenValue } from "@beanstalk/sdk"
import chalk from "chalk";
import { BigNumber } from "ethers";
import { account as _account, impersonate, chain } from "../../setup";
import { WETH9__factory } from "@beanstalk/wells";
import { WETH9__factory } from "@beanstalk/sdk-wells";
import { getWellsFromAquifer, getWell } from "../utils";

main().catch((e) => {
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/dex/loadWells.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WellsSDK } from "@beanstalk/wells";
import { WellsSDK } from "@beanstalk/sdk-wells";
import { BeanstalkSDK, TestUtils } from "@beanstalk/sdk";
import { signer, provider, account, sdk as bsdk } from "../setup";
import { TokenValue } from "@beanstalk/sdk-core";
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/dex/swaps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BeanstalkSDK, Clipboard, Token, TokenValue } from "@beanstalk/sdk";
import { Direction, SwapBuilder } from "@beanstalk/wells";
import { Direction, SwapBuilder } from "@beanstalk/sdk-wells";
import chalk from "chalk";
import { account as _account, sdk, chain } from "../setup";
import { BigNumber } from "ethers";
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/wells/liquidity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WellsSDK } from "@beanstalk/wells";
import { WellsSDK } from "@beanstalk/sdk-wells";
import { BeanstalkSDK, TestUtils } from "@beanstalk/sdk";
import { signer, provider, account, sdk as bsdk } from "../setup";
import { TokenValue } from "@beanstalk/sdk-core";
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/wells/loadWells.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WellsSDK } from "@beanstalk/wells";
import { WellsSDK } from "@beanstalk/sdk-wells";
import { BeanstalkSDK, TestUtils } from "@beanstalk/sdk";
import { signer, provider, account, sdk as bsdk } from "../setup";
import { TokenValue } from "@beanstalk/sdk-core";
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/wells/reset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WellsSDK } from "@beanstalk/wells";
import { WellsSDK } from "@beanstalk/sdk-wells";
import { BeanstalkSDK, TestUtils } from "@beanstalk/sdk";
import { signer, provider, account, sdk as bsdk } from "../setup";
import { TokenValue } from "@beanstalk/sdk-core";
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/wells/revoke-approval.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WellsSDK } from "@beanstalk/wells";
import { WellsSDK } from "@beanstalk/sdk-wells";
import { TestUtils } from "@beanstalk/sdk";
import { signer, account, sdk as bsdk } from "../setup";
import { TokenValue } from "@beanstalk/sdk-core";
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/wells/sampleData.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WellsSDK } from "@beanstalk/wells";
import { WellsSDK } from "@beanstalk/sdk-wells";
import { TestUtils } from "@beanstalk/sdk";
import { signer, account, sdk as bsdk } from "../setup";
import { TokenValue } from "@beanstalk/sdk-core";
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/wells/swap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WellsSDK } from "@beanstalk/wells";
import { WellsSDK } from "@beanstalk/sdk-wells";
import { BeanstalkSDK, TestUtils } from "@beanstalk/sdk";
import { signer, account, sdk as bsdk } from "../setup";
import { TokenValue } from "@beanstalk/sdk-core";
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/wells/swaptest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WellsSDK } from "@beanstalk/wells";
import { WellsSDK } from "@beanstalk/sdk-wells";
import { BeanstalkSDK, TestUtils } from "@beanstalk/sdk";
import { signer, account, sdk as bsdk } from "../setup";
import { TokenValue } from "@beanstalk/sdk-core";
Expand Down
2 changes: 1 addition & 1 deletion projects/examples/src/wells/wells.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { provider } from "../setup";
import { WellsSDK, Well } from "@beanstalk/wells";
import { WellsSDK, Well } from "@beanstalk/sdk-wells";

const WELL_ADDRESS = process.env.WELL_ADDRESS!;

Expand Down
2 changes: 1 addition & 1 deletion projects/sdk-wells/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@beanstalk/wells",
"name": "@beanstalk/sdk-wells",
"version": "0.0.1",
"description": "A JavaScript framework for interacting with the Beanstalk Wells.",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion projects/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"dependencies": {
"@beanstalk/sdk-core": "workspace:*",
"@beanstalk/wells": "workspace:*",
"@beanstalk/sdk-wells": "workspace:*",
"@ethersproject/bytes": "5.7.0",
"@ethersproject/logger": "5.7.0",
"bn.js": "5.2.1",
Expand Down
4 changes: 2 additions & 2 deletions projects/sdk/src/Wells.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "@beanstalk/wells";
export type { WellDetails, WellFunction, Pump, TxOverrides, PreloadOptions, CallStruct, QuoteResult } from "@beanstalk/wells";
export * from "@beanstalk/sdk-wells";
export type { WellDetails, WellFunction, Pump, TxOverrides, PreloadOptions, CallStruct, QuoteResult } from "@beanstalk/sdk-wells";
2 changes: 1 addition & 1 deletion projects/sdk/src/lib/BeanstalkSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Swap } from "src/lib/swap/Swap";
import { Bean } from "./bean";
import { Pools } from "./pools";
import defaultSettings from "src/defaultSettings.json";
import { WellsSDK } from "@beanstalk/wells";
import { WellsSDK } from "@beanstalk/sdk-wells";
import { ChainId } from "@beanstalk/sdk-core";

export type Provider = ethers.providers.JsonRpcProvider;
Expand Down
48 changes: 24 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,7 @@ __metadata:
dependencies:
"@beanstalk/sdk": "workspace:*"
"@beanstalk/sdk-core": "workspace:*"
"@beanstalk/wells": "workspace:*"
"@beanstalk/sdk-wells": "workspace:*"
"@swc-node/register": 1.6.6
"@swc/core": 1.3.68
"@swc/helpers": 0.5.1
Expand Down Expand Up @@ -2353,96 +2353,96 @@ __metadata:
languageName: unknown
linkType: soft

"@beanstalk/sdk@workspace:*, @beanstalk/sdk@workspace:projects/sdk":
"@beanstalk/sdk-wells@workspace:*, @beanstalk/sdk-wells@workspace:projects/sdk-wells":
version: 0.0.0-use.local
resolution: "@beanstalk/sdk@workspace:projects/sdk"
resolution: "@beanstalk/sdk-wells@workspace:projects/sdk-wells"
dependencies:
"@beanstalk/sdk-core": "workspace:*"
"@beanstalk/wells": "workspace:*"
"@ethersproject/bytes": 5.7.0
"@ethersproject/logger": 5.7.0
"@foundry-rs/hardhat-anvil": ^0.1.6
"@graphql-codegen/cli": 2.13.7
"@graphql-codegen/typescript": 2.7.4
"@graphql-codegen/typescript-graphql-request": ^4.5.6
"@graphql-codegen/typescript-operations": ^2.5.4
"@graphql-codegen/typescript-resolvers": 2.7.4
"@nomiclabs/hardhat-ethers": ^2.1.1
"@rollup/plugin-commonjs": 23.0.2
"@rollup/plugin-json": 5.0.1
"@rollup/plugin-multi-entry": 6.0.0
"@rollup/plugin-node-resolve": 15.0.1
"@typechain/ethers-v5": ^10.1.0
"@types/bn.js": ^5
"@types/chai": ^4
"@types/eslint": ^8
"@types/graphlib": 2.1.8
"@types/jest": ^29.1.2
"@types/lodash.flattendeep": ^4
"@types/rimraf": ^3
bn.js: 5.2.1
chai: 4.3.6
dotenv: ^16.0.3
eslint: 8.26.0
ethers: ^5.0.0
graphlib: 2.1.8
graphql: 16.6.0
graphql-request: ^4
graphql-tag: 2.12.6
jest: ^29.2.0
lodash.flattendeep: 4.4.0
rimraf: 3.0.2
rollup: 3.2.5
rollup-plugin-alias: 2.2.0
rollup-plugin-exclude-dependencies-from-bundle: 1.1.23
rollup-plugin-sourcemaps: 0.6.3
rollup-plugin-typescript2: 0.34.1
ts-jest: ^29.0.3
ts-node: 10.9.1
tsc-alias: 1.7.0
tslib: 2.4.1
typechain: ^8.1.0
typescript: 4.8.4
peerDependencies:
ethers: 5.6.8
ethers: ^5.0.0
languageName: unknown
linkType: soft

"@beanstalk/wells@workspace:*, @beanstalk/wells@workspace:projects/sdk-wells":
"@beanstalk/sdk@workspace:*, @beanstalk/sdk@workspace:projects/sdk":
version: 0.0.0-use.local
resolution: "@beanstalk/wells@workspace:projects/sdk-wells"
resolution: "@beanstalk/sdk@workspace:projects/sdk"
dependencies:
"@beanstalk/sdk-core": "workspace:*"
"@beanstalk/sdk-wells": "workspace:*"
"@ethersproject/bytes": 5.7.0
"@ethersproject/logger": 5.7.0
"@foundry-rs/hardhat-anvil": ^0.1.6
"@graphql-codegen/cli": 2.13.7
"@graphql-codegen/typescript": 2.7.4
"@graphql-codegen/typescript-graphql-request": ^4.5.6
"@graphql-codegen/typescript-operations": ^2.5.4
"@graphql-codegen/typescript-resolvers": 2.7.4
"@nomiclabs/hardhat-ethers": ^2.1.1
"@rollup/plugin-commonjs": 23.0.2
"@rollup/plugin-json": 5.0.1
"@rollup/plugin-multi-entry": 6.0.0
"@rollup/plugin-node-resolve": 15.0.1
"@typechain/ethers-v5": ^10.1.0
"@types/bn.js": ^5
"@types/chai": ^4
"@types/eslint": ^8
"@types/graphlib": 2.1.8
"@types/jest": ^29.1.2
"@types/lodash.flattendeep": ^4
"@types/rimraf": ^3
bn.js: 5.2.1
chai: 4.3.6
dotenv: ^16.0.3
ethers: ^5.0.0
eslint: 8.26.0
graphlib: 2.1.8
graphql: 16.6.0
graphql-request: ^4
graphql-tag: 2.12.6
jest: ^29.2.0
lodash.flattendeep: 4.4.0
rimraf: 3.0.2
rollup: 3.2.5
rollup-plugin-alias: 2.2.0
rollup-plugin-exclude-dependencies-from-bundle: 1.1.23
rollup-plugin-sourcemaps: 0.6.3
rollup-plugin-typescript2: 0.34.1
ts-jest: ^29.0.3
ts-node: 10.9.1
tsc-alias: 1.7.0
tslib: 2.4.1
typechain: ^8.1.0
typescript: 4.8.4
peerDependencies:
ethers: ^5.0.0
ethers: 5.6.8
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 8a12ad7

Please sign in to comment.