From 34ea5f41534d3d40a4de48a737ace0f9bc27cc52 Mon Sep 17 00:00:00 2001 From: DeRauk Gibble Date: Tue, 3 Nov 2026 10:22:26 -0500 Subject: [PATCH] Some tx mgmt example cleanup/standards --- examples/defi/with-earn/README.md | 4 - .../.env.local.example | 0 .../{execute-swap => with-swap}/README.md | 8 +- .../{execute-swap => with-swap}/package.json | 2 +- .../{execute-swap => with-swap}/src/index.ts | 0 .../src/turnkey.ts | 0 .../{execute-swap => with-swap}/tsconfig.json | 0 .../.env.local.example | 0 .../CHANGELOG.md | 0 .../README.md | 4 +- .../package.json | 0 .../src/index.ts | 0 .../src/tokens.ts | 0 .../src/turnkey.ts | 0 .../tsconfig.json | 0 .../.env.example | 0 .../README.md | 4 +- .../next-env.d.ts | 0 .../next.config.ts | 0 .../package.json | 2 +- .../public/fonts/ABCFavorit-Regular.otf | Bin .../public/fonts/ABCFavorit-RegularItalic.otf | Bin .../public/fonts/RobotoMono-Regular.ttf | Bin .../public/turnkey-icon.svg | 0 .../public/turnkey-wordmark.svg | 0 .../src/app/api/balance-events/route.ts | 0 .../src/app/api/balances/route.ts | 0 .../src/app/api/eth-send/route.ts | 0 .../src/app/api/tx-events/route.ts | 0 .../src/app/api/tx-send/route.ts | 0 .../src/app/globals.css | 0 .../src/app/layout.tsx | 0 .../src/app/page.tsx | 0 .../src/app/tk-tokens.css | 0 .../src/app/webhook/balance-updates/route.ts | 0 .../src/app/webhook/tx-updates/route.ts | 0 .../src/components/BalanceFeed.tsx | 0 .../src/components/TxStatusFeed.tsx | 0 .../src/lib/env.ts | 0 .../src/lib/turnkey.ts | 0 .../src/lib/types.ts | 0 .../src/lib/webhook-events.ts | 0 .../src/scripts/register-webhook.ts | 0 .../tsconfig.json | 0 pnpm-lock.yaml | 70 +++++++++--------- 45 files changed, 44 insertions(+), 50 deletions(-) rename examples/defi/{execute-swap => with-swap}/.env.local.example (100%) rename examples/defi/{execute-swap => with-swap}/README.md (87%) rename examples/defi/{execute-swap => with-swap}/package.json (89%) rename examples/defi/{execute-swap => with-swap}/src/index.ts (100%) rename examples/defi/{execute-swap => with-swap}/src/turnkey.ts (100%) rename examples/defi/{execute-swap => with-swap}/tsconfig.json (100%) rename examples/transaction-management/{with-paymaster => with-evm-paymaster}/.env.local.example (100%) rename examples/transaction-management/{with-paymaster => with-evm-paymaster}/CHANGELOG.md (100%) rename examples/transaction-management/{with-paymaster => with-evm-paymaster}/README.md (95%) rename examples/transaction-management/{with-paymaster => with-evm-paymaster}/package.json (100%) rename examples/transaction-management/{with-paymaster => with-evm-paymaster}/src/index.ts (100%) rename examples/transaction-management/{with-paymaster => with-evm-paymaster}/src/tokens.ts (100%) rename examples/transaction-management/{with-paymaster => with-evm-paymaster}/src/turnkey.ts (100%) rename examples/transaction-management/{with-paymaster => with-evm-paymaster}/tsconfig.json (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/.env.example (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/README.md (98%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/next-env.d.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/next.config.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/package.json (94%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/public/fonts/ABCFavorit-Regular.otf (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/public/fonts/ABCFavorit-RegularItalic.otf (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/public/fonts/RobotoMono-Regular.ttf (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/public/turnkey-icon.svg (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/public/turnkey-wordmark.svg (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/app/api/balance-events/route.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/app/api/balances/route.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/app/api/eth-send/route.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/app/api/tx-events/route.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/app/api/tx-send/route.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/app/globals.css (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/app/layout.tsx (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/app/page.tsx (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/app/tk-tokens.css (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/app/webhook/balance-updates/route.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/app/webhook/tx-updates/route.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/components/BalanceFeed.tsx (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/components/TxStatusFeed.tsx (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/lib/env.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/lib/turnkey.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/lib/types.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/lib/webhook-events.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/src/scripts/register-webhook.ts (100%) rename examples/transaction-management/{with-tx-webhooks => with-transaction-webhooks}/tsconfig.json (100%) diff --git a/examples/defi/with-earn/README.md b/examples/defi/with-earn/README.md index 6edd406100..02f04e0f24 100644 --- a/examples/defi/with-earn/README.md +++ b/examples/defi/with-earn/README.md @@ -1,9 +1,5 @@ # Example: `with-earn` -> [!NOTE] -> Turnkey Earn is in **early access**. The APIs are gated and may change; reach -> out to Turnkey to have it enabled for your organization. - Turnkey Earn end to end with `@turnkey/sdk-server`: deploy a fee wrapper for a Morpho vault (one-time, from the parent org), then deposit, poll status, read positions, and withdraw (partial or full) from the end-user wallet. diff --git a/examples/defi/execute-swap/.env.local.example b/examples/defi/with-swap/.env.local.example similarity index 100% rename from examples/defi/execute-swap/.env.local.example rename to examples/defi/with-swap/.env.local.example diff --git a/examples/defi/execute-swap/README.md b/examples/defi/with-swap/README.md similarity index 87% rename from examples/defi/execute-swap/README.md rename to examples/defi/with-swap/README.md index c3b4c33c4c..980204436f 100644 --- a/examples/defi/execute-swap/README.md +++ b/examples/defi/with-swap/README.md @@ -1,8 +1,6 @@ -# Example: `execute-swap` +# Example: `with-swap` -> **Closed beta:** Turnkey Swap is currently in closed beta. Your organization must be allowlisted (with the relevant swap feature flags enabled) before this example will work. - -This example uses the typed swap methods from `@turnkey/sdk-server`. It submits create-swap-quote V3 and execute-swap V4 activities. +This example uses the typed swap methods from `@turnkey/sdk-server`. By default it is configured for Solana mainnet SOL → USDC. Token pair and amount are driven by env vars (`FROM_TOKEN` / `TO_TOKEN` as CAIP-19 asset IDs, `AMOUNT` in base units), so you can point it at other supported pairs without code changes. @@ -27,7 +25,7 @@ $ cd sdk/ $ corepack enable $ pnpm install -r $ pnpm run build-all -$ cd examples/defi/execute-swap/ +$ cd examples/defi/with-swap/ ``` --- diff --git a/examples/defi/execute-swap/package.json b/examples/defi/with-swap/package.json similarity index 89% rename from examples/defi/execute-swap/package.json rename to examples/defi/with-swap/package.json index a429e02fd4..4693f05861 100644 --- a/examples/defi/execute-swap/package.json +++ b/examples/defi/with-swap/package.json @@ -1,5 +1,5 @@ { - "name": "@turnkey/example-execute-swap", + "name": "@turnkey/example-with-swap", "private": true, "version": "0.1.0", "scripts": { diff --git a/examples/defi/execute-swap/src/index.ts b/examples/defi/with-swap/src/index.ts similarity index 100% rename from examples/defi/execute-swap/src/index.ts rename to examples/defi/with-swap/src/index.ts diff --git a/examples/defi/execute-swap/src/turnkey.ts b/examples/defi/with-swap/src/turnkey.ts similarity index 100% rename from examples/defi/execute-swap/src/turnkey.ts rename to examples/defi/with-swap/src/turnkey.ts diff --git a/examples/defi/execute-swap/tsconfig.json b/examples/defi/with-swap/tsconfig.json similarity index 100% rename from examples/defi/execute-swap/tsconfig.json rename to examples/defi/with-swap/tsconfig.json diff --git a/examples/transaction-management/with-paymaster/.env.local.example b/examples/transaction-management/with-evm-paymaster/.env.local.example similarity index 100% rename from examples/transaction-management/with-paymaster/.env.local.example rename to examples/transaction-management/with-evm-paymaster/.env.local.example diff --git a/examples/transaction-management/with-paymaster/CHANGELOG.md b/examples/transaction-management/with-evm-paymaster/CHANGELOG.md similarity index 100% rename from examples/transaction-management/with-paymaster/CHANGELOG.md rename to examples/transaction-management/with-evm-paymaster/CHANGELOG.md diff --git a/examples/transaction-management/with-paymaster/README.md b/examples/transaction-management/with-evm-paymaster/README.md similarity index 95% rename from examples/transaction-management/with-paymaster/README.md rename to examples/transaction-management/with-evm-paymaster/README.md index 92ab11948c..5a9dc1eba3 100644 --- a/examples/transaction-management/with-paymaster/README.md +++ b/examples/transaction-management/with-evm-paymaster/README.md @@ -1,4 +1,4 @@ -# Example: `with-paymaster` +# Example: `with-evm-paymaster` This example shows how to send an erc-20 token on evm networks using Turnkey's paymaster (gas sponsorship). @@ -19,7 +19,7 @@ $ cd sdk/ $ corepack enable # Install `pnpm` $ pnpm install -r # Install dependencies $ pnpm run build-all # Compile source code -$ cd examples/transaction-management/with-paymaster/ +$ cd examples/transaction-management/with-evm-paymaster/ ``` ### 2/ Setting up Turnkey diff --git a/examples/transaction-management/with-paymaster/package.json b/examples/transaction-management/with-evm-paymaster/package.json similarity index 100% rename from examples/transaction-management/with-paymaster/package.json rename to examples/transaction-management/with-evm-paymaster/package.json diff --git a/examples/transaction-management/with-paymaster/src/index.ts b/examples/transaction-management/with-evm-paymaster/src/index.ts similarity index 100% rename from examples/transaction-management/with-paymaster/src/index.ts rename to examples/transaction-management/with-evm-paymaster/src/index.ts diff --git a/examples/transaction-management/with-paymaster/src/tokens.ts b/examples/transaction-management/with-evm-paymaster/src/tokens.ts similarity index 100% rename from examples/transaction-management/with-paymaster/src/tokens.ts rename to examples/transaction-management/with-evm-paymaster/src/tokens.ts diff --git a/examples/transaction-management/with-paymaster/src/turnkey.ts b/examples/transaction-management/with-evm-paymaster/src/turnkey.ts similarity index 100% rename from examples/transaction-management/with-paymaster/src/turnkey.ts rename to examples/transaction-management/with-evm-paymaster/src/turnkey.ts diff --git a/examples/transaction-management/with-paymaster/tsconfig.json b/examples/transaction-management/with-evm-paymaster/tsconfig.json similarity index 100% rename from examples/transaction-management/with-paymaster/tsconfig.json rename to examples/transaction-management/with-evm-paymaster/tsconfig.json diff --git a/examples/transaction-management/with-tx-webhooks/.env.example b/examples/transaction-management/with-transaction-webhooks/.env.example similarity index 100% rename from examples/transaction-management/with-tx-webhooks/.env.example rename to examples/transaction-management/with-transaction-webhooks/.env.example diff --git a/examples/transaction-management/with-tx-webhooks/README.md b/examples/transaction-management/with-transaction-webhooks/README.md similarity index 98% rename from examples/transaction-management/with-tx-webhooks/README.md rename to examples/transaction-management/with-transaction-webhooks/README.md index 94a71b2b56..de7e9812d1 100644 --- a/examples/transaction-management/with-tx-webhooks/README.md +++ b/examples/transaction-management/with-transaction-webhooks/README.md @@ -1,4 +1,4 @@ -# Example: `with-tx-webhooks` +# Example: `with-transaction-webhooks` This example demonstrates Turnkey webhook subscriptions for three event types: @@ -38,7 +38,7 @@ pnpm install From this example directory: ```bash -cd examples/transaction-management/with-tx-webhooks +cd examples/transaction-management/with-transaction-webhooks cp .env.example .env ``` diff --git a/examples/transaction-management/with-tx-webhooks/next-env.d.ts b/examples/transaction-management/with-transaction-webhooks/next-env.d.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/next-env.d.ts rename to examples/transaction-management/with-transaction-webhooks/next-env.d.ts diff --git a/examples/transaction-management/with-tx-webhooks/next.config.ts b/examples/transaction-management/with-transaction-webhooks/next.config.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/next.config.ts rename to examples/transaction-management/with-transaction-webhooks/next.config.ts diff --git a/examples/transaction-management/with-tx-webhooks/package.json b/examples/transaction-management/with-transaction-webhooks/package.json similarity index 94% rename from examples/transaction-management/with-tx-webhooks/package.json rename to examples/transaction-management/with-transaction-webhooks/package.json index 001a12b6c1..7daad5560d 100644 --- a/examples/transaction-management/with-tx-webhooks/package.json +++ b/examples/transaction-management/with-transaction-webhooks/package.json @@ -1,5 +1,5 @@ { - "name": "@turnkey/example-with-tx-webhooks", + "name": "@turnkey/example-with-transaction-webhooks", "version": "0.1.0", "private": true, "scripts": { diff --git a/examples/transaction-management/with-tx-webhooks/public/fonts/ABCFavorit-Regular.otf b/examples/transaction-management/with-transaction-webhooks/public/fonts/ABCFavorit-Regular.otf similarity index 100% rename from examples/transaction-management/with-tx-webhooks/public/fonts/ABCFavorit-Regular.otf rename to examples/transaction-management/with-transaction-webhooks/public/fonts/ABCFavorit-Regular.otf diff --git a/examples/transaction-management/with-tx-webhooks/public/fonts/ABCFavorit-RegularItalic.otf b/examples/transaction-management/with-transaction-webhooks/public/fonts/ABCFavorit-RegularItalic.otf similarity index 100% rename from examples/transaction-management/with-tx-webhooks/public/fonts/ABCFavorit-RegularItalic.otf rename to examples/transaction-management/with-transaction-webhooks/public/fonts/ABCFavorit-RegularItalic.otf diff --git a/examples/transaction-management/with-tx-webhooks/public/fonts/RobotoMono-Regular.ttf b/examples/transaction-management/with-transaction-webhooks/public/fonts/RobotoMono-Regular.ttf similarity index 100% rename from examples/transaction-management/with-tx-webhooks/public/fonts/RobotoMono-Regular.ttf rename to examples/transaction-management/with-transaction-webhooks/public/fonts/RobotoMono-Regular.ttf diff --git a/examples/transaction-management/with-tx-webhooks/public/turnkey-icon.svg b/examples/transaction-management/with-transaction-webhooks/public/turnkey-icon.svg similarity index 100% rename from examples/transaction-management/with-tx-webhooks/public/turnkey-icon.svg rename to examples/transaction-management/with-transaction-webhooks/public/turnkey-icon.svg diff --git a/examples/transaction-management/with-tx-webhooks/public/turnkey-wordmark.svg b/examples/transaction-management/with-transaction-webhooks/public/turnkey-wordmark.svg similarity index 100% rename from examples/transaction-management/with-tx-webhooks/public/turnkey-wordmark.svg rename to examples/transaction-management/with-transaction-webhooks/public/turnkey-wordmark.svg diff --git a/examples/transaction-management/with-tx-webhooks/src/app/api/balance-events/route.ts b/examples/transaction-management/with-transaction-webhooks/src/app/api/balance-events/route.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/app/api/balance-events/route.ts rename to examples/transaction-management/with-transaction-webhooks/src/app/api/balance-events/route.ts diff --git a/examples/transaction-management/with-tx-webhooks/src/app/api/balances/route.ts b/examples/transaction-management/with-transaction-webhooks/src/app/api/balances/route.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/app/api/balances/route.ts rename to examples/transaction-management/with-transaction-webhooks/src/app/api/balances/route.ts diff --git a/examples/transaction-management/with-tx-webhooks/src/app/api/eth-send/route.ts b/examples/transaction-management/with-transaction-webhooks/src/app/api/eth-send/route.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/app/api/eth-send/route.ts rename to examples/transaction-management/with-transaction-webhooks/src/app/api/eth-send/route.ts diff --git a/examples/transaction-management/with-tx-webhooks/src/app/api/tx-events/route.ts b/examples/transaction-management/with-transaction-webhooks/src/app/api/tx-events/route.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/app/api/tx-events/route.ts rename to examples/transaction-management/with-transaction-webhooks/src/app/api/tx-events/route.ts diff --git a/examples/transaction-management/with-tx-webhooks/src/app/api/tx-send/route.ts b/examples/transaction-management/with-transaction-webhooks/src/app/api/tx-send/route.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/app/api/tx-send/route.ts rename to examples/transaction-management/with-transaction-webhooks/src/app/api/tx-send/route.ts diff --git a/examples/transaction-management/with-tx-webhooks/src/app/globals.css b/examples/transaction-management/with-transaction-webhooks/src/app/globals.css similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/app/globals.css rename to examples/transaction-management/with-transaction-webhooks/src/app/globals.css diff --git a/examples/transaction-management/with-tx-webhooks/src/app/layout.tsx b/examples/transaction-management/with-transaction-webhooks/src/app/layout.tsx similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/app/layout.tsx rename to examples/transaction-management/with-transaction-webhooks/src/app/layout.tsx diff --git a/examples/transaction-management/with-tx-webhooks/src/app/page.tsx b/examples/transaction-management/with-transaction-webhooks/src/app/page.tsx similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/app/page.tsx rename to examples/transaction-management/with-transaction-webhooks/src/app/page.tsx diff --git a/examples/transaction-management/with-tx-webhooks/src/app/tk-tokens.css b/examples/transaction-management/with-transaction-webhooks/src/app/tk-tokens.css similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/app/tk-tokens.css rename to examples/transaction-management/with-transaction-webhooks/src/app/tk-tokens.css diff --git a/examples/transaction-management/with-tx-webhooks/src/app/webhook/balance-updates/route.ts b/examples/transaction-management/with-transaction-webhooks/src/app/webhook/balance-updates/route.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/app/webhook/balance-updates/route.ts rename to examples/transaction-management/with-transaction-webhooks/src/app/webhook/balance-updates/route.ts diff --git a/examples/transaction-management/with-tx-webhooks/src/app/webhook/tx-updates/route.ts b/examples/transaction-management/with-transaction-webhooks/src/app/webhook/tx-updates/route.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/app/webhook/tx-updates/route.ts rename to examples/transaction-management/with-transaction-webhooks/src/app/webhook/tx-updates/route.ts diff --git a/examples/transaction-management/with-tx-webhooks/src/components/BalanceFeed.tsx b/examples/transaction-management/with-transaction-webhooks/src/components/BalanceFeed.tsx similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/components/BalanceFeed.tsx rename to examples/transaction-management/with-transaction-webhooks/src/components/BalanceFeed.tsx diff --git a/examples/transaction-management/with-tx-webhooks/src/components/TxStatusFeed.tsx b/examples/transaction-management/with-transaction-webhooks/src/components/TxStatusFeed.tsx similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/components/TxStatusFeed.tsx rename to examples/transaction-management/with-transaction-webhooks/src/components/TxStatusFeed.tsx diff --git a/examples/transaction-management/with-tx-webhooks/src/lib/env.ts b/examples/transaction-management/with-transaction-webhooks/src/lib/env.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/lib/env.ts rename to examples/transaction-management/with-transaction-webhooks/src/lib/env.ts diff --git a/examples/transaction-management/with-tx-webhooks/src/lib/turnkey.ts b/examples/transaction-management/with-transaction-webhooks/src/lib/turnkey.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/lib/turnkey.ts rename to examples/transaction-management/with-transaction-webhooks/src/lib/turnkey.ts diff --git a/examples/transaction-management/with-tx-webhooks/src/lib/types.ts b/examples/transaction-management/with-transaction-webhooks/src/lib/types.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/lib/types.ts rename to examples/transaction-management/with-transaction-webhooks/src/lib/types.ts diff --git a/examples/transaction-management/with-tx-webhooks/src/lib/webhook-events.ts b/examples/transaction-management/with-transaction-webhooks/src/lib/webhook-events.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/lib/webhook-events.ts rename to examples/transaction-management/with-transaction-webhooks/src/lib/webhook-events.ts diff --git a/examples/transaction-management/with-tx-webhooks/src/scripts/register-webhook.ts b/examples/transaction-management/with-transaction-webhooks/src/scripts/register-webhook.ts similarity index 100% rename from examples/transaction-management/with-tx-webhooks/src/scripts/register-webhook.ts rename to examples/transaction-management/with-transaction-webhooks/src/scripts/register-webhook.ts diff --git a/examples/transaction-management/with-tx-webhooks/tsconfig.json b/examples/transaction-management/with-transaction-webhooks/tsconfig.json similarity index 100% rename from examples/transaction-management/with-tx-webhooks/tsconfig.json rename to examples/transaction-management/with-transaction-webhooks/tsconfig.json diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 36f9a637c2..3d90daad03 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2661,25 +2661,6 @@ importers: specifier: 5.4.3 version: 5.4.3 - examples/defi/execute-swap: - dependencies: - '@turnkey/sdk-server': - specifier: workspace:* - version: link:../../../packages/sdk-server - dotenv: - specifier: ^16.0.3 - version: 16.6.1 - prompts: - specifier: ^2.4.2 - version: 2.4.2 - devDependencies: - '@types/prompts': - specifier: ^2.4.2 - version: 2.4.9 - typescript: - specifier: 5.4.3 - version: 5.4.3 - examples/defi/solana-usdc-swap: dependencies: '@solana/spl-token': @@ -3133,6 +3114,25 @@ importers: specifier: 5.4.3 version: 5.4.3 + examples/defi/with-swap: + dependencies: + '@turnkey/sdk-server': + specifier: workspace:* + version: link:../../../packages/sdk-server + dotenv: + specifier: ^16.0.3 + version: 16.6.1 + prompts: + specifier: ^2.4.2 + version: 2.4.2 + devDependencies: + '@types/prompts': + specifier: ^2.4.2 + version: 2.4.9 + typescript: + specifier: 5.4.3 + version: 5.4.3 + examples/defi/with-uniswap: dependencies: '@turnkey/ethers': @@ -4540,11 +4540,8 @@ importers: specifier: 5.4.3 version: 5.4.3 - examples/transaction-management/with-nonce-manager: + examples/transaction-management/with-evm-paymaster: dependencies: - '@turnkey/ethers': - specifier: workspace:* - version: link:../../../packages/ethers '@turnkey/sdk-server': specifier: workspace:* version: link:../../../packages/sdk-server @@ -4554,9 +4551,22 @@ importers: ethers: specifier: ^6.10.0 version: 6.15.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) + prompts: + specifier: ^2.4.2 + version: 2.4.2 + devDependencies: + '@types/prompts': + specifier: ^2.4.2 + version: 2.4.2 + typescript: + specifier: 5.4.3 + version: 5.4.3 - examples/transaction-management/with-paymaster: + examples/transaction-management/with-nonce-manager: dependencies: + '@turnkey/ethers': + specifier: workspace:* + version: link:../../../packages/ethers '@turnkey/sdk-server': specifier: workspace:* version: link:../../../packages/sdk-server @@ -4566,16 +4576,6 @@ importers: ethers: specifier: ^6.10.0 version: 6.15.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - prompts: - specifier: ^2.4.2 - version: 2.4.2 - devDependencies: - '@types/prompts': - specifier: ^2.4.2 - version: 2.4.2 - typescript: - specifier: 5.4.3 - version: 5.4.3 examples/transaction-management/with-solana-paymaster: dependencies: @@ -4624,7 +4624,7 @@ importers: specifier: 5.4.3 version: 5.4.3 - examples/transaction-management/with-tx-webhooks: + examples/transaction-management/with-transaction-webhooks: dependencies: '@solana/spl-token': specifier: ^0.4.14