@merkl/api 1.6.82 → 1.6.84

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.
@@ -14149,7 +14149,7 @@ export declare const v4: Elysia<"/v4", {
14149
14149
  200: {
14150
14150
  id: string;
14151
14151
  name: string;
14152
- description: string;
14152
+ description?: string | undefined;
14153
14153
  baseConfig: any;
14154
14154
  completionConfig: {
14155
14155
  [x: string]: any;
@@ -14224,7 +14224,7 @@ export declare const v4: Elysia<"/v4", {
14224
14224
  200: {
14225
14225
  id: string;
14226
14226
  name: string;
14227
- description: string;
14227
+ description?: string | undefined;
14228
14228
  baseConfig: any;
14229
14229
  completionConfig: {
14230
14230
  [x: string]: any;
@@ -14263,7 +14263,7 @@ export declare const v4: Elysia<"/v4", {
14263
14263
  post: {
14264
14264
  body: {
14265
14265
  name: string;
14266
- description: string;
14266
+ description?: string | undefined;
14267
14267
  baseConfig: any;
14268
14268
  completionConfig: {
14269
14269
  [x: string]: any;
@@ -14279,7 +14279,7 @@ export declare const v4: Elysia<"/v4", {
14279
14279
  200: {
14280
14280
  id: string;
14281
14281
  name: string;
14282
- description: string;
14282
+ description?: string | undefined;
14283
14283
  baseConfig: any;
14284
14284
  completionConfig: {
14285
14285
  [x: string]: any;
@@ -14334,7 +14334,7 @@ export declare const v4: Elysia<"/v4", {
14334
14334
  200: {
14335
14335
  id: string;
14336
14336
  name: string;
14337
- description: string;
14337
+ description?: string | undefined;
14338
14338
  baseConfig: any;
14339
14339
  completionConfig: {
14340
14340
  [x: string]: any;
@@ -14384,7 +14384,7 @@ export declare const v4: Elysia<"/v4", {
14384
14384
  200: {
14385
14385
  id: string;
14386
14386
  name: string;
14387
- description: string;
14387
+ description: string | null;
14388
14388
  baseConfig: import("@prisma/client/runtime/client").JsonValue;
14389
14389
  completionConfig: import("@prisma/client/runtime/client").JsonValue;
14390
14390
  protocolId: string | null;
@@ -34,7 +34,7 @@ export declare const TemplateController: Elysia<"/templates", {
34
34
  200: {
35
35
  id: string;
36
36
  name: string;
37
- description: string;
37
+ description?: string | undefined;
38
38
  baseConfig: any;
39
39
  completionConfig: {
40
40
  [x: string]: any;
@@ -109,7 +109,7 @@ export declare const TemplateController: Elysia<"/templates", {
109
109
  200: {
110
110
  id: string;
111
111
  name: string;
112
- description: string;
112
+ description?: string | undefined;
113
113
  baseConfig: any;
114
114
  completionConfig: {
115
115
  [x: string]: any;
@@ -148,7 +148,7 @@ export declare const TemplateController: Elysia<"/templates", {
148
148
  post: {
149
149
  body: {
150
150
  name: string;
151
- description: string;
151
+ description?: string | undefined;
152
152
  baseConfig: any;
153
153
  completionConfig: {
154
154
  [x: string]: any;
@@ -164,7 +164,7 @@ export declare const TemplateController: Elysia<"/templates", {
164
164
  200: {
165
165
  id: string;
166
166
  name: string;
167
- description: string;
167
+ description?: string | undefined;
168
168
  baseConfig: any;
169
169
  completionConfig: {
170
170
  [x: string]: any;
@@ -219,7 +219,7 @@ export declare const TemplateController: Elysia<"/templates", {
219
219
  200: {
220
220
  id: string;
221
221
  name: string;
222
- description: string;
222
+ description?: string | undefined;
223
223
  baseConfig: any;
224
224
  completionConfig: {
225
225
  [x: string]: any;
@@ -269,7 +269,7 @@ export declare const TemplateController: Elysia<"/templates", {
269
269
  200: {
270
270
  id: string;
271
271
  name: string;
272
- description: string;
272
+ description: string | null;
273
273
  baseConfig: import("@prisma/client/runtime/client").JsonValue;
274
274
  completionConfig: import("@prisma/client/runtime/client").JsonValue;
275
275
  protocolId: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"template.formatter.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.formatter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAMnE;;;GAGG;AACH,MAAM,OAAgB,iBAAiB;IACrC;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,cAA0C,EAAY;QAClE,MAAM,gBAAgB,GAAI,cAAc,CAAC,gBAA4C,IAAI,EAAE,CAAC;QAE5F,OAAO;YACL,EAAE,EAAE,cAAc,CAAC,EAAE;YACrB,IAAI,EAAE,cAAc,CAAC,IAAI;YACzB,WAAW,EAAE,cAAc,CAAC,WAAW;YACvC,UAAU,EAAE,cAAc,CAAC,UAAU;YACrC,gBAAgB;YAChB,UAAU,EAAE,cAAc,CAAC,UAAU,IAAI,SAAS;YAClD,QAAQ,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;SAClG,CAAC;IAAA,CACH;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,eAA6C,EAAc;QAC3E,OAAO,eAAe,CAAC,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAAA,CACtD;CACF"}
1
+ {"version":3,"file":"template.formatter.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.formatter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAMnE;;;GAGG;AACH,MAAM,OAAgB,iBAAiB;IACrC;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,cAA0C,EAAY;QAClE,MAAM,gBAAgB,GAAI,cAAc,CAAC,gBAA4C,IAAI,EAAE,CAAC;QAE5F,OAAO;YACL,EAAE,EAAE,cAAc,CAAC,EAAE;YACrB,IAAI,EAAE,cAAc,CAAC,IAAI;YACzB,WAAW,EAAE,cAAc,CAAC,WAAW,IAAI,SAAS;YACpD,UAAU,EAAE,cAAc,CAAC,UAAU;YACrC,gBAAgB;YAChB,UAAU,EAAE,cAAc,CAAC,UAAU,IAAI,SAAS;YAClD,QAAQ,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;SAClG,CAAC;IAAA,CACH;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,eAA6C,EAAc;QAC3E,OAAO,eAAe,CAAC,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAAA,CACtD;CACF"}
@@ -7,7 +7,7 @@ export declare abstract class TemplateRepository {
7
7
  };
8
8
  static create(body: {
9
9
  name: string;
10
- description: string;
10
+ description?: string;
11
11
  baseConfig: Prisma.InputJsonValue;
12
12
  completionConfig: Prisma.InputJsonValue;
13
13
  protocolId?: string;
@@ -29,7 +29,7 @@ export declare abstract class TemplateRepository {
29
29
  static delete(idOrName: string): Promise<{
30
30
  id: string;
31
31
  name: string;
32
- description: string;
32
+ description: string | null;
33
33
  baseConfig: import("@prisma/client/runtime/client").JsonValue;
34
34
  completionConfig: import("@prisma/client/runtime/client").JsonValue;
35
35
  protocolId: string | null;
@@ -4,7 +4,7 @@ export declare abstract class TemplateService {
4
4
  static create(body: CreateTemplateDto): Promise<{
5
5
  id: string;
6
6
  name: string;
7
- description: string;
7
+ description?: string | undefined;
8
8
  baseConfig: any;
9
9
  completionConfig: {
10
10
  [x: string]: any;
@@ -28,7 +28,7 @@ export declare abstract class TemplateService {
28
28
  static findMany(query: GetTemplatesQueryDtoModel): Promise<{
29
29
  id: string;
30
30
  name: string;
31
- description: string;
31
+ description?: string | undefined;
32
32
  baseConfig: any;
33
33
  completionConfig: {
34
34
  [x: string]: any;
@@ -52,7 +52,7 @@ export declare abstract class TemplateService {
52
52
  static findUnique(idOrName: string): Promise<{
53
53
  id: string;
54
54
  name: string;
55
- description: string;
55
+ description?: string | undefined;
56
56
  baseConfig: any;
57
57
  completionConfig: {
58
58
  [x: string]: any;
@@ -76,7 +76,7 @@ export declare abstract class TemplateService {
76
76
  static update(idOrName: string, body: UpdateTemplateDto): Promise<{
77
77
  id: string;
78
78
  name: string;
79
- description: string;
79
+ description?: string | undefined;
80
80
  baseConfig: any;
81
81
  completionConfig: {
82
82
  [x: string]: any;
@@ -101,7 +101,7 @@ export declare abstract class TemplateService {
101
101
  static delete(id: string): Promise<{
102
102
  id: string;
103
103
  name: string;
104
- description: string;
104
+ description: string | null;
105
105
  baseConfig: import("@prisma/client/runtime/client").JsonValue;
106
106
  completionConfig: import("@prisma/client/runtime/client").JsonValue;
107
107
  protocolId: string | null;
@@ -298,6 +298,18 @@ export declare const getAPR: (params: {
298
298
  callDataKey?: string | undefined;
299
299
  }))[];
300
300
  } & ({
301
+ borrowingToken: string;
302
+ supplyTokens: string[];
303
+ tokens: {
304
+ tokenAddress: string;
305
+ symbol: string;
306
+ decimals: number;
307
+ name: string;
308
+ underlyingToken: string;
309
+ underlyingSymbol: string;
310
+ underlyingDecimals: number;
311
+ }[];
312
+ } | {
301
313
  lendingToken: string;
302
314
  borrowTokens: string[];
303
315
  tokens: {