@merkl/api 0.10.239 → 0.10.240
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/eden/index.d.ts +6 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/modules/v4/router.d.ts +2 -0
- package/dist/src/modules/v4/token/token.controller.d.ts +2 -0
- package/dist/src/modules/v4/token/token.model.d.ts +1 -0
- package/dist/src/modules/v4/token/token.model.js +1 -0
- package/dist/src/modules/v4/token/token.repository.js +11 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -905,6 +905,7 @@ declare const eden: {
|
|
905
905
|
name?: string | undefined;
|
906
906
|
chainId?: any;
|
907
907
|
address?: string | undefined;
|
908
|
+
displaySymbol?: string | undefined;
|
908
909
|
verified?: boolean | undefined;
|
909
910
|
test?: boolean | undefined;
|
910
911
|
};
|
@@ -959,6 +960,7 @@ declare const eden: {
|
|
959
960
|
name?: string | undefined;
|
960
961
|
chainId?: any;
|
961
962
|
address?: string | undefined;
|
963
|
+
displaySymbol?: string | undefined;
|
962
964
|
verified?: boolean | undefined;
|
963
965
|
test?: boolean | undefined;
|
964
966
|
};
|
@@ -3785,6 +3787,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3785
3787
|
name?: string | undefined;
|
3786
3788
|
chainId?: any;
|
3787
3789
|
address?: string | undefined;
|
3790
|
+
displaySymbol?: string | undefined;
|
3788
3791
|
verified?: boolean | undefined;
|
3789
3792
|
test?: boolean | undefined;
|
3790
3793
|
};
|
@@ -3818,6 +3821,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3818
3821
|
name?: string | undefined;
|
3819
3822
|
chainId?: any;
|
3820
3823
|
address?: string | undefined;
|
3824
|
+
displaySymbol?: string | undefined;
|
3821
3825
|
verified?: boolean | undefined;
|
3822
3826
|
test?: boolean | undefined;
|
3823
3827
|
};
|
@@ -7089,6 +7093,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
7089
7093
|
name?: string | undefined;
|
7090
7094
|
chainId?: any;
|
7091
7095
|
address?: string | undefined;
|
7096
|
+
displaySymbol?: string | undefined;
|
7092
7097
|
verified?: boolean | undefined;
|
7093
7098
|
test?: boolean | undefined;
|
7094
7099
|
};
|
@@ -7143,6 +7148,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
7143
7148
|
name?: string | undefined;
|
7144
7149
|
chainId?: any;
|
7145
7150
|
address?: string | undefined;
|
7151
|
+
displaySymbol?: string | undefined;
|
7146
7152
|
verified?: boolean | undefined;
|
7147
7153
|
test?: boolean | undefined;
|
7148
7154
|
};
|
package/dist/src/index.d.ts
CHANGED
@@ -1047,6 +1047,7 @@ declare const app: Elysia<"", false, {
|
|
1047
1047
|
name?: string | undefined;
|
1048
1048
|
chainId?: any;
|
1049
1049
|
address?: string | undefined;
|
1050
|
+
displaySymbol?: string | undefined;
|
1050
1051
|
verified?: boolean | undefined;
|
1051
1052
|
test?: boolean | undefined;
|
1052
1053
|
};
|
@@ -1080,6 +1081,7 @@ declare const app: Elysia<"", false, {
|
|
1080
1081
|
name?: string | undefined;
|
1081
1082
|
chainId?: any;
|
1082
1083
|
address?: string | undefined;
|
1084
|
+
displaySymbol?: string | undefined;
|
1083
1085
|
verified?: boolean | undefined;
|
1084
1086
|
test?: boolean | undefined;
|
1085
1087
|
};
|
@@ -925,6 +925,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
925
925
|
name?: string | undefined;
|
926
926
|
chainId?: any;
|
927
927
|
address?: string | undefined;
|
928
|
+
displaySymbol?: string | undefined;
|
928
929
|
verified?: boolean | undefined;
|
929
930
|
test?: boolean | undefined;
|
930
931
|
};
|
@@ -958,6 +959,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
958
959
|
name?: string | undefined;
|
959
960
|
chainId?: any;
|
960
961
|
address?: string | undefined;
|
962
|
+
displaySymbol?: string | undefined;
|
961
963
|
verified?: boolean | undefined;
|
962
964
|
test?: boolean | undefined;
|
963
965
|
};
|
@@ -82,6 +82,7 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
82
82
|
name?: string | undefined;
|
83
83
|
chainId?: any;
|
84
84
|
address?: string | undefined;
|
85
|
+
displaySymbol?: string | undefined;
|
85
86
|
verified?: boolean | undefined;
|
86
87
|
test?: boolean | undefined;
|
87
88
|
};
|
@@ -115,6 +116,7 @@ export declare const TokenController: Elysia<"/tokens", false, {
|
|
115
116
|
name?: string | undefined;
|
116
117
|
chainId?: any;
|
117
118
|
address?: string | undefined;
|
119
|
+
displaySymbol?: string | undefined;
|
118
120
|
verified?: boolean | undefined;
|
119
121
|
test?: boolean | undefined;
|
120
122
|
};
|
@@ -28,6 +28,7 @@ export declare const FindUniqueTokenDto: import("@sinclair/typebox").TObject<{
|
|
28
28
|
}>;
|
29
29
|
export declare const GetTokenQueryDto: import("@sinclair/typebox").TObject<{
|
30
30
|
symbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
31
|
+
displaySymbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
31
32
|
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<any>>;
|
32
33
|
address: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
33
34
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
@@ -18,6 +18,7 @@ export const FindUniqueTokenDto = t.Object({
|
|
18
18
|
});
|
19
19
|
export const GetTokenQueryDto = t.Object({
|
20
20
|
symbol: t.Optional(t.String()),
|
21
|
+
displaySymbol: t.Optional(t.String()), // To filter by displaySymbol or if null symbol
|
21
22
|
chainId: t.Optional(t.Enum(ChainId)),
|
22
23
|
address: t.Optional(t.String()),
|
23
24
|
name: t.Optional(t.String()),
|
@@ -39,7 +39,17 @@ export class TokenRepository {
|
|
39
39
|
{ symbol: { equals: query.symbol, mode: "insensitive" } },
|
40
40
|
{ displaySymbol: { equals: query.symbol, mode: "insensitive" } },
|
41
41
|
]
|
42
|
-
:
|
42
|
+
: query.displaySymbol
|
43
|
+
? [
|
44
|
+
{
|
45
|
+
displaySymbol: {
|
46
|
+
not: "",
|
47
|
+
},
|
48
|
+
symbol: { equals: query.displaySymbol, mode: "insensitive" },
|
49
|
+
},
|
50
|
+
{ displaySymbol: { equals: query.displaySymbol, mode: "insensitive" } },
|
51
|
+
]
|
52
|
+
: undefined,
|
43
53
|
address: query.address ? { equals: query.address, mode: "insensitive" } : undefined,
|
44
54
|
chainId: query.chainId ? { equals: query.chainId } : undefined,
|
45
55
|
name: query.name ? { contains: query.name, mode: "insensitive" } : undefined,
|