chore: KEEP-230 remove Para SDK and supporting code#1148
Draft
chore: KEEP-230 remove Para SDK and supporting code#1148
Conversation
…ng code Para signing was retired in PR #983; this follow-up removes the now-dead surface area so Turnkey is the only wallet path. - Drop @getpara/ethers-v6-integration and @getpara/server-sdk from package.json + pnpm-lock; delete lib/para/, lib/encryption.ts (Para MPC user-share helpers), and Para spec docs. - Replace the Para-backed viem LocalAccount used by sponsored-client.ts with a Turnkey-backed adapter (lib/web3/turnkey-viem-account.ts) that signs through the Turnkey API client. Move org-scoped wallet helpers out of lib/para/ to lib/web3/wallet-helpers.ts and drop the deprecated user-id-keyed lookups. - Delete Para-only API routes (refresh-share, share) and strip the provider="turnkey" filter from export-key/verify since provider is going away. - Drop the Para columns (provider, para_wallet_id, user_share) and rename para_wallets -> organization_wallets via migration 0069. Update Drizzle schema, relations, and the prometheus / db-metrics collectors to drop the Para gauge and provider split. - Remove Para test infrastructure: delete the eip7702-spike integration test, the Para portal cleanup logic in the Playwright e2e helpers, and the seed-test-wallet / fund-test-wallet scripts. Update transaction-flow + write-contract-workflow tests to skip on missing Turnkey env (instead of missing PARA_*). - Strip PARA_* env vars from staging / prod / pr-environment helm values, the e2e GitHub workflow, and the setup-e2e-db action.
9bd986e to
6f4a796
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to PR #983 (Para signing decom). Removes the remaining Para surface area now that Turnkey is the sole wallet provider.
@getpara/ethers-v6-integrationand@getpara/server-sdk; deleteslib/para/,lib/encryption.ts(Para MPC user-share helpers), and thespecs/web3/PARA_*docs.LocalAccountused by the sponsored ERC-4337 client with a Turnkey-backed adapter (lib/web3/turnkey-viem-account.ts). Moves wallet helpers out oflib/para/tolib/web3/wallet-helpers.tsand drops the deprecated user-id-keyed lookups./api/user/wallet/refresh-share,/api/user/wallet/share) and removes theprovider = 'turnkey'filter fromexport-key/verifysince the column is going away.0069_keep_230_decom_para: deletes any non-Turnkey rows, dropsprovider,para_wallet_id,user_share, and renamespara_walletstoorganization_wallets(with FK + index renames).tests/integration/eip7702-spike.{test.ts,d.ts}, the Para Portal API cleanup branch intests/e2e/playwright/utils/cleanup.ts, and theseed-test-wallet/fund-test-walletscripts. Switchestransaction-flow+write-contract-workflowskip-conditions fromPARA_*toTURNKEY_*env vars.PARA_*env vars from helm values (staging, prod, pr-environment), the e2e GitHub workflow, and thesetup-e2e-dbaction.Test plan
pnpm type-checkpassespnpm checkintroduces no new lint errors vs staging baselinepnpm test:unitpasses (in particulartests/unit/sponsored-client.test.tsafter the Turnkey adapter swap)pnpm test:integrationpasses (no Para-touching integration tests remain)transfer-fundsworkflow, verify on-chainorganization_walletstable and surviving columnsNEXT_PUBLIC_GAS_SPONSORSHIP_ENABLED=true