@longdotxyz/shared 0.0.4

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.
Files changed (38) hide show
  1. package/dist/contracts/auction.contract.d.ts +294 -0
  2. package/dist/contracts/auction.contract.js +73 -0
  3. package/dist/contracts/auction.contract.js.map +1 -0
  4. package/dist/contracts/community.contract.d.ts +116 -0
  5. package/dist/contracts/community.contract.js +39 -0
  6. package/dist/contracts/community.contract.js.map +1 -0
  7. package/dist/contracts/index.d.ts +525 -0
  8. package/dist/contracts/index.js +34 -0
  9. package/dist/contracts/index.js.map +1 -0
  10. package/dist/contracts/ipfs.contract.d.ts +86 -0
  11. package/dist/contracts/ipfs.contract.js +44 -0
  12. package/dist/contracts/ipfs.contract.js.map +1 -0
  13. package/dist/contracts/quote.contract.d.ts +121 -0
  14. package/dist/contracts/quote.contract.js +54 -0
  15. package/dist/contracts/quote.contract.js.map +1 -0
  16. package/dist/index.d.ts +3 -0
  17. package/dist/index.js +20 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/types/bigint.type.d.ts +2 -0
  20. package/dist/types/bigint.type.js +19 -0
  21. package/dist/types/bigint.type.js.map +1 -0
  22. package/dist/types/hex.type.d.ts +3 -0
  23. package/dist/types/hex.type.js +9 -0
  24. package/dist/types/hex.type.js.map +1 -0
  25. package/dist/types/index.d.ts +3 -0
  26. package/dist/types/index.js +20 -0
  27. package/dist/types/index.js.map +1 -0
  28. package/dist/types/pool-key.type.d.ts +8 -0
  29. package/dist/types/pool-key.type.js +3 -0
  30. package/dist/types/pool-key.type.js.map +1 -0
  31. package/dist/utils/index.d.ts +1 -0
  32. package/dist/utils/index.js +18 -0
  33. package/dist/utils/index.js.map +1 -0
  34. package/dist/utils/native-token.util.d.ts +5 -0
  35. package/dist/utils/native-token.util.js +26 -0
  36. package/dist/utils/native-token.util.js.map +1 -0
  37. package/package.json +47 -0
  38. package/readme.md +1 -0
@@ -0,0 +1,525 @@
1
+ export declare const rootContract: {
2
+ auctions: {
3
+ getDynamicAuction: {
4
+ pathParams: import("zod").ZodObject<{
5
+ chainId: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodNumber>;
6
+ address: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ chainId: number;
9
+ address: `0x${string}`;
10
+ }, {
11
+ chainId: string;
12
+ address: string;
13
+ }>;
14
+ method: "GET";
15
+ path: "/:chainId/dynamic/:address";
16
+ responses: {
17
+ 200: import("zod").ZodObject<{
18
+ result: import("zod").ZodObject<{
19
+ auction_pool_address: import("zod").ZodString;
20
+ auction_pool_id: import("zod").ZodString;
21
+ auction_base_token_name: import("zod").ZodString;
22
+ auction_base_token_symbol: import("zod").ZodString;
23
+ auction_base_token_address: import("zod").ZodString;
24
+ auction_quote_token_name: import("zod").ZodString;
25
+ auction_quote_token_symbol: import("zod").ZodString;
26
+ auction_quote_token_address: import("zod").ZodString;
27
+ }, "strip", import("zod").ZodTypeAny, {
28
+ auction_pool_address: string;
29
+ auction_pool_id: string;
30
+ auction_base_token_name: string;
31
+ auction_base_token_symbol: string;
32
+ auction_base_token_address: string;
33
+ auction_quote_token_name: string;
34
+ auction_quote_token_symbol: string;
35
+ auction_quote_token_address: string;
36
+ }, {
37
+ auction_pool_address: string;
38
+ auction_pool_id: string;
39
+ auction_base_token_name: string;
40
+ auction_base_token_symbol: string;
41
+ auction_base_token_address: string;
42
+ auction_quote_token_name: string;
43
+ auction_quote_token_symbol: string;
44
+ auction_quote_token_address: string;
45
+ }>;
46
+ }, "strip", import("zod").ZodTypeAny, {
47
+ result: {
48
+ auction_pool_address: string;
49
+ auction_pool_id: string;
50
+ auction_base_token_name: string;
51
+ auction_base_token_symbol: string;
52
+ auction_base_token_address: string;
53
+ auction_quote_token_name: string;
54
+ auction_quote_token_symbol: string;
55
+ auction_quote_token_address: string;
56
+ };
57
+ }, {
58
+ result: {
59
+ auction_pool_address: string;
60
+ auction_pool_id: string;
61
+ auction_base_token_name: string;
62
+ auction_base_token_symbol: string;
63
+ auction_base_token_address: string;
64
+ auction_quote_token_name: string;
65
+ auction_quote_token_symbol: string;
66
+ auction_quote_token_address: string;
67
+ };
68
+ }>;
69
+ };
70
+ };
71
+ createDynamicAuction: {
72
+ pathParams: import("zod").ZodObject<{
73
+ chainId: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodNumber>;
74
+ }, "strip", import("zod").ZodTypeAny, {
75
+ chainId: number;
76
+ }, {
77
+ chainId: string;
78
+ }>;
79
+ method: "POST";
80
+ body: import("zod").ZodObject<{
81
+ templateId: import("zod").ZodString;
82
+ metadata: import("zod").ZodObject<{
83
+ tokenName: import("zod").ZodString;
84
+ tokenSymbol: import("zod").ZodString;
85
+ tokenURI: import("zod").ZodString;
86
+ migrationDuration: import("zod").ZodNumber;
87
+ migrationBeneficiaries: import("zod").ZodArray<import("zod").ZodObject<{
88
+ address: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
89
+ percentage: import("zod").ZodNumber;
90
+ }, "strip", import("zod").ZodTypeAny, {
91
+ address: `0x${string}`;
92
+ percentage: number;
93
+ }, {
94
+ address: string;
95
+ percentage: number;
96
+ }>, "many">;
97
+ }, "strip", import("zod").ZodTypeAny, {
98
+ tokenName: string;
99
+ tokenSymbol: string;
100
+ tokenURI: string;
101
+ migrationDuration: number;
102
+ migrationBeneficiaries: {
103
+ address: `0x${string}`;
104
+ percentage: number;
105
+ }[];
106
+ }, {
107
+ tokenName: string;
108
+ tokenSymbol: string;
109
+ tokenURI: string;
110
+ migrationDuration: number;
111
+ migrationBeneficiaries: {
112
+ address: string;
113
+ percentage: number;
114
+ }[];
115
+ }>;
116
+ }, "strip", import("zod").ZodTypeAny, {
117
+ metadata: {
118
+ tokenName: string;
119
+ tokenSymbol: string;
120
+ tokenURI: string;
121
+ migrationDuration: number;
122
+ migrationBeneficiaries: {
123
+ address: `0x${string}`;
124
+ percentage: number;
125
+ }[];
126
+ };
127
+ templateId: string;
128
+ }, {
129
+ metadata: {
130
+ tokenName: string;
131
+ tokenSymbol: string;
132
+ tokenURI: string;
133
+ migrationDuration: number;
134
+ migrationBeneficiaries: {
135
+ address: string;
136
+ percentage: number;
137
+ }[];
138
+ };
139
+ templateId: string;
140
+ }>;
141
+ path: "/:chainId/dynamic";
142
+ responses: {
143
+ 200: import("zod").ZodObject<{
144
+ result: import("zod").ZodObject<{
145
+ governance_factory: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
146
+ governance_factory_data: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
147
+ pool_initializer: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
148
+ pool_initializer_data: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
149
+ liquidity_migrator: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
150
+ liquidity_migrator_data: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
151
+ integrator: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
152
+ salt: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
153
+ initial_supply: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
154
+ numTokensToSell: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
155
+ numeraire: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
156
+ token_factory: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
157
+ token_factory_data: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
158
+ }, "strip", import("zod").ZodTypeAny, {
159
+ governance_factory: `0x${string}`;
160
+ governance_factory_data: `0x${string}`;
161
+ pool_initializer: `0x${string}`;
162
+ pool_initializer_data: `0x${string}`;
163
+ liquidity_migrator: `0x${string}`;
164
+ liquidity_migrator_data: `0x${string}`;
165
+ integrator: `0x${string}`;
166
+ salt: `0x${string}`;
167
+ initial_supply: `0x${string}`;
168
+ numTokensToSell: `0x${string}`;
169
+ numeraire: `0x${string}`;
170
+ token_factory: `0x${string}`;
171
+ token_factory_data: `0x${string}`;
172
+ }, {
173
+ governance_factory: string;
174
+ governance_factory_data: string;
175
+ pool_initializer: string;
176
+ pool_initializer_data: string;
177
+ liquidity_migrator: string;
178
+ liquidity_migrator_data: string;
179
+ integrator: string;
180
+ salt: string;
181
+ initial_supply: string;
182
+ numTokensToSell: string;
183
+ numeraire: string;
184
+ token_factory: string;
185
+ token_factory_data: string;
186
+ }>;
187
+ }, "strip", import("zod").ZodTypeAny, {
188
+ result: {
189
+ governance_factory: `0x${string}`;
190
+ governance_factory_data: `0x${string}`;
191
+ pool_initializer: `0x${string}`;
192
+ pool_initializer_data: `0x${string}`;
193
+ liquidity_migrator: `0x${string}`;
194
+ liquidity_migrator_data: `0x${string}`;
195
+ integrator: `0x${string}`;
196
+ salt: `0x${string}`;
197
+ initial_supply: `0x${string}`;
198
+ numTokensToSell: `0x${string}`;
199
+ numeraire: `0x${string}`;
200
+ token_factory: `0x${string}`;
201
+ token_factory_data: `0x${string}`;
202
+ };
203
+ }, {
204
+ result: {
205
+ governance_factory: string;
206
+ governance_factory_data: string;
207
+ pool_initializer: string;
208
+ pool_initializer_data: string;
209
+ liquidity_migrator: string;
210
+ liquidity_migrator_data: string;
211
+ integrator: string;
212
+ salt: string;
213
+ initial_supply: string;
214
+ numTokensToSell: string;
215
+ numeraire: string;
216
+ token_factory: string;
217
+ token_factory_data: string;
218
+ };
219
+ }>;
220
+ };
221
+ };
222
+ };
223
+ communities: {
224
+ fetchCommunities: {
225
+ method: "GET";
226
+ path: "/communities";
227
+ responses: {
228
+ 200: import("zod").ZodObject<{
229
+ result: import("zod").ZodArray<import("zod").ZodObject<{
230
+ id: import("zod").ZodNumber;
231
+ label: import("zod").ZodString;
232
+ description: import("zod").ZodNullable<import("zod").ZodString>;
233
+ funding_amount: import("zod").ZodNumber;
234
+ image_url: import("zod").ZodNullable<import("zod").ZodString>;
235
+ }, "strip", import("zod").ZodTypeAny, {
236
+ description: string | null;
237
+ id: number;
238
+ label: string;
239
+ funding_amount: number;
240
+ image_url: string | null;
241
+ }, {
242
+ description: string | null;
243
+ id: number;
244
+ label: string;
245
+ funding_amount: number;
246
+ image_url: string | null;
247
+ }>, "many">;
248
+ }, "strip", import("zod").ZodTypeAny, {
249
+ result: {
250
+ description: string | null;
251
+ id: number;
252
+ label: string;
253
+ funding_amount: number;
254
+ image_url: string | null;
255
+ }[];
256
+ }, {
257
+ result: {
258
+ description: string | null;
259
+ id: number;
260
+ label: string;
261
+ funding_amount: number;
262
+ image_url: string | null;
263
+ }[];
264
+ }>;
265
+ };
266
+ };
267
+ getCommunity: {
268
+ pathParams: import("zod").ZodObject<{
269
+ id: import("zod").ZodNumber;
270
+ }, "strip", import("zod").ZodTypeAny, {
271
+ id: number;
272
+ }, {
273
+ id: number;
274
+ }>;
275
+ method: "GET";
276
+ path: "/communities/:id";
277
+ responses: {
278
+ 200: import("zod").ZodObject<{
279
+ result: import("zod").ZodObject<{
280
+ id: import("zod").ZodNumber;
281
+ label: import("zod").ZodString;
282
+ description: import("zod").ZodNullable<import("zod").ZodString>;
283
+ funding_amount: import("zod").ZodNumber;
284
+ image_url: import("zod").ZodNullable<import("zod").ZodString>;
285
+ }, "strip", import("zod").ZodTypeAny, {
286
+ description: string | null;
287
+ id: number;
288
+ label: string;
289
+ funding_amount: number;
290
+ image_url: string | null;
291
+ }, {
292
+ description: string | null;
293
+ id: number;
294
+ label: string;
295
+ funding_amount: number;
296
+ image_url: string | null;
297
+ }>;
298
+ }, "strip", import("zod").ZodTypeAny, {
299
+ result: {
300
+ description: string | null;
301
+ id: number;
302
+ label: string;
303
+ funding_amount: number;
304
+ image_url: string | null;
305
+ };
306
+ }, {
307
+ result: {
308
+ description: string | null;
309
+ id: number;
310
+ label: string;
311
+ funding_amount: number;
312
+ image_url: string | null;
313
+ };
314
+ }>;
315
+ };
316
+ };
317
+ };
318
+ ipfs: {
319
+ uploadImage: {
320
+ method: "POST";
321
+ contentType: "multipart/form-data";
322
+ body: import("@ts-rest/core").ContractPlainType<{
323
+ image: File;
324
+ }>;
325
+ path: "/ipfs/upload-image";
326
+ responses: {
327
+ 200: import("zod").ZodObject<{
328
+ result: import("zod").ZodString;
329
+ }, "strip", import("zod").ZodTypeAny, {
330
+ result: string;
331
+ }, {
332
+ result: string;
333
+ }>;
334
+ };
335
+ };
336
+ uploadMetadata: {
337
+ method: "POST";
338
+ body: import("zod").ZodObject<{
339
+ name: import("zod").ZodString;
340
+ description: import("zod").ZodString;
341
+ image_hash: import("zod").ZodString;
342
+ social_links: import("zod").ZodArray<import("zod").ZodObject<{
343
+ label: import("zod").ZodString;
344
+ url: import("zod").ZodString;
345
+ }, "strip", import("zod").ZodTypeAny, {
346
+ label: string;
347
+ url: string;
348
+ }, {
349
+ label: string;
350
+ url: string;
351
+ }>, "many">;
352
+ vesting_recipients: import("zod").ZodArray<import("zod").ZodObject<{
353
+ address: import("zod").ZodString;
354
+ percentage: import("zod").ZodNumber;
355
+ }, "strip", import("zod").ZodTypeAny, {
356
+ address: string;
357
+ percentage: number;
358
+ }, {
359
+ address: string;
360
+ percentage: number;
361
+ }>, "many">;
362
+ fee_receiver: import("zod").ZodString;
363
+ }, "strip", import("zod").ZodTypeAny, {
364
+ description: string;
365
+ name: string;
366
+ image_hash: string;
367
+ social_links: {
368
+ label: string;
369
+ url: string;
370
+ }[];
371
+ vesting_recipients: {
372
+ address: string;
373
+ percentage: number;
374
+ }[];
375
+ fee_receiver: string;
376
+ }, {
377
+ description: string;
378
+ name: string;
379
+ image_hash: string;
380
+ social_links: {
381
+ label: string;
382
+ url: string;
383
+ }[];
384
+ vesting_recipients: {
385
+ address: string;
386
+ percentage: number;
387
+ }[];
388
+ fee_receiver: string;
389
+ }>;
390
+ path: "/ipfs/upload-metadata";
391
+ responses: {
392
+ 200: import("zod").ZodObject<{
393
+ result: import("zod").ZodString;
394
+ }, "strip", import("zod").ZodTypeAny, {
395
+ result: string;
396
+ }, {
397
+ result: string;
398
+ }>;
399
+ };
400
+ };
401
+ };
402
+ quotes: {
403
+ v3ExactOutputSingle: {
404
+ method: "POST";
405
+ body: import("zod").ZodObject<{
406
+ chainId: import("zod").ZodNumber;
407
+ tokenIn: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
408
+ tokenOut: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
409
+ amountOut: import("zod").ZodEffects<import("zod").ZodAny, bigint, any>;
410
+ fee: import("zod").ZodNumber;
411
+ }, "strip", import("zod").ZodTypeAny, {
412
+ chainId: number;
413
+ tokenIn: `0x${string}`;
414
+ tokenOut: `0x${string}`;
415
+ amountOut: bigint;
416
+ fee: number;
417
+ }, {
418
+ chainId: number;
419
+ tokenIn: string;
420
+ tokenOut: string;
421
+ fee: number;
422
+ amountOut?: any;
423
+ }>;
424
+ path: "/v3/exact-output-single";
425
+ responses: {
426
+ 200: import("zod").ZodObject<{
427
+ result: import("zod").ZodObject<{
428
+ amountIn: import("zod").ZodString;
429
+ sqrtPriceX96After: import("zod").ZodString;
430
+ initializedTicksCrossed: import("zod").ZodNumber;
431
+ gasEstimate: import("zod").ZodString;
432
+ }, "strip", import("zod").ZodTypeAny, {
433
+ amountIn: string;
434
+ sqrtPriceX96After: string;
435
+ initializedTicksCrossed: number;
436
+ gasEstimate: string;
437
+ }, {
438
+ amountIn: string;
439
+ sqrtPriceX96After: string;
440
+ initializedTicksCrossed: number;
441
+ gasEstimate: string;
442
+ }>;
443
+ }, "strip", import("zod").ZodTypeAny, {
444
+ result: {
445
+ amountIn: string;
446
+ sqrtPriceX96After: string;
447
+ initializedTicksCrossed: number;
448
+ gasEstimate: string;
449
+ };
450
+ }, {
451
+ result: {
452
+ amountIn: string;
453
+ sqrtPriceX96After: string;
454
+ initializedTicksCrossed: number;
455
+ gasEstimate: string;
456
+ };
457
+ }>;
458
+ };
459
+ };
460
+ v3ExactInputSingle: {
461
+ method: "POST";
462
+ body: import("zod").ZodObject<{
463
+ chainId: import("zod").ZodNumber;
464
+ tokenIn: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
465
+ tokenOut: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
466
+ amountIn: import("zod").ZodEffects<import("zod").ZodAny, bigint, any>;
467
+ fee: import("zod").ZodNumber;
468
+ sqrtPriceLimitX96: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodAny, bigint, any>>;
469
+ }, "strip", import("zod").ZodTypeAny, {
470
+ chainId: number;
471
+ tokenIn: `0x${string}`;
472
+ tokenOut: `0x${string}`;
473
+ fee: number;
474
+ amountIn: bigint;
475
+ sqrtPriceLimitX96?: bigint | undefined;
476
+ }, {
477
+ chainId: number;
478
+ tokenIn: string;
479
+ tokenOut: string;
480
+ fee: number;
481
+ amountIn?: any;
482
+ sqrtPriceLimitX96?: any;
483
+ }>;
484
+ path: "/v3/exact-input-single";
485
+ responses: {
486
+ 200: import("zod").ZodObject<{
487
+ result: import("zod").ZodObject<{
488
+ amountOut: import("zod").ZodString;
489
+ sqrtPriceX96After: import("zod").ZodString;
490
+ initializedTicksCrossed: import("zod").ZodNumber;
491
+ gasEstimate: import("zod").ZodString;
492
+ }, "strip", import("zod").ZodTypeAny, {
493
+ amountOut: string;
494
+ sqrtPriceX96After: string;
495
+ initializedTicksCrossed: number;
496
+ gasEstimate: string;
497
+ }, {
498
+ amountOut: string;
499
+ sqrtPriceX96After: string;
500
+ initializedTicksCrossed: number;
501
+ gasEstimate: string;
502
+ }>;
503
+ }, "strip", import("zod").ZodTypeAny, {
504
+ result: {
505
+ amountOut: string;
506
+ sqrtPriceX96After: string;
507
+ initializedTicksCrossed: number;
508
+ gasEstimate: string;
509
+ };
510
+ }, {
511
+ result: {
512
+ amountOut: string;
513
+ sqrtPriceX96After: string;
514
+ initializedTicksCrossed: number;
515
+ gasEstimate: string;
516
+ };
517
+ }>;
518
+ };
519
+ };
520
+ };
521
+ };
522
+ export * from "./auction.contract";
523
+ export * from "./community.contract";
524
+ export * from "./ipfs.contract";
525
+ export * from "./quote.contract";
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.rootContract = void 0;
18
+ const core_1 = require("@ts-rest/core");
19
+ const auction_contract_1 = require("./auction.contract");
20
+ const community_contract_1 = require("./community.contract");
21
+ const ipfs_contract_1 = require("./ipfs.contract");
22
+ const quote_contract_1 = require("./quote.contract");
23
+ const contract = (0, core_1.initContract)();
24
+ exports.rootContract = contract.router({
25
+ auctions: auction_contract_1.auctionContract,
26
+ communities: community_contract_1.communityContract,
27
+ ipfs: ipfs_contract_1.ipfsContract,
28
+ quotes: quote_contract_1.quoteContract,
29
+ });
30
+ __exportStar(require("./auction.contract"), exports);
31
+ __exportStar(require("./community.contract"), exports);
32
+ __exportStar(require("./ipfs.contract"), exports);
33
+ __exportStar(require("./quote.contract"), exports);
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wCAA6C;AAE7C,yDAAqD;AACrD,6DAAyD;AACzD,mDAA+C;AAC/C,qDAAiD;AAEjD,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AACnB,QAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,kCAAe;IACzB,WAAW,EAAE,sCAAiB;IAC9B,IAAI,EAAE,4BAAY;IAClB,MAAM,EAAE,8BAAa;CACxB,CAAC,CAAC;AAEH,qDAAmC;AACnC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC"}
@@ -0,0 +1,86 @@
1
+ import z from "zod";
2
+ declare const ipfsContract: {
3
+ uploadImage: {
4
+ method: "POST";
5
+ contentType: "multipart/form-data";
6
+ body: import("@ts-rest/core").ContractPlainType<{
7
+ image: File;
8
+ }>;
9
+ path: "/ipfs/upload-image";
10
+ responses: {
11
+ 200: z.ZodObject<{
12
+ result: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ result: string;
15
+ }, {
16
+ result: string;
17
+ }>;
18
+ };
19
+ };
20
+ uploadMetadata: {
21
+ method: "POST";
22
+ body: z.ZodObject<{
23
+ name: z.ZodString;
24
+ description: z.ZodString;
25
+ image_hash: z.ZodString;
26
+ social_links: z.ZodArray<z.ZodObject<{
27
+ label: z.ZodString;
28
+ url: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ label: string;
31
+ url: string;
32
+ }, {
33
+ label: string;
34
+ url: string;
35
+ }>, "many">;
36
+ vesting_recipients: z.ZodArray<z.ZodObject<{
37
+ address: z.ZodString;
38
+ percentage: z.ZodNumber;
39
+ }, "strip", z.ZodTypeAny, {
40
+ address: string;
41
+ percentage: number;
42
+ }, {
43
+ address: string;
44
+ percentage: number;
45
+ }>, "many">;
46
+ fee_receiver: z.ZodString;
47
+ }, "strip", z.ZodTypeAny, {
48
+ description: string;
49
+ name: string;
50
+ image_hash: string;
51
+ social_links: {
52
+ label: string;
53
+ url: string;
54
+ }[];
55
+ vesting_recipients: {
56
+ address: string;
57
+ percentage: number;
58
+ }[];
59
+ fee_receiver: string;
60
+ }, {
61
+ description: string;
62
+ name: string;
63
+ image_hash: string;
64
+ social_links: {
65
+ label: string;
66
+ url: string;
67
+ }[];
68
+ vesting_recipients: {
69
+ address: string;
70
+ percentage: number;
71
+ }[];
72
+ fee_receiver: string;
73
+ }>;
74
+ path: "/ipfs/upload-metadata";
75
+ responses: {
76
+ 200: z.ZodObject<{
77
+ result: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ result: string;
80
+ }, {
81
+ result: string;
82
+ }>;
83
+ };
84
+ };
85
+ };
86
+ export { ipfsContract };