Skip to content

Codex/privy 7702 gmx withdraw#35

Open
david30907d wants to merge 9 commits into
mainfrom
codex/privy-7702-gmx-withdraw
Open

Codex/privy 7702 gmx withdraw#35
david30907d wants to merge 9 commits into
mainfrom
codex/privy-7702-gmx-withdraw

Conversation

@david30907d

Copy link
Copy Markdown
Member

Summary

<1-2 sentences: what changed and why>

Changes

Test Plan

  • pnpm check:local passes locally
  • <App-specific verification, for example pnpm --filter @zapengine/frontend test:unit>
  • <Manual verification, if any>

Risk

<What could break? Include affected services and blast radius.>

Rollback

Checklist

  • Followed conventions in the relevant CLAUDE.md files
  • Updated .env.example if added env-var references
  • If touching strategy or signal code: ran pnpm --filter @zapengine/analytics-engine test:strategy-snapshot:fast
  • If touching cross-service contracts: confirmed pnpm contracts:check covers the change

Prevent LateInitializationError: field 'client' has not been initialized
when the app runs without SUPABASE_URL/SUPABASE_ANON_KEY dart-defines.

Changes:
- SupabaseService.client now returns null (instead of throwing) when
  Supabase.instance has not been initialized, via try-catch guard
- EpisodeService, AuthService, and SupabaseLikesStore all gracefully
  handle a null client by returning empty results or throwing a clear
  AuthServiceException with 'Supabase not configured.' message

Tests added (all 42 passing):
- supabase_service_test.dart: new - verifies null client & isConfigured
- episode_service_test.dart: 4 new cases for null client degradation
- auth_service_test.dart: 1 new case for null client exception
- likes_service_test.dart: 3 new cases for null client safety
@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zap-engine-frontend Ready Ready Preview, Comment Jun 10, 2026 11:13am
zap-engine-landing-page Ready Ready Preview, Comment Jun 10, 2026 11:13am

The build output files (index-BKk-xE2V.js at 1.87MB and core-2aInkfjF.js at 541kB)
exceeded the previous 380KB limit, preventing them from being precached.
…ipts

- Add hasCorruptedSecondaryScript() to detect scripts that are:
  - Empty/whitespace-only
  - Exceed 30k chars AND 4x the canonical script length
  - Contain runaway repeated phrases (same phrase 20+ times)
- Regenerate corrupted scripts by re-translating from canonical
- Wrap Google TTS failures with chunk diagnostics (voice, lang, bytes, chars, grpc code/details)
…and fix viem mock in WalletProvider

zerodev.test.ts: replace stash-based setup with beforeEach/afterEach for cleaner teardown
WalletProvider.test.tsx: use async importOriginal in viem mock to preserve other exports
Frontend:
- Remove @zerodev/sdk dependency and zerodev.ts config
- Add PrivyWalletService using Privy's atomic batch endpoint
- Make walletClient optional in executeDepositPlan for Privy path
- Add balance checks in useGmxDeposit before execution

account-engine:
- Add wallet execution routes and services for Privy integration
- Add @privy-io/node dependency

types:
- Add privy-wallet.ts with Privy wallet API types

podcast-pipeline:
- Append classroom audio to main HLS instead of separate track
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.

2 participants