Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .changeset/shiny-comics-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
"@turnkey/telegram-cloud-storage-stamper": minor
"@turnkey/indexed-db-stamper": minor
"@turnkey/eip-1193-provider": minor
"@turnkey/delegated-access": minor
"@turnkey/sdk-react-native": minor
"@turnkey/webauthn-stamper": minor
"@turnkey/api-key-stamper": minor
"@turnkey/wallet-stamper": minor
"@turnkey/sdk-browser": minor
"@turnkey/sdk-server": minor
"@turnkey/sdk-react": minor
"@turnkey/cosmjs": minor
"@turnkey/ethers": minor
"@turnkey/solana": minor
"@turnkey/http": minor
"@turnkey/viem": minor
---

explicitly pin all package versions to help mitigate against supply chain attacks
4 changes: 2 additions & 2 deletions examples/delegated-access/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@turnkey/sdk-server": "workspace:*",
"dotenv": "^16.0.3",
"viem": "^2.26.2"
"dotenv": "16.0.3",
"viem": "2.26.2"
}
}
4 changes: 2 additions & 2 deletions examples/deployer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dependencies": {
"@turnkey/sdk-server": "workspace:*",
"@turnkey/ethers": "workspace:*",
"dotenv": "^16.0.3",
"ethers": "^6.10.0",
"dotenv": "16.0.3",
"ethers": "6.10.0",
"solc": "0.8.13"
}
}
14 changes: 7 additions & 7 deletions examples/email-auth-local-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
"@types/node": "20.3.1",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.8.2",
"encoding": "^0.1.13",
"axios": "1.8.2",
"encoding": "0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.25",
"esm": "^3.2.25",
"install": "^0.13.0",
"next": "^14.2.25",
"npm": "^9.7.2",
"esm": "3.2.25",
"install": "0.13.0",
"next": "14.2.25",
"npm": "9.7.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"react-hook-form": "7.45.1",
"typescript": "5.4.3"
}
}
14 changes: 7 additions & 7 deletions examples/email-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"@types/node": "20.3.1",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.8.2",
"encoding": "^0.1.13",
"axios": "1.8.2",
"encoding": "0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.25",
"esm": "^3.2.25",
"install": "^0.13.0",
"next": "^14.2.25",
"npm": "^9.7.2",
"esm": "3.2.25",
"install": "0.13.0",
"next": "14.2.25",
"npm": "9.7.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.1",
"react-hook-form": "7.45.1",
"typescript": "5.4.3"
}
}
14 changes: 7 additions & 7 deletions examples/export-in-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@peculiar/webcrypto": "^1.5.0",
"@peculiar/webcrypto": "1.5.0",
"@turnkey/crypto": "workspace:*",
"@turnkey/encoding": "workspace:*",
"@turnkey/sdk-server": "workspace:*",
"async-retry": "^1.3.3",
"cross-fetch": "^4.0.0",
"dotenv": "^16.0.3",
"prompts": "^2.4.2"
"async-retry": "1.3.3",
"cross-fetch": "4.0.0",
"dotenv": "16.0.3",
"prompts": "2.4.2"
},
"devDependencies": {
"@types/async-retry": "^1.4.8",
"@types/prompts": "^2.4.2"
"@types/async-retry": "1.4.8",
"@types/prompts": "2.4.2"
}
}
14 changes: 7 additions & 7 deletions examples/import-in-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@peculiar/webcrypto": "^1.5.0",
"@peculiar/webcrypto": "1.5.0",
"@turnkey/crypto": "workspace:*",
"@turnkey/encoding": "workspace:*",
"@turnkey/sdk-server": "workspace:*",
"async-retry": "^1.3.3",
"cross-fetch": "^4.0.0",
"dotenv": "^16.0.3",
"prompts": "^2.4.2"
"async-retry": "1.3.3",
"cross-fetch": "4.0.0",
"dotenv": "16.0.3",
"prompts": "2.4.2"
},
"devDependencies": {
"@types/async-retry": "^1.4.8",
"@types/prompts": "^2.4.2"
"@types/async-retry": "1.4.8",
"@types/prompts": "2.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@turnkey/sdk-server": "workspace:*",
"@turnkey/sdk-react": "workspace:*",
"@turnkey/sdk-browser": "workspace:*",
"dotenv": "^16.0.3"
"dotenv": "16.0.3"
}
}
16 changes: 8 additions & 8 deletions examples/oauth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@
},
"dependencies": {
"@noble/hashes": "1.4.0",
"@react-oauth/google": "^0.12.1",
"@react-oauth/google": "0.12.1",
"@turnkey/sdk-server": "workspace:*",
"@turnkey/sdk-react": "workspace:*",
"@types/node": "20.3.1",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.8.2",
"encoding": "^0.1.13",
"axios": "1.8.2",
"encoding": "0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.25",
"esm": "^3.2.25",
"install": "^0.13.0",
"next": "^15.5.2",
"npm": "^9.7.2",
"esm": "3.2.25",
"install": "0.13.0",
"next": "15.5.2",
"npm": "9.7.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "^7.45.1",
"react-hook-form": "7.45.1",
"typescript": "5.4.3"
}
}
14 changes: 7 additions & 7 deletions examples/otp-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"@types/node": "20.3.1",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.8.2",
"encoding": "^0.1.13",
"axios": "1.8.2",
"encoding": "0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.25",
"esm": "^3.2.25",
"install": "^0.13.0",
"next": "^15.5.2",
"npm": "^9.7.2",
"esm": "3.2.25",
"install": "0.13.0",
"next": "15.5.2",
"npm": "9.7.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "^7.45.1",
"react-hook-form": "7.45.1",
"typescript": "5.4.3"
}
}
44 changes: 22 additions & 22 deletions examples/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@coinbase/onchainkit": "^0.38.13",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@hello-pangea/dnd": "^17.0.0",
"@moonpay/moonpay-js": "^0.7.0",
"@moonpay/moonpay-react": "^1.10.1",
"@mui/icons-material": "^6.1.5",
"@mui/material": "^6.1.5",
"@coinbase/onchainkit": "0.38.13",
"@emotion/react": "11.13.3",
"@emotion/styled": "11.13.0",
"@hello-pangea/dnd": "17.0.0",
"@moonpay/moonpay-js": "0.7.0",
"@moonpay/moonpay-react": "1.10.1",
"@mui/icons-material": "6.1.5",
"@mui/material": "6.1.5",
"@noble/hashes": "1.4.0",
"@solana/web3.js": "^1.95.8",
"@solana/web3.js": "1.95.8",
"@turnkey/indexed-db-stamper": "workspace:*",
"@turnkey/sdk-browser": "workspace:*",
"@turnkey/sdk-react": "workspace:*",
Expand All @@ -29,23 +29,23 @@
"@types/node": "20.3.1",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"axios": "^1.8.2",
"buffer": "^6.0.3",
"encoding": "^0.1.13",
"axios": "1.8.2",
"buffer": "6.0.3",
"encoding": "0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.25",
"esm": "^3.2.25",
"ethers": "^6.10.0",
"install": "^0.13.0",
"jwt-decode": "^4.0.0",
"next": "^14.2.25",
"npm": "^9.7.2",
"esm": "3.2.25",
"ethers": "6.10.0",
"install": "0.13.0",
"jwt-decode": "4.0.0",
"next": "14.2.25",
"npm": "9.7.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-international-phone": "^4.3.0",
"sonner": "^1.4.41",
"tweetnacl": "^1.0.3",
"react-international-phone": "4.3.0",
"sonner": "1.4.41",
"tweetnacl": "1.0.3",
"typescript": "5.4.3",
"viem": "^2.30.5"
"viem": "2.30.5"
}
}
4 changes: 2 additions & 2 deletions examples/rebalancer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@turnkey/ethers": "workspace:*",
"@turnkey/sdk-server": "workspace:*",
"dotenv": "^16.0.3",
"ethers": "^6.10.0"
"dotenv": "16.0.3",
"ethers": "6.10.0"
}
}
12 changes: 6 additions & 6 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",
"dotenv": "^16.0.3",
"ethers": "^6.10.0",
"hardhat": "^2.12.7",
"prompts": "^2.4.2"
"@uniswap/sdk-core": "3.1.1",
"dotenv": "16.0.3",
"ethers": "6.10.0",
"hardhat": "2.12.7",
"prompts": "2.4.2"
},
"devDependencies": {
"@types/prompts": "^2.4.2",
"@types/prompts": "2.4.2",
"typescript": "5.4.3"
}
}
22 changes: 15 additions & 7 deletions examples/sweeper/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { ethers } from "ethers";
import { ChainId, Token } from "@uniswap/sdk-core";
import { Token } from "@uniswap/sdk-core";

// Prefer numeric chain IDs now that ChainId enum is gone.

const CHAIN = {
MAINNET: 1,
GOERLI: 5,
SEPOLIA: 11155111,
} as const;

// Environment

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

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

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

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

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

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

export const UNI_TOKEN_GOERLI = new Token(
ChainId.GOERLI,
CHAIN.GOERLI,
"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
18,
"UNI",
Expand Down
16 changes: 8 additions & 8 deletions examples/trading-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
"dependencies": {
"@turnkey/sdk-server": "workspace:*",
"@turnkey/ethers": "workspace:*",
"@uniswap/sdk-core": "^3.1.1",
"@uniswap/v3-core": "^1.0.1",
"@uniswap/v3-sdk": "^3.9.0",
"dotenv": "^16.0.3",
"ethers": "^6.10.0",
"jsbi": "^3.2.5",
"prompts": "^2.4.2"
"@uniswap/sdk-core": "3.1.1",
"@uniswap/v3-core": "1.0.1",
"@uniswap/v3-sdk": "3.9.0",
"dotenv": "16.0.3",
"ethers": "6.10.0",
"jsbi": "3.2.5",
"prompts": "2.4.2"
},
"devDependencies": {
"@types/prompts": "^2.4.2",
"@types/prompts": "2.4.2",
"typescript": "5.4.3"
}
}
Loading
Loading