@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<
|
|
2
|
+
export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
amountOutTokens: z.ZodOptional<z.ZodString>;
|
|
4
4
|
slippagePercentage: z.ZodOptional<z.ZodNumber>;
|
|
5
5
|
amountInUSD: z.ZodOptional<z.ZodNumber>;
|
|
@@ -256,7 +256,7 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
256
256
|
aggregator?: string | undefined;
|
|
257
257
|
} | undefined;
|
|
258
258
|
}>>;
|
|
259
|
-
}
|
|
259
|
+
} & {
|
|
260
260
|
solana: z.ZodObject<{
|
|
261
261
|
transaction: z.ZodObject<{
|
|
262
262
|
serialized: z.ZodString;
|
|
@@ -284,7 +284,7 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
284
284
|
lastValidBlockHeight: number;
|
|
285
285
|
}>;
|
|
286
286
|
evm: z.ZodOptional<z.ZodNever>;
|
|
287
|
-
}
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
288
|
requestId: string;
|
|
289
289
|
solana: {
|
|
290
290
|
transaction: {
|
|
@@ -406,7 +406,7 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
406
406
|
marketImpactPercentage?: number | undefined;
|
|
407
407
|
poolFeesPercentage?: number | undefined;
|
|
408
408
|
evm?: undefined;
|
|
409
|
-
}>, z.ZodObject<
|
|
409
|
+
}>, z.ZodObject<{
|
|
410
410
|
amountOutTokens: z.ZodOptional<z.ZodString>;
|
|
411
411
|
slippagePercentage: z.ZodOptional<z.ZodNumber>;
|
|
412
412
|
amountInUSD: z.ZodOptional<z.ZodNumber>;
|
|
@@ -663,7 +663,7 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
663
663
|
aggregator?: string | undefined;
|
|
664
664
|
} | undefined;
|
|
665
665
|
}>>;
|
|
666
|
-
}
|
|
666
|
+
} & {
|
|
667
667
|
evm: z.ZodObject<{
|
|
668
668
|
transaction: z.ZodObject<{
|
|
669
669
|
to: z.ZodString;
|
|
@@ -727,7 +727,7 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
727
727
|
};
|
|
728
728
|
}>;
|
|
729
729
|
solana: z.ZodOptional<z.ZodNever>;
|
|
730
|
-
}
|
|
730
|
+
}, "strip", z.ZodTypeAny, {
|
|
731
731
|
requestId: string;
|
|
732
732
|
evm: {
|
|
733
733
|
transaction: {
|
|
@@ -863,7 +863,7 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
863
863
|
marketImpactPercentage?: number | undefined;
|
|
864
864
|
poolFeesPercentage?: number | undefined;
|
|
865
865
|
solana?: undefined;
|
|
866
|
-
}>, z.ZodObject<
|
|
866
|
+
}>, z.ZodObject<{
|
|
867
867
|
amountOutTokens: z.ZodOptional<z.ZodString>;
|
|
868
868
|
slippagePercentage: z.ZodOptional<z.ZodNumber>;
|
|
869
869
|
amountInUSD: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1120,10 +1120,10 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
1120
1120
|
aggregator?: string | undefined;
|
|
1121
1121
|
} | undefined;
|
|
1122
1122
|
}>>;
|
|
1123
|
-
}
|
|
1123
|
+
} & {
|
|
1124
1124
|
solana: z.ZodOptional<z.ZodNever>;
|
|
1125
1125
|
evm: z.ZodOptional<z.ZodNever>;
|
|
1126
|
-
}
|
|
1126
|
+
}, "strip", z.ZodTypeAny, {
|
|
1127
1127
|
requestId: string;
|
|
1128
1128
|
details?: {
|
|
1129
1129
|
raw?: Record<string, unknown> | undefined;
|
|
@@ -1235,7 +1235,7 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
1235
1235
|
evm?: undefined;
|
|
1236
1236
|
}>]>;
|
|
1237
1237
|
export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
1238
|
-
data: z.ZodUnion<[z.ZodObject<
|
|
1238
|
+
data: z.ZodUnion<[z.ZodObject<{
|
|
1239
1239
|
amountOutTokens: z.ZodOptional<z.ZodString>;
|
|
1240
1240
|
slippagePercentage: z.ZodOptional<z.ZodNumber>;
|
|
1241
1241
|
amountInUSD: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1492,7 +1492,7 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
1492
1492
|
aggregator?: string | undefined;
|
|
1493
1493
|
} | undefined;
|
|
1494
1494
|
}>>;
|
|
1495
|
-
}
|
|
1495
|
+
} & {
|
|
1496
1496
|
solana: z.ZodObject<{
|
|
1497
1497
|
transaction: z.ZodObject<{
|
|
1498
1498
|
serialized: z.ZodString;
|
|
@@ -1520,7 +1520,7 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
1520
1520
|
lastValidBlockHeight: number;
|
|
1521
1521
|
}>;
|
|
1522
1522
|
evm: z.ZodOptional<z.ZodNever>;
|
|
1523
|
-
}
|
|
1523
|
+
}, "strip", z.ZodTypeAny, {
|
|
1524
1524
|
requestId: string;
|
|
1525
1525
|
solana: {
|
|
1526
1526
|
transaction: {
|
|
@@ -1642,7 +1642,7 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
1642
1642
|
marketImpactPercentage?: number | undefined;
|
|
1643
1643
|
poolFeesPercentage?: number | undefined;
|
|
1644
1644
|
evm?: undefined;
|
|
1645
|
-
}>, z.ZodObject<
|
|
1645
|
+
}>, z.ZodObject<{
|
|
1646
1646
|
amountOutTokens: z.ZodOptional<z.ZodString>;
|
|
1647
1647
|
slippagePercentage: z.ZodOptional<z.ZodNumber>;
|
|
1648
1648
|
amountInUSD: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1899,7 +1899,7 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
1899
1899
|
aggregator?: string | undefined;
|
|
1900
1900
|
} | undefined;
|
|
1901
1901
|
}>>;
|
|
1902
|
-
}
|
|
1902
|
+
} & {
|
|
1903
1903
|
evm: z.ZodObject<{
|
|
1904
1904
|
transaction: z.ZodObject<{
|
|
1905
1905
|
to: z.ZodString;
|
|
@@ -1963,7 +1963,7 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
1963
1963
|
};
|
|
1964
1964
|
}>;
|
|
1965
1965
|
solana: z.ZodOptional<z.ZodNever>;
|
|
1966
|
-
}
|
|
1966
|
+
}, "strip", z.ZodTypeAny, {
|
|
1967
1967
|
requestId: string;
|
|
1968
1968
|
evm: {
|
|
1969
1969
|
transaction: {
|
|
@@ -2099,7 +2099,7 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
2099
2099
|
marketImpactPercentage?: number | undefined;
|
|
2100
2100
|
poolFeesPercentage?: number | undefined;
|
|
2101
2101
|
solana?: undefined;
|
|
2102
|
-
}>, z.ZodObject<
|
|
2102
|
+
}>, z.ZodObject<{
|
|
2103
2103
|
amountOutTokens: z.ZodOptional<z.ZodString>;
|
|
2104
2104
|
slippagePercentage: z.ZodOptional<z.ZodNumber>;
|
|
2105
2105
|
amountInUSD: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2356,10 +2356,10 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
2356
2356
|
aggregator?: string | undefined;
|
|
2357
2357
|
} | undefined;
|
|
2358
2358
|
}>>;
|
|
2359
|
-
}
|
|
2359
|
+
} & {
|
|
2360
2360
|
solana: z.ZodOptional<z.ZodNever>;
|
|
2361
2361
|
evm: z.ZodOptional<z.ZodNever>;
|
|
2362
|
-
}
|
|
2362
|
+
}, "strip", z.ZodTypeAny, {
|
|
2363
2363
|
requestId: string;
|
|
2364
2364
|
details?: {
|
|
2365
2365
|
raw?: Record<string, unknown> | undefined;
|
|
@@ -37,6 +37,67 @@ export declare const SwapQuotingQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
37
37
|
onlyProtocols: z.ZodEffects<z.ZodOptional<z.ZodString>, string[] | undefined, string | undefined>;
|
|
38
38
|
poolAddress: z.ZodOptional<z.ZodString>;
|
|
39
39
|
onlyRouters: z.ZodEffects<z.ZodOptional<z.ZodString>, ("jupiter" | "kyberswap" | "lifi")[] | undefined, string | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Priority fee configuration for Solana transactions.
|
|
42
|
+
* Can be:
|
|
43
|
+
* - 'auto': Automatically estimate priority fee based on network conditions
|
|
44
|
+
* - A number: Exact priority fee in microLamports per compute unit
|
|
45
|
+
* - A preset name: 'low', 'medium', 'high', 'veryHigh'
|
|
46
|
+
*
|
|
47
|
+
* Presets (microLamports per CU):
|
|
48
|
+
* - low: 10,000 (0.01 lamports/CU)
|
|
49
|
+
* - medium: 100,000 (0.1 lamports/CU)
|
|
50
|
+
* - high: 500,000 (0.5 lamports/CU)
|
|
51
|
+
* - veryHigh: 1,000,000 (1 lamport/CU)
|
|
52
|
+
*/
|
|
53
|
+
priorityFee: z.ZodEffects<z.ZodOptional<z.ZodString>, number | "auto" | {
|
|
54
|
+
preset: "high" | "medium" | "low" | "veryHigh";
|
|
55
|
+
} | undefined, string | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* Compute unit limit for Solana transactions.
|
|
58
|
+
* Can be 'true' for dynamic limit or a specific number.
|
|
59
|
+
* Default: 400,000
|
|
60
|
+
*/
|
|
61
|
+
computeUnitLimit: z.ZodEffects<z.ZodOptional<z.ZodString>, number | true | undefined, string | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* Jito tip amount in lamports for Solana transactions.
|
|
64
|
+
* This adds a SOL transfer instruction to a Jito tip account to prioritize
|
|
65
|
+
* the transaction via Jito's block engine.
|
|
66
|
+
*
|
|
67
|
+
* The tip is sent to one of Jito's official tip accounts and helps ensure
|
|
68
|
+
* faster transaction inclusion.
|
|
69
|
+
*
|
|
70
|
+
* Example: 10000 = 0.00001 SOL tip
|
|
71
|
+
*
|
|
72
|
+
* Note: This is separate from priorityFee (compute unit price).
|
|
73
|
+
* For best results, use both jitoTipLamports and priorityFee together.
|
|
74
|
+
*/
|
|
75
|
+
jitoTipLamports: z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* Fee percentage to charge on the swap (0.01 to 99).
|
|
78
|
+
* This is the percentage of the input token amount that will be charged as a fee.
|
|
79
|
+
*
|
|
80
|
+
* On Solana: Fee is always taken from SOL/WSOL (native token).
|
|
81
|
+
* - If tokenIn is SOL/WSOL → fee is deducted from input before swap
|
|
82
|
+
* - If tokenOut is SOL/WSOL → fee is deducted from output after swap
|
|
83
|
+
*
|
|
84
|
+
* Must be used together with feeWallet on Solana.
|
|
85
|
+
*/
|
|
86
|
+
feePercentage: z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Wallet address to receive fees (Solana only).
|
|
89
|
+
* Must be a valid Solana wallet address.
|
|
90
|
+
* Required when feePercentage is set on Solana chains.
|
|
91
|
+
*/
|
|
92
|
+
feeWallet: z.ZodOptional<z.ZodString>;
|
|
93
|
+
/**
|
|
94
|
+
* Payer wallet address for Solana transactions (fee abstraction).
|
|
95
|
+
* This wallet will be the fee payer and signer of the transaction.
|
|
96
|
+
* The swap itself uses `walletAddress` for token transfers.
|
|
97
|
+
* If not provided, `walletAddress` is used as the payer.
|
|
98
|
+
* Only supported for Solana chains.
|
|
99
|
+
*/
|
|
100
|
+
payerAddress: z.ZodOptional<z.ZodString>;
|
|
40
101
|
}, "strip", z.ZodTypeAny, {
|
|
41
102
|
chainId: string;
|
|
42
103
|
walletAddress: string;
|
|
@@ -46,9 +107,17 @@ export declare const SwapQuotingQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
46
107
|
poolAddress?: string | undefined;
|
|
47
108
|
amountRaw?: bigint | undefined;
|
|
48
109
|
amount?: number | undefined;
|
|
110
|
+
feePercentage?: number | undefined;
|
|
49
111
|
excludedProtocols?: string[] | undefined;
|
|
50
112
|
onlyProtocols?: string[] | undefined;
|
|
51
113
|
onlyRouters?: ("jupiter" | "kyberswap" | "lifi")[] | undefined;
|
|
114
|
+
priorityFee?: number | "auto" | {
|
|
115
|
+
preset: "high" | "medium" | "low" | "veryHigh";
|
|
116
|
+
} | undefined;
|
|
117
|
+
computeUnitLimit?: number | true | undefined;
|
|
118
|
+
jitoTipLamports?: number | undefined;
|
|
119
|
+
feeWallet?: string | undefined;
|
|
120
|
+
payerAddress?: string | undefined;
|
|
52
121
|
}, {
|
|
53
122
|
chainId: string;
|
|
54
123
|
walletAddress: string;
|
|
@@ -57,10 +126,16 @@ export declare const SwapQuotingQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
57
126
|
poolAddress?: string | undefined;
|
|
58
127
|
amountRaw?: string | undefined;
|
|
59
128
|
amount?: string | undefined;
|
|
129
|
+
feePercentage?: string | undefined;
|
|
60
130
|
slippage?: string | undefined;
|
|
61
131
|
excludedProtocols?: string | undefined;
|
|
62
132
|
onlyProtocols?: string | undefined;
|
|
63
133
|
onlyRouters?: string | undefined;
|
|
134
|
+
priorityFee?: string | undefined;
|
|
135
|
+
computeUnitLimit?: string | undefined;
|
|
136
|
+
jitoTipLamports?: string | undefined;
|
|
137
|
+
feeWallet?: string | undefined;
|
|
138
|
+
payerAddress?: string | undefined;
|
|
64
139
|
}>, {
|
|
65
140
|
chainId: string;
|
|
66
141
|
walletAddress: string;
|
|
@@ -70,9 +145,17 @@ export declare const SwapQuotingQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
70
145
|
poolAddress?: string | undefined;
|
|
71
146
|
amountRaw?: bigint | undefined;
|
|
72
147
|
amount?: number | undefined;
|
|
148
|
+
feePercentage?: number | undefined;
|
|
73
149
|
excludedProtocols?: string[] | undefined;
|
|
74
150
|
onlyProtocols?: string[] | undefined;
|
|
75
151
|
onlyRouters?: ("jupiter" | "kyberswap" | "lifi")[] | undefined;
|
|
152
|
+
priorityFee?: number | "auto" | {
|
|
153
|
+
preset: "high" | "medium" | "low" | "veryHigh";
|
|
154
|
+
} | undefined;
|
|
155
|
+
computeUnitLimit?: number | true | undefined;
|
|
156
|
+
jitoTipLamports?: number | undefined;
|
|
157
|
+
feeWallet?: string | undefined;
|
|
158
|
+
payerAddress?: string | undefined;
|
|
76
159
|
}, {
|
|
77
160
|
chainId: string;
|
|
78
161
|
walletAddress: string;
|
|
@@ -81,9 +164,16 @@ export declare const SwapQuotingQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
81
164
|
poolAddress?: string | undefined;
|
|
82
165
|
amountRaw?: string | undefined;
|
|
83
166
|
amount?: string | undefined;
|
|
167
|
+
feePercentage?: string | undefined;
|
|
84
168
|
slippage?: string | undefined;
|
|
85
169
|
excludedProtocols?: string | undefined;
|
|
86
170
|
onlyProtocols?: string | undefined;
|
|
87
171
|
onlyRouters?: string | undefined;
|
|
172
|
+
priorityFee?: string | undefined;
|
|
173
|
+
computeUnitLimit?: string | undefined;
|
|
174
|
+
jitoTipLamports?: string | undefined;
|
|
175
|
+
feeWallet?: string | undefined;
|
|
176
|
+
payerAddress?: string | undefined;
|
|
88
177
|
}>;
|
|
178
|
+
/** Inferred type from SwapQuotingQuerySchema - includes payerAddress for fee abstraction */
|
|
89
179
|
export type SwapQuotingQueryParams = z.infer<typeof SwapQuotingQuerySchema>;
|
|
@@ -2,8 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
declare const TokenDetailsParamsSchema: z.ZodObject<{
|
|
3
3
|
blockchain: z.ZodOptional<z.ZodString>;
|
|
4
4
|
address: z.ZodOptional<z.ZodString>;
|
|
5
|
+
currencies: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, ("USD" | "EUR" | "GBP" | "JPY" | "CHF" | "CAD" | "AUD" | "CNY" | "KRW" | "INR" | "BRL")[], string | undefined>;
|
|
5
6
|
instanceTracking: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
currencies: ("USD" | "EUR" | "GBP" | "JPY" | "CHF" | "CAD" | "AUD" | "CNY" | "KRW" | "INR" | "BRL")[];
|
|
7
9
|
address?: string | undefined;
|
|
8
10
|
blockchain?: string | undefined;
|
|
9
11
|
instanceTracking?: boolean | undefined;
|
|
@@ -11,12 +13,15 @@ declare const TokenDetailsParamsSchema: z.ZodObject<{
|
|
|
11
13
|
address?: string | undefined;
|
|
12
14
|
blockchain?: string | undefined;
|
|
13
15
|
instanceTracking?: unknown;
|
|
16
|
+
currencies?: string | undefined;
|
|
14
17
|
}>;
|
|
15
18
|
declare const TokenDetailsBatchParamsSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
16
19
|
blockchain: z.ZodOptional<z.ZodString>;
|
|
17
20
|
address: z.ZodOptional<z.ZodString>;
|
|
21
|
+
currencies: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, ("USD" | "EUR" | "GBP" | "JPY" | "CHF" | "CAD" | "AUD" | "CNY" | "KRW" | "INR" | "BRL")[], string | undefined>;
|
|
18
22
|
instanceTracking: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
19
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
currencies: ("USD" | "EUR" | "GBP" | "JPY" | "CHF" | "CAD" | "AUD" | "CNY" | "KRW" | "INR" | "BRL")[];
|
|
20
25
|
address?: string | undefined;
|
|
21
26
|
blockchain?: string | undefined;
|
|
22
27
|
instanceTracking?: boolean | undefined;
|
|
@@ -24,12 +29,15 @@ declare const TokenDetailsBatchParamsSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<
|
|
|
24
29
|
address?: string | undefined;
|
|
25
30
|
blockchain?: string | undefined;
|
|
26
31
|
instanceTracking?: unknown;
|
|
32
|
+
currencies?: string | undefined;
|
|
27
33
|
}>, "many">, z.ZodObject<{
|
|
28
34
|
items: z.ZodArray<z.ZodObject<{
|
|
29
35
|
blockchain: z.ZodOptional<z.ZodString>;
|
|
30
36
|
address: z.ZodOptional<z.ZodString>;
|
|
37
|
+
currencies: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, ("USD" | "EUR" | "GBP" | "JPY" | "CHF" | "CAD" | "AUD" | "CNY" | "KRW" | "INR" | "BRL")[], string | undefined>;
|
|
31
38
|
instanceTracking: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
32
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
currencies: ("USD" | "EUR" | "GBP" | "JPY" | "CHF" | "CAD" | "AUD" | "CNY" | "KRW" | "INR" | "BRL")[];
|
|
33
41
|
address?: string | undefined;
|
|
34
42
|
blockchain?: string | undefined;
|
|
35
43
|
instanceTracking?: boolean | undefined;
|
|
@@ -37,10 +45,12 @@ declare const TokenDetailsBatchParamsSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<
|
|
|
37
45
|
address?: string | undefined;
|
|
38
46
|
blockchain?: string | undefined;
|
|
39
47
|
instanceTracking?: unknown;
|
|
48
|
+
currencies?: string | undefined;
|
|
40
49
|
}>, "many">;
|
|
41
50
|
instanceTracking: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
42
51
|
}, "strip", z.ZodTypeAny, {
|
|
43
52
|
items: {
|
|
53
|
+
currencies: ("USD" | "EUR" | "GBP" | "JPY" | "CHF" | "CAD" | "AUD" | "CNY" | "KRW" | "INR" | "BRL")[];
|
|
44
54
|
address?: string | undefined;
|
|
45
55
|
blockchain?: string | undefined;
|
|
46
56
|
instanceTracking?: boolean | undefined;
|
|
@@ -51,12 +61,13 @@ declare const TokenDetailsBatchParamsSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<
|
|
|
51
61
|
address?: string | undefined;
|
|
52
62
|
blockchain?: string | undefined;
|
|
53
63
|
instanceTracking?: unknown;
|
|
64
|
+
currencies?: string | undefined;
|
|
54
65
|
}[];
|
|
55
66
|
instanceTracking?: unknown;
|
|
56
67
|
}>]>;
|
|
57
68
|
export type TokenDetailsParams = z.input<typeof TokenDetailsParamsSchema>;
|
|
58
69
|
export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
59
|
-
data: z.ZodObject<
|
|
70
|
+
data: z.ZodObject<{
|
|
60
71
|
address: z.ZodString;
|
|
61
72
|
chainId: z.ZodString;
|
|
62
73
|
symbol: z.ZodNullable<z.ZodString>;
|
|
@@ -74,6 +85,7 @@ export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
|
74
85
|
marketCapUSD: z.ZodDefault<z.ZodNumber>;
|
|
75
86
|
marketCapDilutedUSD: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
76
87
|
logo: z.ZodNullable<z.ZodString>;
|
|
88
|
+
originLogoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
89
|
rank: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
78
90
|
cexs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
79
91
|
exchange: z.ZodOptional<z.ZodObject<{
|
|
@@ -268,7 +280,6 @@ export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
|
268
280
|
organicSellers24h: z.ZodDefault<z.ZodNumber>;
|
|
269
281
|
createdAt: z.ZodNullable<z.ZodDate>;
|
|
270
282
|
latestTradeDate: z.ZodNullable<z.ZodDate>;
|
|
271
|
-
holdersCount: z.ZodDefault<z.ZodNumber>;
|
|
272
283
|
description: z.ZodNullable<z.ZodString>;
|
|
273
284
|
socials: z.ZodObject<{
|
|
274
285
|
twitter: z.ZodNullable<z.ZodString>;
|
|
@@ -289,17 +300,9 @@ export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
|
289
300
|
others: Record<string, unknown> | null;
|
|
290
301
|
uri?: string | undefined;
|
|
291
302
|
}>;
|
|
292
|
-
security: z.ZodNullable<z.ZodObject<
|
|
293
|
-
buyTax: z.ZodOptional<z.ZodString>;
|
|
294
|
-
sellTax: z.ZodOptional<z.ZodString>;
|
|
295
|
-
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
-
top10Holders: z.ZodOptional<z.ZodString>;
|
|
297
|
-
isBlacklisted: z.ZodOptional<z.ZodBoolean>;
|
|
303
|
+
security: z.ZodNullable<z.ZodObject<{
|
|
298
304
|
noMintAuthority: z.ZodOptional<z.ZodBoolean>;
|
|
299
|
-
|
|
300
|
-
lowLiquidity: z.ZodOptional<z.ZodString>;
|
|
301
|
-
burnRate: z.ZodOptional<z.ZodString>;
|
|
302
|
-
}, {
|
|
305
|
+
} & {
|
|
303
306
|
buyTax: z.ZodOptional<z.ZodString>;
|
|
304
307
|
sellTax: z.ZodOptional<z.ZodString>;
|
|
305
308
|
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -316,7 +319,7 @@ export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
|
316
319
|
isMintable: z.ZodOptional<z.ZodBoolean>;
|
|
317
320
|
modifyableTax: z.ZodOptional<z.ZodBoolean>;
|
|
318
321
|
selfDestruct: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
-
}
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
320
323
|
buyTax?: string | undefined;
|
|
321
324
|
sellTax?: string | undefined;
|
|
322
325
|
transferPausable?: boolean | undefined;
|
|
@@ -388,7 +391,7 @@ export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
|
388
391
|
trendingScore6h: z.ZodDefault<z.ZodNumber>;
|
|
389
392
|
trendingScore12h: z.ZodDefault<z.ZodNumber>;
|
|
390
393
|
trendingScore24h: z.ZodDefault<z.ZodNumber>;
|
|
391
|
-
}
|
|
394
|
+
} & {
|
|
392
395
|
holdersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
393
396
|
top10HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
394
397
|
top50HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -410,7 +413,7 @@ export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
|
410
413
|
freshTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
411
414
|
proTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
412
415
|
smartTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
413
|
-
}
|
|
416
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
417
|
symbol: string | null;
|
|
415
418
|
description: string | null;
|
|
416
419
|
name: string | null;
|
|
@@ -693,6 +696,7 @@ export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
|
693
696
|
athDate?: Date | undefined;
|
|
694
697
|
atlDate?: Date | undefined;
|
|
695
698
|
tokenType?: "2020" | "2022" | null | undefined;
|
|
699
|
+
originLogoUrl?: string | null | undefined;
|
|
696
700
|
}, {
|
|
697
701
|
symbol: string | null;
|
|
698
702
|
description: string | null;
|
|
@@ -887,6 +891,7 @@ export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
|
887
891
|
dexscreenerHeader?: string | null | undefined;
|
|
888
892
|
dexscreenerAdPaid?: boolean | null | undefined;
|
|
889
893
|
deployerMigrationsCount?: number | undefined;
|
|
894
|
+
originLogoUrl?: string | null | undefined;
|
|
890
895
|
rank?: number | null | undefined;
|
|
891
896
|
cexs?: string[] | undefined;
|
|
892
897
|
organicTrades1min?: number | undefined;
|
|
@@ -1262,6 +1267,7 @@ export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
|
1262
1267
|
athDate?: Date | undefined;
|
|
1263
1268
|
atlDate?: Date | undefined;
|
|
1264
1269
|
tokenType?: "2020" | "2022" | null | undefined;
|
|
1270
|
+
originLogoUrl?: string | null | undefined;
|
|
1265
1271
|
};
|
|
1266
1272
|
hostname?: string | undefined;
|
|
1267
1273
|
}, {
|
|
@@ -1459,6 +1465,7 @@ export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
|
1459
1465
|
dexscreenerHeader?: string | null | undefined;
|
|
1460
1466
|
dexscreenerAdPaid?: boolean | null | undefined;
|
|
1461
1467
|
deployerMigrationsCount?: number | undefined;
|
|
1468
|
+
originLogoUrl?: string | null | undefined;
|
|
1462
1469
|
rank?: number | null | undefined;
|
|
1463
1470
|
cexs?: string[] | undefined;
|
|
1464
1471
|
organicTrades1min?: number | undefined;
|
|
@@ -1553,7 +1560,7 @@ export declare const TokenDetailsResponseSchema: z.ZodObject<{
|
|
|
1553
1560
|
}>;
|
|
1554
1561
|
export type TokenDetailsResponse = z.infer<typeof TokenDetailsResponseSchema>;
|
|
1555
1562
|
export declare const TokenDetailsBatchResponseSchema: z.ZodObject<{
|
|
1556
|
-
payload: z.ZodArray<z.ZodNullable<z.ZodUnion<[z.ZodObject<
|
|
1563
|
+
payload: z.ZodArray<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
1557
1564
|
address: z.ZodString;
|
|
1558
1565
|
chainId: z.ZodString;
|
|
1559
1566
|
symbol: z.ZodNullable<z.ZodString>;
|
|
@@ -1571,6 +1578,7 @@ export declare const TokenDetailsBatchResponseSchema: z.ZodObject<{
|
|
|
1571
1578
|
marketCapUSD: z.ZodDefault<z.ZodNumber>;
|
|
1572
1579
|
marketCapDilutedUSD: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1573
1580
|
logo: z.ZodNullable<z.ZodString>;
|
|
1581
|
+
originLogoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1574
1582
|
rank: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1575
1583
|
cexs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1576
1584
|
exchange: z.ZodOptional<z.ZodObject<{
|
|
@@ -1765,7 +1773,6 @@ export declare const TokenDetailsBatchResponseSchema: z.ZodObject<{
|
|
|
1765
1773
|
organicSellers24h: z.ZodDefault<z.ZodNumber>;
|
|
1766
1774
|
createdAt: z.ZodNullable<z.ZodDate>;
|
|
1767
1775
|
latestTradeDate: z.ZodNullable<z.ZodDate>;
|
|
1768
|
-
holdersCount: z.ZodDefault<z.ZodNumber>;
|
|
1769
1776
|
description: z.ZodNullable<z.ZodString>;
|
|
1770
1777
|
socials: z.ZodObject<{
|
|
1771
1778
|
twitter: z.ZodNullable<z.ZodString>;
|
|
@@ -1786,17 +1793,9 @@ export declare const TokenDetailsBatchResponseSchema: z.ZodObject<{
|
|
|
1786
1793
|
others: Record<string, unknown> | null;
|
|
1787
1794
|
uri?: string | undefined;
|
|
1788
1795
|
}>;
|
|
1789
|
-
security: z.ZodNullable<z.ZodObject<
|
|
1790
|
-
buyTax: z.ZodOptional<z.ZodString>;
|
|
1791
|
-
sellTax: z.ZodOptional<z.ZodString>;
|
|
1792
|
-
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
1793
|
-
top10Holders: z.ZodOptional<z.ZodString>;
|
|
1794
|
-
isBlacklisted: z.ZodOptional<z.ZodBoolean>;
|
|
1796
|
+
security: z.ZodNullable<z.ZodObject<{
|
|
1795
1797
|
noMintAuthority: z.ZodOptional<z.ZodBoolean>;
|
|
1796
|
-
|
|
1797
|
-
lowLiquidity: z.ZodOptional<z.ZodString>;
|
|
1798
|
-
burnRate: z.ZodOptional<z.ZodString>;
|
|
1799
|
-
}, {
|
|
1798
|
+
} & {
|
|
1800
1799
|
buyTax: z.ZodOptional<z.ZodString>;
|
|
1801
1800
|
sellTax: z.ZodOptional<z.ZodString>;
|
|
1802
1801
|
transferPausable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1813,7 +1812,7 @@ export declare const TokenDetailsBatchResponseSchema: z.ZodObject<{
|
|
|
1813
1812
|
isMintable: z.ZodOptional<z.ZodBoolean>;
|
|
1814
1813
|
modifyableTax: z.ZodOptional<z.ZodBoolean>;
|
|
1815
1814
|
selfDestruct: z.ZodOptional<z.ZodBoolean>;
|
|
1816
|
-
}
|
|
1815
|
+
}, "strip", z.ZodTypeAny, {
|
|
1817
1816
|
buyTax?: string | undefined;
|
|
1818
1817
|
sellTax?: string | undefined;
|
|
1819
1818
|
transferPausable?: boolean | undefined;
|
|
@@ -1885,7 +1884,7 @@ export declare const TokenDetailsBatchResponseSchema: z.ZodObject<{
|
|
|
1885
1884
|
trendingScore6h: z.ZodDefault<z.ZodNumber>;
|
|
1886
1885
|
trendingScore12h: z.ZodDefault<z.ZodNumber>;
|
|
1887
1886
|
trendingScore24h: z.ZodDefault<z.ZodNumber>;
|
|
1888
|
-
}
|
|
1887
|
+
} & {
|
|
1889
1888
|
holdersCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1890
1889
|
top10HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1891
1890
|
top50HoldingsPercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1907,7 +1906,7 @@ export declare const TokenDetailsBatchResponseSchema: z.ZodObject<{
|
|
|
1907
1906
|
freshTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1908
1907
|
proTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1909
1908
|
smartTradersBuys: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1910
|
-
}
|
|
1909
|
+
}, "strip", z.ZodTypeAny, {
|
|
1911
1910
|
symbol: string | null;
|
|
1912
1911
|
description: string | null;
|
|
1913
1912
|
name: string | null;
|
|
@@ -2190,6 +2189,7 @@ export declare const TokenDetailsBatchResponseSchema: z.ZodObject<{
|
|
|
2190
2189
|
athDate?: Date | undefined;
|
|
2191
2190
|
atlDate?: Date | undefined;
|
|
2192
2191
|
tokenType?: "2020" | "2022" | null | undefined;
|
|
2192
|
+
originLogoUrl?: string | null | undefined;
|
|
2193
2193
|
}, {
|
|
2194
2194
|
symbol: string | null;
|
|
2195
2195
|
description: string | null;
|
|
@@ -2384,6 +2384,7 @@ export declare const TokenDetailsBatchResponseSchema: z.ZodObject<{
|
|
|
2384
2384
|
dexscreenerHeader?: string | null | undefined;
|
|
2385
2385
|
dexscreenerAdPaid?: boolean | null | undefined;
|
|
2386
2386
|
deployerMigrationsCount?: number | undefined;
|
|
2387
|
+
originLogoUrl?: string | null | undefined;
|
|
2387
2388
|
rank?: number | null | undefined;
|
|
2388
2389
|
cexs?: string[] | undefined;
|
|
2389
2390
|
organicTrades1min?: number | undefined;
|
|
@@ -2765,6 +2766,7 @@ export declare const TokenDetailsBatchResponseSchema: z.ZodObject<{
|
|
|
2765
2766
|
athDate?: Date | undefined;
|
|
2766
2767
|
atlDate?: Date | undefined;
|
|
2767
2768
|
tokenType?: "2020" | "2022" | null | undefined;
|
|
2769
|
+
originLogoUrl?: string | null | undefined;
|
|
2768
2770
|
} | {
|
|
2769
2771
|
error?: string | undefined;
|
|
2770
2772
|
} | null)[];
|
|
@@ -2964,6 +2966,7 @@ export declare const TokenDetailsBatchResponseSchema: z.ZodObject<{
|
|
|
2964
2966
|
dexscreenerHeader?: string | null | undefined;
|
|
2965
2967
|
dexscreenerAdPaid?: boolean | null | undefined;
|
|
2966
2968
|
deployerMigrationsCount?: number | undefined;
|
|
2969
|
+
originLogoUrl?: string | null | undefined;
|
|
2967
2970
|
rank?: number | null | undefined;
|
|
2968
2971
|
cexs?: string[] | undefined;
|
|
2969
2972
|
organicTrades1min?: number | undefined;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
declare const allowedBars: readonly ["1s", "1m", "5m", "15m", "1h", "1d", "1w"];
|
|
3
|
-
type AllowedBar = (typeof allowedBars)[number];
|
|
4
|
-
export declare function normalizeBar(input: string): AllowedBar;
|
|
5
2
|
export declare const TokenKlineBsPointParamsSchema: z.ZodObject<{
|
|
6
3
|
blockchain: z.ZodString;
|
|
7
4
|
address: z.ZodString;
|
|
8
|
-
bar: z.ZodEffects<z.ZodString,
|
|
5
|
+
bar: z.ZodEffects<z.ZodString, string, string>;
|
|
9
6
|
fromDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodOptional<z.ZodNumber>, z.ZodOptional<z.ZodDate>]>, Date | undefined, number | Date | undefined>, Date | undefined, number | Date | undefined>;
|
|
10
7
|
toDate: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodOptional<z.ZodNumber>, z.ZodOptional<z.ZodDate>]>, Date | undefined, number | Date | undefined>, Date | undefined, number | Date | undefined>;
|
|
11
8
|
transactionSenderAddresses: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
|
|
@@ -14,7 +11,7 @@ export declare const TokenKlineBsPointParamsSchema: z.ZodObject<{
|
|
|
14
11
|
address: string;
|
|
15
12
|
blockchain: string;
|
|
16
13
|
labels: string[];
|
|
17
|
-
bar:
|
|
14
|
+
bar: string;
|
|
18
15
|
transactionSenderAddresses: string[];
|
|
19
16
|
fromDate?: Date | undefined;
|
|
20
17
|
toDate?: Date | undefined;
|
|
@@ -134,4 +131,3 @@ export declare const TokenKlineBsPointResponseSchema: z.ZodObject<{
|
|
|
134
131
|
}[];
|
|
135
132
|
}>;
|
|
136
133
|
export type TokenKlineBsPointResponse = z.infer<typeof TokenKlineBsPointResponseSchema>;
|
|
137
|
-
export {};
|