@hypercerts-org/marketplace-sdk 0.3.11 → 0.3.13

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.
package/dist/index.cjs.js CHANGED
@@ -7300,10 +7300,10 @@ var C = function Client(e) {
7300
7300
  return p;
7301
7301
  };
7302
7302
 
7303
- const HYPERCERTS_MARKETPLACE_API_URL = "https://staging-api.hypercerts.org/v1";
7304
- const SUPABASE_HYPERCERTS_URL = "https://zgvoyckkistexkfdmjqc.supabase.co";
7305
- const SUPABASE_HYPERCERTS_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inpndm95Y2traXN0ZXhrZmRtanFjIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTc4ODM1MjAsImV4cCI6MjAxMzQ1OTUyMH0.6FWDhwP3ZOM1O3ObvyRKtOsvwhJjbrZL2B1N-0MSpFg";
7306
- const supabaseHypercerts = supabaseJs.createClient(SUPABASE_HYPERCERTS_URL, SUPABASE_HYPERCERTS_ANON_KEY);
7303
+ const SUPABASE_HYPERCERTS_DATA_STAGING_URL = "https://zgvoyckkistexkfdmjqc.supabase.co";
7304
+ const SUPABASE_HYPERCERTS_DATA_STAGING_ANON_KEY_STAGING = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inpndm95Y2traXN0ZXhrZmRtanFjIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTc4ODM1MjAsImV4cCI6MjAxMzQ1OTUyMH0.6FWDhwP3ZOM1O3ObvyRKtOsvwhJjbrZL2B1N-0MSpFg";
7305
+ const SUPABASE_HYPERCERTS_DATA_PRODUCTION_URL = "https://ueebbafxdbglaqtyslwv.supabase.co";
7306
+ const SUPABASE_HYPERCERTS_DATA_PRODUCTION_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVlZWJiYWZ4ZGJnbGFxdHlzbHd2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTc1NTA1MzUsImV4cCI6MjAxMzEyNjUzNX0.mhClRFe8QL6IQLMvTXjdprR6agr_OXF9g2CUJBww4mE";
7307
7307
  class ApiClient {
7308
7308
  constructor(indexerEnvironment, baseUrl) {
7309
7309
  this.baseUrl = baseUrl;
@@ -7360,7 +7360,7 @@ class ApiClient {
7360
7360
  * @param strategy strategy for the order
7361
7361
  */
7362
7362
  this.fetchOrders = async ({ signer, claimTokenIds, chainId, strategy }) => {
7363
- let baseQuery = supabaseHypercerts.from("marketplace_orders").select("*");
7363
+ let baseQuery = this._supabaseHypercerts.from("marketplace_orders").select("*");
7364
7364
  if (signer) {
7365
7365
  baseQuery.eq("signer", signer);
7366
7366
  }
@@ -7383,7 +7383,7 @@ class ApiClient {
7383
7383
  this.fetchOrdersByHypercertId = async ({ hypercertId }) => {
7384
7384
  const fractions = await getFractionsById(hypercertId, this._urqlClient);
7385
7385
  const tokenIds = fractions?.flatMap(() => fractions.map((fraction) => sdk.parseClaimOrFractionId(fraction.fraction_id).id)) || [];
7386
- const result = await supabaseHypercerts.from("marketplace_orders").select("*").overlaps("itemIds", tokenIds);
7386
+ const result = await this._supabaseHypercerts.from("marketplace_orders").select("*").overlaps("itemIds", tokenIds);
7387
7387
  return result;
7388
7388
  };
7389
7389
  this.handleResponse = async (res) => {
@@ -7393,7 +7393,7 @@ class ApiClient {
7393
7393
  }
7394
7394
  return (await res.json());
7395
7395
  };
7396
- const url = baseUrl || HYPERCERTS_MARKETPLACE_API_URL;
7396
+ const url = baseUrl || `${sdk.CONSTANTS.ENDPOINTS[indexerEnvironment]}/v1`;
7397
7397
  if (!url) {
7398
7398
  throw new Error("No API URL provided");
7399
7399
  }
@@ -7402,6 +7402,9 @@ class ApiClient {
7402
7402
  url: `${sdk.CONSTANTS.ENDPOINTS[indexerEnvironment]}/v1/graphql`,
7403
7403
  exchanges: [cacheExchange, fetchExchange],
7404
7404
  });
7405
+ this._supabaseHypercerts = supabaseJs.createClient(indexerEnvironment === "test" ? SUPABASE_HYPERCERTS_DATA_STAGING_URL : SUPABASE_HYPERCERTS_DATA_PRODUCTION_URL, indexerEnvironment === "test"
7406
+ ? SUPABASE_HYPERCERTS_DATA_STAGING_ANON_KEY_STAGING
7407
+ : SUPABASE_HYPERCERTS_DATA_PRODUCTION_ANON_KEY);
7405
7408
  }
7406
7409
  }
7407
7410
 
package/dist/index.esm.js CHANGED
@@ -7298,10 +7298,10 @@ var C = function Client(e) {
7298
7298
  return p;
7299
7299
  };
7300
7300
 
7301
- const HYPERCERTS_MARKETPLACE_API_URL = "https://staging-api.hypercerts.org/v1";
7302
- const SUPABASE_HYPERCERTS_URL = "https://zgvoyckkistexkfdmjqc.supabase.co";
7303
- const SUPABASE_HYPERCERTS_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inpndm95Y2traXN0ZXhrZmRtanFjIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTc4ODM1MjAsImV4cCI6MjAxMzQ1OTUyMH0.6FWDhwP3ZOM1O3ObvyRKtOsvwhJjbrZL2B1N-0MSpFg";
7304
- const supabaseHypercerts = createClient(SUPABASE_HYPERCERTS_URL, SUPABASE_HYPERCERTS_ANON_KEY);
7301
+ const SUPABASE_HYPERCERTS_DATA_STAGING_URL = "https://zgvoyckkistexkfdmjqc.supabase.co";
7302
+ const SUPABASE_HYPERCERTS_DATA_STAGING_ANON_KEY_STAGING = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inpndm95Y2traXN0ZXhrZmRtanFjIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTc4ODM1MjAsImV4cCI6MjAxMzQ1OTUyMH0.6FWDhwP3ZOM1O3ObvyRKtOsvwhJjbrZL2B1N-0MSpFg";
7303
+ const SUPABASE_HYPERCERTS_DATA_PRODUCTION_URL = "https://ueebbafxdbglaqtyslwv.supabase.co";
7304
+ const SUPABASE_HYPERCERTS_DATA_PRODUCTION_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVlZWJiYWZ4ZGJnbGFxdHlzbHd2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTc1NTA1MzUsImV4cCI6MjAxMzEyNjUzNX0.mhClRFe8QL6IQLMvTXjdprR6agr_OXF9g2CUJBww4mE";
7305
7305
  class ApiClient {
7306
7306
  constructor(indexerEnvironment, baseUrl) {
7307
7307
  this.baseUrl = baseUrl;
@@ -7358,7 +7358,7 @@ class ApiClient {
7358
7358
  * @param strategy strategy for the order
7359
7359
  */
7360
7360
  this.fetchOrders = async ({ signer, claimTokenIds, chainId, strategy }) => {
7361
- let baseQuery = supabaseHypercerts.from("marketplace_orders").select("*");
7361
+ let baseQuery = this._supabaseHypercerts.from("marketplace_orders").select("*");
7362
7362
  if (signer) {
7363
7363
  baseQuery.eq("signer", signer);
7364
7364
  }
@@ -7381,7 +7381,7 @@ class ApiClient {
7381
7381
  this.fetchOrdersByHypercertId = async ({ hypercertId }) => {
7382
7382
  const fractions = await getFractionsById(hypercertId, this._urqlClient);
7383
7383
  const tokenIds = fractions?.flatMap(() => fractions.map((fraction) => parseClaimOrFractionId(fraction.fraction_id).id)) || [];
7384
- const result = await supabaseHypercerts.from("marketplace_orders").select("*").overlaps("itemIds", tokenIds);
7384
+ const result = await this._supabaseHypercerts.from("marketplace_orders").select("*").overlaps("itemIds", tokenIds);
7385
7385
  return result;
7386
7386
  };
7387
7387
  this.handleResponse = async (res) => {
@@ -7391,7 +7391,7 @@ class ApiClient {
7391
7391
  }
7392
7392
  return (await res.json());
7393
7393
  };
7394
- const url = baseUrl || HYPERCERTS_MARKETPLACE_API_URL;
7394
+ const url = baseUrl || `${CONSTANTS.ENDPOINTS[indexerEnvironment]}/v1`;
7395
7395
  if (!url) {
7396
7396
  throw new Error("No API URL provided");
7397
7397
  }
@@ -7400,6 +7400,9 @@ class ApiClient {
7400
7400
  url: `${CONSTANTS.ENDPOINTS[indexerEnvironment]}/v1/graphql`,
7401
7401
  exchanges: [cacheExchange, fetchExchange],
7402
7402
  });
7403
+ this._supabaseHypercerts = createClient(indexerEnvironment === "test" ? SUPABASE_HYPERCERTS_DATA_STAGING_URL : SUPABASE_HYPERCERTS_DATA_PRODUCTION_URL, indexerEnvironment === "test"
7404
+ ? SUPABASE_HYPERCERTS_DATA_STAGING_ANON_KEY_STAGING
7405
+ : SUPABASE_HYPERCERTS_DATA_PRODUCTION_ANON_KEY);
7403
7406
  }
7404
7407
  }
7405
7408
 
@@ -1,529 +1,9 @@
1
1
  import { Maker, QuoteType, StrategyType } from "../types";
2
- import { Database as HypercertsDatabase } from "./hypercerts-database-types";
3
- export declare const supabaseHypercerts: import("@supabase/supabase-js").SupabaseClient<HypercertsDatabase, "public", {
4
- Tables: {
5
- blueprints: {
6
- Row: {
7
- admin_id: string;
8
- created_at: string;
9
- display_size: number;
10
- form_values: import("./hypercerts-database-types").Json;
11
- id: number;
12
- minter_address: string;
13
- registry_id: string;
14
- };
15
- Insert: {
16
- admin_id: string;
17
- created_at?: string | undefined;
18
- display_size?: number | undefined;
19
- form_values: import("./hypercerts-database-types").Json;
20
- id?: number | undefined;
21
- minter_address: string;
22
- registry_id: string;
23
- };
24
- Update: {
25
- admin_id?: string | undefined;
26
- created_at?: string | undefined;
27
- display_size?: number | undefined;
28
- form_values?: import("./hypercerts-database-types").Json | undefined;
29
- id?: number | undefined;
30
- minter_address?: string | undefined;
31
- registry_id?: string | undefined;
32
- };
33
- Relationships: [{
34
- foreignKeyName: "blueprints_admin_id_fkey";
35
- columns: ["admin_id"];
36
- isOneToOne: false;
37
- referencedRelation: "users";
38
- referencedColumns: ["address"];
39
- }, {
40
- foreignKeyName: "blueprints_registry_id_fkey";
41
- columns: ["registry_id"];
42
- isOneToOne: false;
43
- referencedRelation: "registries";
44
- referencedColumns: ["id"];
45
- }];
46
- };
47
- claims: {
48
- Row: {
49
- admin_id: string;
50
- chain_id: number;
51
- created_at: string;
52
- display_size: number;
53
- hypercert_id: string;
54
- id: string;
55
- owner_id: string;
56
- registry_id: string;
57
- };
58
- Insert: {
59
- admin_id: string;
60
- chain_id: number;
61
- created_at?: string | undefined;
62
- display_size?: number | undefined;
63
- hypercert_id: string;
64
- id?: string | undefined;
65
- /**
66
- * Registers order in api
67
- * @param order Order
68
- * @param signer Signer
69
- * @param signature Signature
70
- * @param quoteType Quote type
71
- * @param chainId Chain ID
72
- */
73
- owner_id: string;
74
- registry_id: string;
75
- };
76
- Update: {
77
- admin_id?: string | undefined;
78
- chain_id?: number | undefined;
79
- created_at?: string | undefined;
80
- display_size?: number | undefined;
81
- hypercert_id?: string | undefined;
82
- id?: string | undefined;
83
- owner_id?: string | undefined;
84
- registry_id?: string | undefined;
85
- };
86
- Relationships: [{
87
- foreignKeyName: "claims_registry_id_fkey";
88
- columns: ["registry_id"];
89
- isOneToOne: false;
90
- referencedRelation: "registries";
91
- referencedColumns: ["id"];
92
- }];
93
- };
94
- default_sponsor_metadata: {
95
- Row: {
96
- address: string;
97
- companyName: string | null;
98
- created_at: string;
99
- firstName: string | null;
100
- image: string;
101
- lastName: string | null;
102
- type: string;
103
- };
104
- Insert: {
105
- address: string;
106
- companyName?: string | null | undefined;
107
- created_at?: string | undefined;
108
- firstName?: string | null | undefined;
109
- image: string;
110
- lastName?: string | null | undefined;
111
- type: string;
112
- };
113
- Update: {
114
- address?: string | undefined;
115
- companyName?: string | null | undefined;
116
- created_at?: string | undefined;
117
- firstName?: string | null | undefined;
118
- image?: string | undefined;
119
- lastName?: string | null | undefined;
120
- type?: string | undefined;
121
- };
122
- Relationships: [];
123
- };
124
- fraction_sponsor_metadata: {
125
- Row: {
126
- chain_id: number;
127
- companyName: string | null;
128
- created_at: string;
129
- firstName: string | null;
130
- fraction_id: string;
131
- hypercert_id: string;
132
- id: string;
133
- image: string;
134
- lastName: string | null;
135
- strategy: string;
136
- type: string;
137
- value: string;
138
- };
139
- /**
140
- * Fetches orders from api by hypercert ID
141
- * @param hypercertId Hypercert ID
142
- * @param chainId Chain ID
143
- */
144
- Insert: {
145
- chain_id: number;
146
- companyName?: string | null | undefined;
147
- created_at?: string | undefined;
148
- firstName?: string | null | undefined;
149
- fraction_id: string;
150
- hypercert_id: string;
151
- id?: string | undefined;
152
- image: string;
153
- lastName?: string | null | undefined;
154
- strategy: string;
155
- type: string;
156
- value: string;
157
- };
158
- Update: {
159
- chain_id?: number | undefined;
160
- companyName?: string | null | undefined;
161
- created_at?: string | undefined;
162
- firstName?: string | null | undefined;
163
- fraction_id?: string | undefined;
164
- hypercert_id?: string | undefined;
165
- id?: string | undefined;
166
- image?: string | undefined;
167
- lastName?: string | null | undefined;
168
- strategy?: string | undefined;
169
- type?: string | undefined;
170
- value?: string | undefined;
171
- };
172
- Relationships: [];
173
- };
174
- hyperboard_registries: {
175
- Row: {
176
- created_at: string | null;
177
- hyperboard_id: string;
178
- label: string | null;
179
- registry_id: string;
180
- render_method: string;
181
- };
182
- Insert: {
183
- created_at?: string | null | undefined;
184
- hyperboard_id: string;
185
- label?: string | null | undefined;
186
- registry_id: string;
187
- render_method?: string | undefined;
188
- };
189
- Update: {
190
- created_at?: string | null | undefined;
191
- hyperboard_id?: string | undefined;
192
- label?: string | null | undefined;
193
- registry_id?: string | undefined;
194
- render_method?: string | undefined;
195
- };
196
- Relationships: [{
197
- foreignKeyName: "hyperboard_registries_hyperboard_id_fkey";
198
- columns: ["hyperboard_id"];
199
- isOneToOne: false;
200
- referencedRelation: "hyperboards";
201
- referencedColumns: ["id"];
202
- }, {
203
- foreignKeyName: "hyperboard_registries_registries_id_fk";
204
- columns: ["registry_id"];
205
- isOneToOne: false;
206
- referencedRelation: "registries";
207
- referencedColumns: ["id"];
208
- }];
209
- };
210
- hyperboards: {
211
- Row: {
212
- admin_id: string;
213
- background_image: string | null;
214
- chain_id: number;
215
- created_at: string | null;
216
- grayscale_images: boolean;
217
- id: string;
218
- name: string;
219
- tile_border_color: string | null;
220
- };
221
- Insert: {
222
- admin_id: string;
223
- background_image?: string | null | undefined;
224
- chain_id: number;
225
- created_at?: string | null | undefined;
226
- grayscale_images?: boolean | undefined;
227
- id?: string | undefined;
228
- name: string;
229
- tile_border_color?: string | null | undefined;
230
- };
231
- Update: {
232
- admin_id?: string | undefined;
233
- background_image?: string | null | undefined;
234
- chain_id?: number | undefined;
235
- created_at?: string | null | undefined;
236
- grayscale_images?: boolean | undefined;
237
- id?: string | undefined;
238
- name?: string | undefined;
239
- tile_border_color?: string | null | undefined;
240
- };
241
- Relationships: [];
242
- };
243
- marketplace_order_nonces: {
244
- Row: {
245
- address: string;
246
- chain_id: number;
247
- created_at: string;
248
- nonce_counter: number;
249
- };
250
- Insert: {
251
- address: string;
252
- chain_id: number;
253
- created_at?: string | undefined;
254
- nonce_counter?: number | undefined;
255
- };
256
- Update: {
257
- address?: string | undefined;
258
- chain_id?: number | undefined;
259
- created_at?: string | undefined;
260
- nonce_counter?: number | undefined;
261
- };
262
- Relationships: [];
263
- };
264
- marketplace_orders: {
265
- Row: {
266
- additionalParameters: string;
267
- amounts: number[];
268
- chainId: number;
269
- collection: string;
270
- collectionType: number;
271
- createdAt: string;
272
- currency: string;
273
- endTime: number;
274
- globalNonce: string;
275
- id: string;
276
- invalidated: boolean;
277
- itemIds: string[];
278
- orderNonce: string;
279
- price: string;
280
- quoteType: number;
281
- signature: string;
282
- signer: string;
283
- startTime: number;
284
- strategyId: number;
285
- subsetNonce: number;
286
- validator_codes: number[] | null;
287
- };
288
- Insert: {
289
- additionalParameters: string;
290
- amounts: number[];
291
- chainId: number;
292
- collection: string;
293
- collectionType: number;
294
- createdAt?: string | undefined;
295
- currency: string;
296
- endTime: number;
297
- globalNonce: string;
298
- id?: string | undefined;
299
- invalidated?: boolean | undefined;
300
- itemIds: string[];
301
- orderNonce: string;
302
- price: string;
303
- quoteType: number;
304
- signature: string;
305
- signer: string;
306
- startTime: number;
307
- strategyId: number;
308
- subsetNonce: number;
309
- validator_codes?: number[] | null | undefined;
310
- };
311
- Update: {
312
- additionalParameters?: string | undefined;
313
- amounts?: number[] | undefined;
314
- chainId?: number | undefined;
315
- collection?: string | undefined;
316
- collectionType?: number | undefined;
317
- createdAt?: string | undefined;
318
- currency?: string | undefined;
319
- endTime?: number | undefined;
320
- globalNonce?: string | undefined;
321
- id?: string | undefined;
322
- invalidated?: boolean | undefined;
323
- itemIds?: string[] | undefined;
324
- orderNonce?: string | undefined;
325
- price?: string | undefined;
326
- quoteType?: number | undefined;
327
- signature?: string | undefined;
328
- signer?: string | undefined;
329
- startTime?: number | undefined;
330
- strategyId?: number | undefined;
331
- subsetNonce?: number | undefined;
332
- validator_codes?: number[] | null | undefined;
333
- };
334
- Relationships: [];
335
- };
336
- registries: {
337
- Row: {
338
- admin_id: string;
339
- chain_id: number;
340
- created_at: string;
341
- description: string;
342
- hidden: boolean;
343
- id: string;
344
- name: string;
345
- };
346
- Insert: {
347
- admin_id: string;
348
- chain_id: number;
349
- created_at?: string | undefined;
350
- description: string;
351
- hidden?: boolean | undefined;
352
- id?: string | undefined;
353
- name: string;
354
- };
355
- Update: {
356
- admin_id?: string | undefined;
357
- chain_id?: number | undefined;
358
- created_at?: string | undefined;
359
- description?: string | undefined;
360
- hidden?: boolean | undefined;
361
- id?: string | undefined;
362
- name?: string | undefined;
363
- };
364
- Relationships: [];
365
- };
366
- users: {
367
- Row: {
368
- address: string;
369
- auth: import("./hypercerts-database-types").Json;
370
- created_at: string;
371
- email: string | null;
372
- id: string | null;
373
- };
374
- Insert: {
375
- address: string;
376
- auth?: import("./hypercerts-database-types").Json | undefined;
377
- created_at?: string | undefined;
378
- email?: string | null | undefined;
379
- id?: string | null | undefined;
380
- };
381
- Update: {
382
- address?: string | undefined;
383
- auth?: import("./hypercerts-database-types").Json | undefined;
384
- created_at?: string | undefined;
385
- email?: string | null | undefined;
386
- id?: string | null | undefined;
387
- };
388
- Relationships: [];
389
- };
390
- zuconnect_voting: {
391
- Row: {
392
- allocation_hc01: number | null;
393
- allocation_hc02: number | null;
394
- allocation_hc03: number | null;
395
- allocation_hc04: number | null;
396
- allocation_hc05: number | null;
397
- allocation_hc06: number | null;
398
- allocation_hc07: number | null;
399
- allocation_hc08: number | null;
400
- created_at: string;
401
- feedback: string | null;
402
- fid: string | null;
403
- id: number;
404
- link_to_image: string | null;
405
- percent_core_team: number | null;
406
- percent_direct_allocation: number | null;
407
- percent_matching_fund: number | null;
408
- };
409
- Insert: {
410
- allocation_hc01?: number | null | undefined;
411
- allocation_hc02?: number | null | undefined;
412
- allocation_hc03?: number | null | undefined;
413
- allocation_hc04?: number | null | undefined;
414
- allocation_hc05?: number | null | undefined;
415
- allocation_hc06?: number | null | undefined;
416
- allocation_hc07?: number | null | undefined;
417
- allocation_hc08?: number | null | undefined;
418
- created_at?: string | undefined;
419
- feedback?: string | null | undefined;
420
- fid?: string | null | undefined;
421
- id?: number | undefined;
422
- link_to_image?: string | null | undefined;
423
- percent_core_team?: number | null | undefined;
424
- percent_direct_allocation?: number | null | undefined;
425
- percent_matching_fund?: number | null | undefined;
426
- };
427
- Update: {
428
- allocation_hc01?: number | null | undefined;
429
- allocation_hc02?: number | null | undefined;
430
- allocation_hc03?: number | null | undefined;
431
- allocation_hc04?: number | null | undefined;
432
- allocation_hc05?: number | null | undefined;
433
- allocation_hc06?: number | null | undefined;
434
- allocation_hc07?: number | null | undefined;
435
- allocation_hc08?: number | null | undefined;
436
- created_at?: string | undefined;
437
- feedback?: string | null | undefined;
438
- fid?: string | null | undefined;
439
- id?: number | undefined;
440
- link_to_image?: string | null | undefined;
441
- percent_core_team?: number | null | undefined;
442
- percent_direct_allocation?: number | null | undefined;
443
- percent_matching_fund?: number | null | undefined;
444
- };
445
- Relationships: [];
446
- };
447
- zuzalu_donations: {
448
- Row: {
449
- address: string;
450
- amount: string | null;
451
- created_at: string;
452
- email: string;
453
- id: number;
454
- };
455
- Insert: {
456
- address: string;
457
- amount?: string | null | undefined;
458
- created_at?: string | undefined;
459
- email: string;
460
- id?: number | undefined;
461
- };
462
- Update: {
463
- address?: string | undefined;
464
- amount?: string | null | undefined;
465
- created_at?: string | undefined;
466
- email?: string | undefined;
467
- id?: number | undefined;
468
- };
469
- Relationships: [];
470
- };
471
- };
472
- Views: {};
473
- Functions: {
474
- add_claim_from_blueprint: {
475
- Args: {
476
- registry_id: string;
477
- hypercert_id: string;
478
- chain_id: number;
479
- admin_id: string;
480
- owner_id: string;
481
- blueprint_id: number;
482
- };
483
- Returns: string;
484
- };
485
- default_sponsor_metadata_by_address: {
486
- Args: {
487
- addresses: string[];
488
- };
489
- Returns: {
490
- address: string;
491
- companyName: string | null;
492
- created_at: string;
493
- firstName: string | null;
494
- image: string;
495
- lastName: string | null;
496
- type: string;
497
- }[];
498
- };
499
- fraction_sponsor_metadata_by_fraction_id: {
500
- Args: {
501
- fractions: string[];
502
- chain: number;
503
- };
504
- Returns: {
505
- chain_id: number;
506
- companyName: string | null;
507
- created_at: string;
508
- firstName: string | null;
509
- fraction_id: string;
510
- hypercert_id: string;
511
- id: string;
512
- image: string;
513
- lastName: string | null;
514
- strategy: string;
515
- type: string;
516
- value: string;
517
- }[];
518
- };
519
- };
520
- Enums: {};
521
- CompositeTypes: {};
522
- }>;
523
2
  export declare class ApiClient {
524
3
  private readonly baseUrl?;
525
4
  private _baseUrl;
526
5
  private _urqlClient;
6
+ private _supabaseHypercerts;
527
7
  constructor(indexerEnvironment: "test" | "production", baseUrl?: string | undefined);
528
8
  /**
529
9
  * Fetches order nonce from api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypercerts-org/marketplace-sdk",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -93,7 +93,7 @@
93
93
  "typescript": "^5.3.3"
94
94
  },
95
95
  "dependencies": {
96
- "@hypercerts-org/sdk": "2.0.0-alpha.26",
96
+ "@hypercerts-org/sdk": "2.0.0-alpha.27",
97
97
  "@supabase/supabase-js": "^2.39.2",
98
98
  "@urql/core": "^5.0.4",
99
99
  "ethers": "^6.6.2",