@hypercerts-org/marketplace-sdk 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,779 @@
1
+ export type Json = string | number | boolean | null | {
2
+ [key: string]: Json | undefined;
3
+ } | Json[];
4
+ export interface Database {
5
+ public: {
6
+ Tables: {
7
+ allowlistCache: {
8
+ Row: {
9
+ address: string | null;
10
+ claimId: string | null;
11
+ created_at: string | null;
12
+ fractionCounter: number | null;
13
+ hidden: boolean;
14
+ id: number;
15
+ };
16
+ Insert: {
17
+ address?: string | null;
18
+ claimId?: string | null;
19
+ created_at?: string | null;
20
+ fractionCounter?: number | null;
21
+ hidden?: boolean;
22
+ id?: number;
23
+ };
24
+ Update: {
25
+ address?: string | null;
26
+ claimId?: string | null;
27
+ created_at?: string | null;
28
+ fractionCounter?: number | null;
29
+ hidden?: boolean;
30
+ id?: number;
31
+ };
32
+ Relationships: [];
33
+ };
34
+ "allowlistCache-chainId": {
35
+ Row: {
36
+ address: string | null;
37
+ chainId: number;
38
+ claimId: string | null;
39
+ created_at: string | null;
40
+ fractionCounter: number | null;
41
+ hidden: boolean;
42
+ id: number;
43
+ };
44
+ Insert: {
45
+ address?: string | null;
46
+ chainId: number;
47
+ claimId?: string | null;
48
+ created_at?: string | null;
49
+ fractionCounter?: number | null;
50
+ hidden?: boolean;
51
+ id?: number;
52
+ };
53
+ Update: {
54
+ address?: string | null;
55
+ chainId?: number;
56
+ claimId?: string | null;
57
+ created_at?: string | null;
58
+ fractionCounter?: number | null;
59
+ hidden?: boolean;
60
+ id?: number;
61
+ };
62
+ Relationships: [];
63
+ };
64
+ "allowlistCache-goerli": {
65
+ Row: {
66
+ address: string | null;
67
+ claimId: string | null;
68
+ created_at: string | null;
69
+ fractionCounter: number | null;
70
+ hidden: boolean;
71
+ id: number;
72
+ };
73
+ Insert: {
74
+ address?: string | null;
75
+ claimId?: string | null;
76
+ created_at?: string | null;
77
+ fractionCounter?: number | null;
78
+ hidden?: boolean;
79
+ id?: number;
80
+ };
81
+ Update: {
82
+ address?: string | null;
83
+ claimId?: string | null;
84
+ created_at?: string | null;
85
+ fractionCounter?: number | null;
86
+ hidden?: boolean;
87
+ id?: number;
88
+ };
89
+ Relationships: [];
90
+ };
91
+ "allowlistCache-optimism": {
92
+ Row: {
93
+ address: string | null;
94
+ claimId: string | null;
95
+ created_at: string | null;
96
+ fractionCounter: number | null;
97
+ hidden: boolean;
98
+ id: number;
99
+ };
100
+ Insert: {
101
+ address?: string | null;
102
+ claimId?: string | null;
103
+ created_at?: string | null;
104
+ fractionCounter?: number | null;
105
+ hidden?: boolean;
106
+ id?: number;
107
+ };
108
+ Update: {
109
+ address?: string | null;
110
+ claimId?: string | null;
111
+ created_at?: string | null;
112
+ fractionCounter?: number | null;
113
+ hidden?: boolean;
114
+ id?: number;
115
+ };
116
+ Relationships: [];
117
+ };
118
+ "allowlistCache-sepolia": {
119
+ Row: {
120
+ address: string | null;
121
+ claimId: string | null;
122
+ created_at: string | null;
123
+ fractionCounter: number | null;
124
+ hidden: boolean;
125
+ id: number;
126
+ };
127
+ Insert: {
128
+ address?: string | null;
129
+ claimId?: string | null;
130
+ created_at?: string | null;
131
+ fractionCounter?: number | null;
132
+ hidden?: boolean;
133
+ id?: number;
134
+ };
135
+ Update: {
136
+ address?: string | null;
137
+ claimId?: string | null;
138
+ created_at?: string | null;
139
+ fractionCounter?: number | null;
140
+ hidden?: boolean;
141
+ id?: number;
142
+ };
143
+ Relationships: [];
144
+ };
145
+ "claim-blueprints-optimism": {
146
+ Row: {
147
+ created_at: string;
148
+ form_values: string;
149
+ id: string;
150
+ minter_address: string;
151
+ registry_id: string;
152
+ };
153
+ Insert: {
154
+ created_at?: string;
155
+ form_values: string;
156
+ id?: string;
157
+ minter_address: string;
158
+ registry_id: string;
159
+ };
160
+ Update: {
161
+ created_at?: string;
162
+ form_values?: string;
163
+ id?: string;
164
+ minter_address?: string;
165
+ registry_id?: string;
166
+ };
167
+ Relationships: [
168
+ {
169
+ foreignKeyName: "claim-blueprints-optimism_registry_id_fkey";
170
+ columns: ["registry_id"];
171
+ isOneToOne: false;
172
+ referencedRelation: "registries-optimism";
173
+ referencedColumns: ["id"];
174
+ }
175
+ ];
176
+ };
177
+ "claims-metadata-mapping": {
178
+ Row: {
179
+ chainId: number | null;
180
+ claimId: string;
181
+ collectionName: string | null;
182
+ collision: string | null;
183
+ createdAt: number | null;
184
+ creatorAddress: string | null;
185
+ date: string | null;
186
+ featured: boolean | null;
187
+ hidden: boolean;
188
+ hypercert: Json | null;
189
+ id: number;
190
+ properties: Json | null;
191
+ title: string | null;
192
+ totalPrice: number | null;
193
+ totalUnits: number | null;
194
+ };
195
+ Insert: {
196
+ chainId?: number | null;
197
+ claimId: string;
198
+ collectionName?: string | null;
199
+ collision?: string | null;
200
+ createdAt?: number | null;
201
+ creatorAddress?: string | null;
202
+ date?: string | null;
203
+ featured?: boolean | null;
204
+ hidden?: boolean;
205
+ hypercert?: Json | null;
206
+ id?: number;
207
+ properties?: Json | null;
208
+ title?: string | null;
209
+ totalPrice?: number | null;
210
+ totalUnits?: number | null;
211
+ };
212
+ Update: {
213
+ chainId?: number | null;
214
+ claimId?: string;
215
+ collectionName?: string | null;
216
+ collision?: string | null;
217
+ createdAt?: number | null;
218
+ creatorAddress?: string | null;
219
+ date?: string | null;
220
+ featured?: boolean | null;
221
+ hidden?: boolean;
222
+ hypercert?: Json | null;
223
+ id?: number;
224
+ properties?: Json | null;
225
+ title?: string | null;
226
+ totalPrice?: number | null;
227
+ totalUnits?: number | null;
228
+ };
229
+ Relationships: [];
230
+ };
231
+ collections: {
232
+ Row: {
233
+ chainId: number | null;
234
+ claimId: string | null;
235
+ collectionName: string | null;
236
+ created_at: string | null;
237
+ featured: boolean | null;
238
+ id: number;
239
+ };
240
+ Insert: {
241
+ chainId?: number | null;
242
+ claimId?: string | null;
243
+ collectionName?: string | null;
244
+ created_at?: string | null;
245
+ featured?: boolean | null;
246
+ id?: number;
247
+ };
248
+ Update: {
249
+ chainId?: number | null;
250
+ claimId?: string | null;
251
+ collectionName?: string | null;
252
+ created_at?: string | null;
253
+ featured?: boolean | null;
254
+ id?: number;
255
+ };
256
+ Relationships: [];
257
+ };
258
+ "ftc-purchase": {
259
+ Row: {
260
+ address: string;
261
+ ethValue: number;
262
+ id: number;
263
+ textForSponsor: string | null;
264
+ timestamp: string;
265
+ values: Json;
266
+ };
267
+ Insert: {
268
+ address: string;
269
+ ethValue: number;
270
+ id?: number;
271
+ textForSponsor?: string | null;
272
+ timestamp?: string;
273
+ values: Json;
274
+ };
275
+ Update: {
276
+ address?: string;
277
+ ethValue?: number;
278
+ id?: number;
279
+ textForSponsor?: string | null;
280
+ timestamp?: string;
281
+ values?: Json;
282
+ };
283
+ Relationships: [];
284
+ };
285
+ "gtc-alpha-allowlist": {
286
+ Row: {
287
+ address: string | null;
288
+ id: number;
289
+ project: string | null;
290
+ units: number | null;
291
+ };
292
+ Insert: {
293
+ address?: string | null;
294
+ id: number;
295
+ project?: string | null;
296
+ units?: number | null;
297
+ };
298
+ Update: {
299
+ address?: string | null;
300
+ id?: number;
301
+ project?: string | null;
302
+ units?: number | null;
303
+ };
304
+ Relationships: [];
305
+ };
306
+ "hidden-hypercerts": {
307
+ Row: {
308
+ chainId: number | null;
309
+ claimId: string | null;
310
+ entry_created_at: string;
311
+ hidden: boolean;
312
+ id: number;
313
+ };
314
+ Insert: {
315
+ chainId?: number | null;
316
+ claimId?: string | null;
317
+ entry_created_at?: string;
318
+ hidden?: boolean;
319
+ id?: number;
320
+ };
321
+ Update: {
322
+ chainId?: number | null;
323
+ claimId?: string | null;
324
+ entry_created_at?: string;
325
+ hidden?: boolean;
326
+ id?: number;
327
+ };
328
+ Relationships: [];
329
+ };
330
+ "hyperboard-claims": {
331
+ Row: {
332
+ created_at: string;
333
+ hypercert_id: string;
334
+ id: string;
335
+ registry_id: string;
336
+ };
337
+ Insert: {
338
+ created_at?: string;
339
+ hypercert_id: string;
340
+ id?: string;
341
+ registry_id: string;
342
+ };
343
+ Update: {
344
+ created_at?: string;
345
+ hypercert_id?: string;
346
+ id?: string;
347
+ registry_id?: string;
348
+ };
349
+ Relationships: [
350
+ {
351
+ foreignKeyName: "hyperboard-claims_registry_id_fkey";
352
+ columns: ["registry_id"];
353
+ isOneToOne: false;
354
+ referencedRelation: "registries-optimism";
355
+ referencedColumns: ["id"];
356
+ }
357
+ ];
358
+ };
359
+ "hyperboard-sponsor-metadata": {
360
+ Row: {
361
+ address: string;
362
+ companyName: string | null;
363
+ created_at: string;
364
+ firstName: string | null;
365
+ id: string;
366
+ image: string;
367
+ lastName: string | null;
368
+ type: string;
369
+ };
370
+ Insert: {
371
+ address: string;
372
+ companyName?: string | null;
373
+ created_at?: string;
374
+ firstName?: string | null;
375
+ id?: string;
376
+ image: string;
377
+ lastName?: string | null;
378
+ type: string;
379
+ };
380
+ Update: {
381
+ address?: string;
382
+ companyName?: string | null;
383
+ created_at?: string;
384
+ firstName?: string | null;
385
+ id?: string;
386
+ image?: string;
387
+ lastName?: string | null;
388
+ type?: string;
389
+ };
390
+ Relationships: [];
391
+ };
392
+ "hypercert-projects": {
393
+ Row: {
394
+ date_to_order: string | null;
395
+ description: string | null;
396
+ hidden: boolean;
397
+ id: number;
398
+ link: string | null;
399
+ link_display_text: string | null;
400
+ name: string | null;
401
+ organization: string | null;
402
+ stage: string | null;
403
+ time_created: string | null;
404
+ type: string | null;
405
+ visible_date: string | null;
406
+ };
407
+ Insert: {
408
+ date_to_order?: string | null;
409
+ description?: string | null;
410
+ hidden?: boolean;
411
+ id?: number;
412
+ link?: string | null;
413
+ link_display_text?: string | null;
414
+ name?: string | null;
415
+ organization?: string | null;
416
+ stage?: string | null;
417
+ time_created?: string | null;
418
+ type?: string | null;
419
+ visible_date?: string | null;
420
+ };
421
+ Update: {
422
+ date_to_order?: string | null;
423
+ description?: string | null;
424
+ hidden?: boolean;
425
+ id?: number;
426
+ link?: string | null;
427
+ link_display_text?: string | null;
428
+ name?: string | null;
429
+ organization?: string | null;
430
+ stage?: string | null;
431
+ time_created?: string | null;
432
+ type?: string | null;
433
+ visible_date?: string | null;
434
+ };
435
+ Relationships: [];
436
+ };
437
+ "hypercerts-store": {
438
+ Row: {
439
+ chainId: number | null;
440
+ claimId: string | null;
441
+ collectionName: string | null;
442
+ created_at: string;
443
+ hidden: boolean;
444
+ id: number;
445
+ maxPurchase: number;
446
+ };
447
+ Insert: {
448
+ chainId?: number | null;
449
+ claimId?: string | null;
450
+ collectionName?: string | null;
451
+ created_at?: string;
452
+ hidden?: boolean;
453
+ id?: number;
454
+ maxPurchase?: number;
455
+ };
456
+ Update: {
457
+ chainId?: number | null;
458
+ claimId?: string | null;
459
+ collectionName?: string | null;
460
+ created_at?: string;
461
+ hidden?: boolean;
462
+ id?: number;
463
+ maxPurchase?: number;
464
+ };
465
+ Relationships: [];
466
+ };
467
+ "marketplace-order-nonces": {
468
+ Row: {
469
+ address: string;
470
+ chain_id: number;
471
+ created_at: string;
472
+ nonce_counter: number;
473
+ };
474
+ Insert: {
475
+ address: string;
476
+ chain_id: number;
477
+ created_at?: string;
478
+ nonce_counter?: number;
479
+ };
480
+ Update: {
481
+ address?: string;
482
+ chain_id?: number;
483
+ created_at?: string;
484
+ nonce_counter?: number;
485
+ };
486
+ Relationships: [];
487
+ };
488
+ "marketplace-orders": {
489
+ Row: {
490
+ additionalParameters: string;
491
+ amounts: number[];
492
+ chainId: number;
493
+ collection: string;
494
+ collectionType: number;
495
+ createdAt: string;
496
+ currency: string;
497
+ endTime: number;
498
+ globalNonce: string;
499
+ id: string;
500
+ itemIds: string[];
501
+ orderNonce: string;
502
+ price: string;
503
+ quoteType: number;
504
+ signature: string;
505
+ signer: string;
506
+ startTime: number;
507
+ strategyId: number;
508
+ subsetNonce: number;
509
+ };
510
+ Insert: {
511
+ additionalParameters: string;
512
+ amounts: number[];
513
+ chainId: number;
514
+ collection: string;
515
+ collectionType: number;
516
+ createdAt?: string;
517
+ currency: string;
518
+ endTime: number;
519
+ globalNonce: string;
520
+ id?: string;
521
+ itemIds: string[];
522
+ orderNonce: string;
523
+ price: string;
524
+ quoteType: number;
525
+ signature: string;
526
+ signer: string;
527
+ startTime: number;
528
+ strategyId: number;
529
+ subsetNonce: number;
530
+ };
531
+ Update: {
532
+ additionalParameters?: string;
533
+ amounts?: number[];
534
+ chainId?: number;
535
+ collection?: string;
536
+ collectionType?: number;
537
+ createdAt?: string;
538
+ currency?: string;
539
+ endTime?: number;
540
+ globalNonce?: string;
541
+ id?: string;
542
+ itemIds?: string[];
543
+ orderNonce?: string;
544
+ price?: string;
545
+ quoteType?: number;
546
+ signature?: string;
547
+ signer?: string;
548
+ startTime?: number;
549
+ strategyId?: number;
550
+ subsetNonce?: number;
551
+ };
552
+ Relationships: [];
553
+ };
554
+ "registries-optimism": {
555
+ Row: {
556
+ admin_id: string;
557
+ created_at: string;
558
+ description: string;
559
+ hidden: boolean;
560
+ id: string;
561
+ name: string;
562
+ };
563
+ Insert: {
564
+ admin_id: string;
565
+ created_at?: string;
566
+ description: string;
567
+ hidden?: boolean;
568
+ id?: string;
569
+ name: string;
570
+ };
571
+ Update: {
572
+ admin_id?: string;
573
+ created_at?: string;
574
+ description?: string;
575
+ hidden?: boolean;
576
+ id?: string;
577
+ name?: string;
578
+ };
579
+ Relationships: [];
580
+ };
581
+ "zuconnect-funders": {
582
+ Row: {
583
+ budget: number | null;
584
+ created_at: string;
585
+ fid: string | null;
586
+ id: number;
587
+ };
588
+ Insert: {
589
+ budget?: number | null;
590
+ created_at?: string;
591
+ fid?: string | null;
592
+ id?: number;
593
+ };
594
+ Update: {
595
+ budget?: number | null;
596
+ created_at?: string;
597
+ fid?: string | null;
598
+ id?: number;
599
+ };
600
+ Relationships: [];
601
+ };
602
+ "zuzalu-community-hypercerts": {
603
+ Row: {
604
+ chainId: number | null;
605
+ claimId: string;
606
+ collectionName: string | null;
607
+ collision: string | null;
608
+ createdAt: number | null;
609
+ creatorAddress: string | null;
610
+ date: string | null;
611
+ featured: boolean | null;
612
+ hidden: boolean;
613
+ hypercert: Json | null;
614
+ id: number;
615
+ properties: Json | null;
616
+ title: string | null;
617
+ totalUnits: number | null;
618
+ };
619
+ Insert: {
620
+ chainId?: number | null;
621
+ claimId: string;
622
+ collectionName?: string | null;
623
+ collision?: string | null;
624
+ createdAt?: number | null;
625
+ creatorAddress?: string | null;
626
+ date?: string | null;
627
+ featured?: boolean | null;
628
+ hidden?: boolean;
629
+ hypercert?: Json | null;
630
+ id?: number;
631
+ properties?: Json | null;
632
+ title?: string | null;
633
+ totalUnits?: number | null;
634
+ };
635
+ Update: {
636
+ chainId?: number | null;
637
+ claimId?: string;
638
+ collectionName?: string | null;
639
+ collision?: string | null;
640
+ createdAt?: number | null;
641
+ creatorAddress?: string | null;
642
+ date?: string | null;
643
+ featured?: boolean | null;
644
+ hidden?: boolean;
645
+ hypercert?: Json | null;
646
+ id?: number;
647
+ properties?: Json | null;
648
+ title?: string | null;
649
+ totalUnits?: number | null;
650
+ };
651
+ Relationships: [];
652
+ };
653
+ "zuzalu-purchase": {
654
+ Row: {
655
+ address: string;
656
+ ethValue: number;
657
+ id: number;
658
+ textForSponsor: string | null;
659
+ timestamp: string;
660
+ values: Json;
661
+ };
662
+ Insert: {
663
+ address: string;
664
+ ethValue: number;
665
+ id?: number;
666
+ textForSponsor?: string | null;
667
+ timestamp?: string;
668
+ values: Json;
669
+ };
670
+ Update: {
671
+ address?: string;
672
+ ethValue?: number;
673
+ id?: number;
674
+ textForSponsor?: string | null;
675
+ timestamp?: string;
676
+ values?: Json;
677
+ };
678
+ Relationships: [];
679
+ };
680
+ };
681
+ Views: {
682
+ [_ in never]: never;
683
+ };
684
+ Functions: {
685
+ citext: {
686
+ Args: {
687
+ "": boolean;
688
+ };
689
+ Returns: string;
690
+ } | {
691
+ Args: {
692
+ "": string;
693
+ };
694
+ Returns: string;
695
+ } | {
696
+ Args: {
697
+ "": unknown;
698
+ };
699
+ Returns: string;
700
+ };
701
+ citext_hash: {
702
+ Args: {
703
+ "": string;
704
+ };
705
+ Returns: number;
706
+ };
707
+ citextin: {
708
+ Args: {
709
+ "": unknown;
710
+ };
711
+ Returns: string;
712
+ };
713
+ citextout: {
714
+ Args: {
715
+ "": string;
716
+ };
717
+ Returns: unknown;
718
+ };
719
+ citextrecv: {
720
+ Args: {
721
+ "": unknown;
722
+ };
723
+ Returns: string;
724
+ };
725
+ citextsend: {
726
+ Args: {
727
+ "": string;
728
+ };
729
+ Returns: string;
730
+ };
731
+ };
732
+ Enums: {
733
+ [_ in never]: never;
734
+ };
735
+ CompositeTypes: {
736
+ [_ in never]: never;
737
+ };
738
+ };
739
+ }
740
+ export type Tables<PublicTableNameOrOptions extends keyof (Database["public"]["Tables"] & Database["public"]["Views"]) | {
741
+ schema: keyof Database;
742
+ }, TableName extends PublicTableNameOrOptions extends {
743
+ schema: keyof Database;
744
+ } ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
745
+ schema: keyof Database;
746
+ } ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
747
+ Row: infer R;
748
+ } ? R : never : PublicTableNameOrOptions extends keyof (Database["public"]["Tables"] & Database["public"]["Views"]) ? (Database["public"]["Tables"] & Database["public"]["Views"])[PublicTableNameOrOptions] extends {
749
+ Row: infer R;
750
+ } ? R : never : never;
751
+ export type TablesInsert<PublicTableNameOrOptions extends keyof Database["public"]["Tables"] | {
752
+ schema: keyof Database;
753
+ }, TableName extends PublicTableNameOrOptions extends {
754
+ schema: keyof Database;
755
+ } ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
756
+ schema: keyof Database;
757
+ } ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
758
+ Insert: infer I;
759
+ } ? I : never : PublicTableNameOrOptions extends keyof Database["public"]["Tables"] ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {
760
+ Insert: infer I;
761
+ } ? I : never : never;
762
+ export type TablesUpdate<PublicTableNameOrOptions extends keyof Database["public"]["Tables"] | {
763
+ schema: keyof Database;
764
+ }, TableName extends PublicTableNameOrOptions extends {
765
+ schema: keyof Database;
766
+ } ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
767
+ schema: keyof Database;
768
+ } ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
769
+ Update: infer U;
770
+ } ? U : never : PublicTableNameOrOptions extends keyof Database["public"]["Tables"] ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {
771
+ Update: infer U;
772
+ } ? U : never : never;
773
+ export type Enums<PublicEnumNameOrOptions extends keyof Database["public"]["Enums"] | {
774
+ schema: keyof Database;
775
+ }, EnumName extends PublicEnumNameOrOptions extends {
776
+ schema: keyof Database;
777
+ } ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
778
+ schema: keyof Database;
779
+ } ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof Database["public"]["Enums"] ? Database["public"]["Enums"][PublicEnumNameOrOptions] : never;