@eyettea/zeta-backend 0.0.1-rc.3 → 0.0.1-rc.5
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/types/api/index.d.ts +2 -1
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/types.d.ts +4 -4
- package/dist/types/app.d.ts +485 -270
- package/dist/types/app.d.ts.map +1 -1
- package/dist/types/lib/errors.d.ts +86 -3
- package/dist/types/lib/errors.d.ts.map +1 -1
- package/dist/types/routes/compute.d.ts +38 -17
- package/dist/types/routes/compute.d.ts.map +1 -1
- package/dist/types/routes/ohlcv.d.ts +19 -9
- package/dist/types/routes/ohlcv.d.ts.map +1 -1
- package/dist/types/routes/pools.d.ts +174 -66
- package/dist/types/routes/pools.d.ts.map +1 -1
- package/dist/types/routes/response.d.ts +63 -16
- package/dist/types/routes/response.d.ts.map +1 -1
- package/package.json +11 -4
package/dist/types/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,QAAQ,CAAC;AAS9C,OAAO,EAEL,UAAU,EACV,QAAQ,EACR,eAAe,EACf,mBAAmB,EAEpB,MAAM,cAAc,CAAC;AAStB,wBAAgB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
@@ -1,8 +1,91 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare abstract class BaseError extends Error {
|
|
3
|
+
message: string;
|
|
4
|
+
details?: Record<string, unknown> | undefined;
|
|
5
|
+
abstract status: number;
|
|
6
|
+
abstract error: string;
|
|
7
|
+
constructor(message: string, details?: Record<string, unknown> | undefined);
|
|
8
|
+
toResponse(): Response;
|
|
9
|
+
}
|
|
10
|
+
export declare const BadRequestStatus = 400;
|
|
11
|
+
export declare class BadRequest extends BaseError {
|
|
12
|
+
status: number;
|
|
2
13
|
constructor(message: string);
|
|
14
|
+
error: "Bad request";
|
|
15
|
+
static getSchema(): z.ZodObject<{
|
|
16
|
+
message: z.ZodString;
|
|
17
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
|
+
} & {
|
|
19
|
+
error: z.ZodLiteral<"Bad request">;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
message: string;
|
|
22
|
+
error: "Bad request";
|
|
23
|
+
details?: Record<string, unknown> | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
message: string;
|
|
26
|
+
error: "Bad request";
|
|
27
|
+
details?: Record<string, unknown> | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
}
|
|
30
|
+
export declare const NotFoundStatus = 404;
|
|
31
|
+
export declare class NotFound extends BaseError {
|
|
32
|
+
status: number;
|
|
33
|
+
error: "Resource not found";
|
|
34
|
+
constructor(subject: string);
|
|
35
|
+
static getSchema(): z.ZodObject<{
|
|
36
|
+
message: z.ZodString;
|
|
37
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
38
|
+
} & {
|
|
39
|
+
error: z.ZodLiteral<"Resource not found">;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
message: string;
|
|
42
|
+
error: "Resource not found";
|
|
43
|
+
details?: Record<string, unknown> | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
message: string;
|
|
46
|
+
error: "Resource not found";
|
|
47
|
+
details?: Record<string, unknown> | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
}
|
|
50
|
+
export declare const ValidationErrorStatus = 422;
|
|
51
|
+
export declare class ValidationError extends BaseError {
|
|
52
|
+
status: number;
|
|
53
|
+
error: "Validation error";
|
|
54
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
55
|
+
static getSchema(): z.ZodObject<{
|
|
56
|
+
message: z.ZodString;
|
|
57
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
58
|
+
} & {
|
|
59
|
+
error: z.ZodLiteral<"Validation error">;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
message: string;
|
|
62
|
+
error: "Validation error";
|
|
63
|
+
details?: Record<string, unknown> | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
message: string;
|
|
66
|
+
error: "Validation error";
|
|
67
|
+
details?: Record<string, unknown> | undefined;
|
|
68
|
+
}>;
|
|
3
69
|
}
|
|
4
|
-
export declare
|
|
5
|
-
export declare class
|
|
70
|
+
export declare const InternalServerErrorStatus = 500;
|
|
71
|
+
export declare class InternalServerError extends BaseError {
|
|
72
|
+
status: number;
|
|
73
|
+
error: "Internal server error";
|
|
6
74
|
constructor(message: string);
|
|
75
|
+
static getSchema(): z.ZodObject<{
|
|
76
|
+
message: z.ZodString;
|
|
77
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
78
|
+
} & {
|
|
79
|
+
error: z.ZodLiteral<"Internal server error">;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
message: string;
|
|
82
|
+
error: "Internal server error";
|
|
83
|
+
details?: Record<string, unknown> | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
message: string;
|
|
86
|
+
error: "Internal server error";
|
|
87
|
+
details?: Record<string, unknown> | undefined;
|
|
88
|
+
}>;
|
|
7
89
|
}
|
|
90
|
+
export declare function convertElysiaError(code: string | number, error: any): BaseError;
|
|
8
91
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/lib/errors.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/lib/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,8BAAsB,SAAU,SAAQ,KAAK;IAKlC,OAAO,EAAE,MAAM;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAL1C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;gBAGb,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAA;IAM1C,UAAU,IAAI,QAAQ;CAavB;AAED,eAAO,MAAM,gBAAgB,MAAM,CAAA;AACnC,qBAAa,UAAW,SAAQ,SAAS;IACvC,MAAM,SAAmB;gBACb,OAAO,EAAE,MAAM;IAG3B,KAAK,gBAAgD;IACrD,MAAM,CAAC,SAAS;;;;;;;;;;;;;;CAKjB;AAED,eAAO,MAAM,cAAc,MAAM,CAAA;AACjC,qBAAa,QAAS,SAAQ,SAAS;IACrC,MAAM,SAAiB;IACvB,KAAK,uBAA8C;gBACvC,OAAO,EAAE,MAAM;IAG3B,MAAM,CAAC,SAAS;;;;;;;;;;;;;;CAKjB;AAED,eAAO,MAAM,qBAAqB,MAAM,CAAA;AACxC,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,MAAM,SAAwB;IAC9B,KAAK,qBAAqD;gBAC9C,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAG9D,MAAM,CAAC,SAAS;;;;;;;;;;;;;;CAKjB;AAED,eAAO,MAAM,yBAAyB,MAAM,CAAA;AAC5C,qBAAa,mBAAoB,SAAQ,SAAS;IAChD,MAAM,SAA4B;IAClC,KAAK,0BAAyD;gBAClD,OAAO,EAAE,MAAM;IAG3B,MAAM,CAAC,SAAS;;;;;;;;;;;;;;CAKjB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,SAAS,CAuB/E"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Elysia } from 'elysia';
|
|
2
2
|
import type { SwapComputeResult } from '../services/computeService';
|
|
3
|
-
import type { ApiResponse } from './response';
|
|
4
3
|
export interface SwapComputeError {
|
|
5
4
|
id: string;
|
|
6
5
|
success: false;
|
|
@@ -44,16 +43,27 @@ export declare const computeRouter: Elysia<"/compute", {
|
|
|
44
43
|
};
|
|
45
44
|
headers: unknown;
|
|
46
45
|
response: {
|
|
47
|
-
|
|
46
|
+
400: {
|
|
47
|
+
message: string;
|
|
48
|
+
error: "Bad request";
|
|
49
|
+
details?: Record<string, unknown> | undefined;
|
|
50
|
+
};
|
|
51
|
+
404: {
|
|
52
|
+
message: string;
|
|
53
|
+
error: "Resource not found";
|
|
54
|
+
details?: Record<string, unknown> | undefined;
|
|
55
|
+
};
|
|
48
56
|
422: {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
message: string;
|
|
58
|
+
error: "Validation error";
|
|
59
|
+
details?: Record<string, unknown> | undefined;
|
|
60
|
+
};
|
|
61
|
+
500: {
|
|
62
|
+
message: string;
|
|
63
|
+
error: "Internal server error";
|
|
64
|
+
details?: Record<string, unknown> | undefined;
|
|
56
65
|
};
|
|
66
|
+
200: SwapComputeResult;
|
|
57
67
|
};
|
|
58
68
|
};
|
|
59
69
|
};
|
|
@@ -73,16 +83,27 @@ export declare const computeRouter: Elysia<"/compute", {
|
|
|
73
83
|
};
|
|
74
84
|
headers: unknown;
|
|
75
85
|
response: {
|
|
76
|
-
|
|
86
|
+
400: {
|
|
87
|
+
message: string;
|
|
88
|
+
error: "Bad request";
|
|
89
|
+
details?: Record<string, unknown> | undefined;
|
|
90
|
+
};
|
|
91
|
+
404: {
|
|
92
|
+
message: string;
|
|
93
|
+
error: "Resource not found";
|
|
94
|
+
details?: Record<string, unknown> | undefined;
|
|
95
|
+
};
|
|
77
96
|
422: {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
97
|
+
message: string;
|
|
98
|
+
error: "Validation error";
|
|
99
|
+
details?: Record<string, unknown> | undefined;
|
|
100
|
+
};
|
|
101
|
+
500: {
|
|
102
|
+
message: string;
|
|
103
|
+
error: "Internal server error";
|
|
104
|
+
details?: Record<string, unknown> | undefined;
|
|
85
105
|
};
|
|
106
|
+
200: SwapComputeResult;
|
|
86
107
|
};
|
|
87
108
|
};
|
|
88
109
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../../src/routes/compute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAK,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../../src/routes/compute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAK,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAMlE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,KAAK,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,IAAI,CAAC;IACd,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,GAAG,gBAAgB,CAAC;AAIxE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuFvB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Elysia } from 'elysia';
|
|
2
|
-
import type { ApiResponse } from './response';
|
|
3
2
|
import type { OHLVCResult } from '../services/poolStatsService';
|
|
4
3
|
export declare const ohlcvRouter: Elysia<"/api/v1/ohlcv", {
|
|
5
4
|
decorator: {};
|
|
@@ -33,16 +32,27 @@ export declare const ohlcvRouter: Elysia<"/api/v1/ohlcv", {
|
|
|
33
32
|
};
|
|
34
33
|
headers: unknown;
|
|
35
34
|
response: {
|
|
36
|
-
|
|
35
|
+
400: {
|
|
36
|
+
message: string;
|
|
37
|
+
error: "Bad request";
|
|
38
|
+
details?: Record<string, unknown> | undefined;
|
|
39
|
+
};
|
|
40
|
+
404: {
|
|
41
|
+
message: string;
|
|
42
|
+
error: "Resource not found";
|
|
43
|
+
details?: Record<string, unknown> | undefined;
|
|
44
|
+
};
|
|
37
45
|
422: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
message: string;
|
|
47
|
+
error: "Validation error";
|
|
48
|
+
details?: Record<string, unknown> | undefined;
|
|
49
|
+
};
|
|
50
|
+
500: {
|
|
51
|
+
message: string;
|
|
52
|
+
error: "Internal server error";
|
|
53
|
+
details?: Record<string, unknown> | undefined;
|
|
45
54
|
};
|
|
55
|
+
200: OHLVCResult;
|
|
46
56
|
};
|
|
47
57
|
};
|
|
48
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ohlcv.d.ts","sourceRoot":"","sources":["../../../src/routes/ohlcv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAK,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"ohlcv.d.ts","sourceRoot":"","sources":["../../../src/routes/ohlcv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAK,MAAM,QAAQ,CAAC;AAInC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAI/D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsGvB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Elysia } from 'elysia';
|
|
2
|
-
import
|
|
2
|
+
import { PaginatedApiResponse } from './response';
|
|
3
3
|
import type { LiquidityLineData } from '../services/poolStatsService';
|
|
4
4
|
import type { TokenPrice } from '../services/priceService';
|
|
5
5
|
import type { TokenInfo } from '@alephium/token-list';
|
|
@@ -60,7 +60,27 @@ export declare const poolsRouter: Elysia<"/pools", {
|
|
|
60
60
|
query: unknown;
|
|
61
61
|
headers: unknown;
|
|
62
62
|
response: {
|
|
63
|
-
|
|
63
|
+
400: {
|
|
64
|
+
message: string;
|
|
65
|
+
error: "Bad request";
|
|
66
|
+
details?: Record<string, unknown> | undefined;
|
|
67
|
+
};
|
|
68
|
+
404: {
|
|
69
|
+
message: string;
|
|
70
|
+
error: "Resource not found";
|
|
71
|
+
details?: Record<string, unknown> | undefined;
|
|
72
|
+
};
|
|
73
|
+
422: {
|
|
74
|
+
message: string;
|
|
75
|
+
error: "Validation error";
|
|
76
|
+
details?: Record<string, unknown> | undefined;
|
|
77
|
+
};
|
|
78
|
+
500: {
|
|
79
|
+
message: string;
|
|
80
|
+
error: "Internal server error";
|
|
81
|
+
details?: Record<string, unknown> | undefined;
|
|
82
|
+
};
|
|
83
|
+
200: TokenListResponse;
|
|
64
84
|
};
|
|
65
85
|
};
|
|
66
86
|
};
|
|
@@ -77,16 +97,27 @@ export declare const poolsRouter: Elysia<"/pools", {
|
|
|
77
97
|
};
|
|
78
98
|
headers: unknown;
|
|
79
99
|
response: {
|
|
80
|
-
|
|
100
|
+
400: {
|
|
101
|
+
message: string;
|
|
102
|
+
error: "Bad request";
|
|
103
|
+
details?: Record<string, unknown> | undefined;
|
|
104
|
+
};
|
|
105
|
+
404: {
|
|
106
|
+
message: string;
|
|
107
|
+
error: "Resource not found";
|
|
108
|
+
details?: Record<string, unknown> | undefined;
|
|
109
|
+
};
|
|
81
110
|
422: {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
111
|
+
message: string;
|
|
112
|
+
error: "Validation error";
|
|
113
|
+
details?: Record<string, unknown> | undefined;
|
|
114
|
+
};
|
|
115
|
+
500: {
|
|
116
|
+
message: string;
|
|
117
|
+
error: "Internal server error";
|
|
118
|
+
details?: Record<string, unknown> | undefined;
|
|
89
119
|
};
|
|
120
|
+
200: ClmmLiquidityLinePayload;
|
|
90
121
|
};
|
|
91
122
|
};
|
|
92
123
|
};
|
|
@@ -104,16 +135,27 @@ export declare const poolsRouter: Elysia<"/pools", {
|
|
|
104
135
|
};
|
|
105
136
|
headers: unknown;
|
|
106
137
|
response: {
|
|
107
|
-
|
|
138
|
+
400: {
|
|
139
|
+
message: string;
|
|
140
|
+
error: "Bad request";
|
|
141
|
+
details?: Record<string, unknown> | undefined;
|
|
142
|
+
};
|
|
143
|
+
404: {
|
|
144
|
+
message: string;
|
|
145
|
+
error: "Resource not found";
|
|
146
|
+
details?: Record<string, unknown> | undefined;
|
|
147
|
+
};
|
|
108
148
|
422: {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
message?: string;
|
|
113
|
-
found?: unknown;
|
|
114
|
-
property?: string;
|
|
115
|
-
expected?: string;
|
|
149
|
+
message: string;
|
|
150
|
+
error: "Validation error";
|
|
151
|
+
details?: Record<string, unknown> | undefined;
|
|
116
152
|
};
|
|
153
|
+
500: {
|
|
154
|
+
message: string;
|
|
155
|
+
error: "Internal server error";
|
|
156
|
+
details?: Record<string, unknown> | undefined;
|
|
157
|
+
};
|
|
158
|
+
200: TokenPricesResponse;
|
|
117
159
|
};
|
|
118
160
|
};
|
|
119
161
|
};
|
|
@@ -134,16 +176,27 @@ export declare const poolsRouter: Elysia<"/pools", {
|
|
|
134
176
|
};
|
|
135
177
|
headers: unknown;
|
|
136
178
|
response: {
|
|
137
|
-
|
|
179
|
+
400: {
|
|
180
|
+
message: string;
|
|
181
|
+
error: "Bad request";
|
|
182
|
+
details?: Record<string, unknown> | undefined;
|
|
183
|
+
};
|
|
184
|
+
404: {
|
|
185
|
+
message: string;
|
|
186
|
+
error: "Resource not found";
|
|
187
|
+
details?: Record<string, unknown> | undefined;
|
|
188
|
+
};
|
|
138
189
|
422: {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
190
|
+
message: string;
|
|
191
|
+
error: "Validation error";
|
|
192
|
+
details?: Record<string, unknown> | undefined;
|
|
193
|
+
};
|
|
194
|
+
500: {
|
|
195
|
+
message: string;
|
|
196
|
+
error: "Internal server error";
|
|
197
|
+
details?: Record<string, unknown> | undefined;
|
|
146
198
|
};
|
|
199
|
+
200: PaginatedApiResponse<PoolListResponse>;
|
|
147
200
|
};
|
|
148
201
|
};
|
|
149
202
|
};
|
|
@@ -161,16 +214,27 @@ export declare const poolsRouter: Elysia<"/pools", {
|
|
|
161
214
|
};
|
|
162
215
|
headers: unknown;
|
|
163
216
|
response: {
|
|
164
|
-
|
|
217
|
+
400: {
|
|
218
|
+
message: string;
|
|
219
|
+
error: "Bad request";
|
|
220
|
+
details?: Record<string, unknown> | undefined;
|
|
221
|
+
};
|
|
222
|
+
404: {
|
|
223
|
+
message: string;
|
|
224
|
+
error: "Resource not found";
|
|
225
|
+
details?: Record<string, unknown> | undefined;
|
|
226
|
+
};
|
|
165
227
|
422: {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
228
|
+
message: string;
|
|
229
|
+
error: "Validation error";
|
|
230
|
+
details?: Record<string, unknown> | undefined;
|
|
231
|
+
};
|
|
232
|
+
500: {
|
|
233
|
+
message: string;
|
|
234
|
+
error: "Internal server error";
|
|
235
|
+
details?: Record<string, unknown> | undefined;
|
|
173
236
|
};
|
|
237
|
+
200: PoolListFromIdsResponse;
|
|
174
238
|
};
|
|
175
239
|
};
|
|
176
240
|
};
|
|
@@ -188,16 +252,27 @@ export declare const poolsRouter: Elysia<"/pools", {
|
|
|
188
252
|
};
|
|
189
253
|
headers: unknown;
|
|
190
254
|
response: {
|
|
191
|
-
|
|
255
|
+
400: {
|
|
256
|
+
message: string;
|
|
257
|
+
error: "Bad request";
|
|
258
|
+
details?: Record<string, unknown> | undefined;
|
|
259
|
+
};
|
|
260
|
+
404: {
|
|
261
|
+
message: string;
|
|
262
|
+
error: "Resource not found";
|
|
263
|
+
details?: Record<string, unknown> | undefined;
|
|
264
|
+
};
|
|
192
265
|
422: {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
message?: string;
|
|
197
|
-
found?: unknown;
|
|
198
|
-
property?: string;
|
|
199
|
-
expected?: string;
|
|
266
|
+
message: string;
|
|
267
|
+
error: "Validation error";
|
|
268
|
+
details?: Record<string, unknown> | undefined;
|
|
200
269
|
};
|
|
270
|
+
500: {
|
|
271
|
+
message: string;
|
|
272
|
+
error: "Internal server error";
|
|
273
|
+
details?: Record<string, unknown> | undefined;
|
|
274
|
+
};
|
|
275
|
+
200: Events;
|
|
201
276
|
};
|
|
202
277
|
};
|
|
203
278
|
};
|
|
@@ -215,16 +290,27 @@ export declare const poolsRouter: Elysia<"/pools", {
|
|
|
215
290
|
};
|
|
216
291
|
headers: unknown;
|
|
217
292
|
response: {
|
|
218
|
-
|
|
293
|
+
400: {
|
|
294
|
+
message: string;
|
|
295
|
+
error: "Bad request";
|
|
296
|
+
details?: Record<string, unknown> | undefined;
|
|
297
|
+
};
|
|
298
|
+
404: {
|
|
299
|
+
message: string;
|
|
300
|
+
error: "Resource not found";
|
|
301
|
+
details?: Record<string, unknown> | undefined;
|
|
302
|
+
};
|
|
219
303
|
422: {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
message?: string;
|
|
224
|
-
found?: unknown;
|
|
225
|
-
property?: string;
|
|
226
|
-
expected?: string;
|
|
304
|
+
message: string;
|
|
305
|
+
error: "Validation error";
|
|
306
|
+
details?: Record<string, unknown> | undefined;
|
|
227
307
|
};
|
|
308
|
+
500: {
|
|
309
|
+
message: string;
|
|
310
|
+
error: "Internal server error";
|
|
311
|
+
details?: Record<string, unknown> | undefined;
|
|
312
|
+
};
|
|
313
|
+
200: ClmmPosition[];
|
|
228
314
|
};
|
|
229
315
|
};
|
|
230
316
|
};
|
|
@@ -245,16 +331,27 @@ export declare const poolsRouter: Elysia<"/pools", {
|
|
|
245
331
|
};
|
|
246
332
|
headers: unknown;
|
|
247
333
|
response: {
|
|
248
|
-
|
|
334
|
+
400: {
|
|
335
|
+
message: string;
|
|
336
|
+
error: "Bad request";
|
|
337
|
+
details?: Record<string, unknown> | undefined;
|
|
338
|
+
};
|
|
339
|
+
404: {
|
|
340
|
+
message: string;
|
|
341
|
+
error: "Resource not found";
|
|
342
|
+
details?: Record<string, unknown> | undefined;
|
|
343
|
+
};
|
|
249
344
|
422: {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
345
|
+
message: string;
|
|
346
|
+
error: "Validation error";
|
|
347
|
+
details?: Record<string, unknown> | undefined;
|
|
348
|
+
};
|
|
349
|
+
500: {
|
|
350
|
+
message: string;
|
|
351
|
+
error: "Internal server error";
|
|
352
|
+
details?: Record<string, unknown> | undefined;
|
|
257
353
|
};
|
|
354
|
+
200: PaginatedApiResponse<PoolListResponse>;
|
|
258
355
|
};
|
|
259
356
|
};
|
|
260
357
|
};
|
|
@@ -274,16 +371,27 @@ export declare const poolsRouter: Elysia<"/pools", {
|
|
|
274
371
|
};
|
|
275
372
|
headers: unknown;
|
|
276
373
|
response: {
|
|
277
|
-
|
|
374
|
+
400: {
|
|
375
|
+
message: string;
|
|
376
|
+
error: "Bad request";
|
|
377
|
+
details?: Record<string, unknown> | undefined;
|
|
378
|
+
};
|
|
379
|
+
404: {
|
|
380
|
+
message: string;
|
|
381
|
+
error: "Resource not found";
|
|
382
|
+
details?: Record<string, unknown> | undefined;
|
|
383
|
+
};
|
|
278
384
|
422: {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
385
|
+
message: string;
|
|
386
|
+
error: "Validation error";
|
|
387
|
+
details?: Record<string, unknown> | undefined;
|
|
388
|
+
};
|
|
389
|
+
500: {
|
|
390
|
+
message: string;
|
|
391
|
+
error: "Internal server error";
|
|
392
|
+
details?: Record<string, unknown> | undefined;
|
|
286
393
|
};
|
|
394
|
+
200: LiquidityLineData;
|
|
287
395
|
};
|
|
288
396
|
};
|
|
289
397
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pools.d.ts","sourceRoot":"","sources":["../../../src/routes/pools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAK,MAAM,QAAQ,CAAC;AAGnC,OAAO,
|
|
1
|
+
{"version":3,"file":"pools.d.ts","sourceRoot":"","sources":["../../../src/routes/pools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAK,MAAM,QAAQ,CAAC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