fix: update edge functions for wallet-based auth

- process-withdraw: replace auth.getUser() with userId from request body
- process-withdrawal: fix esm.sh imports to npm: style (@pezkuwi/api@16.5.11)
This commit is contained in:
2026-02-23 20:09:36 +03:00
parent 341b6f6644
commit 6d23668535
2 changed files with 20 additions and 30 deletions
@@ -19,14 +19,10 @@
* e. Mark as completed
*/
// @ts-expect-error - Deno imports
import { serve } from "https://deno.land/std@0.168.0/http/server.ts";
// @ts-expect-error - Deno imports
import { createClient } from "https://esm.sh/@supabase/supabase-js@2";
// @ts-expect-error - Pezkuwi imports for Deno
import { ApiPromise, WsProvider, Keyring } from "https://esm.sh/@pezkuwi/api@14.0.5";
// @ts-expect-error - Deno imports
import { cryptoWaitReady } from "https://esm.sh/@pezkuwi/util-crypto@14.0.5";
import { serve } from 'https://deno.land/std@0.168.0/http/server.ts'
import { createClient } from 'npm:@supabase/supabase-js@2'
import { ApiPromise, WsProvider, Keyring } from 'npm:@pezkuwi/api@16.5.11'
import { cryptoWaitReady } from 'npm:@pezkuwi/util-crypto@14.0.11'
// Configuration
const SUPABASE_URL = Deno.env.get("SUPABASE_URL")!;