Skip to content

Commit

Permalink
chore: pin versions and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
turnekybc committed Feb 3, 2025
1 parent c406892 commit 0c1ac5d
Show file tree
Hide file tree
Showing 47 changed files with 1,005 additions and 844 deletions.
12 changes: 7 additions & 5 deletions examples/email-auth-local-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
"@turnkey/encoding": "workspace:*",
"@turnkey/http": "workspace:*",
"@turnkey/sdk-server": "workspace:*",
"@types/node": "^22.10.5",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.7.4",
"encoding": "^0.1.13",
"eslint": "^9.18.0",
Expand All @@ -27,7 +24,12 @@
"npm": "^10.9.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "^5.1.3"
"react-hook-form": "^7.45.1"
},
"devDependencies": {
"@types/node": "^22.10.5",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"typescript": "5.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/email-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "^5.1.3"
"typescript": "5.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/email-recovery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "^5.1.3"
"typescript": "5.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/oauth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "^5.1.3"
"typescript": "5.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/otp-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "^5.1.3"
"typescript": "5.4.2"
}
}
12 changes: 7 additions & 5 deletions examples/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
"@turnkey/sdk-browser": "workspace:*",
"@turnkey/sdk-react": "workspace:*",
"@turnkey/sdk-server": "workspace:*",
"@types/node": "^22.10.5",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.7.4",
"buffer": "^6.0.3",
"encoding": "^0.1.13",
Expand All @@ -37,7 +34,12 @@
"react-dom": "18.2.0",
"react-international-phone": "^4.3.0",
"sonner": "^1.4.41",
"tweetnacl": "^1.0.3",
"typescript": "^5.1.3"
"tweetnacl": "^1.0.3"
},
"devDependencies": {
"@types/node": "^22.10.5",
"@types/react": "18.2.25",
"@types/react-dom": "18.2.6",
"typescript": "5.4.2"
}
}
4 changes: 2 additions & 2 deletions examples/sweeper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"dependencies": {
"@turnkey/sdk-server": "workspace:*",
"@turnkey/ethers": "workspace:*",
"@uniswap/sdk-core": "^3.1.1",
"@uniswap/sdk-core": "^7.5.0",
"dotenv": "^16.0.3",
"ethers": "^6.10.0",
"hardhat": "^2.12.7",
"prompts": "^2.4.2"
},
"devDependencies": {
"@types/prompts": "^2.4.2",
"typescript": "^5.1.3"
"typescript": "5.4.2"
}
}
28 changes: 14 additions & 14 deletions examples/sweeper/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ethers } from "ethers";
import { SupportedChainId, Token } from "@uniswap/sdk-core";
import { ChainId, Token } from "@uniswap/sdk-core";

// Environment

Expand All @@ -11,51 +11,51 @@ export enum Environment {
// Currencies and Tokens

export const WETH_TOKEN_MAINNET = new Token(
SupportedChainId.MAINNET,
ChainId.MAINNET,
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
18,
"WETH",
"Wrapped Ether",
"Wrapped Ether"
);

export const WETH_TOKEN_GOERLI = new Token(
SupportedChainId.GOERLI,
ChainId.GOERLI,
"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
18,
"WETH",
"Wrapped Ether",
"Wrapped Ether"
);

export const USDC_TOKEN_MAINNET = new Token(
SupportedChainId.MAINNET,
ChainId.MAINNET,
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
6,
"USDC",
"USD//C",
"USD//C"
);

export const USDC_TOKEN_GOERLI = new Token(
SupportedChainId.GOERLI,
ChainId.GOERLI,
"0x07865c6E87B9F70255377e024ace6630C1Eaa37F",
6,
"USDC",
"USD//C",
"USD//C"
);

export const UNI_TOKEN_MAINNET = new Token(
SupportedChainId.MAINNET,
ChainId.MAINNET,
"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
18,
"UNI",
"Uniswap",
"Uniswap"
);

export const UNI_TOKEN_GOERLI = new Token(
SupportedChainId.GOERLI,
ChainId.GOERLI,
"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
18,
"UNI",
"Uniswap",
"Uniswap"
);

// ABIs
Expand Down Expand Up @@ -85,7 +85,7 @@ export function fromReadableAmount(amount: number, decimals: number): bigint {
export function toReadableAmount(
rawAmount: number | string,
decimals: number,
maxDecimals = MAX_DECIMALS,
maxDecimals = MAX_DECIMALS
): string {
return ethers.formatUnits(rawAmount, decimals).slice(0, maxDecimals);
}
4 changes: 2 additions & 2 deletions examples/trading-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@turnkey/sdk-server": "workspace:*",
"@turnkey/ethers": "workspace:*",
"@uniswap/sdk-core": "^3.1.1",
"@uniswap/sdk-core": "7.5.0",
"@uniswap/v3-core": "^1.0.1",
"@uniswap/v3-sdk": "^3.9.0",
"dotenv": "^16.0.3",
Expand All @@ -21,6 +21,6 @@
},
"devDependencies": {
"@types/prompts": "^2.4.2",
"typescript": "^5.1.3"
"typescript": "5.4.2"
}
}
26 changes: 13 additions & 13 deletions examples/trading-runner/src/uniswap/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file stores web3 related constants such as addresses, token definitions, ETH currency references and ABIs

import { FeeAmount } from "@uniswap/v3-sdk";
import { SupportedChainId, Token, Percent } from "@uniswap/sdk-core";
import { ChainId, Token, Percent } from "@uniswap/sdk-core";
import uniV3UniversalRouterContractABI from "./abi/univ3-universal-router-contract-abi.json";
import wethContractABI from "./abi/weth-contract-abi.json";

Expand Down Expand Up @@ -65,51 +65,51 @@ export const UNI_V3_UNIVERSAL_ROUTER_CONTRACT_ABI =
// Currencies and Tokens

export const WETH_TOKEN_MAINNET = new Token(
SupportedChainId.MAINNET,
ChainId.MAINNET,
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
18,
"WETH",
"Wrapped Ether",
"Wrapped Ether"
);

export const WETH_TOKEN_GOERLI = new Token(
SupportedChainId.GOERLI,
ChainId.GOERLI,
"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
18,
"WETH",
"Wrapped Ether",
"Wrapped Ether"
);

export const USDC_TOKEN_MAINNET = new Token(
SupportedChainId.MAINNET,
ChainId.MAINNET,
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
6,
"USDC",
"USD//C",
"USD//C"
);

export const USDC_TOKEN_GOERLI = new Token(
SupportedChainId.GOERLI,
ChainId.GOERLI,
"0x07865c6E87B9F70255377e024ace6630C1Eaa37F",
6,
"USDC",
"USD//C",
"USD//C"
);

export const UNI_TOKEN_MAINNET = new Token(
SupportedChainId.MAINNET,
ChainId.MAINNET,
"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
18,
"UNI",
"Uniswap",
"Uniswap"
);

export const UNI_TOKEN_GOERLI = new Token(
SupportedChainId.GOERLI,
ChainId.GOERLI,
"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
18,
"UNI",
"Uniswap",
"Uniswap"
);

export const ASSET_METADATA: { [key: string]: { [key: string]: any } } = {
Expand Down
6 changes: 3 additions & 3 deletions examples/wallet-import-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"npm": "^10.9.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "5.1.3"
"react-hook-form": "^7.45.1"
},
"devDependencies": {
"@types/node": "^22.10.5",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6"
"@types/react-dom": "18.2.6",
"typescript": "5.4.2"
}
}
3 changes: 2 additions & 1 deletion examples/with-aptos/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"noEmit": true,
"tsBuildInfoFile": "./.cache/.tsbuildinfo",
"moduleResolution": "node16"
"moduleResolution": "node16",
"module": "node16"
},
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.json"]
}
4 changes: 2 additions & 2 deletions examples/with-cosmjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@cosmjs/encoding": "^0.31.0",
"@cosmjs/stargate": "^0.31.0",
"@cosmjs/encoding": "^0.33.0",
"@cosmjs/stargate": "^0.33.0",
"@turnkey/sdk-server": "workspace:^",
"@turnkey/cosmjs": "workspace:*",
"@turnkey/http": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-eip-1193-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"eslint-config-next": "^15.1.4",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"typescript": "^5.1.3"
"typescript": "5.4.2"
}
}
10 changes: 6 additions & 4 deletions examples/with-eth-passkeys-galore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
"@turnkey/sdk-server": "workspace:*",
"@turnkey/viem": "workspace:*",
"@turnkey/webauthn-stamper": "workspace:*",
"@types/node": "^22.10.5",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.4.0",
"encoding": "^0.1.13",
"ethers": "^6.10.0",
Expand All @@ -37,7 +34,12 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "^5.1.3",
"viem": "^2.21.9"
},
"devDependencies": {
"@types/node": "^22.10.5",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"typescript": "5.5.3"
}
}
2 changes: 1 addition & 1 deletion examples/with-federated-passkeys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "5.1.3"
"typescript": "5.4.2"
}
}
4 changes: 2 additions & 2 deletions examples/with-solana-passkeys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"npm": "^10.9.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"typescript": "^5.1.3"
"react-hook-form": "^7.45.1"
},
"devDependencies": {
"@solana/web3.js": "^1.95.8",
"typescript": "5.4.2",
"@types/node": "^22.10.5",
"@types/react": "^18.2.25",
"@types/react-dom": "^18.2.6"
Expand Down
6 changes: 3 additions & 3 deletions examples/with-ton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": {
"@inquirer/prompts": "^2.1.0",
"@noble/hashes": "1.4.0",
"@ton/core": "^0.59.0",
"@ton/core": "^0.60.0",
"@ton/crypto": "^3.3.0",
"@ton/ton": "^15.1.0",
"@turnkey/http": "workspace:*",
Expand All @@ -21,7 +21,7 @@
},
"devDependencies": {
"@types/async-retry": "^1.4.8",
"tsx": "^3.12.7",
"typescript": "^5.0.4"
"tsx": "^4.19.2",
"typescript": "5.4.2"
}
}
4 changes: 2 additions & 2 deletions examples/with-uniswap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": {
"@turnkey/sdk-server": "workspace:*",
"@turnkey/ethers": "workspace:*",
"@uniswap/sdk-core": "^3.1.1",
"@uniswap/sdk-core": "7.5.0",
"@uniswap/v3-core": "^1.0.1",
"@uniswap/v3-sdk": "^3.9.0",
"dotenv": "^16.0.3",
Expand All @@ -19,6 +19,6 @@
"jsbi": "^3.2.5"
},
"devDependencies": {
"typescript": "^5.1.3"
"typescript": "5.4.2"
}
}
Loading

0 comments on commit 0c1ac5d

Please sign in to comment.