diff --git a/scripts/types/supabase/Database.types.ts b/scripts/types/supabase/Database.types.ts index 2517bb3..29935aa 100644 --- a/scripts/types/supabase/Database.types.ts +++ b/scripts/types/supabase/Database.types.ts @@ -44,29 +44,41 @@ export interface Database { Row: { contract: string created_at: string + domain_name: string | null + domain_tld: string | null id: string is_shared: boolean public_code: string + reservation_email_sent: boolean secret_code: string user_id: string | null + wallet: string | null } Insert: { contract: string created_at?: string + domain_name?: string | null + domain_tld?: string | null id?: string is_shared?: boolean public_code: string + reservation_email_sent?: boolean secret_code: string user_id?: string | null + wallet?: string | null } Update: { contract?: string created_at?: string + domain_name?: string | null + domain_tld?: string | null id?: string is_shared?: boolean public_code?: string + reservation_email_sent?: boolean secret_code?: string user_id?: string | null + wallet?: string | null } Relationships: [] } @@ -106,7 +118,14 @@ export interface Database { [_ in never]: never } Functions: { - claim_giveaway_coupon: { + check_giveaway_coupon: { + Args: { + _public_code: string + _contract: string + } + Returns: boolean + } + user_assign_giveaway_coupon: { Args: { _public_code: string _contract: string diff --git a/supabase/functions/giveaway-generate-proof/index.ts b/supabase/functions/giveaway-generate-proof/index.ts index 4b1a4e2..b5390ac 100644 --- a/supabase/functions/giveaway-generate-proof/index.ts +++ b/supabase/functions/giveaway-generate-proof/index.ts @@ -11,6 +11,7 @@ import { getSupabaseServiceClient, getSupabaseUserClient } from '../_shared/supa * Parameters: * - `contract`: The givewaway contract address. * - `publicCode`: The public code to generate the proof for. + * - `type`: The type of the proof to generate (`public` or `secret`). * * To invoke: * ```