Skip to content

Commit

Permalink
chore: Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
wottpal committed Aug 28, 2023
1 parent 99d3614 commit 1d9a24b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
21 changes: 20 additions & 1 deletion scripts/types/supabase/Database.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
}
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions supabase/functions/giveaway-generate-proof/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
* ```
Expand Down

0 comments on commit 1d9a24b

Please sign in to comment.