From c8f374365b1b2ec86e637c43e8c945dd870c348c Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Fri, 3 Apr 2026 21:25:15 +0530 Subject: [PATCH 001/425] feat: add capacitor platform detection and native webauthn utils platform detection (isCapacitor, getApiBaseUrl, getPlatform) and native passkey signing extracted from poc into reusable modules. --- src/utils/capacitor.ts | 80 ++++++++++++++ src/utils/native-webauthn.ts | 208 +++++++++++++++++++++++++++++++++++ 2 files changed, 288 insertions(+) create mode 100644 src/utils/capacitor.ts create mode 100644 src/utils/native-webauthn.ts diff --git a/src/utils/capacitor.ts b/src/utils/capacitor.ts new file mode 100644 index 0000000000..f6534ffb9b --- /dev/null +++ b/src/utils/capacitor.ts @@ -0,0 +1,80 @@ +// platform detection and api routing for capacitor native app + +/** + * returns true when running inside a capacitor webview (ios or android native app) + */ +export function isCapacitor(): boolean { + return typeof window !== 'undefined' && !!(window as any).Capacitor +} + +/** + * returns the platform the app is running on + */ +export function getPlatform(): 'web' | 'ios-native' | 'android-native' | 'ios-pwa' | 'android-pwa' { + if (typeof window === 'undefined') return 'web' + + const capacitor = (window as any).Capacitor + if (capacitor) { + const platform = capacitor.getPlatform?.() + if (platform === 'ios') return 'ios-native' + if (platform === 'android') return 'android-native' + } + + const ua = navigator.userAgent.toLowerCase() + const isStandalone = + (window.matchMedia?.('(display-mode: standalone)')?.matches) || + (window.navigator as any).standalone === true + + if (isStandalone) { + if (/iphone|ipad|ipod/.test(ua)) return 'ios-pwa' + if (/android/.test(ua)) return 'android-pwa' + } + + return 'web' +} + +/** + * returns true when running on android inside capacitor + */ +export function isAndroidNative(): boolean { + return getPlatform() === 'android-native' +} + +/** + * returns true when running on ios inside capacitor + */ +export function isIOSNative(): boolean { + return getPlatform() === 'ios-native' +} + +/** + * returns the base url for api calls + * - in capacitor: returns the production backend url (since /api/ routes don't exist in static export) + * - on web: returns empty string (relative paths work via next.js proxy) + */ +export function getApiBaseUrl(): string { + if (isCapacitor()) { + return process.env.NEXT_PUBLIC_BASE_URL || 'https://peanut.me' + } + return '' +} + +/** + * opens a url in the appropriate way for the current platform + * - on web: window.open with _blank + * - in capacitor: uses @capacitor/browser plugin + */ +export async function openExternalUrl(url: string): Promise { + if (isCapacitor()) { + try { + // @ts-ignore -- @capacitor/browser may not be installed yet + const mod = await import('@capacitor/browser') + await mod.Browser.open({ url }) + } catch { + // fallback if plugin not installed + window.location.href = url + } + } else { + window.open(url, '_blank') + } +} diff --git a/src/utils/native-webauthn.ts b/src/utils/native-webauthn.ts new file mode 100644 index 0000000000..40f60890ca --- /dev/null +++ b/src/utils/native-webauthn.ts @@ -0,0 +1,208 @@ +// native webauthn utilities for capacitor passkey integration +// extracted from the native-poc page (pr #1766) into production-ready modules + +import { keccak256, type Hex, type SignableMessage, encodeAbiParameters } from 'viem' +import { bytesToBigInt, hexToBytes } from 'viem' +// @ts-ignore -- @noble/curves/p256 requires pinning to v1.9.7 (v2 removed this export) +import { p256 } from '@noble/curves/p256' + +// credential request options shape used by the signing callback +interface AllowCredentialDescriptor { + id: string + type: 'public-key' + transports?: string[] +} + +// matches zerodev's WebAuthnKey interface +interface WebAuthnKey { + pubX: bigint + pubY: bigint + authenticatorId: string + authenticatorIdHash: Hex + rpID: string + signMessageCallback?: ( + message: SignableMessage, + rpId: string, + chainId: number, + allowCredentials?: AllowCredentialDescriptor[] + ) => Promise +} + +// --- encoding helpers --- + +function bufferToBase64URL(buffer: ArrayBuffer): string { + const bytes = new Uint8Array(buffer) + let str = '' + for (const byte of bytes) { + str += String.fromCharCode(byte) + } + return btoa(str).replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '') +} + +function base64URLToBytes(base64url: string): Uint8Array { + const base64 = base64url.replace(/-/g, '+').replace(/_/g, '/') + const padded = base64 + '='.repeat((4 - (base64.length % 4)) % 4) + const binary = atob(padded) + const bytes = new Uint8Array(binary.length) + for (let i = 0; i < binary.length; i++) { + bytes[i] = binary.charCodeAt(i) + } + return bytes +} + +function uint8ArrayToHexString(arr: Uint8Array): Hex { + return `0x${Array.from(arr) + .map((b) => b.toString(16).padStart(2, '0')) + .join('')}` as Hex +} + +// --- signature parsing --- + +// secp256r1 (p256) curve order +const SECP256R1_N = BigInt('0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551') + +/** + * parses a DER-encoded ECDSA signature and normalizes the S value to prevent malleability + * uses @noble/curves/p256 for reliable DER parsing + */ +function parseAndNormalizeSig(derSig: Hex): { r: bigint; s: bigint } { + const sigWithoutPrefix = derSig.startsWith('0x') ? derSig.slice(2) : derSig + const parsedSignature = p256.Signature.fromDER(sigWithoutPrefix) + const compactHex = parsedSignature.toCompactHex() + const bSig = hexToBytes(`0x${compactHex}`) + const bR = bSig.slice(0, 32) + const bS = bSig.slice(32) + + const r = bytesToBigInt(bR) + let s = bytesToBigInt(bS) + + // ensure low S (<= N/2) to avoid signature malleability + if (s > SECP256R1_N / 2n) { + s = SECP256R1_N - s + } + return { r, s } +} + +// --- public key parsing --- + +/** + * extracts p256 public key coordinates from SPKI DER-encoded public key returned by + * the capacitor-webauthn plugin during registration. + * + * the returned WebAuthnKey object is compatible with zerodev's passkey-validator. + */ +export async function parsePublicKeyToWebAuthnKey( + publicKeyBase64: string, + authenticatorId: string, + rpId: string +): Promise { + const spkiDer = base64URLToBytes(publicKeyBase64) + + const key = await crypto.subtle.importKey( + 'spki', + spkiDer as BufferSource, + { name: 'ECDSA', namedCurve: 'P-256' }, + true, + ['verify'] + ) + + const rawKey = new Uint8Array(await crypto.subtle.exportKey('raw', key)) + + // raw format: 0x04 (uncompressed) + X (32 bytes) + Y (32 bytes) + const pubKeyX = rawKey.slice(1, 33) + const pubKeyY = rawKey.slice(33, 65) + + const authenticatorIdBytes = base64URLToBytes(authenticatorId) + const authenticatorIdHash = keccak256(uint8ArrayToHexString(authenticatorIdBytes)) + + return { + pubX: BigInt(uint8ArrayToHexString(pubKeyX)), + pubY: BigInt(uint8ArrayToHexString(pubKeyY)), + authenticatorId, + authenticatorIdHash, + rpID: rpId, + } +} + +// --- signing callback --- + +// chains that support the RIP-7212 precompile for on-chain p256 verification +const RIP7212_CHAIN_IDS = [137, 80001] // polygon mainnet, polygon mumbai + +/** + * creates a signMessageCallback that uses the capacitor-webauthn native plugin + * instead of the browser WebAuthn API. this is required on android where the + * browser WebAuthn API doesn't work inside a webview. + * + * the callback produces ABI-encoded signatures in the format zerodev expects + * for on-chain passkey verification. + */ +export function createNativeSignMessageCallback(rpId: string) { + return async ( + message: SignableMessage, + _rpId: string, + chainId: number, + allowCredentials?: AllowCredentialDescriptor[] + ): Promise => { + // @ts-ignore -- capacitor-webauthn is only available in native builds + const { Webauthn } = await import('capacitor-webauthn') + + // convert message to hex string + let messageContent: string + if (typeof message === 'string') { + messageContent = message + } else if ('raw' in message && typeof message.raw === 'string') { + messageContent = message.raw + } else if ('raw' in message && message.raw instanceof Uint8Array) { + messageContent = uint8ArrayToHexString(message.raw) + } else { + throw new Error('unsupported message format for native signing') + } + + // convert hex to base64url challenge + const formattedMessage = messageContent.startsWith('0x') ? messageContent.slice(2) : messageContent + const messageBytes = new Uint8Array(formattedMessage.match(/.{1,2}/g)!.map((byte) => parseInt(byte, 16))) + const challenge = bufferToBase64URL(messageBytes.buffer) + + const assertionOptions = { + challenge, + rpId, + allowCredentials: allowCredentials?.map((cred) => ({ + id: cred.id, + type: 'public-key' as const, + })), + userVerification: 'required' as const, + timeout: 60000, + } + + const cred: any = await Webauthn.startAuthentication(assertionOptions) + + // parse response in zerodev's expected format + const authenticatorData = base64URLToBytes(cred.response.authenticatorData) + const authenticatorDataHex = uint8ArrayToHexString(authenticatorData) + + const clientDataJSON = atob(cred.response.clientDataJSON.replace(/-/g, '+').replace(/_/g, '/')) + + // zerodev looks for '"type":"webauthn.get"' in clientDataJSON + const beforeType = BigInt(clientDataJSON.lastIndexOf('"type":"webauthn.get"')) + + // parse and normalize signature + const signatureBytes = base64URLToBytes(cred.response.signature) + const signatureHex = uint8ArrayToHexString(signatureBytes) + const { r, s } = parseAndNormalizeSig(signatureHex) + + const isRIP7212Supported = RIP7212_CHAIN_IDS.includes(chainId) + + return encodeAbiParameters( + [ + { name: 'authenticatorData', type: 'bytes' }, + { name: 'clientDataJSON', type: 'string' }, + { name: 'responseTypeLocation', type: 'uint256' }, + { name: 'r', type: 'uint256' }, + { name: 's', type: 'uint256' }, + { name: 'usePrecompiled', type: 'bool' }, + ], + [authenticatorDataHex, clientDataJSON, beforeType, r, s, isRIP7212Supported] + ) + } +} From 0fcaae5a2321b06d8c2b59d4ab8f7a1ea4672af2 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Fri, 3 Apr 2026 21:25:23 +0530 Subject: [PATCH 002/425] feat: integrate native passkeys into production auth flow - hardcode rpId to peanut.me in capacitor context - attach native signing callback on android (uses capacitor-webauthn plugin) - ios uses existing browser webauthn via wkwebview (no plugin needed) - skip browser-level passkey checks in capacitor (handled natively) --- src/hooks/usePasskeySupport.ts | 10 ++++++++++ src/hooks/useZeroDev.ts | 23 +++++++++++++++++++++-- src/utils/passkeyPreflight.ts | 16 ++++++++++++++++ 3 files changed, 47 insertions(+), 2 deletions(-) diff --git a/src/hooks/usePasskeySupport.ts b/src/hooks/usePasskeySupport.ts index 81569f300c..3fa98213f4 100644 --- a/src/hooks/usePasskeySupport.ts +++ b/src/hooks/usePasskeySupport.ts @@ -2,6 +2,7 @@ import { useCallback, useEffect, useState } from 'react' import { browserSupportsWebAuthn } from '@simplewebauthn/browser' +import { isCapacitor } from '@/utils/capacitor' export interface PasskeySupportResult { isSupported: boolean @@ -30,6 +31,15 @@ export function usePasskeySupport(): PasskeySupportResult { setError(null) try { + // in capacitor, passkeys are handled natively (android via plugin, ios via WKWebView) + // skip browser-level checks since they may report false negatives in a webview + if (isCapacitor()) { + setBrowserSupported(true) + setConditionalMediationSupported(true) + setIsSupported(true) + return + } + // Check basic WebAuthn support first const basicWebAuthnSupport = browserSupportsWebAuthn() setBrowserSupported(basicWebAuthnSupport) diff --git a/src/hooks/useZeroDev.ts b/src/hooks/useZeroDev.ts index adff7930de..443203cbbb 100644 --- a/src/hooks/useZeroDev.ts +++ b/src/hooks/useZeroDev.ts @@ -15,6 +15,8 @@ import { captureException } from '@sentry/nextjs' import { invitesApi } from '@/services/invites' import posthog from 'posthog-js' import { ANALYTICS_EVENTS } from '@/constants/analytics.consts' +import { isCapacitor, isAndroidNative } from '@/utils/capacitor' +import { createNativeSignMessageCallback } from '@/utils/native-webauthn' // types type UserOpEncodedParams = { @@ -72,14 +74,24 @@ export const useZeroDev = () => { dispatch(zerodevActions.setIsRegistering(true)) try { + // in capacitor, rpId must be the production domain (peanut.me) to match + // assetlinks.json (android) and AASA (ios) for passkey portability + const rpId = isCapacitor() ? 'peanut.me' : window.location.hostname.replace(/^www\./, '') + const webAuthnKey = await toWebAuthnKey({ passkeyName: _getPasskeyName(username), passkeyServerUrl: consts.PASSKEY_SERVER_URL as string, mode: WebAuthnMode.Register, passkeyServerHeaders: {}, - rpID: window.location.hostname.replace(/^www\./, ''), + rpID: rpId, }) + // on android native, attach the native signing callback so zerodev + // uses the capacitor-webauthn plugin instead of browser WebAuthn api + if (isAndroidNative()) { + webAuthnKey.signMessageCallback = createNativeSignMessageCallback(rpId) + } + const inviteCodeFromCookie = getFromCookie('inviteCode') // invite code can also be store in cookies, so we need to check both @@ -139,14 +151,21 @@ export const useZeroDev = () => { passkeyServerHeaders['x-username'] = user.user.username } + const rpId = isCapacitor() ? 'peanut.me' : window.location.hostname.replace(/^www\./, '') + const webAuthnKey = await toWebAuthnKey({ passkeyName: '[]', passkeyServerUrl: consts.PASSKEY_SERVER_URL as string, mode: WebAuthnMode.Login, passkeyServerHeaders, - rpID: window.location.hostname.replace(/^www\./, ''), + rpID: rpId, }) + // on android native, attach the native signing callback + if (isAndroidNative()) { + webAuthnKey.signMessageCallback = createNativeSignMessageCallback(rpId) + } + setWebAuthnKey(webAuthnKey) saveToCookie(WEB_AUTHN_COOKIE_KEY, webAuthnKey, 90) } catch (e) { diff --git a/src/utils/passkeyPreflight.ts b/src/utils/passkeyPreflight.ts index b34fa145db..faeb039310 100644 --- a/src/utils/passkeyPreflight.ts +++ b/src/utils/passkeyPreflight.ts @@ -5,6 +5,8 @@ * provides early feedback to users about potential issues */ +import { isCapacitor } from '@/utils/capacitor' + export interface PasskeyPreflightResult { isSupported: boolean warning: string | null @@ -28,6 +30,20 @@ export interface PasskeyPreflightResult { * @returns preflight result with support status, warnings, and diagnostic data */ export async function checkPasskeySupport(): Promise { + // in capacitor, passkeys are handled natively — skip browser-level preflight checks + if (isCapacitor()) { + return { + isSupported: true, + warning: null, + diagnostics: { + hasPublicKeyCredential: true, + isHttps: true, + isAndroid: /android/i.test(navigator.userAgent), + rpId: 'peanut.me', + }, + } + } + // capture rpId for debugging - this is what will be used for passkey registration const rpId = window.location.hostname.replace(/^www\./, '') From b2969d1a28e072a5b08bcd61ea9dc6e9ddd4ff92 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Tue, 7 Apr 2026 21:45:19 +0530 Subject: [PATCH 003/425] fix: resolve webpack build error and prettier formatting - use webpackIgnore comment for capacitor-webauthn dynamic import (module only exists in native builds, not in web bundle) - run prettier on all changed files --- src/utils/capacitor.ts | 3 +-- src/utils/native-webauthn.ts | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/utils/capacitor.ts b/src/utils/capacitor.ts index f6534ffb9b..cc2a2f28cf 100644 --- a/src/utils/capacitor.ts +++ b/src/utils/capacitor.ts @@ -22,8 +22,7 @@ export function getPlatform(): 'web' | 'ios-native' | 'android-native' | 'ios-pw const ua = navigator.userAgent.toLowerCase() const isStandalone = - (window.matchMedia?.('(display-mode: standalone)')?.matches) || - (window.navigator as any).standalone === true + window.matchMedia?.('(display-mode: standalone)')?.matches || (window.navigator as any).standalone === true if (isStandalone) { if (/iphone|ipad|ipod/.test(ua)) return 'ios-pwa' diff --git a/src/utils/native-webauthn.ts b/src/utils/native-webauthn.ts index 40f60890ca..290ef23436 100644 --- a/src/utils/native-webauthn.ts +++ b/src/utils/native-webauthn.ts @@ -144,8 +144,10 @@ export function createNativeSignMessageCallback(rpId: string) { chainId: number, allowCredentials?: AllowCredentialDescriptor[] ): Promise => { - // @ts-ignore -- capacitor-webauthn is only available in native builds - const { Webauthn } = await import('capacitor-webauthn') + // dynamic import that webpack can't statically analyze — capacitor-webauthn + // is only available in native builds, not in the web bundle + const pluginName = 'capacitor-webauthn' + const { Webauthn } = await import(/* webpackIgnore: true */ pluginName) // convert message to hex string let messageContent: string From c5cd5f4a3eaa4d20da9597715e95984a8a462a96 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Tue, 7 Apr 2026 21:48:41 +0530 Subject: [PATCH 004/425] chore: use vercel preview url as rpid for testing temporary change to test passkey portability between web and native app on the preview deployment. revert to peanut.me before production. --- src/hooks/useZeroDev.ts | 8 +++++--- src/utils/passkeyPreflight.ts | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/hooks/useZeroDev.ts b/src/hooks/useZeroDev.ts index 443203cbbb..7579af4056 100644 --- a/src/hooks/useZeroDev.ts +++ b/src/hooks/useZeroDev.ts @@ -74,9 +74,11 @@ export const useZeroDev = () => { dispatch(zerodevActions.setIsRegistering(true)) try { - // in capacitor, rpId must be the production domain (peanut.me) to match - // assetlinks.json (android) and AASA (ios) for passkey portability - const rpId = isCapacitor() ? 'peanut.me' : window.location.hostname.replace(/^www\./, '') + // in capacitor, rpId must match the domain serving assetlinks.json / AASA + // TODO: change to 'peanut.me' before production release + const rpId = isCapacitor() + ? 'peanut-wallet-git-feat-native-app-squirrellabs.vercel.app' + : window.location.hostname.replace(/^www\./, '') const webAuthnKey = await toWebAuthnKey({ passkeyName: _getPasskeyName(username), diff --git a/src/utils/passkeyPreflight.ts b/src/utils/passkeyPreflight.ts index faeb039310..e06801f935 100644 --- a/src/utils/passkeyPreflight.ts +++ b/src/utils/passkeyPreflight.ts @@ -39,7 +39,8 @@ export async function checkPasskeySupport(): Promise { hasPublicKeyCredential: true, isHttps: true, isAndroid: /android/i.test(navigator.userAgent), - rpId: 'peanut.me', + // TODO: change to 'peanut.me' before production release + rpId: 'peanut-wallet-git-feat-native-app-squirrellabs.vercel.app', }, } } From 5468862ed8f37247641030cc4bbe87ac9f8989aa Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Tue, 7 Apr 2026 21:55:07 +0530 Subject: [PATCH 005/425] feat: add capacitor android project and native build config - android project from poc with camera/mic permissions and credentials-play-services-auth for passkey support - capacitor config pointing to vercel preview for testing - assetlinks.json with debug signing key - native build script and next.config for static export --- android/.gitignore | 101 +++++++ android/app/.gitignore | 2 + android/app/build.gradle | 59 ++++ android/app/capacitor.build.gradle | 19 ++ android/app/proguard-rules.pro | 21 ++ .../myapp/ExampleInstrumentedTest.java | 26 ++ android/app/src/main/AndroidManifest.xml | 43 +++ .../app/src/main/assets/capacitor.config.json | 14 + .../src/main/assets/capacitor.plugins.json | 6 + android/app/src/main/assets/public/cordova.js | 0 .../src/main/assets/public/cordova_plugins.js | 0 .../java/com/peanut/app/MainActivity.java | 5 + .../main/res/drawable-land-hdpi/splash.png | Bin 0 -> 7705 bytes .../main/res/drawable-land-mdpi/splash.png | Bin 0 -> 4040 bytes .../main/res/drawable-land-xhdpi/splash.png | Bin 0 -> 9251 bytes .../main/res/drawable-land-xxhdpi/splash.png | Bin 0 -> 13984 bytes .../main/res/drawable-land-xxxhdpi/splash.png | Bin 0 -> 17683 bytes .../main/res/drawable-port-hdpi/splash.png | Bin 0 -> 7934 bytes .../main/res/drawable-port-mdpi/splash.png | Bin 0 -> 4096 bytes .../main/res/drawable-port-xhdpi/splash.png | Bin 0 -> 9875 bytes .../main/res/drawable-port-xxhdpi/splash.png | Bin 0 -> 13346 bytes .../main/res/drawable-port-xxxhdpi/splash.png | Bin 0 -> 17489 bytes .../drawable-v24/ic_launcher_foreground.xml | 34 +++ .../res/drawable/ic_launcher_background.xml | 170 ++++++++++++ android/app/src/main/res/drawable/splash.png | Bin 0 -> 4040 bytes .../app/src/main/res/layout/activity_main.xml | 12 + .../res/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../mipmap-anydpi-v26/ic_launcher_round.xml | 5 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 2786 bytes .../mipmap-hdpi/ic_launcher_foreground.png | Bin 0 -> 3450 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 4341 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 1869 bytes .../mipmap-mdpi/ic_launcher_foreground.png | Bin 0 -> 2110 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 2725 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 3981 bytes .../mipmap-xhdpi/ic_launcher_foreground.png | Bin 0 -> 5036 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 6593 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 6644 bytes .../mipmap-xxhdpi/ic_launcher_foreground.png | Bin 0 -> 9793 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 10455 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 9441 bytes .../mipmap-xxxhdpi/ic_launcher_foreground.png | Bin 0 -> 15529 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 15916 bytes .../res/values/ic_launcher_background.xml | 4 + android/app/src/main/res/values/strings.xml | 7 + android/app/src/main/res/values/styles.xml | 22 ++ android/app/src/main/res/xml/config.xml | 6 + android/app/src/main/res/xml/file_paths.xml | 5 + .../getcapacitor/myapp/ExampleUnitTest.java | 18 ++ android/build.gradle | 29 ++ .../build.gradle | 59 ++++ .../cordova.variables.gradle | 7 + .../src/main/AndroidManifest.xml | 8 + .../src/main/java/.gitkeep | 0 .../src/main/res/.gitkeep | 1 + android/capacitor.settings.gradle | 6 + android/gradle.properties | 22 ++ android/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 43764 bytes .../gradle/wrapper/gradle-wrapper.properties | 7 + android/gradlew | 251 ++++++++++++++++++ android/gradlew.bat | 94 +++++++ android/settings.gradle | 5 + android/variables.gradle | 16 ++ capacitor.config.ts | 23 ++ next.config.native.js | 73 +++++ public/.well-known/assetlinks.json | 27 +- scripts/native-build.js | 233 ++++++++++++++++ 67 files changed, 1429 insertions(+), 16 deletions(-) create mode 100644 android/.gitignore create mode 100644 android/app/.gitignore create mode 100644 android/app/build.gradle create mode 100644 android/app/capacitor.build.gradle create mode 100644 android/app/proguard-rules.pro create mode 100644 android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java create mode 100644 android/app/src/main/AndroidManifest.xml create mode 100644 android/app/src/main/assets/capacitor.config.json create mode 100644 android/app/src/main/assets/capacitor.plugins.json create mode 100644 android/app/src/main/assets/public/cordova.js create mode 100644 android/app/src/main/assets/public/cordova_plugins.js create mode 100644 android/app/src/main/java/com/peanut/app/MainActivity.java create mode 100644 android/app/src/main/res/drawable-land-hdpi/splash.png create mode 100644 android/app/src/main/res/drawable-land-mdpi/splash.png create mode 100644 android/app/src/main/res/drawable-land-xhdpi/splash.png create mode 100644 android/app/src/main/res/drawable-land-xxhdpi/splash.png create mode 100644 android/app/src/main/res/drawable-land-xxxhdpi/splash.png create mode 100644 android/app/src/main/res/drawable-port-hdpi/splash.png create mode 100644 android/app/src/main/res/drawable-port-mdpi/splash.png create mode 100644 android/app/src/main/res/drawable-port-xhdpi/splash.png create mode 100644 android/app/src/main/res/drawable-port-xxhdpi/splash.png create mode 100644 android/app/src/main/res/drawable-port-xxxhdpi/splash.png create mode 100644 android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml create mode 100644 android/app/src/main/res/drawable/ic_launcher_background.xml create mode 100644 android/app/src/main/res/drawable/splash.png create mode 100644 android/app/src/main/res/layout/activity_main.xml create mode 100644 android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 android/app/src/main/res/values/ic_launcher_background.xml create mode 100644 android/app/src/main/res/values/strings.xml create mode 100644 android/app/src/main/res/values/styles.xml create mode 100644 android/app/src/main/res/xml/config.xml create mode 100644 android/app/src/main/res/xml/file_paths.xml create mode 100644 android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java create mode 100644 android/build.gradle create mode 100644 android/capacitor-cordova-android-plugins/build.gradle create mode 100644 android/capacitor-cordova-android-plugins/cordova.variables.gradle create mode 100644 android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml create mode 100644 android/capacitor-cordova-android-plugins/src/main/java/.gitkeep create mode 100644 android/capacitor-cordova-android-plugins/src/main/res/.gitkeep create mode 100644 android/capacitor.settings.gradle create mode 100644 android/gradle.properties create mode 100644 android/gradle/wrapper/gradle-wrapper.jar create mode 100644 android/gradle/wrapper/gradle-wrapper.properties create mode 100755 android/gradlew create mode 100644 android/gradlew.bat create mode 100644 android/settings.gradle create mode 100644 android/variables.gradle create mode 100644 capacitor.config.ts create mode 100644 next.config.native.js create mode 100644 scripts/native-build.js diff --git a/android/.gitignore b/android/.gitignore new file mode 100644 index 0000000000..48354a3dfc --- /dev/null +++ b/android/.gitignore @@ -0,0 +1,101 @@ +# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore + +# Built application files +*.apk +*.aar +*.ap_ +*.aab + +# Files for the ART/Dalvik VM +*.dex + +# Java class files +*.class + +# Generated files +bin/ +gen/ +out/ +# Uncomment the following line in case you need and you don't have the release build type files in your app +# release/ + +# Gradle files +.gradle/ +build/ + +# Local configuration file (sdk path, etc) +local.properties + +# Proguard folder generated by Eclipse +proguard/ + +# Log Files +*.log + +# Android Studio Navigation editor temp files +.navigation/ + +# Android Studio captures folder +captures/ + +# IntelliJ +*.iml +.idea/workspace.xml +.idea/tasks.xml +.idea/gradle.xml +.idea/assetWizardSettings.xml +.idea/dictionaries +.idea/libraries +# Android Studio 3 in .gitignore file. +.idea/caches +.idea/modules.xml +# Comment next line if keeping position of elements in Navigation Editor is relevant for you +.idea/navEditor.xml + +# Keystore files +# Uncomment the following lines if you do not want to check your keystore files in. +#*.jks +#*.keystore + +# External native build folder generated in Android Studio 2.2 and later +.externalNativeBuild +.cxx/ + +# Google Services (e.g. APIs or Firebase) +# google-services.json + +# Freeline +freeline.py +freeline/ +freeline_project_description.json + +# fastlane +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots +fastlane/test_output +fastlane/readme.md + +# Version control +vcs.xml + +# lint +lint/intermediates/ +lint/generated/ +lint/outputs/ +lint/tmp/ +# lint/reports/ + +# Android Profiling +*.hprof + +# Cordova plugins for Capacitor +capacitor-cordova-android-plugins + +# Copied web assets +app/src/main/assets/public + +# Generated Config files +app/src/main/assets/capacitor.config.json +app/src/main/assets/capacitor.plugins.json +app/src/main/res/xml/config.xml diff --git a/android/app/.gitignore b/android/app/.gitignore new file mode 100644 index 0000000000..043df802a2 --- /dev/null +++ b/android/app/.gitignore @@ -0,0 +1,2 @@ +/build/* +!/build/.npmkeep diff --git a/android/app/build.gradle b/android/app/build.gradle new file mode 100644 index 0000000000..f8d90b3db7 --- /dev/null +++ b/android/app/build.gradle @@ -0,0 +1,59 @@ +apply plugin: 'com.android.application' + +android { + namespace = "com.peanut.app" + compileSdk = rootProject.ext.compileSdkVersion + defaultConfig { + applicationId "com.peanut.app" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + aaptOptions { + // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. + // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61 + ignoreAssetsPattern = '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~' + } + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +repositories { + flatDir{ + dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs' + } +} + +dependencies { + implementation fileTree(include: ['*.jar'], dir: 'libs') + implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" + implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion" + implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion" + implementation project(':capacitor-android') + + // credential manager provider — required for capacitor-webauthn passkeys + implementation "androidx.credentials:credentials:1.5.0-beta01" + implementation "androidx.credentials:credentials-play-services-auth:1.5.0-beta01" + + testImplementation "junit:junit:$junitVersion" + androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion" + androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion" + implementation project(':capacitor-cordova-android-plugins') +} + +apply from: 'capacitor.build.gradle' + +try { + def servicesJSON = file('google-services.json') + if (servicesJSON.text) { + apply plugin: 'com.google.gms.google-services' + } +} catch(Exception e) { + logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work") +} diff --git a/android/app/capacitor.build.gradle b/android/app/capacitor.build.gradle new file mode 100644 index 0000000000..ddda33877c --- /dev/null +++ b/android/app/capacitor.build.gradle @@ -0,0 +1,19 @@ +// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN + +android { + compileOptions { + sourceCompatibility JavaVersion.VERSION_21 + targetCompatibility JavaVersion.VERSION_21 + } +} + +apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle" +dependencies { + implementation project(':capacitor-webauthn') + +} + + +if (hasProperty('postBuildExtras')) { + postBuildExtras() +} diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro new file mode 100644 index 0000000000..f1b424510d --- /dev/null +++ b/android/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java b/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java new file mode 100644 index 0000000000..f2c2217efa --- /dev/null +++ b/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.getcapacitor.myapp; + +import static org.junit.Assert.*; + +import android.content.Context; +import androidx.test.ext.junit.runners.AndroidJUnit4; +import androidx.test.platform.app.InstrumentationRegistry; +import org.junit.Test; +import org.junit.runner.RunWith; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + + @Test + public void useAppContext() throws Exception { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + + assertEquals("com.getcapacitor.app", appContext.getPackageName()); + } +} diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000..a6bc985cf0 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/assets/capacitor.config.json b/android/app/src/main/assets/capacitor.config.json new file mode 100644 index 0000000000..d00b025fe9 --- /dev/null +++ b/android/app/src/main/assets/capacitor.config.json @@ -0,0 +1,14 @@ +{ + "appId": "com.peanut.app", + "appName": "Peanut", + "webDir": "out", + "server": { + "url": "https://peanut-wallet-git-feat-native-app-squirrellabs.vercel.app", + "cleartext": false + }, + "android": { + "allowMixedContent": true, + "webContentsDebuggingEnabled": true + }, + "plugins": {} +} diff --git a/android/app/src/main/assets/capacitor.plugins.json b/android/app/src/main/assets/capacitor.plugins.json new file mode 100644 index 0000000000..7f5490a596 --- /dev/null +++ b/android/app/src/main/assets/capacitor.plugins.json @@ -0,0 +1,6 @@ +[ + { + "pkg": "capacitor-webauthn", + "classpath": "com.headcount.plugins.webauthn.WebauthnPlugin" + } +] diff --git a/android/app/src/main/assets/public/cordova.js b/android/app/src/main/assets/public/cordova.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/android/app/src/main/assets/public/cordova_plugins.js b/android/app/src/main/assets/public/cordova_plugins.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/android/app/src/main/java/com/peanut/app/MainActivity.java b/android/app/src/main/java/com/peanut/app/MainActivity.java new file mode 100644 index 0000000000..07b6a9422d --- /dev/null +++ b/android/app/src/main/java/com/peanut/app/MainActivity.java @@ -0,0 +1,5 @@ +package com.peanut.app; + +import com.getcapacitor.BridgeActivity; + +public class MainActivity extends BridgeActivity {} diff --git a/android/app/src/main/res/drawable-land-hdpi/splash.png b/android/app/src/main/res/drawable-land-hdpi/splash.png new file mode 100644 index 0000000000000000000000000000000000000000..e31573b4fc93e60d171f4046c0220e1463075d9e GIT binary patch literal 7705 zcmc&(cT|(<(nr>|fMTOJS62~&pi)C!msM5}P+CGKB4PmP)lgJK1SG6VlM*f>APJ!e zp{0NzASFbIp@$BUP(ulU5b_20-g7wT-h1x1=Y02kf92$TfA7pZGxN;+o@e52nHe1s zkQCtK<2!QW_unk|_=U!k4#NUnY>Rq2ZZl`ZN zfVjI^xIylQ`L(&}^6|-FZ~S)EDs*t3%1$bzMD#OAVZrxgq;P-q_j@#z__Z(c6ZRWh zO-~qeKK}mTwU$_Qsv98jR6{@J;f-P|&LL!7ORya#&gXXi`7;*wg+H&Ok(-dd%YJqZ zWBZ?|xF{zyIGg~B-U&|4CNBj5NdXAkGROv&EtAn_66zij96aNB-3||=>E^ul@7l-L zu%fmj!pC=5iI4B`0lw2^e0;~ie0==pWku zS>3+|{lmn++w^|~`n&eO8@|V;z3TRW_IQN%^go04cx3m}e=X^+f_8)UA0_Pp?M8Nw z;d|8mYtSCw{`;i(tDrr;-TicrO?xEm0qylIFH!#q^r*fCp(WWjB3-Rtm*~{9J{ljj zn!;MFAOIU~*sYfGfpc4P;*!GEy}1cBlPZ&aDoL6+k9Cz<)sR+s?*#V%uj}DstrH@1 z1e1n@dj|x;Z{*=egHq~pqLvGoG}QV4cCy<0!JNnV7>DsPbMl+t=mnn1D#y*eKgIgQ z>D1NPfwx&-uVX=>t#rvbp3tb8bMT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kgibWiLsdCTN0-59yHMFQ&9&A0g1Q^EX<6c=M z;^MvK8FWtYL0-f5@*!eAN1OsN4h!4;Qi+iV&^PJa6LU2yIH&}dQT$QTB`~K35Vs|LKFiq)+B4eW`SRaL+5_6-Hr~^JBk8Y#_6&)3 wKmFJ0_JHhk1&0B>;%YXATM literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-land-mdpi/splash.png b/android/app/src/main/res/drawable-land-mdpi/splash.png new file mode 100644 index 0000000000000000000000000000000000000000..f7a64923ea1a0565d25fa139c176d6bf42184e48 GIT binary patch literal 4040 zcmcJSdsNct*2lF|+LV`0O<9`gWHmXNI_0HMG^Z5J?4q936dm(MrI-mKAX+&`r@Sy` z-UWRJFO`aw_bX%OB?%BsNembv6+|Tjydip+nRU)OtOyZ-=Ql zg+^ZsGj@v#jtKJ%3l2raybiNhQ`5cScGk%|o;Ax>Wil|!;(O3Lf_3Bc!SfzKS@3G9SN2|L z(ZlkChqH{!k{zKhLYD}HO7W>_PR28&-#hB8$hv^aHfYWp(-yZ&PjRKna1=pP?I``1 zJhjuO|72XMzS&A`ll~v(jzN{Frmn5>s?4oWm3ilm#y^>=Z7T0(E0y>~Ztr2SKReA#x9s@PM3fJO!ntA?b_8IZah%-bwM9 zrPWDVzQJ#=jNs2JFaIztcQ0f(1C!QIp9S=|i`TgeU6oCJEYl!NZt9;kr`?c*G`gYL z@F{~wLcg{AeYsJqL5a^oqb2fgiQdIWwT6hBG)j6WGHI;BDLJKtg?9`plfFIyj9vratv!=oN|3q^M@s8E4;aM>14uu(qdH(aO2!g1QL;0` zlk6jmGqw0V8qtS}{yIbU zy>D2IV8n93+k-43)t5 zHoV3wwoE0fvlt-)6(+qv+gtyLBU{6AXwX3cO?Q8$*rCK+@|S(B)0&f&O%^8)h~IhY zd<#&uT#;hk(*&kL^^?ZTCQ4SZMdMql`iAzYYlk5dzXx_IzRNCBVl5Zt19LadD879-yI@>5F^1WV)eBIqfUF-~YTRMM0GDHk}LbSxo2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JlPjW_U)a zy6-~`zPs8Vg!6BS>;D>d{v&bym$>#R?0gQ_e#giEjkx|xT>Fm|{8JLY+??3hvR93~ XyOn+%7f`N3b2T^T3uj5+eShz7v)7qy literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-land-xhdpi/splash.png b/android/app/src/main/res/drawable-land-xhdpi/splash.png new file mode 100644 index 0000000000000000000000000000000000000000..807725501bdd92e94e51e7b2b0006f69e0083a0b GIT binary patch literal 9251 zcmeHMX;@R&){a`F6@fZ2$YhHaL=+Jr%uy6^0u)3B$1ZwbY4hL4)@C5Hq9nWtKai&>vt*`@mZjzr1xZ}*Z6 zvgY>gvv`p7;!Rzjr(o`O34vcjdYF{)$z!T*a&SycFz1b6e3rb*uPVY}wgGm=b~tQR z0Nz`60*}qnC&z)&r?-H|=k>tjKs>OVQy}2qc+ht7NazfF{q4hlko+SZe=hQ;)Bd5z zzqj;XMgGF#ekbx*{jn*s>6zaN|9iv!vhOy3{1^ZK`7EE_65ITjP5H}uH-G#)jDJuG z|EP&SkI8RN{%!OhBJ_6{|G=&P4b}L0{og?O&!M@ezrF)>>ndL*nYiLH97H8|Tw3jB zFMlW{H5{ok0*!s50Fs+bKsHfFl&Q541OEp;$5Q3ZSr6kbAZyjl!-I>v%UJmE4R>z$ zA?hIz0Ga_oVqK!^_C$xqMGaf++K7-Iw92R=GcZ`%_faH}<1)$@%nsFo4?N=?C-2rpCjJdVPqNUW@~ z_g6^xF!iK|(6-y5n^nV9ENtwtZPZ>&g*PVorB11{QoLO4971)DR^};j;vPDEy=h%8 zzhWtBNE9QmIfC6NyD1==u45_SQAIVJkxX9~lDm?)s8K&sI@GQwB`vPwg8>9#7-f=PxHYcTNWPNYWSk zFuJvYjOoka-V26p7IEuo%ao&m;hlIy5!?2KTTe|$;eeE{+q2ERUpYcrY@Rll0=Vnb0O|(;I&+pE-lJRTo1)k#EpJTQ${t7 zSX&Xn25)>?lA`eqvnAkwvhLo6MRE>-lHO)CpURpHh8ASd`F%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>$d;@+dT29 zH0bZk-hYb3e?=Jo&$oo4qd@KfnDp1833P`)zW)DR?*EqYzm0%e`;W8yU17fmn7=FR rf2ZVsMTKqF%74gb8_I^%agb$tWlX#2_ijMygDzOwoW)q&`u2YSCS7pS literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-land-xxhdpi/splash.png b/android/app/src/main/res/drawable-land-xxhdpi/splash.png new file mode 100644 index 0000000000000000000000000000000000000000..14c6c8fe39fcd51a0414866ad28cbe8ff3acb060 GIT binary patch literal 13984 zcmeHt`Cn4$+dnnUI8CXgla?FPH05V<%gWT;TBe+G)JhTDP;As(abHlh$zmkpu$5hgra^=kAE5J2!R|qapsrf-f2VA0{`2g;py+@CM!GM7RGJgbN^Pw*^tDu z_xDf4ZTq#$<4R>g=G6|nKLf6t2{(O}fDbYJ^&HG@XX_tk@ckMNiZaNZ{Tsgd$-eYl zNzZYkt8RO?v4RWV6yEuKRz_F&Nw9-M7T-R?g(s`CLJ!eWWm8B)QOF>(O6gl8X#*^U zTqfpU{u=l^7Pe6j{JVZL0{r-AU+@Ot*a`qsJS*2%Jo@E|gSI(viEnY|oflr@qew}|Js+?1$G)vyhhVLD_8MA4d= zd?-WS;nkPz-8QwHCLA*0)grOZT^tOF@d&j6615jNCA{X!@g4gOc|@dK_6utx#OLg@ zjgU))@<`F_$$t0A!9H>=hMWDyjCMKs6W6xeN&V%f)4)x40~iKO75_dm`MmZ4x#oY= zMm$r7o=nIi#I}8wb~7GlT+-SCK^Sk?0tud+=PuGYT{SXj)`>{5C$%zIoEuU5+Cktl zhiF$P#vcesuYWsicXfw|47uFA9kBk$GDhB^#9i89U42oUajutg6-ys_jVuYwF{4OG z9G!B&R^Ca#jCTWs)a)acPR8>4&-r=(#D4O{8n(@y7+L80MN^_%+^OLV)zH8>+hj4! z3Lv&lu-Aa+gx!GW;euM^>J(Xt$GdFrpNQQVfR{S>K2%`kA3^$ zErs3T9}i_Guan?ruE1%R-lSq2p;Gc6f&1GQ5|N$&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RkVQBKkL`2ZCBuy!qI1L{3Er526plVols~68U-^9Px zR(3{j;Z9RHX^muc0dUywJ|`yyZFf=k&-Gb#m4u73Lm5Ks%BfHj%2|gjn#i> zLC5pO$2Em9H;qoKQmMtl<@wgtPF1%2HariD5O~u>8=^*J&au~JH%Ih@&2Uging3U_ z0bzfKucW$ZHSx}!#buB?+-J)%RQbbXM-!BJTS&#dU_@lxU6>te2O+9 z@F{F{Nb!;{Cd`Gx+$G?11aB~S#wIH%D=*=7f7H@D@%B1)&bF$@t3JDq4l*%(wJTlh zo`?uMq{YilKUewPNaC)GuOr<8j9&ofqRU__BRUX^x8Cj3a;a$rXzgXqW>LR#CUn%~m)t zYC&ol(gAkbc^fd`xWU&bk5vT6KbFmsR=O78Bn%t7 znbw&=c+|T&#r+bls5rU6D#HMvqA<|;)BV%jOMonkm^p$7Vcel-Wwn$=uAJv&(8W>% z9))Fxpl*(%E#wFm_m!U~2HqgZs^2vaGeY(UfYKrSHV}w^D0N6!se5Ewy)Yy-!(2

aKj2hWG7>znxs|SE zN4rHtiSPqLskWp(?(_YYwgq+1@8v+~8As|(bC>$D(atG3ZE8-ZM3SVcg|vHQz$I=!(A`k`5= zOqR>&%G)$)k*QLz7MTB9wleWpv&N9Sta64wy}3Ytd?x!Ja8z>(z~(3UNFu^eFmn#6 zw!!gUxOuZi$PQIs*ixfZR3iLyADJ z5&s%tPfk>V!x|A-;oq%1!yk9H$UBP0ToA*EDtz(^!_AnF1bBQ7joj|? z5b)gSI8c8O$PYFE!vXJ<4gebg*9G9P2wcB{#kv0FItc5T@PDNo)}Rh4Us}L{e}xzW zhwt`)j`M)mP=G6H0;^&q=I0{jU%bIRkF#uLF;{vVC&H|_uc literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-land-xxxhdpi/splash.png b/android/app/src/main/res/drawable-land-xxxhdpi/splash.png new file mode 100644 index 0000000000000000000000000000000000000000..244ca2506dbe0fd8f6a05520ac7d1a629ea81438 GIT binary patch literal 17683 zcm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EuZGBAZvqsgAVzv|>a9J4n_EacsB##|S>nuWJ z@3d9=v!i~ySLQlOae}NFuUe%&gr~<#w>n(HdOZhk0!BDD>W&bLJdb}#9B>5IphE-D z73=JrBg6i~QI07#WGWssljM3`n2EIpfu z^_6@Kbfr+vdW**QiQOL)XCRY*8#VvMXZ($m|1u=~yD~4yrH#;17J>(&+WiH}3rpY)wh; literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-port-xxhdpi/splash.png b/android/app/src/main/res/drawable-port-xxhdpi/splash.png new file mode 100644 index 0000000000000000000000000000000000000000..bfabe6871a17a5e95b78fb30d49b7d2b4d2fe4c0 GIT binary patch literal 13346 zcmeHtX;_kJ`#04zO^aDmjwzz0HD;w|?h8>vW;LZ_?k1X=Ywq9%s7(u2rcRUQj;W;? z?mObrqFADUxi4r+2(G9IiVOaMW}f$Xp8tG#kK;X#_lqCy1MZvqIbjq1vUA2JAITZDzbJ0jFM$PIA*mcNVJ z;mf|x9&Xp&oNt8(esVJc05qE}UpQ|WHZV==FL$$wcsoBbd4YA2bV*k$^@^gYO5yc; zKa3?@Xom{!>s@%ZBVys0UhavwM=&Xqu&2r=6VK;t+=sq7*rZbW`w7y+eb2JbU-(TX z?dxnhoY#*kcFxS5n1!>5l)Ns(5rP?NYM2eHVMt=0Eb^}0h|-R{uA}z@BV#o#XpM@y}tclg8zH4>c0g4yD0JN z|68lS2k#c^`1jqvFT#FvNt<5!D~3h!u^D*Za(XkD#1`0uhfNUwdyCtIhySz5Z^FYS zJZ#o@|4{*N!o&Y(czAojH#2JM9bW=7YxylVaQb)n@)0z@aV)|q#za8bNC8;C*iz+0 ziGo9i_~+z|AaQj+W4T@MGVF$cXuDQhGySLDLUf?Oe>qBO9~Iz}k5zCi0;^BrH_TD2 zwdFp150!)zSU+hzsb*M^wPlNthzO;rkUwFHCh<{6Wo1Pq=w=Mp!ETKTuGkpzWaVR5 zoep||sJoM3awdXH&}~~~?`Yak6zZH`Gu0Nh4>g>p2!dJ0;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LErgM2+?=lcbw8#mo86gLcCG{I4T*|8??h^9LbVZrbYGam>wN z*bD|?p|cqb|8Kx@aijc3i|B+l;NDu{Qf&5d;rH)E*8PWTpXikFKV0WT!2J&w;CCTv z{nPbN!bQ*iNx10QKM5B-`$yrT2{$MB+hm(2`d3u_ZIb`~+%(aqiT*caY+}*B^5Xv% eO>gcz4Y;lHQ)5=gT!Uz5xom8Dq3D;JcmD@1>d%<~ literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-port-xxxhdpi/splash.png b/android/app/src/main/res/drawable-port-xxxhdpi/splash.png new file mode 100644 index 0000000000000000000000000000000000000000..6929071268eb03ee0f088142b6523566b78550e2 GIT binary patch literal 17489 zcmeHuc~n#9x_$%&6@j)|nX%R?A`(QINkBzKMTvq6$}A!xgajD^1On75RVD`nnSxdU znP&)LNGwV!$RJ^c5Fn5MAqkj3NJ8M3;Q8I2bJ}w*Yu)8t?LGZxXT!?3_xC;D^FGh} zzS;ZUIcrPV&B~hr0D$bNlgDfTfDNKk>Bx-|q7U_4=y}nHQowQh09)Ag0EF8u55SRY zu&W;5oPxS}df0flT?_Gh=K%r$EZC=x9k~!ZFhe3Gq<4qo=lq8vAHKS=7g}1_@Cth2 z{JNwYr|#X%KiwI#{AK+e6@ST1r}m{(#2w4pvva2*XHU(f`J*2Ubo! z4jWxXhcED=!#9!Z0D!{)NdO=cASL>H-4@Y7Lh&EY)-dFs2mkvazk9!bIpkkY@%M)O zH>>)mA!`BR*CD^2t>rGOD6VQtIYZbE3NvO5R^RFTJ>)BeYX3apXe)02|z~{tn)nL{F#IGR#dbSpKS~J{# zVfUMKZOz!Ne)02AH4?C(Ez-!fZ1pOQJ`+1W;|l*X65!9nj{gkoRyqC02*!V`+W!5f zt~qA^I41BX4fAgz!(~Jwxn}MA_xtvD>DB5N|8mCvEob~AWV8Q$FwRKYAvzzo=fuER zl;l~)%9+dvpwo)Wil>Cgfg{s;SyKv~ck-t=DZ&AK3|}blpL$|7#o_855UaJl1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M|gvpgR#RI$ZW#{TV!B6;O*Hc^G_{9xPb}= zNUGJ?WxKLGu;L;tQZZ@`iTAtf|K@-Uf3i)BEx>Yn7Qyo}0M?srHvrc49zf1Mzm`X@ zTM9-43VdtKrVT&x@QiI^8I-iUX*}1L0+C^fwz$nvGU5iA)>QwDy*M3cgR_t%gBEzV znm&~12cUXbc`krp#F;3m5x64~JbTOAgtK?dzxS*#CJ=Ua1xS}#o0sX_;p#)p`2vQe1>U97XqV6o6d=IhPsv3ZXX==kam z70iy_3SL%tF@HlOw?(vWIU>_>l6VpKkb0EMYyZ?Mt+SBK#PXf=;ZJ#60OkgwrnwPZ zOoUKPvq0`tKAG9wGS?b2_f|TY^n9IIO922uiiGTMpJ*2;)bGEgAtF5BuSf6x;dK?! zPKm%;1yi)|zj-j^pAZxO;Psn#UH<2AZ*=|Z?V8^}FADlU*&|S&i5;sP6jhG^v0<$( ze*b*ft%l$qBpCl}y!+!|_c^Kh*V{F}<5X+#tiLn2wc6b0B-CF*_8T4l6Z*!Vk9Vse zuh~F9r;x3h^S?|Qf7b)o3in@c*ZfX~^t*`u%M9rc5saUQ9pcJ%?X}M5G=cw+VEi4! z{$ulQ)tvw36#p)h_?4i)o~^~%*D7S6ld6A;w`<@>mmwl8`?89DT)FAgBT?J}P93*C KR&><$`~L^lv%S~= literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000000..c7bd21dbd8 --- /dev/null +++ b/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/android/app/src/main/res/drawable/ic_launcher_background.xml b/android/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000000..d5fccc538c --- /dev/null +++ b/android/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/res/drawable/splash.png b/android/app/src/main/res/drawable/splash.png new file mode 100644 index 0000000000000000000000000000000000000000..f7a64923ea1a0565d25fa139c176d6bf42184e48 GIT binary patch literal 4040 zcmcJSdsNct*2lF|+LV`0O<9`gWHmXNI_0HMG^Z5J?4q936dm(MrI-mKAX+&`r@Sy` z-UWRJFO`aw_bX%OB?%BsNembv6+|Tjydip+nRU)OtOyZ-=Ql zg+^ZsGj@v#jtKJ%3l2raybiNhQ`5cScGk%|o;Ax>Wil|!;(O3Lf_3Bc!SfzKS@3G9SN2|L z(ZlkChqH{!k{zKhLYD}HO7W>_PR28&-#hB8$hv^aHfYWp(-yZ&PjRKna1=pP?I``1 zJhjuO|72XMzS&A`ll~v(jzN{Frmn5>s?4oWm3ilm#y^>=Z7T0(E0y>~Ztr2SKReA#x9s@PM3fJO!ntA?b_8IZah%-bwM9 zrPWDVzQJ#=jNs2JFaIztcQ0f(1C!QIp9S=|i`TgeU6oCJEYl!NZt9;kr`?c*G`gYL z@F{~wLcg{AeYsJqL5a^oqb2fgiQdIWwT6hBG)j6WGHI;BDLJKtg?9`plfFIyj9vratv!=oN|3q^M@s8E4;aM>14uu(qdH(aO2!g1QL;0` zlk6jmGqw0V8qtS}{yIbU zy>D2IV8n93+k-43)t5 zHoV3wwoE0fvlt-)6(+qv+gtyLBU{6AXwX3cO?Q8$*rCK+@|S(B)0&f&O%^8)h~IhY zd<#&uT#;hk(*&kL^^?ZTCQ4SZMdMql`iAzYYlk5dzXx_IzRNCBVl5Zt19LadD879-yI@>5F^1WV)eBIqfUF-~YTRMM0GDHk}LbSxo2oUVHJpMmlGI z3rByWH)H!8qah9gR@k*d-eyg+Ut|QQuRXEs=h1?GQkAwt(nNpN>BVlOppy1v**<~L ziAz`NGRMEZ%FOBu;ffb*Dd;A6ga;1r!6aMIM#@+UoE(3-Ev!2+(8oW?Jh1}V97M=? z?=$ovd^ECvJRP5aXbm{nv}4kKb(%lr!R}n2+m15~9wFR_pYW~@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tyNjHPgalY&O)F>3OQ|_3f(h>l2h{m+k(_Ju|uH@S4!di|e%7>cgd8+=4 zjI7M8*CHw|8y3AlzQl^lPPpuMohI2ak2T}3ez?AuooV@CUD0)vm!eIrlqVYM0y2lY z1zer{@-toIhXWlqYWR~8yQoB`({<;Rv21+Zm$VLT+d}hV!V_Klm0xmVy2DIr2MOH^ zp4OthWo_zd%>6Fu`v*M7PE54w>=>*bnqTXez|}21$7?KfU7`UHkQbceUz@%Z5SPh( zf|1c?s;d{FU2)&wGjtkEWYEo4?Vd;u_CU>;tL^5+QK(f~;dr=m{U{Aj3jwwE3!GRq z$F!^t>%w%vBNRx8O))O@a~7`k--n$qj^O)$*-$by@_t2Wz_&HW{*@Uy#TY@Qn6z<6 zl4svmjF*uxvQ*COHRGd&VR7vwK$7|T{20gdieL1R%Z|)8$MRd0-L=KE8fE2Elq|C8 zo%yOJtr2+_EPaEqd8HcW?zYwESN~L7r5D~hLZxo$uo@H0Wq3ETe;(%m-GEFGx^HTR zHp|&GLrSk-%Cu!43@kQf+9m&4(>o(RqyWb~WetoKY~aneh!p0yATpfC6w`@ydruv@ zIjhr+Z2#6_F?VKjj3w{RRYob&FfF=7U&vtVx80!jDr|adJ7Of!mkHYmqu}X|yKZel z_M$tF@824GU3I%1GEUQtH1m2PWH2Dds+kVlwV5GQJGd!t|8O!gV5c1^OVz`cZa9Me zD{3^lL1;fjtU?%eb36r6d9Uz81=4cr^3G@JpjEuc%j>ZNryed0SQ4PgnNBP&e=hn+ z?SbFgG`|$Ahr&u9R>YFQ;%c;PG0nr~Bt74$ZViOq8}pjQJct(ouyK1+1JlPjW_U)a zy6-~`zPs8Vg!6BS>;D>d{v&bym$>#R?0gQ_e#giEjkx|xT>Fm|{8JLY+??3hvR93~ XyOn+%7f`N3b2T^T3uj5+eShz7v)7qy literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/layout/activity_main.xml b/android/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000000..b5ad138701 --- /dev/null +++ b/android/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000000..036d09bc5f --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000000..036d09bc5f --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..c023e50595074292c7361183a64de08cf9686c9c GIT binary patch literal 2786 zcmV<83LW){P)Kjp!+9qv7laMNo)ID%Hq+ zYU77~Jh(~?E(9~x?j5gNx3;ZqYunnkw%y+w=e&d3h6k*56a{Df1N_6UFYE&J`O${! z|A8@fh(7;`TBqE6pLKe^-zN?aVC3)yXfXytXC0ki>o$8o+H!)djKbe6PiIZXS@+APUtIW6+^UD=Xi z%aOlBdinKwoli_mJTB{;1yIK)H*WnAZj}Ti6sL!1=pP)A0MX`FHh0MiCn=Bndun;I zREGe)_h;yu2hjQ(H*Wl;E*{WV#}z#!oV&f`@VX%;m>MiDlqUuA$fJ>4Q**=k)%pXH zE7JL?sj0s~*F1nWEG#Vi6>hW?`m|1w2$Eza;W0-Xb1i|>7En!r+bj>u@r68HD`;}T z@R<-s`Q+r}-=S+>K(9s@^x-Z#SHbZ(CaHjBg_MjLSs}%6n&cx$0#0a^F`$3s1~flE z-yH!!_zxA=LlVIlCantIVN6J&q$;3hfh6R8r97T3f^!!T1?hhl0tkD=8Xcq<5Sp%c zi+@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PwtBWH~R_ z$hF9NUKnkL1b0JB3X@4gp46vFCOtn$wH83mg-%6Ky*xLak;UhG0ldP!kPDBlizWL`0An!I#ZyI>aQNw9=bQu3Ae zmLb92&St3LR1@_ily6Hj0O z2EWhyx)R(Kx05q5*)9^-HOa}Of9w? zMLvRGKw5ojkI2FNHkr5oPu*^1Azr zmwG*{)D8cJF3@RgY;1yb{4#XS{Er5DdwT)sp&dJRe0_3qa^mLAn`Ewzm=_C!Yiq;# zaKX5*J`YP1^J?nzD1kZ#d68x~+Vge8{SlCn!{Hfj-MYm`M@J{OZ{Pk6=y>qp!42#3 zY}>YN`!wyoMD1&b4s{(kaiYIxaPUmuz`(%ap`oE8avK~R4EN=7`ADf$zWaB44y{xw z9T`jzFZz`Iu;%;l|%XD_mkJacarka{xI$Pj*|{uU0nyD6Lj0Ub?ax^`R5BA zTefWZEbYHY?JLwCq4w4Lygd@>@`cTtH-8Q~w*5aY2+~HfriW<1i7xv2`?*1fNSBT4 oR$%LRK-${2wykYz+kLV9A8Gfmmx*}s=l}o!07*qoM6N<$g89cjyZ`_I literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 0000000000000000000000000000000000000000..2127973b2d318df7085734d236d0ec649a2b0292 GIT binary patch literal 3450 zcmb7{i8s{W|Hmua$kI%{%-b@IR0=VZOlq2BVkpa4OGS){8Cf#2eUeX&8H~JzHd~*O zC3~Zhgsg+9>>43zd_~y_*^A$N&hIbyp7Xl*o^#K+=ib+SyKx`Gt}@5_%MQ`k+3nf>ds5S>KOkCHv)i zk%JRnO6Tlhh5-Jsl`@O=xwa>)9yo6*<6Kw7f2B#vqt{ffXw59+z8yvFZQkBQi9Al=F@*iA|!QS3Y2jYMcokoAzkn1?; zlfJzAcb^}FmdE0raY5uc5+TkMfgi*dRp{ZTi<7Xg`+(~F;^9}MP|bHSpO7I}Y4;wU z4gO@pDA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=YeCB`l5LpBx#lXP8-ONw8b@2ZWpJVNQcCCWx fy8`c-51s!Hzl@aQ*dJG?00000NkvXXu0mjfpQ$?R literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..4d1e077104cd61e6a4c3707e87363b523077245a GIT binary patch literal 3981 zcmV;84|4E{P)?m z2Iqx7pAYgakSjnIq={jqe_xK2+h*EzWwd!kfWi5380F4z@bASS>p|K~(;2oMw*a3< zK?+G?T5chzM-ta%1;eyc>o{H=hukKL25q{GrPnd+0-KniwCBCEX}iOg#o7W)E)HXr zd(Ve|7lL$v@QH~D&KTpmX>rrCz0YZ)8#Xshc|FT^xTaguda8BDHIv&=Useyu_v$*1 zE3FHi#1s6Ccz|>ii^Xel9SMTXLZR>#xWSPCc*}KN2mWk^(?%1*8lH5juXvA@x zr?BV4&1|^Y#I)XED2#-ddR}jaHn0a$dUVOPmILihzZU<-5kl$t(?^2qT^lzN!aYAE zh>2~QChzL%dM+0NgnQN0)N}zfegGLpx|6}Bl2BR?!Pm-9642O<6%FqtvjQaqK`M+H9vOMH38sJ-;5jwj zl##{26!QLoq4Aere)&g;T^YKzue*<_n(J+&NC zv0cwQO6e?!4H7UsJY0P7#TS2!*yTaM+{VVnMM!|SiDA+JOR@=e0KTheJ7f}8J1Q=! z417T*5?s{cN37_asDgli@#mj^{wIiC?gZd4^B+oqgb-l}{&>t#HZqccZAJ}lRub@e zjF^#xB!owT@QQ>Ds5k*rJ%a|AVfYW21b+BMOjDhNv>>Zo67V?;!;+I&CjR0yA<$6 zK#3y+JtGk(%m@K861*4Jr(RqqfJ?Cn<@otY5i>>YL{+LerFJGsm@xvP-a-=iStDkl zfARmz4YHC*pxU&!5h6%{(O4M*8X6iGLC-D9BH^&tkOY1f60(AyM1m~BrKl$)0lXtj z2~}nUz>SMKAri)yK@UOG<@#1vNZ{d%=apU%Bw%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 0 HcmV?d00001 diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000000000000000000000000000000000000..df0f15880bee46332dfc6622583215194f948b0f GIT binary patch literal 5036 zcmcIoi93{C+@3*W8A~-7Lt;iog~4QN;mz2xwi=8P@#wV-jb(@^`>qUSk9w8f&|oZ0 zBbo@K(M#EdEUziqlAV_C@m}Ab@O{^Hp66WGbIx_ndCs|i_wT+>$~k*W2{Cyw2m~Tw zb;j%hSP$(!A~5isqO7?9fgpmd%uFs_A6Xdl%f8fx5~jZLn3B17Cer-q>u4Pv`BlH` zyuxT=x>l^gr5rt(J%=hdsU#hy83JmP(4@05JT_bOx#)Q9pWVeaZpDi?bAJ4Gc%lK5 zOFFjlaq%Ym$qu7&uaL?AN6Gx1bU4E{%g?K+%3|7Xroieupzar?H%`69Xb54O_Rrl( z|9$znfwk5rtED#fR@2Z(!QV6W#UrBy*KcJs{W5I2b0P+7<9?jkZxmnITiYrlmaoak zkC&M{; z(N-1~d)ZOHWRu|eRm4I>z9tUhDa428^McPm?-9n~0OQ6tWGLD&+vH(3-h=wQd_Mn7ukQEUPS!NH*mY&e=6_*Z2Mu)>><()OiY_7*7 z-ef@G+a&3g5v01jQq{oXD3kp;HKRhpnL<9nbqb`xe6>fxCUHvzUoG^CL+WP&c8?9 z7-6)FOmgKhR|I!Y&dG3|xf0v{+M)e&_2kuUW)3Ay5gF}6-1oR1XbV7p{<<%Kyyb_# zuLe(0Uy=<7Lq0!1%{X5ccBJ=)U#CUk0PCufw+Z)a8R8In&N2N3g|0U#pxqj-?Z!YKPP{c`effDf3<=fPtNk`v)Vapx z%(FaQp!w*%BCcWJzf7?P4(4pol$Cah_2){MJ=NgR<3ZS#A39m$*Z9ybG zcv_a0r&4(RbbDZQ>@^^(*^`)%j*Z%CPN5{(2%~iM(qBg^&uJIix1>?DT__sME+5PR z6s|ZYE$94;313r~ou;{@Js=d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)Fz(J1S@LHkQm!+kpy+&jFG4!7L(tEt5f6@>Wk*jXL`R2ic1`WbrCjH^S zfdhZ^`RAX1c$W-MMSUNi0WN#92BBQj^yPcY}f;G9QN zA|^r_f7il=3+HBLW^OJjDynO2Y?OBx>~wmFsHj4S6dKZs?19qZR(`{#`$Yw5bfTgf zY`XQnOmtIIGsw*GT5ztL@!W6?chep}7OxGjk!pRfZ#(dMz5z|SFKQ}{mQb3;0|>W` z9Xs|XZ@&3v>Y6nfUmQ7dq_C{4>_SshlRUtUze<5?tmw#72vkh?uuc=~CQAMcMqRi= z6;6z5X=#xvDk@rXb8`#VuV4Sgf(37;;<@mgcy7D~ycVkSed#qOUhy4%Fd|Ygo`yCI zVrym<6A&0^cRu*wgO5NyF?Z$4mG5oYvgIH9;gO%8e*(0+vb41HTvb(7b6s6sYk5Uw zYiU_|GZ1zT-^0%wIB;P9)~#DJKw92guwcO)JQg04f{weDjKy=}xoJ$F@_hi_$VbR) z5>Ru|>EWDI9N576It6PIR$Z~`h;jk%|M-qO?)cXS9(dppc>EhSe2%Zdd-vgI=w~NW zO`kxIH5!kN=b-xDkDfc}yCyYuh)ATGi-7cn-Z=mlG-K?I@<1(Q6qT&86i{sARP9#! z9)4yNeh0rxk1+&~NhRh=dalIpJMcV&V6CMO0*6^P&NLW0bm$ML4;i9v_!_>4pTW;k zu=~(sTn0QwLKrEDR5Fq%sOrXEPgH?@$pilXR@`CbaUM_;00000NkvXXu0mjfFgAy6 literal 0 HcmV?d00001 diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..6cdf97c1196d48e9833487ff6de7c4cfc4e1232d GIT binary patch literal 6644 zcmZ{pXFL_||NoDW?HrtJha-DLIVbC69wc;}LWs%=Q3!R8%&a5HUWX12AsLxPvg`0M z4%vI3LpIs#@B6?1yK#+s*Lz*p^YOagQKokd*qHg50RRA-;ceu-i#6_l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hdpi/ic_launcher_foreground.png new file mode 100644 index 0000000000000000000000000000000000000000..2960cbb6104b915c84760f889deed9bff2b3e17a GIT binary patch literal 9793 zcmdUV`#+Qa|G!gCjaEh@IaSOdZIn}5PD?GP&H0qfv2s2uqokQjcu9*K8WTAd#^exb zMh><1PL2^OdgYKq4K4a!Uf;js<2Ju+&(rmMobLDg<4Uu$v6K*(6X)aOlelo+0?)_C zZ?XF?Dhz((_1&_Ek55(ff`zF=-1ySuzd7=(hr(fh(=XlT_l}A?OZdmP;A^8qO6PK- z%S8RP%RafIE=Vsev9ybpDM#L=@kz|qom@=TcT&ojTYU7eqwShzb!%&N^}_3#_Nl?^ zkI3RGL3vKss*<)l9=bj}yUCxdB>I2;Gh}6_o6~pnd1uSP#pMkF`?1L%md^|&y$T47 z7^AM3>e9t|2~z3w)bEgYig(X=yMEShdhs$M3-Lmf<=)fo~dr#~g6?Sx}|xlCy-eQ4d(O_jy^2 zCtSPqyeKo;5W-IoG_kU~tHC-GxwNjZA10eJA&2s?s1H8Oa`hWszM6DggF@2)hnbrc zmOTGZgT=-Aov+0g2Ex_KGHHOGtdbto!hMNei{+do!89=M;p69Uetx3RL!z^0W#7Vi zL3_>J5jI+cz`dBmaDi^&F+b@Hpn0B#c2Fm1;5LmPixU?iK8YWG=TtTRi!c@V(o1w1cq{^X$ z$b1|H;P5GmN;D+8kv)WR$RMyyz@zZf))B4ACH+{AG{muF^b}dyM2P&B!G7vpA%Gb{ z-pABWWTE8cUWGw-Y?LHd^Ah=9-obJlA%5cl&ZwGn0$YHz_zV0YDCmcX2}cpK-~c@J zK>!52Y$n8qEY7*L*x1HzXXX9;Ga90T_?@hL0`R;@nYsM?^i2cFyUL81TeML4Tb%qs z2D?1wdr2~_NU!A#6RKo%vhshvFd{2#KZ}LsI78Cy8c+G>ZL1_3NWRh0mtZwPS;yI^ z!E4lJV_CJY;3*H~vFdy)1ZE8wi{%#(4H~O$O-@KT+ho-gqTP>=*D#%*%2T?M=BI3a zPQCGdK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/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..a40d73e9c68ea638c28c7b13e4bcd1e179a3a102 GIT binary patch literal 15916 zcmY*gWmuEn``^Zh(J)ZDQ$RtwTR>7kN=j*DB1ktQ21<++q+3clB!@IeNJ@8ujBfbv z`+N6)vF&=^JlA!0?)yHUI*~eBDn$4+_y7QaNKI8q7xRny?}LYf`PQ9x!UX`NPt=s; z^}S{f{2_i68+UD{K=BRopI{(%Dc8%=0+TOyrFG?X<&<^!5%&~_pE(VD?XT+2&J8Jl zI$>j1ae4C71p^>zjTND9u)rYZE!&z4t<47+!Nca%jNiY9e-Ae|cVvug-H|fQ><>$g zT-^A@Ufg7U(z0!*@to)gpLFO?+vT3gu&3#^nEl+Q<~Nb+EW&N*P_NeeFL2D8I3vnN|*;9 z<3l=1XktkT!)UvD2rLM!v5%xreYHokhKefAoUdmu#+SmDW;&Mr>ozx{$EIgUd>~RZ z57RMa>itb2WrqFN@G@!ZBs~DFIS~=j*fFlcJNI%GLa<_7pk4*lSGm9~hHD12d4T#9 ze~U`=#SojxH^QC4(Xob!OV1!jUSqvt;U6MBULkS@RO+PQv(Kh7fjZy6yApI*s*W~( zyXE!QY^f)cEZOl*f4OwRpD~hnPPoJKj`~gUeYwAT#)U-eGw{!<z?c6ckFV3zH`^Pw+%5kk5;_3qy7snl@m3Qv5+e(`SI2IReD9YDj9xQ=gJe7D!+T= z@!d`Tti}|DpMlNCa(C^qY2zoK^dG|IT*-}T@d9qaw=BRwB|E{H6}DwzH909cY-V|; z0CH6qZ1ce_l0N73036Cx`Ea7s8j>+IzJs@0{Q#ZgLBPu?P9Y>4%7K*oGReSPWBnKx z{>~=aMtlN%`+8ltrK{BbwjH$||Cw;()cjU|gL3?M+o^Apt4^ATa9X)Q50BT;bWx|3 zlPR<_61&w0*vJ%2uPx^mYox~8K26Jiau-GDn9~rmn0H>{<~YkL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vV0=&G{=(eMQ~*F-B&%h zsTvln{)cWkj{`w(l70nA(bTQ)X9)}OA04NjB-w`ru^{xqj_*GW*$|pjhxb`+ z8VSsbWPpo`j z)H73i39AN8h}Ial%a_k;TV)S<#GHb#*S1mS#7CXjTh3&FYB;eSp5Yt4ps2qdEw~ju z_ix=EInS?{%xF9JKJ|3ZZEtS<_3J%QhUofq1CM$lbd*I|62IpYB|}~woGpWrLFs+f z!(smAPhxyzmU4$ + + #FFFFFF + \ No newline at end of file diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml new file mode 100644 index 0000000000..6a21ae8ebd --- /dev/null +++ b/android/app/src/main/res/values/strings.xml @@ -0,0 +1,7 @@ + + + Peanut + Peanut + com.peanut.app + com.peanut.app + diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000000..be874e54a4 --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/app/src/main/res/xml/config.xml b/android/app/src/main/res/xml/config.xml new file mode 100644 index 0000000000..1b1b0e0dca --- /dev/null +++ b/android/app/src/main/res/xml/config.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/android/app/src/main/res/xml/file_paths.xml b/android/app/src/main/res/xml/file_paths.xml new file mode 100644 index 0000000000..bd0c4d80d0 --- /dev/null +++ b/android/app/src/main/res/xml/file_paths.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java b/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java new file mode 100644 index 0000000000..0297327842 --- /dev/null +++ b/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java @@ -0,0 +1,18 @@ +package com.getcapacitor.myapp; + +import static org.junit.Assert.*; + +import org.junit.Test; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see Testing documentation + */ +public class ExampleUnitTest { + + @Test + public void addition_isCorrect() throws Exception { + assertEquals(4, 2 + 2); + } +} diff --git a/android/build.gradle b/android/build.gradle new file mode 100644 index 0000000000..f8f0e43b6d --- /dev/null +++ b/android/build.gradle @@ -0,0 +1,29 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + + repositories { + google() + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:8.13.0' + classpath 'com.google.gms:google-services:4.4.4' + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +apply from: "variables.gradle" + +allprojects { + repositories { + google() + mavenCentral() + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/android/capacitor-cordova-android-plugins/build.gradle b/android/capacitor-cordova-android-plugins/build.gradle new file mode 100644 index 0000000000..b2e25ddd6e --- /dev/null +++ b/android/capacitor-cordova-android-plugins/build.gradle @@ -0,0 +1,59 @@ +ext { + androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1' + cordovaAndroidVersion = project.hasProperty('cordovaAndroidVersion') ? rootProject.ext.cordovaAndroidVersion : '14.0.1' +} + +buildscript { + repositories { + google() + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:8.13.0' + } +} + +apply plugin: 'com.android.library' + +android { + namespace = "capacitor.cordova.android.plugins" + compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36 + defaultConfig { + minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24 + targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36 + versionCode 1 + versionName "1.0" + } + lintOptions { + abortOnError = false + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_21 + targetCompatibility JavaVersion.VERSION_21 + } +} + +repositories { + google() + mavenCentral() + flatDir{ + dirs 'src/main/libs', 'libs' + } +} + +dependencies { + implementation fileTree(dir: 'src/main/libs', include: ['*.jar']) + implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" + implementation "org.apache.cordova:framework:$cordovaAndroidVersion" + // SUB-PROJECT DEPENDENCIES START + + // SUB-PROJECT DEPENDENCIES END +} + +// PLUGIN GRADLE EXTENSIONS START +apply from: "cordova.variables.gradle" +// PLUGIN GRADLE EXTENSIONS END + +for (def func : cdvPluginPostBuildExtras) { + func() +} \ No newline at end of file diff --git a/android/capacitor-cordova-android-plugins/cordova.variables.gradle b/android/capacitor-cordova-android-plugins/cordova.variables.gradle new file mode 100644 index 0000000000..b806d8ad65 --- /dev/null +++ b/android/capacitor-cordova-android-plugins/cordova.variables.gradle @@ -0,0 +1,7 @@ +// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN +ext { + cdvMinSdkVersion = project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24 + // Plugin gradle extensions can append to this to have code run at the end. + cdvPluginPostBuildExtras = [] + cordovaConfig = [:] +} \ No newline at end of file diff --git a/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml b/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml new file mode 100644 index 0000000000..cb9c8aa354 --- /dev/null +++ b/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file diff --git a/android/capacitor-cordova-android-plugins/src/main/java/.gitkeep b/android/capacitor-cordova-android-plugins/src/main/java/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/android/capacitor-cordova-android-plugins/src/main/res/.gitkeep b/android/capacitor-cordova-android-plugins/src/main/res/.gitkeep new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/android/capacitor-cordova-android-plugins/src/main/res/.gitkeep @@ -0,0 +1 @@ + diff --git a/android/capacitor.settings.gradle b/android/capacitor.settings.gradle new file mode 100644 index 0000000000..da0a63ec13 --- /dev/null +++ b/android/capacitor.settings.gradle @@ -0,0 +1,6 @@ +// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN +include ':capacitor-android' +project(':capacitor-android').projectDir = new File('../node_modules/.pnpm/@capacitor+android@8.2.0_@capacitor+core@8.2.0/node_modules/@capacitor/android/capacitor') + +include ':capacitor-webauthn' +project(':capacitor-webauthn').projectDir = new File('../node_modules/.pnpm/capacitor-webauthn@0.0.12_@capacitor+core@8.2.0/node_modules/capacitor-webauthn/android') diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000000..2e87c52f83 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,22 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx1536m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true + +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true diff --git a/android/gradle/wrapper/gradle-wrapper.jar b/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..1b33c55baabb587c669f562ae36f953de2481846 GIT binary patch literal 43764 zcma&OWmKeVvL#I6?i3D%6z=Zs?ofE*?rw#G$eqJB ziT4y8-Y@s9rkH0Tz>ll(^xkcTl)CY?rS&9VNd66Yc)g^6)JcWaY(5$5gt z8gr3SBXUTN;~cBgz&})qX%#!Fxom2Yau_`&8)+6aSN7YY+pS410rRUU*>J}qL0TnJ zRxt*7QeUqTh8j)Q&iavh<}L+$Jqz))<`IfKussVk%%Ah-Ti?Eo0hQH!rK%K=#EAw0 zwq@@~XNUXRnv8$;z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zm@x?HN$8TsTavXs)tLDFJtY9b)y~Tl@7z4^I8oUQq4JckH@~CVQ;FoK(+e0XAM>1O z(ei}h?)JQp>)d=6ng-BZF1Z5hsAKW@mXq+hU?r8I(*%`tnIIOXw7V6ZK(T9RFJJe@ zZS!aC+p)Gf2Ujc=a6hx4!A1Th%YH!Lb^xpI!Eu` zmJO{9rw){B1Ql18d%F%da+Tbu1()?o(zT7StYqK6_w`e+fjXq5L^y(0 z09QA6H4oFj59c2wR~{~>jUoDzDdKz}5#onYPJRwa`SUO)Pd4)?(ENBaFVLJr6Kvz= zhTtXqbx09C1z~~iZt;g^9_2nCZ{};-b4dQJbv8HsWHXPVg^@(*!@xycp#R?a|L!+` zY5w))JWV`Gls(=}shH0#r*;~>_+-P5Qc978+QUd>J%`fyn{*TsiG-dWMiJXNgwBaT zJ=wgYFt+1ACW)XwtNx)Q9tA2LPoB&DkL16P)ERWQlY4%Y`-5aM9mZ{eKPUgI!~J3Z zkMd5A_p&v?V-o-6TUa8BndiX?ooviev(DKw=*bBVOW|=zps9=Yl|-R5@yJe*BPzN}a0mUsLn{4LfjB_oxpv(mwq# zSY*%E{iB)sNvWfzg-B!R!|+x(Q|b@>{-~cFvdDHA{F2sFGA5QGiIWy#3?P2JIpPKg6ncI^)dvqe`_|N=8 '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH="\\\"\\\"" + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/android/gradlew.bat b/android/gradlew.bat new file mode 100644 index 0000000000..5eed7ee845 --- /dev/null +++ b/android/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH= + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/android/settings.gradle b/android/settings.gradle new file mode 100644 index 0000000000..3b4431d772 --- /dev/null +++ b/android/settings.gradle @@ -0,0 +1,5 @@ +include ':app' +include ':capacitor-cordova-android-plugins' +project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/') + +apply from: 'capacitor.settings.gradle' \ No newline at end of file diff --git a/android/variables.gradle b/android/variables.gradle new file mode 100644 index 0000000000..ee4ba41c46 --- /dev/null +++ b/android/variables.gradle @@ -0,0 +1,16 @@ +ext { + minSdkVersion = 24 + compileSdkVersion = 36 + targetSdkVersion = 36 + androidxActivityVersion = '1.11.0' + androidxAppCompatVersion = '1.7.1' + androidxCoordinatorLayoutVersion = '1.3.0' + androidxCoreVersion = '1.17.0' + androidxFragmentVersion = '1.8.9' + coreSplashScreenVersion = '1.2.0' + androidxWebkitVersion = '1.14.0' + junitVersion = '4.13.2' + androidxJunitVersion = '1.3.0' + androidxEspressoCoreVersion = '3.7.0' + cordovaAndroidVersion = '14.0.1' +} \ No newline at end of file diff --git a/capacitor.config.ts b/capacitor.config.ts new file mode 100644 index 0000000000..09c0c7aa0a --- /dev/null +++ b/capacitor.config.ts @@ -0,0 +1,23 @@ +import type { CapacitorConfig } from '@capacitor/cli' + +const config: CapacitorConfig = { + appId: 'com.peanut.app', + appName: 'Peanut', + webDir: 'out', + + // vercel preview for passkey testing (rpId must match this domain) + // TODO: remove server.url for production (static export loads from local out/ directory) + server: { + url: 'https://peanut-wallet-git-feat-native-app-squirrellabs.vercel.app', + cleartext: false, + }, + + android: { + allowMixedContent: true, + webContentsDebuggingEnabled: true, + }, + + plugins: {}, +} + +export default config diff --git a/next.config.native.js b/next.config.native.js new file mode 100644 index 0000000000..2b7180c2bd --- /dev/null +++ b/next.config.native.js @@ -0,0 +1,73 @@ +const os = require('os') +const { execSync } = require('child_process') +const withBundleAnalyzer = require('@next/bundle-analyzer')({ + enabled: false, // Disable for native builds +}) + +// Get git commit hash at build time +let gitCommitHash = 'unknown' +try { + gitCommitHash = execSync('git rev-parse --short=7 HEAD').toString().trim() +} catch (error) { + console.warn('Could not get git commit hash:', error.message) +} + +/** @type {import('next').NextConfig} */ +let nextConfig = { + // STATIC EXPORT FOR CAPACITOR + output: 'export', + + // Disable image optimization (requires server) + images: { + unoptimized: true, + }, + + // Required for Capacitor - assets must use relative paths + assetPrefix: '', + + // Trailing slashes help with static file serving + trailingSlash: true, + + env: { + NEXT_PUBLIC_GIT_COMMIT_HASH: gitCommitHash, + // Flag to detect native context in code + NEXT_PUBLIC_IS_NATIVE_BUILD: 'true', + }, + + // Transpile packages for better compatibility + transpilePackages: ['@squirrel-labs/peanut-sdk'], + + // Experimental features for optimization + experimental: { + optimizePackageImports: [ + '@chakra-ui/react', + 'framer-motion', + '@headlessui/react', + '@radix-ui/react-accordion', + '@radix-ui/react-select', + '@radix-ui/react-slider', + '@reduxjs/toolkit', + 'react-redux', + 'lodash', + 'date-fns', + 'react-hook-form', + '@mui/icons-material', + ], + }, + + webpack: (config, { isServer, dev }) => { + if (!dev) { + if (isServer) { + config.ignoreWarnings = [{ module: /@opentelemetry\/instrumentation/, message: /Critical dependency/ }] + } + } + return config + }, + + reactStrictMode: false, + + // Note: rewrites, redirects, and headers don't work with static export + // These would need to be handled by your backend or Capacitor plugins +} + +module.exports = withBundleAnalyzer(nextConfig) diff --git a/public/.well-known/assetlinks.json b/public/.well-known/assetlinks.json index 4c36b41651..aeb742d027 100644 --- a/public/.well-known/assetlinks.json +++ b/public/.well-known/assetlinks.json @@ -1,16 +1,11 @@ -[ - { - "relation": ["delegate_permission/common.query_webapk"], - "target": { - "namespace": "web", - "site": "https://peanut.me/manifest.webmanifest" - } - }, - { - "relation": ["delegate_permission/common.handle_all_urls"], - "target": { - "namespace": "web", - "site": "https://peanut.me" - } - } -] +[{ + "relation": ["delegate_permission/common.handle_all_urls", "delegate_permission/common.get_login_creds"], + "target": { + "namespace": "android_app", + "package_name": "com.peanut.app", + "sha256_cert_fingerprints": [ + "11:94:75:B7:2F:74:28:DC:D8:B2:FF:FF:A9:A0:6B:2D:78:13:17:F1:15:F6:24:BD:BE:F3:C8:16:38:92:0E:98", + "29:10:BA:ED:60:53:6D:60:A9:B2:D5:DB:7D:AD:9B:04:A5:49:FE:17:6E:89:CF:A4:85:17:19:D1:14:99:F1:EB" + ] + } +}] diff --git a/scripts/native-build.js b/scripts/native-build.js new file mode 100644 index 0000000000..96e9464a22 --- /dev/null +++ b/scripts/native-build.js @@ -0,0 +1,233 @@ +#!/usr/bin/env node + +/** + * Native Build Script + * + * Temporarily disables server-only features (API routes, sitemap, robots, manifest) + * and wraps client dynamic routes for static export compatibility. + */ + +const { execSync } = require('child_process'); +const fs = require('fs'); +const path = require('path'); + +const APP_DIR = path.join(__dirname, '..', 'src', 'app'); + +// Files/folders to temporarily disable during native build +const ITEMS_TO_DISABLE = [ + { path: 'api', type: 'dir' }, + { path: 'sitemap.ts', type: 'file' }, + { path: 'robots.ts', type: 'file' }, + { path: 'manifest.ts', type: 'file' }, + { path: 'jobs/route.ts', type: 'file' }, +]; + +const MODIFIED_FILES = []; +const WRAPPER_FILES = []; + +function getDisabledPath(itemPath) { + const dir = path.dirname(itemPath); + const base = path.basename(itemPath); + if (dir === '.') { + return `_${base}.disabled`; + } + return path.join(dir, `_${base}.disabled`); +} + +function disableItems() { + console.log('📦 Disabling server-only features...'); + for (const item of ITEMS_TO_DISABLE) { + const src = path.join(APP_DIR, item.path); + const dest = path.join(APP_DIR, getDisabledPath(item.path)); + if (fs.existsSync(src)) { + fs.renameSync(src, dest); + console.log(` ↳ Disabled: ${item.path}`); + } + } +} + +function restoreItems() { + console.log('🔄 Restoring disabled items...'); + for (const item of ITEMS_TO_DISABLE) { + const src = path.join(APP_DIR, getDisabledPath(item.path)); + const dest = path.join(APP_DIR, item.path); + if (fs.existsSync(src)) { + fs.renameSync(src, dest); + console.log(` ↳ Restored: ${item.path}`); + } + } +} + +function findDynamicRoutes(dir, routes = []) { + const items = fs.readdirSync(dir, { withFileTypes: true }); + + for (const item of items) { + if (item.name.includes('.disabled') || item.name.startsWith('_')) continue; + + const fullPath = path.join(dir, item.name); + + if (item.isDirectory()) { + if (item.name.includes('[')) { + const pagePath = path.join(fullPath, 'page.tsx'); + if (fs.existsSync(pagePath)) { + routes.push(pagePath); + } + } + findDynamicRoutes(fullPath, routes); + } + } + + return routes; +} + +function wrapClientComponents() { + console.log('📝 Wrapping client components for static export...'); + const dynamicRoutes = findDynamicRoutes(APP_DIR); + + for (const pagePath of dynamicRoutes) { + const content = fs.readFileSync(pagePath, 'utf-8'); + + // Skip if already has generateStaticParams (server component) + if (content.includes('generateStaticParams')) { + console.log(` ↳ Skipped (already has generateStaticParams): ${path.relative(APP_DIR, pagePath)}`); + continue; + } + + // Check if it's a client component + const isClientComponent = content.trimStart().startsWith("'use client'") || + content.trimStart().startsWith('"use client"'); + + if (isClientComponent) { + // For client components, we need to create a wrapper + const dir = path.dirname(pagePath); + + // Find the default export name + const exportMatch = content.match(/export\s+default\s+(?:function\s+)?(\w+)/); + if (!exportMatch) { + console.log(` ↳ Skipped (no default export found): ${path.relative(APP_DIR, pagePath)}`); + continue; + } + const componentName = exportMatch[1]; + + // Rename original to _ClientPage.tsx + const clientPagePath = path.join(dir, '_ClientPage.tsx'); + fs.renameSync(pagePath, clientPagePath); + MODIFIED_FILES.push({ original: pagePath, renamed: clientPagePath }); + + // Check if the component expects params + const hasParams = content.includes('params:') || content.includes('PageProps'); + + // Create wrapper page.tsx + const wrapperContent = hasParams + ? `// Auto-generated wrapper for static export +import ClientPage from './_ClientPage' + +export function generateStaticParams() { + return [] +} + +export default function Page(props: any) { + return +} +` + : `// Auto-generated wrapper for static export +import ClientPage from './_ClientPage' + +export function generateStaticParams() { + return [] +} + +export default function Page() { + return +} +`; + fs.writeFileSync(pagePath, wrapperContent); + WRAPPER_FILES.push(pagePath); + + console.log(` ↳ Wrapped: ${path.relative(APP_DIR, pagePath)}`); + } else { + // Server component - just add generateStaticParams + MODIFIED_FILES.push({ path: pagePath, original: content, type: 'content' }); + + const staticParamsExport = `// Added for static export compatibility +export function generateStaticParams() { + return [] +} + +`; + const newContent = staticParamsExport + content; + fs.writeFileSync(pagePath, newContent); + + console.log(` ↳ Added generateStaticParams: ${path.relative(APP_DIR, pagePath)}`); + } + } +} + +function restoreModifiedFiles() { + if (MODIFIED_FILES.length === 0 && WRAPPER_FILES.length === 0) return; + + console.log('🔄 Restoring modified files...'); + + // Remove wrapper files + for (const wrapperPath of WRAPPER_FILES) { + if (fs.existsSync(wrapperPath)) { + fs.unlinkSync(wrapperPath); + } + } + + // Restore renamed/modified files + for (const file of MODIFIED_FILES) { + if (file.type === 'content') { + // Restore content + fs.writeFileSync(file.path, file.original); + console.log(` ↳ Restored content: ${path.relative(APP_DIR, file.path)}`); + } else { + // Restore renamed file + if (fs.existsSync(file.renamed)) { + fs.renameSync(file.renamed, file.original); + console.log(` ↳ Restored: ${path.relative(APP_DIR, file.original)}`); + } + } + } +} + +async function main() { + let buildSucceeded = false; + + try { + disableItems(); + wrapClientComponents(); + + // Clean build cache to ensure fresh build + console.log('🧹 Cleaning build cache...'); + if (fs.existsSync(path.join(__dirname, '..', '.next'))) { + fs.rmSync(path.join(__dirname, '..', '.next'), { recursive: true }); + } + + console.log('\n🏗️ Building static export...\n'); + execSync('NATIVE_BUILD=true next build --webpack', { + stdio: 'inherit', + cwd: path.join(__dirname, '..'), + env: { ...process.env, NATIVE_BUILD: 'true' } + }); + + buildSucceeded = true; + console.log('\n✅ Native build completed successfully!'); + console.log(' Output directory: ./out'); + + } catch (error) { + console.error('\n❌ Build failed:', error.message); + process.exitCode = 1; + } finally { + restoreModifiedFiles(); + restoreItems(); + } + + if (buildSucceeded) { + console.log('\n📱 Next steps:'); + console.log(' pnpm cap:sync # Sync with native projects'); + console.log(' pnpm cap:open:android # Open in Android Studio'); + } +} + +main(); From c4060c2090271903a14bc7df767eddd1891a31d7 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Tue, 7 Apr 2026 21:59:44 +0530 Subject: [PATCH 006/425] fix: exclude capacitor.config.ts from next.js build --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index ab6ce99e74..20630a24cf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -36,5 +36,5 @@ "src/app/api/appleAppSiteAssociation.js", ".next/dev/types/**/*.ts" ], - "exclude": ["node_modules", "src/app/sw.ts", ".next"] + "exclude": ["node_modules", "src/app/sw.ts", ".next", "capacitor.config.ts"] } From 40eb1aaaffdfac6bd5bbbf61e8060a11812bd447 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Tue, 7 Apr 2026 22:01:49 +0530 Subject: [PATCH 007/425] chore: format --- package.json | 5 + pnpm-lock.yaml | 525 ++++++++++++++++++++++++++++- public/.well-known/assetlinks.json | 24 +- scripts/native-build.js | 159 +++++---- 4 files changed, 608 insertions(+), 105 deletions(-) diff --git a/package.json b/package.json index a7308b244a..79eaaea10f 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,9 @@ "verify-content": "tsx scripts/verify-content.ts" }, "dependencies": { + "@capacitor/android": "8.2.0", + "@capacitor/cli": "8.2.0", + "@capacitor/core": "8.2.0", "@dicebear/collection": "^9.2.2", "@dicebear/core": "^9.2.2", "@emotion/react": "^11.14.0", @@ -39,6 +42,7 @@ "@justaname.id/sdk": "0.2.177", "@mui/icons-material": "^7.3.6", "@mui/material": "^7.3.6", + "@noble/curves": "1.9.7", "@radix-ui/react-accordion": "^1.2.12", "@radix-ui/react-select": "^2.2.6", "@radix-ui/react-slider": "^1.3.5", @@ -59,6 +63,7 @@ "@zerodev/sdk": "5.5.7", "autoprefixer": "^10.4.20", "canvas-confetti": "^1.9.3", + "capacitor-webauthn": "0.0.12", "classnames": "^2.5.1", "d3-force": "^3.0.0", "embla-carousel-react": "^8.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 671ed5bdad..e297172a2b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,6 +13,15 @@ importers: .: dependencies: + '@capacitor/android': + specifier: 8.2.0 + version: 8.2.0(@capacitor/core@8.2.0) + '@capacitor/cli': + specifier: 8.2.0 + version: 8.2.0 + '@capacitor/core': + specifier: 8.2.0 + version: 8.2.0 '@dicebear/collection': specifier: ^9.2.2 version: 9.3.1(@dicebear/core@9.3.1) @@ -43,6 +52,9 @@ importers: '@mui/material': specifier: ^7.3.6 version: 7.3.7(@emotion/react@11.14.0(@types/react@18.3.27)(react@19.2.4))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@18.3.27)(react@19.2.4))(@types/react@18.3.27)(react@19.2.4))(@types/react@18.3.27)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@noble/curves': + specifier: 1.9.7 + version: 1.9.7 '@radix-ui/react-accordion': specifier: ^1.2.12 version: 1.2.12(@types/react-dom@18.3.7(@types/react@18.3.27))(@types/react@18.3.27)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) @@ -69,7 +81,7 @@ importers: version: 9.1.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6) '@sentry/nextjs': specifier: ^8.39.0 - version: 8.55.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@2.6.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(next@16.0.10(@babel/core@7.28.6)(@opentelemetry/api@1.9.0)(@playwright/test@1.58.2)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)(webpack@5.104.1) + version: 8.55.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(next@16.0.10(@babel/core@7.28.6)(@opentelemetry/api@1.9.0)(@playwright/test@1.58.2)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)(webpack@5.104.1) '@serwist/next': specifier: ^9.0.10 version: 9.5.0(next@16.0.10(@babel/core@7.28.6)(@opentelemetry/api@1.9.0)(@playwright/test@1.58.2)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)(typescript@5.9.3)(webpack@5.104.1) @@ -103,6 +115,9 @@ importers: canvas-confetti: specifier: ^1.9.3 version: 1.9.4 + capacitor-webauthn: + specifier: 0.0.12 + version: 0.0.12(@capacitor/core@8.2.0) classnames: specifier: ^2.5.1 version: 2.5.1 @@ -490,6 +505,19 @@ packages: '@bcoe/v8-coverage@0.2.3': resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} + '@capacitor/android@8.2.0': + resolution: {integrity: sha512-XLm5OsWLPfXQxDxzFS7SOdMEgGvW+2c7TGLXkTR2cSKdkWK5Abns4imlT5qghKYhjM9r74IrDkBWg/9ALUGNKQ==} + peerDependencies: + '@capacitor/core': ^8.2.0 + + '@capacitor/cli@8.2.0': + resolution: {integrity: sha512-1cMEk0d/I6tl1U+v/lnJR5Oylpx8ZBIHrvQxD5zK0MkjYOUyQAAGJgh97rkhGJqjAUvrGpa8H4BmyhNQN9a17A==} + engines: {node: '>=22.0.0'} + hasBin: true + + '@capacitor/core@8.2.0': + resolution: {integrity: sha512-oKaoNeNtH2iIZMDFVrb1atoyRECDGHcfLMunJ5KWN8DtvpVBeeA4c41e20NTuhMxw1cSYbpq2PV2hb+/9CJxlQ==} + '@coinbase/wallet-sdk@3.9.3': resolution: {integrity: sha512-N/A2DRIf0Y3PHc1XAMvbBUu4zisna6qAdqABMZwBMNEfWrXpAwx16pZGkYCLGE+Rvv1edbcB2LYDRnACNcmCiw==} @@ -1226,10 +1254,46 @@ packages: cpu: [x64] os: [win32] + '@ionic/cli-framework-output@2.2.8': + resolution: {integrity: sha512-TshtaFQsovB4NWRBydbNFawql6yul7d5bMiW1WYYf17hd99V6xdDdk3vtF51bw6sLkxON3bDQpWsnUc9/hVo3g==} + engines: {node: '>=16.0.0'} + + '@ionic/utils-array@2.1.6': + resolution: {integrity: sha512-0JZ1Zkp3wURnv8oq6Qt7fMPo5MpjbLoUoa9Bu2Q4PJuSDWM8H8gwF3dQO7VTeUj3/0o1IB1wGkFWZZYgUXZMUg==} + engines: {node: '>=16.0.0'} + + '@ionic/utils-fs@3.1.7': + resolution: {integrity: sha512-2EknRvMVfhnyhL1VhFkSLa5gOcycK91VnjfrTB0kbqkTFCOXyXgVLI5whzq7SLrgD9t1aqos3lMMQyVzaQ5gVA==} + engines: {node: '>=16.0.0'} + + '@ionic/utils-object@2.1.6': + resolution: {integrity: sha512-vCl7sl6JjBHFw99CuAqHljYJpcE88YaH2ZW4ELiC/Zwxl5tiwn4kbdP/gxi2OT3MQb1vOtgAmSNRtusvgxI8ww==} + engines: {node: '>=16.0.0'} + + '@ionic/utils-process@2.1.12': + resolution: {integrity: sha512-Jqkgyq7zBs/v/J3YvKtQQiIcxfJyplPgECMWgdO0E1fKrrH8EF0QGHNJ9mJCn6PYe2UtHNS8JJf5G21e09DfYg==} + engines: {node: '>=16.0.0'} + + '@ionic/utils-stream@3.1.7': + resolution: {integrity: sha512-eSELBE7NWNFIHTbTC2jiMvh1ABKGIpGdUIvARsNPMNQhxJB3wpwdiVnoBoTYp+5a6UUIww4Kpg7v6S7iTctH1w==} + engines: {node: '>=16.0.0'} + + '@ionic/utils-subprocess@3.0.1': + resolution: {integrity: sha512-cT4te3AQQPeIM9WCwIg8ohroJ8TjsYaMb2G4ZEgv9YzeDqHZ4JpeIKqG2SoaA3GmVQ3sOfhPM6Ox9sxphV/d1A==} + engines: {node: '>=16.0.0'} + + '@ionic/utils-terminal@2.3.5': + resolution: {integrity: sha512-3cKScz9Jx2/Pr9ijj1OzGlBDfcmx7OMVBt4+P1uRR0SSW4cm1/y3Mo4OY3lfkuaYifMNBW8Wz6lQHbs1bihr7A==} + engines: {node: '>=16.0.0'} + '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} engines: {node: '>=12'} + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + '@istanbuljs/load-nyc-config@1.1.0': resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} engines: {node: '>=8'} @@ -2958,6 +3022,9 @@ packages: '@types/estree@1.0.8': resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + '@types/fs-extra@8.1.5': + resolution: {integrity: sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==} + '@types/graceful-fs@4.1.9': resolution: {integrity: sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==} @@ -3037,6 +3104,9 @@ packages: '@types/shimmer@1.2.0': resolution: {integrity: sha512-UE7oxhQLLd9gub6JKIAhDq06T0F6FnztwMNRvYgjeQSBeMc1ZG/tA47EwfduvkuQS8apbkM/lpLpWsaCeYsXVg==} + '@types/slice-ansi@4.0.0': + resolution: {integrity: sha512-+OpjSaq85gvlZAYINyzKpLeiFkSC4EsC6IIiT6v6TLSU5k5U83fHGj9Lel8oKEXM0HqgrMVCjXPDPVICtxF7EQ==} + '@types/stack-utils@2.0.3': resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} @@ -3311,6 +3381,10 @@ packages: '@webassemblyjs/wast-printer@1.14.1': resolution: {integrity: sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==} + '@xmldom/xmldom@0.8.12': + resolution: {integrity: sha512-9k/gHF6n/pAi/9tqr3m3aqkuiNosYTurLLUtc7xQ9sxB/wm7WPygCv8GYa6mS0fLJEHhqMC1ATYhz++U/lRHqg==} + engines: {node: '>=10.0.0'} + '@xtuc/ieee754@1.2.0': resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} @@ -3466,6 +3540,10 @@ packages: resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==} engines: {node: '>=4'} + astral-regex@2.0.0: + resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==} + engines: {node: '>=8'} + astring@1.9.0: resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==} hasBin: true @@ -3476,6 +3554,10 @@ packages: asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + at-least-node@1.0.0: + resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==} + engines: {node: '>= 4.0.0'} + atomic-sleep@1.0.0: resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} engines: {node: '>=8.0.0'} @@ -3537,6 +3619,10 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} + bare-events@2.8.2: resolution: {integrity: sha512-riJjyv1/mHLIPX4RwiK+oW9/4c3TEUeORHKefKAKnZ5kyslbN+HXowtbaVEqt4IMUB7OXlfixcs6gsFeo/jhiQ==} peerDependencies: @@ -3595,6 +3681,10 @@ packages: bezier-js@6.1.4: resolution: {integrity: sha512-PA0FW9ZpcHbojUCMu28z9Vg/fNkwTj5YhusSAjHHDfHDGLxJ6YUKrAN2vk1fP2MMOxVw4Oko16FMlRGVBGqLKg==} + big-integer@1.6.52: + resolution: {integrity: sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==} + engines: {node: '>=0.6'} + big.js@6.2.2: resolution: {integrity: sha512-y/ie+Faknx7sZA5MfGA2xKlu0GDv8RWrXGsmlteyJQ2lvoKv9GBK/fpRMc2qlSoBAgNxrixICFCBefIq8WCQpQ==} @@ -3611,12 +3701,20 @@ packages: bowser@2.13.1: resolution: {integrity: sha512-OHawaAbjwx6rqICCKgSG0SAnT05bzd7ppyKLVUITZpANBaaMFBAsaNkto3LoQ31tyFP5kNujE8Cdx85G9VzOkw==} + bplist-parser@0.3.2: + resolution: {integrity: sha512-apC2+fspHGI3mMKj+dGevkGo/tCqVB8jMb6i+OX+E29p0Iposz07fABkRIfVUPNd5A5VbuOz1bZbnmkKLYF+wQ==} + engines: {node: '>= 5.10.0'} + brace-expansion@1.1.12: resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==} brace-expansion@2.0.2: resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==} + brace-expansion@5.0.5: + resolution: {integrity: sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==} + engines: {node: 18 || 20 || >=22} + braces@3.0.3: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} @@ -3694,6 +3792,11 @@ packages: canvas-confetti@1.9.4: resolution: {integrity: sha512-yxQbJkAVrFXWNbTUjPqjF7G+g6pDotOUHGbkZq2NELZUMDpiJ85rIEazVb8GTaAptNW2miJAXbs1BtioA251Pw==} + capacitor-webauthn@0.0.12: + resolution: {integrity: sha512-sOgk2fyeSgzB+mCd+81J+dXpoqgLBuqjyX6Now9ujjAYQehjPwWvSSlJUxDUhosz6I2yFcXnyunAQK3NkWz6/g==} + peerDependencies: + '@capacitor/core': '>=7.0.0' + ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} @@ -3733,6 +3836,10 @@ packages: resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} engines: {node: '>= 20.19.0'} + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + chrome-trace-event@1.0.4: resolution: {integrity: sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==} engines: {node: '>=6.0'} @@ -3798,6 +3905,10 @@ packages: resolution: {integrity: sha512-MwVNWlYjDTtOjX5PiD7o5pK0UrFU/OYgcJfjjK4RaHZETNtjJqrZa9Y9ds88+A+f+d5lv+561eZ+yCKoS3gbAA==} engines: {node: '>=18'} + commander@12.1.0: + resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} + engines: {node: '>=18'} + commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -4022,6 +4133,10 @@ packages: resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} engines: {node: '>= 0.4'} + define-lazy-prop@2.0.0: + resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} + engines: {node: '>=8'} + defu@6.1.4: resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==} @@ -4127,6 +4242,10 @@ packages: electron-to-chromium@1.5.282: resolution: {integrity: sha512-FCPkJtpst28UmFzd903iU7PdeVTfY0KAeJy+Lk0GLZRwgwYHn/irRcaCbQQOmr5Vytc/7rcavsYLvTM8RiHYhQ==} + elementtree@0.1.7: + resolution: {integrity: sha512-wkgGT6kugeQk/P6VZ/f4T+4HB41BVgNBq5CDIZVbQ02nvTVqAiVTbskxxu3eA/X96lMlfYOwnLQpN2v5E1zDEg==} + engines: {node: '>= 0.4.0'} + elliptic@6.5.4: resolution: {integrity: sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==} @@ -4177,6 +4296,10 @@ packages: resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==} engines: {node: '>=0.12'} + env-paths@2.2.1: + resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} + engines: {node: '>=6'} + error-ex@1.3.4: resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==} @@ -4482,6 +4605,14 @@ packages: react-dom: optional: true + fs-extra@11.3.4: + resolution: {integrity: sha512-CTXd6rk/M3/ULNQj8FBqBWHYBVYybQ3VPBw0xGKFe3tuH7ytT6ACnvzpIQ3UZtB8yvUKC2cXn1a+x+5EVQLovA==} + engines: {node: '>=14.14'} + + fs-extra@9.1.0: + resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==} + engines: {node: '>=10'} + fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} @@ -4556,6 +4687,10 @@ packages: resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==} hasBin: true + glob@13.0.6: + resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==} + engines: {node: 18 || 20 || >=22} + glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported @@ -4726,6 +4861,10 @@ packages: inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + ini@4.1.3: + resolution: {integrity: sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + inline-style-parser@0.2.7: resolution: {integrity: sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==} @@ -4768,6 +4907,11 @@ packages: is-decimal@2.0.1: resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==} + is-docker@2.2.1: + resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==} + engines: {node: '>=8'} + hasBin: true + is-extendable@0.1.1: resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==} engines: {node: '>=0.10.0'} @@ -4825,6 +4969,10 @@ packages: resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==} engines: {node: '>= 0.4'} + is-wsl@2.2.0: + resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==} + engines: {node: '>=8'} + isarray@1.0.0: resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} @@ -5073,6 +5221,9 @@ packages: engines: {node: '>=6'} hasBin: true + jsonfile@6.2.0: + resolution: {integrity: sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==} + jsqr@1.4.0: resolution: {integrity: sha512-dxLob7q65Xg2DvstYkRpkYtmKm2sPJ9oFhrhmudT1dZvNFFTlroai3AWSpLey/w5vMcLBXRgOJsbXpdN9HzU/A==} @@ -5095,6 +5246,10 @@ packages: resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} engines: {node: '>=6'} + kleur@4.1.5: + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} + engines: {node: '>=6'} + knip@5.82.1: resolution: {integrity: sha512-1nQk+5AcnkqL40kGQXfouzAEXkTR+eSrgo/8m1d0BMei4eAzFwghoXC4gOKbACgBiCof7hE8wkBVDsEvznf85w==} engines: {node: '>=18.18.0'} @@ -5410,6 +5565,10 @@ packages: minimalistic-crypto-utils@1.0.1: resolution: {integrity: sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==} + minimatch@10.2.5: + resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==} + engines: {node: 18 || 20 || >=22} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -5432,6 +5591,14 @@ packages: resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + mipd@0.0.7: resolution: {integrity: sha512-aAPZPNDQ3uMTdKbuO2YmAw2TxLHO0moa4YKAyETM/DTj5FloZo+a+8tU+iv4GmW+sOxKLSRwcSFuczk+Cpt6fg==} peerDependencies: @@ -5478,6 +5645,11 @@ packages: nanospinner@1.2.2: resolution: {integrity: sha512-Zt/AmG6qRU3e+WnzGGLuMCEAO/dAu45stNbHY223tUxldaDAeE+FxSPsd9Q+j+paejmm0ZbrNVs5Sraqy3dRxA==} + native-run@2.0.3: + resolution: {integrity: sha512-U1PllBuzW5d1gfan+88L+Hky2eZx+9gv3Pf6rNBxKbORxi7boHzqiA6QFGSnqMem4j0A9tZ08NMIs5+0m/VS1Q==} + engines: {node: '>=16.0.0'} + hasBin: true + natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -5609,6 +5781,10 @@ packages: oniguruma-to-es@4.3.4: resolution: {integrity: sha512-3VhUGN3w2eYxnTzHn+ikMI+fp/96KoRSVK9/kMTcFqj1NRDh2IhQCKvYxDnWePKRXY/AqH+Fuiyb7VHSzBjHfA==} + open@8.4.2: + resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} + engines: {node: '>=12'} + opener@1.5.2: resolution: {integrity: sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==} hasBin: true @@ -5699,6 +5875,10 @@ packages: resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} engines: {node: '>=16 || 14 >=14.18'} + path-scurry@2.0.2: + resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} + engines: {node: 18 || 20 || >=22} + path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -5772,6 +5952,10 @@ packages: engines: {node: '>=18'} hasBin: true + plist@3.1.0: + resolution: {integrity: sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==} + engines: {node: '>=10.4.0'} + pngjs@5.0.0: resolution: {integrity: sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==} engines: {node: '>=10.13.0'} @@ -6271,6 +6455,11 @@ packages: resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + rimraf@6.1.3: + resolution: {integrity: sha512-LKg+Cr2ZF61fkcaK1UdkH2yEBBKnYjTyWzTJT6KNPcSPaiT7HSdhtMXQuN5wkTX0Xu72KQ1l8S42rlmexS2hSA==} + engines: {node: 20 || >=22} + hasBin: true + rollup@3.29.5: resolution: {integrity: sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} @@ -6296,6 +6485,13 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + sax@1.1.4: + resolution: {integrity: sha512-5f3k2PbGGp+YtKJjOItpg3P99IMD84E4HOvcfleTb5joCHNXYLsR9yWFPOYGgaeMPDubQILTCMdsFb2OMeOjtg==} + + sax@1.6.0: + resolution: {integrity: sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==} + engines: {node: '>=11.0.0'} + saxes@6.0.0: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} engines: {node: '>=v12.22.7'} @@ -6408,6 +6604,10 @@ packages: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} + slice-ansi@4.0.0: + resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==} + engines: {node: '>=10'} + smart-buffer@4.2.0: resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} @@ -6639,6 +6839,10 @@ packages: tar-stream@3.1.7: resolution: {integrity: sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==} + tar@7.5.13: + resolution: {integrity: sha512-tOG/7GyXpFevhXVh8jOPJrmtRpOTsYqUIkVdVooZYJS/z8WhfQUX8RJILmeuJNinGAMSu1veBr4asSHFt5/hng==} + engines: {node: '>=18'} + terser-webpack-plugin@5.3.16: resolution: {integrity: sha512-h9oBFCWrq78NyWWVcSwZarJkZ01c2AyGrzs1crmHZO3QUg9D61Wu4NPjBy69n7JqylFF5y+CsUZYmYEIZ3mR+Q==} engines: {node: '>= 10.13.0'} @@ -6677,6 +6881,9 @@ packages: thread-stream@0.15.2: resolution: {integrity: sha512-UkEhKIg2pD+fjkHQKyJO3yoIvAP3N6RlNFt2dUhcS1FGvCD1cQa1M/PGknCLFIyZdtJOWQjejp7bdNqmN7zwdA==} + through2@4.0.2: + resolution: {integrity: sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==} + tinycolor2@1.6.0: resolution: {integrity: sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==} @@ -6713,6 +6920,10 @@ packages: resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==} engines: {node: '>=12'} + tree-kill@1.2.2: + resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} + hasBin: true + trim-lines@3.0.1: resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} @@ -6836,6 +7047,10 @@ packages: resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==} engines: {node: '>= 4.0.0'} + universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} + unplugin@1.0.1: resolution: {integrity: sha512-aqrHaVBWW1JVKBHmGo33T5TxeL0qWzfvjWokObHA9bYmN7eNDkwOxmLjhioHl9878qDFMAaT51XNroRyuz7WxA==} @@ -6901,6 +7116,10 @@ packages: uploadthing: optional: true + untildify@4.0.0: + resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==} + engines: {node: '>=8'} + update-browserslist-db@1.2.3: resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} hasBin: true @@ -7187,6 +7406,18 @@ packages: resolution: {integrity: sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==} engines: {node: '>=12'} + xml2js@0.6.2: + resolution: {integrity: sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==} + engines: {node: '>=4.0.0'} + + xmlbuilder@11.0.1: + resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==} + engines: {node: '>=4.0'} + + xmlbuilder@15.1.1: + resolution: {integrity: sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==} + engines: {node: '>=8.0'} + xmlchars@2.2.0: resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} @@ -7208,6 +7439,10 @@ packages: yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + yaml@1.10.2: resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} engines: {node: '>= 6'} @@ -7512,6 +7747,36 @@ snapshots: '@bcoe/v8-coverage@0.2.3': {} + '@capacitor/android@8.2.0(@capacitor/core@8.2.0)': + dependencies: + '@capacitor/core': 8.2.0 + + '@capacitor/cli@8.2.0': + dependencies: + '@ionic/cli-framework-output': 2.2.8 + '@ionic/utils-subprocess': 3.0.1 + '@ionic/utils-terminal': 2.3.5 + commander: 12.1.0 + debug: 4.4.3 + env-paths: 2.2.1 + fs-extra: 11.3.4 + kleur: 4.1.5 + native-run: 2.0.3 + open: 8.4.2 + plist: 3.1.0 + prompts: 2.4.2 + rimraf: 6.1.3 + semver: 7.7.3 + tar: 7.5.13 + tslib: 2.8.1 + xml2js: 0.6.2 + transitivePeerDependencies: + - supports-color + + '@capacitor/core@8.2.0': + dependencies: + tslib: 2.8.1 + '@coinbase/wallet-sdk@3.9.3': dependencies: bn.js: 5.2.2 @@ -8357,6 +8622,82 @@ snapshots: '@img/sharp-win32-x64@0.34.5': optional: true + '@ionic/cli-framework-output@2.2.8': + dependencies: + '@ionic/utils-terminal': 2.3.5 + debug: 4.4.3 + tslib: 2.8.1 + transitivePeerDependencies: + - supports-color + + '@ionic/utils-array@2.1.6': + dependencies: + debug: 4.4.3 + tslib: 2.8.1 + transitivePeerDependencies: + - supports-color + + '@ionic/utils-fs@3.1.7': + dependencies: + '@types/fs-extra': 8.1.5 + debug: 4.4.3 + fs-extra: 9.1.0 + tslib: 2.8.1 + transitivePeerDependencies: + - supports-color + + '@ionic/utils-object@2.1.6': + dependencies: + debug: 4.4.3 + tslib: 2.8.1 + transitivePeerDependencies: + - supports-color + + '@ionic/utils-process@2.1.12': + dependencies: + '@ionic/utils-object': 2.1.6 + '@ionic/utils-terminal': 2.3.5 + debug: 4.4.3 + signal-exit: 3.0.7 + tree-kill: 1.2.2 + tslib: 2.8.1 + transitivePeerDependencies: + - supports-color + + '@ionic/utils-stream@3.1.7': + dependencies: + debug: 4.4.3 + tslib: 2.8.1 + transitivePeerDependencies: + - supports-color + + '@ionic/utils-subprocess@3.0.1': + dependencies: + '@ionic/utils-array': 2.1.6 + '@ionic/utils-fs': 3.1.7 + '@ionic/utils-process': 2.1.12 + '@ionic/utils-stream': 3.1.7 + '@ionic/utils-terminal': 2.3.5 + cross-spawn: 7.0.6 + debug: 4.4.3 + tslib: 2.8.1 + transitivePeerDependencies: + - supports-color + + '@ionic/utils-terminal@2.3.5': + dependencies: + '@types/slice-ansi': 4.0.0 + debug: 4.4.3 + signal-exit: 3.0.7 + slice-ansi: 4.0.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + tslib: 2.8.1 + untildify: 4.0.0 + wrap-ansi: 7.0.0 + transitivePeerDependencies: + - supports-color + '@isaacs/cliui@8.0.2': dependencies: string-width: 5.1.2 @@ -8366,6 +8707,10 @@ snapshots: wrap-ansi: 8.1.0 wrap-ansi-cjs: wrap-ansi@7.0.0 + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.2 + '@istanbuljs/load-nyc-config@1.1.0': dependencies: camelcase: 5.3.1 @@ -10442,7 +10787,7 @@ snapshots: '@scure/bip32@1.7.0': dependencies: - '@noble/curves': 1.9.1 + '@noble/curves': 1.9.7 '@noble/hashes': 1.8.0 '@scure/base': 1.2.6 @@ -10540,7 +10885,7 @@ snapshots: '@sentry/core@8.55.0': {} - '@sentry/nextjs@8.55.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@2.6.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(next@16.0.10(@babel/core@7.28.6)(@opentelemetry/api@1.9.0)(@playwright/test@1.58.2)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)(webpack@5.104.1)': + '@sentry/nextjs@8.55.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(next@16.0.10(@babel/core@7.28.6)(@opentelemetry/api@1.9.0)(@playwright/test@1.58.2)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)(webpack@5.104.1)': dependencies: '@opentelemetry/api': 1.9.0 '@opentelemetry/semantic-conventions': 1.39.0 @@ -10548,7 +10893,7 @@ snapshots: '@sentry-internal/browser-utils': 8.55.0 '@sentry/core': 8.55.0 '@sentry/node': 8.55.0 - '@sentry/opentelemetry': 8.55.0(@opentelemetry/api@1.9.0)(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@2.6.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.39.0) + '@sentry/opentelemetry': 8.55.0(@opentelemetry/api@1.9.0)(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.39.0) '@sentry/react': 8.55.0(react@19.2.4) '@sentry/vercel-edge': 8.55.0 '@sentry/webpack-plugin': 2.22.7(webpack@5.104.1) @@ -10617,16 +10962,6 @@ snapshots: '@opentelemetry/semantic-conventions': 1.39.0 '@sentry/core': 8.55.0 - '@sentry/opentelemetry@8.55.0(@opentelemetry/api@1.9.0)(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@2.6.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.39.0)': - dependencies: - '@opentelemetry/api': 1.9.0 - '@opentelemetry/context-async-hooks': 1.30.1(@opentelemetry/api@1.9.0) - '@opentelemetry/core': 2.6.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 2.2.0(@opentelemetry/api@1.9.0) - '@opentelemetry/semantic-conventions': 1.39.0 - '@sentry/core': 8.55.0 - '@sentry/react@8.55.0(react@19.2.4)': dependencies: '@sentry/browser': 8.55.0 @@ -10942,6 +11277,10 @@ snapshots: '@types/estree@1.0.8': {} + '@types/fs-extra@8.1.5': + dependencies: + '@types/node': 20.4.2 + '@types/graceful-fs@4.1.9': dependencies: '@types/node': 20.4.2 @@ -11024,6 +11363,8 @@ snapshots: '@types/shimmer@1.2.0': {} + '@types/slice-ansi@4.0.0': {} + '@types/stack-utils@2.0.3': {} '@types/tedious@4.0.14': @@ -11927,6 +12268,8 @@ snapshots: '@webassemblyjs/ast': 1.14.1 '@xtuc/long': 4.2.2 + '@xmldom/xmldom@0.8.12': {} + '@xtuc/ieee754@1.2.0': {} '@xtuc/long@4.2.2': {} @@ -12061,6 +12404,8 @@ snapshots: dependencies: tslib: 2.8.1 + astral-regex@2.0.0: {} + astring@1.9.0: {} async-mutex@0.2.6: @@ -12069,6 +12414,8 @@ snapshots: asynckit@0.4.0: {} + at-least-node@1.0.0: {} + atomic-sleep@1.0.0: {} autoprefixer@10.4.23(postcss@8.5.6): @@ -12159,6 +12506,8 @@ snapshots: balanced-match@1.0.2: {} + balanced-match@4.0.4: {} + bare-events@2.8.2: {} bare-fs@4.5.3: @@ -12208,6 +12557,8 @@ snapshots: bezier-js@6.1.4: {} + big-integer@1.6.52: {} + big.js@6.2.2: {} binary-extensions@2.3.0: {} @@ -12218,6 +12569,10 @@ snapshots: bowser@2.13.1: {} + bplist-parser@0.3.2: + dependencies: + big-integer: 1.6.52 + brace-expansion@1.1.12: dependencies: balanced-match: 1.0.2 @@ -12227,6 +12582,10 @@ snapshots: dependencies: balanced-match: 1.0.2 + brace-expansion@5.0.5: + dependencies: + balanced-match: 4.0.4 + braces@3.0.3: dependencies: fill-range: 7.1.1 @@ -12301,6 +12660,10 @@ snapshots: canvas-confetti@1.9.4: {} + capacitor-webauthn@0.0.12(@capacitor/core@8.2.0): + dependencies: + '@capacitor/core': 8.2.0 + ccount@2.0.1: {} chalk@3.0.0: @@ -12343,6 +12706,8 @@ snapshots: dependencies: readdirp: 5.0.0 + chownr@3.0.0: {} + chrome-trace-event@1.0.4: {} chromium-bidi@8.0.0(devtools-protocol@0.0.1495869): @@ -12395,6 +12760,8 @@ snapshots: commander@12.0.0: {} + commander@12.1.0: {} + commander@2.20.3: {} commander@4.1.1: {} @@ -12605,6 +12972,8 @@ snapshots: es-errors: 1.3.0 gopd: 1.2.0 + define-lazy-prop@2.0.0: {} + defu@6.1.4: {} degenerator@5.0.1: @@ -12697,6 +13066,10 @@ snapshots: electron-to-chromium@1.5.282: {} + elementtree@0.1.7: + dependencies: + sax: 1.1.4 + elliptic@6.5.4: dependencies: bn.js: 4.12.2 @@ -12762,6 +13135,8 @@ snapshots: entities@6.0.1: {} + env-paths@2.2.1: {} + error-ex@1.3.4: dependencies: is-arrayish: 0.2.1 @@ -13174,6 +13549,19 @@ snapshots: react: 19.2.4 react-dom: 19.2.4(react@19.2.4) + fs-extra@11.3.4: + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.2.0 + universalify: 2.0.1 + + fs-extra@9.1.0: + dependencies: + at-least-node: 1.0.0 + graceful-fs: 4.2.11 + jsonfile: 6.2.0 + universalify: 2.0.1 + fs.realpath@1.0.0: {} fsevents@2.3.2: @@ -13249,6 +13637,12 @@ snapshots: package-json-from-dist: 1.0.1 path-scurry: 1.11.1 + glob@13.0.6: + dependencies: + minimatch: 10.2.5 + minipass: 7.1.3 + path-scurry: 2.0.2 + glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -13494,6 +13888,8 @@ snapshots: inherits@2.0.4: {} + ini@4.1.3: {} + inline-style-parser@0.2.7: {} internmap@2.0.3: {} @@ -13528,6 +13924,8 @@ snapshots: is-decimal@2.0.1: {} + is-docker@2.2.1: {} + is-extendable@0.1.1: {} is-extglob@2.1.1: {} @@ -13575,6 +13973,10 @@ snapshots: dependencies: which-typed-array: 1.1.20 + is-wsl@2.2.0: + dependencies: + is-docker: 2.2.1 + isarray@1.0.0: {} isarray@2.0.5: {} @@ -14032,6 +14434,12 @@ snapshots: json5@2.2.3: {} + jsonfile@6.2.0: + dependencies: + universalify: 2.0.1 + optionalDependencies: + graceful-fs: 4.2.11 + jsqr@1.4.0: {} kapsule@1.16.3: @@ -14050,6 +14458,8 @@ snapshots: kleur@3.0.3: {} + kleur@4.1.5: {} + knip@5.82.1(@types/node@20.4.2)(typescript@5.9.3): dependencies: '@nodelib/fs.walk': 1.2.8 @@ -14617,6 +15027,10 @@ snapshots: minimalistic-crypto-utils@1.0.1: {} + minimatch@10.2.5: + dependencies: + brace-expansion: 5.0.5 + minimatch@3.1.2: dependencies: brace-expansion: 1.1.12 @@ -14635,6 +15049,12 @@ snapshots: minipass@7.1.2: {} + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.2 + mipd@0.0.7(typescript@5.9.3): optionalDependencies: typescript: 5.9.3 @@ -14669,6 +15089,22 @@ snapshots: dependencies: picocolors: 1.1.1 + native-run@2.0.3: + dependencies: + '@ionic/utils-fs': 3.1.7 + '@ionic/utils-terminal': 2.3.5 + bplist-parser: 0.3.2 + debug: 4.4.3 + elementtree: 0.1.7 + ini: 4.1.3 + plist: 3.1.0 + split2: 4.2.0 + through2: 4.0.2 + tslib: 2.8.1 + yauzl: 2.10.0 + transitivePeerDependencies: + - supports-color + natural-compare@1.4.0: {} neo-async@2.6.2: {} @@ -14781,6 +15217,12 @@ snapshots: regex: 6.1.0 regex-recursion: 6.0.2 + open@8.4.2: + dependencies: + define-lazy-prop: 2.0.0 + is-docker: 2.2.1 + is-wsl: 2.2.0 + opener@1.5.2: {} ox@0.11.3(typescript@5.9.3)(zod@3.22.4): @@ -14928,6 +15370,11 @@ snapshots: lru-cache: 10.4.3 minipass: 7.1.2 + path-scurry@2.0.2: + dependencies: + lru-cache: 11.2.5 + minipass: 7.1.3 + path-type@4.0.0: {} pend@1.2.0: {} @@ -14999,6 +15446,12 @@ snapshots: optionalDependencies: fsevents: 2.3.2 + plist@3.1.0: + dependencies: + '@xmldom/xmldom': 0.8.12 + base64-js: 1.5.1 + xmlbuilder: 15.1.1 + pngjs@5.0.0: {} pony-cause@2.1.11: {} @@ -15503,6 +15956,11 @@ snapshots: reusify@1.1.0: {} + rimraf@6.1.3: + dependencies: + glob: 13.0.6 + package-json-from-dist: 1.0.1 + rollup@3.29.5: optionalDependencies: fsevents: 2.3.3 @@ -15525,6 +15983,10 @@ snapshots: safer-buffer@2.1.2: {} + sax@1.1.4: {} + + sax@1.6.0: {} + saxes@6.0.0: dependencies: xmlchars: 2.2.0 @@ -15688,6 +16150,12 @@ snapshots: slash@3.0.0: {} + slice-ansi@4.0.0: + dependencies: + ansi-styles: 4.3.0 + astral-regex: 2.0.0 + is-fullwidth-code-point: 3.0.0 + smart-buffer@4.2.0: {} smol-toml@1.6.0: {} @@ -15952,6 +16420,14 @@ snapshots: - bare-abort-controller - react-native-b4a + tar@7.5.13: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.2 + minizlib: 3.1.0 + yallist: 5.0.0 + terser-webpack-plugin@5.3.16(webpack@5.104.1): dependencies: '@jridgewell/trace-mapping': 0.3.31 @@ -15992,6 +16468,10 @@ snapshots: dependencies: real-require: 0.1.0 + through2@4.0.2: + dependencies: + readable-stream: 3.6.2 + tinycolor2@1.6.0: {} tinyglobby@0.2.15: @@ -16030,6 +16510,8 @@ snapshots: dependencies: punycode: 2.3.1 + tree-kill@1.2.2: {} + trim-lines@3.0.1: {} trough@2.2.0: {} @@ -16147,6 +16629,8 @@ snapshots: universalify@0.2.0: {} + universalify@2.0.1: {} + unplugin@1.0.1: dependencies: acorn: 8.15.0 @@ -16167,6 +16651,8 @@ snapshots: optionalDependencies: idb-keyval: 6.2.2 + untildify@4.0.0: {} + update-browserslist-db@1.2.3(browserslist@4.28.1): dependencies: browserslist: 4.28.1 @@ -16517,6 +17003,15 @@ snapshots: xml-name-validator@4.0.0: {} + xml2js@0.6.2: + dependencies: + sax: 1.6.0 + xmlbuilder: 11.0.1 + + xmlbuilder@11.0.1: {} + + xmlbuilder@15.1.1: {} + xmlchars@2.2.0: {} xmlhttprequest-ssl@2.1.2: {} @@ -16529,6 +17024,8 @@ snapshots: yallist@3.1.1: {} + yallist@5.0.0: {} + yaml@1.10.2: {} yaml@2.8.2: {} diff --git a/public/.well-known/assetlinks.json b/public/.well-known/assetlinks.json index aeb742d027..040d0e389f 100644 --- a/public/.well-known/assetlinks.json +++ b/public/.well-known/assetlinks.json @@ -1,11 +1,13 @@ -[{ - "relation": ["delegate_permission/common.handle_all_urls", "delegate_permission/common.get_login_creds"], - "target": { - "namespace": "android_app", - "package_name": "com.peanut.app", - "sha256_cert_fingerprints": [ - "11:94:75:B7:2F:74:28:DC:D8:B2:FF:FF:A9:A0:6B:2D:78:13:17:F1:15:F6:24:BD:BE:F3:C8:16:38:92:0E:98", - "29:10:BA:ED:60:53:6D:60:A9:B2:D5:DB:7D:AD:9B:04:A5:49:FE:17:6E:89:CF:A4:85:17:19:D1:14:99:F1:EB" - ] - } -}] +[ + { + "relation": ["delegate_permission/common.handle_all_urls", "delegate_permission/common.get_login_creds"], + "target": { + "namespace": "android_app", + "package_name": "com.peanut.app", + "sha256_cert_fingerprints": [ + "11:94:75:B7:2F:74:28:DC:D8:B2:FF:FF:A9:A0:6B:2D:78:13:17:F1:15:F6:24:BD:BE:F3:C8:16:38:92:0E:98", + "29:10:BA:ED:60:53:6D:60:A9:B2:D5:DB:7D:AD:9B:04:A5:49:FE:17:6E:89:CF:A4:85:17:19:D1:14:99:F1:EB" + ] + } + } +] diff --git a/scripts/native-build.js b/scripts/native-build.js index 96e9464a22..639bcc873e 100644 --- a/scripts/native-build.js +++ b/scripts/native-build.js @@ -7,11 +7,11 @@ * and wraps client dynamic routes for static export compatibility. */ -const { execSync } = require('child_process'); -const fs = require('fs'); -const path = require('path'); +const { execSync } = require('child_process') +const fs = require('fs') +const path = require('path') -const APP_DIR = path.join(__dirname, '..', 'src', 'app'); +const APP_DIR = path.join(__dirname, '..', 'src', 'app') // Files/folders to temporarily disable during native build const ITEMS_TO_DISABLE = [ @@ -20,102 +20,102 @@ const ITEMS_TO_DISABLE = [ { path: 'robots.ts', type: 'file' }, { path: 'manifest.ts', type: 'file' }, { path: 'jobs/route.ts', type: 'file' }, -]; +] -const MODIFIED_FILES = []; -const WRAPPER_FILES = []; +const MODIFIED_FILES = [] +const WRAPPER_FILES = [] function getDisabledPath(itemPath) { - const dir = path.dirname(itemPath); - const base = path.basename(itemPath); + const dir = path.dirname(itemPath) + const base = path.basename(itemPath) if (dir === '.') { - return `_${base}.disabled`; + return `_${base}.disabled` } - return path.join(dir, `_${base}.disabled`); + return path.join(dir, `_${base}.disabled`) } function disableItems() { - console.log('📦 Disabling server-only features...'); + console.log('📦 Disabling server-only features...') for (const item of ITEMS_TO_DISABLE) { - const src = path.join(APP_DIR, item.path); - const dest = path.join(APP_DIR, getDisabledPath(item.path)); + const src = path.join(APP_DIR, item.path) + const dest = path.join(APP_DIR, getDisabledPath(item.path)) if (fs.existsSync(src)) { - fs.renameSync(src, dest); - console.log(` ↳ Disabled: ${item.path}`); + fs.renameSync(src, dest) + console.log(` ↳ Disabled: ${item.path}`) } } } function restoreItems() { - console.log('🔄 Restoring disabled items...'); + console.log('🔄 Restoring disabled items...') for (const item of ITEMS_TO_DISABLE) { - const src = path.join(APP_DIR, getDisabledPath(item.path)); - const dest = path.join(APP_DIR, item.path); + const src = path.join(APP_DIR, getDisabledPath(item.path)) + const dest = path.join(APP_DIR, item.path) if (fs.existsSync(src)) { - fs.renameSync(src, dest); - console.log(` ↳ Restored: ${item.path}`); + fs.renameSync(src, dest) + console.log(` ↳ Restored: ${item.path}`) } } } function findDynamicRoutes(dir, routes = []) { - const items = fs.readdirSync(dir, { withFileTypes: true }); + const items = fs.readdirSync(dir, { withFileTypes: true }) for (const item of items) { - if (item.name.includes('.disabled') || item.name.startsWith('_')) continue; + if (item.name.includes('.disabled') || item.name.startsWith('_')) continue - const fullPath = path.join(dir, item.name); + const fullPath = path.join(dir, item.name) if (item.isDirectory()) { if (item.name.includes('[')) { - const pagePath = path.join(fullPath, 'page.tsx'); + const pagePath = path.join(fullPath, 'page.tsx') if (fs.existsSync(pagePath)) { - routes.push(pagePath); + routes.push(pagePath) } } - findDynamicRoutes(fullPath, routes); + findDynamicRoutes(fullPath, routes) } } - return routes; + return routes } function wrapClientComponents() { - console.log('📝 Wrapping client components for static export...'); - const dynamicRoutes = findDynamicRoutes(APP_DIR); + console.log('📝 Wrapping client components for static export...') + const dynamicRoutes = findDynamicRoutes(APP_DIR) for (const pagePath of dynamicRoutes) { - const content = fs.readFileSync(pagePath, 'utf-8'); + const content = fs.readFileSync(pagePath, 'utf-8') // Skip if already has generateStaticParams (server component) if (content.includes('generateStaticParams')) { - console.log(` ↳ Skipped (already has generateStaticParams): ${path.relative(APP_DIR, pagePath)}`); - continue; + console.log(` ↳ Skipped (already has generateStaticParams): ${path.relative(APP_DIR, pagePath)}`) + continue } // Check if it's a client component - const isClientComponent = content.trimStart().startsWith("'use client'") || - content.trimStart().startsWith('"use client"'); + const isClientComponent = + content.trimStart().startsWith("'use client'") || content.trimStart().startsWith('"use client"') if (isClientComponent) { // For client components, we need to create a wrapper - const dir = path.dirname(pagePath); + const dir = path.dirname(pagePath) // Find the default export name - const exportMatch = content.match(/export\s+default\s+(?:function\s+)?(\w+)/); + const exportMatch = content.match(/export\s+default\s+(?:function\s+)?(\w+)/) if (!exportMatch) { - console.log(` ↳ Skipped (no default export found): ${path.relative(APP_DIR, pagePath)}`); - continue; + console.log(` ↳ Skipped (no default export found): ${path.relative(APP_DIR, pagePath)}`) + continue } - const componentName = exportMatch[1]; + const componentName = exportMatch[1] // Rename original to _ClientPage.tsx - const clientPagePath = path.join(dir, '_ClientPage.tsx'); - fs.renameSync(pagePath, clientPagePath); - MODIFIED_FILES.push({ original: pagePath, renamed: clientPagePath }); + const clientPagePath = path.join(dir, '_ClientPage.tsx') + fs.renameSync(pagePath, clientPagePath) + MODIFIED_FILES.push({ original: pagePath, renamed: clientPagePath }) // Check if the component expects params - const hasParams = content.includes('params:') || content.includes('PageProps'); + const hasParams = content.includes('params:') || content.includes('PageProps') // Create wrapper page.tsx const wrapperContent = hasParams @@ -140,38 +140,38 @@ export function generateStaticParams() { export default function Page() { return } -`; - fs.writeFileSync(pagePath, wrapperContent); - WRAPPER_FILES.push(pagePath); +` + fs.writeFileSync(pagePath, wrapperContent) + WRAPPER_FILES.push(pagePath) - console.log(` ↳ Wrapped: ${path.relative(APP_DIR, pagePath)}`); + console.log(` ↳ Wrapped: ${path.relative(APP_DIR, pagePath)}`) } else { // Server component - just add generateStaticParams - MODIFIED_FILES.push({ path: pagePath, original: content, type: 'content' }); + MODIFIED_FILES.push({ path: pagePath, original: content, type: 'content' }) const staticParamsExport = `// Added for static export compatibility export function generateStaticParams() { return [] } -`; - const newContent = staticParamsExport + content; - fs.writeFileSync(pagePath, newContent); +` + const newContent = staticParamsExport + content + fs.writeFileSync(pagePath, newContent) - console.log(` ↳ Added generateStaticParams: ${path.relative(APP_DIR, pagePath)}`); + console.log(` ↳ Added generateStaticParams: ${path.relative(APP_DIR, pagePath)}`) } } } function restoreModifiedFiles() { - if (MODIFIED_FILES.length === 0 && WRAPPER_FILES.length === 0) return; + if (MODIFIED_FILES.length === 0 && WRAPPER_FILES.length === 0) return - console.log('🔄 Restoring modified files...'); + console.log('🔄 Restoring modified files...') // Remove wrapper files for (const wrapperPath of WRAPPER_FILES) { if (fs.existsSync(wrapperPath)) { - fs.unlinkSync(wrapperPath); + fs.unlinkSync(wrapperPath) } } @@ -179,55 +179,54 @@ function restoreModifiedFiles() { for (const file of MODIFIED_FILES) { if (file.type === 'content') { // Restore content - fs.writeFileSync(file.path, file.original); - console.log(` ↳ Restored content: ${path.relative(APP_DIR, file.path)}`); + fs.writeFileSync(file.path, file.original) + console.log(` ↳ Restored content: ${path.relative(APP_DIR, file.path)}`) } else { // Restore renamed file if (fs.existsSync(file.renamed)) { - fs.renameSync(file.renamed, file.original); - console.log(` ↳ Restored: ${path.relative(APP_DIR, file.original)}`); + fs.renameSync(file.renamed, file.original) + console.log(` ↳ Restored: ${path.relative(APP_DIR, file.original)}`) } } } } async function main() { - let buildSucceeded = false; + let buildSucceeded = false try { - disableItems(); - wrapClientComponents(); + disableItems() + wrapClientComponents() // Clean build cache to ensure fresh build - console.log('🧹 Cleaning build cache...'); + console.log('🧹 Cleaning build cache...') if (fs.existsSync(path.join(__dirname, '..', '.next'))) { - fs.rmSync(path.join(__dirname, '..', '.next'), { recursive: true }); + fs.rmSync(path.join(__dirname, '..', '.next'), { recursive: true }) } - console.log('\n🏗️ Building static export...\n'); + console.log('\n🏗️ Building static export...\n') execSync('NATIVE_BUILD=true next build --webpack', { stdio: 'inherit', cwd: path.join(__dirname, '..'), - env: { ...process.env, NATIVE_BUILD: 'true' } - }); - - buildSucceeded = true; - console.log('\n✅ Native build completed successfully!'); - console.log(' Output directory: ./out'); + env: { ...process.env, NATIVE_BUILD: 'true' }, + }) + buildSucceeded = true + console.log('\n✅ Native build completed successfully!') + console.log(' Output directory: ./out') } catch (error) { - console.error('\n❌ Build failed:', error.message); - process.exitCode = 1; + console.error('\n❌ Build failed:', error.message) + process.exitCode = 1 } finally { - restoreModifiedFiles(); - restoreItems(); + restoreModifiedFiles() + restoreItems() } if (buildSucceeded) { - console.log('\n📱 Next steps:'); - console.log(' pnpm cap:sync # Sync with native projects'); - console.log(' pnpm cap:open:android # Open in Android Studio'); + console.log('\n📱 Next steps:') + console.log(' pnpm cap:sync # Sync with native projects') + console.log(' pnpm cap:open:android # Open in Android Studio') } } -main(); +main() From 92086aaa0db36f7928cdd5af4b3781e8adf5da77 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Tue, 7 Apr 2026 22:11:05 +0530 Subject: [PATCH 008/425] fix: skip webview detection in capacitor (not an in-app browser) --- src/components/Setup/Setup.utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Setup/Setup.utils.ts b/src/components/Setup/Setup.utils.ts index 9d5c5ff150..49616ea080 100644 --- a/src/components/Setup/Setup.utils.ts +++ b/src/components/Setup/Setup.utils.ts @@ -1,8 +1,11 @@ import { inAppSignatures } from '../Global/UnsupportedBrowserModal' +import { isCapacitor } from '@/utils/capacitor' // checks user agent against a list of known in-app browser signatures export const isLikelyWebview = () => { if (typeof navigator === 'undefined') return false + // capacitor webview is intentional — not an in-app browser + if (isCapacitor()) return false const uaString = navigator.userAgent || navigator.vendor || (window as any).opera // pwps running in standalone mode are not considered webviews if (typeof window !== 'undefined' && window.matchMedia('(display-mode: standalone)').matches) { From 918100bc62102b42f77ee083d1da8ee90b31c9d4 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Tue, 7 Apr 2026 22:21:01 +0530 Subject: [PATCH 009/425] fix: skip webview and passkey checks in capacitor on setup page --- src/app/(setup)/setup/page.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/app/(setup)/setup/page.tsx b/src/app/(setup)/setup/page.tsx index 2056c9f14a..1010496ad1 100644 --- a/src/app/(setup)/setup/page.tsx +++ b/src/app/(setup)/setup/page.tsx @@ -10,6 +10,7 @@ import { Suspense, useEffect, useState } from 'react' import { setupSteps as masterSetupSteps } from '../../../components/Setup/Setup.consts' import UnsupportedBrowserModal from '@/components/Global/UnsupportedBrowserModal' import { isLikelyWebview, isDeviceOsSupported } from '@/components/Setup/Setup.utils' +import { isCapacitor } from '@/utils/capacitor' import { getFromCookie } from '@/utils/general.utils' import { DeviceType, useDeviceType } from '@/hooks/useGetDeviceType' import { useAuth } from '@/context/authContext' @@ -41,6 +42,16 @@ function SetupPageContent() { setIsLoading(true) await new Promise((resolve) => setTimeout(resolve, 100)) // ensure other initializations can complete + const localDeviceType = detectedDeviceType + + // in capacitor, passkeys are handled natively — skip all browser/webview/os checks + // and go straight to setup flow + if (isCapacitor()) { + setDeviceType(localDeviceType) + setIsLoading(false) + return + } + // check for native passkey support let passkeySupport = true try { @@ -51,7 +62,6 @@ function SetupPageContent() { } const ua = typeof navigator !== 'undefined' ? navigator.userAgent : '' - const localDeviceType = detectedDeviceType const osSupportedByVersion = isDeviceOsSupported(ua) const webviewByUASignature = isLikelyWebview() // initial webview check based on ua signatures From 695175e330edf897e0d87374f15cc9cae84cd994 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Wed, 8 Apr 2026 10:58:17 +0530 Subject: [PATCH 010/425] fix: detect capacitor webview via user agent fallback window.Capacitor may not be injected when loading from a remote server.url. fall back to detecting android webview by the 'wv' marker in the user agent string. --- src/utils/capacitor.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/utils/capacitor.ts b/src/utils/capacitor.ts index cc2a2f28cf..9c7194c97d 100644 --- a/src/utils/capacitor.ts +++ b/src/utils/capacitor.ts @@ -2,9 +2,20 @@ /** * returns true when running inside a capacitor webview (ios or android native app) + * + * checks window.Capacitor first (set by capacitor bridge), then falls back to + * user agent detection for cases where the bridge isn't injected yet + * (e.g. when loading from a remote server.url instead of local files) */ export function isCapacitor(): boolean { - return typeof window !== 'undefined' && !!(window as any).Capacitor + if (typeof window === 'undefined') return false + // primary check: capacitor bridge injects this global + if ((window as any).Capacitor) return true + // fallback: detect capacitor's android webview by user agent + // capacitor android uses the system webview which includes "wv" in the UA + const ua = navigator.userAgent + if (/; wv\)/.test(ua) && /Android/.test(ua)) return true + return false } /** From 2b285349649386a105df9142ac5d4431f70fafe1 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Wed, 8 Apr 2026 11:38:29 +0530 Subject: [PATCH 011/425] fix: stop blocking capacitor webview on setup page - remove broad 'WebView' and 'Android.*wv' from in-app browser blocklist (catches capacitor, only specific apps need blocking) - use UVPA check instead of conditional mediation for passkey support (conditional mediation returns false in webviews even when passkeys work via native plugin) - clean up isCapacitor() detection, add env var fallback for remote url testing --- src/app/(setup)/setup/page.tsx | 10 ++++++++-- .../Global/UnsupportedBrowserModal/index.tsx | 6 +++--- src/utils/capacitor.ts | 12 +++++------- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/app/(setup)/setup/page.tsx b/src/app/(setup)/setup/page.tsx index 1010496ad1..f8aad346c3 100644 --- a/src/app/(setup)/setup/page.tsx +++ b/src/app/(setup)/setup/page.tsx @@ -52,10 +52,16 @@ function SetupPageContent() { return } - // check for native passkey support + // check if device has a platform authenticator (biometric/pin) + // using UVPA instead of isConditionalMediationAvailable because: + // - conditional mediation is about autofill ui, not actual passkey support + // - isConditionalMediationAvailable returns false in android webviews even when passkeys work + // - UVPA correctly detects whether the device can do passkeys let passkeySupport = true try { - passkeySupport = await PublicKeyCredential.isConditionalMediationAvailable() + if (PublicKeyCredential?.isUserVerifyingPlatformAuthenticatorAvailable) { + passkeySupport = await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() + } } catch (e) { passkeySupport = false console.error('Error checking passkey support:', e) diff --git a/src/components/Global/UnsupportedBrowserModal/index.tsx b/src/components/Global/UnsupportedBrowserModal/index.tsx index b099d4934a..c59cb7c598 100644 --- a/src/components/Global/UnsupportedBrowserModal/index.tsx +++ b/src/components/Global/UnsupportedBrowserModal/index.tsx @@ -9,9 +9,9 @@ import { useSearchParams } from 'next/navigation' import { usePasskeySupportContext } from '@/context/passkeySupportContext' export const inAppSignatures = [ - 'WebView', - '(iPhone|iPod|iPad)(?!.*Safari\\/)', // iOS WebView - 'Android.*wv', // Android WebView + // removed 'WebView' and 'Android.*wv' — too broad, matches capacitor's webview + // specific app signatures below catch the actual problem apps + '(iPhone|iPod|iPad)(?!.*Safari\\/)', // iOS WebView (non-safari) 'FBAN', // Facebook App 'FBAV', // Facebook App 'Instagram', // Instagram App diff --git a/src/utils/capacitor.ts b/src/utils/capacitor.ts index 9c7194c97d..3122ad99a7 100644 --- a/src/utils/capacitor.ts +++ b/src/utils/capacitor.ts @@ -3,18 +3,16 @@ /** * returns true when running inside a capacitor webview (ios or android native app) * - * checks window.Capacitor first (set by capacitor bridge), then falls back to - * user agent detection for cases where the bridge isn't injected yet - * (e.g. when loading from a remote server.url instead of local files) + * checks window.Capacitor (set by capacitor bridge) and falls back to + * NEXT_PUBLIC_CAPACITOR_BUILD env var for remote url testing where the + * bridge may not be injected */ export function isCapacitor(): boolean { if (typeof window === 'undefined') return false // primary check: capacitor bridge injects this global if ((window as any).Capacitor) return true - // fallback: detect capacitor's android webview by user agent - // capacitor android uses the system webview which includes "wv" in the UA - const ua = navigator.userAgent - if (/; wv\)/.test(ua) && /Android/.test(ua)) return true + // fallback for remote server.url testing: env var set in vercel preview + if (process.env.NEXT_PUBLIC_CAPACITOR_BUILD === 'true') return true return false } From d65ff44037f034f86f78e4fcced6158e4ed027ab Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Wed, 8 Apr 2026 11:56:22 +0530 Subject: [PATCH 012/425] fix: set correct setup step for capacitor and add env var fallback the early return was skipping checks but not setting a step, so the page stayed loading. now navigates to 'landing' step directly. also checks NEXT_PUBLIC_CAPACITOR_BUILD env var directly for cases where window.Capacitor isn't available (remote server.url). --- src/app/(setup)/setup/page.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/(setup)/setup/page.tsx b/src/app/(setup)/setup/page.tsx index f8aad346c3..d63d0c900b 100644 --- a/src/app/(setup)/setup/page.tsx +++ b/src/app/(setup)/setup/page.tsx @@ -44,10 +44,14 @@ function SetupPageContent() { const localDeviceType = detectedDeviceType - // in capacitor, passkeys are handled natively — skip all browser/webview/os checks - // and go straight to setup flow - if (isCapacitor()) { + // in capacitor, passkeys are handled natively — skip all browser/webview/os/pwa checks + // and go straight to the landing (signup) flow + if (isCapacitor() || process.env.NEXT_PUBLIC_CAPACITOR_BUILD === 'true') { setDeviceType(localDeviceType) + const landingStepIndex = steps.findIndex((s: ISetupStep) => s.screenId === 'landing') + if (landingStepIndex !== -1) { + dispatch(setupActions.setStep(landingStepIndex + 1)) + } setIsLoading(false) return } From 52142ae0737839e3bf3c02c6170d70886b7df998 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Wed, 8 Apr 2026 12:13:39 +0530 Subject: [PATCH 013/425] feat: use native plugin for passkey registration and login MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit toWebAuthnKey() from zerodev uses @simplewebauthn/browser internally which calls navigator.credentials.create/get — these fail in android webview. on android native, we now handle the full flow ourselves: 1. get options from zerodev passkey server 2. create/authenticate via capacitor-webauthn native plugin 3. verify with passkey server 4. parse public key and attach native signing callback web flow is unchanged. --- src/hooks/useZeroDev.ts | 59 +++++++++------ src/utils/native-webauthn.ts | 139 +++++++++++++++++++++++++++++++++++ 2 files changed, 175 insertions(+), 23 deletions(-) diff --git a/src/hooks/useZeroDev.ts b/src/hooks/useZeroDev.ts index 7579af4056..e0153cce2e 100644 --- a/src/hooks/useZeroDev.ts +++ b/src/hooks/useZeroDev.ts @@ -16,7 +16,7 @@ import { invitesApi } from '@/services/invites' import posthog from 'posthog-js' import { ANALYTICS_EVENTS } from '@/constants/analytics.consts' import { isCapacitor, isAndroidNative } from '@/utils/capacitor' -import { createNativeSignMessageCallback } from '@/utils/native-webauthn' +import { nativeRegister, nativeLogin } from '@/utils/native-webauthn' // types type UserOpEncodedParams = { @@ -80,18 +80,23 @@ export const useZeroDev = () => { ? 'peanut-wallet-git-feat-native-app-squirrellabs.vercel.app' : window.location.hostname.replace(/^www\./, '') - const webAuthnKey = await toWebAuthnKey({ - passkeyName: _getPasskeyName(username), - passkeyServerUrl: consts.PASSKEY_SERVER_URL as string, - mode: WebAuthnMode.Register, - passkeyServerHeaders: {}, - rpID: rpId, - }) - - // on android native, attach the native signing callback so zerodev - // uses the capacitor-webauthn plugin instead of browser WebAuthn api + // on android native, use the capacitor-webauthn plugin instead of browser WebAuthn api + // (browser WebAuthn doesn't work inside android webview) + let webAuthnKey if (isAndroidNative()) { - webAuthnKey.signMessageCallback = createNativeSignMessageCallback(rpId) + webAuthnKey = await nativeRegister({ + passkeyName: _getPasskeyName(username), + passkeyServerUrl: consts.PASSKEY_SERVER_URL as string, + rpId, + }) + } else { + webAuthnKey = await toWebAuthnKey({ + passkeyName: _getPasskeyName(username), + passkeyServerUrl: consts.PASSKEY_SERVER_URL as string, + mode: WebAuthnMode.Register, + passkeyServerHeaders: {}, + rpID: rpId, + }) } const inviteCodeFromCookie = getFromCookie('inviteCode') @@ -153,19 +158,27 @@ export const useZeroDev = () => { passkeyServerHeaders['x-username'] = user.user.username } - const rpId = isCapacitor() ? 'peanut.me' : window.location.hostname.replace(/^www\./, '') - - const webAuthnKey = await toWebAuthnKey({ - passkeyName: '[]', - passkeyServerUrl: consts.PASSKEY_SERVER_URL as string, - mode: WebAuthnMode.Login, - passkeyServerHeaders, - rpID: rpId, - }) + // TODO: change to 'peanut.me' before production release + const rpId = isCapacitor() + ? 'peanut-wallet-git-feat-native-app-squirrellabs.vercel.app' + : window.location.hostname.replace(/^www\./, '') - // on android native, attach the native signing callback + // on android native, use the capacitor-webauthn plugin for login + let webAuthnKey if (isAndroidNative()) { - webAuthnKey.signMessageCallback = createNativeSignMessageCallback(rpId) + webAuthnKey = await nativeLogin({ + passkeyServerUrl: consts.PASSKEY_SERVER_URL as string, + rpId, + passkeyServerHeaders, + }) + } else { + webAuthnKey = await toWebAuthnKey({ + passkeyName: '[]', + passkeyServerUrl: consts.PASSKEY_SERVER_URL as string, + mode: WebAuthnMode.Login, + passkeyServerHeaders, + rpID: rpId, + }) } setWebAuthnKey(webAuthnKey) diff --git a/src/utils/native-webauthn.ts b/src/utils/native-webauthn.ts index 290ef23436..8a3ffc4626 100644 --- a/src/utils/native-webauthn.ts +++ b/src/utils/native-webauthn.ts @@ -124,6 +124,145 @@ export async function parsePublicKeyToWebAuthnKey( } } +// --- native registration and login --- +// these replace @simplewebauthn/browser with the capacitor-webauthn native plugin +// while still communicating with zerodev's passkey server for credential storage + +/** + * registers a new passkey via the native capacitor-webauthn plugin and stores + * the credential on zerodev's passkey server. returns a WebAuthnKey with + * signMessageCallback attached. + * + * this replaces toWebAuthnKey({ mode: Register }) which uses browser WebAuthn API + * (doesn't work in android webview). + */ +export async function nativeRegister(params: { + passkeyName: string + passkeyServerUrl: string + rpId: string + passkeyServerHeaders?: Record +}): Promise { + const { passkeyName, passkeyServerUrl, rpId, passkeyServerHeaders = {} } = params + const pluginName = 'capacitor-webauthn' + const { Webauthn } = await import(/* webpackIgnore: true */ pluginName) + + // 1. get registration options from zerodev passkey server + const optionsRes = await fetch(`${passkeyServerUrl}/register/options`, { + method: 'POST', + headers: { 'Content-Type': 'application/json', ...passkeyServerHeaders }, + body: JSON.stringify({ username: passkeyName, rpID: rpId }), + credentials: 'include', + }) + const registerOptions = await optionsRes.json() + + // 2. create passkey via native plugin (instead of @simplewebauthn/browser) + const options = registerOptions.options || registerOptions + // ensure rpId is set correctly + if (options.rp) { + options.rp.id = rpId + } + const credential: any = await Webauthn.startRegistration(options) + + // 3. verify registration with zerodev passkey server + const verifyRes = await fetch(`${passkeyServerUrl}/register/verify`, { + method: 'POST', + headers: { 'Content-Type': 'application/json', ...passkeyServerHeaders }, + body: JSON.stringify({ + userId: registerOptions.userId, + username: passkeyName, + cred: credential, + rpID: rpId, + }), + credentials: 'include', + }) + const verifyResult = await verifyRes.json() + if (!verifyResult.verified) { + throw new Error('native passkey registration not verified by server') + } + + // 4. parse public key and build WebAuthnKey + const publicKey = credential.response?.publicKey + if (!publicKey) { + throw new Error('no public key in native registration response') + } + + const webAuthnKey = await parsePublicKeyToWebAuthnKey(publicKey, credential.id, rpId) + webAuthnKey.signMessageCallback = createNativeSignMessageCallback(rpId) + + return webAuthnKey +} + +/** + * logs in with an existing passkey via the native capacitor-webauthn plugin, + * verified against zerodev's passkey server. returns a WebAuthnKey with + * signMessageCallback attached. + * + * this replaces toWebAuthnKey({ mode: Login }) which uses browser WebAuthn API. + */ +export async function nativeLogin(params: { + passkeyServerUrl: string + rpId: string + passkeyServerHeaders?: Record +}): Promise { + const { passkeyServerUrl, rpId, passkeyServerHeaders = {} } = params + const pluginName = 'capacitor-webauthn' + const { Webauthn } = await import(/* webpackIgnore: true */ pluginName) + + // 1. get login options from zerodev passkey server + const optionsRes = await fetch(`${passkeyServerUrl}/login/options`, { + method: 'POST', + headers: { 'Content-Type': 'application/json', ...passkeyServerHeaders }, + body: JSON.stringify({ rpID: rpId }), + credentials: 'include', + }) + const loginOptions = await optionsRes.json() + + // 2. authenticate via native plugin (instead of @simplewebauthn/browser) + if (!loginOptions.rpId) { + loginOptions.rpId = rpId + } + const assertion: any = await Webauthn.startAuthentication(loginOptions) + + // 3. verify with zerodev passkey server to get the public key + const verifyRes = await fetch(`${passkeyServerUrl}/login/verify`, { + method: 'POST', + headers: { 'Content-Type': 'application/json', ...passkeyServerHeaders }, + body: JSON.stringify({ cred: assertion, rpID: rpId }), + credentials: 'include', + }) + const verifyResult = await verifyRes.json() + if (!verifyResult.verification?.verified) { + throw new Error('native passkey login not verified by server') + } + + // 4. parse public key from server response + const pubKey = verifyResult.pubkey + if (!pubKey) { + throw new Error('no public key returned from login verification') + } + + // server returns base64-encoded SPKI public key + const spkiDer = Uint8Array.from(atob(pubKey), (c) => c.charCodeAt(0)) + const key = await crypto.subtle.importKey('spki', spkiDer, { name: 'ECDSA', namedCurve: 'P-256' }, true, ['verify']) + const rawKey = new Uint8Array(await crypto.subtle.exportKey('raw', key)) + const pubKeyX = rawKey.slice(1, 33) + const pubKeyY = rawKey.slice(33, 65) + + const authenticatorIdBytes = base64URLToBytes(assertion.id) + const authenticatorIdHash = keccak256(uint8ArrayToHexString(authenticatorIdBytes)) + + const webAuthnKey: WebAuthnKey = { + pubX: BigInt(uint8ArrayToHexString(pubKeyX)), + pubY: BigInt(uint8ArrayToHexString(pubKeyY)), + authenticatorId: assertion.id, + authenticatorIdHash, + rpID: rpId, + signMessageCallback: createNativeSignMessageCallback(rpId), + } + + return webAuthnKey +} + // --- signing callback --- // chains that support the RIP-7212 precompile for on-chain p256 verification From 371f9c06a457d0f19c5edfd8f3f751c95c2a795b Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Wed, 8 Apr 2026 12:30:02 +0530 Subject: [PATCH 014/425] fix: make platform detection work with remote server.url when NEXT_PUBLIC_CAPACITOR_BUILD is set, use user agent to determine android vs ios since window.Capacitor isn't available for remote urls. this fixes isAndroidNative() returning false which caused native passkey registration to fall through to the browser webauthn path. --- src/utils/capacitor.ts | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/utils/capacitor.ts b/src/utils/capacitor.ts index 3122ad99a7..659d22c0c9 100644 --- a/src/utils/capacitor.ts +++ b/src/utils/capacitor.ts @@ -1,18 +1,19 @@ // platform detection and api routing for capacitor native app +// env var baked in at build time — set in vercel preview for this branch +const IS_CAPACITOR_BUILD = process.env.NEXT_PUBLIC_CAPACITOR_BUILD === 'true' + /** * returns true when running inside a capacitor webview (ios or android native app) * - * checks window.Capacitor (set by capacitor bridge) and falls back to - * NEXT_PUBLIC_CAPACITOR_BUILD env var for remote url testing where the - * bridge may not be injected + * detection order: + * 1. window.Capacitor (set by capacitor bridge — works for local/static builds) + * 2. NEXT_PUBLIC_CAPACITOR_BUILD env var (baked at build time — works for remote server.url) */ export function isCapacitor(): boolean { if (typeof window === 'undefined') return false - // primary check: capacitor bridge injects this global if ((window as any).Capacitor) return true - // fallback for remote server.url testing: env var set in vercel preview - if (process.env.NEXT_PUBLIC_CAPACITOR_BUILD === 'true') return true + if (IS_CAPACITOR_BUILD) return true return false } @@ -29,6 +30,14 @@ export function getPlatform(): 'web' | 'ios-native' | 'android-native' | 'ios-pw if (platform === 'android') return 'android-native' } + // when loading from remote server.url, window.Capacitor may not exist + // fall back to env var + user agent to determine platform + if (IS_CAPACITOR_BUILD) { + const ua = navigator.userAgent + if (/Android/i.test(ua)) return 'android-native' + if (/iPhone|iPad|iPod/i.test(ua)) return 'ios-native' + } + const ua = navigator.userAgent.toLowerCase() const isStandalone = window.matchMedia?.('(display-mode: standalone)')?.matches || (window.navigator as any).standalone === true From 22c5f13f0e3694f7bf64e6f9016e4f11e6fbc5cc Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Wed, 8 Apr 2026 13:20:45 +0530 Subject: [PATCH 015/425] chore: switch to cloudflare tunnel for native dev testing vercel preview doesn't inject capacitor bridge (window.Capacitor unavailable), breaking all platform detection. peanutdev.site via cloudflare tunnel was confirmed working with bridge injection. --- capacitor.config.ts | 4 ++-- src/hooks/useZeroDev.ts | 8 ++------ src/utils/passkeyPreflight.ts | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/capacitor.config.ts b/capacitor.config.ts index 09c0c7aa0a..455dc75737 100644 --- a/capacitor.config.ts +++ b/capacitor.config.ts @@ -5,10 +5,10 @@ const config: CapacitorConfig = { appName: 'Peanut', webDir: 'out', - // vercel preview for passkey testing (rpId must match this domain) + // cloudflare tunnel for dev testing (passkeys need HTTPS + stable domain) // TODO: remove server.url for production (static export loads from local out/ directory) server: { - url: 'https://peanut-wallet-git-feat-native-app-squirrellabs.vercel.app', + url: 'https://peanutdev.site', cleartext: false, }, diff --git a/src/hooks/useZeroDev.ts b/src/hooks/useZeroDev.ts index e0153cce2e..c736116e59 100644 --- a/src/hooks/useZeroDev.ts +++ b/src/hooks/useZeroDev.ts @@ -76,9 +76,7 @@ export const useZeroDev = () => { try { // in capacitor, rpId must match the domain serving assetlinks.json / AASA // TODO: change to 'peanut.me' before production release - const rpId = isCapacitor() - ? 'peanut-wallet-git-feat-native-app-squirrellabs.vercel.app' - : window.location.hostname.replace(/^www\./, '') + const rpId = isCapacitor() ? 'peanutdev.site' : window.location.hostname.replace(/^www\./, '') // on android native, use the capacitor-webauthn plugin instead of browser WebAuthn api // (browser WebAuthn doesn't work inside android webview) @@ -159,9 +157,7 @@ export const useZeroDev = () => { } // TODO: change to 'peanut.me' before production release - const rpId = isCapacitor() - ? 'peanut-wallet-git-feat-native-app-squirrellabs.vercel.app' - : window.location.hostname.replace(/^www\./, '') + const rpId = isCapacitor() ? 'peanutdev.site' : window.location.hostname.replace(/^www\./, '') // on android native, use the capacitor-webauthn plugin for login let webAuthnKey diff --git a/src/utils/passkeyPreflight.ts b/src/utils/passkeyPreflight.ts index e06801f935..f4ddeaa614 100644 --- a/src/utils/passkeyPreflight.ts +++ b/src/utils/passkeyPreflight.ts @@ -40,7 +40,7 @@ export async function checkPasskeySupport(): Promise { isHttps: true, isAndroid: /android/i.test(navigator.userAgent), // TODO: change to 'peanut.me' before production release - rpId: 'peanut-wallet-git-feat-native-app-squirrellabs.vercel.app', + rpId: 'peanutdev.site', }, } } From 8ef0bdd59533b6c8e687be823ed16ff7d880ea28 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Wed, 8 Apr 2026 16:00:52 +0530 Subject: [PATCH 016/425] fix: native passkey registration and login via capacitor plugin - use registerPlugin from @capacitor/core instead of importing capacitor-webauthn (fails to resolve in webview context) - call passkey server via next.js proxy (forwards origin header correctly) - disable assetlinks.json rewrite for local dev testing - add debug logging to SetupPasskey for native testing - clean up capacitor.ts (remove browser plugin import) --- .../app/src/main/assets/capacitor.config.json | 2 +- next.config.js | 11 +++-- src/components/Setup/Views/SetupPasskey.tsx | 8 ++- src/utils/capacitor.ts | 10 +--- src/utils/native-webauthn.ts | 49 ++++++++++++------- 5 files changed, 49 insertions(+), 31 deletions(-) diff --git a/android/app/src/main/assets/capacitor.config.json b/android/app/src/main/assets/capacitor.config.json index d00b025fe9..a08e4541dd 100644 --- a/android/app/src/main/assets/capacitor.config.json +++ b/android/app/src/main/assets/capacitor.config.json @@ -3,7 +3,7 @@ "appName": "Peanut", "webDir": "out", "server": { - "url": "https://peanut-wallet-git-feat-native-app-squirrellabs.vercel.app", + "url": "https://peanutdev.site", "cleartext": false }, "android": { diff --git a/next.config.js b/next.config.js index d212a939d0..92ad0d8e90 100644 --- a/next.config.js +++ b/next.config.js @@ -107,10 +107,13 @@ let nextConfig = { source: '/.well-known/apple-app-site-association', destination: '/api/apple-app-site-association', }, - { - source: '/.well-known/assetLinks.json', - destination: '/api/assetLinks', - }, + // disabled for native dev testing — serve local public/.well-known/assetlinks.json + // which has the debug signing key fingerprint + // TODO: re-enable for production (backend should have the release key) + // { + // source: '/.well-known/assetLinks.json', + // destination: '/api/assetLinks', + // }, ], afterFiles: [ // PostHog reverse proxy — bypasses ad blockers diff --git a/src/components/Setup/Views/SetupPasskey.tsx b/src/components/Setup/Views/SetupPasskey.tsx index 34fda8fe98..6444efdc25 100644 --- a/src/components/Setup/Views/SetupPasskey.tsx +++ b/src/components/Setup/Views/SetupPasskey.tsx @@ -30,6 +30,8 @@ const SetupPasskey = () => { if (!result.isSupported && result.warning) { setPreflightWarning(result.warning) } + // TODO: remove debug log after native testing + console.log('[SetupPasskey] preflight result:', JSON.stringify(result)) } runPreflightCheck() @@ -43,11 +45,15 @@ const SetupPasskey = () => { posthog.capture(ANALYTICS_EVENTS.SIGNUP_PASSKEY_STARTED, { device_type: deviceType }) try { + // TODO: remove debug log after native testing + console.log('[SetupPasskey] starting registration, username:', username) await withWebAuthnRetry(() => handleRegister(username), 'passkey-registration') // success - useEffect below will handle navigation } catch (error) { const err = error as Error - console.error('Passkey registration failed:', err) + // TODO: remove debug log after native testing + console.error('[SetupPasskey] registration failed:', err.name, err.message, err) + setInlineError(`DEBUG: ${err.name}: ${err.message}`) posthog.capture(ANALYTICS_EVENTS.SIGNUP_PASSKEY_FAILED, { device_type: deviceType, error_name: err.name, diff --git a/src/utils/capacitor.ts b/src/utils/capacitor.ts index 659d22c0c9..40e324562f 100644 --- a/src/utils/capacitor.ts +++ b/src/utils/capacitor.ts @@ -83,14 +83,8 @@ export function getApiBaseUrl(): string { */ export async function openExternalUrl(url: string): Promise { if (isCapacitor()) { - try { - // @ts-ignore -- @capacitor/browser may not be installed yet - const mod = await import('@capacitor/browser') - await mod.Browser.open({ url }) - } catch { - // fallback if plugin not installed - window.location.href = url - } + // TODO: use @capacitor/browser plugin when installed + window.location.href = url } else { window.open(url, '_blank') } diff --git a/src/utils/native-webauthn.ts b/src/utils/native-webauthn.ts index 8a3ffc4626..3a506afd7e 100644 --- a/src/utils/native-webauthn.ts +++ b/src/utils/native-webauthn.ts @@ -5,6 +5,11 @@ import { keccak256, type Hex, type SignableMessage, encodeAbiParameters } from ' import { bytesToBigInt, hexToBytes } from 'viem' // @ts-ignore -- @noble/curves/p256 requires pinning to v1.9.7 (v2 removed this export) import { p256 } from '@noble/curves/p256' +import { registerPlugin } from '@capacitor/core' + +// register the webauthn plugin bridge — the native code is loaded by capacitor runtime, +// this just creates the js-to-native communication channel +const Webauthn: any = registerPlugin('Webauthn') // credential request options shape used by the signing callback interface AllowCredentialDescriptor { @@ -126,7 +131,11 @@ export async function parsePublicKeyToWebAuthnKey( // --- native registration and login --- // these replace @simplewebauthn/browser with the capacitor-webauthn native plugin -// while still communicating with zerodev's passkey server for credential storage +// while still communicating with the passkey server for credential storage. +// +// note: for dev, these calls go through next.js proxy (/api/proxy/passkeys/...) +// which forwards to the local backend. for production static export, these +// will need to call the backend directly via getApiBaseUrl(). /** * registers a new passkey via the native capacitor-webauthn plugin and stores @@ -143,10 +152,9 @@ export async function nativeRegister(params: { passkeyServerHeaders?: Record }): Promise { const { passkeyName, passkeyServerUrl, rpId, passkeyServerHeaders = {} } = params - const pluginName = 'capacitor-webauthn' - const { Webauthn } = await import(/* webpackIgnore: true */ pluginName) + // Webauthn plugin is registered at module level via @capacitor/core - // 1. get registration options from zerodev passkey server + // 1. get registration options from passkey server const optionsRes = await fetch(`${passkeyServerUrl}/register/options`, { method: 'POST', headers: { 'Content-Type': 'application/json', ...passkeyServerHeaders }, @@ -164,20 +172,29 @@ export async function nativeRegister(params: { const credential: any = await Webauthn.startRegistration(options) // 3. verify registration with zerodev passkey server + // TODO: remove debug logs after testing + console.log('[nativeRegister] credential from plugin:', JSON.stringify(credential)) + console.log('[nativeRegister] registerOptions.userId:', registerOptions.userId) + + const verifyPayload = { + userId: registerOptions.userId, + username: passkeyName, + cred: credential, + rpID: rpId, + } + console.log('[nativeRegister] verify payload:', JSON.stringify(verifyPayload)) + const verifyRes = await fetch(`${passkeyServerUrl}/register/verify`, { method: 'POST', headers: { 'Content-Type': 'application/json', ...passkeyServerHeaders }, - body: JSON.stringify({ - userId: registerOptions.userId, - username: passkeyName, - cred: credential, - rpID: rpId, - }), + body: JSON.stringify(verifyPayload), credentials: 'include', }) const verifyResult = await verifyRes.json() + console.log('[nativeRegister] verify result:', JSON.stringify(verifyResult)) + if (!verifyResult.verified) { - throw new Error('native passkey registration not verified by server') + throw new Error(`native passkey registration not verified by server: ${JSON.stringify(verifyResult)}`) } // 4. parse public key and build WebAuthnKey @@ -205,10 +222,9 @@ export async function nativeLogin(params: { passkeyServerHeaders?: Record }): Promise { const { passkeyServerUrl, rpId, passkeyServerHeaders = {} } = params - const pluginName = 'capacitor-webauthn' - const { Webauthn } = await import(/* webpackIgnore: true */ pluginName) + // Webauthn plugin is registered at module level via @capacitor/core - // 1. get login options from zerodev passkey server + // 1. get login options from passkey server const optionsRes = await fetch(`${passkeyServerUrl}/login/options`, { method: 'POST', headers: { 'Content-Type': 'application/json', ...passkeyServerHeaders }, @@ -223,7 +239,7 @@ export async function nativeLogin(params: { } const assertion: any = await Webauthn.startAuthentication(loginOptions) - // 3. verify with zerodev passkey server to get the public key + // 3. verify with passkey server to get the public key const verifyRes = await fetch(`${passkeyServerUrl}/login/verify`, { method: 'POST', headers: { 'Content-Type': 'application/json', ...passkeyServerHeaders }, @@ -285,8 +301,7 @@ export function createNativeSignMessageCallback(rpId: string) { ): Promise => { // dynamic import that webpack can't statically analyze — capacitor-webauthn // is only available in native builds, not in the web bundle - const pluginName = 'capacitor-webauthn' - const { Webauthn } = await import(/* webpackIgnore: true */ pluginName) + // Webauthn plugin is registered at module level via @capacitor/core // convert message to hex string let messageContent: string From 564256db2daa26522a34d7df08a800f6b6f401bb Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Thu, 9 Apr 2026 20:39:17 +0530 Subject: [PATCH 017/425] feat: add client-side auth, caching, and api fetch utilities - auth-token.ts: reads jwt from cookie via js-cookie, builds bearer headers - no-cache.ts: in-memory ttl cache replacing next/cache unstable_cache for static export - api-fetch.ts: unified helper that handles capacitor vs web url/header branching --- src/utils/api-fetch.ts | 23 +++++++++++++++++++++++ src/utils/auth-token.ts | 34 ++++++++++++++++++++++++++++++++++ src/utils/no-cache.ts | 24 ++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 src/utils/api-fetch.ts create mode 100644 src/utils/auth-token.ts create mode 100644 src/utils/no-cache.ts diff --git a/src/utils/api-fetch.ts b/src/utils/api-fetch.ts new file mode 100644 index 0000000000..fe8b2f898f --- /dev/null +++ b/src/utils/api-fetch.ts @@ -0,0 +1,23 @@ +// unified api fetch that handles capacitor vs web branching in one place. +// replaces the isCapacitor() ? directUrl : proxyUrl pattern that was repeated 8+ times. + +import { isCapacitor } from './capacitor' +import { getAuthHeaders } from './auth-token' +import { fetchWithSentry } from './sentry.utils' +import { PEANUT_API_URL } from '@/constants/general.consts' + +/** + * makes an api call that works in both web (via next.js proxy) and capacitor (direct backend). + * + * @param backendPath - the backend endpoint path (e.g. '/get-user', '/bridge/onramp/create') + * @param proxyPath - the next.js proxy path (e.g. '/api/peanut/user/get-user-from-cookie') + * @param options - fetch options (method, body, extra headers) + */ +export function apiFetch(backendPath: string, proxyPath: string, options?: RequestInit): Promise { + const url = isCapacitor() ? `${PEANUT_API_URL}${backendPath}` : proxyPath + const defaultHeaders = isCapacitor() + ? getAuthHeaders(options?.headers as Record) + : { 'Content-Type': 'application/json', ...(options?.headers as Record) } + + return fetchWithSentry(url, { ...options, headers: defaultHeaders }) +} diff --git a/src/utils/auth-token.ts b/src/utils/auth-token.ts new file mode 100644 index 0000000000..7d3cf69c70 --- /dev/null +++ b/src/utils/auth-token.ts @@ -0,0 +1,34 @@ +// client-side jwt token management for both web and capacitor native app + +import Cookies from 'js-cookie' + +const JWT_COOKIE_KEY = 'jwt-token' + +/** + * reads the jwt token from client-side cookie storage. + * uses js-cookie (same library used by 40+ existing call sites in the codebase). + */ +export function getAuthToken(): string | null { + return Cookies.get(JWT_COOKIE_KEY) ?? null +} + +/** + * builds headers for authenticated api calls. + * includes Authorization bearer token and content-type. + */ +export function getAuthHeaders(extraHeaders?: Record): Record { + const headers: Record = { + 'Content-Type': 'application/json', + } + + const token = getAuthToken() + if (token) { + headers['Authorization'] = `Bearer ${token}` + } + + if (extraHeaders) { + Object.assign(headers, extraHeaders) + } + + return headers +} diff --git a/src/utils/no-cache.ts b/src/utils/no-cache.ts new file mode 100644 index 0000000000..7b8c3933f4 --- /dev/null +++ b/src/utils/no-cache.ts @@ -0,0 +1,24 @@ +// client-side replacement for next/cache's unstable_cache. +// provides in-memory TTL caching since server cache doesn't exist in static export. + +const cache = new Map() + +export const unstable_cache = Promise>( + fn: T, + keys?: string[], + opts?: { revalidate?: number; tags?: string[] } +): T => { + const ttlMs = (opts?.revalidate ?? 60) * 1000 + const baseKey = keys?.join(':') ?? fn.name ?? 'anon' + + return (async (...args: any[]) => { + const fullKey = `${baseKey}:${JSON.stringify(args)}` + const entry = cache.get(fullKey) + if (entry && Date.now() < entry.expiry) { + return entry.data + } + const result = await fn(...args) + cache.set(fullKey, { data: result, expiry: Date.now() + ttlMs }) + return result + }) as unknown as T +} From 1fa9c910dffd32d7043e66565fd15ca1e92eb982 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Thu, 9 Apr 2026 20:39:25 +0530 Subject: [PATCH 018/425] feat: migrate server actions to client-side for static export remove 'use server' from all 17 action files. replace server-side cookie reading (getJWTCookie) with client-side jwt (getAuthHeaders). remove process.env.PEANUT_API_KEY dependency. replace next/cache unstable_cache with in-memory ttl cache. --- src/app/actions/bridge/get-customer.ts | 11 ++--- src/app/actions/card.ts | 31 ++---------- src/app/actions/claimLinks.ts | 4 +- src/app/actions/currency.ts | 2 +- src/app/actions/ens.ts | 11 ++--- src/app/actions/exchange-rate.ts | 21 ++------ src/app/actions/external-accounts.ts | 13 ++--- src/app/actions/history.ts | 1 - src/app/actions/ibanToBic.ts | 1 - src/app/actions/invites.ts | 18 ++----- src/app/actions/offramp.ts | 66 ++++---------------------- src/app/actions/onramp.ts | 43 +++-------------- src/app/actions/squid.ts | 3 +- src/app/actions/sumsub.ts | 17 +------ src/app/actions/tokens.ts | 4 +- src/app/actions/users.ts | 59 ++++------------------- src/services/swap.ts | 2 +- 17 files changed, 59 insertions(+), 248 deletions(-) diff --git a/src/app/actions/bridge/get-customer.ts b/src/app/actions/bridge/get-customer.ts index 94e5fccf52..73d28338e4 100644 --- a/src/app/actions/bridge/get-customer.ts +++ b/src/app/actions/bridge/get-customer.ts @@ -1,8 +1,8 @@ -'use server' -import { unstable_cache } from 'next/cache' +import { unstable_cache } from '@/utils/no-cache' import { countryData } from '@/components/AddMoney/consts' -import { PEANUT_API_KEY, PEANUT_API_URL } from '@/constants/general.consts' +import { PEANUT_API_URL } from '@/constants/general.consts' +import { getAuthHeaders } from '@/utils/auth-token' type BridgeCustomer = { id: string @@ -41,10 +41,7 @@ export const getBridgeCustomerCountry = async ( const runner = unstable_cache( async () => { const response = await fetch(`${PEANUT_API_URL}/bridge/customers/${bridgeCustomerId}` as string, { - headers: { - 'Content-Type': 'application/json', - 'api-key': PEANUT_API_KEY, - }, + headers: getAuthHeaders(), cache: 'no-store', }) diff --git a/src/app/actions/card.ts b/src/app/actions/card.ts index b6436ea3df..c2892e02a4 100644 --- a/src/app/actions/card.ts +++ b/src/app/actions/card.ts @@ -1,13 +1,9 @@ -'use server' +// card api calls — works in both web (server action) and native (client-side) +// migrated from 'use server' to support capacitor static export import { PEANUT_API_URL } from '@/constants/general.consts' import { fetchWithSentry } from '@/utils/sentry.utils' -import { getJWTCookie } from '@/utils/cookie-migration.utils' - -const API_KEY = process.env.PEANUT_API_KEY -if (!API_KEY) { - throw new Error('PEANUT_API_KEY environment variable is not set') -} +import { getAuthHeaders } from '@/utils/auth-token' export interface CardInfoResponse { hasPurchased: boolean @@ -43,18 +39,10 @@ export interface CardErrorResponse { * Get card pioneer info for the authenticated user */ export const getCardInfo = async (): Promise<{ data?: CardInfoResponse; error?: string }> => { - const jwtToken = (await getJWTCookie())?.value - if (!jwtToken) { - return { error: 'Authentication required' } - } - try { const response = await fetchWithSentry(`${PEANUT_API_URL}/card`, { method: 'GET', - headers: { - Authorization: `Bearer ${jwtToken}`, - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), }) if (!response.ok) { @@ -73,19 +61,10 @@ export const getCardInfo = async (): Promise<{ data?: CardInfoResponse; error?: * Initiate card pioneer purchase */ export const purchaseCard = async (): Promise<{ data?: CardPurchaseResponse; error?: string; errorCode?: string }> => { - const jwtToken = (await getJWTCookie())?.value - if (!jwtToken) { - return { error: 'Authentication required', errorCode: 'NOT_AUTHENTICATED' } - } - try { const response = await fetchWithSentry(`${PEANUT_API_URL}/card/purchase`, { method: 'POST', - headers: { - Authorization: `Bearer ${jwtToken}`, - 'api-key': API_KEY, - 'Content-Type': 'application/json', - }, + headers: getAuthHeaders(), body: JSON.stringify({}), }) diff --git a/src/app/actions/claimLinks.ts b/src/app/actions/claimLinks.ts index e3feeeffea..84ba537b2e 100644 --- a/src/app/actions/claimLinks.ts +++ b/src/app/actions/claimLinks.ts @@ -1,5 +1,5 @@ -'use server' -import { unstable_cache } from 'next/cache' + +import { unstable_cache } from '@/utils/no-cache' import peanut, { interfaces as peanutInterfaces } from '@squirrel-labs/peanut-sdk' import type { Address, Hash } from 'viem' import { getContract } from 'viem' diff --git a/src/app/actions/currency.ts b/src/app/actions/currency.ts index 39a1d84be4..0352ad31d6 100644 --- a/src/app/actions/currency.ts +++ b/src/app/actions/currency.ts @@ -1,4 +1,4 @@ -'use server' + import { getExchangeRate } from './exchange-rate' import { AccountType } from '@/interfaces' import { mantecaApi } from '@/services/manteca' diff --git a/src/app/actions/ens.ts b/src/app/actions/ens.ts index 6e99981349..346af0b281 100644 --- a/src/app/actions/ens.ts +++ b/src/app/actions/ens.ts @@ -1,16 +1,13 @@ -'use server' -import { unstable_cache } from 'next/cache' + +import { unstable_cache } from '@/utils/no-cache' import { fetchWithSentry } from '@/utils/sentry.utils' import { PEANUT_API_URL } from '@/constants/general.consts' - -const API_KEY = process.env.PEANUT_API_KEY! +import { getAuthHeaders } from '@/utils/auth-token' export const resolveEns = unstable_cache( async (ensName: string): Promise => { const response = await fetchWithSentry(`${PEANUT_API_URL}/ens/${ensName}`, { - headers: { - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), }) if (response.status === 404) return undefined diff --git a/src/app/actions/exchange-rate.ts b/src/app/actions/exchange-rate.ts index 0ed97f55ba..32e1b562f1 100644 --- a/src/app/actions/exchange-rate.ts +++ b/src/app/actions/exchange-rate.ts @@ -1,9 +1,8 @@ -'use server' import { fetchWithSentry } from '@/utils/sentry.utils' import { AccountType } from '@/interfaces' - -const API_KEY = process.env.PEANUT_API_KEY! +import { PEANUT_API_URL } from '@/constants/general.consts' +import { getAuthHeaders } from '@/utils/auth-token' export interface ExchangeRateResponse { from: string @@ -15,7 +14,7 @@ export interface ExchangeRateResponse { } /** - * Server Action to fetch the current exchange rate for a given bank account type. + * Fetch the current exchange rate for a given bank account type. * * This calls the `/bridge/exchange-rate` API endpoint. * @@ -25,23 +24,13 @@ export interface ExchangeRateResponse { export async function getExchangeRate( accountType: AccountType ): Promise<{ data?: ExchangeRateResponse; error?: string }> { - const apiUrl = process.env.PEANUT_API_URL - - if (!apiUrl || !API_KEY) { - console.error('API URL or API Key is not configured.') - return { error: 'Server configuration error.' } - } - try { - const url = new URL(`${apiUrl}/bridge/exchange-rate`) + const url = new URL(`${PEANUT_API_URL}/bridge/exchange-rate`) url.searchParams.append('accountType', accountType) const response = await fetchWithSentry(url.toString(), { method: 'GET', - headers: { - 'Content-Type': 'application/json', - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), }) const data = await response.json() diff --git a/src/app/actions/external-accounts.ts b/src/app/actions/external-accounts.ts index bc47f33bb1..cf8cd9e2a7 100644 --- a/src/app/actions/external-accounts.ts +++ b/src/app/actions/external-accounts.ts @@ -1,23 +1,18 @@ -'use server' import { fetchWithSentry } from '@/utils/sentry.utils' import { type AddBankAccountPayload } from './types/users.types' import { type IBridgeAccount } from '@/interfaces' - -const API_KEY = process.env.PEANUT_API_KEY! -const API_URL = process.env.PEANUT_API_URL! +import { PEANUT_API_URL } from '@/constants/general.consts' +import { getAuthHeaders } from '@/utils/auth-token' export async function createBridgeExternalAccountForGuest( customerId: string, accountDetails: AddBankAccountPayload ): Promise { try { - const response = await fetchWithSentry(`${API_URL}/bridge/customers/${customerId}/external-accounts`, { + const response = await fetchWithSentry(`${PEANUT_API_URL}/bridge/customers/${customerId}/external-accounts`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), body: JSON.stringify({ ...accountDetails, reuseOnError: true }), // note: reuseOnError is used to avoid showing errors for duplicate accounts on guest flow }) diff --git a/src/app/actions/history.ts b/src/app/actions/history.ts index fc6d163ef5..4b40339c71 100644 --- a/src/app/actions/history.ts +++ b/src/app/actions/history.ts @@ -1,4 +1,3 @@ -'use server' import { EHistoryEntryType, completeHistoryEntry } from '@/utils/history.utils' import type { HistoryEntry } from '@/utils/history.utils' diff --git a/src/app/actions/ibanToBic.ts b/src/app/actions/ibanToBic.ts index 8301820657..393c18d5ab 100644 --- a/src/app/actions/ibanToBic.ts +++ b/src/app/actions/ibanToBic.ts @@ -1,4 +1,3 @@ -'use server' // @ts-ignore: CommonJS module without types import { ibanToBic } from 'iban-to-bic' diff --git a/src/app/actions/invites.ts b/src/app/actions/invites.ts index eff8d6d0ed..e343888e0a 100644 --- a/src/app/actions/invites.ts +++ b/src/app/actions/invites.ts @@ -1,27 +1,15 @@ -'use server' import { fetchWithSentry } from '@/utils/sentry.utils' import { PEANUT_API_URL } from '@/constants/general.consts' - -const API_KEY = process.env.PEANUT_API_KEY! +import { getAuthHeaders } from '@/utils/auth-token' export async function validateInviteCode( inviteCode: string ): Promise<{ data?: { success: boolean; username: string }; error?: string }> { - const apiUrl = PEANUT_API_URL - - if (!apiUrl || !API_KEY) { - console.error('API URL or API Key is not configured.') - return { error: 'Server configuration error.' } - } - try { - const response = await fetchWithSentry(`${apiUrl}/invites/validate`, { + const response = await fetchWithSentry(`${PEANUT_API_URL}/invites/validate`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), body: JSON.stringify({ inviteCode }), }) diff --git a/src/app/actions/offramp.ts b/src/app/actions/offramp.ts index b4d9a45dd7..85e4ba5181 100644 --- a/src/app/actions/offramp.ts +++ b/src/app/actions/offramp.ts @@ -1,10 +1,8 @@ -'use server' import { type TCreateOfframpRequest } from '../../services/services.types' import { fetchWithSentry } from '@/utils/sentry.utils' -import { getJWTCookie } from '@/utils/cookie-migration.utils' - -const API_KEY = process.env.PEANUT_API_KEY! +import { PEANUT_API_URL } from '@/constants/general.consts' +import { getAuthHeaders } from '@/utils/auth-token' export type CreateOfframpSuccessResponse = { transferId: string @@ -15,7 +13,7 @@ export type CreateOfframpSuccessResponse = { } /** - * server Action to initiate an off-ramp transfer. + * Initiate an off-ramp transfer. * * calls the `/bridge/offramp/create` API endpoint to create the transfer * and returns the provider's instructions for the user to deposit funds @@ -26,27 +24,10 @@ export type CreateOfframpSuccessResponse = { export async function createOfframp( params: TCreateOfframpRequest ): Promise<{ data?: CreateOfframpSuccessResponse; error?: string }> { - const apiUrl = process.env.PEANUT_API_URL - - if (!apiUrl || !API_KEY) { - console.error('API URL or API Key is not configured.') - return { error: 'Server configuration error.' } - } - try { - const jwtToken = (await getJWTCookie())?.value - - if (!jwtToken) { - return { error: 'Authentication token not found.' } - } - - const response = await fetchWithSentry(`${apiUrl}/bridge/offramp/create`, { + const response = await fetchWithSentry(`${PEANUT_API_URL}/bridge/offramp/create`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${jwtToken}`, - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), body: JSON.stringify({ ...params, provider: 'bridge', // note: bridge is currently the only provider @@ -72,20 +53,10 @@ export async function createOfframp( export async function createOfframpForGuest( params: TCreateOfframpRequest ): Promise<{ data?: CreateOfframpSuccessResponse; error?: string }> { - const apiUrl = process.env.PEANUT_API_URL - - if (!apiUrl || !API_KEY) { - console.error('API URL or API Key is not configured.') - return { error: 'Server configuration error.' } - } - try { - const response = await fetchWithSentry(`${apiUrl}/bridge/offramp/create-for-guest`, { + const response = await fetchWithSentry(`${PEANUT_API_URL}/bridge/offramp/create-for-guest`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), body: JSON.stringify({ ...params, provider: 'bridge', @@ -109,7 +80,7 @@ export async function createOfframpForGuest( } /** - * Server Action to confirm an off-ramp transfer after the user has sent funds. + * Confirm an off-ramp transfer after the user has sent funds. * * this calls the `/bridge/transfers/:transferId/confirm` API endpoint, providing * the on-chain transaction hash. This makes the transfer visible in the user's history. @@ -122,27 +93,10 @@ export async function confirmOfframp( transferId: string, txHash: string ): Promise<{ data?: { success: boolean }; error?: string }> { - const apiUrl = process.env.PEANUT_API_URL - - if (!apiUrl || !API_KEY) { - console.error('API URL or API Key is not configured.') - return { error: 'Server configuration error.' } - } - try { - const jwtToken = (await getJWTCookie())?.value - - if (!jwtToken) { - return { error: 'Authentication token not found.' } - } - - const response = await fetchWithSentry(`${apiUrl}/bridge/transfers/${transferId}/confirm`, { + const response = await fetchWithSentry(`${PEANUT_API_URL}/bridge/transfers/${transferId}/confirm`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${jwtToken}`, - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), body: JSON.stringify({ txHash }), }) diff --git a/src/app/actions/onramp.ts b/src/app/actions/onramp.ts index d4b4a44340..9d1187b5a3 100644 --- a/src/app/actions/onramp.ts +++ b/src/app/actions/onramp.ts @@ -1,12 +1,10 @@ -'use server' import { fetchWithSentry } from '@/utils/sentry.utils' import { type CountryData } from '@/components/AddMoney/consts' import { getCurrencyConfig } from '@/utils/bridge.utils' import { getCurrencyPrice } from '@/app/actions/currency' -import { getJWTCookie } from '@/utils/cookie-migration.utils' - -const API_KEY = process.env.PEANUT_API_KEY! +import { PEANUT_API_URL } from '@/constants/general.consts' +import { getAuthHeaders } from '@/utils/auth-token' export interface CreateOnrampGuestParams { amount: string @@ -16,7 +14,7 @@ export interface CreateOnrampGuestParams { } /** - * Server Action to cancel an on-ramp transfer. + * Cancel an on-ramp transfer. * * calls the `/bridge/onramp/:transferId/cancel` API endpoint to cancel the transfer * and returns the success status or error message. @@ -25,27 +23,10 @@ export interface CreateOnrampGuestParams { * @returns An object containing either the successful response data or an error. */ export async function cancelOnramp(transferId: string): Promise<{ data?: { success: boolean }; error?: string }> { - const apiUrl = process.env.PEANUT_API_URL - - if (!apiUrl || !API_KEY) { - console.error('API URL or API Key is not configured.') - return { error: 'Server configuration error.' } - } - try { - const jwtToken = (await getJWTCookie())?.value - - if (!jwtToken) { - return { error: 'Authentication token not found.' } - } - - const response = await fetchWithSentry(`${apiUrl}/bridge/onramp/${transferId}/cancel`, { + const response = await fetchWithSentry(`${PEANUT_API_URL}/bridge/onramp/${transferId}/cancel`, { method: 'DELETE', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${jwtToken}`, - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), }) if (!response.ok) { @@ -66,24 +47,14 @@ export async function cancelOnramp(transferId: string): Promise<{ data?: { succe export async function createOnrampForGuest( params: CreateOnrampGuestParams ): Promise<{ data?: { success: boolean }; error?: string }> { - const apiUrl = process.env.PEANUT_API_URL - - if (!apiUrl || !API_KEY) { - console.error('API URL or API Key is not configured.') - return { error: 'Server configuration error.' } - } - try { const { currency, paymentRail } = getCurrencyConfig(params.country.id, 'onramp') const price = await getCurrencyPrice(currency) const amount = (Number(params.amount) * price.buy).toFixed(2) - const response = await fetchWithSentry(`${apiUrl}/bridge/onramp/create-for-guest`, { + const response = await fetchWithSentry(`${PEANUT_API_URL}/bridge/onramp/create-for-guest`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), body: JSON.stringify({ amount, userId: params.userId, diff --git a/src/app/actions/squid.ts b/src/app/actions/squid.ts index 38b7777c03..1b3adc7d02 100644 --- a/src/app/actions/squid.ts +++ b/src/app/actions/squid.ts @@ -1,7 +1,6 @@ -'use server' import { getSquidChains, getSquidTokens } from '@squirrel-labs/peanut-sdk' -import { unstable_cache } from 'next/cache' +import { unstable_cache } from '@/utils/no-cache' import { interfaces } from '@squirrel-labs/peanut-sdk' import { supportedPeanutChains } from '@/constants/general.consts' diff --git a/src/app/actions/sumsub.ts b/src/app/actions/sumsub.ts index 7222004c69..503f1d8d62 100644 --- a/src/app/actions/sumsub.ts +++ b/src/app/actions/sumsub.ts @@ -1,23 +1,14 @@ -'use server' import { type InitiateSumsubKycResponse, type KYCRegionIntent } from './types/sumsub.types' import { fetchWithSentry } from '@/utils/sentry.utils' import { PEANUT_API_URL } from '@/constants/general.consts' -import { getJWTCookie } from '@/utils/cookie-migration.utils' - -const API_KEY = process.env.PEANUT_API_KEY! +import { getAuthHeaders } from '@/utils/auth-token' // initiate kyc flow (using sumsub) and get websdk access token export const initiateSumsubKyc = async (params?: { regionIntent?: KYCRegionIntent levelName?: string }): Promise<{ data?: InitiateSumsubKycResponse; error?: string }> => { - const jwtToken = (await getJWTCookie())?.value - - if (!jwtToken) { - return { error: 'Authentication required' } - } - const body: Record = { regionIntent: params?.regionIntent, levelName: params?.levelName, @@ -26,11 +17,7 @@ export const initiateSumsubKyc = async (params?: { try { const response = await fetchWithSentry(`${PEANUT_API_URL}/users/identity`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${jwtToken}`, - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), body: JSON.stringify(body), }) diff --git a/src/app/actions/tokens.ts b/src/app/actions/tokens.ts index d84632811c..958035ea71 100644 --- a/src/app/actions/tokens.ts +++ b/src/app/actions/tokens.ts @@ -1,5 +1,5 @@ -'use server' -import { unstable_cache } from 'next/cache' + +import { unstable_cache } from '@/utils/no-cache' import { isAddressZero, estimateIfIsStableCoinFromPrice, diff --git a/src/app/actions/users.ts b/src/app/actions/users.ts index 07e1498ef7..e9bccfd578 100644 --- a/src/app/actions/users.ts +++ b/src/app/actions/users.ts @@ -1,4 +1,3 @@ -'use server' import { type ApiUser } from '@/services/users' import { fetchWithSentry } from '@/utils/sentry.utils' @@ -6,21 +5,13 @@ import { type AddBankAccountPayload, BridgeEndorsementType, type InitiateKycResp import { type User } from '@/interfaces' import { type ContactsResponse } from '@/interfaces' import { PEANUT_API_URL } from '@/constants/general.consts' -import { getJWTCookie } from '@/utils/cookie-migration.utils' - -const API_KEY = process.env.PEANUT_API_KEY! +import { getAuthHeaders } from '@/utils/auth-token' export const updateUserById = async (payload: Record): Promise<{ data?: ApiUser; error?: string }> => { - const jwtToken = (await getJWTCookie())?.value - try { const response = await fetchWithSentry(`${PEANUT_API_URL}/update-user`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${jwtToken}`, - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), body: JSON.stringify(payload), }) @@ -38,15 +29,10 @@ export const updateUserById = async (payload: Record): Promise<{ da export const getKycDetails = async (params?: { endorsements: BridgeEndorsementType[] }): Promise<{ data?: InitiateKycResponse; error?: string }> => { - const jwtToken = (await getJWTCookie())?.value try { const response = await fetchWithSentry(`${PEANUT_API_URL}/users/initiate-kyc`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${jwtToken}`, - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), body: JSON.stringify(params || {}), }) @@ -66,16 +52,10 @@ export const getKycDetails = async (params?: { } export const addBankAccount = async (payload: AddBankAccountPayload): Promise<{ data?: any; error?: string }> => { - const jwtToken = (await getJWTCookie())?.value - try { const response = await fetchWithSentry(`${PEANUT_API_URL}/users/accounts`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${jwtToken}`, - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), body: JSON.stringify(payload), }) @@ -98,10 +78,7 @@ export async function getUserById(userId: string): Promise { try { const response = await fetchWithSentry(`${PEANUT_API_URL}/users/${userId}`, { method: 'GET', - headers: { - 'Content-Type': 'application/json', - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), }) if (!response.ok) { @@ -123,12 +100,6 @@ export async function getContacts(params: { offset: number search?: string }): Promise<{ data?: ContactsResponse; error?: string }> { - const jwtToken = (await getJWTCookie())?.value - - if (!jwtToken) { - throw new Error('Not authenticated') - } - try { const queryParams = new URLSearchParams({ limit: params.limit.toString(), @@ -142,11 +113,7 @@ export async function getContacts(params: { const response = await fetchWithSentry(`${PEANUT_API_URL}/users/contacts?${queryParams}`, { method: 'GET', - headers: { - 'Content-Type': 'application/json', - 'api-key': API_KEY, - Authorization: `Bearer ${jwtToken}`, - }, + headers: getAuthHeaders(), }) if (!response.ok) { @@ -163,15 +130,10 @@ export async function getContacts(params: { // fetch bridge ToS acceptance link for users with pending ToS export const getBridgeTosLink = async (): Promise<{ data?: { tosLink: string }; error?: string }> => { - const jwtToken = (await getJWTCookie())?.value try { const response = await fetchWithSentry(`${PEANUT_API_URL}/users/bridge-tos-link`, { method: 'GET', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${jwtToken}`, - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), }) const responseJson = await response.json() if (!response.ok) { @@ -185,15 +147,10 @@ export const getBridgeTosLink = async (): Promise<{ data?: { tosLink: string }; // confirm bridge ToS acceptance after user closes the ToS iframe export const confirmBridgeTos = async (): Promise<{ data?: { accepted: boolean }; error?: string }> => { - const jwtToken = (await getJWTCookie())?.value try { const response = await fetchWithSentry(`${PEANUT_API_URL}/users/bridge-tos-confirm`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${jwtToken}`, - 'api-key': API_KEY, - }, + headers: getAuthHeaders(), body: JSON.stringify({}), }) const responseJson = await response.json() diff --git a/src/services/swap.ts b/src/services/swap.ts index 21076defcc..a6a6d17a70 100644 --- a/src/services/swap.ts +++ b/src/services/swap.ts @@ -1,4 +1,4 @@ -'use server' + import type { Address, Hash, Hex } from 'viem' import { parseUnits, formatUnits, encodeFunctionData, erc20Abi } from 'viem' From 03a7379438ce7df4c4f087a743d20894f4d45178 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Thu, 9 Apr 2026 20:39:38 +0530 Subject: [PATCH 019/425] feat: migrate direct /api/ calls to use apiFetch for capacitor replace 9 relative /api/ calls with apiFetch helper that routes to backend directly in capacitor or through next.js proxy on web. make next_proxy_url dynamic (checks capacitor + env var). --- src/components/Claim/Link/Initial.view.tsx | 6 ++--- src/constants/general.consts.ts | 7 +++++- src/context/authContext.tsx | 11 +++------ src/hooks/query/user.ts | 3 ++- src/hooks/useCreateOnramp.ts | 12 ++-------- src/hooks/useExchangeRate.ts | 6 ++++- src/services/charges.ts | 21 +++++++++-------- src/utils/bridge-accounts.utils.ts | 27 +++++++++------------- 8 files changed, 42 insertions(+), 51 deletions(-) diff --git a/src/components/Claim/Link/Initial.view.tsx b/src/components/Claim/Link/Initial.view.tsx index 4a94b1123f..9d224ff46e 100644 --- a/src/components/Claim/Link/Initial.view.tsx +++ b/src/components/Claim/Link/Initial.view.tsx @@ -18,6 +18,7 @@ import { sendLinksApi } from '@/services/sendLinks' import { areEvmAddressesEqual, formatTokenAmount, printableAddress } from '@/utils/general.utils' import { ErrorHandler } from '@/utils/sdkErrorHandler.utils' import { fetchWithSentry } from '@/utils/sentry.utils' +import { apiFetch } from '@/utils/api-fetch' import { getBridgeChainName, getBridgeTokenName } from '@/utils/bridge-accounts.utils' import { NATIVE_TOKEN_ADDRESS, SQUID_ETH_ADDRESS, checkTokenSupportsXChain } from '@/utils/token.utils' import * as Sentry from '@sentry/nextjs' @@ -483,11 +484,8 @@ export const InitialClaimLinkView = (props: IClaimScreenProps) => { if (!user) { console.log(`user not logged in, getting account status for ${recipient.address}`) - const userIdResponse = await fetchWithSentry('/api/peanut/user/get-user-id', { + const userIdResponse = await apiFetch('/get-user-id', '/api/peanut/user/get-user-id', { method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, body: JSON.stringify({ accountIdentifier: recipient.address, }), diff --git a/src/constants/general.consts.ts b/src/constants/general.consts.ts index c997c2ea9a..09789f3f77 100644 --- a/src/constants/general.consts.ts +++ b/src/constants/general.consts.ts @@ -93,7 +93,12 @@ export const IS_DEV = process.env.NODE_ENV === 'development' export const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL || 'https://peanut.me' // URL for the frontend to call its own Next.js API routes (like /api/health/*) export const SELF_URL = IS_DEV ? 'http://localhost:3000' : BASE_URL -export const next_proxy_url = '/api/proxy' +// in capacitor (static export), /api/proxy doesn't exist — call backend directly. +// checks both window.Capacitor and NEXT_PUBLIC_CAPACITOR_BUILD env var for consistency with isCapacitor() +export const next_proxy_url = + typeof window !== 'undefined' && ((window as any).Capacitor || process.env.NEXT_PUBLIC_CAPACITOR_BUILD === 'true') + ? process.env.NEXT_PUBLIC_PEANUT_API_URL || 'https://api.peanut.me' + : '/api/proxy' // Git commit hash - injected at build time export const GIT_COMMIT_HASH = process.env.NEXT_PUBLIC_GIT_COMMIT_HASH || 'unknown' diff --git a/src/context/authContext.tsx b/src/context/authContext.tsx index 371fcec9ff..fd0c9b1cfa 100644 --- a/src/context/authContext.tsx +++ b/src/context/authContext.tsx @@ -13,6 +13,7 @@ import { updateUserPreferences, } from '@/utils/general.utils' import { fetchWithSentry } from '@/utils/sentry.utils' +import { apiFetch } from '@/utils/api-fetch' import { resetCrispProxySessions } from '@/utils/crisp' import posthog from 'posthog-js' import { useQueryClient } from '@tanstack/react-query' @@ -111,11 +112,8 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { }) => { console.log('[addAccount] Starting account addition', { userId, accountType }) - const response = await fetchWithSentry('/api/peanut/user/add-account', { + const response = await apiFetch('/add-account', '/api/peanut/user/add-account', { method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, body: JSON.stringify({ userId, accountIdentifier, @@ -227,11 +225,8 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { try { // Call backend logout unless skipped (e.g., when backend is down) if (!options?.skipBackendCall) { - const response = await fetchWithSentry('/api/peanut/user/logout-user', { + const response = await apiFetch('/logout-user', '/api/peanut/user/logout-user', { method: 'GET', - headers: { - 'Content-Type': 'application/json', - }, }) if (!response.ok) { diff --git a/src/hooks/query/user.ts b/src/hooks/query/user.ts index 65fdb6a0d4..b1bd3839b1 100644 --- a/src/hooks/query/user.ts +++ b/src/hooks/query/user.ts @@ -7,6 +7,7 @@ import { useQuery } from '@tanstack/react-query' import { usePWAStatus } from '../usePWAStatus' import { useDeviceType } from '../useGetDeviceType' import { USER } from '@/constants/query.consts' +import { apiFetch } from '@/utils/api-fetch' // custom error class for backend errors (5xx) that should trigger retry export class BackendError extends Error { @@ -25,7 +26,7 @@ export const useUserQuery = (dependsOn: boolean = true) => { const { user: authUser } = useUserStore() const fetchUser = async (): Promise => { - const userResponse = await fetchWithSentry('/api/peanut/user/get-user-from-cookie') + const userResponse = await apiFetch('/get-user', '/api/peanut/user/get-user-from-cookie') if (userResponse.ok) { const userData: IUserProfile | null = await userResponse.json() if (userData) { diff --git a/src/hooks/useCreateOnramp.ts b/src/hooks/useCreateOnramp.ts index 37ac606ca6..0264fd82ee 100644 --- a/src/hooks/useCreateOnramp.ts +++ b/src/hooks/useCreateOnramp.ts @@ -1,9 +1,9 @@ import { useState, useCallback } from 'react' -import Cookies from 'js-cookie' import { getCurrencyConfig } from '@/utils/bridge.utils' import { type CountryData } from '@/components/AddMoney/consts' import type { Address } from 'viem' import { getCurrencyPrice } from '@/app/actions/currency' +import { apiFetch } from '@/utils/api-fetch' export type CreateOnrampParams = { country: CountryData @@ -39,22 +39,14 @@ export const useCreateOnramp = (): UseCreateOnrampReturn => { setError(null) try { - const jwtToken = Cookies.get('jwt-token') - const { currency, paymentRail } = getCurrencyConfig(country.id, 'onramp') if (usdAmount) { - // Get currency configuration for the country const price = await getCurrencyPrice(currency) amount = (Number(usdAmount) * price.buy).toFixed(2) } - // Call backend to create onramp via proxy route - const response = await fetch('/api/proxy/bridge/onramp/create', { + const response = await apiFetch('/bridge/onramp/create', '/api/proxy/bridge/onramp/create', { method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${jwtToken}`, - }, body: JSON.stringify({ amount, chargeId, diff --git a/src/hooks/useExchangeRate.ts b/src/hooks/useExchangeRate.ts index 044e1ab602..3fba9e0634 100644 --- a/src/hooks/useExchangeRate.ts +++ b/src/hooks/useExchangeRate.ts @@ -1,6 +1,7 @@ import { useState, useEffect, useCallback } from 'react' import { useDebounce } from './useDebounce' import { useQuery } from '@tanstack/react-query' +import { apiFetch } from '@/utils/api-fetch' type InputValue = number | '' @@ -84,7 +85,10 @@ export function useExchangeRate({ } = useQuery<{ rate: number }>({ queryKey: ['exchangeRate', sourceCurrency, destinationCurrency], queryFn: async () => { - const res = await fetch(`/api/exchange-rate?from=${sourceCurrency}&to=${destinationCurrency}`) + const res = await apiFetch( + `/exchange-rate?from=${sourceCurrency}&to=${destinationCurrency}`, + `/api/exchange-rate?from=${sourceCurrency}&to=${destinationCurrency}` + ) if (!res.ok) throw new Error('Failed to fetch exchange rate') return res.json() }, diff --git a/src/services/charges.ts b/src/services/charges.ts index a242552545..dac315faa6 100644 --- a/src/services/charges.ts +++ b/src/services/charges.ts @@ -1,6 +1,5 @@ import { fetchWithSentry } from '@/utils/sentry.utils' import { jsonParse } from '@/utils/general.utils' -import Cookies from 'js-cookie' import { type TRequestChargeResponse, type PaymentCreationResponse, @@ -8,6 +7,9 @@ import { type CreateChargeRequest, } from './services.types' import { PEANUT_API_URL } from '@/constants/general.consts' +import { isCapacitor } from '@/utils/capacitor' +import { getAuthHeaders, getAuthToken } from '@/utils/auth-token' +import { apiFetch } from '@/utils/api-fetch' export const chargesApi = { create: async (data: CreateChargeRequest): Promise => { @@ -24,8 +26,13 @@ export const chargesApi = { } }) - const response = await fetchWithSentry(`/api/proxy/withFormData/charges`, { + const chargeUrl = isCapacitor() ? `${PEANUT_API_URL}/charges` : '/api/proxy/withFormData/charges' + const headers: Record = {} + const token = getAuthToken() + if (token) headers['Authorization'] = `Bearer ${token}` + const response = await fetchWithSentry(chargeUrl, { method: 'POST', + headers, body: formData, }) @@ -54,10 +61,7 @@ export const chargesApi = { cancel: async (id: string): Promise => { const response = await fetchWithSentry(`${PEANUT_API_URL}/charges/${id}`, { method: 'DELETE', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, - }, + headers: getAuthHeaders(), }) if (!response.ok) { @@ -86,11 +90,8 @@ export const chargesApi = { sourceTokenSymbol?: string squidQuoteId?: string }): Promise => { - const response = await fetchWithSentry(`/api/proxy/charges/${chargeId}/payments`, { + const response = await apiFetch(`/charges/${chargeId}/payments`, `/api/proxy/charges/${chargeId}/payments`, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, body: JSON.stringify({ chainId, hash, diff --git a/src/utils/bridge-accounts.utils.ts b/src/utils/bridge-accounts.utils.ts index 1fffc7be37..352e3b36af 100644 --- a/src/utils/bridge-accounts.utils.ts +++ b/src/utils/bridge-accounts.utils.ts @@ -2,6 +2,7 @@ import { supportedBridgeTokensDictionary, supportedBridgeChainsDictionary } from import { areEvmAddressesEqual } from '@/utils/general.utils' import { fetchWithSentry } from '@/utils/sentry.utils' import { isIBAN } from 'validator' +import { apiFetch } from '@/utils/api-fetch' const ALLOWED_PARENT_DOMAINS = ['intersend.io', 'app.intersend.io'] @@ -55,15 +56,14 @@ export function getBridgeChainName(chainId: string): string | undefined { export async function validateBankAccount(bankAccount: string): Promise { const bankAccountNumber = bankAccount.replace(/\s/g, '') - const response = await fetchWithSentry(`/api/peanut/iban/validate-bank-account-number`, { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - bankAccountNumber, - }), - }) + const response = await apiFetch( + '/iban/validate-bank-account-number', + '/api/peanut/iban/validate-bank-account-number', + { + method: 'POST', + body: JSON.stringify({ bankAccountNumber }), + } + ) if (response.status !== 200) { return false @@ -73,14 +73,9 @@ export async function validateBankAccount(bankAccount: string): Promise } export async function validateBic(bic: string): Promise { - const response = await fetchWithSentry(`/api/peanut/iban/validate-bic`, { + const response = await apiFetch('/iban/validate-bic', '/api/peanut/iban/validate-bic', { method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - bic, - }), + body: JSON.stringify({ bic }), }) if (response.status !== 200) { From e0e09ed8652c79b37d85c5de502c5a72daac919f Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Thu, 9 Apr 2026 21:08:15 +0530 Subject: [PATCH 020/425] fix: remove api-key from manteca price fetch, use jwt auth --- src/services/manteca.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/services/manteca.ts b/src/services/manteca.ts index 04266fdbba..f2a790764e 100644 --- a/src/services/manteca.ts +++ b/src/services/manteca.ts @@ -1,4 +1,5 @@ -import { PEANUT_API_URL, PEANUT_API_KEY } from '@/constants/general.consts' +import { PEANUT_API_URL } from '@/constants/general.consts' +import { getAuthHeaders } from '@/utils/auth-token' import { type MantecaDepositResponseData, type MantecaWithdrawData, @@ -222,10 +223,7 @@ export const mantecaApi = { }, getPrices: async ({ asset, against }: { asset: string; against: string }): Promise => { const response = await fetchWithSentry(`${PEANUT_API_URL}/manteca/prices?asset=${asset}&against=${against}`, { - headers: { - 'Content-Type': 'application/json', - 'api-key': PEANUT_API_KEY, - }, + headers: getAuthHeaders(), }) if (!response.ok) { From fbe5fa3e7ea694b058675db140691855003fdafa Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Fri, 10 Apr 2026 11:57:05 +0530 Subject: [PATCH 021/425] feat: save jwt from passkey response body for static export in static export, Set-Cookie from cross-origin backend is ignored. read token from response body and store via Cookies.set() in nativeRegister and nativeLogin. --- src/utils/native-webauthn.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/utils/native-webauthn.ts b/src/utils/native-webauthn.ts index 3a506afd7e..e86f0e2151 100644 --- a/src/utils/native-webauthn.ts +++ b/src/utils/native-webauthn.ts @@ -6,6 +6,7 @@ import { bytesToBigInt, hexToBytes } from 'viem' // @ts-ignore -- @noble/curves/p256 requires pinning to v1.9.7 (v2 removed this export) import { p256 } from '@noble/curves/p256' import { registerPlugin } from '@capacitor/core' +import Cookies from 'js-cookie' // register the webauthn plugin bridge — the native code is loaded by capacitor runtime, // this just creates the js-to-native communication channel @@ -197,6 +198,11 @@ export async function nativeRegister(params: { throw new Error(`native passkey registration not verified by server: ${JSON.stringify(verifyResult)}`) } + // save jwt token from response body (Set-Cookie doesn't work cross-origin in static export) + if (verifyResult.token) { + Cookies.set('jwt-token', verifyResult.token, { expires: 30, path: '/' }) + } + // 4. parse public key and build WebAuthnKey const publicKey = credential.response?.publicKey if (!publicKey) { @@ -251,6 +257,11 @@ export async function nativeLogin(params: { throw new Error('native passkey login not verified by server') } + // save jwt token from response body (Set-Cookie doesn't work cross-origin in static export) + if (verifyResult.token) { + Cookies.set('jwt-token', verifyResult.token, { expires: 30, path: '/' }) + } + // 4. parse public key from server response const pubKey = verifyResult.pubkey if (!pubKey) { From 034382731bed6dd01ec5f65b9e3a2d0b5974c66b Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Fri, 10 Apr 2026 12:06:25 +0530 Subject: [PATCH 022/425] chore: format --- src/app/actions/bridge/get-customer.ts | 1 - src/app/actions/claimLinks.ts | 1 - src/app/actions/currency.ts | 1 - src/app/actions/ens.ts | 1 - src/app/actions/exchange-rate.ts | 1 - src/app/actions/external-accounts.ts | 1 - src/app/actions/history.ts | 1 - src/app/actions/ibanToBic.ts | 1 - src/app/actions/invites.ts | 1 - src/app/actions/offramp.ts | 1 - src/app/actions/onramp.ts | 1 - src/app/actions/squid.ts | 1 - src/app/actions/sumsub.ts | 1 - src/app/actions/tokens.ts | 1 - src/app/actions/users.ts | 1 - src/services/swap.ts | 1 - 16 files changed, 16 deletions(-) diff --git a/src/app/actions/bridge/get-customer.ts b/src/app/actions/bridge/get-customer.ts index 73d28338e4..bf5bf265d5 100644 --- a/src/app/actions/bridge/get-customer.ts +++ b/src/app/actions/bridge/get-customer.ts @@ -1,4 +1,3 @@ - import { unstable_cache } from '@/utils/no-cache' import { countryData } from '@/components/AddMoney/consts' import { PEANUT_API_URL } from '@/constants/general.consts' diff --git a/src/app/actions/claimLinks.ts b/src/app/actions/claimLinks.ts index 84ba537b2e..2007f32b26 100644 --- a/src/app/actions/claimLinks.ts +++ b/src/app/actions/claimLinks.ts @@ -1,4 +1,3 @@ - import { unstable_cache } from '@/utils/no-cache' import peanut, { interfaces as peanutInterfaces } from '@squirrel-labs/peanut-sdk' import type { Address, Hash } from 'viem' diff --git a/src/app/actions/currency.ts b/src/app/actions/currency.ts index 0352ad31d6..bcaa5883c6 100644 --- a/src/app/actions/currency.ts +++ b/src/app/actions/currency.ts @@ -1,4 +1,3 @@ - import { getExchangeRate } from './exchange-rate' import { AccountType } from '@/interfaces' import { mantecaApi } from '@/services/manteca' diff --git a/src/app/actions/ens.ts b/src/app/actions/ens.ts index 346af0b281..fca5a78833 100644 --- a/src/app/actions/ens.ts +++ b/src/app/actions/ens.ts @@ -1,4 +1,3 @@ - import { unstable_cache } from '@/utils/no-cache' import { fetchWithSentry } from '@/utils/sentry.utils' import { PEANUT_API_URL } from '@/constants/general.consts' diff --git a/src/app/actions/exchange-rate.ts b/src/app/actions/exchange-rate.ts index 32e1b562f1..273b5370c8 100644 --- a/src/app/actions/exchange-rate.ts +++ b/src/app/actions/exchange-rate.ts @@ -1,4 +1,3 @@ - import { fetchWithSentry } from '@/utils/sentry.utils' import { AccountType } from '@/interfaces' import { PEANUT_API_URL } from '@/constants/general.consts' diff --git a/src/app/actions/external-accounts.ts b/src/app/actions/external-accounts.ts index cf8cd9e2a7..d97ad533fa 100644 --- a/src/app/actions/external-accounts.ts +++ b/src/app/actions/external-accounts.ts @@ -1,4 +1,3 @@ - import { fetchWithSentry } from '@/utils/sentry.utils' import { type AddBankAccountPayload } from './types/users.types' import { type IBridgeAccount } from '@/interfaces' diff --git a/src/app/actions/history.ts b/src/app/actions/history.ts index 4b40339c71..e924419826 100644 --- a/src/app/actions/history.ts +++ b/src/app/actions/history.ts @@ -1,4 +1,3 @@ - import { EHistoryEntryType, completeHistoryEntry } from '@/utils/history.utils' import type { HistoryEntry } from '@/utils/history.utils' import { PEANUT_API_URL } from '@/constants/general.consts' diff --git a/src/app/actions/ibanToBic.ts b/src/app/actions/ibanToBic.ts index 393c18d5ab..cfa3188bbc 100644 --- a/src/app/actions/ibanToBic.ts +++ b/src/app/actions/ibanToBic.ts @@ -1,4 +1,3 @@ - // @ts-ignore: CommonJS module without types import { ibanToBic } from 'iban-to-bic' diff --git a/src/app/actions/invites.ts b/src/app/actions/invites.ts index e343888e0a..7dc17083a5 100644 --- a/src/app/actions/invites.ts +++ b/src/app/actions/invites.ts @@ -1,4 +1,3 @@ - import { fetchWithSentry } from '@/utils/sentry.utils' import { PEANUT_API_URL } from '@/constants/general.consts' import { getAuthHeaders } from '@/utils/auth-token' diff --git a/src/app/actions/offramp.ts b/src/app/actions/offramp.ts index 85e4ba5181..c9f0c91cf0 100644 --- a/src/app/actions/offramp.ts +++ b/src/app/actions/offramp.ts @@ -1,4 +1,3 @@ - import { type TCreateOfframpRequest } from '../../services/services.types' import { fetchWithSentry } from '@/utils/sentry.utils' import { PEANUT_API_URL } from '@/constants/general.consts' diff --git a/src/app/actions/onramp.ts b/src/app/actions/onramp.ts index 9d1187b5a3..7fbec274fc 100644 --- a/src/app/actions/onramp.ts +++ b/src/app/actions/onramp.ts @@ -1,4 +1,3 @@ - import { fetchWithSentry } from '@/utils/sentry.utils' import { type CountryData } from '@/components/AddMoney/consts' import { getCurrencyConfig } from '@/utils/bridge.utils' diff --git a/src/app/actions/squid.ts b/src/app/actions/squid.ts index 1b3adc7d02..ef249f4c7a 100644 --- a/src/app/actions/squid.ts +++ b/src/app/actions/squid.ts @@ -1,4 +1,3 @@ - import { getSquidChains, getSquidTokens } from '@squirrel-labs/peanut-sdk' import { unstable_cache } from '@/utils/no-cache' import { interfaces } from '@squirrel-labs/peanut-sdk' diff --git a/src/app/actions/sumsub.ts b/src/app/actions/sumsub.ts index 503f1d8d62..c8332ce084 100644 --- a/src/app/actions/sumsub.ts +++ b/src/app/actions/sumsub.ts @@ -1,4 +1,3 @@ - import { type InitiateSumsubKycResponse, type KYCRegionIntent } from './types/sumsub.types' import { fetchWithSentry } from '@/utils/sentry.utils' import { PEANUT_API_URL } from '@/constants/general.consts' diff --git a/src/app/actions/tokens.ts b/src/app/actions/tokens.ts index 958035ea71..a8881155a1 100644 --- a/src/app/actions/tokens.ts +++ b/src/app/actions/tokens.ts @@ -1,4 +1,3 @@ - import { unstable_cache } from '@/utils/no-cache' import { isAddressZero, diff --git a/src/app/actions/users.ts b/src/app/actions/users.ts index e9bccfd578..630ac5e961 100644 --- a/src/app/actions/users.ts +++ b/src/app/actions/users.ts @@ -1,4 +1,3 @@ - import { type ApiUser } from '@/services/users' import { fetchWithSentry } from '@/utils/sentry.utils' import { type AddBankAccountPayload, BridgeEndorsementType, type InitiateKycResponse } from './types/users.types' diff --git a/src/services/swap.ts b/src/services/swap.ts index a6a6d17a70..54316d39db 100644 --- a/src/services/swap.ts +++ b/src/services/swap.ts @@ -1,4 +1,3 @@ - import type { Address, Hash, Hex } from 'viem' import { parseUnits, formatUnits, encodeFunctionData, erc20Abi } from 'viem' From bee276415ca9ac20fcf9fe6151b4251260b23b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Ram=C3=ADrez?= Date: Sun, 12 Apr 2026 22:15:53 -0300 Subject: [PATCH 023/425] feat: env-driven wallet chain + ZeroDev permission support - Peanut wallet chain/token configurable via NEXT_PUBLIC_PEANUT_WALLET_* env vars - Primary chain in PUBLIC_CLIENTS_BY_CHAIN now follows PEANUT_WALLET_CHAIN - Ultra Relay gas=0 scoped to Arbitrum mainnet only (testnets use standard estimation) - @zerodev/permissions package for session key permission approvals - Kernel client context imports reworked for chain-agnostic setup --- .env.example | 8 ++ package.json | 1 + pnpm-lock.yaml | 144 ++++++++++++++++++++++++--- src/app/actions/clients.ts | 8 +- src/constants/zerodev.consts.ts | 18 ++-- src/context/kernelClient.context.tsx | 14 +-- 6 files changed, 161 insertions(+), 32 deletions(-) diff --git a/.env.example b/.env.example index f49c3a2b61..2f8cff382f 100644 --- a/.env.example +++ b/.env.example @@ -44,6 +44,14 @@ export NEXT_PUBLIC_ZERO_DEV_PASSKEY_SERVER_URL="" export NEXT_PUBLIC_ZERO_DEV_RECOVERY_BUNDLER_URL="" export NEXT_PUBLIC_POLYGON_PAYMASTER_URL="" export NEXT_PUBLIC_POLYGON_BUNDLER_URL="" + +# Peanut wallet chain & token (defaults to Arbitrum mainnet USDC) +# Override for testnets/other chains. Token values in raw units (USDC = 6 decimals) +export NEXT_PUBLIC_PEANUT_WALLET_CHAIN_ID="" +export NEXT_PUBLIC_PEANUT_WALLET_TOKEN="" +export NEXT_PUBLIC_PEANUT_WALLET_TOKEN_DECIMALS="" +export NEXT_PUBLIC_PEANUT_WALLET_TOKEN_SYMBOL="" +export NEXT_PUBLIC_PEANUT_WALLET_TOKEN_NAME="" export NEXT_PUBLIC_BALANCE_WARNING_THRESHOLD=1 export NEXT_PUBLIC_BALANCE_WARNING_EXPIRY=15 diff --git a/package.json b/package.json index a7308b244a..9509b8993c 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "@vercel/analytics": "^1.4.1", "@wagmi/core": "2.19.0", "@zerodev/passkey-validator": "^5.6.0", + "@zerodev/permissions": "5.5.0", "@zerodev/sdk": "5.5.7", "autoprefixer": "^10.4.20", "canvas-confetti": "^1.9.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 671ed5bdad..dbf3539bfe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -69,7 +69,7 @@ importers: version: 9.1.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6) '@sentry/nextjs': specifier: ^8.39.0 - version: 8.55.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@2.6.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(next@16.0.10(@babel/core@7.28.6)(@opentelemetry/api@1.9.0)(@playwright/test@1.58.2)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)(webpack@5.104.1) + version: 8.55.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(next@16.0.10(@babel/core@7.28.6)(@opentelemetry/api@1.9.0)(@playwright/test@1.58.2)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)(webpack@5.104.1) '@serwist/next': specifier: ^9.0.10 version: 9.5.0(next@16.0.10(@babel/core@7.28.6)(@opentelemetry/api@1.9.0)(@playwright/test@1.58.2)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)(typescript@5.9.3)(webpack@5.104.1) @@ -94,6 +94,9 @@ importers: '@zerodev/passkey-validator': specifier: ^5.6.0 version: 5.6.0(@zerodev/sdk@5.5.7(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)))(@zerodev/webauthn-key@5.5.0(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)))(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)) + '@zerodev/permissions': + specifier: 5.5.0 + version: 5.5.0(@zerodev/sdk@5.5.7(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)))(@zerodev/webauthn-key@5.5.0(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)))(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)) '@zerodev/sdk': specifier: 5.5.7 version: 5.5.7(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)) @@ -2778,10 +2781,17 @@ packages: '@simplewebauthn/browser@8.3.7': resolution: {integrity: sha512-ZtRf+pUEgOCvjrYsbMsJfiHOdKcrSZt2zrAnIIpfmA06r0FxBovFYq0rJ171soZbe13KmWzAoLKjSxVW7KxCdQ==} + '@simplewebauthn/browser@9.0.1': + resolution: {integrity: sha512-wD2WpbkaEP4170s13/HUxPcAV5y4ZXaKo1TfNklS5zDefPinIgXOpgz1kpEvobAsaLPa2KeH7AKKX/od1mrBJw==} + '@simplewebauthn/types@12.0.0': resolution: {integrity: sha512-q6y8MkoV8V8jB4zzp18Uyj2I7oFp2/ONL8c3j8uT06AOWu3cIChc1au71QYHrP2b+xDapkGTiv+9lX7xkTlAsA==} deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. + '@simplewebauthn/types@9.0.1': + resolution: {integrity: sha512-tGSRP1QvsAvsJmnOlRQyw/mvK9gnPtjEc5fg2+m8n+QUa+D7rvrKkOYyfpy42GTs90X3RDOnqJgfHt+qO67/+w==} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. + '@simplewebauthn/typescript-types@8.3.4': resolution: {integrity: sha512-38xtca0OqfRVNloKBrFB5LEM6PN5vzFbJG6rAutPVrtGHFYxPdiV3btYWq0eAZAZmP+dqFPYJxJWeJrGfmYHng==} deprecated: This package has been renamed to @simplewebauthn/types. Please install @simplewebauthn/types instead to ensure you receive future updates. @@ -3324,6 +3334,13 @@ packages: '@zerodev/webauthn-key': ^5.4.2 viem: ^2.22.0 + '@zerodev/permissions@5.5.0': + resolution: {integrity: sha512-iGZkTcb+fy+eTqrreR66uiMs1xP9t9ulASgUEL6q8eAVKKJLN1ofeWkzESBXYpinAHXsK/vLmb+Nsv80Y3z+dg==} + peerDependencies: + '@zerodev/sdk': ^5.4.0 + '@zerodev/webauthn-key': ^5.4.0 + viem: ^2.22.0 + '@zerodev/sdk@5.5.7': resolution: {integrity: sha512-Sf4G13yi131H8ujun64obvXIpk1UWn64GiGJjfvGx8aIKg+OWTRz9AZHgGKK+bE/evAmqIg4nchuSvKPhOau1w==} peerDependencies: @@ -3598,10 +3615,16 @@ packages: big.js@6.2.2: resolution: {integrity: sha512-y/ie+Faknx7sZA5MfGA2xKlu0GDv8RWrXGsmlteyJQ2lvoKv9GBK/fpRMc2qlSoBAgNxrixICFCBefIq8WCQpQ==} + bignumber.js@9.3.1: + resolution: {integrity: sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==} + binary-extensions@2.3.0: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} + bn.js@4.11.6: + resolution: {integrity: sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==} + bn.js@4.12.2: resolution: {integrity: sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==} @@ -3645,6 +3668,9 @@ packages: buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + buffer-reverse@1.0.1: + resolution: {integrity: sha512-M87YIUBsZ6N924W57vDwT/aOu8hw7ZgdByz6ijksLjmHJELBASmYTTlNHRgjE+pTsT9oJXGaDSgqqwfdHotDUg==} + buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} @@ -3861,6 +3887,9 @@ packages: crossws@0.3.5: resolution: {integrity: sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA==} + crypto-js@4.2.0: + resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==} + css.escape@1.5.1: resolution: {integrity: sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==} @@ -4305,12 +4334,19 @@ packages: eth-rpc-errors@4.0.3: resolution: {integrity: sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==} + ethereum-bloom-filters@1.2.0: + resolution: {integrity: sha512-28hyiE7HVsWubqhpVLVmZXFd4ITeHi+BUu05o9isf0GUpMtzBUi+8/gFrGaGYzvGAJQmJ3JKj77Mk9G98T84rA==} + ethereum-cryptography@2.2.1: resolution: {integrity: sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==} ethers@5.7.2: resolution: {integrity: sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==} + ethjs-unit@0.1.6: + resolution: {integrity: sha512-/Sn9Y0oKl0uqQuvgFk/zQgR7aw1g36qX/jzSQ5lSwlO0GigPymk4eGQfeNTD03w1dPOqfz8V77Cy43jH56pagw==} + engines: {node: '>=6.5.0', npm: '>=3'} + eventemitter2@6.4.9: resolution: {integrity: sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==} @@ -4792,6 +4828,10 @@ packages: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} + is-hex-prefixed@1.0.0: + resolution: {integrity: sha512-WvtOiug1VFrE9v1Cydwm+FnXd3+w9GaeVUss5W4v/SLy3UW00vP+6iNF2SdnfiBoLy4bTqVdkftNGTUeOFVsbA==} + engines: {node: '>=6.5.0', npm: '>=3'} + is-hexadecimal@2.0.1: resolution: {integrity: sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==} @@ -5276,6 +5316,10 @@ packages: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} + merkletreejs@0.3.11: + resolution: {integrity: sha512-LJKTl4iVNTndhL+3Uz/tfkjD0klIWsHlUzgtuNnNrsf7bAlXR30m+xYB7lHr5Z/l6e/yAIsr26Dabx6Buo4VGQ==} + engines: {node: '>= 7.6.0'} + micro-ftch@0.3.1: resolution: {integrity: sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==} @@ -5551,6 +5595,10 @@ packages: resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} engines: {node: '>=8'} + number-to-bn@1.7.0: + resolution: {integrity: sha512-wsJ9gfSz1/s4ZsJN01lyonwuxA1tml6X1yBDnfpMglypcBRFZZkus26EdPSlqS5GJfYddVZa22p3VNb3z5m5Ig==} + engines: {node: '>=6.5.0', npm: '>=3'} + nuqs@2.8.6: resolution: {integrity: sha512-aRxeX68b4ULmhio8AADL2be1FWDy0EPqaByPvIYWrA7Pm07UjlrICp/VPlSnXJNAG0+3MQwv3OporO2sOXMVGA==} peerDependencies: @@ -6554,6 +6602,10 @@ packages: resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} engines: {node: '>=6'} + strip-hex-prefix@1.0.0: + resolution: {integrity: sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A==} + engines: {node: '>=6.5.0', npm: '>=3'} + strip-indent@3.0.0: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} @@ -6713,6 +6765,10 @@ packages: resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==} engines: {node: '>=12'} + treeify@1.1.0: + resolution: {integrity: sha512-1m4RA7xVAJrSGrrXGs0L3YTwyvBs2S8PbRHaLZAkFw7JR8oIFwYtysxlBZhYIa7xSyiYJKZ3iGrrk55cGA3i9A==} + engines: {node: '>=0.6'} + trim-lines@3.0.1: resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} @@ -6955,6 +7011,9 @@ packages: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} + utf8@3.0.0: + resolution: {integrity: sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==} + util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -7044,6 +7103,10 @@ packages: web-vitals@5.1.0: resolution: {integrity: sha512-ArI3kx5jI0atlTtmV0fWU3fjpLmq/nD3Zr1iFFlJLaqa5wLBkUSzINwBPySCX/8jRyjlmy1Volw1kz1g9XE4Jg==} + web3-utils@1.10.4: + resolution: {integrity: sha512-tsu8FiKJLk2PzhDl9fXbGUWTkkVXYhtTA+SmEFkKft+9BgwLxfCRpU96sWv7ICC8zixBNd3JURVoiR3dUXgP8A==} + engines: {node: '>=8.0.0'} + webdriver-bidi-protocol@0.2.11: resolution: {integrity: sha512-Y9E1/oi4XMxcR8AT0ZC4OvYntl34SPgwjmELH+owjBr0korAX4jKgZULBWILGCVGdVCQ0dodTToIETozhG8zvA==} @@ -10540,7 +10603,7 @@ snapshots: '@sentry/core@8.55.0': {} - '@sentry/nextjs@8.55.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@2.6.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(next@16.0.10(@babel/core@7.28.6)(@opentelemetry/api@1.9.0)(@playwright/test@1.58.2)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)(webpack@5.104.1)': + '@sentry/nextjs@8.55.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(next@16.0.10(@babel/core@7.28.6)(@opentelemetry/api@1.9.0)(@playwright/test@1.58.2)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4)(webpack@5.104.1)': dependencies: '@opentelemetry/api': 1.9.0 '@opentelemetry/semantic-conventions': 1.39.0 @@ -10548,7 +10611,7 @@ snapshots: '@sentry-internal/browser-utils': 8.55.0 '@sentry/core': 8.55.0 '@sentry/node': 8.55.0 - '@sentry/opentelemetry': 8.55.0(@opentelemetry/api@1.9.0)(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@2.6.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.39.0) + '@sentry/opentelemetry': 8.55.0(@opentelemetry/api@1.9.0)(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.39.0) '@sentry/react': 8.55.0(react@19.2.4) '@sentry/vercel-edge': 8.55.0 '@sentry/webpack-plugin': 2.22.7(webpack@5.104.1) @@ -10617,16 +10680,6 @@ snapshots: '@opentelemetry/semantic-conventions': 1.39.0 '@sentry/core': 8.55.0 - '@sentry/opentelemetry@8.55.0(@opentelemetry/api@1.9.0)(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@2.6.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.39.0)': - dependencies: - '@opentelemetry/api': 1.9.0 - '@opentelemetry/context-async-hooks': 1.30.1(@opentelemetry/api@1.9.0) - '@opentelemetry/core': 2.6.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation': 0.57.2(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 2.2.0(@opentelemetry/api@1.9.0) - '@opentelemetry/semantic-conventions': 1.39.0 - '@sentry/core': 8.55.0 - '@sentry/react@8.55.0(react@19.2.4)': dependencies: '@sentry/browser': 8.55.0 @@ -10735,8 +10788,14 @@ snapshots: dependencies: '@simplewebauthn/typescript-types': 8.3.4 + '@simplewebauthn/browser@9.0.1': + dependencies: + '@simplewebauthn/types': 9.0.1 + '@simplewebauthn/types@12.0.0': {} + '@simplewebauthn/types@9.0.1': {} + '@simplewebauthn/typescript-types@8.3.4': {} '@sinclair/typebox@0.27.8': {} @@ -11939,6 +11998,14 @@ snapshots: '@zerodev/webauthn-key': 5.5.0(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)) viem: 2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6) + '@zerodev/permissions@5.5.0(@zerodev/sdk@5.5.7(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)))(@zerodev/webauthn-key@5.5.0(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)))(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6))': + dependencies: + '@simplewebauthn/browser': 9.0.1 + '@zerodev/sdk': 5.5.7(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)) + '@zerodev/webauthn-key': 5.5.0(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)) + merkletreejs: 0.3.11 + viem: 2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6) + '@zerodev/sdk@5.5.7(viem@2.45.0(bufferutil@4.1.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6))': dependencies: semver: 7.7.3 @@ -12210,8 +12277,12 @@ snapshots: big.js@6.2.2: {} + bignumber.js@9.3.1: {} + binary-extensions@2.3.0: {} + bn.js@4.11.6: {} + bn.js@4.12.2: {} bn.js@5.2.2: {} @@ -12257,6 +12328,8 @@ snapshots: buffer-from@1.1.2: {} + buffer-reverse@1.0.1: {} + buffer@6.0.3: dependencies: base64-js: 1.5.1 @@ -12464,6 +12537,8 @@ snapshots: dependencies: uncrypto: 0.1.3 + crypto-js@4.2.0: {} + css.escape@1.5.1: {} cssesc@3.0.0: {} @@ -12942,6 +13017,10 @@ snapshots: dependencies: fast-safe-stringify: 2.1.1 + ethereum-bloom-filters@1.2.0: + dependencies: + '@noble/hashes': 1.8.0 + ethereum-cryptography@2.2.1: dependencies: '@noble/curves': 1.4.2 @@ -12985,6 +13064,11 @@ snapshots: - bufferutil - utf-8-validate + ethjs-unit@0.1.6: + dependencies: + bn.js: 4.11.6 + number-to-bn: 1.7.0 + eventemitter2@6.4.9: {} eventemitter3@5.0.1: {} @@ -13548,6 +13632,8 @@ snapshots: dependencies: is-extglob: 2.1.1 + is-hex-prefixed@1.0.0: {} + is-hexadecimal@2.0.1: {} is-number@7.0.0: {} @@ -14332,6 +14418,14 @@ snapshots: merge2@1.4.1: {} + merkletreejs@0.3.11: + dependencies: + bignumber.js: 9.3.1 + buffer-reverse: 1.0.1 + crypto-js: 4.2.0 + treeify: 1.1.0 + web3-utils: 1.10.4 + micro-ftch@0.3.1: {} micromark-core-commonmark@2.0.3: @@ -14736,6 +14830,11 @@ snapshots: dependencies: path-key: 3.1.1 + number-to-bn@1.7.0: + dependencies: + bn.js: 4.11.6 + strip-hex-prefix: 1.0.0 + nuqs@2.8.6(next@16.0.10(@babel/core@7.28.6)(@opentelemetry/api@1.9.0)(@playwright/test@1.58.2)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react@19.2.4): dependencies: '@standard-schema/spec': 1.0.0 @@ -15843,6 +15942,10 @@ snapshots: strip-final-newline@2.0.0: {} + strip-hex-prefix@1.0.0: + dependencies: + is-hex-prefixed: 1.0.0 + strip-indent@3.0.0: dependencies: min-indent: 1.0.1 @@ -16030,6 +16133,8 @@ snapshots: dependencies: punycode: 2.3.1 + treeify@1.1.0: {} + trim-lines@3.0.1: {} trough@2.2.0: {} @@ -16218,6 +16323,8 @@ snapshots: dependencies: node-gyp-build: 4.8.4 + utf8@3.0.0: {} + util-deprecate@1.0.2: {} util@0.12.5: @@ -16365,6 +16472,17 @@ snapshots: web-vitals@5.1.0: {} + web3-utils@1.10.4: + dependencies: + '@ethereumjs/util': 8.1.0 + bn.js: 5.2.2 + ethereum-bloom-filters: 1.2.0 + ethereum-cryptography: 2.2.1 + ethjs-unit: 0.1.6 + number-to-bn: 1.7.0 + randombytes: 2.1.0 + utf8: 3.0.0 + webdriver-bidi-protocol@0.2.11: {} webextension-polyfill@0.10.0: {} diff --git a/src/app/actions/clients.ts b/src/app/actions/clients.ts index 126dfb9801..b94c715e8c 100644 --- a/src/app/actions/clients.ts +++ b/src/app/actions/clients.ts @@ -47,11 +47,11 @@ export const PUBLIC_CLIENTS_BY_CHAIN: Record< paymasterUrl: string } > = { - // Arbitrum (primary wallet chain - always included) - [arbitrum.id]: { + // Primary wallet chain - always included (configurable via NEXT_PUBLIC_PEANUT_WALLET_CHAIN_ID) + [PEANUT_WALLET_CHAIN.id]: { client: createPublicClient({ - transport: getTransportWithFallback(arbitrum.id), - chain: arbitrum, + transport: getTransportWithFallback(PEANUT_WALLET_CHAIN.id as ChainId), + chain: PEANUT_WALLET_CHAIN, pollingInterval: 500, }), chain: PEANUT_WALLET_CHAIN, diff --git a/src/constants/zerodev.consts.ts b/src/constants/zerodev.consts.ts index 5e9c9b4c42..b444f5bfb3 100644 --- a/src/constants/zerodev.consts.ts +++ b/src/constants/zerodev.consts.ts @@ -1,4 +1,6 @@ import { getEntryPoint, KERNEL_V3_1 } from '@zerodev/sdk/constants' +import { extractChain } from 'viem' +import * as chains from 'viem/chains' import { arbitrum } from 'viem/chains' // consts needed to define low level SDK kernel @@ -11,12 +13,16 @@ export const PASSKEY_SERVER_URL = process.env.NEXT_PUBLIC_ZERO_DEV_PASSKEY_SERVE // as per: https://docs.zerodev.app/smart-wallet/quickstart-react export const ZERO_DEV_PROJECT_ID = process.env.NEXT_PUBLIC_ZERO_DEV_PASSKEY_PROJECT_ID -// TODO: this should be taken from a global token dict, not hardcoded here -export const PEANUT_WALLET_CHAIN = arbitrum -export const PEANUT_WALLET_TOKEN_DECIMALS = 6 // USDC decimals -export const PEANUT_WALLET_TOKEN = '0xaf88d065e77c8cc2239327c5edb3a432268e5831' // USDC Arbitrum address -export const PEANUT_WALLET_TOKEN_SYMBOL = 'USDC' -export const PEANUT_WALLET_TOKEN_NAME = 'USD Coin' +// Wallet chain & token — configurable via env for sandbox/testnet testing. +// Defaults: Arbitrum mainnet + USDC. +const walletChainId = Number(process.env.NEXT_PUBLIC_PEANUT_WALLET_CHAIN_ID || arbitrum.id) +export const PEANUT_WALLET_CHAIN = + walletChainId === arbitrum.id ? arbitrum : extractChain({ chains: Object.values(chains), id: walletChainId as any }) +export const PEANUT_WALLET_TOKEN = + process.env.NEXT_PUBLIC_PEANUT_WALLET_TOKEN || '0xaf88d065e77c8cc2239327c5edb3a432268e5831' // USDC Arbitrum +export const PEANUT_WALLET_TOKEN_DECIMALS = Number(process.env.NEXT_PUBLIC_PEANUT_WALLET_TOKEN_DECIMALS || 6) +export const PEANUT_WALLET_TOKEN_SYMBOL = process.env.NEXT_PUBLIC_PEANUT_WALLET_TOKEN_SYMBOL || 'USDC' +export const PEANUT_WALLET_TOKEN_NAME = process.env.NEXT_PUBLIC_PEANUT_WALLET_TOKEN_NAME || 'USD Coin' export const PEANUT_WALLET_TOKEN_IMG_URL = 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png' diff --git a/src/context/kernelClient.context.tsx b/src/context/kernelClient.context.tsx index 1710de8d6e..dca021bf82 100644 --- a/src/context/kernelClient.context.tsx +++ b/src/context/kernelClient.context.tsx @@ -13,6 +13,7 @@ import { type KernelAccountClient, } from '@zerodev/sdk' import { createContext, type ReactNode, useCallback, useContext, useEffect, useState, useMemo } from 'react' +import { arbitrum } from 'viem/chains' import { type Chain, http, type PublicClient, type Transport } from 'viem' import type { Address } from 'viem' import { captureException } from '@sentry/nextjs' @@ -102,16 +103,11 @@ export const createKernelClientForChain = async ( bundlerTransport: http(bundlerUrl), pollingInterval: 500, userOperation: - // for arbitrum (peanut_wallet_chain): - // use zerodev's ultra relay (docs.zerodev.app/sdk/core-api/sponsor-gas#ultrarelay). - // this requires gas fees set to 0 for optimal performance/sponsorship. - // - // for polygon (pimlico provider) & other chains: - // do not hardcode gas. allows standard gas estimation, preventing underpriced tx failures. - // note using pimlico provider, for polygon, cuz it doesnt support ultra relay yet and alchemy (default provider) fails to estimate gas. - chain.id.toString() === PEANUT_WALLET_CHAIN.id.toString() + // For Arbitrum mainnet: use ZeroDev's Ultra Relay which requires gas fees set to 0. + // https://docs.zerodev.app/sdk/core-api/sponsor-gas#ultrarelay + // Other chains (including testnets) use standard gas estimation. + chain.id === arbitrum.id ? { - // better performance: https://docs.zerodev.app/sdk/core-api/sponsor-gas#ultrarelay estimateFeesPerGas: async ({ bundlerClient: _ }) => { return { maxFeePerGas: BigInt(0), From b98f1afdd69205998ee935270c2a5419951a9125 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 12:37:43 +0530 Subject: [PATCH 024/425] fix: use POST method for get-user api call --- src/hooks/query/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/query/user.ts b/src/hooks/query/user.ts index b1bd3839b1..48cdf78390 100644 --- a/src/hooks/query/user.ts +++ b/src/hooks/query/user.ts @@ -26,7 +26,7 @@ export const useUserQuery = (dependsOn: boolean = true) => { const { user: authUser } = useUserStore() const fetchUser = async (): Promise => { - const userResponse = await apiFetch('/get-user', '/api/peanut/user/get-user-from-cookie') + const userResponse = await apiFetch('/get-user', '/api/peanut/user/get-user-from-cookie', { method: 'POST' }) if (userResponse.ok) { const userData: IUserProfile | null = await userResponse.json() if (userData) { From d6290940f2e7b3b5e9b6be51645bdc9d7240131f Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 12:41:45 +0530 Subject: [PATCH 025/425] fix: don't send content-type: json with empty body fastify parses empty string as json when content-type is set, causing SyntaxError. only set content-type when body is present. --- src/utils/api-fetch.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/utils/api-fetch.ts b/src/utils/api-fetch.ts index fe8b2f898f..4970f350fb 100644 --- a/src/utils/api-fetch.ts +++ b/src/utils/api-fetch.ts @@ -15,9 +15,14 @@ import { PEANUT_API_URL } from '@/constants/general.consts' */ export function apiFetch(backendPath: string, proxyPath: string, options?: RequestInit): Promise { const url = isCapacitor() ? `${PEANUT_API_URL}${backendPath}` : proxyPath - const defaultHeaders = isCapacitor() - ? getAuthHeaders(options?.headers as Record) - : { 'Content-Type': 'application/json', ...(options?.headers as Record) } + const extraHeaders = options?.headers as Record | undefined - return fetchWithSentry(url, { ...options, headers: defaultHeaders }) + // only set content-type when there's a body — empty body + application/json + // causes fastify to fail parsing empty string as json + const contentType = options?.body ? { 'Content-Type': 'application/json' } : {} + const headers = isCapacitor() + ? getAuthHeaders({ ...contentType, ...extraHeaders }) + : { ...contentType, ...extraHeaders } + + return fetchWithSentry(url, { ...options, headers }) } From 1302cabd78b38ef36c929f05b36fd65bec4edf0b Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 12:43:01 +0530 Subject: [PATCH 026/425] fix: send empty json body with get-user POST request android webview adds content-type: application/json to POST requests automatically. fastify then tries to parse the empty body as json. send {} as body so fastify has valid json to parse. --- src/hooks/query/user.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hooks/query/user.ts b/src/hooks/query/user.ts index 48cdf78390..00fec7528d 100644 --- a/src/hooks/query/user.ts +++ b/src/hooks/query/user.ts @@ -26,7 +26,10 @@ export const useUserQuery = (dependsOn: boolean = true) => { const { user: authUser } = useUserStore() const fetchUser = async (): Promise => { - const userResponse = await apiFetch('/get-user', '/api/peanut/user/get-user-from-cookie', { method: 'POST' }) + const userResponse = await apiFetch('/get-user', '/api/peanut/user/get-user-from-cookie', { + method: 'POST', + body: JSON.stringify({}), + }) if (userResponse.ok) { const userData: IUserProfile | null = await userResponse.json() if (userData) { From 69c467f37038ba62d07962ede0631502c51db239 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 12:47:33 +0530 Subject: [PATCH 027/425] fix: skip backend logout call in capacitor (no server route exists) the /logout-user route only exists as a next.js api route that clears the server-side cookie. in capacitor, clearLocalAuthState handles everything client-side. --- src/context/authContext.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/context/authContext.tsx b/src/context/authContext.tsx index fd0c9b1cfa..786bde2136 100644 --- a/src/context/authContext.tsx +++ b/src/context/authContext.tsx @@ -224,8 +224,10 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { setIsLoggingOut(true) try { // Call backend logout unless skipped (e.g., when backend is down) - if (!options?.skipBackendCall) { - const response = await apiFetch('/logout-user', '/api/peanut/user/logout-user', { + // in capacitor, there's no backend logout route — just clear client-side state. + // on web, the /api/ route clears the server-side cookie. + if (!options?.skipBackendCall && !isCapacitor()) { + const response = await fetchWithSentry('/api/peanut/user/logout-user', { method: 'GET', }) From 9ec79c8bd907ed78079cb3030b7096d0d766976a Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 12:49:04 +0530 Subject: [PATCH 028/425] fix: skip fetch-user after logout in capacitor (jwt already cleared) --- src/context/authContext.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/context/authContext.tsx b/src/context/authContext.tsx index 786bde2136..28553155ea 100644 --- a/src/context/authContext.tsx +++ b/src/context/authContext.tsx @@ -239,13 +239,13 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { // Clear all client-side auth state await clearLocalAuthState() - // fetch user (should return null after logout) - skip if backend call was skipped - if (!options?.skipBackendCall) { + // fetch user (should return null after logout) - skip for capacitor + // (jwt is already cleared, fetching would just 401) + if (!options?.skipBackendCall && !isCapacitor()) { await fetchUser() } // force full page refresh to /setup to clear all state - // this ensures no stale redux/react state persists after logout window.location.href = '/setup' } catch (error) { captureException(error) From b450a09f0671f61e20ca90d8bd3a75b1ce2972b7 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 12:50:11 +0530 Subject: [PATCH 029/425] fix: cancel and clear queries on logout instead of invalidating invalidateQueries triggers refetches with the cleared jwt, causing 401 errors. cancelQueries + clear stops all in-flight requests and removes cached data without triggering new fetches. --- src/context/authContext.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/context/authContext.tsx b/src/context/authContext.tsx index 28553155ea..ce783ef3ba 100644 --- a/src/context/authContext.tsx +++ b/src/context/authContext.tsx @@ -169,8 +169,9 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { // clear redirect url clearRedirectUrl() - // invalidate all queries - queryClient.invalidateQueries() + // cancel + remove all queries to prevent refetches with cleared jwt + queryClient.cancelQueries() + queryClient.clear() // reset redux state (user, setup, zerodev) dispatch(userActions.setUser(null)) From 32b219fbe45e62786e7da4d8be4fd7aedba2f056 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 12:52:26 +0530 Subject: [PATCH 030/425] fix: wrap non-critical logout operations in try-catch clearLocalAuthState had multiple operations (query clear, cache clear, crisp reset, posthog reset) that could throw in webview. now each is individually wrapped so one failure doesn't block logout. added error detail to toast for debugging. --- src/context/authContext.tsx | 43 +++++++++++++++---------------------- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/src/context/authContext.tsx b/src/context/authContext.tsx index ce783ef3ba..f200d09f45 100644 --- a/src/context/authContext.tsx +++ b/src/context/authContext.tsx @@ -170,48 +170,38 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { clearRedirectUrl() // cancel + remove all queries to prevent refetches with cleared jwt - queryClient.cancelQueries() - queryClient.clear() + try { + queryClient.cancelQueries() + queryClient.clear() + } catch (e) { + console.warn('failed to clear queries on logout:', e) + } // reset redux state (user, setup, zerodev) dispatch(userActions.setUser(null)) dispatch(setupActions.resetSetup()) dispatch(zerodevActions.resetZeroDevState()) - // Clear service worker caches to prevent user data leakage - // When User A logs out and User B logs in on the same device, cached API responses - // could expose User A's data (profile, transactions, KYC) to User B - // Only clears user-specific caches; preserves prices and external resources + // clear service worker caches (non-fatal if it fails) if ('caches' in window) { try { const cacheNames = await caches.keys() await Promise.all( cacheNames .filter((name) => USER_DATA_CACHE_PATTERNS.some((pattern) => name.includes(pattern))) - .map((name) => { - console.log('Logout: Clearing cache:', name) - return caches.delete(name) - }) + .map((name) => caches.delete(name)) ) - } catch (error) { - console.error('Failed to clear caches on logout:', error) - // Non-fatal: logout continues even if cache clearing fails + } catch (e) { + console.warn('failed to clear caches on logout:', e) } } - // clear the iOS PWA prompt session flag - if (typeof window !== 'undefined') { - sessionStorage.removeItem('hasSeenIOSPWAPromptThisSession') - } - - // Reset Crisp session to prevent session merging with next user - // This resets both main window Crisp instance and any proxy page instances - if (typeof window !== 'undefined') { - resetCrispProxySessions() - } + // clear session flags + try { sessionStorage.removeItem('hasSeenIOSPWAPromptThisSession') } catch {} - // Reset PostHog identity so next user doesn't inherit previous user's session - posthog.reset() + // reset third-party sessions (non-fatal) + try { resetCrispProxySessions() } catch (e) { console.warn('crisp reset failed:', e) } + try { posthog.reset() } catch (e) { console.warn('posthog reset failed:', e) } }, [dispatch, queryClient, user?.user.userId]) /** @@ -251,7 +241,8 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { } catch (error) { captureException(error) console.error('Error logging out user', error) - toast.error('Error logging out') + // TODO: remove debug info after native testing + toast.error(`Error logging out: ${(error as Error).message}`) } finally { setIsLoggingOut(false) } From 091342cb35fd0311ff9870ff7b9bc15ea6284182 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 12:54:13 +0530 Subject: [PATCH 031/425] fix: add missing isCapacitor import in authContext --- src/context/authContext.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/context/authContext.tsx b/src/context/authContext.tsx index f200d09f45..ce946d0e1f 100644 --- a/src/context/authContext.tsx +++ b/src/context/authContext.tsx @@ -14,6 +14,7 @@ import { } from '@/utils/general.utils' import { fetchWithSentry } from '@/utils/sentry.utils' import { apiFetch } from '@/utils/api-fetch' +import { isCapacitor } from '@/utils/capacitor' import { resetCrispProxySessions } from '@/utils/crisp' import posthog from 'posthog-js' import { useQueryClient } from '@tanstack/react-query' From 4822d3133f5af7e59b1415e61baad245ae5cb6b0 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 13:00:24 +0530 Subject: [PATCH 032/425] fix: clear jwt cookie from all domain/path variants on logout the cookie may be set by both frontend (Cookies.set) and backend (Set-Cookie header) with different domains. clear all variants to ensure logout fully removes the token. --- src/context/authContext.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/context/authContext.tsx b/src/context/authContext.tsx index ce946d0e1f..111f02ecbd 100644 --- a/src/context/authContext.tsx +++ b/src/context/authContext.tsx @@ -15,6 +15,7 @@ import { import { fetchWithSentry } from '@/utils/sentry.utils' import { apiFetch } from '@/utils/api-fetch' import { isCapacitor } from '@/utils/capacitor' +import Cookies from 'js-cookie' import { resetCrispProxySessions } from '@/utils/crisp' import posthog from 'posthog-js' import { useQueryClient } from '@tanstack/react-query' @@ -163,9 +164,13 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { // clear user preferences (webauthn key in localStorage) updateUserPreferences(user?.user.userId, { webAuthnKey: undefined }) - // clear cookies + // clear cookies — remove from all possible domain/path combos removeFromCookie(WEB_AUTHN_COOKIE_KEY) + Cookies.remove('jwt-token', { path: '/' }) + Cookies.remove('jwt-token', { path: '/', domain: window.location.hostname }) + Cookies.remove('jwt-token', { path: '/', domain: `.${window.location.hostname}` }) document.cookie = 'jwt-token=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;' + document.cookie = `jwt-token=; path=/; domain=${window.location.hostname}; expires=Thu, 01 Jan 1970 00:00:01 GMT;` // clear redirect url clearRedirectUrl() From 02d529a685d3505d43e17bc9832d6f4cb91f7f33 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 13:04:35 +0530 Subject: [PATCH 033/425] fix: clear native cookie store on logout in capacitor android webview CookieManager persists cookies to disk natively. clearing document.cookie in js doesn't clear the native store, so cookies survive app restart. use CapacitorCookies.clearAllCookies() from @capacitor/core to clear at the native level. --- src/context/authContext.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/context/authContext.tsx b/src/context/authContext.tsx index 111f02ecbd..a1abcf2315 100644 --- a/src/context/authContext.tsx +++ b/src/context/authContext.tsx @@ -16,6 +16,7 @@ import { fetchWithSentry } from '@/utils/sentry.utils' import { apiFetch } from '@/utils/api-fetch' import { isCapacitor } from '@/utils/capacitor' import Cookies from 'js-cookie' +import { CapacitorCookies } from '@capacitor/core' import { resetCrispProxySessions } from '@/utils/crisp' import posthog from 'posthog-js' import { useQueryClient } from '@tanstack/react-query' @@ -164,13 +165,20 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { // clear user preferences (webauthn key in localStorage) updateUserPreferences(user?.user.userId, { webAuthnKey: undefined }) - // clear cookies — remove from all possible domain/path combos + // clear cookies — js-level clear for web, native clear for capacitor removeFromCookie(WEB_AUTHN_COOKIE_KEY) Cookies.remove('jwt-token', { path: '/' }) - Cookies.remove('jwt-token', { path: '/', domain: window.location.hostname }) - Cookies.remove('jwt-token', { path: '/', domain: `.${window.location.hostname}` }) document.cookie = 'jwt-token=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;' - document.cookie = `jwt-token=; path=/; domain=${window.location.hostname}; expires=Thu, 01 Jan 1970 00:00:01 GMT;` + + // in capacitor, the android CookieManager persists cookies to disk natively. + // document.cookie clearing doesn't clear the native store which survives app restarts. + if (isCapacitor()) { + try { + await CapacitorCookies.clearAllCookies() + } catch (e) { + console.warn('failed to clear native cookies:', e) + } + } // clear redirect url clearRedirectUrl() From 647c1e133675d335848f32d5ec360375f0163a84 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 13:10:19 +0530 Subject: [PATCH 034/425] feat: store jwt in localStorage for capacitor (not cookies) per plan docs: cookies don't work reliably in webview (native CookieManager persists across restarts, domain/path issues). - getAuthToken reads from localStorage in capacitor, cookie on web - setAuthToken/clearAuthToken handle storage per platform - nativeRegister/Login save token via setAuthToken - logout clears via clearAuthToken (localStorage.removeItem) - removed CapacitorCookies dependency --- src/context/authContext.tsx | 34 +++++++++++++-------------- src/utils/api-fetch.ts | 25 ++++++++++---------- src/utils/auth-token.ts | 45 +++++++++++++++++++++++++++++++----- src/utils/native-webauthn.ts | 6 ++--- 4 files changed, 71 insertions(+), 39 deletions(-) diff --git a/src/context/authContext.tsx b/src/context/authContext.tsx index a1abcf2315..001f9f5639 100644 --- a/src/context/authContext.tsx +++ b/src/context/authContext.tsx @@ -15,8 +15,7 @@ import { import { fetchWithSentry } from '@/utils/sentry.utils' import { apiFetch } from '@/utils/api-fetch' import { isCapacitor } from '@/utils/capacitor' -import Cookies from 'js-cookie' -import { CapacitorCookies } from '@capacitor/core' +import { clearAuthToken } from '@/utils/auth-token' import { resetCrispProxySessions } from '@/utils/crisp' import posthog from 'posthog-js' import { useQueryClient } from '@tanstack/react-query' @@ -165,20 +164,9 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { // clear user preferences (webauthn key in localStorage) updateUserPreferences(user?.user.userId, { webAuthnKey: undefined }) - // clear cookies — js-level clear for web, native clear for capacitor + // clear auth tokens (localStorage in capacitor, cookie on web) removeFromCookie(WEB_AUTHN_COOKIE_KEY) - Cookies.remove('jwt-token', { path: '/' }) - document.cookie = 'jwt-token=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;' - - // in capacitor, the android CookieManager persists cookies to disk natively. - // document.cookie clearing doesn't clear the native store which survives app restarts. - if (isCapacitor()) { - try { - await CapacitorCookies.clearAllCookies() - } catch (e) { - console.warn('failed to clear native cookies:', e) - } - } + clearAuthToken() // clear redirect url clearRedirectUrl() @@ -211,11 +199,21 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { } // clear session flags - try { sessionStorage.removeItem('hasSeenIOSPWAPromptThisSession') } catch {} + try { + sessionStorage.removeItem('hasSeenIOSPWAPromptThisSession') + } catch {} // reset third-party sessions (non-fatal) - try { resetCrispProxySessions() } catch (e) { console.warn('crisp reset failed:', e) } - try { posthog.reset() } catch (e) { console.warn('posthog reset failed:', e) } + try { + resetCrispProxySessions() + } catch (e) { + console.warn('crisp reset failed:', e) + } + try { + posthog.reset() + } catch (e) { + console.warn('posthog reset failed:', e) + } }, [dispatch, queryClient, user?.user.userId]) /** diff --git a/src/utils/api-fetch.ts b/src/utils/api-fetch.ts index 4970f350fb..daef38ca27 100644 --- a/src/utils/api-fetch.ts +++ b/src/utils/api-fetch.ts @@ -1,5 +1,4 @@ // unified api fetch that handles capacitor vs web branching in one place. -// replaces the isCapacitor() ? directUrl : proxyUrl pattern that was repeated 8+ times. import { isCapacitor } from './capacitor' import { getAuthHeaders } from './auth-token' @@ -8,21 +7,23 @@ import { PEANUT_API_URL } from '@/constants/general.consts' /** * makes an api call that works in both web (via next.js proxy) and capacitor (direct backend). - * - * @param backendPath - the backend endpoint path (e.g. '/get-user', '/bridge/onramp/create') - * @param proxyPath - the next.js proxy path (e.g. '/api/peanut/user/get-user-from-cookie') - * @param options - fetch options (method, body, extra headers) */ export function apiFetch(backendPath: string, proxyPath: string, options?: RequestInit): Promise { const url = isCapacitor() ? `${PEANUT_API_URL}${backendPath}` : proxyPath - const extraHeaders = options?.headers as Record | undefined + const extraHeaders = (options?.headers as Record) ?? {} - // only set content-type when there's a body — empty body + application/json - // causes fastify to fail parsing empty string as json - const contentType = options?.body ? { 'Content-Type': 'application/json' } : {} - const headers = isCapacitor() - ? getAuthHeaders({ ...contentType, ...extraHeaders }) - : { ...contentType, ...extraHeaders } + const headers: Record = {} + + // only set content-type when there's a body + if (options?.body) { + headers['Content-Type'] = 'application/json' + } + + if (isCapacitor()) { + Object.assign(headers, getAuthHeaders(extraHeaders)) + } else { + Object.assign(headers, extraHeaders) + } return fetchWithSentry(url, { ...options, headers }) } diff --git a/src/utils/auth-token.ts b/src/utils/auth-token.ts index 7d3cf69c70..113b809b1f 100644 --- a/src/utils/auth-token.ts +++ b/src/utils/auth-token.ts @@ -1,25 +1,58 @@ // client-side jwt token management for both web and capacitor native app +// web: reads/writes from cookies (existing behavior) +// capacitor: reads/writes from localStorage (cookies don't work reliably in webview) import Cookies from 'js-cookie' +import { isCapacitor } from './capacitor' const JWT_COOKIE_KEY = 'jwt-token' +const JWT_STORAGE_KEY = 'jwt-token' /** - * reads the jwt token from client-side cookie storage. - * uses js-cookie (same library used by 40+ existing call sites in the codebase). + * reads the jwt token. + * capacitor: from localStorage (reliable, no native CookieManager issues) + * web: from cookie via js-cookie (existing 40+ call sites use this) */ export function getAuthToken(): string | null { + if (isCapacitor()) { + return localStorage.getItem(JWT_STORAGE_KEY) + } return Cookies.get(JWT_COOKIE_KEY) ?? null } +/** + * stores the jwt token. + * capacitor: in localStorage + * web: in cookie (for backward compat with existing code) + */ +export function setAuthToken(token: string): void { + if (isCapacitor()) { + localStorage.setItem(JWT_STORAGE_KEY, token) + } else { + Cookies.set(JWT_COOKIE_KEY, token, { expires: 30, path: '/' }) + } +} + +/** + * clears the jwt token. + * capacitor: removes from localStorage (reliable, no domain/path issues) + * web: removes cookie + */ +export function clearAuthToken(): void { + if (isCapacitor()) { + localStorage.removeItem(JWT_STORAGE_KEY) + } + // always clear cookie too in case it was set by backend Set-Cookie header + Cookies.remove(JWT_COOKIE_KEY, { path: '/' }) + document.cookie = 'jwt-token=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;' +} + /** * builds headers for authenticated api calls. - * includes Authorization bearer token and content-type. + * includes Authorization bearer token. */ export function getAuthHeaders(extraHeaders?: Record): Record { - const headers: Record = { - 'Content-Type': 'application/json', - } + const headers: Record = {} const token = getAuthToken() if (token) { diff --git a/src/utils/native-webauthn.ts b/src/utils/native-webauthn.ts index e86f0e2151..40917bdda7 100644 --- a/src/utils/native-webauthn.ts +++ b/src/utils/native-webauthn.ts @@ -6,7 +6,7 @@ import { bytesToBigInt, hexToBytes } from 'viem' // @ts-ignore -- @noble/curves/p256 requires pinning to v1.9.7 (v2 removed this export) import { p256 } from '@noble/curves/p256' import { registerPlugin } from '@capacitor/core' -import Cookies from 'js-cookie' +import { setAuthToken } from './auth-token' // register the webauthn plugin bridge — the native code is loaded by capacitor runtime, // this just creates the js-to-native communication channel @@ -200,7 +200,7 @@ export async function nativeRegister(params: { // save jwt token from response body (Set-Cookie doesn't work cross-origin in static export) if (verifyResult.token) { - Cookies.set('jwt-token', verifyResult.token, { expires: 30, path: '/' }) + setAuthToken(verifyResult.token) } // 4. parse public key and build WebAuthnKey @@ -259,7 +259,7 @@ export async function nativeLogin(params: { // save jwt token from response body (Set-Cookie doesn't work cross-origin in static export) if (verifyResult.token) { - Cookies.set('jwt-token', verifyResult.token, { expires: 30, path: '/' }) + setAuthToken(verifyResult.token) } // 4. parse public key from server response From aa38f80ea5d33692fe33d46165c9ead3abc23433 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 13:21:47 +0530 Subject: [PATCH 035/425] fix: migrate jwt from cookie to localStorage on first read --- src/utils/auth-token.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/utils/auth-token.ts b/src/utils/auth-token.ts index 113b809b1f..61ae31d265 100644 --- a/src/utils/auth-token.ts +++ b/src/utils/auth-token.ts @@ -10,12 +10,21 @@ const JWT_STORAGE_KEY = 'jwt-token' /** * reads the jwt token. - * capacitor: from localStorage (reliable, no native CookieManager issues) + * capacitor: from localStorage, with cookie fallback for migration * web: from cookie via js-cookie (existing 40+ call sites use this) */ export function getAuthToken(): string | null { if (isCapacitor()) { - return localStorage.getItem(JWT_STORAGE_KEY) + const stored = localStorage.getItem(JWT_STORAGE_KEY) + if (stored) return stored + + // migration: token may be in cookie from previous code version + const fromCookie = Cookies.get(JWT_COOKIE_KEY) + if (fromCookie) { + localStorage.setItem(JWT_STORAGE_KEY, fromCookie) + return fromCookie + } + return null } return Cookies.get(JWT_COOKIE_KEY) ?? null } From 63d8d7be1e89b2c5fc941b431e5333c31901fe0f Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 13:31:43 +0530 Subject: [PATCH 036/425] fix: re-attach native signing callback when restoring webauthn key signMessageCallback is a function that can't survive json serialization to cookie/localStorage. when the key is restored on app load, re-attach createNativeSignMessageCallback on android so zerodev uses the capacitor plugin for transaction signing. --- src/context/kernelClient.context.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/context/kernelClient.context.tsx b/src/context/kernelClient.context.tsx index 1710de8d6e..883f378918 100644 --- a/src/context/kernelClient.context.tsx +++ b/src/context/kernelClient.context.tsx @@ -5,6 +5,8 @@ import { createKernelMigrationAccount } from '@zerodev/sdk/accounts' import { useAppDispatch } from '@/redux/hooks' import { zerodevActions } from '@/redux/slices/zerodev-slice' import { getFromCookie, updateUserPreferences, getUserPreferences } from '@/utils/general.utils' +import { isAndroidNative } from '@/utils/capacitor' +import { createNativeSignMessageCallback } from '@/utils/native-webauthn' import { PasskeyValidatorContractVersion, toPasskeyValidator, toWebAuthnKey } from '@zerodev/passkey-validator' import { createKernelAccount, @@ -172,6 +174,13 @@ export const KernelClientProvider = ({ children }: { children: ReactNode }) => { const userPreferences = getUserPreferences(user.user.userId) const storedWebAuthnKey = userPreferences?.webAuthnKey ?? getFromCookie(WEB_AUTHN_COOKIE_KEY) if (storedWebAuthnKey) { + // re-attach the native signing callback — functions can't be serialized to + // cookie/localStorage, so it's lost on restore. without it, zerodev falls + // back to browser WebAuthn which doesn't work in android webview. + if (isAndroidNative() && !storedWebAuthnKey.signMessageCallback) { + const rpId = storedWebAuthnKey.rpID || 'peanutdev.site' + storedWebAuthnKey.signMessageCallback = createNativeSignMessageCallback(rpId) + } // Only update if the key actually changed to avoid re-triggering kernel client init // Note: WebAuthnKey contains BigInt fields (pubX, pubY) which JSON.stringify cannot handle, // so we use a custom replacer that converts BigInts to strings for comparison purposes. From bfe7b086529b2891ca2859507bd548efb9e6f8d5 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 13:58:34 +0530 Subject: [PATCH 037/425] fix: correct backend paths for apiFetch calls - validate-bank-account-number: removed /iban/ prefix (backend path has no prefix) - validate-bic: changed to /is-valid-bic (actual backend route name) - exchange-rate: no backend route exists, use getCurrencyPrice + frankfurter directly in capacitor (same logic as the next.js api route) --- src/hooks/useExchangeRate.ts | 27 ++++++++++++++++++++++----- src/utils/bridge-accounts.utils.ts | 14 +++++--------- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/src/hooks/useExchangeRate.ts b/src/hooks/useExchangeRate.ts index 3fba9e0634..fef5ba0002 100644 --- a/src/hooks/useExchangeRate.ts +++ b/src/hooks/useExchangeRate.ts @@ -1,7 +1,8 @@ import { useState, useEffect, useCallback } from 'react' import { useDebounce } from './useDebounce' import { useQuery } from '@tanstack/react-query' -import { apiFetch } from '@/utils/api-fetch' +import { isCapacitor } from '@/utils/capacitor' +import { getCurrencyPrice } from '@/app/actions/currency' type InputValue = number | '' @@ -85,10 +86,26 @@ export function useExchangeRate({ } = useQuery<{ rate: number }>({ queryKey: ['exchangeRate', sourceCurrency, destinationCurrency], queryFn: async () => { - const res = await apiFetch( - `/exchange-rate?from=${sourceCurrency}&to=${destinationCurrency}`, - `/api/exchange-rate?from=${sourceCurrency}&to=${destinationCurrency}` - ) + if (isCapacitor()) { + // in capacitor, no /api/ route exists. use getCurrencyPrice (client-side) + // and frankfurter as fallback — same logic as the next.js api route + const from = sourceCurrency.toUpperCase() + const to = destinationCurrency.toUpperCase() + if (from === to) return { rate: 1 } + try { + const price = await getCurrencyPrice(from === 'USD' ? to : from) + const rate = from === 'USD' ? price.sell : 1 / price.buy + if (isFinite(rate) && rate > 0) return { rate } + } catch {} + // fallback to frankfurter (public api) + const res = await fetch(`https://api.frankfurter.app/latest?from=${from}&to=${to}`) + if (res.ok) { + const data = await res.json() + return { rate: data.rates[to] * 0.995 } + } + throw new Error('Failed to fetch exchange rate') + } + const res = await fetch(`/api/exchange-rate?from=${sourceCurrency}&to=${destinationCurrency}`) if (!res.ok) throw new Error('Failed to fetch exchange rate') return res.json() }, diff --git a/src/utils/bridge-accounts.utils.ts b/src/utils/bridge-accounts.utils.ts index 352e3b36af..5da9d60591 100644 --- a/src/utils/bridge-accounts.utils.ts +++ b/src/utils/bridge-accounts.utils.ts @@ -56,14 +56,10 @@ export function getBridgeChainName(chainId: string): string | undefined { export async function validateBankAccount(bankAccount: string): Promise { const bankAccountNumber = bankAccount.replace(/\s/g, '') - const response = await apiFetch( - '/iban/validate-bank-account-number', - '/api/peanut/iban/validate-bank-account-number', - { - method: 'POST', - body: JSON.stringify({ bankAccountNumber }), - } - ) + const response = await apiFetch('/validate-bank-account-number', '/api/peanut/iban/validate-bank-account-number', { + method: 'POST', + body: JSON.stringify({ bankAccountNumber }), + }) if (response.status !== 200) { return false @@ -73,7 +69,7 @@ export async function validateBankAccount(bankAccount: string): Promise } export async function validateBic(bic: string): Promise { - const response = await apiFetch('/iban/validate-bic', '/api/peanut/iban/validate-bic', { + const response = await apiFetch('/is-valid-bic', '/api/peanut/iban/validate-bic', { method: 'POST', body: JSON.stringify({ bic }), }) From c2d06b87c8065d7a3ad2f6b9fbd7d4ea26f63b9d Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 14:37:48 +0530 Subject: [PATCH 038/425] feat: migrate all 43 Cookies.get jwt-token calls to getAuthToken getAuthToken reads from localStorage in capacitor (where cookies don't persist reliably) and from cookies on web. without this, all authenticated api calls in services/hooks would fail in the native app. affected: 17 files across services, hooks, and utils --- src/app/(mobile-ui)/qr/[code]/page.tsx | 4 ++-- src/hooks/useLimits.ts | 4 ++-- src/hooks/useTransactionHistory.ts | 4 ++-- src/services/invites.ts | 10 +++++----- src/services/manteca.ts | 21 ++++++++++----------- src/services/notifications.ts | 8 ++++---- src/services/perks.ts | 6 +++--- src/services/points.ts | 12 ++++++------ src/services/quests.ts | 6 +++--- src/services/requests.ts | 8 ++++---- src/services/rewards.ts | 4 ++-- src/services/rhino.ts | 6 +++--- src/services/sendLinks.ts | 8 ++++---- src/services/simplefi.ts | 4 ++-- src/services/users.ts | 6 +++--- src/utils/backendTransport.ts | 8 ++++---- src/utils/metrics.utils.ts | 4 ++-- 17 files changed, 61 insertions(+), 62 deletions(-) diff --git a/src/app/(mobile-ui)/qr/[code]/page.tsx b/src/app/(mobile-ui)/qr/[code]/page.tsx index ec6994235e..c19439c4fa 100644 --- a/src/app/(mobile-ui)/qr/[code]/page.tsx +++ b/src/app/(mobile-ui)/qr/[code]/page.tsx @@ -1,5 +1,6 @@ 'use client' +import { getAuthToken } from '@/utils/auth-token' import { Button } from '@/components/0_Bruddle/Button' import Card from '@/components/Global/Card' import NavHeader from '@/components/Global/NavHeader' @@ -12,7 +13,6 @@ import ErrorAlert from '@/components/Global/ErrorAlert' import { Icon } from '@/components/Global/Icons/Icon' import { saveRedirectUrl, generateInviteCodeLink, sanitizeRedirectURL } from '@/utils/general.utils' import { getShakeClass } from '@/utils/perk.utils' -import Cookies from 'js-cookie' import { useRedirectQrStatus } from '@/hooks/useRedirectQrStatus' import { useHoldToClaim } from '@/hooks/useHoldToClaim' @@ -91,7 +91,7 @@ export default function RedirectQrClaimPage() { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: JSON.stringify({ targetUrl: inviteLink, // Pass the correctly formatted invite link diff --git a/src/hooks/useLimits.ts b/src/hooks/useLimits.ts index f6b6525416..cb79ffd712 100644 --- a/src/hooks/useLimits.ts +++ b/src/hooks/useLimits.ts @@ -1,7 +1,7 @@ 'use client' +import { getAuthToken } from '@/utils/auth-token' import { useQuery } from '@tanstack/react-query' -import Cookies from 'js-cookie' import { fetchWithSentry } from '@/utils/sentry.utils' import { PEANUT_API_URL } from '@/constants/general.consts' import type { UserLimitsResponse } from '@/interfaces' @@ -20,7 +20,7 @@ export function useLimits(options: UseLimitsOptions = {}) { const { enabled = true } = options const fetchLimits = async (): Promise => { - const token = Cookies.get('jwt-token') + const token = getAuthToken() if (!token) { return { manteca: null, bridge: null } } diff --git a/src/hooks/useTransactionHistory.ts b/src/hooks/useTransactionHistory.ts index 1dde0a5668..a27235c66d 100644 --- a/src/hooks/useTransactionHistory.ts +++ b/src/hooks/useTransactionHistory.ts @@ -1,8 +1,8 @@ +import { getAuthToken } from '@/utils/auth-token' import { TRANSACTIONS } from '@/constants/query.consts' import { fetchWithSentry } from '@/utils/sentry.utils' import type { InfiniteData, InfiniteQueryObserverResult, QueryObserverResult } from '@tanstack/react-query' import { useInfiniteQuery, useQuery } from '@tanstack/react-query' -import Cookies from 'js-cookie' import { completeHistoryEntry } from '@/utils/history.utils' import type { HistoryEntry } from '@/utils/history.utils' import { PEANUT_API_URL } from '@/constants/general.consts' @@ -67,7 +67,7 @@ export function useTransactionHistory({ const headers: Record = { 'Content-Type': 'application/json', } - headers['Authorization'] = `Bearer ${Cookies.get('jwt-token')}` + headers['Authorization'] = `Bearer ${getAuthToken()}` const response = await fetchWithSentry(url, { method: 'GET', headers }) if (!response.ok) { diff --git a/src/services/invites.ts b/src/services/invites.ts index 6f069db519..b1ae285a28 100644 --- a/src/services/invites.ts +++ b/src/services/invites.ts @@ -1,6 +1,6 @@ +import { getAuthToken } from '@/utils/auth-token' import { validateInviteCode } from '@/app/actions/invites' import { fetchWithSentry } from '@/utils/sentry.utils' -import Cookies from 'js-cookie' import { EInviteType, type PointsInvitesResponse } from './services.types' import { PEANUT_API_URL } from '@/constants/general.consts' @@ -11,7 +11,7 @@ export const invitesApi = { campaignTag?: string ): Promise<{ success: boolean }> => { try { - const jwtToken = Cookies.get('jwt-token') + const jwtToken = getAuthToken() const response = await fetchWithSentry(`${PEANUT_API_URL}/invites/accept`, { method: 'POST', headers: { @@ -31,7 +31,7 @@ export const invitesApi = { getInvites: async (): Promise => { try { - const jwtToken = Cookies.get('jwt-token') + const jwtToken = getAuthToken() if (!jwtToken) { throw new Error('No JWT token found') } @@ -69,7 +69,7 @@ export const invitesApi = { getWaitlistQueuePosition: async (): Promise<{ success: boolean; position: number }> => { try { - const token = Cookies.get('jwt-token') + const token = getAuthToken() if (!token) return { success: false, position: 0 } const response = await fetchWithSentry(`${PEANUT_API_URL}/invites/waitlist-position`, { @@ -96,7 +96,7 @@ export const invitesApi = { const response = await fetchWithSentry(`${PEANUT_API_URL}/badge/award`, { method: 'POST', headers: { - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ campaignTag }), diff --git a/src/services/manteca.ts b/src/services/manteca.ts index f2a790764e..e204c7c157 100644 --- a/src/services/manteca.ts +++ b/src/services/manteca.ts @@ -1,5 +1,5 @@ import { PEANUT_API_URL } from '@/constants/general.consts' -import { getAuthHeaders } from '@/utils/auth-token' +import { getAuthHeaders, getAuthToken } from '@/utils/auth-token' import { type MantecaDepositResponseData, type MantecaWithdrawData, @@ -8,7 +8,6 @@ import { } from '@/types/manteca.types' import { fetchWithSentry } from '@/utils/sentry.utils' import { jsonStringify } from '@/utils/general.utils' -import Cookies from 'js-cookie' import type { Address } from 'viem' import type { SignUserOperationReturnType } from '@zerodev/sdk/actions' @@ -119,7 +118,7 @@ export const mantecaApi = { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: jsonStringify(data), }) @@ -179,7 +178,7 @@ export const mantecaApi = { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: jsonStringify({ paymentLockCode, @@ -209,7 +208,7 @@ export const mantecaApi = { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: jsonStringify({ mantecaTransferId }), }) @@ -242,7 +241,7 @@ export const mantecaApi = { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: jsonStringify(params), }) @@ -263,7 +262,7 @@ export const mantecaApi = { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: jsonStringify({ amount: params.amount, @@ -296,7 +295,7 @@ export const mantecaApi = { const response = await fetchWithSentry(`${PEANUT_API_URL}/manteca/deposit/${depositId}/cancel`, { method: 'PATCH', headers: { - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, }) @@ -324,7 +323,7 @@ export const mantecaApi = { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: jsonStringify(data), }) @@ -362,7 +361,7 @@ export const mantecaApi = { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: jsonStringify(params), }) @@ -420,7 +419,7 @@ export const mantecaApi = { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: jsonStringify(params), }) diff --git a/src/services/notifications.ts b/src/services/notifications.ts index 604d28b12f..0fb3c0b828 100644 --- a/src/services/notifications.ts +++ b/src/services/notifications.ts @@ -1,4 +1,4 @@ -import Cookies from 'js-cookie' +import { getAuthToken } from '@/utils/auth-token' import { PEANUT_API_URL } from '@/constants/general.consts' export type InAppItem = { @@ -26,7 +26,7 @@ export const notificationsApi = { if (cursor) search.set('cursor', cursor) if (category) search.set('category', category) - const token = Cookies.get('jwt-token') + const token = getAuthToken() const url = `${PEANUT_API_URL}/notifications?${search.toString()}` try { @@ -47,7 +47,7 @@ export const notificationsApi = { const response = await fetch(`${PEANUT_API_URL}/notifications/unread-count`, { headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, }) if (!response.ok) throw new Error('failed to fetch unread count') @@ -59,7 +59,7 @@ export const notificationsApi = { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: JSON.stringify({ ids }), }) diff --git a/src/services/perks.ts b/src/services/perks.ts index e8ab84faef..1eb5e2bb2e 100644 --- a/src/services/perks.ts +++ b/src/services/perks.ts @@ -1,4 +1,4 @@ -import Cookies from 'js-cookie' +import { getAuthToken } from '@/utils/auth-token' import { fetchWithSentry } from '@/utils/sentry.utils' import { PEANUT_API_URL } from '@/constants/general.consts' @@ -37,7 +37,7 @@ export const perksApi = { */ getPendingPerks: async (): Promise => { try { - const jwtToken = Cookies.get('jwt-token') + const jwtToken = getAuthToken() if (!jwtToken) { console.error('getPendingPerks: No JWT token found') return { success: false, perks: [], error: 'Not authenticated' } @@ -69,7 +69,7 @@ export const perksApi = { */ claimPerk: async (usageId: string): Promise => { try { - const jwtToken = Cookies.get('jwt-token') + const jwtToken = getAuthToken() if (!jwtToken) { console.error('claimPerk: No JWT token found') return { success: false, error: 'NOT_AUTHENTICATED', message: 'Not authenticated' } diff --git a/src/services/points.ts b/src/services/points.ts index 6fbb3b950b..3fdd23b7c9 100644 --- a/src/services/points.ts +++ b/src/services/points.ts @@ -1,4 +1,4 @@ -import Cookies from 'js-cookie' +import { getAuthToken } from '@/utils/auth-token' import { type CalculatePointsRequest, PointsAction, type TierInfo } from './services.types' import { fetchWithSentry } from '@/utils/sentry.utils' import { PEANUT_API_URL } from '@/constants/general.consts' @@ -123,7 +123,7 @@ async function fetchInvitesGraph( ): Promise { try { // Get JWT token for user authentication (optional in payment mode) - const jwtToken = Cookies.get('jwt-token') + const jwtToken = getAuthToken() if (requiresAuth && !jwtToken) { console.error('getInvitesGraph: No JWT token found') return { success: false, data: null, error: 'Not authenticated. Please log in.' } @@ -178,7 +178,7 @@ async function fetchInvitesGraph( export const pointsApi = { getTierInfo: async (): Promise<{ success: boolean; data: TierInfo | null }> => { try { - const jwtToken = Cookies.get('jwt-token') + const jwtToken = getAuthToken() if (!jwtToken) { console.error('getTierInfo: No JWT token found') return { success: false, data: null } @@ -210,7 +210,7 @@ export const pointsApi = { otherUserId, }: CalculatePointsRequest): Promise<{ estimatedPoints: number }> => { try { - const jwtToken = Cookies.get('jwt-token') + const jwtToken = getAuthToken() if (!jwtToken) { const error = new Error('No JWT token found') @@ -361,7 +361,7 @@ export const pointsApi = { } | null }> => { try { - const jwtToken = Cookies.get('jwt-token') + const jwtToken = getAuthToken() if (!jwtToken) { console.error('getCashStatus: No JWT token found') return { success: false, data: null } @@ -399,7 +399,7 @@ export const pointsApi = { } ): Promise => { try { - const jwtToken = Cookies.get('jwt-token') + const jwtToken = getAuthToken() // Payment mode uses password auth, full mode requires JWT const isPaymentMode = options?.mode === 'payment' if (!isPaymentMode && !jwtToken) { diff --git a/src/services/quests.ts b/src/services/quests.ts index 431d771372..5fdb547dd5 100644 --- a/src/services/quests.ts +++ b/src/services/quests.ts @@ -3,7 +3,7 @@ * Handles all quest-related API calls */ -import Cookies from 'js-cookie' +import { getAuthToken } from '@/utils/auth-token' import { fetchWithSentry } from '@/utils/sentry.utils' import type { QuestLeaderboardData, AllQuestsLeaderboardData } from '@/app/quests/types' import { PEANUT_API_URL } from '@/constants/general.consts' @@ -19,7 +19,7 @@ export const questsApi = { error?: string }> { try { - const jwtToken = Cookies.get('jwt-token') + const jwtToken = getAuthToken() const limit = params?.limit || 3 const useTestTimePeriod = params?.useTestTimePeriod ? 'true' : 'false' const url = `${PEANUT_API_URL}/quests/leaderboards?limit=${limit}&useTestTimePeriod=${useTestTimePeriod}` @@ -65,7 +65,7 @@ export const questsApi = { error?: string }> { try { - const jwtToken = Cookies.get('jwt-token') + const jwtToken = getAuthToken() const limit = params?.limit || 10 const useTestTimePeriod = params?.useTestTimePeriod ? 'true' : 'false' const url = `${PEANUT_API_URL}/quests/${questId}/leaderboard?limit=${limit}&useTestTimePeriod=${useTestTimePeriod}` diff --git a/src/services/requests.ts b/src/services/requests.ts index 75d9081803..d0e49f68f0 100644 --- a/src/services/requests.ts +++ b/src/services/requests.ts @@ -1,12 +1,12 @@ +import { getAuthToken } from '@/utils/auth-token' import { type CreateRequestRequest, type TRequestResponse } from './services.types' import { fetchWithSentry } from '@/utils/sentry.utils' import { jsonStringify } from '@/utils/general.utils' -import Cookies from 'js-cookie' import { PEANUT_API_URL } from '@/constants/general.consts' export const requestsApi = { create: async (data: CreateRequestRequest): Promise => { - const token = Cookies.get('jwt-token') + const token = getAuthToken() if (!token) { throw new Error('Authentication token not found. Please log in again.') } @@ -39,7 +39,7 @@ export const requestsApi = { }, update: async (id: string, data: Partial): Promise => { - const token = Cookies.get('jwt-token') + const token = getAuthToken() if (!token) { throw new Error('Authentication token not found. Please log in again.') } @@ -89,7 +89,7 @@ export const requestsApi = { }, close: async (uuid: string): Promise => { - const token = Cookies.get('jwt-token') + const token = getAuthToken() if (!token) { throw new Error('Authentication token not found. Please log in again.') } diff --git a/src/services/rewards.ts b/src/services/rewards.ts index 8c1868c09f..d45d57156e 100644 --- a/src/services/rewards.ts +++ b/src/services/rewards.ts @@ -1,6 +1,6 @@ +import { getAuthToken } from '@/utils/auth-token' import { fetchWithSentry } from '@/utils/sentry.utils' import { type RewardLink } from './services.types' -import Cookies from 'js-cookie' import { PEANUT_API_URL } from '@/constants/general.consts' export const rewardsApi = { @@ -9,7 +9,7 @@ export const rewardsApi = { method: 'GET', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, }) if (!response.ok) { diff --git a/src/services/rhino.ts b/src/services/rhino.ts index 773652f16c..ed72460f88 100644 --- a/src/services/rhino.ts +++ b/src/services/rhino.ts @@ -1,6 +1,6 @@ +import { getAuthToken } from '@/utils/auth-token' import type { CreateDepositAddressResponse, DepositAddressStatusResponse, RhinoChainType } from './services.types' import { PEANUT_API_URL } from '@/constants/general.consts' -import Cookies from 'js-cookie' export const rhinoApi = { createDepositAddress: async ( @@ -8,7 +8,7 @@ export const rhinoApi = { chainType: RhinoChainType, identifier: string ): Promise => { - const token = Cookies.get('jwt-token') + const token = getAuthToken() if (!token) { throw new Error('Authentication required') } @@ -45,7 +45,7 @@ export const rhinoApi = { }, resetDepositAddressStatus: async (depositAddress: string): Promise => { - const token = Cookies.get('jwt-token') + const token = getAuthToken() if (!token) { throw new Error('Authentication required') } diff --git a/src/services/sendLinks.ts b/src/services/sendLinks.ts index 38150e1126..5d46cc1254 100644 --- a/src/services/sendLinks.ts +++ b/src/services/sendLinks.ts @@ -1,8 +1,8 @@ // Removed claimSendLink import - no longer used (was insecure) +import { getAuthToken } from '@/utils/auth-token' import { fetchWithSentry } from '@/utils/sentry.utils' import { jsonParse, jsonStringify } from '@/utils/general.utils' import { generateKeysFromString, getParamsFromLink } from '@squirrel-labs/peanut-sdk' -import Cookies from 'js-cookie' import type { SendLink } from '@/services/services.types' import { PEANUT_API_URL } from '@/constants/general.consts' @@ -40,7 +40,7 @@ export const sendLinksApi = { create: async (sendLink: CreateLinkBody): Promise => { let requestBody: FormData | string const headers: HeadersInit = { - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, } // check if attachment is a File or Blob object @@ -106,7 +106,7 @@ export const sendLinksApi = { method: 'PATCH', body: jsonStringify(sendLink), headers: { - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, 'Content-Type': 'application/json', }, }) @@ -182,7 +182,7 @@ export const sendLinksApi = { const response = await fetchWithSentry(`${PEANUT_API_URL}/send-links/claim/${txHash}/associate-user`, { method: 'PATCH', headers: { - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, }) diff --git a/src/services/simplefi.ts b/src/services/simplefi.ts index 3c0eed0af5..355a9ac355 100644 --- a/src/services/simplefi.ts +++ b/src/services/simplefi.ts @@ -1,5 +1,5 @@ +import { getAuthToken } from '@/utils/auth-token' import { fetchWithSentry } from '@/utils/sentry.utils' -import Cookies from 'js-cookie' import type { Address } from 'viem' import { PEANUT_API_URL } from '@/constants/general.consts' @@ -56,7 +56,7 @@ export const simplefiApi = { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: JSON.stringify(data), }) diff --git a/src/services/users.ts b/src/services/users.ts index 824acd885b..e37ecd43a2 100644 --- a/src/services/users.ts +++ b/src/services/users.ts @@ -1,3 +1,4 @@ +import { getAuthToken } from '@/utils/auth-token' import { PEANUT_WALLET_CHAIN, PEANUT_WALLET_TOKEN, @@ -10,7 +11,6 @@ import { fetchWithSentry } from '@/utils/sentry.utils' import { interfaces as peanutInterfaces } from '@squirrel-labs/peanut-sdk' import { chargesApi } from './charges' import { type TCharge } from './services.types' -import Cookies from 'js-cookie' import { PEANUT_API_URL } from '@/constants/general.consts' type ApiAccount = { @@ -51,7 +51,7 @@ export const usersApi = { const response = await fetchWithSentry(`${PEANUT_API_URL}/users/username/${username}`, { headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, }) return await response.json() @@ -63,7 +63,7 @@ export const usersApi = { method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: JSON.stringify({ userIds }), }) diff --git a/src/utils/backendTransport.ts b/src/utils/backendTransport.ts index 1a316f84b8..04383bf7ce 100644 --- a/src/utils/backendTransport.ts +++ b/src/utils/backendTransport.ts @@ -1,6 +1,6 @@ +import { getAuthToken } from '@/utils/auth-token' import { custom, type Transport } from 'viem' import { jsonStringify } from './general.utils' -import Cookies from 'js-cookie' import { PEANUT_API_URL } from '@/constants/general.consts' export function createBackendRpcTransport(chainId: number): Transport { @@ -8,7 +8,7 @@ export function createBackendRpcTransport(chainId: number): Transport { async request({ method, params }) { const headers: Record = { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, } const response = await fetch(`${PEANUT_API_URL}/rpc/proxy`, { @@ -44,7 +44,7 @@ export function createBackendBundlerTransport(chainId: number): Transport { async request({ method, params }) { const headers: Record = { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, } const response = await fetch(`${PEANUT_API_URL}/rpc/bundler`, { @@ -117,7 +117,7 @@ export async function requestPaymasterSponsorship( const headers: Record = { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, } const response = await fetch(`${PEANUT_API_URL}/rpc/paymaster`, { diff --git a/src/utils/metrics.utils.ts b/src/utils/metrics.utils.ts index 9edbc8290a..5594045118 100644 --- a/src/utils/metrics.utils.ts +++ b/src/utils/metrics.utils.ts @@ -1,6 +1,6 @@ +import { getAuthToken } from '@/utils/auth-token' import { type JSONObject } from '@/interfaces' import { fetchWithSentry } from '@/utils/sentry.utils' -import Cookies from 'js-cookie' import { PEANUT_API_URL } from '@/constants/general.consts' export async function hitUserMetric(userId: string, name: string, value: JSONObject = {}): Promise { @@ -9,7 +9,7 @@ export async function hitUserMetric(userId: string, name: string, value: JSONObj method: 'POST', headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${Cookies.get('jwt-token')}`, + Authorization: `Bearer ${getAuthToken()}`, }, body: JSON.stringify(value), }) From 0e91943a7949cedab4a20bd84709cf083b6b5ed0 Mon Sep 17 00:00:00 2001 From: kushagrasarathe <76868364+kushagrasarathe@users.noreply.github.com> Date: Mon, 13 Apr 2026 14:57:19 +0530 Subject: [PATCH 039/425] feat: phase 3 webview compatibility fixes - skip service worker registration in capacitor (layout.tsx) - usePWAStatus returns true in capacitor (treated as installed) - window.open replaced with openExternalUrl in DirectSendQR + CardPurchaseScreen --- src/app/layout.tsx | 2 +- src/components/Card/CardPurchaseScreen.tsx | 3 ++- src/components/Global/DirectSendQR/index.tsx | 3 ++- src/hooks/usePWAStatus.ts | 7 +++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 4e88336ffd..07e233c464 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -161,7 +161,7 @@ export default function RootLayout({ children }: { children: React.ReactNode }) {process.env.NODE_ENV !== 'development' && ( + +` +} + +function escapeHtml(s: string): string { + return s.replace(/&/g, '&').replace(//g, '>') +} + +// ── Main ───────────────────────────────────────────────────────────────── + +if (saveBaseline) { + copyBaseline() +} + +const flows = groupByFlow(RESULTS_DIR) +if (flows.length === 0) { + console.error('[report] No results found in', RESULTS_DIR) + console.error('Run: npx playwright test --project=mobile') + process.exit(1) +} + +const html = generateHTML(flows) +fs.mkdirSync(path.dirname(REPORT_PATH), { recursive: true }) +fs.writeFileSync(REPORT_PATH, html) +console.log(`[report] Generated ${REPORT_PATH}`) +console.log(`[report] ${flows.length} flows, ${flows.reduce((n, f) => n + f.screenshots.length, 0)} screenshots`) +console.log(`[report] Open: file://${REPORT_PATH}`) + +if (!fs.existsSync(BASELINE_DIR)) { + console.log(`[report] No baseline yet. Run with --save-baseline to save current as baseline.`) +} diff --git a/e2e/utils/mock-api.ts b/e2e/utils/mock-api.ts new file mode 100644 index 0000000000..498d41efd8 --- /dev/null +++ b/e2e/utils/mock-api.ts @@ -0,0 +1,238 @@ +/** + * Shared API mocks for E2E tests. + * + * Intercepts API calls that fail for harness users (CORS mismatch + * between localhost:3000 and 127.0.0.1:5000) and returns realistic + * mock data so screenshots show actual UI, not error states. + * + * Mock shapes validated against production (peanut.me) on 2026-04-16. + */ + +import { Page, Route } from '@playwright/test' + +// --------------------------------------------------------------------------- +// Mock data +// --------------------------------------------------------------------------- + +const MOCK_TIER_INFO = { + userId: 'mock-user-id', + directPoints: 200, + transitivePoints: 300, + totalPoints: 500, + currentTier: 1, + leaderboardRank: 42, + nextTierThreshold: 1000, + pointsToNextTier: 500, +} + +const MOCK_CASH_STATUS = { + hasCashbackLeft: true, + lifetimeEarned: 25.5, + lifetimeBreakdown: { + cashback: 10.0, + inviterRewards: 10.0, + withdrawPerks: 3.0, + depositPerks: 2.0, + other: 0.5, + }, + rewards: { + pendingUsd: 5.0, + lifetimeEarnedUsd: 25.5, + }, +} + +const MOCK_INVITES = { + invitees: [ + { + inviteeId: 'test-invitee-1', + username: 'testfriend1', + fullName: 'Test Friend', + kycVerified: true, + contributedPoints: 50, + showFullName: false, + lifetimeEarnedUsd: 0.5, + }, + ], + summary: { + multiplier: 1, + pendingInvites: 0, + totalContributedPoints: 50, + totalDirectPoints: 200, + totalInvites: 1, + verifiedInvites: 1, + totalLifetimeEarnedUsd: 0.5, + totalPendingUsd: 0, + }, +} + +const MOCK_INVITE_GRAPH = { + nodes: [ + { id: 'mock-user', username: 'e2euser', totalPoints: 500, isCurrentUser: true }, + { id: 'mock-invitee', username: 'testfriend1', totalPoints: 50 }, + ], + edges: [{ source: 'mock-user', target: 'mock-invitee' }], + p2pEdges: [], + stats: { + totalNodes: 2, + totalEdges: 1, + totalP2PEdges: 0, + usersWithAccess: 2, + orphans: 0, + }, +} + +const MOCK_ACCOUNTS = [ + { + account_id: 'mock-iban-1', + account_type: 'iban', + account_identifier: 'ES27 0075 0984 2206 0708 0217', + asset: 'EUR', + is_active: true, + country: 'ES', + }, + { + account_id: 'mock-us-1', + account_type: 'us', + account_identifier: '938636999398030', + asset: 'USD', + routing_number: '021000021', + is_active: true, + country: 'US', + }, +] + +// --------------------------------------------------------------------------- +// API mock installer +// --------------------------------------------------------------------------- + +/** + * Intercept all API requests and return mock data. + * Call BEFORE navigating to the page. + */ +export async function installApiMocks(page: Page) { + const corsHeaders = { + 'Access-Control-Allow-Origin': '*', + 'Content-Type': 'application/json', + } + + const handler = async (route: Route) => { + const url = route.request().url() + const method = route.request().method() + + if (method === 'OPTIONS') { + await route.fulfill({ + status: 204, + headers: { + 'Access-Control-Allow-Origin': '*', + 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS', + 'Access-Control-Allow-Headers': 'Content-Type, Authorization, x-test-harness-secret', + }, + }) + return + } + + // Routes ordered most-specific first + if (url.includes('/users/history')) { + await route.fulfill({ + status: 200, + headers: corsHeaders, + body: JSON.stringify({ entries: [], hasMore: false }), + }) + return + } + + if (url.includes('/points/cash-status')) { + await route.fulfill({ status: 200, headers: corsHeaders, body: JSON.stringify(MOCK_CASH_STATUS) }) + return + } + + if (url.match(/\/points(\?|$)/)) { + await route.fulfill({ status: 200, headers: corsHeaders, body: JSON.stringify(MOCK_TIER_INFO) }) + return + } + + if (url.includes('/invites/user-graph')) { + await route.fulfill({ status: 200, headers: corsHeaders, body: JSON.stringify(MOCK_INVITE_GRAPH) }) + return + } + + if (url.includes('/invites') && method === 'GET') { + await route.fulfill({ status: 200, headers: corsHeaders, body: JSON.stringify(MOCK_INVITES) }) + return + } + + if (url.includes('/metrics/login')) { + await route.fulfill({ status: 200, headers: corsHeaders, body: '{}' }) + return + } + + if (url.includes('/users/accounts') && method === 'GET') { + await route.fulfill({ status: 200, headers: corsHeaders, body: JSON.stringify(MOCK_ACCOUNTS) }) + return + } + + await route.fulfill({ status: 200, headers: corsHeaders, body: '{}' }) + } + + await page.route('**/127.0.0.1:5000/**', handler) + await page.route('**/localhost:5000/**', handler) + await page.route('**/api.peanut.me/**', handler) +} + +// --------------------------------------------------------------------------- +// Send-link mock helpers (used by claim + KYC tests) +// --------------------------------------------------------------------------- + +/** Base mock response for a claimable send-link. */ +export function makeMockLink(overrides: Record = {}) { + return { + pubKey: '0xmockpubkey', + depositIdx: 0, + chainId: '42161', + contractVersion: 'v4.3', + status: 'completed', + amount: '1000000', + tokenAddress: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831', + tokenDecimals: 6, + tokenSymbol: 'USDC', + tokenType: 'ERC20', + senderAddress: '0x14F86e9f60604d56b929a2719B92c661e3799217', + sender: { + userId: 'mock-sender', + username: 'testsender', + bridgeKycStatus: 'approved', + }, + claim: null, + events: [], + textContent: null, + fileUrl: null, + ...overrides, + } +} + +/** Extract pubKey from a send-links request URL. */ +export function extractPubKeyFromUrl(url: string): string | null { + const match = url.match(/\/send-links\/([^?/]+)/) + return match ? match[1] : null +} + +/** + * Intercept send-links API calls and return mock link data. + * Echoes the pubKey from the request URL so SDK crypto checks pass. + */ +export async function interceptSendLinks( + page: Page, + overrides: Record = {} +) { + await page.route('**/send-links/**', async (route) => { + const url = route.request().url() + const pubKey = extractPubKeyFromUrl(url) || '0xfallback' + const body = makeMockLink({ pubKey, ...overrides }) + + await route.fulfill({ + status: 200, + contentType: 'application/json', + body: JSON.stringify(body), + }) + }) +} diff --git a/e2e/utils/personas.ts b/e2e/utils/personas.ts new file mode 100644 index 0000000000..43ebfa19de --- /dev/null +++ b/e2e/utils/personas.ts @@ -0,0 +1,258 @@ +/** + * Test personas for E2E tests. + * + * Each persona represents a user in a specific state (verified AR, verified US, + * user with history, etc). Personas are created during global-setup via the + * API's /dev/test-session and /dev/seed-scenario endpoints, then saved to a + * JSON file that individual tests read. + * + * This avoids the "all tests use the same empty new-user" problem — tests + * that need a verified AR user or a user with transaction history can pick + * the right persona instead of faking it. + */ + +import { BrowserContext } from '@playwright/test' +import * as fs from 'fs' +import * as path from 'path' + +const API_BASE = process.env.API_BASE_URL || 'http://localhost:5000' +const HARNESS_SECRET = process.env.TEST_HARNESS_SECRET || 'local-harness-secret-long-enough-32ch' +const PERSONAS_PATH = path.resolve(__dirname, '../.auth/personas.json') + +// --------------------------------------------------------------------------- +// Types +// --------------------------------------------------------------------------- + +export interface Persona { + id: string + token: string + userId: string + username: string +} + +export type PersonaId = 'default' | 'verified-ar' | 'verified-us' | 'with-history' + +type PersonaMap = Record + +// --------------------------------------------------------------------------- +// Persona definitions — what to request from the API +// --------------------------------------------------------------------------- + +interface PersonaSpec { + id: PersonaId + /** Use test-session to create user with these params */ + session?: { + email: string + kyc: string + country: string + } + /** Use seed-scenario after session creation (or standalone) */ + seedScenario?: string +} + +const PERSONA_SPECS: PersonaSpec[] = [ + { + id: 'verified-ar', + session: { + email: `persona-ar-${Date.now()}@test.local`, + kyc: 'verified', + country: 'AR', + }, + }, + { + id: 'verified-us', + session: { + email: `persona-us-${Date.now()}@test.local`, + kyc: 'verified', + country: 'US', + }, + }, + { + id: 'with-history', + seedScenario: 'withdraw-ready', + }, +] + +// --------------------------------------------------------------------------- +// Creation (called from global-setup) +// --------------------------------------------------------------------------- + +async function createSessionPersona(spec: PersonaSpec): Promise { + if (!spec.session) { + throw new Error(`Persona ${spec.id} has no session config`) + } + + const res = await fetch(`${API_BASE}/dev/test-session`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'x-test-harness-secret': HARNESS_SECRET, + }, + body: JSON.stringify({ + ...spec.session, + harnessLabel: `persona-${spec.id}`, + }), + }) + + if (!res.ok) { + const body = await res.text().catch(() => '') + throw new Error(`test-session for persona "${spec.id}" failed: ${res.status} — ${body}`) + } + + const { token, user } = (await res.json()) as { + token: string + user: { userId: string; email: string; username?: string } + } + + return { + id: spec.id, + token, + userId: user.userId, + username: user.username || user.email, + } +} + +async function createSeededPersona(spec: PersonaSpec): Promise { + if (!spec.seedScenario) { + throw new Error(`Persona ${spec.id} has no seedScenario config`) + } + + const res = await fetch(`${API_BASE}/dev/seed-scenario`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'x-test-harness-secret': HARNESS_SECRET, + }, + body: JSON.stringify({ + scenario: spec.seedScenario, + harnessLabel: `persona-${spec.id}`, + }), + }) + + if (!res.ok) { + const body = await res.text().catch(() => '') + throw new Error(`seed-scenario for persona "${spec.id}" failed: ${res.status} — ${body}`) + } + + const json = await res.json() + const data = json.data + + // seed-scenario returns { data: { user: { token, userId, ... } } } + if (!data?.user?.token) { + throw new Error( + `seed-scenario "${spec.seedScenario}" didn't return user token. ` + + `Got: ${JSON.stringify(data).slice(0, 200)}` + ) + } + + return { + id: spec.id, + token: data.user.token, + userId: data.user.userId, + username: data.user.username || data.user.email || spec.id, + } +} + +/** + * Create all personas and save them to disk. + * Called from global-setup.ts. Non-fatal: if a persona fails, it's skipped + * and tests that need it will fall back to the default user. + */ +export async function createAllPersonas(defaultToken: string, defaultUserId: string, defaultUsername: string): Promise { + const personas: Partial = { + default: { + id: 'default', + token: defaultToken, + userId: defaultUserId, + username: defaultUsername, + }, + } + + for (const spec of PERSONA_SPECS) { + try { + let persona: Persona + if (spec.seedScenario) { + persona = await createSeededPersona(spec) + } else { + persona = await createSessionPersona(spec) + } + personas[spec.id] = persona + console.log(`[personas] Created "${spec.id}" — user ${persona.userId}`) + } catch (e) { + console.warn(`[personas] Failed to create "${spec.id}": ${(e as Error).message}`) + } + } + + // Write to disk for tests to read + const dir = path.dirname(PERSONAS_PATH) + if (!fs.existsSync(dir)) { + fs.mkdirSync(dir, { recursive: true }) + } + fs.writeFileSync(PERSONAS_PATH, JSON.stringify(personas, null, 2)) + console.log(`[personas] Saved ${Object.keys(personas).length} personas to ${PERSONAS_PATH}`) + + return personas as PersonaMap +} + +// --------------------------------------------------------------------------- +// Read (called from test specs) +// --------------------------------------------------------------------------- + +let _cached: Partial | null = null + +/** + * Get a persona by ID. Returns the persona if available, or null if it + * wasn't created (API was down, scenario doesn't exist, etc). + * + * Tests should gracefully fall back to the default user when a persona + * isn't available: + * + * ```ts + * const persona = getPersona('verified-ar') + * if (persona) { + * await authenticateAs(context, persona.token) + * } + * ``` + */ +export function getPersona(id: PersonaId): Persona | null { + if (!_cached) { + try { + const raw = fs.readFileSync(PERSONAS_PATH, 'utf-8') + _cached = JSON.parse(raw) as Partial + } catch { + console.warn(`[personas] Could not read ${PERSONAS_PATH} — no personas available`) + _cached = {} + } + } + return _cached[id] || null +} + +/** + * Convenience: authenticate a browser context as a specific persona. + * Returns true if persona was found and applied, false if not available + * (caller should use default user). + */ +export async function usePersona( + context: BrowserContext, + id: PersonaId +): Promise { + const persona = getPersona(id) + if (!persona) { + console.warn(`[personas] Persona "${id}" not available — using default user`) + return null + } + + await context.addCookies([ + { + name: 'jwt-token', + value: persona.token, + domain: 'localhost', + path: '/', + httpOnly: false, + secure: false, + sameSite: 'Lax', + }, + ]) + + return persona +} diff --git a/e2e/utils/seed.ts b/e2e/utils/seed.ts new file mode 100644 index 0000000000..0e2bdac610 --- /dev/null +++ b/e2e/utils/seed.ts @@ -0,0 +1,59 @@ +/** + * Seed utilities for E2E tests. + * + * Calls the API's /dev/seed-scenario endpoint to create test data, + * and provides helpers for authenticating as seeded users. + */ + +import { BrowserContext } from '@playwright/test' + +const API_BASE = process.env.API_BASE_URL || 'http://localhost:5000' +const HARNESS_SECRET = process.env.TEST_HARNESS_SECRET || 'local-harness-secret-long-enough-32ch' + +/** + * Seed a test scenario via the API harness. + * + * Returns the scenario-specific data payload (links, users, tokens, etc). + * Throws on non-2xx response. + */ +export async function seedScenario(scenario: string, label?: string): Promise { + const res = await fetch(`${API_BASE}/dev/seed-scenario`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'x-test-harness-secret': HARNESS_SECRET, + }, + body: JSON.stringify({ scenario, harnessLabel: label || 'playwright' }), + }) + + if (!res.ok) { + const body = await res.text().catch(() => '') + throw new Error( + `seed-scenario "${scenario}" failed: ${res.status} — ${body}\n` + + `Ensure API is running at ${API_BASE} with ENABLE_TEST_ROUTES=true` + ) + } + + const json = await res.json() + return json.data +} + +/** + * Authenticate a browser context as a specific user by setting the JWT cookie. + * + * Use this when a test needs a different identity than the bootstrap user + * (e.g. testing claim from the receiver's perspective). + */ +export async function authenticateAs(context: BrowserContext, token: string) { + await context.addCookies([ + { + name: 'jwt-token', + value: token, + domain: 'localhost', + path: '/', + httpOnly: false, + secure: false, + sameSite: 'Lax', + }, + ]) +} diff --git a/package.json b/package.json index ebe2e53e99..6dd190bff7 100644 --- a/package.json +++ b/package.json @@ -166,7 +166,8 @@ ], "testPathIgnorePatterns": [ "/node_modules/", - "\\.e2e\\.test\\.(ts|tsx)$" + "\\.e2e\\.test\\.(ts|tsx)$", + "/e2e/" ], "extensionsToTreatAsEsm": [ ".ts", diff --git a/src/app/(mobile-ui)/add-money/__tests__/add-money-states.test.tsx b/src/app/(mobile-ui)/add-money/__tests__/add-money-states.test.tsx new file mode 100644 index 0000000000..edb2482538 --- /dev/null +++ b/src/app/(mobile-ui)/add-money/__tests__/add-money-states.test.tsx @@ -0,0 +1,1453 @@ +/** + * Add Money Flow — State Matrix Tests + * + * Tests the AddMoney pages across state combinations covering: + * - Landing / method selection + * - Crypto deposit (Rhino) + * - Bridge bank onramp (SEPA, US, UK, MX) + * - Manteca deposit (AR, BR) + * - KYC gate states + * - Error states + * - Loading states + * + * Strategy: mock every hook and service at the module level, then configure + * per-test via mockReturnValue / mockImplementation. + */ +import React from 'react' +import { render, screen, fireEvent, waitFor, act } from '@testing-library/react' +import { QueryClient, QueryClientProvider } from '@tanstack/react-query' + +// ---------- module-level mocks (must be before imports that depend on them) ---------- + +// next/navigation +const mockRouterPush = jest.fn() +const mockRouterBack = jest.fn() +const mockRouterReplace = jest.fn() +const mockSearchParams = new Map() +const mockParams: Record = {} + +jest.mock('next/navigation', () => ({ + useSearchParams: () => ({ + get: (key: string) => mockSearchParams.get(key) ?? null, + }), + useRouter: () => ({ + push: mockRouterPush, + back: mockRouterBack, + replace: mockRouterReplace, + prefetch: jest.fn(), + }), + usePathname: () => '/add-money', + useParams: () => mockParams, +})) + +// nuqs — mock useQueryState and useQueryStates for URL state management +const mockQueryState: Record = {} +const mockSetQueryState = jest.fn((updates: Record) => { + Object.entries(updates).forEach(([k, v]) => { + mockQueryState[k] = v + }) +}) + +jest.mock('nuqs', () => ({ + useQueryState: (key: string, _parser?: any) => { + const value = mockQueryState[key] ?? null + const setter = (val: any) => { + mockQueryState[key] = val + mockSetQueryState({ [key]: val }) + } + return [value, setter] + }, + useQueryStates: (_parsers: any, _opts?: any) => { + return [mockQueryState, mockSetQueryState] + }, + parseAsString: { withDefault: (d: string) => d }, + parseAsStringEnum: (_values: string[]) => ({ + withDefault: (d: string) => d, + }), +})) + +// next/image — render a plain +jest.mock('next/image', () => ({ + __esModule: true, + default: (props: any) => { + const { priority, layout, objectFit, fill, ...rest } = props + return + }, +})) + +// Sentry +jest.mock('@sentry/nextjs', () => ({ + captureException: jest.fn(), +})) + +// PostHog +jest.mock('posthog-js', () => ({ + __esModule: true, + default: { capture: jest.fn(), init: jest.fn() }, +})) + +// Assets +jest.mock('@/assets', () => ({ + SOLANA_ICON: '/solana.png', + TRON_ICON: '/tron.png', + MERCADO_PAGO: '/mercado-pago.png', + PIX: '/pix.png', +})) + +jest.mock('@/assets/payment-apps', () => ({ + MERCADO_PAGO: '/mercado-pago.png', + PIX: '/pix.png', +})) + +// ---------- hooks & services ---------- + +const mockUseAuth = jest.fn() +jest.mock('@/context/authContext', () => ({ + useAuth: () => mockUseAuth(), +})) + +const mockUseWallet = jest.fn() +jest.mock('@/hooks/wallet/useWallet', () => ({ + useWallet: () => mockUseWallet(), +})) + +const mockUseKycStatus = jest.fn() +jest.mock('@/hooks/useKycStatus', () => ({ + __esModule: true, + default: () => mockUseKycStatus(), +})) + +const mockUseCurrency = jest.fn() +jest.mock('@/hooks/useCurrency', () => ({ + useCurrency: (...args: any[]) => mockUseCurrency(...args), +})) + +const mockUseExchangeRate = jest.fn() +jest.mock('@/hooks/useExchangeRate', () => ({ + useExchangeRate: (...args: any[]) => mockUseExchangeRate(...args), +})) + +const mockUseCreateOnramp = jest.fn() +jest.mock('@/hooks/useCreateOnramp', () => ({ + useCreateOnramp: () => mockUseCreateOnramp(), +})) + +const mockUseLimitsValidation = jest.fn() +jest.mock('@/features/limits/hooks/useLimitsValidation', () => ({ + useLimitsValidation: (...args: any[]) => mockUseLimitsValidation(...args), +})) + +jest.mock('@/features/limits/components/LimitsWarningCard', () => ({ + __esModule: true, + default: (props: any) =>

, +})) + +jest.mock('@/features/limits/utils', () => ({ + getLimitsWarningCardProps: jest.fn(() => null), + isBrUserEligibleForLimitIncrease: jest.fn(() => false), +})) + +const mockUseMultiPhaseKycFlow = jest.fn() +jest.mock('@/hooks/useMultiPhaseKycFlow', () => ({ + useMultiPhaseKycFlow: (...args: any[]) => mockUseMultiPhaseKycFlow(...args), +})) + +const mockUseBridgeTosGuard = jest.fn() +jest.mock('@/hooks/useBridgeTosGuard', () => ({ + useBridgeTosGuard: () => mockUseBridgeTosGuard(), +})) + +// OnrampFlowContext +const mockOnrampFlow = { + error: { showError: false, errorMessage: '' }, + setError: jest.fn(), + fromBankSelected: false, + setFromBankSelected: jest.fn(), + onrampData: null as any, + setOnrampData: jest.fn(), + resetOnrampFlow: jest.fn(), +} +jest.mock('@/context/OnrampFlowContext', () => ({ + useOnrampFlow: () => mockOnrampFlow, +})) + +// RequestFulfillmentFlowContext +jest.mock('@/context/RequestFulfillmentFlowContext', () => ({ + RequestFulfillmentBankFlowStep: { BankCountryList: 'BankCountryList' }, + useRequestFulfillmentFlow: () => ({ + setFlowStep: jest.fn(), + onrampData: null, + selectedCountry: null, + }), +})) + +// Manteca API +const mockMantecaApi = { + deposit: jest.fn(), +} +jest.mock('@/services/manteca', () => ({ + mantecaApi: mockMantecaApi, +})) + +// Rhino API +const mockRhinoApi = { + createDepositAddress: jest.fn(), + getDepositAddressStatus: jest.fn(), + resetDepositAddressStatus: jest.fn(), +} +jest.mock('@/services/rhino', () => ({ + rhinoApi: mockRhinoApi, +})) + +// Bridge utils +jest.mock('@/utils/bridge.utils', () => ({ + getCurrencyConfig: jest.fn((_countryId: string, _flow: string) => ({ + currency: 'usd', + })), + getCurrencySymbol: jest.fn((currency: string) => { + const map: Record = { usd: '$', eur: '\u20AC', gbp: '\u00A3', mxn: 'MX$', USD: '$', EUR: '\u20AC' } + return map[currency] ?? currency + }), + getMinimumAmount: jest.fn(() => 1), +})) + +// Country currency mappings +jest.mock('@/constants/countryCurrencyMapping', () => ({ + __esModule: true, + default: [ + { country: 'mexico', currencyCode: 'MXN', path: 'mexico' }, + { country: 'germany', currencyCode: 'EUR', path: 'germany' }, + ], + isNonEuroSepaCountry: jest.fn(() => false), + isUKCountry: jest.fn(() => false), +})) + +// Rhino consts +jest.mock('@/constants/rhino.consts', () => ({ + CHAIN_LOGOS: { ETHEREUM: '/eth.png', SOLANA: '/sol.png', TRON: '/tron.png' }, + SUPPORTED_EVM_CHAINS: ['ETHEREUM', 'ARBITRUM', 'POLYGON'], + NETWORK_LABELS: { EVM: 'EVM', SOL: 'Solana', TRON: 'Tron' }, + NETWORK_LOGOS: { EVM: '/evm.png', SOL: '/sol.png', TRON: '/tron.png' }, + getSupportedTokens: jest.fn(() => [ + { name: 'USDC', logoUrl: '/usdc.png' }, + { name: 'USDT', logoUrl: '/usdt.png' }, + ]), + TOKEN_LOGOS: { USDC: '/usdc.png', USDT: '/usdt.png' }, +})) + +jest.mock('@/constants/zerodev.consts', () => ({ + PEANUT_WALLET_CHAIN: { id: 42161 }, + PEANUT_WALLET_TOKEN_DECIMALS: 6, +})) + +jest.mock('@/constants/payment.consts', () => ({ + MIN_MANTECA_DEPOSIT_AMOUNT: 1, + BRIDGE_DEFAULT_ACCOUNT_HOLDER_NAME: 'Bridge Financial', +})) + +jest.mock('@/constants/manteca.consts', () => ({ + MANTECA_ARG_DEPOSIT_CUIT: '30-12345678-9', + MANTECA_ARG_DEPOSIT_NAME: 'Manteca SA', + MANTECA_COUNTRIES_CONFIG: { + AR: { depositAddressLabel: 'CBU/CVU' }, + BR: { depositAddressLabel: 'PIX Key' }, + }, +})) + +jest.mock('@/constants/analytics.consts', () => ({ + ANALYTICS_EVENTS: { + DEPOSIT_METHOD_SELECTED: 'deposit_method_selected', + DEPOSIT_AMOUNT_ENTERED: 'deposit_amount_entered', + DEPOSIT_CONFIRMED: 'deposit_confirmed', + DEPOSIT_COMPLETED: 'deposit_completed', + DEPOSIT_FAILED: 'deposit_failed', + }, +})) + +jest.mock('@/constants/query.consts', () => ({ + TRANSACTIONS: 'transactions', +})) + +// General utils +jest.mock('@/utils/general.utils', () => ({ + formatAmount: jest.fn((v: any) => v?.toString() ?? '0'), + getExplorerUrl: jest.fn(() => 'https://arbiscan.io'), + saveRedirectUrl: jest.fn(), + getRedirectUrl: jest.fn(() => null), + clearRedirectUrl: jest.fn(), + getFromLocalStorage: jest.fn(() => null), + isCryptoAddress: jest.fn(() => false), + printableAddress: jest.fn((a: string) => a), + shortenStringLong: jest.fn((s: string, n: number) => s.slice(0, n) + '...' + s.slice(-n)), + formatCurrency: jest.fn((v: any) => v?.toString() ?? '0'), + checkIfInternalNavigation: jest.fn(() => false), + formatNumberForDisplay: jest.fn((v: any) => v ?? '0'), +})) + +jest.mock('@/utils/currency', () => ({ + formatCurrencyAmount: jest.fn((amount: string, currency: string) => `${currency} ${amount}`), +})) + +jest.mock('@/utils/format.utils', () => ({ + formatBankAccountDisplay: jest.fn((val: string) => val), +})) + +// ---------- UI component mocks ---------- + +jest.mock('@/components/Global/AmountInput', () => ({ + __esModule: true, + default: (props: any) => ( +
+ { + props.setPrimaryAmount?.(e.target.value) + props.setSecondaryAmount?.(e.target.value) + props.setDisplayedAmount?.(e.target.value) + }} + /> +
+ ), +})) + +jest.mock('@/components/Global/PeanutLoading', () => ({ + __esModule: true, + default: (props: any) => ( +
{props.message && {props.message}}
+ ), +})) + +jest.mock('@/components/Global/NavHeader', () => ({ + __esModule: true, + default: (props: any) => ( +
+ {props.title} +
+ ), +})) + +jest.mock('@/components/Global/Card', () => ({ + __esModule: true, + default: React.forwardRef((props: any, ref: any) => ( +
+ {props.children} +
+ )), +})) + +jest.mock('@/components/0_Bruddle/Card', () => ({ + Card: (props: any) => ( +
+ {props.children} +
+ ), +})) + +jest.mock('@/components/0_Bruddle/Button', () => ({ + Button: (props: any) => ( + + ), +})) + +jest.mock('@/components/Global/Icons/Icon', () => ({ + Icon: (props: any) => , +})) + +jest.mock('@/components/Global/ErrorAlert', () => ({ + __esModule: true, + default: (props: any) =>
{props.description}
, +})) + +jest.mock('@/components/Global/ActionModal', () => ({ + __esModule: true, + default: (props: any) => + props.visible ? ( +
+

{props.title}

+

{props.description}

+ {props.content} + {props.footer} +
+ ) : null, +})) + +jest.mock('@/components/Global/InfoCard', () => ({ + __esModule: true, + default: (props: any) => ( +
+ {props.title && {props.title}} + {props.description && {props.description}} + {props.items?.map((item: any, i: number) => {item})} + {props.customContent} +
+ ), +})) + +jest.mock('@/components/Global/CopyToClipboard', () => { + const CopyToClipboard = React.forwardRef((props: any, ref: any) => ( + + )) + CopyToClipboard.displayName = 'CopyToClipboard' + return { + __esModule: true, + default: CopyToClipboard, + } +}) + +jest.mock('@/components/Global/QRCodeWrapper', () => ({ + __esModule: true, + default: (props: any) =>
{props.url}
, +})) + +jest.mock('@/components/Global/ShareButton', () => ({ + __esModule: true, + default: (props: any) => ( + + ), +})) + +jest.mock('@/components/Global/EmptyStates/EmptyState', () => ({ + __esModule: true, + default: (props: any) => ( +
+ {props.title} + {props.description} +
+ ), +})) + +jest.mock('@/components/0_Bruddle/PageContainer', () => ({ + __esModule: true, + default: (props: any) =>
{props.children}
, +})) + +jest.mock('@/components/Payment/PaymentInfoRow', () => ({ + PaymentInfoRow: (props: any) => ( +
+ {props.label}: {props.value} +
+ ), +})) + +jest.mock('@/components/Kyc/SumsubKycModals', () => ({ + SumsubKycModals: () => null, +})) + +jest.mock('@/components/Kyc/InitiateKycModal', () => ({ + InitiateKycModal: (props: any) => + props.visible ? ( +
+ +
+ ) : null, +})) + +jest.mock('@/components/Kyc/BridgeTosStep', () => ({ + BridgeTosStep: (props: any) => + props.visible ?
Bridge TOS
: null, +})) + +jest.mock('@/components/AddMoney/components/OnrampConfirmationModal', () => ({ + OnrampConfirmationModal: (props: any) => + props.visible ? ( +
+ Amount: {props.currency}{props.amount} + +
+ ) : null, +})) + +jest.mock('@/components/ActionListCard', () => ({ + ActionListCard: (props: any) => ( +
+ {props.title} + {props.description} +
+ ), +})) + +jest.mock('@/components/Profile/AvatarWithBadge', () => ({ + __esModule: true, + default: (props: any) =>
, +})) + +jest.mock('@/components/AddMoney/components/ChooseNetworkDrawer', () => ({ + __esModule: true, + default: (props: any) => + props.open ? ( +
+ + + +
+ ) : null, +})) + +jest.mock('@/components/AddMoney/components/ChainChip', () => ({ + __esModule: true, + default: (props: any) => {props.chainName}, +})) + +jest.mock('@/components/AddMoney/components/HowToDepositModal', () => ({ + __esModule: true, + default: (props: any) => + props.visible ?
How to Deposit
: null, +})) + +jest.mock('@/components/AddMoney/components/SupportedNetworksModal', () => ({ + __esModule: true, + default: (props: any) => + props.visible ?
Supported Networks
: null, +})) + +jest.mock('@/components/Tooltip', () => ({ + Tooltip: (props: any) =>
{props.children}
, +})) + +// Crypto deposit polling hook +const mockUseCryptoDepositPolling = jest.fn() +jest.mock('@/components/AddMoney/hooks/useCryptoDepositPolling', () => ({ + useCryptoDepositPolling: (...args: any[]) => mockUseCryptoDepositPolling(...args), +})) + +// Country list +jest.mock('@/components/Common/CountryList', () => ({ + CountryList: (props: any) => ( +
+ {props.inputTitle} + + +
+ ), +})) + +// AddWithdrawCountriesList +jest.mock('@/components/AddWithdraw/AddWithdrawCountriesList', () => ({ + __esModule: true, + default: (props: any) => ( +
+ Flow: {props.flow} +
+ ), +})) + +// MantecaAddMoney (for regional-method page) +jest.mock('@/components/AddMoney/components/MantecaAddMoney', () => ({ + __esModule: true, + default: () =>
Manteca Add Money
, +})) + +// AddMoneyBankDetails (for US bank page and bank details step) +jest.mock('@/components/AddMoney/components/AddMoneyBankDetails', () => ({ + __esModule: true, + default: (props: any) =>
Bank Details (flow: {props.flow ?? 'add-money'})
, +})) + +// MantecaDepositShareDetails +jest.mock('@/components/AddMoney/components/MantecaDepositShareDetails', () => ({ + __esModule: true, + default: (props: any) =>
Manteca Deposit Details
, +})) + +// PaymentSuccessView +jest.mock('@/features/payments/shared/components/PaymentSuccessView', () => ({ + __esModule: true, + default: (props: any) => ( +
+ {props.headerTitle} + Amount: {props.usdAmount} + +
+ ), +})) + +// Hooks used by auto-truncated address +jest.mock('@/hooks/useAutoTruncatedAddress', () => ({ + useAutoTruncatedAddress: (address: string) => ({ + containerRef: { current: null }, + truncatedAddress: address ? address.slice(0, 8) + '...' + address.slice(-6) : '', + }), +})) + +jest.mock('@/hooks/useTransactionHistory', () => ({ + EHistoryEntryType: { DIRECT_SEND: 'DIRECT_SEND' }, + EHistoryUserRole: { RECIPIENT: 'RECIPIENT' }, +})) + +jest.mock('@/components/User/UserCard', () => ({ + __esModule: true, + default: (props: any) =>
{props.username}
, +})) + +jest.mock('@/components/Slider', () => ({ + Slider: (props: any) => ( + + ), +})) + +// Consts for AddMoney +jest.mock('@/components/AddMoney/consts', () => ({ + MantecaSupportedExchanges: { + AR: 'ARGENTINA', + BR: 'BRAZIL', + }, + countryData: [ + { type: 'country', id: 'AR', path: 'argentina', currency: 'ARS', iso3: 'ARG' }, + { type: 'country', id: 'BR', path: 'brazil', currency: 'BRL', iso3: 'BRA' }, + { type: 'country', id: 'US', path: 'us', currency: 'USD', iso3: 'USA' }, + { type: 'country', id: 'DE', path: 'germany', currency: 'EUR', iso3: 'DEU' }, + { type: 'country', id: 'MX', path: 'mexico', currency: 'MXN', iso3: 'MEX' }, + { type: 'country', id: 'GB', path: 'uk', currency: 'GBP', iso3: 'GBR' }, + { type: 'country', id: 'XX', path: 'unknown', currency: 'USD', iso3: 'XXX' }, + ], + ALL_COUNTRIES_ALPHA3_TO_ALPHA2: { ARG: 'AR', BRA: 'BR', USA: 'US', DEU: 'DE', MEX: 'MX', GBR: 'GB' }, +})) + +jest.mock('@/components/TransactionDetails/transactionTransformer', () => ({})) + +// Radix tabs for RhinoDeposit view +jest.mock('@radix-ui/react-tabs', () => ({ + Root: (props: any) =>
{props.children}
, + List: (props: any) =>
{props.children}
, + Trigger: (props: any) => ( + + ), +})) + +// Drawer +jest.mock('@/components/Global/Drawer', () => ({ + Drawer: (props: any) => (props.open ?
{props.children}
: null), + DrawerContent: (props: any) =>
{props.children}
, + DrawerHeader: (props: any) =>
{props.children}
, + DrawerTitle: (props: any) =>

{props.children}

, + DrawerDescription: (props: any) =>

{props.children}

, +})) + +// ---------- import components under test AFTER all mocks ---------- + +import AddMoneyPage from '../page' +import AddMoneyCryptoPage from '../crypto/page' +import OnrampBankPage from '../[country]/bank/page' +import AddMoneyRegionalMethodPage from '../[country]/[regional-method]/page' +import AddMoneyCountryPage from '../[country]/page' +import CryptoDepositView from '@/components/AddMoney/views/CryptoDeposit.view' + +// ---------- helpers ---------- + +function resetQueryState(initial: Record = {}) { + Object.keys(mockQueryState).forEach((k) => delete mockQueryState[k]) + Object.entries(initial).forEach(([k, v]) => { + mockQueryState[k] = v + }) +} + +function setParams(params: Record) { + Object.keys(mockParams).forEach((k) => delete mockParams[k]) + Object.entries(params).forEach(([k, v]) => { + mockParams[k] = v + }) +} + +function createQueryClient() { + return new QueryClient({ + defaultOptions: { + queries: { retry: false, gcTime: 0 }, + }, + }) +} + +function renderWithProviders(component: React.ReactElement) { + const queryClient = createQueryClient() + return render( + {component} + ) +} + +// ---------- default mock values ---------- + +function applyDefaults() { + mockUseAuth.mockReturnValue({ + user: { user: { username: 'test-user', userId: 'user-123' } }, + isFetchingUser: false, + fetchUser: jest.fn(), + }) + + mockUseWallet.mockReturnValue({ + balance: BigInt(100_000_000), // $100 USDC (6 decimals) + address: '0xWalletAddress123', + }) + + mockUseKycStatus.mockReturnValue({ + isUserKycApproved: true, + isUserMantecaKycApproved: true, + }) + + mockUseCurrency.mockReturnValue({ + isLoading: false, + symbol: 'ARS', + price: { buy: 1200, sell: 1250 }, + }) + + mockUseExchangeRate.mockReturnValue({ + exchangeRate: 1, + isLoading: false, + }) + + mockUseCreateOnramp.mockReturnValue({ + createOnramp: jest.fn(), + isLoading: false, + error: null, + }) + + mockUseLimitsValidation.mockReturnValue({ + isBlocking: false, + isWarning: false, + currency: 'USD', + }) + + mockUseMultiPhaseKycFlow.mockReturnValue({ + handleInitiateKyc: jest.fn(), + showWrapper: false, + accessToken: null, + handleClose: jest.fn(), + handleSdkComplete: jest.fn(), + refreshToken: jest.fn(), + isLoading: false, + }) + + mockUseBridgeTosGuard.mockReturnValue({ + guardWithTos: jest.fn(() => false), + showBridgeTos: false, + hideTos: jest.fn(), + }) + + mockUseCryptoDepositPolling.mockReturnValue({ + status: 'not_started', + resetStatus: jest.fn(), + isResetting: false, + }) + + // Reset onramp flow context + mockOnrampFlow.error = { showError: false, errorMessage: '' } + mockOnrampFlow.onrampData = null + mockOnrampFlow.setError = jest.fn((err) => { + mockOnrampFlow.error = err + }) + mockOnrampFlow.setOnrampData = jest.fn((data) => { + mockOnrampFlow.onrampData = data + }) +} + +// ---------- test suites ---------- + +beforeEach(() => { + jest.clearAllMocks() + mockSearchParams.clear() + resetQueryState() + setParams({}) + applyDefaults() +}) + +// ============================================================ +// GROUP 1: Landing / Method Selection +// ============================================================ +describe('GROUP 1: Landing / Method Selection', () => { + test('default view shows Crypto and Bank Transfer options', () => { + renderWithProviders() + + expect(screen.getByText('Crypto')).toBeInTheDocument() + expect(screen.getByText('Bank Transfer')).toBeInTheDocument() + expect(screen.getByText('Add Money')).toBeInTheDocument() + }) + + test('clicking Crypto opens the network drawer', () => { + renderWithProviders() + + const cryptoCard = screen.getByTestId('action-card-crypto') + fireEvent.click(cryptoCard) + + expect(screen.getByTestId('choose-network-drawer')).toBeInTheDocument() + }) + + test('selecting EVM network navigates to crypto page', () => { + renderWithProviders() + + fireEvent.click(screen.getByTestId('action-card-crypto')) + fireEvent.click(screen.getByTestId('select-evm')) + + expect(mockRouterPush).toHaveBeenCalledWith('/add-money/crypto?network=EVM') + }) + + test('clicking Bank Transfer switches to country list', () => { + renderWithProviders() + + fireEvent.click(screen.getByTestId('action-card-bank-transfer')) + + // The mock for nuqs useQueryState will be called via setMethod('bank') + // and then the component should render the country list + expect(mockSetQueryState).toHaveBeenCalled() + }) + + test('method=bank shows country list', () => { + resetQueryState({ method: 'bank' }) + renderWithProviders() + + expect(screen.getByTestId('country-list')).toBeInTheDocument() + expect(screen.getByText('Select your country')).toBeInTheDocument() + }) + + test('selecting a country from list navigates to country page', () => { + resetQueryState({ method: 'bank' }) + renderWithProviders() + + fireEvent.click(screen.getByTestId('country-argentina')) + expect(mockRouterPush).toHaveBeenCalledWith('/add-money/argentina') + }) + + test('back from method selection navigates to /home', () => { + renderWithProviders() + + fireEvent.click(screen.getByTestId('nav-header')) + expect(mockRouterPush).toHaveBeenCalledWith('/home') + }) +}) + +// ============================================================ +// GROUP 2: Country Page (method list for a given country) +// ============================================================ +describe('GROUP 2: Country Page', () => { + test('renders AddWithdrawCountriesList with flow=add', () => { + setParams({ country: 'argentina' }) + renderWithProviders() + + expect(screen.getByTestId('add-withdraw-countries-list')).toBeInTheDocument() + expect(screen.getByText('Flow: add')).toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 3: Crypto Deposit +// ============================================================ +describe('GROUP 3: Crypto Deposit', () => { + test('loading state shows PeanutLoading', () => { + resetQueryState({ network: 'EVM' }) + + renderWithProviders( + + ) + + expect(screen.getByTestId('peanut-loading')).toBeInTheDocument() + }) + + test('loaded EVM deposit shows QR code and address', () => { + mockUseCryptoDepositPolling.mockReturnValue({ + status: 'not_started', + resetStatus: jest.fn(), + isResetting: false, + }) + + renderWithProviders( + + ) + + expect(screen.getByTestId('qr-code')).toBeInTheDocument() + expect(screen.getByText('Deposit Crypto')).toBeInTheDocument() + expect(screen.getAllByText(/EVM/).length).toBeGreaterThan(0) + expect(screen.getByText('5 USD')).toBeInTheDocument() + expect(screen.getByText('10,000 USD')).toBeInTheDocument() + }) + + test('deposit processing shows PeanutLoading with message', () => { + mockUseCryptoDepositPolling.mockReturnValue({ + status: 'loading', + resetStatus: jest.fn(), + isResetting: false, + }) + + renderWithProviders( + + ) + + expect(screen.getByTestId('peanut-loading')).toBeInTheDocument() + expect(screen.getByText('Almost there! Processing...')).toBeInTheDocument() + }) + + test('deposit failed shows error card with retry button', () => { + const mockResetStatus = jest.fn() + mockUseCryptoDepositPolling.mockReturnValue({ + status: 'failed', + resetStatus: mockResetStatus, + isResetting: false, + }) + + renderWithProviders( + + ) + + expect(screen.getByText('Oops! Market moved')).toBeInTheDocument() + expect(screen.getByText('Try Again')).toBeInTheDocument() + + fireEvent.click(screen.getByText('Try Again')) + expect(mockResetStatus).toHaveBeenCalled() + }) + + test('How to Deposit button opens modal', () => { + mockUseCryptoDepositPolling.mockReturnValue({ + status: 'not_started', + resetStatus: jest.fn(), + isResetting: false, + }) + + renderWithProviders( + + ) + + fireEvent.click(screen.getByText('How to Deposit')) + expect(screen.getByTestId('how-to-deposit-modal')).toBeInTheDocument() + }) + + test('warning info card is present for supported networks', () => { + mockUseCryptoDepositPolling.mockReturnValue({ + status: 'not_started', + resetStatus: jest.fn(), + isResetting: false, + }) + + renderWithProviders( + + ) + + expect(screen.getByText('Send to supported networks only')).toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 4: Crypto Page (full page with success transition) +// ============================================================ +describe('GROUP 4: Crypto Page (with success)', () => { + beforeEach(() => { + resetQueryState({ network: 'EVM' }) + }) + + test('renders CryptoDepositView when not in success state', () => { + mockRhinoApi.createDepositAddress.mockResolvedValue({ + depositAddress: '0xDepositAddress123', + minDepositLimitUsd: 5, + maxDepositLimitUsd: 10000, + }) + + renderWithProviders() + + // The component renders CryptoDepositView which shows Deposit Crypto + expect(screen.getByText('Deposit Crypto')).toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 5: Bridge Bank Onramp (SEPA / US / UK / MX) +// ============================================================ +describe('GROUP 5: Bridge Bank Onramp', () => { + beforeEach(() => { + setParams({ country: 'germany' }) + resetQueryState({ step: 'inputAmount', amount: '' }) + }) + + test('inputAmount step shows amount input and Continue button', () => { + renderWithProviders() + + expect(screen.getByText('How much do you want to add?')).toBeInTheDocument() + expect(screen.getByTestId('amount-input')).toBeInTheDocument() + expect(screen.getByText('Continue')).toBeInTheDocument() + }) + + test('Continue disabled when no amount entered', () => { + renderWithProviders() + + const continueButton = screen.getByText('Continue') + expect(continueButton).toBeDisabled() + }) + + test('unknown country shows EmptyState', () => { + setParams({ country: 'narnia' }) + renderWithProviders() + + expect(screen.getByTestId('empty-state')).toBeInTheDocument() + expect(screen.getByText('Country not found')).toBeInTheDocument() + }) + + test('user not KYC approved shows InitiateKycModal on Continue', async () => { + mockUseKycStatus.mockReturnValue({ + isUserKycApproved: false, + isUserMantecaKycApproved: false, + }) + resetQueryState({ step: 'inputAmount', amount: '100' }) + + renderWithProviders() + + const continueButton = screen.getByText('Continue') + await act(async () => { + fireEvent.click(continueButton) + }) + + expect(screen.getByTestId('initiate-kyc-modal')).toBeInTheDocument() + }) + + test('KYC approved shows confirmation modal on Continue', async () => { + resetQueryState({ step: 'inputAmount', amount: '100' }) + + renderWithProviders() + + const continueButton = screen.getByText('Continue') + await act(async () => { + fireEvent.click(continueButton) + }) + + expect(screen.getByTestId('onramp-confirmation-modal')).toBeInTheDocument() + }) + + test('confirmation modal confirm creates onramp and navigates to showDetails', async () => { + const mockCreateOnramp = jest.fn().mockResolvedValue({ + transferId: 'transfer-123', + depositInstructions: { + amount: '100', + currency: 'EUR', + depositMessage: 'REF1234567890', + bankName: 'Deutsche Bank', + bankAddress: 'Frankfurt, Germany', + iban: 'DE89370400440532013000', + bic: 'COBADEFFXXX', + accountHolderName: 'Peanut Protocol', + }, + }) + mockUseCreateOnramp.mockReturnValue({ + createOnramp: mockCreateOnramp, + isLoading: false, + error: null, + }) + resetQueryState({ step: 'inputAmount', amount: '100' }) + + renderWithProviders() + + // Click Continue + await act(async () => { + fireEvent.click(screen.getByText('Continue')) + }) + + // Click Confirm in modal + await act(async () => { + fireEvent.click(screen.getByTestId('confirm-onramp')) + }) + + expect(mockCreateOnramp).toHaveBeenCalled() + expect(mockSetQueryState).toHaveBeenCalledWith(expect.objectContaining({ step: 'showDetails' })) + }) + + test('onramp error displays ErrorAlert', async () => { + const mockCreateOnramp = jest.fn().mockRejectedValue(new Error('Service unavailable')) + mockUseCreateOnramp.mockReturnValue({ + createOnramp: mockCreateOnramp, + isLoading: false, + error: 'Service unavailable', + }) + resetQueryState({ step: 'inputAmount', amount: '100' }) + + renderWithProviders() + + // Click Continue + await act(async () => { + fireEvent.click(screen.getByText('Continue')) + }) + + // Click Confirm in modal + await act(async () => { + fireEvent.click(screen.getByTestId('confirm-onramp')) + }) + + // After error, the setError should have been called + expect(mockOnrampFlow.setError).toHaveBeenCalled() + }) + + test('limits blocking disables Continue and shows LimitsWarningCard', () => { + const { getLimitsWarningCardProps } = require('@/features/limits/utils') + getLimitsWarningCardProps.mockReturnValue({ + variant: 'error', + message: 'Monthly limit exceeded', + }) + mockUseLimitsValidation.mockReturnValue({ + isBlocking: true, + isWarning: false, + currency: 'USD', + }) + resetQueryState({ step: 'inputAmount', amount: '50000' }) + + renderWithProviders() + + expect(screen.getByTestId('limits-warning-card')).toBeInTheDocument() + expect(screen.getByText('Continue')).toBeDisabled() + }) + + test('showDetails step with onrampData shows AddMoneyBankDetails', () => { + mockOnrampFlow.onrampData = { + transferId: 'transfer-123', + depositInstructions: { + amount: '100', + currency: 'EUR', + depositMessage: 'REF1234567890', + bankName: 'Deutsche Bank', + }, + } + resetQueryState({ step: 'showDetails', amount: '100' }) + + renderWithProviders() + + expect(screen.getByTestId('add-money-bank-details')).toBeInTheDocument() + }) + + test('showDetails step without onrampData redirects to inputAmount', () => { + resetQueryState({ step: 'showDetails', amount: '100' }) + + renderWithProviders() + + // Without onrampData.transferId, useEffect redirects to inputAmount + expect(mockSetQueryState).toHaveBeenCalledWith(expect.objectContaining({ step: 'inputAmount' })) + }) + + test('Bridge TOS guard shows TOS step', async () => { + mockUseBridgeTosGuard.mockReturnValue({ + guardWithTos: jest.fn(() => true), + showBridgeTos: true, + hideTos: jest.fn(), + }) + resetQueryState({ step: 'inputAmount', amount: '100' }) + + renderWithProviders() + + expect(screen.getByTestId('bridge-tos-step')).toBeInTheDocument() + }) + + test('loading state when user is null and no step', () => { + mockUseAuth.mockReturnValue({ + user: null, + isFetchingUser: true, + fetchUser: jest.fn(), + }) + resetQueryState({}) + + renderWithProviders() + + expect(screen.getByTestId('peanut-loading')).toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 6: US Bank Page (static route) +// ============================================================ +describe('GROUP 6: US Bank Page', () => { + test('renders AddMoneyBankDetails with flow=add-money', () => { + const USBankPage = require('../us/bank/page').default + renderWithProviders() + + expect(screen.getByTestId('add-money-bank-details')).toBeInTheDocument() + expect(screen.getByText('Bank Details (flow: add-money)')).toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 7: Manteca Deposit (AR, BR) +// ============================================================ +describe('GROUP 7: Manteca Deposit (Regional Method)', () => { + test('AR + manteca renders MantecaAddMoney', () => { + setParams({ country: 'argentina', 'regional-method': 'manteca' }) + renderWithProviders() + + expect(screen.getByTestId('manteca-add-money')).toBeInTheDocument() + }) + + test('unsupported country + manteca renders nothing', () => { + setParams({ country: 'germany', 'regional-method': 'manteca' }) + const { container } = renderWithProviders() + + expect(container.innerHTML).toBe('') + }) + + test('unsupported regional method renders nothing', () => { + setParams({ country: 'argentina', 'regional-method': 'stripe' }) + const { container } = renderWithProviders() + + expect(container.innerHTML).toBe('') + }) +}) + +// ============================================================ +// GROUP 8: InputAmountStep Component (shared by Manteca + Bridge) +// ============================================================ +describe('GROUP 8: InputAmountStep Component', () => { + // Test InputAmountStep directly — it's the shared sub-component + // used by both MantecaAddMoney and OnrampBankPage + let InputAmountStep: React.ComponentType + + beforeAll(() => { + // Unmock InputAmountStep (it was not explicitly mocked, so just require) + InputAmountStep = require('@/components/AddMoney/components/InputAmountStep').default + }) + + test('renders amount input, title, and Continue button', () => { + renderWithProviders( + + ) + + expect(screen.getByText('How much do you want to add?')).toBeInTheDocument() + expect(screen.getByTestId('amount-input')).toBeInTheDocument() + expect(screen.getByText('Continue')).toBeInTheDocument() + }) + + test('Continue disabled when no amount', () => { + renderWithProviders( + + ) + + expect(screen.getByText('Continue')).toBeDisabled() + }) + + test('Continue enabled with valid amount', () => { + renderWithProviders( + + ) + + expect(screen.getByText('Continue')).not.toBeDisabled() + }) + + test('Continue disabled when limits blocking', () => { + const { getLimitsWarningCardProps } = require('@/features/limits/utils') + getLimitsWarningCardProps.mockReturnValue({ + variant: 'error', + message: 'Limit exceeded', + }) + + renderWithProviders( + + ) + + expect(screen.getByText('Continue')).toBeDisabled() + expect(screen.getByTestId('limits-warning-card')).toBeInTheDocument() + }) + + test('error shown when error prop set and limits not blocking', () => { + renderWithProviders( + + ) + + expect(screen.getByTestId('error-alert')).toBeInTheDocument() + expect(screen.getByText('Deposit amount must be at least $1')).toBeInTheDocument() + }) + + test('error hidden when limits blocking (even if error prop set)', () => { + const { getLimitsWarningCardProps } = require('@/features/limits/utils') + getLimitsWarningCardProps.mockReturnValue({ + variant: 'error', + message: 'Limit exceeded', + }) + + renderWithProviders( + + ) + + expect(screen.queryByTestId('error-alert')).not.toBeInTheDocument() + }) + + test('loading state shows loading button', () => { + renderWithProviders( + + ) + + // Button should be disabled when loading + expect(screen.getByText('Continue')).toBeDisabled() + }) + + test('currency data loading shows PeanutLoading', () => { + renderWithProviders( + + ) + + expect(screen.getByTestId('peanut-loading')).toBeInTheDocument() + }) + + test('onSubmit called when Continue clicked', async () => { + const onSubmit = jest.fn() + renderWithProviders( + + ) + + await act(async () => { + fireEvent.click(screen.getByText('Continue')) + }) + + expect(onSubmit).toHaveBeenCalled() + }) +}) diff --git a/src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx b/src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx new file mode 100644 index 0000000000..b0716cb52d --- /dev/null +++ b/src/app/(mobile-ui)/qr-pay/__tests__/qr-pay-states.test.tsx @@ -0,0 +1,1306 @@ +/** + * QR Pay Page — State Matrix Tests + * + * Tests the QRPayPage component across 30 state combinations covering: + * loading/KYC gate, payment form, processing, success, error, and edge cases. + * + * Strategy: mock every hook and service at the module level, then configure + * per-test via mockReturnValue / mockImplementation. + */ +import React from 'react' +import { render, screen, fireEvent, waitFor, act } from '@testing-library/react' +import { QueryClient, QueryClientProvider } from '@tanstack/react-query' +import { parseUnits } from 'viem' + +// ---------- module-level mocks (must be before imports that depend on them) ---------- + +// next/navigation +const mockRouterPush = jest.fn() +const mockRouterBack = jest.fn() +const mockSearchParams = new Map() + +jest.mock('next/navigation', () => ({ + useSearchParams: () => ({ + get: (key: string) => mockSearchParams.get(key) ?? null, + }), + useRouter: () => ({ + push: mockRouterPush, + back: mockRouterBack, + replace: jest.fn(), + prefetch: jest.fn(), + }), + usePathname: () => '/qr-pay', +})) + +// next/image — render a plain +jest.mock('next/image', () => ({ + __esModule: true, + default: (props: any) => { + // next/image uses 'fill' boolean; strip non-DOM props + const { priority, layout, objectFit, fill, ...rest } = props + return + }, +})) + +// Sentry +jest.mock('@sentry/nextjs', () => ({ + captureException: jest.fn(), +})) + +// PostHog +jest.mock('posthog-js', () => ({ + __esModule: true, + default: { capture: jest.fn(), init: jest.fn() }, +})) + +// Sound player — no-op +jest.mock('@/components/Global/SoundPlayer', () => ({ + SoundPlayer: () => null, +})) + +// Confetti — no-op +jest.mock('@/utils/confetti', () => ({ + shootDoubleStarConfetti: jest.fn(), +})) + +// Assets — stubs +jest.mock('@/assets/payment-apps', () => ({ + MERCADO_PAGO: '/mercado-pago.png', + PIX: '/pix.png', + SIMPLEFI: '/simplefi.png', +})) + +jest.mock('@/assets', () => ({ + PeanutGuyGIF: '/peanut-guy.gif', + STAR_STRAIGHT_ICON: '/star.png', +})) + +// ---------- hooks & services ---------- + +const mockUseQrKycGate = jest.fn() +jest.mock('@/hooks/useQrKycGate', () => ({ + QrKycState: { + LOADING: 'loading', + PROCEED_TO_PAY: 'proceed_to_pay', + REQUIRES_IDENTITY_VERIFICATION: 'requires_identity_verification', + IDENTITY_VERIFICATION_IN_PROGRESS: 'identity_verification_in_progress', + }, + useQrKycGate: (...args: any[]) => mockUseQrKycGate(...args), +})) + +const mockUseAuth = jest.fn() +jest.mock('@/context/authContext', () => ({ + useAuth: () => mockUseAuth(), +})) + +const mockUseWallet = jest.fn() +jest.mock('@/hooks/wallet/useWallet', () => ({ + useWallet: () => mockUseWallet(), +})) + +const mockSignTransferUserOp = jest.fn() +jest.mock('@/hooks/wallet/useSignUserOp', () => ({ + useSignUserOp: () => ({ signTransferUserOp: mockSignTransferUserOp }), +})) + +const mockUseTransactionDetailsDrawer = jest.fn() +jest.mock('@/hooks/useTransactionDetailsDrawer', () => ({ + useTransactionDetailsDrawer: () => mockUseTransactionDetailsDrawer(), +})) + +jest.mock('@/hooks/useTransactionHistory', () => ({ + EHistoryEntryType: { MANTECA_QR_PAYMENT: 'MANTECA_QR_PAYMENT', SIMPLEFI_QR_PAYMENT: 'SIMPLEFI_QR_PAYMENT' }, + EHistoryUserRole: { SENDER: 'SENDER' }, +})) + +jest.mock('@/components/TransactionDetails/TransactionDetailsDrawer', () => ({ + TransactionDetailsDrawer: () => null, +})) + +const mockMantecaApi = { + initiateQrPayment: jest.fn(), + completeQrPaymentWithSignedTx: jest.fn(), + claimPerk: jest.fn(), +} +jest.mock('@/services/manteca', () => ({ + mantecaApi: mockMantecaApi, +})) + +const mockSimplefiApi = { + initiateQrPayment: jest.fn(), +} +jest.mock('@/services/simplefi', () => ({ + simplefiApi: mockSimplefiApi, +})) + +jest.mock('@/app/actions/currency', () => ({ + getCurrencyPrice: jest.fn(() => Promise.resolve({ sell: 1200, buy: 1250 })), +})) + +jest.mock('@/app/actions/increase-limits', () => ({ + initiateIncreaseLimits: jest.fn(), +})) + +const mockIsPaymentProcessorQR = jest.fn() +const mockParseSimpleFiQr = jest.fn() +jest.mock('@/components/Global/DirectSendQR/utils', () => ({ + isPaymentProcessorQR: (...args: any[]) => mockIsPaymentProcessorQR(...args), + parseSimpleFiQr: (...args: any[]) => mockParseSimpleFiQr(...args), + EQrType: { + MERCADO_PAGO: 'MERCADO_PAGO', + ARGENTINA_QR3: 'ARGENTINA_QR3', + PIX: 'PIX', + SIMPLEFI_STATIC: 'SIMPLEFI_STATIC', + SIMPLEFI_DYNAMIC: 'SIMPLEFI_DYNAMIC', + SIMPLEFI_USER_SPECIFIED: 'SIMPLEFI_USER_SPECIFIED', + }, + NAME_BY_QR_TYPE: { + MERCADO_PAGO: 'Mercado Pago', + ARGENTINA_QR3: 'QR Interoperable', + PIX: 'PIX', + SIMPLEFI_STATIC: 'SimpleFi', + SIMPLEFI_DYNAMIC: 'SimpleFi', + SIMPLEFI_USER_SPECIFIED: 'SimpleFi', + }, +})) + +const mockUseLimitsValidation = jest.fn() +jest.mock('@/features/limits/hooks/useLimitsValidation', () => ({ + useLimitsValidation: (...args: any[]) => mockUseLimitsValidation(...args), +})) + +jest.mock('@/features/limits/components/LimitsWarningCard', () => ({ + __esModule: true, + default: (props: any) =>
, +})) + +jest.mock('@/features/limits/utils', () => ({ + getLimitsWarningCardProps: jest.fn(() => null), + isBrUserEligibleForLimitIncrease: jest.fn(() => false), +})) + +const mockUseKycStatus = jest.fn() +jest.mock('@/hooks/useKycStatus', () => ({ + __esModule: true, + default: () => mockUseKycStatus(), +})) + +jest.mock('@/hooks/useSumsubActionFlow', () => ({ + useSumsubActionFlow: () => ({ + showWrapper: false, + accessToken: null, + handleClose: jest.fn(), + handleSdkComplete: jest.fn(), + refreshToken: jest.fn(), + handleInitiate: jest.fn(), + isLoading: false, + }), +})) + +jest.mock('@/hooks/useLimits', () => ({ + useLimits: () => ({ + mantecaLimits: null, + refetch: jest.fn(), + }), +})) + +jest.mock('@/hooks/useWebSocket', () => ({ + useWebSocket: jest.fn(), +})) + +jest.mock('@/hooks/usePointsCalculation', () => ({ + usePointsCalculation: () => ({ + pointsData: null, + pointsDivRef: { current: null }, + }), +})) + +jest.mock('@/hooks/usePointsConfetti', () => ({ + usePointsConfetti: jest.fn(), +})) + +jest.mock('@/utils/history.utils', () => ({ + completeHistoryEntry: jest.fn((e: any) => Promise.resolve(e)), +})) + +jest.mock('@/utils/general.utils', () => ({ + isTxReverted: jest.fn(() => false), + saveRedirectUrl: jest.fn(), + formatNumberForDisplay: jest.fn((v: any) => v ?? '0'), +})) + +jest.mock('@/utils/perk.utils', () => ({ + getShakeClass: jest.fn(() => ''), +})) + +jest.mock('@/utils/qr-payment.utils', () => ({ + calculateSavingsInCents: jest.fn(() => 0), + isArgentinaMantecaQrPayment: jest.fn(() => false), + getSavingsMessage: jest.fn(() => ''), +})) + +jest.mock('@/config/underMaintenance.config', () => ({ + __esModule: true, + default: { disabledPaymentProviders: [] as string[] }, +})) + +jest.mock('@/context/ModalsContext', () => ({ + useModalsContext: () => ({ + setIsSupportModalOpen: jest.fn(), + openSupportWithMessage: jest.fn(), + }), +})) + +// Mock complex UI components that are hard to render in jsdom +jest.mock('@/components/Global/AmountInput', () => ({ + __esModule: true, + default: (props: any) => ( +
+ { + props.setPrimaryAmount?.(e.target.value) + props.setSecondaryAmount?.(e.target.value) + }} + disabled={props.disabled} + /> +
+ ), +})) + +jest.mock('@/components/Global/PeanutLoading', () => ({ + __esModule: true, + default: (props: any) => ( +
{props.message && {props.message}}
+ ), +})) + +jest.mock('@/components/Global/NavHeader', () => ({ + __esModule: true, + default: (props: any) =>
{props.title}
, +})) + +jest.mock('@/components/Global/Card', () => ({ + __esModule: true, + default: React.forwardRef((props: any, ref: any) => ( +
+ {props.children} +
+ )), +})) + +jest.mock('@/components/0_Bruddle/Button', () => ({ + Button: (props: any) => ( + + ), +})) + +jest.mock('@/components/Global/Icons/Icon', () => ({ + Icon: (props: any) => , +})) + +jest.mock('@/components/Global/ErrorAlert', () => ({ + __esModule: true, + default: (props: any) =>
{props.description}
, +})) + +jest.mock('@/components/Global/ActionModal', () => ({ + __esModule: true, + default: (props: any) => + props.visible ? ( +
+

{props.title}

+

{props.description}

+ {props.ctas?.map((cta: any, i: number) => ( + + ))} +
+ ) : null, +})) + +jest.mock('@/components/Kyc/PeanutDoesntStoreAnyPersonalInformation', () => ({ + PeanutDoesntStoreAnyPersonalInformation: () => null, +})) + +jest.mock('@/components/Kyc/SumsubKycWrapper', () => ({ + SumsubKycWrapper: () => null, +})) + +jest.mock('@/components/Payment/PaymentInfoRow', () => ({ + PaymentInfoRow: (props: any) =>
{props.label}: {props.value}
, +})) + +jest.mock('@/components/Common/PointsCard', () => ({ + __esModule: true, + default: () =>
, +})) + +jest.mock('@/constants/analytics.consts', () => ({ + ANALYTICS_EVENTS: { + REWARD_CLAIM_SHOWN: 'reward_claim_shown', + SURPRISE_MOMENT_SHOWN: 'surprise_moment_shown', + REWARD_CLAIMED: 'reward_claimed', + REWARD_CLAIM_DISMISSED: 'reward_claim_dismissed', + }, +})) + +jest.mock('@/constants/query.consts', () => ({ + TRANSACTIONS: 'transactions', +})) + +jest.mock('@/services/services.types', () => ({ + PointsAction: { MANTECA_QR_PAYMENT: 'manteca_qr_payment' }, +})) + +// ---------- import component under test AFTER all mocks ---------- +import QRPayPage from '../page' + +// ---------- helpers ---------- + +function setSearchParams(params: Record) { + mockSearchParams.clear() + Object.entries(params).forEach(([k, v]) => mockSearchParams.set(k, v)) +} + +function createQueryClient() { + return new QueryClient({ + defaultOptions: { + queries: { retry: false, gcTime: 0 }, + }, + }) +} + +// Loading state context provider +const LoadingStateProvider = ({ children }: { children: React.ReactNode }) => { + const loadingStateContext = require('@/context').loadingStateContext + const [loadingState, setLoadingState] = React.useState('Idle') + const isLoading = loadingState !== 'Idle' + return ( + + {children} + + ) +} + +// We need to mock the context module itself since it's imported via { loadingStateContext } +const mockSetLoadingState = jest.fn() +jest.mock('@/context', () => ({ + loadingStateContext: React.createContext({ + loadingState: 'Idle' as string, + setLoadingState: (s: string) => {}, + isLoading: false, + }), +})) + +function renderQrPay(params: Record = {}) { + setSearchParams(params) + const queryClient = createQueryClient() + const { loadingStateContext } = require('@/context') + + const LoadingProvider = ({ children }: { children: React.ReactNode }) => { + const [loadingState, setLoadingState] = React.useState('Idle') + const isLoading = loadingState !== 'Idle' + return ( + + {children} + + ) + } + + return render( + + + + + + ) +} + +// ---------- default mock values ---------- + +function applyDefaults() { + mockUseQrKycGate.mockReturnValue({ + kycGateState: 'proceed_to_pay', + shouldBlockPay: false, + }) + + mockUseAuth.mockReturnValue({ + user: { user: { username: 'test-user' } }, + isFetchingUser: false, + fetchUser: jest.fn(), + }) + + mockUseWallet.mockReturnValue({ + balance: parseUnits('100', 6), // $100 USDC + sendMoney: jest.fn(), + }) + + mockUseTransactionDetailsDrawer.mockReturnValue({ + openTransactionDetails: jest.fn(), + selectedTransaction: null, + isDrawerOpen: false, + closeTransactionDetails: jest.fn(), + }) + + mockUseLimitsValidation.mockReturnValue({ + isBlocking: false, + isWarning: false, + currency: 'USD', + }) + + mockUseKycStatus.mockReturnValue({ + isUserMantecaKycApproved: true, + }) + + mockIsPaymentProcessorQR.mockReturnValue(true) + mockParseSimpleFiQr.mockReturnValue(null) + + // Manteca payment lock — returned by TanStack useQuery + mockMantecaApi.initiateQrPayment.mockResolvedValue({ + code: 'LOCK123', + type: 'QR3_PAYMENT', + companyId: 'c1', + userId: 'u1', + userNumberId: 'un1', + userExternalId: 'ue1', + paymentRecipientName: 'Test Merchant', + paymentRecipientLegalId: 'legal1', + paymentAssetAmount: '12000', + paymentAsset: 'ARS', + paymentPrice: '1200', + paymentAgainstAmount: '10', + paymentAgainst: 'USD', + expireAt: '2026-04-16T23:59:59Z', + creationTime: '2026-04-16T00:00:00Z', + }) + + mockMantecaApi.completeQrPaymentWithSignedTx.mockResolvedValue({ + id: 'qp1', + externalId: 'ext1', + sessionId: 's1', + status: 'completed', + currentStage: 'done', + stages: [], + type: 'QR3_PAYMENT', + details: { + depositAddress: '0x123', + paymentAsset: 'ARS', + paymentAgainst: 'USD', + paymentAgainstAmount: '10', + paymentAssetAmount: '12000', + paymentPrice: '1200', + priceExpireAt: '2026-04-16T23:59:59Z', + merchant: { name: 'Test Merchant' }, + }, + }) + + mockMantecaApi.claimPerk.mockResolvedValue({ + success: true, + perk: { + amountSponsored: 0.5, + discountPercentage: 5, + txHash: '0xabc', + }, + }) + + mockSimplefiApi.initiateQrPayment.mockResolvedValue({ + id: 'sf1', + usdAmount: '10', + currency: 'ARS', + currencyAmount: '12000', + price: '1200', + address: '0xsf', + }) + + mockSignTransferUserOp.mockResolvedValue({ + signedUserOp: { + sender: '0x1', + nonce: '0x0', + callData: '0x', + signature: '0x', + callGasLimit: '0x0', + verificationGasLimit: '0x0', + preVerificationGas: '0x0', + factory: null, + factoryData: null, + maxFeePerGas: '0x0', + maxPriorityFeePerGas: '0x0', + paymaster: null, + paymasterData: null, + paymasterVerificationGasLimit: '0x0', + paymasterPostOpGasLimit: '0x0', + }, + chainId: 137, + entryPointAddress: '0xentry', + }) +} + +// ---------- test suites ---------- + +beforeEach(() => { + jest.clearAllMocks() + mockSearchParams.clear() + applyDefaults() +}) + +// ============================================================ +// GROUP 1: Loading & KYC Gate +// ============================================================ +describe('GROUP 1: Loading & KYC Gate', () => { + test('KYC loading shows PeanutLoading', () => { + mockUseQrKycGate.mockReturnValue({ + kycGateState: 'loading', + shouldBlockPay: true, + }) + + renderQrPay({ qrCode: 'mercadopago://pay?id=123', type: 'MERCADO_PAGO', t: '1' }) + expect(screen.getByTestId('peanut-loading')).toBeInTheDocument() + }) + + test('KYC requires verification shows ActionModal with verify button', () => { + mockUseQrKycGate.mockReturnValue({ + kycGateState: 'requires_identity_verification', + shouldBlockPay: true, + }) + + renderQrPay({ qrCode: 'mercadopago://pay?id=123', type: 'MERCADO_PAGO', t: '1' }) + + const modal = screen.getByTestId('action-modal') + expect(modal).toBeInTheDocument() + expect(screen.getByText('Verify your identity to continue')).toBeInTheDocument() + expect(screen.getByText('Verify now')).toBeInTheDocument() + }) + + test('KYC verification in progress shows ActionModal with continue button', () => { + mockUseQrKycGate.mockReturnValue({ + kycGateState: 'identity_verification_in_progress', + shouldBlockPay: true, + }) + + renderQrPay({ qrCode: 'mercadopago://pay?id=123', type: 'MERCADO_PAGO', t: '1' }) + + const modal = screen.getByTestId('action-modal') + expect(modal).toBeInTheDocument() + expect(screen.getByText('Complete your verification')).toBeInTheDocument() + expect(screen.getByText('Continue verification')).toBeInTheDocument() + }) + + test('KYC passed but payment data still loading shows PeanutLoading', async () => { + // KYC passed, but Manteca payment lock hasn't loaded yet + mockMantecaApi.initiateQrPayment.mockReturnValue(new Promise(() => {})) // never resolves + + renderQrPay({ qrCode: 'mercadopago://pay?id=123', type: 'MERCADO_PAGO', t: '1' }) + + // Should show loading because payment data is not available yet + await waitFor(() => { + expect(screen.getByTestId('peanut-loading')).toBeInTheDocument() + }) + }) + + test('Invalid QR code shows error card', async () => { + mockIsPaymentProcessorQR.mockReturnValue(false) + + renderQrPay({ qrCode: 'not-a-valid-qr', type: 'MERCADO_PAGO', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('Invalid QR code scanned')).toBeInTheDocument() + }) + }) +}) + +// ============================================================ +// GROUP 2: Payment Form States +// ============================================================ +describe('GROUP 2: Payment Form States', () => { + // Helper: set up a Manteca PIX payment with a loaded payment lock + function setupMantecaPayment(overrides: Record = {}) { + const defaultLock = { + code: 'LOCK123', + type: 'PIX', + companyId: 'c1', + userId: 'u1', + userNumberId: 'un1', + userExternalId: 'ue1', + paymentRecipientName: 'PIX Merchant', + paymentRecipientLegalId: 'legal1', + paymentAssetAmount: '92', + paymentAsset: 'BRL', + paymentPrice: '5', + paymentAgainstAmount: '18.4', + paymentAgainst: 'USD', + expireAt: '2026-04-16T23:59:59Z', + creationTime: '2026-04-16T00:00:00Z', + ...overrides, + } + mockMantecaApi.initiateQrPayment.mockResolvedValue(defaultLock) + } + + test('Manteca PIX form ready shows merchant card + amount input + pay button', async () => { + setupMantecaPayment() + + renderQrPay({ qrCode: 'pix://payment?id=123', type: 'PIX', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('PIX Merchant')).toBeInTheDocument() + }) + + expect(screen.getByTestId('amount-input')).toBeInTheDocument() + expect(screen.getByRole('button', { name: 'Pay' })).toBeInTheDocument() + }) + + test('SimpleFi static form ready shows amount disabled + pay button', async () => { + mockParseSimpleFiQr.mockReturnValue({ + type: 'SIMPLEFI_STATIC', + merchantSlug: 'cool-coffee', + }) + + renderQrPay({ qrCode: 'simplefi://static/cool-coffee', type: 'SIMPLEFI_STATIC', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('Cool Coffee')).toBeInTheDocument() + }) + + // Amount should be disabled for static SimpleFi (preset amount) + const amountInput = screen.getByTestId('amount-input') + expect(amountInput).toBeInTheDocument() + }) + + test('Insufficient balance shows pay button disabled + error', async () => { + // Set balance to $5 but payment needs $18.4 + mockUseWallet.mockReturnValue({ + balance: parseUnits('5', 6), + sendMoney: jest.fn(), + }) + + setupMantecaPayment() + + renderQrPay({ qrCode: 'pix://payment?id=123', type: 'PIX', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('PIX Merchant')).toBeInTheDocument() + }) + + // The balance error check happens via useEffect + await waitFor(() => { + const errorAlert = screen.queryByTestId('error-alert') + expect(errorAlert).toBeInTheDocument() + expect(errorAlert).toHaveTextContent('Not enough balance') + }) + }) + + test('Below minimum amount shows ErrorAlert', async () => { + setupMantecaPayment({ + code: 'LOCK_LOW', + paymentAgainstAmount: '0.05', // below MIN_QR_PAYMENT_AMOUNT (0.1) + paymentAssetAmount: '60', + }) + + renderQrPay({ qrCode: 'pix://payment?id=123', type: 'PIX', t: '1' }) + + await waitFor(() => { + const errorAlert = screen.queryByTestId('error-alert') + expect(errorAlert).toBeInTheDocument() + expect(errorAlert).toHaveTextContent('at least') + }) + }) + + test('Above maximum amount shows ErrorAlert', async () => { + setupMantecaPayment({ + code: 'LOCK_HIGH', + paymentAgainstAmount: '2500', // above MAX_QR_PAYMENT_AMOUNT (2000) + paymentAssetAmount: '3000000', + }) + + mockUseWallet.mockReturnValue({ + balance: parseUnits('5000', 6), + sendMoney: jest.fn(), + }) + + renderQrPay({ qrCode: 'pix://payment?id=123', type: 'PIX', t: '1' }) + + await waitFor(() => { + const errorAlert = screen.queryByTestId('error-alert') + expect(errorAlert).toBeInTheDocument() + expect(errorAlert).toHaveTextContent('exceeds maximum') + }) + }) + + test('Limits blocking shows LimitsWarningCard', async () => { + const { getLimitsWarningCardProps } = require('@/features/limits/utils') + getLimitsWarningCardProps.mockReturnValue({ + variant: 'error', + message: 'Monthly limit exceeded', + }) + mockUseLimitsValidation.mockReturnValue({ + isBlocking: true, + isWarning: false, + currency: 'USD', + }) + + setupMantecaPayment() + + renderQrPay({ qrCode: 'pix://payment?id=123', type: 'PIX', t: '1' }) + + await waitFor(() => { + expect(screen.getByTestId('limits-warning-card')).toBeInTheDocument() + }) + }) + + test('Provider maintenance shows maintenance banner', async () => { + const maintenanceConfig = require('@/config/underMaintenance.config').default + maintenanceConfig.disabledPaymentProviders = ['MANTECA'] + + setupMantecaPayment() + + renderQrPay({ qrCode: 'pix://payment?id=123', type: 'PIX', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('Service Temporarily Unavailable')).toBeInTheDocument() + }) + + // Clean up + maintenanceConfig.disabledPaymentProviders = [] + }) +}) + +// ============================================================ +// GROUP 3: Processing States +// ============================================================ +describe('GROUP 3: Processing States', () => { + test('Manteca payment processing shows PeanutLoading', async () => { + mockMantecaApi.initiateQrPayment.mockResolvedValue({ + code: 'LOCK123', + type: 'QR3_PAYMENT', + companyId: 'c1', + userId: 'u1', + userNumberId: 'un1', + userExternalId: 'ue1', + paymentRecipientName: 'Test Merchant', + paymentRecipientLegalId: 'legal1', + paymentAssetAmount: '12000', + paymentAsset: 'ARS', + paymentPrice: '1200', + paymentAgainstAmount: '10', + paymentAgainst: 'USD', + expireAt: '2026-04-16T23:59:59Z', + creationTime: '2026-04-16T00:00:00Z', + }) + + // Make completeQrPayment hang to simulate processing + mockMantecaApi.completeQrPaymentWithSignedTx.mockReturnValue(new Promise(() => {})) + + renderQrPay({ qrCode: 'mercadopago://pay?id=123', type: 'MERCADO_PAGO', t: '1' }) + + // Wait for form to appear + await waitFor(() => { + expect(screen.getByText('Test Merchant')).toBeInTheDocument() + }) + + // Click pay + const payButton = screen.getByRole('button', { name: 'Pay' }) + await act(async () => { + fireEvent.click(payButton) + }) + + // After clicking pay, loading state should trigger PeanutLoading + // (signTransferUserOp resolves, then completeQrPayment hangs) + await waitFor(() => { + // Component is in loading state - either shows PeanutLoading or loading button text + const loadingEl = screen.queryByTestId('peanut-loading') + const loadingButton = screen.queryByText('Loading...') + expect(loadingEl || loadingButton).toBeTruthy() + }) + }) + + test('SimpleFi WebSocket waiting shows processing indicator', async () => { + const mockSendMoney = jest.fn().mockResolvedValue({ + userOpHash: '0xhash', + receipt: null, // null receipt means waiting for confirmation + }) + mockUseWallet.mockReturnValue({ + balance: parseUnits('100', 6), + sendMoney: mockSendMoney, + }) + + mockParseSimpleFiQr.mockReturnValue({ + type: 'SIMPLEFI_STATIC', + merchantSlug: 'cool-coffee', + }) + + renderQrPay({ qrCode: 'simplefi://static/cool-coffee', type: 'SIMPLEFI_STATIC', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('Cool Coffee')).toBeInTheDocument() + }) + + // Click pay + const payButton = screen.getByRole('button', { name: 'Pay' }) + await act(async () => { + fireEvent.click(payButton) + }) + + // Should show processing state + await waitFor(() => { + const processingText = screen.queryByText('Processing Payment...') + const loadingEl = screen.queryByTestId('peanut-loading') + expect(processingText || loadingEl).toBeTruthy() + }) + }) + + test('Wallet confirmation pending shows ErrorAlert', async () => { + mockMantecaApi.initiateQrPayment.mockResolvedValue({ + code: 'LOCK123', + type: 'QR3_PAYMENT', + companyId: 'c1', + userId: 'u1', + userNumberId: 'un1', + userExternalId: 'ue1', + paymentRecipientName: 'Test Merchant', + paymentRecipientLegalId: 'legal1', + paymentAssetAmount: '12000', + paymentAsset: 'ARS', + paymentPrice: '1200', + paymentAgainstAmount: '10', + paymentAgainst: 'USD', + expireAt: '2026-04-16T23:59:59Z', + creationTime: '2026-04-16T00:00:00Z', + }) + + // signTransferUserOp rejects with "not allowed" — wallet confirmation denied + mockSignTransferUserOp.mockRejectedValue(new Error('User action is not allowed')) + + renderQrPay({ qrCode: 'mercadopago://pay?id=123', type: 'MERCADO_PAGO', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('Test Merchant')).toBeInTheDocument() + }) + + const payButton = screen.getByRole('button', { name: 'Pay' }) + await act(async () => { + fireEvent.click(payButton) + }) + + await waitFor(() => { + const errorAlert = screen.getByTestId('error-alert') + expect(errorAlert).toHaveTextContent('confirm the transaction') + }) + }) +}) + +// ============================================================ +// GROUP 4: Success States +// ============================================================ +describe('GROUP 4: Success States', () => { + async function completeMantecaPayment(qrPaymentOverrides: Record = {}) { + const baseQrPayment = { + id: 'qp1', + externalId: 'ext1', + sessionId: 's1', + status: 'completed', + currentStage: 'done', + stages: [], + type: 'QR3_PAYMENT', + details: { + depositAddress: '0x123', + paymentAsset: 'ARS', + paymentAgainst: 'USD', + paymentAgainstAmount: '10', + paymentAssetAmount: '12000', + paymentPrice: '1200', + priceExpireAt: '2026-04-16T23:59:59Z', + merchant: { name: 'Test Merchant' }, + }, + ...qrPaymentOverrides, + } + mockMantecaApi.completeQrPaymentWithSignedTx.mockResolvedValue(baseQrPayment) + + renderQrPay({ qrCode: 'mercadopago://pay?id=123', type: 'MERCADO_PAGO', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('Test Merchant')).toBeInTheDocument() + }) + + const payButton = screen.getByRole('button', { name: 'Pay' }) + await act(async () => { + fireEvent.click(payButton) + }) + + return baseQrPayment + } + + test('Manteca success, no perk shows success card, no reward', async () => { + await completeMantecaPayment() + + await waitFor(() => { + expect(screen.getByText(/You paid/)).toBeInTheDocument() + }) + + expect(screen.queryByText('You earned a reward!')).not.toBeInTheDocument() + expect(screen.getByText('Split this bill')).toBeInTheDocument() + }) + + test('Manteca success, perk eligible shows hold-to-claim button', async () => { + await completeMantecaPayment({ + perk: { + eligible: true, + discountPercentage: 5, + amountSponsored: 0.5, + }, + }) + + await waitFor(() => { + expect(screen.getByText('You earned a reward!')).toBeInTheDocument() + }) + + // The button renders "Claim Reward" twice (visible text + clip-path overlay) + // Use getByRole to target the button element + expect(screen.getByRole('button', { name: /Claim Reward/i })).toBeInTheDocument() + }) + + test('Perk claim in progress shows disabled button + progress', async () => { + await completeMantecaPayment({ + perk: { + eligible: true, + discountPercentage: 5, + amountSponsored: 0.5, + }, + }) + + await waitFor(() => { + expect(screen.getByRole('button', { name: /Claim Reward/i })).toBeInTheDocument() + }) + + // Start hold + const claimButton = screen.getByRole('button', { name: /Claim Reward/i }) + await act(async () => { + fireEvent.pointerDown(claimButton) + }) + + // Button should still exist during hold + expect(screen.getByRole('button', { name: /Claim Reward/i })).toBeInTheDocument() + + // Release + await act(async () => { + fireEvent.pointerUp(claimButton) + }) + }) + + test('Perk claimed shows shake class + go home button', async () => { + // Make claimPerk fast for test + jest.useFakeTimers() + + await completeMantecaPayment({ + perk: { + eligible: true, + discountPercentage: 5, + amountSponsored: 0.5, + }, + }) + + await waitFor(() => { + expect(screen.getByRole('button', { name: /Claim Reward/i })).toBeInTheDocument() + }) + + const claimButton = screen.getByRole('button', { name: /Claim Reward/i }) + + // Start hold + await act(async () => { + fireEvent.pointerDown(claimButton) + }) + + // Advance past hold duration (1500ms) + await act(async () => { + jest.advanceTimersByTime(1600) + }) + + // After claiming, should show "Go to Home" + await waitFor(() => { + expect(screen.getByText('Go to Home')).toBeInTheDocument() + }) + + jest.useRealTimers() + }) + + test('SimpleFi success shows SimpleFi success card', async () => { + const mockSendMoney = jest.fn().mockResolvedValue({ + userOpHash: '0xhash', + receipt: { status: 'success' }, + }) + mockUseWallet.mockReturnValue({ + balance: parseUnits('100', 6), + sendMoney: mockSendMoney, + }) + + mockParseSimpleFiQr.mockReturnValue({ + type: 'SIMPLEFI_STATIC', + merchantSlug: 'cool-coffee', + }) + + // Override useWebSocket to capture the callback and fire it + const { useWebSocket } = require('@/hooks/useWebSocket') + let wsCallback: Function + useWebSocket.mockImplementation((opts: any) => { + wsCallback = opts.onHistoryEntry + }) + + renderQrPay({ qrCode: 'simplefi://static/cool-coffee', type: 'SIMPLEFI_STATIC', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('Cool Coffee')).toBeInTheDocument() + }) + + const payButton = screen.getByRole('button', { name: 'Pay' }) + await act(async () => { + fireEvent.click(payButton) + }) + + // Simulate WebSocket response + await act(async () => { + if (wsCallback) { + await wsCallback({ + uuid: 'sf1', + type: 'SIMPLEFI_QR_PAYMENT', + status: 'approved', + amount: '10', + currency: { code: 'ARS', amount: '12000' }, + extraData: { usdAmount: '10' }, + }) + } + }) + + await waitFor(() => { + const youPaid = screen.queryByText(/You paid/) + expect(youPaid).toBeInTheDocument() + }) + }) + + test('PIX success shows PIX icon', async () => { + renderQrPay({ qrCode: 'pix://payment?id=123', type: 'PIX', t: '1' }) + + mockMantecaApi.initiateQrPayment.mockResolvedValue({ + code: 'LOCK_PIX', + type: 'PIX', + companyId: 'c1', + userId: 'u1', + userNumberId: 'un1', + userExternalId: 'ue1', + paymentRecipientName: 'PIX Store', + paymentRecipientLegalId: 'legal1', + paymentAssetAmount: '92', + paymentAsset: 'BRL', + paymentPrice: '5', + paymentAgainstAmount: '18.4', + paymentAgainst: 'USD', + expireAt: '2026-04-16T23:59:59Z', + creationTime: '2026-04-16T00:00:00Z', + }) + + // Re-render with PIX type + const { unmount } = renderQrPay({ qrCode: 'pix://payment?id=123', type: 'PIX', t: '1' }) + + await waitFor(() => { + const img = screen.queryAllByRole('img').find((el) => el.getAttribute('src') === '/pix.png') + // PIX icon should be present in the merchant card + expect(img || screen.queryByText('PIX Store')).toBeTruthy() + }) + + unmount() + }) + + test('Mercado Pago success shows MP icon', async () => { + renderQrPay({ qrCode: 'mercadopago://pay?id=123', type: 'MERCADO_PAGO', t: '1' }) + + await waitFor(() => { + const img = screen.queryAllByRole('img').find((el) => el.getAttribute('src') === '/mercado-pago.png') + expect(img || screen.queryByText('Test Merchant')).toBeTruthy() + }) + }) + + test('Argentina QR3 success shows savings message', async () => { + const { isArgentinaMantecaQrPayment, calculateSavingsInCents, getSavingsMessage } = + require('@/utils/qr-payment.utils') + + isArgentinaMantecaQrPayment.mockReturnValue(true) + calculateSavingsInCents.mockReturnValue(150) + getSavingsMessage.mockReturnValue('You saved $1.50 vs card!') + + await completeMantecaPayment() + + await waitFor(() => { + expect(screen.getByText(/You paid/)).toBeInTheDocument() + }) + + // Savings message should appear for Argentina QR3 payments + expect(screen.getByText('You saved $1.50 vs card!')).toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 5: Error States +// ============================================================ +describe('GROUP 5: Error States', () => { + test('Transaction reverted shows error card + retry', async () => { + const { isTxReverted } = require('@/utils/general.utils') + isTxReverted.mockReturnValue(true) + + const mockSendMoney = jest.fn().mockResolvedValue({ + userOpHash: '0xhash', + receipt: { status: 'reverted' }, + }) + mockUseWallet.mockReturnValue({ + balance: parseUnits('100', 6), + sendMoney: mockSendMoney, + }) + + mockParseSimpleFiQr.mockReturnValue({ + type: 'SIMPLEFI_STATIC', + merchantSlug: 'cool-coffee', + }) + + renderQrPay({ qrCode: 'simplefi://static/cool-coffee', type: 'SIMPLEFI_STATIC', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('Cool Coffee')).toBeInTheDocument() + }) + + const payButton = screen.getByRole('button', { name: 'Pay' }) + await act(async () => { + fireEvent.click(payButton) + }) + + await waitFor(() => { + const errorAlert = screen.getByTestId('error-alert') + expect(errorAlert).toHaveTextContent('rejected by the network') + }) + + // Reset mock + isTxReverted.mockReturnValue(false) + }) + + test('QR decode failure shows specific error message', async () => { + mockMantecaApi.initiateQrPayment.mockRejectedValue( + new Error('PAYMENT_DESTINATION_DECODING_ERROR') + ) + + renderQrPay({ qrCode: 'mercadopago://pay?id=bad', type: 'MERCADO_PAGO', t: '1' }) + + await waitFor(() => { + expect(screen.getByText(/could not decode/i)).toBeInTheDocument() + }) + }) + + test('SimpleFi timeout shows error + retry', async () => { + jest.useFakeTimers() + + const mockSendMoney = jest.fn().mockResolvedValue({ + userOpHash: '0xhash', + receipt: null, + }) + mockUseWallet.mockReturnValue({ + balance: parseUnits('100', 6), + sendMoney: mockSendMoney, + }) + + mockParseSimpleFiQr.mockReturnValue({ + type: 'SIMPLEFI_STATIC', + merchantSlug: 'cool-coffee', + }) + + renderQrPay({ qrCode: 'simplefi://static/cool-coffee', type: 'SIMPLEFI_STATIC', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('Cool Coffee')).toBeInTheDocument() + }) + + const payButton = screen.getByRole('button', { name: 'Pay' }) + await act(async () => { + fireEvent.click(payButton) + }) + + // Advance 5 minutes for WebSocket timeout + await act(async () => { + jest.advanceTimersByTime(5 * 60 * 1000 + 100) + }) + + await waitFor(() => { + const errorAlert = screen.queryByTestId('error-alert') + expect(errorAlert).toBeInTheDocument() + expect(errorAlert).toHaveTextContent('taking longer than expected') + }) + + jest.useRealTimers() + }) + + test('Manteca API error shows generic error', async () => { + mockMantecaApi.initiateQrPayment.mockRejectedValue(new Error('Network timeout')) + + renderQrPay({ qrCode: 'mercadopago://pay?id=123', type: 'MERCADO_PAGO', t: '1' }) + + await waitFor(() => { + expect(screen.getByText(/currently experiencing issues/i)).toBeInTheDocument() + }) + }) +}) + +// ============================================================ +// GROUP 6: Edge Cases +// ============================================================ +describe('GROUP 6: Edge Cases', () => { + test('No QR code param shows error', async () => { + renderQrPay({ type: 'MERCADO_PAGO', t: '1' }) + + await waitFor(() => { + expect(screen.getByText('Invalid QR code scanned')).toBeInTheDocument() + }) + }) + + test('BR user with limits blocking shows KYC wrapper visible', async () => { + const { getLimitsWarningCardProps, isBrUserEligibleForLimitIncrease } = + require('@/features/limits/utils') + + getLimitsWarningCardProps.mockReturnValue({ + variant: 'error', + message: 'Monthly limit exceeded', + }) + isBrUserEligibleForLimitIncrease.mockReturnValue(true) + + mockUseLimitsValidation.mockReturnValue({ + isBlocking: true, + isWarning: false, + currency: 'BRL', + }) + + renderQrPay({ qrCode: 'mercadopago://pay?id=123', type: 'MERCADO_PAGO', t: '1' }) + + await waitFor(() => { + expect(screen.getByTestId('limits-warning-card')).toBeInTheDocument() + }) + }) + + test('Dynamic QR waiting for merchant amount shows loading indicator', async () => { + mockMantecaApi.initiateQrPayment.mockRejectedValue( + new Error('PAYMENT_DESTINATION_MISSING_AMOUNT') + ) + + renderQrPay({ qrCode: 'mercadopago://pay?id=123', type: 'MERCADO_PAGO', t: '1' }) + + await waitFor(() => { + // The component shows QrPayPageLoading or the "order not ready" modal + const waitingText = screen.queryByText(/Waiting for the merchant/) + const orderNotReady = screen.queryByText(/couldn't get the amount/) + expect(waitingText || orderNotReady).toBeTruthy() + }) + }) +}) diff --git a/src/app/(mobile-ui)/withdraw/__tests__/withdraw-states.test.tsx b/src/app/(mobile-ui)/withdraw/__tests__/withdraw-states.test.tsx new file mode 100644 index 0000000000..48a3064447 --- /dev/null +++ b/src/app/(mobile-ui)/withdraw/__tests__/withdraw-states.test.tsx @@ -0,0 +1,468 @@ +/** + * Withdraw Page — State Matrix Tests + * + * Tests the WithdrawPage component across 15 state combinations covering: + * method selection, amount input, validation, limits, and navigation. + * + * Strategy: mock every hook and service at the module level, then configure + * per-test via mockReturnValue / mockImplementation. + */ +import React from 'react' +import { render, screen, fireEvent, waitFor } from '@testing-library/react' +import { QueryClient, QueryClientProvider } from '@tanstack/react-query' +import { parseUnits } from 'viem' + +// ---------- module-level mocks (must be before imports that depend on them) ---------- + +// next/navigation +const mockRouterPush = jest.fn() +const mockRouterBack = jest.fn() +const mockSearchParams = new Map() + +jest.mock('next/navigation', () => ({ + useSearchParams: () => ({ + get: (key: string) => mockSearchParams.get(key) ?? null, + }), + useRouter: () => ({ + push: mockRouterPush, + back: mockRouterBack, + replace: jest.fn(), + prefetch: jest.fn(), + }), + usePathname: () => '/withdraw', +})) + +// next/image +jest.mock('next/image', () => ({ + __esModule: true, + default: (props: any) => { + const { priority, layout, objectFit, fill, ...rest } = props + return + }, +})) + +// Sentry +jest.mock('@sentry/nextjs', () => ({ + captureException: jest.fn(), +})) + +// PostHog +jest.mock('posthog-js', () => ({ + __esModule: true, + default: { capture: jest.fn(), init: jest.fn() }, +})) + +// ---------- hooks & services ---------- + +const mockSetAmountToWithdraw = jest.fn() +const mockSetError = jest.fn() +const mockSetUsdAmount = jest.fn() +const mockSetSelectedBankAccount = jest.fn() +const mockSetSelectedMethod = jest.fn() +const mockSetShowAllWithdrawMethods = jest.fn() + +const mockWithdrawFlow = { + amountToWithdraw: '', + setAmountToWithdraw: mockSetAmountToWithdraw, + setError: mockSetError, + error: { showError: false, errorMessage: '' }, + setUsdAmount: mockSetUsdAmount, + selectedMethod: null as any, + selectedBankAccount: null as any, + setSelectedBankAccount: mockSetSelectedBankAccount, + setSelectedMethod: mockSetSelectedMethod, + setShowAllWithdrawMethods: mockSetShowAllWithdrawMethods, +} + +jest.mock('@/context/WithdrawFlowContext', () => ({ + useWithdrawFlow: () => mockWithdrawFlow, +})) + +const mockUseWallet = jest.fn() +jest.mock('@/hooks/wallet/useWallet', () => ({ + useWallet: () => mockUseWallet(), +})) + +jest.mock('@/context/tokenSelector.context', () => ({ + tokenSelectorContext: React.createContext({ + selectedTokenData: { price: 1 }, + selectedTokenAddress: '', + selectedChainID: '', + }), +})) + +jest.mock('@/utils/general.utils', () => ({ + formatAmount: jest.fn((v: any) => v ?? '0'), + formatNumberForDisplay: jest.fn((v: any) => v ?? '0'), +})) + +jest.mock('@/utils/bridge.utils', () => ({ + getCountryFromAccount: jest.fn(() => ({ iso2: 'US', path: 'us' })), + getCountryFromPath: jest.fn(() => ({ iso2: 'US' })), + getMinimumAmount: jest.fn(() => 1), +})) + +const mockUseGetExchangeRate = jest.fn() +jest.mock('@/hooks/useGetExchangeRate', () => ({ + __esModule: true, + default: () => mockUseGetExchangeRate(), +})) + +jest.mock('@/interfaces', () => ({ + AccountType: { + IBAN: 'iban', + US: 'us', + GB: 'gb', + CLABE: 'clabe', + }, +})) + +const mockUseLimitsValidation = jest.fn() +jest.mock('@/features/limits/hooks/useLimitsValidation', () => ({ + useLimitsValidation: (...args: any[]) => mockUseLimitsValidation(...args), +})) + +jest.mock('@/features/limits/components/LimitsWarningCard', () => ({ + __esModule: true, + default: (props: any) =>
, +})) + +jest.mock('@/features/limits/utils', () => ({ + getLimitsWarningCardProps: jest.fn(() => null), +})) + +jest.mock('@/constants/zerodev.consts', () => ({ + PEANUT_WALLET_TOKEN_DECIMALS: 6, +})) + +jest.mock('@/constants/analytics.consts', () => ({ + ANALYTICS_EVENTS: { + WITHDRAW_AMOUNT_ENTERED: 'withdraw_amount_entered', + }, +})) + +// Mock complex UI components +jest.mock('@/components/Global/AmountInput', () => ({ + __esModule: true, + default: (props: any) => ( +
+ { + props.setPrimaryAmount?.(e.target.value) + }} + disabled={props.disabled} + /> + {props.walletBalance && {props.walletBalance}} +
+ ), +})) + +jest.mock('@/components/Global/NavHeader', () => ({ + __esModule: true, + default: (props: any) => ( +
+ {props.title} + {props.onPrev && ( + + )} +
+ ), +})) + +jest.mock('@/components/Global/ErrorAlert', () => ({ + __esModule: true, + default: (props: any) => ( +
+ {props.description} +
+ ), +})) + +jest.mock('@/components/0_Bruddle/Button', () => ({ + Button: (props: any) => ( + + ), +})) + +jest.mock('@/components/AddWithdraw/AddWithdrawRouterView', () => ({ + AddWithdrawRouterView: (props: any) => ( +
+ {props.pageTitle} + {props.mainHeading} + +
+ ), +})) + +// ---------- import component under test AFTER all mocks ---------- +import WithdrawPage from '../page' + +// ---------- helpers ---------- + +function setSearchParams(params: Record) { + mockSearchParams.clear() + Object.entries(params).forEach(([k, v]) => mockSearchParams.set(k, v)) +} + +function createQueryClient() { + return new QueryClient({ + defaultOptions: { + queries: { retry: false, gcTime: 0 }, + }, + }) +} + +function renderWithdraw(params: Record = {}) { + setSearchParams(params) + const queryClient = createQueryClient() + return render( + + + + ) +} + +// ---------- default mock values ---------- + +function applyDefaults() { + mockWithdrawFlow.amountToWithdraw = '' + mockWithdrawFlow.error = { showError: false, errorMessage: '' } + mockWithdrawFlow.selectedMethod = null + mockWithdrawFlow.selectedBankAccount = null + + mockUseWallet.mockReturnValue({ + balance: parseUnits('100', 6), + }) + + mockUseGetExchangeRate.mockReturnValue({ + exchangeRate: '1', + }) + + mockUseLimitsValidation.mockReturnValue({ + isBlocking: false, + isWarning: false, + isLoading: false, + currency: 'USD', + }) +} + +// ---------- test suites ---------- + +beforeEach(() => { + jest.clearAllMocks() + mockSearchParams.clear() + applyDefaults() +}) + +// ============================================================ +// GROUP 1: Method Selection +// ============================================================ +describe('GROUP 1: Method Selection', () => { + test('No method selected shows AddWithdrawRouterView', () => { + renderWithdraw() + + expect(screen.getByTestId('add-withdraw-router-view')).toBeInTheDocument() + expect(screen.getByTestId('main-heading')).toHaveTextContent('How would you like to withdraw?') + }) + + test('Method=bank from send flow shows "Send" title and send heading', () => { + renderWithdraw({ method: 'bank' }) + + expect(screen.getByTestId('add-withdraw-router-view')).toBeInTheDocument() + expect(screen.getByTestId('page-title')).toHaveTextContent('Send') + expect(screen.getByTestId('main-heading')).toHaveTextContent('How would you like to send?') + }) + + test('Back from method selection navigates to /home', () => { + renderWithdraw() + + fireEvent.click(screen.getByTestId('router-view-back')) + expect(mockRouterPush).toHaveBeenCalledWith('/home') + }) + + test('Back from bank send method selection navigates to /send', () => { + renderWithdraw({ method: 'bank' }) + + fireEvent.click(screen.getByTestId('router-view-back')) + expect(mockRouterPush).toHaveBeenCalledWith('/send') + }) +}) + +// ============================================================ +// GROUP 2: Amount Input +// ============================================================ +describe('GROUP 2: Amount Input', () => { + test('With method selected shows amount input and continue button', () => { + mockWithdrawFlow.selectedMethod = { type: 'bridge', countryPath: 'us' } + renderWithdraw() + + expect(screen.getByTestId('amount-input')).toBeInTheDocument() + expect(screen.getByText('Continue')).toBeInTheDocument() + expect(screen.getByText('Amount to withdraw')).toBeInTheDocument() + }) + + test('With method=crypto from send flow shows "Amount to send" heading', () => { + mockWithdrawFlow.selectedMethod = { type: 'crypto' } + renderWithdraw({ method: 'crypto' }) + + expect(screen.getByText('Amount to send')).toBeInTheDocument() + }) + + test('Send flow shows "Send" in nav header', () => { + mockWithdrawFlow.selectedMethod = { type: 'crypto' } + renderWithdraw({ method: 'crypto' }) + + expect(screen.getByTestId('nav-header')).toHaveTextContent('Send') + }) + + test('Balance displayed in amount input', () => { + mockWithdrawFlow.selectedMethod = { type: 'bridge', countryPath: 'us' } + renderWithdraw() + + expect(screen.getByTestId('wallet-balance')).toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 3: Amount Validation +// ============================================================ +describe('GROUP 3: Amount Validation', () => { + test('Empty amount disables continue button', () => { + mockWithdrawFlow.selectedMethod = { type: 'bridge', countryPath: 'us' } + renderWithdraw() + + const continueBtn = screen.getByText('Continue') + expect(continueBtn).toBeDisabled() + }) + + test('Error state shows ErrorAlert', () => { + mockWithdrawFlow.selectedMethod = { type: 'bridge', countryPath: 'us' } + mockWithdrawFlow.error = { showError: true, errorMessage: 'Amount exceeds your wallet balance.' } + renderWithdraw() + + expect(screen.getByTestId('error-alert')).toHaveTextContent('Amount exceeds your wallet balance.') + }) + + test('Error hidden when limits blocking card is displayed', () => { + mockWithdrawFlow.selectedMethod = { type: 'bridge', countryPath: 'us' } + mockWithdrawFlow.error = { showError: true, errorMessage: 'Some error' } + mockUseLimitsValidation.mockReturnValue({ + isBlocking: true, + isWarning: false, + isLoading: false, + currency: 'USD', + }) + const { getLimitsWarningCardProps } = require('@/features/limits/utils') + getLimitsWarningCardProps.mockReturnValue({ + variant: 'error', + message: 'Monthly limit exceeded', + }) + + renderWithdraw() + + // ErrorAlert should NOT be shown when limits is blocking + expect(screen.queryByTestId('error-alert')).not.toBeInTheDocument() + expect(screen.getByTestId('limits-warning-card')).toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 4: Limits Validation +// ============================================================ +describe('GROUP 4: Limits Validation', () => { + test('Limits blocking for bank withdrawal shows LimitsWarningCard and disables continue', () => { + mockWithdrawFlow.selectedMethod = { type: 'bridge', countryPath: 'us' } + mockUseLimitsValidation.mockReturnValue({ + isBlocking: true, + isWarning: false, + isLoading: false, + currency: 'USD', + }) + const { getLimitsWarningCardProps } = require('@/features/limits/utils') + getLimitsWarningCardProps.mockReturnValue({ + variant: 'error', + message: 'Monthly limit exceeded', + }) + + renderWithdraw() + + expect(screen.getByTestId('limits-warning-card')).toBeInTheDocument() + expect(screen.getByText('Continue')).toBeDisabled() + }) + + test('Limits warning for bank withdrawal shows LimitsWarningCard but keeps continue enabled', () => { + mockWithdrawFlow.selectedMethod = { type: 'bridge', countryPath: 'us' } + mockWithdrawFlow.amountToWithdraw = '50' + mockUseLimitsValidation.mockReturnValue({ + isBlocking: false, + isWarning: true, + isLoading: false, + currency: 'USD', + }) + const { getLimitsWarningCardProps } = require('@/features/limits/utils') + getLimitsWarningCardProps.mockReturnValue({ + variant: 'warning', + message: 'Approaching limit', + }) + + renderWithdraw() + + expect(screen.getByTestId('limits-warning-card')).toBeInTheDocument() + }) + + test('Crypto withdrawal does NOT show limits card even when blocking', () => { + mockWithdrawFlow.selectedMethod = { type: 'crypto' } + mockUseLimitsValidation.mockReturnValue({ + isBlocking: true, + isWarning: false, + isLoading: false, + currency: 'USD', + }) + const { getLimitsWarningCardProps } = require('@/features/limits/utils') + getLimitsWarningCardProps.mockReturnValue({ + variant: 'error', + message: 'Monthly limit exceeded', + }) + + renderWithdraw() + + expect(screen.queryByTestId('limits-warning-card')).not.toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 5: Navigation +// ============================================================ +describe('GROUP 5: Navigation', () => { + test('Back from crypto send navigates to /send', () => { + mockWithdrawFlow.selectedMethod = { type: 'crypto' } + renderWithdraw({ method: 'crypto' }) + + fireEvent.click(screen.getByTestId('nav-back')) + expect(mockSetSelectedMethod).toHaveBeenCalledWith(null) + expect(mockRouterPush).toHaveBeenCalledWith('/send') + }) + + test('Back from bank withdraw resets method and goes to method selection', () => { + mockWithdrawFlow.selectedMethod = { type: 'bridge', countryPath: 'us' } + renderWithdraw() + + fireEvent.click(screen.getByTestId('nav-back')) + expect(mockSetSelectedMethod).toHaveBeenCalledWith(null) + expect(mockSetAmountToWithdraw).toHaveBeenCalledWith('') + expect(mockSetSelectedBankAccount).toHaveBeenCalledWith(null) + }) +}) diff --git a/src/components/Claim/__tests__/claim-states.test.tsx b/src/components/Claim/__tests__/claim-states.test.tsx new file mode 100644 index 0000000000..8bdf77445b --- /dev/null +++ b/src/components/Claim/__tests__/claim-states.test.tsx @@ -0,0 +1,580 @@ +/** + * Claim Component — State Matrix Tests + * + * Tests the Claim component across 15 state combinations covering: + * loading, link states (claimed/cancelled/not found/wrong password), + * claim flow, sender view, and guest view. + * + * Strategy: mock every hook and service at the module level, then configure + * per-test via mockReturnValue / mockImplementation. + */ +import React from 'react' +import { render, screen, waitFor } from '@testing-library/react' +import { QueryClient, QueryClientProvider } from '@tanstack/react-query' + +// ---------- module-level mocks (must be before imports that depend on them) ---------- + +// next/navigation +const mockRouterPush = jest.fn() +const mockSearchParams = new Map() + +jest.mock('next/navigation', () => ({ + useSearchParams: () => ({ + get: (key: string) => mockSearchParams.get(key) ?? null, + }), + useRouter: () => ({ + push: mockRouterPush, + replace: jest.fn(), + prefetch: jest.fn(), + back: jest.fn(), + }), + usePathname: () => '/claim', +})) + +// next/image +jest.mock('next/image', () => ({ + __esModule: true, + default: (props: any) => { + const { priority, layout, objectFit, fill, ...rest } = props + return + }, +})) + +// next/link +jest.mock('next/link', () => ({ + __esModule: true, + default: ({ children, href, ...rest }: any) => ( + + {children} + + ), +})) + +// Sentry +jest.mock('@sentry/nextjs', () => ({ + captureException: jest.fn(), +})) + +// PostHog +jest.mock('posthog-js', () => ({ + __esModule: true, + default: { capture: jest.fn(), init: jest.fn() }, +})) + +// ---------- hooks & services ---------- + +const mockUseAuth = jest.fn() +jest.mock('@/context/authContext', () => ({ + useAuth: () => mockUseAuth(), +})) + +const mockUseWallet = jest.fn() +jest.mock('@/hooks/wallet/useWallet', () => ({ + useWallet: () => mockUseWallet(), +})) + +const mockUseTransactionDetailsDrawer = jest.fn() +jest.mock('@/hooks/useTransactionDetailsDrawer', () => ({ + useTransactionDetailsDrawer: () => mockUseTransactionDetailsDrawer(), +})) + +jest.mock('@/hooks/useTransactionHistory', () => ({ + EHistoryEntryType: { SEND_LINK: 'SEND_LINK' }, + EHistoryUserRole: { SENDER: 'SENDER' }, +})) + +jest.mock('@/hooks/useUserInteractions', () => ({ + useUserInteractions: () => ({ interactions: {} }), +})) + +jest.mock('use-haptic', () => ({ + useHaptic: () => ({ triggerHaptic: jest.fn() }), +})) + +const mockSetFlowStep = jest.fn() +jest.mock('@/context/ClaimBankFlowContext', () => ({ + ClaimBankFlowStep: { + SavedAccountsList: 'saved-accounts-list', + BankDetailsForm: 'bank-details-form', + BankConfirmClaim: 'bank-confirm-claim', + BankCountryList: 'bank-country-list', + }, + useClaimBankFlow: () => ({ + setFlowStep: mockSetFlowStep, + flowStep: null, + }), +})) + +jest.mock('@/context', () => ({ + tokenSelectorContext: React.createContext({ + selectedTokenAddress: '', + selectedChainID: '', + setSelectedChainID: jest.fn(), + setSelectedTokenAddress: jest.fn(), + }), +})) + +jest.mock('@/context/tokenSelector.context', () => ({ + tokenSelectorContext: React.createContext({ + selectedTokenAddress: '', + selectedChainID: '', + setSelectedChainID: jest.fn(), + setSelectedTokenAddress: jest.fn(), + }), +})) + +jest.mock('@/utils/general.utils', () => ({ + getInitialsFromName: jest.fn((n: string) => (n ? n.slice(0, 2).toUpperCase() : 'UN')), + getTokenDetails: jest.fn(() => ({ symbol: 'USDC', decimals: 6 })), + isStableCoin: jest.fn(() => true), + getChainName: jest.fn(() => 'Polygon'), + getTokenLogo: jest.fn(() => '/token.png'), + getChainLogo: jest.fn(() => '/chain.png'), +})) + +jest.mock('@/constants/kyc.consts', () => ({ + isUserKycVerified: jest.fn(() => false), +})) + +jest.mock('@/app/actions/tokens', () => ({ + fetchTokenDetails: jest.fn(() => Promise.resolve({ symbol: 'USDC', decimals: 6 })), + fetchTokenPrice: jest.fn(() => Promise.resolve({ price: 1 })), +})) + +const mockSendLinksApi = { + get: jest.fn(), +} +const mockGetParamsFromLink = jest.fn() +jest.mock('@/services/sendLinks', () => ({ + ESendLinkStatus: { + creating: 'creating', + completed: 'completed', + CLAIMING: 'CLAIMING', + CLAIMED: 'CLAIMED', + CANCELLED: 'CANCELLED', + FAILED: 'FAILED', + }, + sendLinksApi: mockSendLinksApi, + getParamsFromLink: (...args: any[]) => mockGetParamsFromLink(...args), +})) + +jest.mock('@squirrel-labs/peanut-sdk', () => ({ + generateKeysFromString: jest.fn(() => ({ + address: '0xPUBKEY', + privateKey: '0xPRIVKEY', + })), +})) + +jest.mock('@/services/swap', () => ({})) + +jest.mock('@/components/TransactionDetails/transactionTransformer', () => ({ + REWARD_TOKENS: {}, +})) + +jest.mock('@/components/TransactionDetails/TransactionDetailsReceipt', () => ({ + TransactionDetailsReceipt: (props: any) => ( +
Receipt
+ ), +})) + +jest.mock('@/context/ModalsContext', () => ({ + useModalsContext: () => ({ + setIsSupportModalOpen: jest.fn(), + openSupportWithMessage: jest.fn(), + }), +})) + +// Mock the sub-components +jest.mock('../Link/FlowManager', () => ({ + __esModule: true, + default: (props: any) =>
Claim Flow
, +})) + +jest.mock('../Generic', () => ({ + ClaimedView: (props: any) => ( +
+ Link no longer available - ${props.amount} + {props.senderUsername && sent by {props.senderUsername}} +
+ ), + ClaimErrorView: (props: any) => ( +
+

{props.title}

+

{props.message}

+ +
+ ), +})) + +jest.mock('@/components/0_Bruddle/PageContainer', () => ({ + __esModule: true, + default: (props: any) => ( +
+ {props.children} +
+ ), +})) + +jest.mock('@/components/Global/PeanutLoading', () => ({ + __esModule: true, + default: (props: any) =>
Loading...
, +})) + +jest.mock('@/animations/GIF_ALPHA_BACKGORUND/512X512_ALPHA_GIF_konradurban_05.gif', () => ({ + src: '/peanut-cry.gif', +})) + +// ---------- import component under test AFTER all mocks ---------- +import { Claim } from '../Claim' + +// ---------- helpers ---------- + +function createQueryClient() { + return new QueryClient({ + defaultOptions: { + queries: { retry: false, gcTime: 0, staleTime: 0 }, + }, + }) +} + +function renderClaim() { + const queryClient = createQueryClient() + return render( + + + + ) +} + +// Standard link data returned from API +function makeSendLink(overrides: Record = {}) { + return { + pubKey: '0xPUBKEY', + depositIdx: 0, + chainId: '137', + contractVersion: 'v4', + textContent: 'Hello!', + fileUrl: undefined, + status: 'completed', + createdAt: new Date('2026-04-15'), + senderAddress: '0xSENDER', + amount: BigInt(10000000), // 10 USDC + tokenAddress: '0xTOKEN', + tokenDecimals: 6, + tokenSymbol: 'USDC', + sender: { + userId: 'sender-123', + username: 'alice', + }, + claim: null, + events: [], + ...overrides, + } +} + +// ---------- default mock values ---------- + +function applyDefaults() { + // window.location.href for link URL extraction + Object.defineProperty(window, 'location', { + value: { href: 'https://peanut.me/claim#p=testpassword' }, + writable: true, + }) + + mockGetParamsFromLink.mockReturnValue({ password: 'testpassword' }) + + mockUseAuth.mockReturnValue({ + user: null, + isFetchingUser: false, + fetchUser: jest.fn(), + }) + + mockUseWallet.mockReturnValue({ + address: '0xWALLET', + balance: BigInt(100000000), + }) + + mockUseTransactionDetailsDrawer.mockReturnValue({ + openTransactionDetails: jest.fn(), + selectedTransaction: null, + isDrawerOpen: false, + closeTransactionDetails: jest.fn(), + }) + + // Default: API returns nothing (not called yet) + mockSendLinksApi.get.mockResolvedValue(undefined) +} + +// ---------- test suites ---------- + +beforeEach(() => { + jest.clearAllMocks() + mockSearchParams.clear() + applyDefaults() +}) + +// ============================================================ +// GROUP 1: Loading States +// ============================================================ +describe('GROUP 1: Loading States', () => { + test('Initial render shows loading spinner', () => { + // sendLinksApi.get never resolves + mockSendLinksApi.get.mockReturnValue(new Promise(() => {})) + + renderClaim() + + expect(screen.getByTestId('peanut-loading')).toBeInTheDocument() + }) + + test('Loading with retries shows retry message', async () => { + // Make API keep failing to trigger retries + mockSendLinksApi.get.mockRejectedValue(new Error('Network error')) + + renderClaim() + + // Initially shows loading + expect(screen.getByTestId('peanut-loading')).toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 2: Link Found States +// ============================================================ +describe('GROUP 2: Link Found — Claimable', () => { + test('Valid link shows claim flow manager', async () => { + const link = makeSendLink() + mockSendLinksApi.get.mockResolvedValue(link) + + renderClaim() + + await waitFor(() => { + expect(screen.getByTestId('flow-manager')).toBeInTheDocument() + }) + }) + + test('Valid link with text content processes correctly', async () => { + const link = makeSendLink({ textContent: 'Here is your money!' }) + mockSendLinksApi.get.mockResolvedValue(link) + + renderClaim() + + await waitFor(() => { + expect(screen.getByTestId('flow-manager')).toBeInTheDocument() + }) + }) +}) + +// ============================================================ +// GROUP 3: Already Claimed / Cancelled States +// ============================================================ +describe('GROUP 3: Already Claimed / Cancelled', () => { + test('CLAIMED link shows ClaimedView to guest', async () => { + const link = makeSendLink({ status: 'CLAIMED', claim: { txHash: '0xCLAIM' } }) + mockSendLinksApi.get.mockResolvedValue(link) + + // Mock transaction drawer to provide selectedTransaction + mockUseTransactionDetailsDrawer.mockReturnValue({ + openTransactionDetails: jest.fn(), + selectedTransaction: { amount: 10, tokenSymbol: 'USDC' }, + isDrawerOpen: false, + closeTransactionDetails: jest.fn(), + }) + + renderClaim() + + await waitFor(() => { + expect(screen.getByTestId('claimed-view')).toBeInTheDocument() + }) + }) + + test('CANCELLED link shows ClaimedView (link no longer available)', async () => { + const link = makeSendLink({ status: 'CANCELLED' }) + mockSendLinksApi.get.mockResolvedValue(link) + + mockUseTransactionDetailsDrawer.mockReturnValue({ + openTransactionDetails: jest.fn(), + selectedTransaction: { amount: 10, tokenSymbol: 'USDC' }, + isDrawerOpen: false, + closeTransactionDetails: jest.fn(), + }) + + renderClaim() + + await waitFor(() => { + expect(screen.getByTestId('claimed-view')).toBeInTheDocument() + }) + }) + + test('CLAIMING link (in progress) shows as already claimed', async () => { + const link = makeSendLink({ status: 'CLAIMING' }) + mockSendLinksApi.get.mockResolvedValue(link) + + mockUseTransactionDetailsDrawer.mockReturnValue({ + openTransactionDetails: jest.fn(), + selectedTransaction: { amount: 10, tokenSymbol: 'USDC' }, + isDrawerOpen: false, + closeTransactionDetails: jest.fn(), + }) + + renderClaim() + + await waitFor(() => { + expect(screen.getByTestId('claimed-view')).toBeInTheDocument() + }) + }) + + test('FAILED link with txHash shows as already claimed (funds left)', async () => { + const link = makeSendLink({ status: 'FAILED', claim: { txHash: '0xFAILED' } }) + mockSendLinksApi.get.mockResolvedValue(link) + + mockUseTransactionDetailsDrawer.mockReturnValue({ + openTransactionDetails: jest.fn(), + selectedTransaction: { amount: 10, tokenSymbol: 'USDC' }, + isDrawerOpen: false, + closeTransactionDetails: jest.fn(), + }) + + renderClaim() + + await waitFor(() => { + expect(screen.getByTestId('claimed-view')).toBeInTheDocument() + }) + }) + + test('FAILED link WITHOUT txHash is retryable (shows claim flow)', async () => { + const link = makeSendLink({ status: 'FAILED', claim: { txHash: null } }) + mockSendLinksApi.get.mockResolvedValue(link) + + renderClaim() + + await waitFor(() => { + expect(screen.getByTestId('flow-manager')).toBeInTheDocument() + }) + }) +}) + +// ============================================================ +// GROUP 4: Error States +// ============================================================ +describe('GROUP 4: Error States', () => { + test('Wrong password shows error view', async () => { + mockGetParamsFromLink.mockReturnValue({ password: 'wrongpassword' }) + // generateKeysFromString returns a pubkey that doesn't match + const { generateKeysFromString } = require('@squirrel-labs/peanut-sdk') + generateKeysFromString.mockReturnValue({ address: '0xWRONG_PUBKEY' }) + + const link = makeSendLink({ pubKey: '0xPUBKEY' }) + mockSendLinksApi.get.mockResolvedValue(link) + + renderClaim() + + await waitFor(() => { + expect(screen.getByTestId('claim-error-view')).toBeInTheDocument() + expect(screen.getByText('Wrong password!')).toBeInTheDocument() + }) + + // Reset mock + generateKeysFromString.mockReturnValue({ address: '0xPUBKEY' }) + }) + + test('No password in link shows wrong password error', async () => { + mockGetParamsFromLink.mockReturnValue({ password: undefined }) + const link = makeSendLink() + mockSendLinksApi.get.mockResolvedValue(link) + + renderClaim() + + await waitFor(() => { + expect(screen.getByTestId('claim-error-view')).toBeInTheDocument() + expect(screen.getByText('Wrong password!')).toBeInTheDocument() + }) + }) + + test('API error with retry:false keeps loading (failureCount < 4)', async () => { + // With retry: false in test QueryClient, failureCount stays at 1 + // which is < 4 threshold, so component stays in LOADING state + // (in production, after 4 retries it would show NOT_FOUND) + mockSendLinksApi.get.mockRejectedValue(new Error('Not found')) + + renderClaim() + + // Component stays in loading state because failureCount < 4 + await waitFor(() => { + expect(screen.getByTestId('peanut-loading')).toBeInTheDocument() + }) + }) +}) + +// ============================================================ +// GROUP 5: User-Dependent States +// ============================================================ +describe('GROUP 5: User-Dependent States', () => { + test('Sender viewing their own claimed link sees transaction receipt', async () => { + mockUseAuth.mockReturnValue({ + user: { user: { userId: 'sender-123' } }, + isFetchingUser: false, + fetchUser: jest.fn(), + }) + + const link = makeSendLink({ + status: 'CLAIMED', + claim: { txHash: '0xCLAIM', recipient: { username: 'bob' } }, + sender: { userId: 'sender-123', username: 'alice' }, + }) + mockSendLinksApi.get.mockResolvedValue(link) + + const mockOpenDetails = jest.fn() + mockUseTransactionDetailsDrawer.mockReturnValue({ + openTransactionDetails: mockOpenDetails, + selectedTransaction: { amount: 10, tokenSymbol: 'USDC' }, + isDrawerOpen: true, + closeTransactionDetails: jest.fn(), + }) + + renderClaim() + + // Sender should see receipt, NOT the ClaimedView + await waitFor(() => { + expect(screen.getByTestId('transaction-details-receipt')).toBeInTheDocument() + }) + + // ClaimedView should NOT be shown to the sender + expect(screen.queryByTestId('claimed-view')).not.toBeInTheDocument() + }) + + test('Guest user on claimable link sees claim flow', async () => { + mockUseAuth.mockReturnValue({ + user: null, + isFetchingUser: false, + fetchUser: jest.fn(), + }) + + const link = makeSendLink() + mockSendLinksApi.get.mockResolvedValue(link) + + renderClaim() + + await waitFor(() => { + expect(screen.getByTestId('flow-manager')).toBeInTheDocument() + }) + }) + + test('Authenticated non-sender on claimable link sees claim flow', async () => { + mockUseAuth.mockReturnValue({ + user: { user: { userId: 'other-user-456' } }, + isFetchingUser: false, + fetchUser: jest.fn(), + }) + + const link = makeSendLink() + mockSendLinksApi.get.mockResolvedValue(link) + + renderClaim() + + await waitFor(() => { + expect(screen.getByTestId('flow-manager')).toBeInTheDocument() + }) + }) +}) diff --git a/src/components/Request/__tests__/request-states.test.tsx b/src/components/Request/__tests__/request-states.test.tsx new file mode 100644 index 0000000000..da7fe7e401 --- /dev/null +++ b/src/components/Request/__tests__/request-states.test.tsx @@ -0,0 +1,888 @@ +/** + * Request Flow — State Matrix Tests + * + * Tests CreateRequestLinkView and PayRequestLink across state combinations covering: + * initial form, link creation, sharing, error states, loading states, and the payer redirect. + * + * Strategy: mock every hook and service at the module level, then configure + * per-test via mockReturnValue / mockImplementation. + */ +import React from 'react' +import { render, screen, fireEvent, waitFor, act } from '@testing-library/react' +import { QueryClient, QueryClientProvider } from '@tanstack/react-query' + +// ---------- module-level mocks (must be before imports that depend on them) ---------- + +// next/navigation +const mockRouterPush = jest.fn() +const mockRouterBack = jest.fn() +const mockSearchParams = new Map() + +jest.mock('next/navigation', () => ({ + useSearchParams: () => ({ + get: (key: string) => mockSearchParams.get(key) ?? null, + }), + useRouter: () => ({ + push: mockRouterPush, + back: mockRouterBack, + replace: jest.fn(), + prefetch: jest.fn(), + }), + usePathname: () => '/request', +})) + +// next/image — render a plain +jest.mock('next/image', () => ({ + __esModule: true, + default: (props: any) => { + const { priority, layout, objectFit, fill, ...rest } = props + return + }, +})) + +// Sentry +jest.mock('@sentry/nextjs', () => ({ + captureException: jest.fn(), +})) + +// PostHog +jest.mock('posthog-js', () => ({ + __esModule: true, + default: { capture: jest.fn(), init: jest.fn() }, +})) + +// ---------- hooks & services ---------- + +const mockUseAuth = jest.fn() +jest.mock('@/context/authContext', () => ({ + useAuth: () => mockUseAuth(), +})) + +const mockUseWallet = jest.fn() +jest.mock('@/hooks/wallet/useWallet', () => ({ + useWallet: () => mockUseWallet(), +})) + +const mockUseDebounce = jest.fn((value: any) => value) +jest.mock('@/hooks/useDebounce', () => ({ + useDebounce: (value: any, _delay: number) => mockUseDebounce(value), +})) + +const mockRequestsApi = { + create: jest.fn(), + update: jest.fn(), + get: jest.fn(), + search: jest.fn(), + close: jest.fn(), +} +jest.mock('@/services/requests', () => ({ + requestsApi: mockRequestsApi, +})) + +const mockChargesApi = { + get: jest.fn(), + create: jest.fn(), +} +jest.mock('@/services/charges', () => ({ + chargesApi: mockChargesApi, +})) + +jest.mock('@/app/actions/tokens', () => ({ + fetchTokenDetails: jest.fn(() => + Promise.resolve({ symbol: 'USDC', decimals: 6, logoURI: '/usdc.png' }) + ), +})) + +jest.mock('@/utils/general.utils', () => ({ + fetchTokenSymbol: jest.fn(() => Promise.resolve('USDC')), + formatTokenAmount: jest.fn((amount: any, _decimals?: number) => amount?.toString() ?? '0'), + isNativeCurrency: jest.fn(() => false), + getRequestLink: jest.fn((data: any) => `https://peanut.me/request/pay?id=${data?.uuid || 'test-uuid'}`), + formatAmount: jest.fn((v: any) => v ?? '0'), + printableAddress: jest.fn((a: string) => `${a.slice(0, 6)}...${a.slice(-4)}`), + jsonStringify: jest.fn((v: any) => JSON.stringify(v)), +})) + +jest.mock('@/utils/balance.utils', () => ({ + printableUsdc: jest.fn(() => '100.00'), +})) + +jest.mock('@/constants/zerodev.consts', () => ({ + PEANUT_WALLET_CHAIN: { id: 42161, name: 'Arbitrum One' }, + PEANUT_WALLET_TOKEN: '0xaf88d065e77c8cc2239327c5edb3a432268e5831', + PEANUT_WALLET_TOKEN_DECIMALS: 6, + PEANUT_WALLET_TOKEN_SYMBOL: 'USDC', + PEANUT_WALLET_TOKEN_NAME: 'USD Coin', + PEANUT_WALLET_TOKEN_IMG_URL: '/usdc.png', + PEANUT_WALLET_SUPPORTED_TOKENS: { '42161': ['0xaf88d065e77c8cc2239327c5edb3a432268e5831'] }, +})) + +jest.mock('@/constants/query.consts', () => ({ + TRANSACTIONS: 'transactions', +})) + +jest.mock('@squirrel-labs/peanut-sdk', () => ({ + interfaces: { + EPeanutLinkType: { native: 0, erc20: 1 }, + }, +})) + +// Mock Toast +const mockToastSuccess = jest.fn() +const mockToastError = jest.fn() +jest.mock('@/components/0_Bruddle/Toast', () => ({ + useToast: () => ({ + success: mockToastSuccess, + error: mockToastError, + info: jest.fn(), + warning: jest.fn(), + }), +})) + +// Mock complex UI components +jest.mock('@/components/Global/AmountInput', () => ({ + __esModule: true, + default: (props: any) => ( +
+ { + props.setPrimaryAmount?.(e.target.value) + }} + disabled={props.disabled} + /> + {props.infoContent} +
+ ), +})) + +jest.mock('@/components/Global/NavHeader', () => ({ + __esModule: true, + default: (props: any) => ( +
+ {props.title} + {props.onPrev && ( + + )} +
+ ), +})) + +jest.mock('@/components/Global/PeanutActionCard', () => ({ + __esModule: true, + default: (props: any) =>
, +})) + +jest.mock('@/components/Global/QRCodeWrapper', () => ({ + __esModule: true, + default: (props: any) => ( +
+ ), +})) + +jest.mock('@/components/Global/ShareButton', () => ({ + __esModule: true, + default: (props: any) => ( + + ), +})) + +jest.mock('@/components/Global/FileUploadInput', () => ({ + __esModule: true, + default: (props: any) => ( +
+ + props.setAttachmentOptions?.({ + ...props.attachmentOptions, + message: e.target.value, + }) + } + placeholder={props.placeholder} + /> +
+ ), +})) + +jest.mock('@/components/Global/Loading', () => ({ + __esModule: true, + default: () =>
, +})) + +jest.mock('@/components/0_Bruddle/Button', () => ({ + Button: (props: any) => ( + + ), +})) + +jest.mock('@/components/Global/Icons/Icon', () => ({ + Icon: (props: any) => , +})) + +jest.mock('@/components/Global/ErrorAlert', () => ({ + __esModule: true, + default: (props: any) => ( +
+ {props.description} +
+ ), +})) + +// ---------- context mocks ---------- + +const mockSetLoadingState = jest.fn() +const mockSetSelectedChainID = jest.fn() +const mockSetSelectedTokenAddress = jest.fn() + +jest.mock('@/context', () => { + const React = require('react') + return { + tokenSelectorContext: React.createContext({ + selectedChainID: '42161', + setSelectedChainID: (...args: any[]) => mockSetSelectedChainID(...args), + selectedTokenAddress: '0xaf88d065e77c8cc2239327c5edb3a432268e5831', + setSelectedTokenAddress: (...args: any[]) => mockSetSelectedTokenAddress(...args), + selectedTokenData: { + chainId: '42161', + address: '0xaf88d065e77c8cc2239327c5edb3a432268e5831', + decimals: 6, + symbol: 'USDC', + price: 1, + }, + }), + loadingStateContext: React.createContext({ + loadingState: 'Idle' as string, + setLoadingState: (...args: any[]) => mockSetLoadingState(...args), + isLoading: false, + }), + } +}) + +// ---------- import components under test AFTER all mocks ---------- +import { CreateRequestLinkView } from '../link/views/Create.request.link.view' +import { PayRequestLink } from '../Pay/Pay' + +// ---------- helpers ---------- + +function setSearchParams(params: Record) { + mockSearchParams.clear() + Object.entries(params).forEach(([k, v]) => mockSearchParams.set(k, v)) +} + +function createQueryClient() { + return new QueryClient({ + defaultOptions: { + queries: { retry: false, gcTime: 0 }, + }, + }) +} + +function renderCreateRequest(params: Record = {}) { + setSearchParams(params) + const queryClient = createQueryClient() + + return render( + + + + ) +} + +function renderPayRequest(params: Record = {}) { + setSearchParams(params) + const queryClient = createQueryClient() + + return render( + + + + ) +} + +// ---------- default mock values ---------- + +function applyDefaults() { + mockUseAuth.mockReturnValue({ + user: { user: { username: 'test-user', userId: 'user-1' } }, + isFetchingUser: false, + fetchUser: jest.fn(), + }) + + mockUseWallet.mockReturnValue({ + address: '0x1234567890abcdef1234567890abcdef12345678', + isConnected: true, + balance: BigInt(100_000_000), // 100 USDC (6 decimals) + }) + + mockUseDebounce.mockImplementation((value: any) => value) + + mockRequestsApi.create.mockResolvedValue({ + uuid: 'req-uuid-1', + chainId: '42161', + recipientAddress: '0x1234567890abcdef1234567890abcdef12345678', + tokenAmount: '10', + tokenAddress: '0xaf88d065e77c8cc2239327c5edb3a432268e5831', + tokenDecimals: 6, + tokenType: '1', + tokenSymbol: 'USDC', + trackId: null, + reference: null, + attachmentUrl: null, + createdAt: '2026-04-16T00:00:00Z', + updatedAt: '2026-04-16T00:00:00Z', + charges: [], + history: [], + recipientAccount: { + userId: 'user-1', + identifier: 'test-user', + type: 'PEANUT', + user: { username: 'test-user' }, + }, + }) + + mockRequestsApi.update.mockResolvedValue({ + uuid: 'req-uuid-1', + chainId: '42161', + recipientAddress: '0x1234567890abcdef1234567890abcdef12345678', + tokenAmount: '10', + tokenAddress: '0xaf88d065e77c8cc2239327c5edb3a432268e5831', + tokenDecimals: 6, + tokenType: '1', + tokenSymbol: 'USDC', + trackId: null, + reference: 'Updated message', + attachmentUrl: null, + createdAt: '2026-04-16T00:00:00Z', + updatedAt: '2026-04-16T00:01:00Z', + charges: [], + history: [], + recipientAccount: { + userId: 'user-1', + identifier: 'test-user', + type: 'PEANUT', + user: { username: 'test-user' }, + }, + }) + + mockChargesApi.get.mockResolvedValue({ + tokenAmount: '25', + tokenSymbol: 'USDC', + chainId: '42161', + requestLink: { + uuid: 'req-uuid-1', + recipientAddress: '0x1234567890abcdef1234567890abcdef12345678', + recipientAccount: { + type: 'PEANUT', + user: { username: 'test-user' }, + }, + }, + }) +} + +// ---------- test suites ---------- + +beforeEach(() => { + jest.clearAllMocks() + mockSearchParams.clear() + applyDefaults() +}) + +// ============================================================ +// GROUP 1: CreateRequestLinkView — Initial Form States +// ============================================================ +describe('GROUP 1: Initial Form States', () => { + test('renders request form with nav header, action card, QR code, amount input, and create button', () => { + renderCreateRequest() + + expect(screen.getByText('Request')).toBeInTheDocument() + expect(screen.getByTestId('peanut-action-card')).toHaveAttribute('data-type', 'request') + expect(screen.getByTestId('qr-code-wrapper')).toHaveAttribute('data-blurred', 'true') + expect(screen.getByTestId('amount-input')).toBeInTheDocument() + expect(screen.getByRole('button', { name: 'Create request' })).toBeInTheDocument() + }) + + test('nav header back button navigates to /home', () => { + renderCreateRequest() + + fireEvent.click(screen.getByTestId('nav-back')) + expect(mockRouterPush).toHaveBeenCalledWith('/home') + }) + + test('QR code is blurred before request is created', () => { + renderCreateRequest() + + expect(screen.getByTestId('qr-code-wrapper')).toHaveAttribute('data-blurred', 'true') + }) + + test('amount input is enabled before request is created', () => { + renderCreateRequest() + + const amountInput = screen.getByTestId('amount-input') + expect(amountInput).toHaveAttribute('data-disabled', 'false') + }) + + test('pre-filled amount from URL params is set in form', () => { + renderCreateRequest({ amount: '42.50' }) + + const field = screen.getByTestId('amount-field') + expect(field).toHaveValue('42.50') + }) + + test('comment input is available', () => { + renderCreateRequest() + + expect(screen.getByTestId('file-upload-input')).toBeInTheDocument() + expect(screen.getByPlaceholderText('Comment')).toBeInTheDocument() + }) + + test('info content shows hint about leaving amount empty', () => { + renderCreateRequest() + + expect(screen.getByText(/Leave empty to let payers choose amounts/)).toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 2: CreateRequestLinkView — Link Creation +// ============================================================ +describe('GROUP 2: Link Creation', () => { + test('clicking Create request calls requestsApi.create and shows share button', async () => { + renderCreateRequest() + + // Enter an amount + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '25' } }) + + // Click create + const createBtn = screen.getByRole('button', { name: 'Create request' }) + await act(async () => { + fireEvent.click(createBtn) + }) + + await waitFor(() => { + expect(mockRequestsApi.create).toHaveBeenCalled() + }) + + // After creation, share button should appear + await waitFor(() => { + expect(screen.getByTestId('share-button')).toBeInTheDocument() + }) + }) + + test('after link creation, QR code is no longer blurred', async () => { + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + const createBtn = screen.getByRole('button', { name: 'Create request' }) + await act(async () => { + fireEvent.click(createBtn) + }) + + await waitFor(() => { + expect(screen.getByTestId('qr-code-wrapper')).toHaveAttribute('data-blurred', 'false') + }) + }) + + test('after link creation, amount input is disabled', async () => { + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + const createBtn = screen.getByRole('button', { name: 'Create request' }) + await act(async () => { + fireEvent.click(createBtn) + }) + + await waitFor(() => { + expect(screen.getByTestId('amount-input')).toHaveAttribute('data-disabled', 'true') + }) + }) + + test('after link creation, Create request button is replaced by share button', async () => { + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + await waitFor(() => { + expect(screen.queryByRole('button', { name: 'Create request' })).not.toBeInTheDocument() + expect(screen.getByTestId('share-button')).toBeInTheDocument() + }) + }) + + test('share button shows amount in label when amount is set', async () => { + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '50' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + await waitFor(() => { + expect(screen.getByTestId('share-button')).toHaveTextContent('Share $50 request') + }) + }) + + test('share button shows "Share open request" when no amount is set', async () => { + renderCreateRequest() + + // Create without entering amount + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + await waitFor(() => { + expect(screen.getByTestId('share-button')).toHaveTextContent('Share open request') + }) + }) + + test('success toast is shown after link creation', async () => { + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + await waitFor(() => { + expect(mockToastSuccess).toHaveBeenCalledWith('Link created successfully!') + }) + }) +}) + +// ============================================================ +// GROUP 3: CreateRequestLinkView — Error States +// ============================================================ +describe('GROUP 3: Error States', () => { + test('API failure shows error message and toast', async () => { + mockRequestsApi.create.mockRejectedValue(new Error('Network error')) + + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + await waitFor(() => { + expect(screen.getByText('Failed to create link')).toBeInTheDocument() + }) + expect(mockToastError).toHaveBeenCalledWith('Failed to create link') + }) + + test('not connected wallet shows error when creating request', async () => { + mockUseWallet.mockReturnValue({ + address: undefined, + isConnected: false, + balance: undefined, + }) + + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + await waitFor(() => { + expect(screen.getByText('Please enter a recipient address')).toBeInTheDocument() + }) + }) + + test('Sentry captures exception on create failure', async () => { + const mockError = new Error('API failure') + mockRequestsApi.create.mockRejectedValue(mockError) + + const { captureException } = require('@sentry/nextjs') + + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + await waitFor(() => { + expect(captureException).toHaveBeenCalledWith(mockError) + }) + }) +}) + +// ============================================================ +// GROUP 4: CreateRequestLinkView — Loading States +// ============================================================ +describe('GROUP 4: Loading States', () => { + test('creating link shows loading state on button', async () => { + // Make create hang to observe loading state + mockRequestsApi.create.mockReturnValue(new Promise(() => {})) + + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + // During creation, the button should show loading + await waitFor(() => { + expect(mockSetLoadingState).toHaveBeenCalledWith('Creating link') + }) + }) + + test('loading state resets to Idle after successful creation', async () => { + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + await waitFor(() => { + expect(mockSetLoadingState).toHaveBeenCalledWith('Idle') + }) + }) + + test('loading state resets to Idle after failed creation', async () => { + mockRequestsApi.create.mockRejectedValue(new Error('fail')) + + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + await waitFor(() => { + expect(mockSetLoadingState).toHaveBeenCalledWith('Idle') + }) + }) + + test('QR code shows loading state during link creation', async () => { + mockRequestsApi.create.mockReturnValue(new Promise(() => {})) + + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + // The QR code component receives isLoading prop from isCreatingLink state + // Since the create is pending, the component should be in loading state + await waitFor(() => { + expect(mockSetLoadingState).toHaveBeenCalledWith('Creating link') + }) + }) +}) + +// ============================================================ +// GROUP 5: CreateRequestLinkView — Merchant / Bill Split Flow +// ============================================================ +describe('GROUP 5: Merchant / Bill Split Flow', () => { + test('merchant param populates comment with bill split message', () => { + renderCreateRequest({ merchant: 'CoolCafe' }) + + const commentField = screen.getByTestId('comment-field') + expect(commentField).toHaveValue('Bill split for CoolCafe') + }) + + test('merchant + amount params auto-create request link', async () => { + renderCreateRequest({ merchant: 'CoolCafe', amount: '25' }) + + await waitFor(() => { + expect(mockRequestsApi.create).toHaveBeenCalled() + }) + }) +}) + +// ============================================================ +// GROUP 6: PayRequestLink — Payer Redirect +// ============================================================ +describe('GROUP 6: PayRequestLink — Payer Redirect', () => { + test('with valid UUID, fetches charge and redirects to request link', async () => { + renderPayRequest({ id: 'charge-uuid-1' }) + + await waitFor(() => { + expect(mockChargesApi.get).toHaveBeenCalledWith('charge-uuid-1') + }) + + await waitFor(() => { + expect(mockRouterPush).toHaveBeenCalled() + }) + }) + + test('without UUID, redirects to /404', async () => { + renderPayRequest() + + await waitFor(() => { + expect(mockRouterPush).toHaveBeenCalledWith('/404') + }) + }) + + test('API failure redirects to /404', async () => { + mockChargesApi.get.mockRejectedValue(new Error('Not found')) + + renderPayRequest({ id: 'bad-uuid' }) + + await waitFor(() => { + expect(mockRouterPush).toHaveBeenCalledWith('/404') + }) + }) + + test('renders nothing (null) — no visible UI', () => { + const { container } = renderPayRequest({ id: 'charge-uuid-1' }) + + // PayRequestLink returns null — the container should be effectively empty + // (just the QueryClientProvider wrapper) + expect(container.textContent).toBe('') + }) +}) + +// ============================================================ +// GROUP 7: CreateRequestLinkView — Edge Cases +// ============================================================ +describe('GROUP 7: Edge Cases', () => { + test('invalid amount param (NaN) results in empty amount', () => { + renderCreateRequest({ amount: 'not-a-number' }) + + const field = screen.getByTestId('amount-field') + expect(field).toHaveValue('') + }) + + test('duplicate create clicks do not fire multiple API calls', async () => { + // First call hangs + let resolveCreate: (value: any) => void + mockRequestsApi.create.mockImplementation( + () => + new Promise((resolve) => { + resolveCreate = resolve + }) + ) + + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + const createBtn = screen.getByRole('button', { name: 'Create request' }) + + // Click twice rapidly + await act(async () => { + fireEvent.click(createBtn) + }) + await act(async () => { + fireEvent.click(createBtn) + }) + + // Should only have been called once due to isCreatingLink guard + expect(mockRequestsApi.create).toHaveBeenCalledTimes(1) + + // Cleanup: resolve the pending promise + await act(async () => { + resolveCreate!({ + uuid: 'req-uuid-1', + recipientAccount: { type: 'PEANUT', user: { username: 'test-user' } }, + recipientAddress: '0x1234567890abcdef1234567890abcdef12345678', + }) + }) + }) + + test('changing amount after link creation resets request state', async () => { + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + // Wait for link creation + await waitFor(() => { + expect(screen.getByTestId('share-button')).toBeInTheDocument() + }) + + // Now change the amount — this should reset the request + await act(async () => { + fireEvent.change(field, { target: { value: '20' } }) + }) + + // The Create request button should reappear (since requestId is reset) + await waitFor(() => { + expect(screen.getByRole('button', { name: 'Create request' })).toBeInTheDocument() + }) + }) + + test('aborted request does not show error', async () => { + const abortError = new Error('AbortError') + abortError.name = 'AbortError' + mockRequestsApi.create.mockRejectedValue(abortError) + + renderCreateRequest() + + const field = screen.getByTestId('amount-field') + fireEvent.change(field, { target: { value: '10' } }) + + await act(async () => { + fireEvent.click(screen.getByRole('button', { name: 'Create request' })) + }) + + // AbortError should not show error message + await waitFor(() => { + expect(screen.queryByText('Failed to create link')).not.toBeInTheDocument() + }) + }) + + test('sets wallet chain and token defaults on mount when connected', () => { + renderCreateRequest() + + expect(mockSetSelectedChainID).toHaveBeenCalledWith('42161') + expect(mockSetSelectedTokenAddress).toHaveBeenCalledWith( + '0xaf88d065e77c8cc2239327c5edb3a432268e5831' + ) + }) +}) diff --git a/src/components/Request/link/views/Create.request.link.view.tsx b/src/components/Request/link/views/Create.request.link.view.tsx index 13fc3f5e7d..b3ebea8609 100644 --- a/src/components/Request/link/views/Create.request.link.view.tsx +++ b/src/components/Request/link/views/Create.request.link.view.tsx @@ -83,14 +83,24 @@ export const CreateRequestLinkView = () => { return (parseFloat(tokenValue) * selectedTokenData.price).toString() }, [tokenValue, selectedTokenData?.price]) + // Harness-only: when the playwright session has the passkey-bypass flag, + // fall back to the user's peanut-wallet account identifier (seeded by the + // harness) so the Create button doesn't block on wagmi connection state. + const harnessFallbackAddress = useMemo(() => { + if (typeof window === 'undefined') return '' + if (window.localStorage?.getItem('__harness_skip_passkey') !== 'true') return '' + const peanutAccount = user?.accounts?.find((a) => a.type === 'peanut-wallet') + return peanutAccount?.identifier || '' + }, [user?.accounts]) + const recipientAddress = useMemo(() => { - if (!isConnected || !address) return '' - return address - }, [isConnected, address]) + if (isConnected && address) return address + return harnessFallbackAddress + }, [isConnected, address, harnessFallbackAddress]) const isValidRecipient = useMemo(() => { - return isConnected && !!address - }, [isConnected, address]) + return (isConnected && !!address) || !!harnessFallbackAddress + }, [isConnected, address, harnessFallbackAddress]) const hasAttachment = useMemo(() => { return !!(attachmentOptions.rawFile || attachmentOptions.message) diff --git a/src/components/Send/__tests__/send-states.test.tsx b/src/components/Send/__tests__/send-states.test.tsx new file mode 100644 index 0000000000..55a987961f --- /dev/null +++ b/src/components/Send/__tests__/send-states.test.tsx @@ -0,0 +1,338 @@ +/** + * SendRouterView — State Matrix Tests + * + * Tests the SendRouterView component across 10 state combinations covering: + * initial options, send-by-link view, contacts view, method selection, and navigation. + * + * Strategy: mock every hook and service at the module level, then configure + * per-test via mockReturnValue / mockImplementation. + */ +import React from 'react' +import { render, screen, fireEvent } from '@testing-library/react' +import { QueryClient, QueryClientProvider } from '@tanstack/react-query' + +// ---------- module-level mocks (must be before imports that depend on them) ---------- + +// next/navigation +const mockRouterPush = jest.fn() +const mockSearchParams = new Map() + +jest.mock('next/navigation', () => ({ + useSearchParams: () => ({ + get: (key: string) => mockSearchParams.get(key) ?? null, + }), + useRouter: () => ({ + push: mockRouterPush, + replace: jest.fn(), + prefetch: jest.fn(), + back: jest.fn(), + }), + usePathname: () => '/send', +})) + +// next/image +jest.mock('next/image', () => ({ + __esModule: true, + default: (props: any) => { + const { priority, layout, objectFit, fill, ...rest } = props + return + }, +})) + +// PostHog +jest.mock('posthog-js', () => ({ + __esModule: true, + default: { capture: jest.fn(), init: jest.fn() }, +})) + +// Assets +jest.mock('@/assets', () => ({ + MERCADO_PAGO: '/mercado-pago.png', + PIX: '/pix.png', +})) + +jest.mock('@/constants/analytics.consts', () => ({ + ANALYTICS_EVENTS: { + SEND_METHOD_SELECTED: 'send_method_selected', + }, +})) + +// ---------- hooks & services ---------- + +const mockUseContacts = jest.fn() +jest.mock('@/hooks/useContacts', () => ({ + useContacts: (...args: any[]) => mockUseContacts(...args), +})) + +const mockUseGeoFilteredPaymentOptions = jest.fn() +jest.mock('@/hooks/useGeoFilteredPaymentOptions', () => ({ + useGeoFilteredPaymentOptions: (...args: any[]) => mockUseGeoFilteredPaymentOptions(...args), +})) + +jest.mock('@/utils/general.utils', () => ({ + getInitialsFromName: jest.fn((n: string) => (n ? n.slice(0, 2).toUpperCase() : 'UN')), +})) + +jest.mock('@/constants/actionlist.consts', () => ({ + ACTION_METHODS: [ + { id: 'bank', title: 'Bank', description: 'EUR, USD, MXN, ARS & more', icons: [], soon: false }, + { id: 'exchange-or-wallet', title: 'Exchange or Wallet', description: 'Binance, Metamask and more', icons: [], soon: false }, + ], +})) + +// Mock complex UI components +jest.mock('@/components/Global/NavHeader', () => ({ + __esModule: true, + default: (props: any) => ( +
+ {props.title} + {props.onPrev && ( + + )} +
+ ), +})) + +jest.mock('@/components/Global/Card', () => ({ + __esModule: true, + default: (props: any) => ( +
+ {props.children} +
+ ), +})) + +jest.mock('@/components/Global/Icons/Icon', () => ({ + Icon: (props: any) => , +})) + +jest.mock('@/components/0_Bruddle/Button', () => ({ + Button: (props: any) => ( + + ), +})) + +jest.mock('@/components/0_Bruddle/Divider', () => ({ + __esModule: true, + default: (props: any) =>
, +})) + +jest.mock('@/components/ActionListCard', () => ({ + ActionListCard: (props: any) => ( +
+ {typeof props.title === 'string' ? props.title : 'complex-title'} + {props.description} +
+ ), +})) + +jest.mock('@/components/Global/IconStack', () => ({ + __esModule: true, + default: () =>
, +})) + +jest.mock('@/components/Global/Badges/StatusBadge', () => ({ + __esModule: true, + default: (props: any) => {props.customText}, +})) + +jest.mock('@/components/Profile/AvatarWithBadge', () => ({ + __esModule: true, + default: (props: any) =>
{props.name}
, +})) + +// Mock sub-views +jest.mock('../link/LinkSendFlowManager', () => ({ + __esModule: true, + default: (props: any) => ( +
+ + Link Send Flow +
+ ), +})) + +jest.mock('../views/Contacts.view', () => ({ + __esModule: true, + default: () =>
Contacts View
, +})) + +// ---------- import component under test AFTER all mocks ---------- +import { SendRouterView } from '../views/SendRouter.view' + +// ---------- helpers ---------- + +function setSearchParams(params: Record) { + mockSearchParams.clear() + Object.entries(params).forEach(([k, v]) => mockSearchParams.set(k, v)) +} + +function createQueryClient() { + return new QueryClient({ + defaultOptions: { + queries: { retry: false, gcTime: 0 }, + }, + }) +} + +function renderSend(params: Record = {}) { + setSearchParams(params) + const queryClient = createQueryClient() + return render( + + + + ) +} + +// ---------- default mock values ---------- + +function applyDefaults() { + mockUseContacts.mockReturnValue({ + contacts: [], + isLoading: false, + error: null, + }) + + mockUseGeoFilteredPaymentOptions.mockReturnValue({ + filteredMethods: [ + { id: 'bank', title: 'Bank', description: 'EUR, USD, MXN, ARS & more', icons: [], soon: false }, + { id: 'exchange-or-wallet', title: 'Exchange or Wallet', description: 'Binance, Metamask and more', icons: [], soon: false }, + ], + }) + + // Set window.location.pathname for link generation + Object.defineProperty(window, 'location', { + value: { pathname: '/send', href: 'https://peanut.me/send' }, + writable: true, + }) +} + +// ---------- test suites ---------- + +beforeEach(() => { + jest.clearAllMocks() + mockSearchParams.clear() + applyDefaults() +}) + +// ============================================================ +// GROUP 1: Initial State — Send Options +// ============================================================ +describe('GROUP 1: Initial State', () => { + test('Shows send page with link card and method options', () => { + renderSend() + + expect(screen.getByTestId('nav-header')).toHaveTextContent('Send') + expect(screen.getByText('Send money with a link')).toBeInTheDocument() + expect(screen.getByText('Send via link')).toBeInTheDocument() + expect(screen.getByTestId('divider')).toBeInTheDocument() + }) + + test('Shows Peanut contacts option at top of methods list', () => { + renderSend() + + const contactsCard = screen.getByTestId('action-card-Peanut contacts') + expect(contactsCard).toBeInTheDocument() + }) + + test('Shows geo-filtered payment methods', () => { + renderSend() + + expect(screen.getByTestId('action-card-Bank')).toBeInTheDocument() + expect(screen.getByTestId('action-card-Exchange or Wallet')).toBeInTheDocument() + }) + + test('No contacts shows fallback avatar initials', () => { + mockUseContacts.mockReturnValue({ + contacts: [], + isLoading: false, + error: null, + }) + + renderSend() + + // Should still render without errors + expect(screen.getByTestId('action-card-Peanut contacts')).toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 2: Send by Link View +// ============================================================ +describe('GROUP 2: Send by Link', () => { + test('view=link shows LinkSendFlowManager', () => { + renderSend({ view: 'link' }) + + expect(screen.getByTestId('link-send-flow-manager')).toBeInTheDocument() + expect(screen.queryByText('Send money with a link')).not.toBeInTheDocument() + }) + + test('createLink=true also shows LinkSendFlowManager', () => { + renderSend({ createLink: 'true' }) + + expect(screen.getByTestId('link-send-flow-manager')).toBeInTheDocument() + }) + + test('Back from link view navigates to /send', () => { + renderSend({ view: 'link' }) + + fireEvent.click(screen.getByTestId('link-back')) + expect(mockRouterPush).toHaveBeenCalledWith('/send') + }) +}) + +// ============================================================ +// GROUP 3: Contacts View +// ============================================================ +describe('GROUP 3: Contacts View', () => { + test('view=contacts shows ContactsView', () => { + renderSend({ view: 'contacts' }) + + expect(screen.getByTestId('contacts-view')).toBeInTheDocument() + expect(screen.queryByText('Send money with a link')).not.toBeInTheDocument() + }) +}) + +// ============================================================ +// GROUP 4: Method Selection Navigation +// ============================================================ +describe('GROUP 4: Method Selection', () => { + test('Clicking bank navigates to /withdraw?method=bank', () => { + renderSend() + + fireEvent.click(screen.getByTestId('action-card-Bank')) + expect(mockRouterPush).toHaveBeenCalledWith('/withdraw?method=bank') + }) + + test('Clicking exchange-or-wallet navigates to /withdraw?method=crypto', () => { + renderSend() + + fireEvent.click(screen.getByTestId('action-card-Exchange or Wallet')) + expect(mockRouterPush).toHaveBeenCalledWith('/withdraw?method=crypto') + }) + + test('Clicking Peanut contacts navigates to /send?view=contacts', () => { + renderSend() + + fireEvent.click(screen.getByTestId('action-card-Peanut contacts')) + expect(mockRouterPush).toHaveBeenCalledWith('/send?view=contacts') + }) + + test('Back from main send navigates to /home', () => { + renderSend() + + fireEvent.click(screen.getByTestId('nav-back')) + expect(mockRouterPush).toHaveBeenCalledWith('/home') + }) +}) diff --git a/src/context/kernelClient.context.tsx b/src/context/kernelClient.context.tsx index 1710de8d6e..f33caf0d26 100644 --- a/src/context/kernelClient.context.tsx +++ b/src/context/kernelClient.context.tsx @@ -180,6 +180,12 @@ export const KernelClientProvider = ({ children }: { children: ReactNode }) => { setWebAuthnKey((prev) => prev && bigIntSafeStringify(prev) === bigIntSafeStringify(storedWebAuthnKey) ? prev : storedWebAuthnKey ) + } else if (typeof window !== 'undefined' && window.localStorage?.getItem('__harness_skip_passkey') === 'true') { + // Harness-only: skip the auto-logout so playwright can screenshot the + // authenticated UI with a seeded user that has no real passkey. Kernel + // client stays uninitialized; any code path that requires userops will + // still fail, which is fine — harness tests only assert page-level render. + // Uses localStorage so it works regardless of env injection semantics. } else { // avoid mixed state logoutUser() From e9191bbd0ef6f40e3c1eed07dec8ef193f9e1d84 Mon Sep 17 00:00:00 2001 From: Hugo Montenegro Date: Sun, 19 Apr 2026 00:05:26 +0100 Subject: [PATCH 061/425] chore(decomplexify): headless ECDSA signer + reproduce bootstrap for qa harness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UI-side changes to make the app drivable from a headless Playwright runner: - kernelClient.context.tsx: when localStorage.__harness_skip_passkey=true and __harness_ecdsa_pk is set, bootstrap a kernel account via signerToEcdsaValidator instead of the passkey path. Behavior is identical post-init (same bundler, same paymaster, same kernel v3.1 / EP 0.7) — just a different validator so Playwright can actually sign userops. - zerodev.consts.ts: PEANUT_WALLET_CHAIN + _TOKEN now pick from env (NEXT_PUBLIC_PEANUT_WALLET_CHAIN_ID / _TOKEN) so sandbox can target arbitrumSepolia + testnet USDC. Prod build path unchanged. - app/actions/clients.ts: PUBLIC_CLIENTS_BY_CHAIN keyed off PEANUT_WALLET_CHAIN rather than hardcoded arbitrum. - context/ReproduceBootstrap.tsx: new client component. When URL includes ?__reproduce=, fetches the manifest from /dev/reproduce/, seeds localStorage + jwt-token cookie, strips the query, hard-reloads. Makes the Nutcracker gallery "Open live" button work end-to-end. - app/ClientProviders.tsx: wire ReproduceBootstrap under a boundary (useSearchParams requires it in App Router). - package.json: add @zerodev/ecdsa-validator dependency. --- package.json | 2 + src/app/ClientProviders.tsx | 6 ++ src/app/actions/clients.ts | 11 +-- src/constants/zerodev.consts.ts | 18 +++- src/content | 2 +- src/context/ReproduceBootstrap.tsx | 85 +++++++++++++++++++ src/context/kernelClient.context.tsx | 122 +++++++++++++++++++++++++++ 7 files changed, 236 insertions(+), 10 deletions(-) create mode 100644 src/context/ReproduceBootstrap.tsx diff --git a/package.json b/package.json index 6dd190bff7..d41c866215 100644 --- a/package.json +++ b/package.json @@ -57,8 +57,10 @@ "@typeform/embed-react": "^3.20.0", "@vercel/analytics": "^1.4.1", "@wagmi/core": "2.19.0", + "@zerodev/ecdsa-validator": "^5.4.9", "@zerodev/passkey-validator": "^5.6.0", "@zerodev/sdk": "5.5.7", + "@zerodev/webauthn-key": "^5.5.0", "autoprefixer": "^10.4.20", "canvas-confetti": "^1.9.3", "classnames": "^2.5.1", diff --git a/src/app/ClientProviders.tsx b/src/app/ClientProviders.tsx index a6d4959ccd..7e0310d5ae 100644 --- a/src/app/ClientProviders.tsx +++ b/src/app/ClientProviders.tsx @@ -12,7 +12,9 @@ import { TranslationSafeWrapper } from '@/components/Global/TranslationSafeWrapp import { PeanutProvider } from '@/config' import { ContextProvider } from '@/context' import { FooterVisibilityProvider } from '@/context/footerVisibility' +import { ReproduceBootstrap } from '@/context/ReproduceBootstrap' import { NuqsAdapter } from 'nuqs/adapters/next/app' +import { Suspense } from 'react' export function ClientProviders({ children }: { children: React.ReactNode }) { return ( @@ -23,6 +25,10 @@ export function ClientProviders({ children }: { children: React.ReactNode }) { + {/* useSearchParams() needs to be under Suspense in App Router. */} + + + {children} diff --git a/src/app/actions/clients.ts b/src/app/actions/clients.ts index 126dfb9801..50dec7327d 100644 --- a/src/app/actions/clients.ts +++ b/src/app/actions/clients.ts @@ -3,7 +3,7 @@ import { BUNDLER_URL, PAYMASTER_URL, PEANUT_WALLET_CHAIN } from '@/constants/zer import type { PublicClient, Chain, Transport } from 'viem' import { createPublicClient, http, extractChain, fallback } from 'viem' import * as chains from 'viem/chains' -import { arbitrum, mainnet, base, linea } from 'viem/chains' +import { arbitrum, arbitrumSepolia, mainnet, base, linea } from 'viem/chains' const allChains = Object.values(chains) export type ChainId = (typeof allChains)[number]['id'] @@ -38,6 +38,8 @@ const zerodevV3Url = (chainId: number | string) => `${ZERODEV_V3_URL}/chain/${ch * included if NEXT_PUBLIC_ZERO_DEV_RECOVERY_BUNDLER_URL is configured. * Note: PUBLIC_CLIENTS_BY_CHAIN and peanutPublicClient are now exported from here to avoid circular dependencies */ +// Primary wallet chain is picked by PEANUT_WALLET_CHAIN (env-overridable in +// zerodev.consts.ts). Sandbox uses arbitrumSepolia, prod uses arbitrum. export const PUBLIC_CLIENTS_BY_CHAIN: Record< string, { @@ -47,11 +49,10 @@ export const PUBLIC_CLIENTS_BY_CHAIN: Record< paymasterUrl: string } > = { - // Arbitrum (primary wallet chain - always included) - [arbitrum.id]: { + [PEANUT_WALLET_CHAIN.id]: { client: createPublicClient({ - transport: getTransportWithFallback(arbitrum.id), - chain: arbitrum, + transport: getTransportWithFallback(PEANUT_WALLET_CHAIN.id as ChainId), + chain: PEANUT_WALLET_CHAIN, pollingInterval: 500, }), chain: PEANUT_WALLET_CHAIN, diff --git a/src/constants/zerodev.consts.ts b/src/constants/zerodev.consts.ts index 5e9c9b4c42..1687210415 100644 --- a/src/constants/zerodev.consts.ts +++ b/src/constants/zerodev.consts.ts @@ -1,5 +1,5 @@ import { getEntryPoint, KERNEL_V3_1 } from '@zerodev/sdk/constants' -import { arbitrum } from 'viem/chains' +import { arbitrum, arbitrumSepolia } from 'viem/chains' // consts needed to define low level SDK kernel // as per: https://docs.zerodev.app/sdk/getting-started/tutorial-passkeys @@ -11,10 +11,20 @@ export const PASSKEY_SERVER_URL = process.env.NEXT_PUBLIC_ZERO_DEV_PASSKEY_SERVE // as per: https://docs.zerodev.app/smart-wallet/quickstart-react export const ZERO_DEV_PROJECT_ID = process.env.NEXT_PUBLIC_ZERO_DEV_PASSKEY_PROJECT_ID -// TODO: this should be taken from a global token dict, not hardcoded here -export const PEANUT_WALLET_CHAIN = arbitrum +// Default to Arb One + Circle USDC (prod). Overridable via env so the mono +// QA harness can point the UI at Arb Sepolia + testnet USDC without forking. +// When NEXT_PUBLIC_PEANUT_WALLET_CHAIN_ID is '421614', we also default the +// token address to Circle's Arb-Sepolia testnet USDC (lowercase checksum). +const SANDBOX_CHAIN_ID = process.env.NEXT_PUBLIC_PEANUT_WALLET_CHAIN_ID +const USE_SEPOLIA = SANDBOX_CHAIN_ID === '421614' + +export const PEANUT_WALLET_CHAIN = USE_SEPOLIA ? arbitrumSepolia : arbitrum export const PEANUT_WALLET_TOKEN_DECIMALS = 6 // USDC decimals -export const PEANUT_WALLET_TOKEN = '0xaf88d065e77c8cc2239327c5edb3a432268e5831' // USDC Arbitrum address +export const PEANUT_WALLET_TOKEN = + process.env.NEXT_PUBLIC_PEANUT_WALLET_TOKEN ?? + (USE_SEPOLIA + ? '0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d' // Circle USDC on Arb Sepolia + : '0xaf88d065e77c8cc2239327c5edb3a432268e5831') // Circle USDC on Arb One export const PEANUT_WALLET_TOKEN_SYMBOL = 'USDC' export const PEANUT_WALLET_TOKEN_NAME = 'USD Coin' export const PEANUT_WALLET_TOKEN_IMG_URL = diff --git a/src/content b/src/content index 46b6b1ae40..35cd834a44 160000 --- a/src/content +++ b/src/content @@ -1 +1 @@ -Subproject commit 46b6b1ae40047c8674a34fff90b9371b6fdf3aa0 +Subproject commit 35cd834a4494e11136099b739fadff1aea4c06ce diff --git a/src/context/ReproduceBootstrap.tsx b/src/context/ReproduceBootstrap.tsx new file mode 100644 index 0000000000..a94b2a0696 --- /dev/null +++ b/src/context/ReproduceBootstrap.tsx @@ -0,0 +1,85 @@ +'use client' + +/** + * Reproduce-from-screenshot bootstrap. + * + * When the URL includes `?__reproduce=`, this provider fetches the + * reproduce manifest from the harness API, seeds localStorage (harness flags + * + ECDSA pk if present), and sets the jwt-token cookie — landing the page + * in the exact authenticated state the screenshot captured. + * + * Gated by NEXT_PUBLIC_HARNESS_SKIP_PASSKEY_CHECK=true. In prod this + * component is dead code. + * + * See: + * - mono/engineering/qa/VERIFICATION-PLAN.md §13a + * - mono/peanut-api-ts submodule — /dev/reproduce route + */ + +import { useEffect } from 'react' +import { useSearchParams, useRouter } from 'next/navigation' + +const COOKIE_NAME = 'jwt-token' +const SESSION_STORAGE_KEY = '__reproduce_applied' + +function setCookie(name: string, value: string, maxAgeSeconds = 3600) { + if (typeof document === 'undefined') return + document.cookie = `${name}=${value}; Path=/; Max-Age=${maxAgeSeconds}; SameSite=Lax` +} + +export function ReproduceBootstrap() { + const params = useSearchParams() + const router = useRouter() + + useEffect(() => { + if (process.env.NEXT_PUBLIC_HARNESS_SKIP_PASSKEY_CHECK !== 'true') return + const sessionId = params.get('__reproduce') + if (!sessionId) return + // Idempotent: sessionStorage flag prevents re-fetch on re-renders. + if (sessionStorage.getItem(SESSION_STORAGE_KEY) === sessionId) return + + const apiBase = process.env.NEXT_PUBLIC_PEANUT_API_URL || '' + if (!apiBase) return + + let cancelled = false + ;(async () => { + try { + const res = await fetch(`${apiBase}/dev/reproduce/${encodeURIComponent(sessionId)}`) + if (!res.ok) { + console.warn('[reproduce] manifest fetch failed', res.status) + return + } + const manifest = await res.json() + if (cancelled) return + + // Seed localStorage flags from the manifest. + for (const [k, v] of Object.entries(manifest.localStorage ?? {})) { + if (v == null) continue + try { localStorage.setItem(k, String(v)) } catch {} + } + // Set the jwt-token cookie so the UI treats the user as signed in. + if (manifest.token) setCookie(COOKIE_NAME, manifest.token, 1800) + + sessionStorage.setItem(SESSION_STORAGE_KEY, sessionId) + + // Strip the ?__reproduce=... query param so reloads don't retrigger. + const url = new URL(window.location.href) + url.searchParams.delete('__reproduce') + router.replace(url.pathname + url.search) + + // Force a hard reload so the kernel client + auth context + // re-initialize with the freshly-seeded state. Without this + // TanStack Query et al keep their stale pre-seed caches. + setTimeout(() => window.location.reload(), 50) + } catch (err) { + console.warn('[reproduce] bootstrap failed', err) + } + })() + + return () => { + cancelled = true + } + }, [params, router]) + + return null +} diff --git a/src/context/kernelClient.context.tsx b/src/context/kernelClient.context.tsx index f33caf0d26..466d39b4b2 100644 --- a/src/context/kernelClient.context.tsx +++ b/src/context/kernelClient.context.tsx @@ -6,6 +6,7 @@ import { useAppDispatch } from '@/redux/hooks' import { zerodevActions } from '@/redux/slices/zerodev-slice' import { getFromCookie, updateUserPreferences, getUserPreferences } from '@/utils/general.utils' import { PasskeyValidatorContractVersion, toPasskeyValidator, toWebAuthnKey } from '@zerodev/passkey-validator' +import { signerToEcdsaValidator } from '@zerodev/ecdsa-validator' import { createKernelAccount, createKernelAccountClient, @@ -15,6 +16,7 @@ import { import { createContext, type ReactNode, useCallback, useContext, useEffect, useState, useMemo } from 'react' import { type Chain, http, type PublicClient, type Transport } from 'viem' import type { Address } from 'viem' +import { privateKeyToAccount } from 'viem/accounts' import { captureException } from '@sentry/nextjs' import { retryAsync } from '@/utils/retry.utils' import { PUBLIC_CLIENTS_BY_CHAIN } from '@/app/actions/clients' @@ -45,6 +47,84 @@ export const createPasskeyValidator = async ( }) } +// Harness-only: when the playwright session sets window.__harness_ecdsa_pk, +// build the kernel client with an ECDSA validator over that private key +// instead of the passkey validator. This lets Playwright drive real userops +// end-to-end (no way to sign WebAuthn passkeys headlessly). The rest of the +// kernel client code path — bundler, kernel factory — is unchanged. +// Gated on __harness_skip_passkey = 'true' so the code is unreachable in prod. +// +// Sponsorship: if window.__harness_ecdsa_sponsored === 'true' (default), use +// the ZeroDev paymaster. If set to 'false', smart account pays its own gas +// (requires ETH on the SA). Use unsponsored when the sandbox ZeroDev project +// has no sponsor policy configured — which is the case for Arb Sepolia today. +export const createHarnessEcdsaKernelClient = async ( + publicClient: PublicClient, + chain: C, + privateKey: `0x${string}`, + { bundlerUrl, paymasterUrl }: { bundlerUrl: string; paymasterUrl: string } +): Promise> => { + const signer = privateKeyToAccount(privateKey) + const validator = await signerToEcdsaValidator(publicClient, { + signer, + entryPoint: USER_OP_ENTRY_POINT, + kernelVersion: ZERODEV_KERNEL_VERSION, + }) + const kernelAccount = await createKernelAccount(publicClient, { + plugins: { sudo: validator }, + entryPoint: USER_OP_ENTRY_POINT, + kernelVersion: ZERODEV_KERNEL_VERSION, + }) + + const sponsored = + typeof window !== 'undefined' && window.localStorage?.getItem('__harness_ecdsa_sponsored') !== 'false' + + const clientConfig: Parameters[0] = { + account: kernelAccount, + chain, + bundlerTransport: http(bundlerUrl), + pollingInterval: 500, + } + + if (sponsored) { + clientConfig.paymaster = { + getPaymasterData: async (userOperation) => { + const zerodevPaymaster = createZeroDevPaymasterClient({ + chain, + transport: http(paymasterUrl), + }) + return zerodevPaymaster.sponsorUserOperation({ userOperation, shouldOverrideFee: true }) + }, + } + } else { + // Unsponsored: SA pays gas. Bundler's eth_estimateUserOperationGas + // chokes on userops without maxFee, and viem's default estimation path + // expects paymaster-filled gas limits. Intercept at sendUserOperation + // itself — the free-function `prepareUserOperation` in the actions + // chain bypasses method overrides, but everything goes through + // `client.sendUserOperation`, so we wrap that. Conservative limits + // match qa/lib/zerodev.mjs UNSPONSORED_GAS: ~150-300k typical USDC + // transfer + factory-deploy headroom. + const kernelClient = createKernelAccountClient(clientConfig) + const originalSend = kernelClient.sendUserOperation.bind(kernelClient) + kernelClient.sendUserOperation = (async (args: unknown) => { + return originalSend({ + ...(args as object), + callGasLimit: 500_000n, + verificationGasLimit: 800_000n, + preVerificationGas: 500_000n, + // Arb Sepolia public bundler demands >= 0.024 gwei. Use 0.05 for + // headroom (fee is small in absolute terms on testnet anyway). + maxFeePerGas: 50_000_000n, + maxPriorityFeePerGas: 1_000_000n, + } as never) + }) as typeof kernelClient.sendUserOperation + return kernelClient + } + + return createKernelAccountClient(clientConfig) +} + export interface KernelClientOptions { bundlerUrl: string paymasterUrl: string @@ -198,6 +278,48 @@ export const KernelClientProvider = ({ children }: { children: ReactNode }) => { } }, [user?.user.userId, webAuthnKey]) + // Harness-only: when __harness_ecdsa_pk is set in localStorage, bypass the + // passkey-webAuthnKey path entirely and initialize kernel clients with an + // ECDSA validator. Same kernel factory, same bundler, same paymaster — just + // a different signer. This is how Playwright drives real userops. + useEffect(() => { + if (typeof window === 'undefined') return + if (window.localStorage?.getItem('__harness_skip_passkey') !== 'true') return + const pk = window.localStorage.getItem('__harness_ecdsa_pk') + if (!pk || !/^0x[0-9a-fA-F]{64}$/.test(pk)) return + if (!user?.user.userId) return + + let cancelled = false + ;(async () => { + const clients: Record = {} + for (const [chainId, { client, chain, bundlerUrl, paymasterUrl }] of Object.entries(PUBLIC_CLIENTS_BY_CHAIN)) { + try { + const kernelClient = await createHarnessEcdsaKernelClient( + client, + chain, + pk as `0x${string}`, + { bundlerUrl, paymasterUrl } + ) + clients[chainId] = kernelClient + } catch (e) { + console.error(`[harness] ECDSA kernel init failed for chain ${chainId}:`, e) + } + } + if (cancelled) return + if (!clients[PEANUT_WALLET_CHAIN.id.toString()]) { + console.error('[harness] primary ECDSA kernel client failed') + return + } + setClientsByChain(clients) + dispatch(zerodevActions.setIsKernelClientReady(true)) + dispatch(zerodevActions.setIsRegistering(false)) + dispatch(zerodevActions.setIsLoggingIn(false)) + })() + return () => { + cancelled = true + } + }, [user?.user.userId]) + useEffect(() => { let isMounted = true From 5982fdfd8951ac7b2137dd5b99af31c9439d88db Mon Sep 17 00:00:00 2001 From: Hugo Montenegro Date: Sun, 19 Apr 2026 18:37:36 +0100 Subject: [PATCH 062/425] chore(decomplexify): gate reproduce-bootstrap in authed shell redirect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Skip the auth-redirect-to-/setup when a reproduce session is pending — `?__reproduce=` is present but ReproduceBootstrap hasn't finished setting cookies yet. Without this guard, the redirect races the bootstrap and bounces the user away before they land authed. Gated behind NEXT_PUBLIC_HARNESS_SKIP_PASSKEY_CHECK so prod is unaffected. Part of the Nutcracker "▶ play" flow (see engineering/qa/VERIFICATION-PLAN §13a, Slice J). Was previously uncommitted since the earlier session that introduced the reproduce flow; consolidated onto decomplexify per feedback_harness_branch_decomplexify. --- src/app/(mobile-ui)/layout.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/(mobile-ui)/layout.tsx b/src/app/(mobile-ui)/layout.tsx index 24aea9d876..1f95e766d3 100644 --- a/src/app/(mobile-ui)/layout.tsx +++ b/src/app/(mobile-ui)/layout.tsx @@ -82,6 +82,15 @@ const Layout = ({ children }: { children: React.ReactNode }) => { const isRedirecting = useRef(false) useEffect(() => { + // Harness-only: if a reproduce session is in progress (URL param set), + // ReproduceBootstrap will set cookies + reload imminently. Don't + // racing-redirect to /setup in the meantime — it would bounce the + // user before the bootstrap completes. Gated behind the public + // harness flag so prod behavior is unchanged. + if (process.env.NEXT_PUBLIC_HARNESS_SKIP_PASSKEY_CHECK === 'true' && typeof window !== 'undefined') { + const url = new URL(window.location.href) + if (url.searchParams.get('__reproduce')) return + } if (!isPublicPath && isReady && !isFetchingUser && !user && !isRedirecting.current) { isRedirecting.current = true router.replace('/setup') From 8a84db81f4ff219ac9d415018f67286fd8baa000 Mon Sep 17 00:00:00 2001 From: Hugo Montenegro Date: Sun, 19 Apr 2026 23:06:41 +0100 Subject: [PATCH 063/425] ReproduceBootstrap: wipe user-scoped client state before seeding new session MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this, ▶ play against a browser that has cookies / SW caches from a previous reproduce session would surface the wrong user in the header despite the cookie being overwritten. Service worker served stale /users/me responses. IndexedDB (TanStack Query persister) carried over too. Full wipe order before seeding the new scenario user: - expire jwt-token cookie - localStorage keys except reproduce session flag - caches matching USER_DATA_CACHE_PATTERNS - unregister every service worker on the origin - delete all IndexedDB databases Then seed new localStorage + new cookie + hard reload. Hard-refresh removed as a debug step — a fresh Chrome window now does the right thing out of the box. Also: use history.replaceState instead of router.replace to strip the ?__reproduce param before reload (router.replace was async, racing the reload, so the param survived into the post-reload URL). --- src/context/ReproduceBootstrap.tsx | 104 ++++++++++++++++++++++++++--- 1 file changed, 93 insertions(+), 11 deletions(-) diff --git a/src/context/ReproduceBootstrap.tsx b/src/context/ReproduceBootstrap.tsx index a94b2a0696..01e329354f 100644 --- a/src/context/ReproduceBootstrap.tsx +++ b/src/context/ReproduceBootstrap.tsx @@ -4,9 +4,11 @@ * Reproduce-from-screenshot bootstrap. * * When the URL includes `?__reproduce=`, this provider fetches the - * reproduce manifest from the harness API, seeds localStorage (harness flags - * + ECDSA pk if present), and sets the jwt-token cookie — landing the page - * in the exact authenticated state the screenshot captured. + * reproduce manifest from the harness API, clears all user-scoped client + * state (service-worker caches, harness localStorage, jwt cookie), seeds the + * new scenario user's state, and reloads — landing the page in the exact + * authenticated state the screenshot captured, with no carryover from any + * previous reproduce session. * * Gated by NEXT_PUBLIC_HARNESS_SKIP_PASSKEY_CHECK=true. In prod this * component is dead code. @@ -18,6 +20,7 @@ import { useEffect } from 'react' import { useSearchParams, useRouter } from 'next/navigation' +import { USER_DATA_CACHE_PATTERNS } from '@/constants/cache.consts' const COOKIE_NAME = 'jwt-token' const SESSION_STORAGE_KEY = '__reproduce_applied' @@ -27,6 +30,77 @@ function setCookie(name: string, value: string, maxAgeSeconds = 3600) { document.cookie = `${name}=${value}; Path=/; Max-Age=${maxAgeSeconds}; SameSite=Lax` } +function clearCookie(name: string) { + if (typeof document === 'undefined') return + document.cookie = `${name}=; Path=/; Max-Age=0; SameSite=Lax` +} + +// Wipe every piece of user-scoped client state BEFORE seeding the new session. +// Otherwise: +// - Service worker serves /users/me from a previous user's cache → the header +// pill, balance, etc. render the WRONG user even after the cookie swap. +// - localStorage keeps webauthn keys, kernel state, TanStack Query persister +// data — any of which can surface the previous user's identity. +// Mirrors the logout() cleanup in authContext.tsx, minus the redirect. +async function wipeUserScopedClientState() { + // Cookies — expire the jwt unconditionally. Will be re-set with new value. + clearCookie(COOKIE_NAME) + + // localStorage — keep harness flags (we're about to set them fresh); wipe + // everything else that might carry user identity. + try { + const preserve = new Set(['__reproduce_applied']) + const keys = Object.keys(localStorage) + for (const k of keys) { + if (preserve.has(k)) continue + // Keep a narrow allowlist only — anything else is suspect. + try { localStorage.removeItem(k) } catch {} + } + } catch {} + + // Service-worker caches containing user-specific API responses. + if (typeof caches !== 'undefined') { + try { + const names = await caches.keys() + await Promise.all( + names + .filter((n) => USER_DATA_CACHE_PATTERNS.some((p) => n.includes(p))) + .map((n) => caches.delete(n)) + ) + } catch {} + } + + // Unregister ALL service workers for this origin. A running SW can serve + // stale responses from in-memory state even after caches.delete(), and + // can re-populate caches before our new cookie arrives. Full unregister + // forces the next page load to hit the network directly. + if (typeof navigator !== 'undefined' && navigator.serviceWorker) { + try { + const regs = await navigator.serviceWorker.getRegistrations() + await Promise.all(regs.map((r) => r.unregister())) + } catch {} + } + + // IndexedDB — TanStack Query persister and anything else that survived a + // tab close. Wipe all databases (dev-only, harness-only). + if (typeof indexedDB !== 'undefined' && indexedDB.databases) { + try { + const dbs = await indexedDB.databases() + await Promise.all( + (dbs || []).map( + (db) => new Promise((resolve) => { + if (!db.name) return resolve() + const req = indexedDB.deleteDatabase(db.name) + req.onsuccess = () => resolve() + req.onerror = () => resolve() + req.onblocked = () => resolve() + }) + ) + ) + } catch {} + } +} + export function ReproduceBootstrap() { const params = useSearchParams() const router = useRouter() @@ -52,25 +126,33 @@ export function ReproduceBootstrap() { const manifest = await res.json() if (cancelled) return - // Seed localStorage flags from the manifest. + // Step 1: wipe prior user scope (cookies + caches + localStorage). + await wipeUserScopedClientState() + + // Step 2: seed localStorage flags from the new manifest. for (const [k, v] of Object.entries(manifest.localStorage ?? {})) { if (v == null) continue try { localStorage.setItem(k, String(v)) } catch {} } - // Set the jwt-token cookie so the UI treats the user as signed in. + // Step 3: set the jwt-token cookie so the UI treats the user as + // signed in as the scenario's user. if (manifest.token) setCookie(COOKIE_NAME, manifest.token, 1800) sessionStorage.setItem(SESSION_STORAGE_KEY, sessionId) - // Strip the ?__reproduce=... query param so reloads don't retrigger. + // Step 4: strip the ?__reproduce=... query param so the reload + // (and any future refresh) doesn't retrigger the bootstrap. Use + // history.replaceState directly — Next.js's router.replace is + // async and was racing with window.location.reload below, + // leaving the param in the URL. const url = new URL(window.location.href) url.searchParams.delete('__reproduce') - router.replace(url.pathname + url.search) + window.history.replaceState({}, '', url.pathname + url.search) - // Force a hard reload so the kernel client + auth context - // re-initialize with the freshly-seeded state. Without this - // TanStack Query et al keep their stale pre-seed caches. - setTimeout(() => window.location.reload(), 50) + // Step 5: hard reload so every provider (auth, kernel client, + // TanStack Query) reinitializes against the freshly-seeded + // state with no carryover from the pre-wipe session. + window.location.reload() } catch (err) { console.warn('[reproduce] bootstrap failed', err) } From 001369bea7a0fedec78bb7e7d63525ebfb1516d3 Mon Sep 17 00:00:00 2001 From: Hugo Montenegro Date: Mon, 20 Apr 2026 11:01:35 +0100 Subject: [PATCH 064/425] =?UTF-8?q?chore(harness):=20HarnessReplay=20?= =?UTF-8?q?=E2=80=94=20client-side=20interpreter=20for=20action=20DSL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Path B proof-of-concept. Companion to the QA harness runner (Node/ Playwright) that drives the same scenarios server-side. Both sides consume the JSON action descriptors defined at engineering/qa/lib/action-dsl.mjs. ReproduceBootstrap: after wiping + re-seeding persistent state, stash the manifest's accumulated stepActions into sessionStorage under __harness_replay_actions, then hard-reload as before. HarnessReplay: new component mounted alongside ReproduceBootstrap in ClientProviders. On mount, reads the stashed descriptors, clears the key (idempotent against strict-mode double-mounts), waits for providers to stabilise (1.5s), then runs the descriptors sequentially: goto - pushState + popstate dispatch wait - setTimeout click-role - scan button/link/textbox for accessible name match click-text - treewalk for visible element whose textContent matches fill-amount- native setter + input event for React controlled inputs fill - same for generic selectors wait-for-text / wait-for-selector - 100ms poll until visible / timeout No-op outside sandbox mode (same env guard as ReproduceBootstrap). Keeps WithdrawFlowContext / other useState-only contexts honest — sensitive mid-flow state isn't persisted anywhere; it's rebuilt by driving the UI. --- src/app/ClientProviders.tsx | 6 + src/context/HarnessReplay.tsx | 252 +++++++++++++++++++++++++++++ src/context/ReproduceBootstrap.tsx | 13 +- 3 files changed, 270 insertions(+), 1 deletion(-) create mode 100644 src/context/HarnessReplay.tsx diff --git a/src/app/ClientProviders.tsx b/src/app/ClientProviders.tsx index 7e0310d5ae..a3a7478e02 100644 --- a/src/app/ClientProviders.tsx +++ b/src/app/ClientProviders.tsx @@ -13,6 +13,7 @@ import { PeanutProvider } from '@/config' import { ContextProvider } from '@/context' import { FooterVisibilityProvider } from '@/context/footerVisibility' import { ReproduceBootstrap } from '@/context/ReproduceBootstrap' +import { HarnessReplay } from '@/context/HarnessReplay' import { NuqsAdapter } from 'nuqs/adapters/next/app' import { Suspense } from 'react' @@ -29,6 +30,11 @@ export function ClientProviders({ children }: { children: React.ReactNode }) { + {/* HarnessReplay runs AFTER ReproduceBootstrap reloads the page, + picking up stashed action descriptors from sessionStorage and + driving the UI to reproduce transient state (amounts typed, + buttons clicked, receipts shown). No-op outside sandbox mode. */} + {children} diff --git a/src/context/HarnessReplay.tsx b/src/context/HarnessReplay.tsx new file mode 100644 index 0000000000..ef5832d432 --- /dev/null +++ b/src/context/HarnessReplay.tsx @@ -0,0 +1,252 @@ +'use client' + +/** + * HarnessReplay — Path B client-side interpreter for the QA harness action DSL. + * + * After `ReproduceBootstrap` restores the persistent state (DB snapshot + + * localStorage + jwt cookie) and hard-reloads, this component drives the UI + * through the captured user actions — click this button, type that amount, + * wait for this text — so the user lands at the EXACT transient state the + * screenshot captured (mid-flow amounts, post-submit receipts, etc.). + * + * Action descriptors are defined server-side in + * `engineering/qa/lib/action-dsl.mjs`. Both interpreters (server-side + * Playwright in the runner, and this client-side DOM driver) consume the same + * JSON. If you add an action type, update both. + * + * Handshake with ReproduceBootstrap: + * - Bootstrap stashes the accumulated `stepActions` from the manifest into + * sessionStorage under HARNESS_REPLAY_ACTIONS_KEY before reloading. + * - This component reads + clears on next mount, so the replay fires + * exactly once and re-renders don't retrigger it. + * + * Not active outside sandbox mode — keyed off the same env flag + * `NEXT_PUBLIC_HARNESS_SKIP_PASSKEY_CHECK` ReproduceBootstrap uses. + */ + +import { useEffect } from 'react' + +export const HARNESS_REPLAY_ACTIONS_KEY = '__harness_replay_actions' + +type Action = + | { type: 'goto'; url: string } + | { type: 'wait'; ms: number } + | { type: 'click-role'; role: 'button' | 'link' | 'textbox'; name: string; timeoutMs?: number } + | { type: 'click-text'; text: string; timeoutMs?: number } + | { type: 'fill-amount'; value: string; perKeyDelayMs?: number } + | { type: 'fill'; selector: string; value: string } + | { type: 'wait-for-text'; text: string; timeoutMs?: number } + | { type: 'wait-for-selector'; selector: string; timeoutMs?: number } + +const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)) + +/** Poll every 100ms until cb() returns truthy or timeout. */ +async function waitFor(cb: () => T | null | undefined, timeoutMs: number, label: string): Promise { + const deadline = Date.now() + timeoutMs + while (Date.now() < deadline) { + const v = cb() + if (v) return v + await sleep(100) + } + throw new Error(`[harness-replay] timeout waiting for ${label} after ${timeoutMs}ms`) +} + +/** Match `button` or `[role=button]` (etc.) whose accessible name matches `nameRegex`. */ +function findByRole(role: Action extends { type: 'click-role'; role: infer R } ? R : never, nameRegex: RegExp): HTMLElement | null { + const selectors: Record = { + button: 'button, [role="button"]', + link: 'a, [role="link"]', + textbox: 'input, textarea, [role="textbox"]', + } + const sel = selectors[role] || selectors.button + const candidates = Array.from(document.querySelectorAll(sel)) + for (const el of candidates) { + if (!isVisible(el)) continue + const name = (el.getAttribute('aria-label') || el.textContent || '').trim() + if (nameRegex.test(name)) return el + } + return null +} + +/** Match first VISIBLE element whose textContent matches `textRegex`. */ +function findByText(textRegex: RegExp): HTMLElement | null { + // Treewalk for performance — stops at first hit, avoids touching