@mobula_labs/types 0.1.9 → 0.1.10

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.d.ts CHANGED
@@ -59,6 +59,7 @@ export * from './v2/asset/AssetPriceHistorySchema.ts';
59
59
  export * from './v2/explorer/BlockQuerySchema.ts';
60
60
  export * from './v2/market/MarketDetailsSchema.ts';
61
61
  export * from './v2/market/MarketOHLCVHistorySchema.ts';
62
+ export * from './v2/metadata/SystemMetadataV2Schema.ts';
62
63
  export * from './v2/perp/PerpBlocksSchema.ts';
63
64
  export * from './v2/perp/PerpOrderQuotingSchema.ts';
64
65
  export * from './v2/swap/SwapQuotingBatchOutput.ts';
@@ -74,6 +75,7 @@ export * from './v2/token/TokenKlineBsPointSchema.ts';
74
75
  export * from './v2/token/TokenMarketsSchema.ts';
75
76
  export * from './v2/token/TokenOHLCVHistorySchema.ts';
76
77
  export * from './v2/token/TokenPositionsSchema.ts';
78
+ export * from './v2/token/TokenPriceHistorySchema.ts';
77
79
  export * from './v2/token/TokenPriceSchema.ts';
78
80
  export * from './v2/token/TokenSecurityOutput.ts';
79
81
  export * from './v2/token/TokenSecurityQuery.ts';
@@ -0,0 +1,424 @@
1
+ import { z } from 'zod';
2
+ export declare const SystemMetadataV2ParamsSchema: z.ZodObject<{
3
+ factories: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
4
+ poolTypes: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
5
+ chains: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
6
+ hasMetadata: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
7
+ status: z.ZodOptional<z.ZodEnum<["APPROVED", "WAITING_APPROVAL", "NOT_APPROVED"]>>;
8
+ chainId: z.ZodOptional<z.ZodString>;
9
+ name: z.ZodOptional<z.ZodString>;
10
+ indexed: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
11
+ type: z.ZodOptional<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type?: string | undefined;
14
+ status?: "APPROVED" | "WAITING_APPROVAL" | "NOT_APPROVED" | undefined;
15
+ name?: string | undefined;
16
+ chainId?: string | undefined;
17
+ factories?: boolean | undefined;
18
+ poolTypes?: boolean | undefined;
19
+ chains?: boolean | undefined;
20
+ hasMetadata?: boolean | undefined;
21
+ indexed?: boolean | undefined;
22
+ }, {
23
+ type?: string | undefined;
24
+ status?: "APPROVED" | "WAITING_APPROVAL" | "NOT_APPROVED" | undefined;
25
+ name?: string | undefined;
26
+ chainId?: string | undefined;
27
+ factories?: unknown;
28
+ poolTypes?: unknown;
29
+ chains?: unknown;
30
+ hasMetadata?: unknown;
31
+ indexed?: unknown;
32
+ }>;
33
+ export type SystemMetadataV2Params = z.input<typeof SystemMetadataV2ParamsSchema>;
34
+ export declare const SystemMetadataV2ResponseSchema: z.ZodObject<{
35
+ data: z.ZodObject<{
36
+ poolTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
37
+ chains: z.ZodOptional<z.ZodArray<z.ZodObject<{
38
+ id: z.ZodString;
39
+ name: z.ZodString;
40
+ type: z.ZodString;
41
+ chainId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
42
+ testnet: z.ZodBoolean;
43
+ indexing: z.ZodBoolean;
44
+ averageBlockTimeInSeconds: z.ZodNullable<z.ZodNumber>;
45
+ native: z.ZodObject<{
46
+ name: z.ZodString;
47
+ symbol: z.ZodString;
48
+ decimals: z.ZodNumber;
49
+ address: z.ZodString;
50
+ }, "strip", z.ZodTypeAny, {
51
+ symbol: string;
52
+ name: string;
53
+ address: string;
54
+ decimals: number;
55
+ }, {
56
+ symbol: string;
57
+ name: string;
58
+ address: string;
59
+ decimals: number;
60
+ }>;
61
+ branding: z.ZodObject<{
62
+ logo: z.ZodString;
63
+ color: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ logo: string;
66
+ color: string;
67
+ }, {
68
+ logo: string;
69
+ color: string;
70
+ }>;
71
+ blockExplorers: z.ZodOptional<z.ZodObject<{
72
+ default: z.ZodObject<{
73
+ name: z.ZodString;
74
+ url: z.ZodString;
75
+ apiUrl: z.ZodOptional<z.ZodString>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ name: string;
78
+ url: string;
79
+ apiUrl?: string | undefined;
80
+ }, {
81
+ name: string;
82
+ url: string;
83
+ apiUrl?: string | undefined;
84
+ }>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ default: {
87
+ name: string;
88
+ url: string;
89
+ apiUrl?: string | undefined;
90
+ };
91
+ }, {
92
+ default: {
93
+ name: string;
94
+ url: string;
95
+ apiUrl?: string | undefined;
96
+ };
97
+ }>>;
98
+ integrations: z.ZodOptional<z.ZodObject<{
99
+ geckoterminal: z.ZodOptional<z.ZodString>;
100
+ dexscreener: z.ZodOptional<z.ZodString>;
101
+ coingecko: z.ZodOptional<z.ZodString>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ geckoterminal?: string | undefined;
104
+ dexscreener?: string | undefined;
105
+ coingecko?: string | undefined;
106
+ }, {
107
+ geckoterminal?: string | undefined;
108
+ dexscreener?: string | undefined;
109
+ coingecko?: string | undefined;
110
+ }>>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ type: string;
113
+ name: string;
114
+ chainId: string | number;
115
+ id: string;
116
+ testnet: boolean;
117
+ native: {
118
+ symbol: string;
119
+ name: string;
120
+ address: string;
121
+ decimals: number;
122
+ };
123
+ indexing: boolean;
124
+ averageBlockTimeInSeconds: number | null;
125
+ branding: {
126
+ logo: string;
127
+ color: string;
128
+ };
129
+ blockExplorers?: {
130
+ default: {
131
+ name: string;
132
+ url: string;
133
+ apiUrl?: string | undefined;
134
+ };
135
+ } | undefined;
136
+ integrations?: {
137
+ geckoterminal?: string | undefined;
138
+ dexscreener?: string | undefined;
139
+ coingecko?: string | undefined;
140
+ } | undefined;
141
+ }, {
142
+ type: string;
143
+ name: string;
144
+ chainId: string | number;
145
+ id: string;
146
+ testnet: boolean;
147
+ native: {
148
+ symbol: string;
149
+ name: string;
150
+ address: string;
151
+ decimals: number;
152
+ };
153
+ indexing: boolean;
154
+ averageBlockTimeInSeconds: number | null;
155
+ branding: {
156
+ logo: string;
157
+ color: string;
158
+ };
159
+ blockExplorers?: {
160
+ default: {
161
+ name: string;
162
+ url: string;
163
+ apiUrl?: string | undefined;
164
+ };
165
+ } | undefined;
166
+ integrations?: {
167
+ geckoterminal?: string | undefined;
168
+ dexscreener?: string | undefined;
169
+ coingecko?: string | undefined;
170
+ } | undefined;
171
+ }>, "many">>;
172
+ factories: z.ZodOptional<z.ZodArray<z.ZodObject<{
173
+ chainId: z.ZodString;
174
+ address: z.ZodString;
175
+ status: z.ZodString;
176
+ name: z.ZodOptional<z.ZodString>;
177
+ metadata: z.ZodOptional<z.ZodObject<{
178
+ ui_name: z.ZodOptional<z.ZodString>;
179
+ logo: z.ZodOptional<z.ZodString>;
180
+ website: z.ZodOptional<z.ZodString>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ logo?: string | undefined;
183
+ website?: string | undefined;
184
+ ui_name?: string | undefined;
185
+ }, {
186
+ logo?: string | undefined;
187
+ website?: string | undefined;
188
+ ui_name?: string | undefined;
189
+ }>>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ status: string;
192
+ address: string;
193
+ chainId: string;
194
+ name?: string | undefined;
195
+ metadata?: {
196
+ logo?: string | undefined;
197
+ website?: string | undefined;
198
+ ui_name?: string | undefined;
199
+ } | undefined;
200
+ }, {
201
+ status: string;
202
+ address: string;
203
+ chainId: string;
204
+ name?: string | undefined;
205
+ metadata?: {
206
+ logo?: string | undefined;
207
+ website?: string | undefined;
208
+ ui_name?: string | undefined;
209
+ } | undefined;
210
+ }>, "many">>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ factories?: {
213
+ status: string;
214
+ address: string;
215
+ chainId: string;
216
+ name?: string | undefined;
217
+ metadata?: {
218
+ logo?: string | undefined;
219
+ website?: string | undefined;
220
+ ui_name?: string | undefined;
221
+ } | undefined;
222
+ }[] | undefined;
223
+ poolTypes?: string[] | undefined;
224
+ chains?: {
225
+ type: string;
226
+ name: string;
227
+ chainId: string | number;
228
+ id: string;
229
+ testnet: boolean;
230
+ native: {
231
+ symbol: string;
232
+ name: string;
233
+ address: string;
234
+ decimals: number;
235
+ };
236
+ indexing: boolean;
237
+ averageBlockTimeInSeconds: number | null;
238
+ branding: {
239
+ logo: string;
240
+ color: string;
241
+ };
242
+ blockExplorers?: {
243
+ default: {
244
+ name: string;
245
+ url: string;
246
+ apiUrl?: string | undefined;
247
+ };
248
+ } | undefined;
249
+ integrations?: {
250
+ geckoterminal?: string | undefined;
251
+ dexscreener?: string | undefined;
252
+ coingecko?: string | undefined;
253
+ } | undefined;
254
+ }[] | undefined;
255
+ }, {
256
+ factories?: {
257
+ status: string;
258
+ address: string;
259
+ chainId: string;
260
+ name?: string | undefined;
261
+ metadata?: {
262
+ logo?: string | undefined;
263
+ website?: string | undefined;
264
+ ui_name?: string | undefined;
265
+ } | undefined;
266
+ }[] | undefined;
267
+ poolTypes?: string[] | undefined;
268
+ chains?: {
269
+ type: string;
270
+ name: string;
271
+ chainId: string | number;
272
+ id: string;
273
+ testnet: boolean;
274
+ native: {
275
+ symbol: string;
276
+ name: string;
277
+ address: string;
278
+ decimals: number;
279
+ };
280
+ indexing: boolean;
281
+ averageBlockTimeInSeconds: number | null;
282
+ branding: {
283
+ logo: string;
284
+ color: string;
285
+ };
286
+ blockExplorers?: {
287
+ default: {
288
+ name: string;
289
+ url: string;
290
+ apiUrl?: string | undefined;
291
+ };
292
+ } | undefined;
293
+ integrations?: {
294
+ geckoterminal?: string | undefined;
295
+ dexscreener?: string | undefined;
296
+ coingecko?: string | undefined;
297
+ } | undefined;
298
+ }[] | undefined;
299
+ }>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ data: {
302
+ factories?: {
303
+ status: string;
304
+ address: string;
305
+ chainId: string;
306
+ name?: string | undefined;
307
+ metadata?: {
308
+ logo?: string | undefined;
309
+ website?: string | undefined;
310
+ ui_name?: string | undefined;
311
+ } | undefined;
312
+ }[] | undefined;
313
+ poolTypes?: string[] | undefined;
314
+ chains?: {
315
+ type: string;
316
+ name: string;
317
+ chainId: string | number;
318
+ id: string;
319
+ testnet: boolean;
320
+ native: {
321
+ symbol: string;
322
+ name: string;
323
+ address: string;
324
+ decimals: number;
325
+ };
326
+ indexing: boolean;
327
+ averageBlockTimeInSeconds: number | null;
328
+ branding: {
329
+ logo: string;
330
+ color: string;
331
+ };
332
+ blockExplorers?: {
333
+ default: {
334
+ name: string;
335
+ url: string;
336
+ apiUrl?: string | undefined;
337
+ };
338
+ } | undefined;
339
+ integrations?: {
340
+ geckoterminal?: string | undefined;
341
+ dexscreener?: string | undefined;
342
+ coingecko?: string | undefined;
343
+ } | undefined;
344
+ }[] | undefined;
345
+ };
346
+ }, {
347
+ data: {
348
+ factories?: {
349
+ status: string;
350
+ address: string;
351
+ chainId: string;
352
+ name?: string | undefined;
353
+ metadata?: {
354
+ logo?: string | undefined;
355
+ website?: string | undefined;
356
+ ui_name?: string | undefined;
357
+ } | undefined;
358
+ }[] | undefined;
359
+ poolTypes?: string[] | undefined;
360
+ chains?: {
361
+ type: string;
362
+ name: string;
363
+ chainId: string | number;
364
+ id: string;
365
+ testnet: boolean;
366
+ native: {
367
+ symbol: string;
368
+ name: string;
369
+ address: string;
370
+ decimals: number;
371
+ };
372
+ indexing: boolean;
373
+ averageBlockTimeInSeconds: number | null;
374
+ branding: {
375
+ logo: string;
376
+ color: string;
377
+ };
378
+ blockExplorers?: {
379
+ default: {
380
+ name: string;
381
+ url: string;
382
+ apiUrl?: string | undefined;
383
+ };
384
+ } | undefined;
385
+ integrations?: {
386
+ geckoterminal?: string | undefined;
387
+ dexscreener?: string | undefined;
388
+ coingecko?: string | undefined;
389
+ } | undefined;
390
+ }[] | undefined;
391
+ };
392
+ }>;
393
+ export type SystemMetadataV2Response = z.infer<typeof SystemMetadataV2ResponseSchema>;
394
+ export declare const SystemMetadataV2ParamsSchemaOpenAPI: z.ZodObject<{
395
+ factories: z.ZodOptional<z.ZodBoolean>;
396
+ poolTypes: z.ZodOptional<z.ZodBoolean>;
397
+ chains: z.ZodOptional<z.ZodBoolean>;
398
+ hasMetadata: z.ZodOptional<z.ZodBoolean>;
399
+ status: z.ZodOptional<z.ZodEnum<["APPROVED", "WAITING_APPROVAL", "NOT_APPROVED"]>>;
400
+ chainId: z.ZodOptional<z.ZodString>;
401
+ name: z.ZodOptional<z.ZodString>;
402
+ indexed: z.ZodOptional<z.ZodBoolean>;
403
+ type: z.ZodOptional<z.ZodString>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ type?: string | undefined;
406
+ status?: "APPROVED" | "WAITING_APPROVAL" | "NOT_APPROVED" | undefined;
407
+ name?: string | undefined;
408
+ chainId?: string | undefined;
409
+ factories?: boolean | undefined;
410
+ poolTypes?: boolean | undefined;
411
+ chains?: boolean | undefined;
412
+ hasMetadata?: boolean | undefined;
413
+ indexed?: boolean | undefined;
414
+ }, {
415
+ type?: string | undefined;
416
+ status?: "APPROVED" | "WAITING_APPROVAL" | "NOT_APPROVED" | undefined;
417
+ name?: string | undefined;
418
+ chainId?: string | undefined;
419
+ factories?: boolean | undefined;
420
+ poolTypes?: boolean | undefined;
421
+ chains?: boolean | undefined;
422
+ hasMetadata?: boolean | undefined;
423
+ indexed?: boolean | undefined;
424
+ }>;
@@ -0,0 +1,130 @@
1
+ import { z } from 'zod';
2
+ export declare const TokenPriceHistoryParamsSchema: z.ZodEffects<z.ZodObject<{
3
+ address: z.ZodString;
4
+ chainId: z.ZodString;
5
+ timeframe: z.ZodDefault<z.ZodEnum<["15m", "1h", "24h", "7d", "30d", "1y"]>>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ address: string;
8
+ chainId: string;
9
+ timeframe: "1h" | "15m" | "24h" | "1y" | "7d" | "30d";
10
+ }, {
11
+ address: string;
12
+ chainId: string;
13
+ timeframe?: "1h" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
14
+ }>, {
15
+ address: string;
16
+ chainId: string;
17
+ timeframe: "1h" | "15m" | "24h" | "1y" | "7d" | "30d";
18
+ }, {
19
+ address: string;
20
+ chainId: string;
21
+ timeframe?: "1h" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
22
+ }>;
23
+ export type TokenPriceHistoryParams = z.input<typeof TokenPriceHistoryParamsSchema>;
24
+ export type TokenPriceHistoryInferType = z.infer<typeof TokenPriceHistoryParamsSchema>;
25
+ export declare const TokenPriceHistoryBatchParamsSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
26
+ address: z.ZodString;
27
+ chainId: z.ZodString;
28
+ timeframe: z.ZodDefault<z.ZodEnum<["15m", "1h", "24h", "7d", "30d", "1y"]>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ address: string;
31
+ chainId: string;
32
+ timeframe: "1h" | "15m" | "24h" | "1y" | "7d" | "30d";
33
+ }, {
34
+ address: string;
35
+ chainId: string;
36
+ timeframe?: "1h" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
37
+ }>, "many">, z.ZodObject<{
38
+ items: z.ZodArray<z.ZodObject<{
39
+ address: z.ZodString;
40
+ chainId: z.ZodString;
41
+ timeframe: z.ZodDefault<z.ZodEnum<["15m", "1h", "24h", "7d", "30d", "1y"]>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ address: string;
44
+ chainId: string;
45
+ timeframe: "1h" | "15m" | "24h" | "1y" | "7d" | "30d";
46
+ }, {
47
+ address: string;
48
+ chainId: string;
49
+ timeframe?: "1h" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
50
+ }>, "many">;
51
+ }, "strip", z.ZodTypeAny, {
52
+ items: {
53
+ address: string;
54
+ chainId: string;
55
+ timeframe: "1h" | "15m" | "24h" | "1y" | "7d" | "30d";
56
+ }[];
57
+ }, {
58
+ items: {
59
+ address: string;
60
+ chainId: string;
61
+ timeframe?: "1h" | "15m" | "24h" | "1y" | "7d" | "30d" | undefined;
62
+ }[];
63
+ }>]>;
64
+ export type TokenPriceHistoryBatchParams = z.input<typeof TokenPriceHistoryBatchParamsSchema>;
65
+ export declare const TokenPriceHistoryResponseSchema: z.ZodObject<{
66
+ data: z.ZodObject<{
67
+ priceHistory: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
68
+ address: z.ZodString;
69
+ chainId: z.ZodString;
70
+ error: z.ZodOptional<z.ZodString>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ address: string;
73
+ chainId: string;
74
+ priceHistory: number[][];
75
+ error?: string | undefined;
76
+ }, {
77
+ address: string;
78
+ chainId: string;
79
+ priceHistory: number[][];
80
+ error?: string | undefined;
81
+ }>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ data: {
84
+ address: string;
85
+ chainId: string;
86
+ priceHistory: number[][];
87
+ error?: string | undefined;
88
+ };
89
+ }, {
90
+ data: {
91
+ address: string;
92
+ chainId: string;
93
+ priceHistory: number[][];
94
+ error?: string | undefined;
95
+ };
96
+ }>;
97
+ export type TokenPriceHistoryResponse = z.infer<typeof TokenPriceHistoryResponseSchema>;
98
+ export declare const TokenPriceHistoryBatchResponseSchema: z.ZodObject<{
99
+ data: z.ZodArray<z.ZodObject<{
100
+ priceHistory: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
101
+ address: z.ZodString;
102
+ chainId: z.ZodString;
103
+ error: z.ZodOptional<z.ZodString>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ address: string;
106
+ chainId: string;
107
+ priceHistory: number[][];
108
+ error?: string | undefined;
109
+ }, {
110
+ address: string;
111
+ chainId: string;
112
+ priceHistory: number[][];
113
+ error?: string | undefined;
114
+ }>, "many">;
115
+ }, "strip", z.ZodTypeAny, {
116
+ data: {
117
+ address: string;
118
+ chainId: string;
119
+ priceHistory: number[][];
120
+ error?: string | undefined;
121
+ }[];
122
+ }, {
123
+ data: {
124
+ address: string;
125
+ chainId: string;
126
+ priceHistory: number[][];
127
+ error?: string | undefined;
128
+ }[];
129
+ }>;
130
+ export type TokenPriceHistoryBatchResponse = z.infer<typeof TokenPriceHistoryBatchResponseSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobula_labs/types",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Centralized TypeScript types and schemas for Mobula SDK and applications.",
5
5
  "author": "Mobula",
6
6
  "license": "MIT",