Skip to content

Some tx mgmt example cleanup/standardization - #1640

Merged
truham merged 1 commit into
mainfrom
derauk/sdk-tx-mgmt-cleanup
Nov 4, 2026
Merged

truham merged 1 commit into
mainfrom
derauk/sdk-tx-mgmt-cleanup

Conversation

@DeRauk

@DeRauk DeRauk commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Summary & Motivation

  • Removed early access notes on earn and swaps
  • Standardized example names to transaction instead of tx
  • Moved the swap example to with-swap to match with-earn and other examples

@socket-security

socket-security Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Unresolved issues break frozen-lockfile installs, expose unauthenticated wallet transfers, misreport failed transactions as successful, and allow stale balances to be paired with the wrong sender or network.

No open issues 🎉

What changed in this PR

This PR standardizes example names and locations across the SDK repository and removes introductory access notices from the Earn and Swap documentation.

Changes:

  • Relocates the webhook and EVM paymaster examples to with-transaction-webhooks and with-evm-paymaster.
  • Moves the swap example to with-swap and updates its setup path.
  • Removes introductory early-access and closed-beta notices from the Earn and Swap READMEs.
File Description
examples/​transaction-management/​with-transaction-webhooks/​tsconfig.json TypeScript configuration at the renamed location.
examples/​transaction-management/​with-transaction-webhooks/​src/​scripts/​register-webhook.ts Relocates webhook registration tooling.
examples/​transaction-management/​with-transaction-webhooks/​src/​lib/​webhook-events.ts Relocates in-memory webhook event stores.
examples/​transaction-management/​with-transaction-webhooks/​src/​lib/​types.ts Relocates webhook payload and stream types.
examples/​transaction-management/​with-transaction-webhooks/​src/​lib/​turnkey.ts Relocates balance and transaction helpers.
examples/​transaction-management/​with-transaction-webhooks/​src/​lib/​env.ts Relocates server environment accessors.
examples/​transaction-management/​with-transaction-webhooks/​src/​components/​TxStatusFeed.tsx Relocates the transaction-status feed.
examples/​transaction-management/​with-transaction-webhooks/​src/​components/​BalanceFeed.tsx Relocates the balance-event feed.
examples/​transaction-management/​with-transaction-webhooks/​src/​app/​webhook/​tx-updates/​route.ts Relocates the transaction webhook receiver.
examples/​transaction-management/​with-transaction-webhooks/​src/​app/​webhook/​balance-updates/​route.ts Relocates the balance webhook receiver.
examples/​transaction-management/​with-transaction-webhooks/​src/​app/​tk-tokens.css Carries design tokens into the renamed example.
examples/​transaction-management/​with-transaction-webhooks/​src/​app/​page.tsx Relocates the balance and webhook dashboard.
examples/​transaction-management/​with-transaction-webhooks/​src/​app/​layout.tsx Relocates the application layout and metadata.
examples/​transaction-management/​with-transaction-webhooks/​src/​app/​globals.css Carries dashboard styling into the renamed example.
examples/​transaction-management/​with-transaction-webhooks/​src/​app/​api/​tx-send/​route.ts Relocates the asset-transfer endpoint.
examples/​transaction-management/​with-transaction-webhooks/​src/​app/​api/​tx-events/​route.ts Relocates transaction-event streaming.
examples/​transaction-management/​with-transaction-webhooks/​src/​app/​api/​eth-send/​route.ts Preserves the transfer endpoint alias.
examples/​transaction-management/​with-transaction-webhooks/​src/​app/​api/​balances/​route.ts Relocates balance lookup handling.
examples/​transaction-management/​with-transaction-webhooks/​src/​app/​api/​balance-events/​route.ts Relocates balance-event streaming.
examples/​transaction-management/​with-transaction-webhooks/​README.md Updates the example name and setup path.
examples/​transaction-management/​with-transaction-webhooks/​public/​turnkey-wordmark.svg Relocates the wordmark asset.
examples/​transaction-management/​with-transaction-webhooks/​public/​turnkey-icon.svg Relocates the icon asset.
examples/​transaction-management/​with-transaction-webhooks/​package.json Supplies scripts and dependencies at the new location.
examples/​transaction-management/​with-transaction-webhooks/​next.config.ts Relocates Next.js configuration.
examples/​transaction-management/​with-transaction-webhooks/​next-env.d.ts Relocates Next.js type references.
examples/​transaction-management/​with-transaction-webhooks/​.env.example Relocates webhook and network configuration placeholders.
examples/​transaction-management/​with-evm-paymaster/​tsconfig.json Relocates TypeScript configuration.
examples/​transaction-management/​with-evm-paymaster/​src/​turnkey.ts Relocates client and status-polling helpers.
examples/​transaction-management/​with-evm-paymaster/​src/​tokens.ts Relocates Base USDC configuration.
examples/​transaction-management/​with-evm-paymaster/​src/​index.ts Relocates the sponsored-transfer script.
examples/​transaction-management/​with-evm-paymaster/​README.md Carries setup documentation into the renamed example.
examples/​transaction-management/​with-evm-paymaster/​package.json Relocates package scripts and dependencies.
examples/​transaction-management/​with-evm-paymaster/​CHANGELOG.md Preserves package release history.
examples/​transaction-management/​with-evm-paymaster/​.env.local.example Relocates credential and RPC placeholders.
examples/​defi/​with-swap/​tsconfig.json Relocates TypeScript configuration.
examples/​defi/​with-swap/​src/​turnkey.ts Relocates swap client and polling helpers.
examples/​defi/​with-swap/​src/​index.ts Relocates the quote-and-execute swap script.
examples/​defi/​with-swap/​README.md Updates naming and setup path; removes the introductory beta notice.
examples/​defi/​with-swap/​package.json Relocates package scripts and dependencies.
examples/​defi/​with-swap/​.env.local.example Relocates swap configuration placeholders.
examples/​defi/​with-earn/​README.md Removes the introductory early-access notice.

Review effort: Balanced

@DeRauk
DeRauk force-pushed the derauk/sdk-tx-mgmt-cleanup branch from 7448854 to 34ea5f4 Compare November 3, 2026 21:56
@truham
truham merged commit 6e8db25 into main Nov 4, 2026
8 checks passed
@truham
truham deleted the derauk/sdk-tx-mgmt-cleanup branch November 4, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants