@mobula_labs/types 0.1.0 → 0.1.2
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/README.md +14 -14
- package/dist/cjs/index.cjs +3689 -3391
- package/dist/cjs/index.cjs.map +27 -20
- package/dist/esm/index.js +3689 -3391
- package/dist/esm/index.js.map +27 -20
- package/dist/index.d.ts +7 -0
- package/dist/misc/ApiKeysQueries.d.ts +4 -0
- package/dist/utils/schemas/BaseMessage.d.ts +6 -6
- package/dist/utils/schemas/CurrencySchema.d.ts +21 -0
- package/dist/utils/schemas/EnrichedHoldersData.d.ts +3 -3
- package/dist/utils/schemas/EnrichedMarketData.d.ts +453 -1567
- package/dist/utils/schemas/LLMSecuritySchemas.d.ts +260 -0
- package/dist/utils/schemas/MarketDetailsOutput.d.ts +22 -31
- package/dist/utils/schemas/SecuritySchemas.d.ts +3 -11
- package/dist/utils/schemas/TokenDetailsOutput.d.ts +9 -15
- package/dist/utils/schemas/WalletDeployerSchema.d.ts +30 -36
- package/dist/v1/all/BlockchainSchema.d.ts +6 -6
- package/dist/v1/market/MarketBlockchainPairsSchema.d.ts +10 -10
- package/dist/v1/market/MarketHistoryPairSchema.d.ts +8 -8
- package/dist/v1/market/MarketMultiDataSchema.d.ts +4 -4
- package/dist/v1/market/MarketMultiPricesSchema.d.ts +4 -4
- package/dist/v1/market/MarketPairSchema.d.ts +76 -106
- package/dist/v1/market/MarketPairsSchema.d.ts +12 -25
- package/dist/v1/market/MarketTradesPairSchema.d.ts +22 -2
- package/dist/v1/metadata/MetadataTrendingsSchema.d.ts +2 -2
- package/dist/v1/pulse/PulseSchema.d.ts +138 -294
- package/dist/v1/search/SearchSchema.d.ts +20 -24
- package/dist/v1/wallet/DeployerSchema.d.ts +17 -19
- package/dist/v1/wallet/WalletPortfolioSchema.d.ts +8 -24
- package/dist/v1/wallet/WalletTradesSchema.d.ts +13 -15
- package/dist/v1/wallet/WalletTransactionSchema.d.ts +8 -8
- package/dist/v2/asset/AssetDetailsSchema.d.ts +46 -60
- package/dist/v2/explorer/BlockQuerySchema.d.ts +23 -0
- package/dist/v2/market/MarketDetailsSchema.d.ts +61 -62
- package/dist/v2/perp/PerpBlocksSchema.d.ts +183 -0
- package/dist/v2/perp/PerpModels.d.ts +10 -10
- package/dist/v2/swap/SwapQuotingBatchOutput.d.ts +18 -18
- package/dist/v2/swap/SwapQuotingBatchSchema.d.ts +158 -0
- package/dist/v2/swap/SwapQuotingInstructionsOutput.d.ts +2044 -0
- package/dist/v2/swap/SwapQuotingOutput.d.ts +18 -18
- package/dist/v2/swap/SwapQuotingSchema.d.ts +90 -0
- package/dist/v2/token/TokenDetailsSchema.d.ts +33 -30
- package/dist/v2/token/TokenKlineBsPointSchema.d.ts +2 -6
- package/dist/v2/token/TokenMarketsSchema.d.ts +44 -62
- package/dist/v2/token/TokenPositionsSchema.d.ts +3 -0
- package/dist/v2/token/TokenSecurityOutput.d.ts +122 -0
- package/dist/v2/token/TokenSecurityQuery.d.ts +3 -0
- package/dist/v2/token/TokenTradesSchema.d.ts +242 -154
- package/dist/v2/wallet/WalletActivityV2Schema.d.ts +11 -15
- package/dist/v2/wallet/WalletDefiPositionsSchema.d.ts +12 -0
- package/dist/v2/wallet/WalletDeployerSchema.d.ts +17 -19
- package/dist/v2/wallet/WalletPerpsPositionsSchema.d.ts +6 -6
- package/dist/v2/wallet/WalletPositionsSchema.d.ts +3795 -38
- package/dist/v2/wallet/WalletTokenBalancesSchema.d.ts +6 -22
- package/dist/wss/BalancePayloadSchema.d.ts +6 -6
- package/dist/wss/FastTradePayloadSchema.d.ts +5 -0
- package/dist/wss/OhlcvPayloadSchema.d.ts +2 -2
- package/dist/wss/PairsPayloadSchema.d.ts +2 -2
- package/dist/wss/PositionPayloadSchema.d.ts +2 -2
- package/package.json +4 -4
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Schema for LLM-based static code analysis security flags
|
|
4
|
+
* These are detected through AI analysis of verified contract source code
|
|
5
|
+
*/
|
|
6
|
+
export declare const LLMSecurityFlagsSchema: z.ZodObject<{
|
|
7
|
+
balanceMutable: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
balanceMutableReason: z.ZodOptional<z.ZodString>;
|
|
9
|
+
isMintable: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
isMintableReason: z.ZodOptional<z.ZodString>;
|
|
11
|
+
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
transferPausableReason: z.ZodOptional<z.ZodString>;
|
|
13
|
+
isBlacklisted: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
isBlacklistedReason: z.ZodOptional<z.ZodString>;
|
|
15
|
+
isWhitelisted: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
isWhitelistedReason: z.ZodOptional<z.ZodString>;
|
|
17
|
+
modifyableTax: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
modifyableTaxReason: z.ZodOptional<z.ZodString>;
|
|
19
|
+
hasHiddenOwner: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
hasHiddenOwnerReason: z.ZodOptional<z.ZodString>;
|
|
21
|
+
canTakeBackOwnership: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
canTakeBackOwnershipReason: z.ZodOptional<z.ZodString>;
|
|
23
|
+
selfDestruct: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
selfDestructReason: z.ZodOptional<z.ZodString>;
|
|
25
|
+
hasHoneypotMechanism: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
honeypotReason: z.ZodOptional<z.ZodString>;
|
|
27
|
+
hasExternalCallRisk: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
externalCallRiskReason: z.ZodOptional<z.ZodString>;
|
|
29
|
+
analyzedAt: z.ZodString;
|
|
30
|
+
contractVerified: z.ZodBoolean;
|
|
31
|
+
analysisConfidence: z.ZodEnum<["high", "medium", "low"]>;
|
|
32
|
+
rawAnalysis: z.ZodOptional<z.ZodString>;
|
|
33
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
analyzedAt: string;
|
|
36
|
+
contractVerified: boolean;
|
|
37
|
+
analysisConfidence: "high" | "medium" | "low";
|
|
38
|
+
updatedAt?: string | undefined;
|
|
39
|
+
transferPausable?: boolean | undefined;
|
|
40
|
+
isBlacklisted?: boolean | undefined;
|
|
41
|
+
isWhitelisted?: boolean | undefined;
|
|
42
|
+
balanceMutable?: boolean | undefined;
|
|
43
|
+
isMintable?: boolean | undefined;
|
|
44
|
+
modifyableTax?: boolean | undefined;
|
|
45
|
+
selfDestruct?: boolean | undefined;
|
|
46
|
+
balanceMutableReason?: string | undefined;
|
|
47
|
+
isMintableReason?: string | undefined;
|
|
48
|
+
transferPausableReason?: string | undefined;
|
|
49
|
+
isBlacklistedReason?: string | undefined;
|
|
50
|
+
isWhitelistedReason?: string | undefined;
|
|
51
|
+
modifyableTaxReason?: string | undefined;
|
|
52
|
+
hasHiddenOwner?: boolean | undefined;
|
|
53
|
+
hasHiddenOwnerReason?: string | undefined;
|
|
54
|
+
canTakeBackOwnership?: boolean | undefined;
|
|
55
|
+
canTakeBackOwnershipReason?: string | undefined;
|
|
56
|
+
selfDestructReason?: string | undefined;
|
|
57
|
+
hasHoneypotMechanism?: boolean | undefined;
|
|
58
|
+
honeypotReason?: string | undefined;
|
|
59
|
+
hasExternalCallRisk?: boolean | undefined;
|
|
60
|
+
externalCallRiskReason?: string | undefined;
|
|
61
|
+
rawAnalysis?: string | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
analyzedAt: string;
|
|
64
|
+
contractVerified: boolean;
|
|
65
|
+
analysisConfidence: "high" | "medium" | "low";
|
|
66
|
+
updatedAt?: string | undefined;
|
|
67
|
+
transferPausable?: boolean | undefined;
|
|
68
|
+
isBlacklisted?: boolean | undefined;
|
|
69
|
+
isWhitelisted?: boolean | undefined;
|
|
70
|
+
balanceMutable?: boolean | undefined;
|
|
71
|
+
isMintable?: boolean | undefined;
|
|
72
|
+
modifyableTax?: boolean | undefined;
|
|
73
|
+
selfDestruct?: boolean | undefined;
|
|
74
|
+
balanceMutableReason?: string | undefined;
|
|
75
|
+
isMintableReason?: string | undefined;
|
|
76
|
+
transferPausableReason?: string | undefined;
|
|
77
|
+
isBlacklistedReason?: string | undefined;
|
|
78
|
+
isWhitelistedReason?: string | undefined;
|
|
79
|
+
modifyableTaxReason?: string | undefined;
|
|
80
|
+
hasHiddenOwner?: boolean | undefined;
|
|
81
|
+
hasHiddenOwnerReason?: string | undefined;
|
|
82
|
+
canTakeBackOwnership?: boolean | undefined;
|
|
83
|
+
canTakeBackOwnershipReason?: string | undefined;
|
|
84
|
+
selfDestructReason?: string | undefined;
|
|
85
|
+
hasHoneypotMechanism?: boolean | undefined;
|
|
86
|
+
honeypotReason?: string | undefined;
|
|
87
|
+
hasExternalCallRisk?: boolean | undefined;
|
|
88
|
+
externalCallRiskReason?: string | undefined;
|
|
89
|
+
rawAnalysis?: string | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
export type LLMSecurityFlags = z.infer<typeof LLMSecurityFlagsSchema>;
|
|
92
|
+
/**
|
|
93
|
+
* Schema for security_sources column which stores results from multiple sources
|
|
94
|
+
*/
|
|
95
|
+
export declare const SecuritySourcesSchema: z.ZodObject<{
|
|
96
|
+
goplus: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
98
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
updatedAt?: string | undefined;
|
|
101
|
+
data?: Record<string, unknown> | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
updatedAt?: string | undefined;
|
|
104
|
+
data?: Record<string, unknown> | undefined;
|
|
105
|
+
}>>;
|
|
106
|
+
llm_analysis: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
balanceMutable: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
balanceMutableReason: z.ZodOptional<z.ZodString>;
|
|
109
|
+
isMintable: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
isMintableReason: z.ZodOptional<z.ZodString>;
|
|
111
|
+
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
+
transferPausableReason: z.ZodOptional<z.ZodString>;
|
|
113
|
+
isBlacklisted: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
isBlacklistedReason: z.ZodOptional<z.ZodString>;
|
|
115
|
+
isWhitelisted: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
isWhitelistedReason: z.ZodOptional<z.ZodString>;
|
|
117
|
+
modifyableTax: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
modifyableTaxReason: z.ZodOptional<z.ZodString>;
|
|
119
|
+
hasHiddenOwner: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
hasHiddenOwnerReason: z.ZodOptional<z.ZodString>;
|
|
121
|
+
canTakeBackOwnership: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
canTakeBackOwnershipReason: z.ZodOptional<z.ZodString>;
|
|
123
|
+
selfDestruct: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
+
selfDestructReason: z.ZodOptional<z.ZodString>;
|
|
125
|
+
hasHoneypotMechanism: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
honeypotReason: z.ZodOptional<z.ZodString>;
|
|
127
|
+
hasExternalCallRisk: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
externalCallRiskReason: z.ZodOptional<z.ZodString>;
|
|
129
|
+
analyzedAt: z.ZodString;
|
|
130
|
+
contractVerified: z.ZodBoolean;
|
|
131
|
+
analysisConfidence: z.ZodEnum<["high", "medium", "low"]>;
|
|
132
|
+
rawAnalysis: z.ZodOptional<z.ZodString>;
|
|
133
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
analyzedAt: string;
|
|
136
|
+
contractVerified: boolean;
|
|
137
|
+
analysisConfidence: "high" | "medium" | "low";
|
|
138
|
+
updatedAt?: string | undefined;
|
|
139
|
+
transferPausable?: boolean | undefined;
|
|
140
|
+
isBlacklisted?: boolean | undefined;
|
|
141
|
+
isWhitelisted?: boolean | undefined;
|
|
142
|
+
balanceMutable?: boolean | undefined;
|
|
143
|
+
isMintable?: boolean | undefined;
|
|
144
|
+
modifyableTax?: boolean | undefined;
|
|
145
|
+
selfDestruct?: boolean | undefined;
|
|
146
|
+
balanceMutableReason?: string | undefined;
|
|
147
|
+
isMintableReason?: string | undefined;
|
|
148
|
+
transferPausableReason?: string | undefined;
|
|
149
|
+
isBlacklistedReason?: string | undefined;
|
|
150
|
+
isWhitelistedReason?: string | undefined;
|
|
151
|
+
modifyableTaxReason?: string | undefined;
|
|
152
|
+
hasHiddenOwner?: boolean | undefined;
|
|
153
|
+
hasHiddenOwnerReason?: string | undefined;
|
|
154
|
+
canTakeBackOwnership?: boolean | undefined;
|
|
155
|
+
canTakeBackOwnershipReason?: string | undefined;
|
|
156
|
+
selfDestructReason?: string | undefined;
|
|
157
|
+
hasHoneypotMechanism?: boolean | undefined;
|
|
158
|
+
honeypotReason?: string | undefined;
|
|
159
|
+
hasExternalCallRisk?: boolean | undefined;
|
|
160
|
+
externalCallRiskReason?: string | undefined;
|
|
161
|
+
rawAnalysis?: string | undefined;
|
|
162
|
+
}, {
|
|
163
|
+
analyzedAt: string;
|
|
164
|
+
contractVerified: boolean;
|
|
165
|
+
analysisConfidence: "high" | "medium" | "low";
|
|
166
|
+
updatedAt?: string | undefined;
|
|
167
|
+
transferPausable?: boolean | undefined;
|
|
168
|
+
isBlacklisted?: boolean | undefined;
|
|
169
|
+
isWhitelisted?: boolean | undefined;
|
|
170
|
+
balanceMutable?: boolean | undefined;
|
|
171
|
+
isMintable?: boolean | undefined;
|
|
172
|
+
modifyableTax?: boolean | undefined;
|
|
173
|
+
selfDestruct?: boolean | undefined;
|
|
174
|
+
balanceMutableReason?: string | undefined;
|
|
175
|
+
isMintableReason?: string | undefined;
|
|
176
|
+
transferPausableReason?: string | undefined;
|
|
177
|
+
isBlacklistedReason?: string | undefined;
|
|
178
|
+
isWhitelistedReason?: string | undefined;
|
|
179
|
+
modifyableTaxReason?: string | undefined;
|
|
180
|
+
hasHiddenOwner?: boolean | undefined;
|
|
181
|
+
hasHiddenOwnerReason?: string | undefined;
|
|
182
|
+
canTakeBackOwnership?: boolean | undefined;
|
|
183
|
+
canTakeBackOwnershipReason?: string | undefined;
|
|
184
|
+
selfDestructReason?: string | undefined;
|
|
185
|
+
hasHoneypotMechanism?: boolean | undefined;
|
|
186
|
+
honeypotReason?: string | undefined;
|
|
187
|
+
hasExternalCallRisk?: boolean | undefined;
|
|
188
|
+
externalCallRiskReason?: string | undefined;
|
|
189
|
+
rawAnalysis?: string | undefined;
|
|
190
|
+
}>>;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
goplus?: {
|
|
193
|
+
updatedAt?: string | undefined;
|
|
194
|
+
data?: Record<string, unknown> | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
llm_analysis?: {
|
|
197
|
+
analyzedAt: string;
|
|
198
|
+
contractVerified: boolean;
|
|
199
|
+
analysisConfidence: "high" | "medium" | "low";
|
|
200
|
+
updatedAt?: string | undefined;
|
|
201
|
+
transferPausable?: boolean | undefined;
|
|
202
|
+
isBlacklisted?: boolean | undefined;
|
|
203
|
+
isWhitelisted?: boolean | undefined;
|
|
204
|
+
balanceMutable?: boolean | undefined;
|
|
205
|
+
isMintable?: boolean | undefined;
|
|
206
|
+
modifyableTax?: boolean | undefined;
|
|
207
|
+
selfDestruct?: boolean | undefined;
|
|
208
|
+
balanceMutableReason?: string | undefined;
|
|
209
|
+
isMintableReason?: string | undefined;
|
|
210
|
+
transferPausableReason?: string | undefined;
|
|
211
|
+
isBlacklistedReason?: string | undefined;
|
|
212
|
+
isWhitelistedReason?: string | undefined;
|
|
213
|
+
modifyableTaxReason?: string | undefined;
|
|
214
|
+
hasHiddenOwner?: boolean | undefined;
|
|
215
|
+
hasHiddenOwnerReason?: string | undefined;
|
|
216
|
+
canTakeBackOwnership?: boolean | undefined;
|
|
217
|
+
canTakeBackOwnershipReason?: string | undefined;
|
|
218
|
+
selfDestructReason?: string | undefined;
|
|
219
|
+
hasHoneypotMechanism?: boolean | undefined;
|
|
220
|
+
honeypotReason?: string | undefined;
|
|
221
|
+
hasExternalCallRisk?: boolean | undefined;
|
|
222
|
+
externalCallRiskReason?: string | undefined;
|
|
223
|
+
rawAnalysis?: string | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
}, {
|
|
226
|
+
goplus?: {
|
|
227
|
+
updatedAt?: string | undefined;
|
|
228
|
+
data?: Record<string, unknown> | undefined;
|
|
229
|
+
} | undefined;
|
|
230
|
+
llm_analysis?: {
|
|
231
|
+
analyzedAt: string;
|
|
232
|
+
contractVerified: boolean;
|
|
233
|
+
analysisConfidence: "high" | "medium" | "low";
|
|
234
|
+
updatedAt?: string | undefined;
|
|
235
|
+
transferPausable?: boolean | undefined;
|
|
236
|
+
isBlacklisted?: boolean | undefined;
|
|
237
|
+
isWhitelisted?: boolean | undefined;
|
|
238
|
+
balanceMutable?: boolean | undefined;
|
|
239
|
+
isMintable?: boolean | undefined;
|
|
240
|
+
modifyableTax?: boolean | undefined;
|
|
241
|
+
selfDestruct?: boolean | undefined;
|
|
242
|
+
balanceMutableReason?: string | undefined;
|
|
243
|
+
isMintableReason?: string | undefined;
|
|
244
|
+
transferPausableReason?: string | undefined;
|
|
245
|
+
isBlacklistedReason?: string | undefined;
|
|
246
|
+
isWhitelistedReason?: string | undefined;
|
|
247
|
+
modifyableTaxReason?: string | undefined;
|
|
248
|
+
hasHiddenOwner?: boolean | undefined;
|
|
249
|
+
hasHiddenOwnerReason?: string | undefined;
|
|
250
|
+
canTakeBackOwnership?: boolean | undefined;
|
|
251
|
+
canTakeBackOwnershipReason?: string | undefined;
|
|
252
|
+
selfDestructReason?: string | undefined;
|
|
253
|
+
hasHoneypotMechanism?: boolean | undefined;
|
|
254
|
+
honeypotReason?: string | undefined;
|
|
255
|
+
hasExternalCallRisk?: boolean | undefined;
|
|
256
|
+
externalCallRiskReason?: string | undefined;
|
|
257
|
+
rawAnalysis?: string | undefined;
|
|
258
|
+
} | undefined;
|
|
259
|
+
}>;
|
|
260
|
+
export type SecuritySources = z.infer<typeof SecuritySourcesSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const MarketDetailsOutput: z.ZodObject<
|
|
3
|
-
token0: z.ZodOptional<z.ZodObject<
|
|
2
|
+
export declare const MarketDetailsOutput: z.ZodObject<{
|
|
3
|
+
token0: z.ZodOptional<z.ZodObject<{
|
|
4
4
|
address: z.ZodString;
|
|
5
5
|
chainId: z.ZodString;
|
|
6
6
|
symbol: z.ZodNullable<z.ZodString>;
|
|
@@ -47,7 +47,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
47
47
|
atlUSD: z.ZodOptional<z.ZodNumber>;
|
|
48
48
|
athDate: z.ZodOptional<z.ZodDate>;
|
|
49
49
|
atlDate: z.ZodOptional<z.ZodDate>;
|
|
50
|
-
}
|
|
50
|
+
} & {
|
|
51
51
|
holdersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
52
|
top10HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
53
|
top50HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -69,7 +69,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
69
69
|
freshTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
70
70
|
proTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71
71
|
smartTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
72
|
-
}
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
73
|
symbol: string | null;
|
|
74
74
|
name: string | null;
|
|
75
75
|
address: string;
|
|
@@ -194,7 +194,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
194
194
|
athDate?: Date | undefined;
|
|
195
195
|
atlDate?: Date | undefined;
|
|
196
196
|
}>>;
|
|
197
|
-
token1: z.ZodOptional<z.ZodObject<
|
|
197
|
+
token1: z.ZodOptional<z.ZodObject<{
|
|
198
198
|
address: z.ZodString;
|
|
199
199
|
chainId: z.ZodString;
|
|
200
200
|
symbol: z.ZodNullable<z.ZodString>;
|
|
@@ -241,7 +241,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
241
241
|
atlUSD: z.ZodOptional<z.ZodNumber>;
|
|
242
242
|
athDate: z.ZodOptional<z.ZodDate>;
|
|
243
243
|
atlDate: z.ZodOptional<z.ZodDate>;
|
|
244
|
-
}
|
|
244
|
+
} & {
|
|
245
245
|
holdersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
246
246
|
top10HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
247
247
|
top50HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -263,7 +263,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
263
263
|
freshTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
264
264
|
proTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
265
265
|
smartTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
266
|
-
}
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
267
|
symbol: string | null;
|
|
268
268
|
name: string | null;
|
|
269
269
|
address: string;
|
|
@@ -388,7 +388,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
388
388
|
athDate?: Date | undefined;
|
|
389
389
|
atlDate?: Date | undefined;
|
|
390
390
|
}>>;
|
|
391
|
-
base: z.ZodObject<
|
|
391
|
+
base: z.ZodObject<{
|
|
392
392
|
address: z.ZodString;
|
|
393
393
|
chainId: z.ZodString;
|
|
394
394
|
symbol: z.ZodNullable<z.ZodString>;
|
|
@@ -435,7 +435,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
435
435
|
atlUSD: z.ZodOptional<z.ZodNumber>;
|
|
436
436
|
athDate: z.ZodOptional<z.ZodDate>;
|
|
437
437
|
atlDate: z.ZodOptional<z.ZodDate>;
|
|
438
|
-
}
|
|
438
|
+
} & {
|
|
439
439
|
holdersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
440
440
|
top10HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
441
441
|
top50HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -457,7 +457,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
457
457
|
freshTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
458
458
|
proTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
459
459
|
smartTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
460
|
-
}
|
|
460
|
+
}, "strip", z.ZodTypeAny, {
|
|
461
461
|
symbol: string | null;
|
|
462
462
|
name: string | null;
|
|
463
463
|
address: string;
|
|
@@ -582,7 +582,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
582
582
|
athDate?: Date | undefined;
|
|
583
583
|
atlDate?: Date | undefined;
|
|
584
584
|
}>;
|
|
585
|
-
quote: z.ZodObject<
|
|
585
|
+
quote: z.ZodObject<{
|
|
586
586
|
address: z.ZodString;
|
|
587
587
|
chainId: z.ZodString;
|
|
588
588
|
symbol: z.ZodNullable<z.ZodString>;
|
|
@@ -629,7 +629,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
629
629
|
atlUSD: z.ZodOptional<z.ZodNumber>;
|
|
630
630
|
athDate: z.ZodOptional<z.ZodDate>;
|
|
631
631
|
atlDate: z.ZodOptional<z.ZodDate>;
|
|
632
|
-
}
|
|
632
|
+
} & {
|
|
633
633
|
holdersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
634
634
|
top10HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
635
635
|
top50HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -651,7 +651,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
651
651
|
freshTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
652
652
|
proTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
653
653
|
smartTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
654
|
-
}
|
|
654
|
+
}, "strip", z.ZodTypeAny, {
|
|
655
655
|
symbol: string | null;
|
|
656
656
|
name: string | null;
|
|
657
657
|
address: string;
|
|
@@ -891,7 +891,6 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
891
891
|
feesPaid6hUSD: z.ZodDefault<z.ZodNumber>;
|
|
892
892
|
feesPaid12hUSD: z.ZodDefault<z.ZodNumber>;
|
|
893
893
|
feesPaid24hUSD: z.ZodDefault<z.ZodNumber>;
|
|
894
|
-
holdersCount: z.ZodDefault<z.ZodNumber>;
|
|
895
894
|
source: z.ZodNullable<z.ZodString>;
|
|
896
895
|
deployer: z.ZodNullable<z.ZodString>;
|
|
897
896
|
tokenSymbol: z.ZodNullable<z.ZodString>;
|
|
@@ -918,17 +917,9 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
918
917
|
uri?: string | undefined;
|
|
919
918
|
}>;
|
|
920
919
|
description: z.ZodNullable<z.ZodString>;
|
|
921
|
-
security: z.ZodNullable<z.ZodObject<
|
|
922
|
-
buyTax: z.ZodOptional<z.ZodString>;
|
|
923
|
-
sellTax: z.ZodOptional<z.ZodString>;
|
|
924
|
-
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
925
|
-
top10Holders: z.ZodOptional<z.ZodString>;
|
|
926
|
-
isBlacklisted: z.ZodOptional<z.ZodBoolean>;
|
|
920
|
+
security: z.ZodNullable<z.ZodObject<{
|
|
927
921
|
noMintAuthority: z.ZodOptional<z.ZodBoolean>;
|
|
928
|
-
|
|
929
|
-
lowLiquidity: z.ZodOptional<z.ZodString>;
|
|
930
|
-
burnRate: z.ZodOptional<z.ZodString>;
|
|
931
|
-
}, {
|
|
922
|
+
} & {
|
|
932
923
|
buyTax: z.ZodOptional<z.ZodString>;
|
|
933
924
|
sellTax: z.ZodOptional<z.ZodString>;
|
|
934
925
|
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -945,7 +936,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
945
936
|
isMintable: z.ZodOptional<z.ZodBoolean>;
|
|
946
937
|
modifyableTax: z.ZodOptional<z.ZodBoolean>;
|
|
947
938
|
selfDestruct: z.ZodOptional<z.ZodBoolean>;
|
|
948
|
-
}
|
|
939
|
+
}, "strip", z.ZodTypeAny, {
|
|
949
940
|
buyTax?: string | undefined;
|
|
950
941
|
sellTax?: string | undefined;
|
|
951
942
|
transferPausable?: boolean | undefined;
|
|
@@ -994,7 +985,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
994
985
|
username: string;
|
|
995
986
|
lastChecked: string;
|
|
996
987
|
}>, "many">>;
|
|
997
|
-
perpetuals: z.ZodOptional<z.ZodObject<
|
|
988
|
+
perpetuals: z.ZodOptional<z.ZodObject<Omit<{
|
|
998
989
|
markPriceUSD: z.ZodDefault<z.ZodNumber>;
|
|
999
990
|
markPriceQuote: z.ZodDefault<z.ZodNumber>;
|
|
1000
991
|
oraclePriceUSD: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1020,7 +1011,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1020
1011
|
totalFeeLong1yPercentage: z.ZodDefault<z.ZodNumber>;
|
|
1021
1012
|
collateral: z.ZodOptional<z.ZodString>;
|
|
1022
1013
|
marketId: z.ZodString;
|
|
1023
|
-
}
|
|
1014
|
+
} & {
|
|
1024
1015
|
defaultTradingFees: z.ZodObject<{
|
|
1025
1016
|
makerFeeBps: z.ZodDefault<z.ZodNumber>;
|
|
1026
1017
|
takerFeeBps: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1073,7 +1064,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1073
1064
|
startLeverage?: number | undefined;
|
|
1074
1065
|
endLeverage?: number | undefined;
|
|
1075
1066
|
}>;
|
|
1076
|
-
}
|
|
1067
|
+
}, "oiCollateral"> & {
|
|
1077
1068
|
openInterest: z.ZodObject<{
|
|
1078
1069
|
longUSD: z.ZodDefault<z.ZodNumber>;
|
|
1079
1070
|
longQuoteToken: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1096,7 +1087,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1096
1087
|
maxUSD?: number | undefined;
|
|
1097
1088
|
maxQuoteToken?: number | undefined;
|
|
1098
1089
|
}>;
|
|
1099
|
-
}
|
|
1090
|
+
}, "strip", z.ZodTypeAny, {
|
|
1100
1091
|
markPriceUSD: number;
|
|
1101
1092
|
markPriceQuote: number;
|
|
1102
1093
|
oraclePriceUSD: number;
|
|
@@ -1196,7 +1187,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1196
1187
|
collateral?: string | undefined;
|
|
1197
1188
|
}>>;
|
|
1198
1189
|
extraData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1199
|
-
}
|
|
1190
|
+
} & {
|
|
1200
1191
|
holdersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1201
1192
|
top10HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1202
1193
|
top50HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1218,7 +1209,7 @@ export declare const MarketDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1218
1209
|
freshTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1219
1210
|
proTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1220
1211
|
smartTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1221
|
-
}
|
|
1212
|
+
}, "strip", z.ZodTypeAny, {
|
|
1222
1213
|
type: string;
|
|
1223
1214
|
description: string | null;
|
|
1224
1215
|
address: string;
|
|
@@ -84,17 +84,9 @@ export declare const SolanaSecurityFlagsSchema: z.ZodObject<{
|
|
|
84
84
|
noMintAuthority?: boolean | undefined;
|
|
85
85
|
}>;
|
|
86
86
|
export type SolanaSecurityFlags = z.infer<typeof SolanaSecurityFlagsSchema>;
|
|
87
|
-
export declare const SecurityFlagsSchema: z.ZodObject<
|
|
88
|
-
buyTax: z.ZodOptional<z.ZodString>;
|
|
89
|
-
sellTax: z.ZodOptional<z.ZodString>;
|
|
90
|
-
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
-
top10Holders: z.ZodOptional<z.ZodString>;
|
|
92
|
-
isBlacklisted: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
export declare const SecurityFlagsSchema: z.ZodObject<{
|
|
93
88
|
noMintAuthority: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
-
|
|
95
|
-
lowLiquidity: z.ZodOptional<z.ZodString>;
|
|
96
|
-
burnRate: z.ZodOptional<z.ZodString>;
|
|
97
|
-
}, {
|
|
89
|
+
} & {
|
|
98
90
|
buyTax: z.ZodOptional<z.ZodString>;
|
|
99
91
|
sellTax: z.ZodOptional<z.ZodString>;
|
|
100
92
|
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -111,7 +103,7 @@ export declare const SecurityFlagsSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
111
103
|
isMintable: z.ZodOptional<z.ZodBoolean>;
|
|
112
104
|
modifyableTax: z.ZodOptional<z.ZodBoolean>;
|
|
113
105
|
selfDestruct: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
-
}
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
107
|
buyTax?: string | undefined;
|
|
116
108
|
sellTax?: string | undefined;
|
|
117
109
|
transferPausable?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const TokenDetailsOutput: z.ZodObject<
|
|
2
|
+
export declare const TokenDetailsOutput: z.ZodObject<{
|
|
3
3
|
address: z.ZodString;
|
|
4
4
|
chainId: z.ZodString;
|
|
5
5
|
symbol: z.ZodNullable<z.ZodString>;
|
|
@@ -17,6 +17,7 @@ export declare const TokenDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
17
17
|
marketCapUSD: z.ZodDefault<z.ZodNumber>;
|
|
18
18
|
marketCapDilutedUSD: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
19
19
|
logo: z.ZodNullable<z.ZodString>;
|
|
20
|
+
originLogoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
21
|
rank: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
21
22
|
cexs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
22
23
|
exchange: z.ZodOptional<z.ZodObject<{
|
|
@@ -211,7 +212,6 @@ export declare const TokenDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
211
212
|
organicSellers24h: z.ZodDefault<z.ZodNumber>;
|
|
212
213
|
createdAt: z.ZodNullable<z.ZodDate>;
|
|
213
214
|
latestTradeDate: z.ZodNullable<z.ZodDate>;
|
|
214
|
-
holdersCount: z.ZodDefault<z.ZodNumber>;
|
|
215
215
|
description: z.ZodNullable<z.ZodString>;
|
|
216
216
|
socials: z.ZodObject<{
|
|
217
217
|
twitter: z.ZodNullable<z.ZodString>;
|
|
@@ -232,17 +232,9 @@ export declare const TokenDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
232
232
|
others: Record<string, unknown> | null;
|
|
233
233
|
uri?: string | undefined;
|
|
234
234
|
}>;
|
|
235
|
-
security: z.ZodNullable<z.ZodObject<
|
|
236
|
-
buyTax: z.ZodOptional<z.ZodString>;
|
|
237
|
-
sellTax: z.ZodOptional<z.ZodString>;
|
|
238
|
-
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
-
top10Holders: z.ZodOptional<z.ZodString>;
|
|
240
|
-
isBlacklisted: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
security: z.ZodNullable<z.ZodObject<{
|
|
241
236
|
noMintAuthority: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
-
|
|
243
|
-
lowLiquidity: z.ZodOptional<z.ZodString>;
|
|
244
|
-
burnRate: z.ZodOptional<z.ZodString>;
|
|
245
|
-
}, {
|
|
237
|
+
} & {
|
|
246
238
|
buyTax: z.ZodOptional<z.ZodString>;
|
|
247
239
|
sellTax: z.ZodOptional<z.ZodString>;
|
|
248
240
|
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -259,7 +251,7 @@ export declare const TokenDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
259
251
|
isMintable: z.ZodOptional<z.ZodBoolean>;
|
|
260
252
|
modifyableTax: z.ZodOptional<z.ZodBoolean>;
|
|
261
253
|
selfDestruct: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
-
}
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
255
|
buyTax?: string | undefined;
|
|
264
256
|
sellTax?: string | undefined;
|
|
265
257
|
transferPausable?: boolean | undefined;
|
|
@@ -331,7 +323,7 @@ export declare const TokenDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
331
323
|
trendingScore6h: z.ZodDefault<z.ZodNumber>;
|
|
332
324
|
trendingScore12h: z.ZodDefault<z.ZodNumber>;
|
|
333
325
|
trendingScore24h: z.ZodDefault<z.ZodNumber>;
|
|
334
|
-
}
|
|
326
|
+
} & {
|
|
335
327
|
holdersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
336
328
|
top10HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
337
329
|
top50HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -353,7 +345,7 @@ export declare const TokenDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
353
345
|
freshTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
354
346
|
proTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
355
347
|
smartTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
356
|
-
}
|
|
348
|
+
}, "strip", z.ZodTypeAny, {
|
|
357
349
|
symbol: string | null;
|
|
358
350
|
description: string | null;
|
|
359
351
|
name: string | null;
|
|
@@ -636,6 +628,7 @@ export declare const TokenDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
636
628
|
athDate?: Date | undefined;
|
|
637
629
|
atlDate?: Date | undefined;
|
|
638
630
|
tokenType?: "2020" | "2022" | null | undefined;
|
|
631
|
+
originLogoUrl?: string | null | undefined;
|
|
639
632
|
}, {
|
|
640
633
|
symbol: string | null;
|
|
641
634
|
description: string | null;
|
|
@@ -830,6 +823,7 @@ export declare const TokenDetailsOutput: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
830
823
|
dexscreenerHeader?: string | null | undefined;
|
|
831
824
|
dexscreenerAdPaid?: boolean | null | undefined;
|
|
832
825
|
deployerMigrationsCount?: number | undefined;
|
|
826
|
+
originLogoUrl?: string | null | undefined;
|
|
833
827
|
rank?: number | null | undefined;
|
|
834
828
|
cexs?: string[] | undefined;
|
|
835
829
|
organicTrades1min?: number | undefined;
|