@mobula_labs/types 0.1.6 → 0.1.7
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/cjs/index.cjs +3490 -3168
- package/dist/cjs/index.cjs.map +27 -23
- package/dist/esm/index.js +3488 -3166
- package/dist/esm/index.js.map +27 -23
- package/dist/index.d.ts +8 -2
- package/dist/misc/ApiKeysQueries.d.ts +1 -1
- package/dist/utils/schemas/BaseMessage.d.ts +6 -0
- package/dist/utils/schemas/PlatformMetadataOutput.d.ts +19 -0
- package/dist/utils/schemas/TokenMetadataMinimal.d.ts +25 -0
- package/dist/utils/schemas/WalletDeployerSchema.d.ts +333 -0
- package/dist/utils/schemas/WalletMetadataOutput.d.ts +19 -0
- package/dist/v1/market/FundingRateSchema.d.ts +33 -0
- package/dist/v1/market/MarketHistoryPairSchema.d.ts +3 -3
- package/dist/v1/market/MarketTradesPairSchema.d.ts +35 -2
- package/dist/v1/search/SearchSchema.d.ts +19 -2
- package/dist/v1/wallet/DeployerSchema.d.ts +157 -0
- package/dist/v1/wallet/WalletLabelSchema.d.ts +4 -4
- package/dist/v1/wallet/WalletTradesSchema.d.ts +86 -0
- package/dist/v2/swap/SwapQuotingBatchOutput.d.ts +48 -48
- package/dist/v2/swap/SwapQuotingOutput.d.ts +32 -32
- package/dist/v2/token/TokenAthSchema.d.ts +233 -0
- package/dist/v2/token/TokenPositionsSchema.d.ts +277 -42
- package/dist/v2/token/TokenTradesSchema.d.ts +1465 -11697
- package/dist/v2/wallet/WalleAnalysisQuerySchema.d.ts +134 -0
- package/dist/v2/wallet/WalletActivityV2Schema.d.ts +275 -3
- package/dist/v2/wallet/WalletAnalysisQuerySchema.d.ts +1658 -0
- package/dist/v2/wallet/WalletDeployerSchema.d.ts +157 -0
- package/dist/v2/wallet/WalletFundingQuerySchema.d.ts +57 -0
- package/dist/v2/wallet/WalletPositionsSchema.d.ts +449 -6
- package/dist/wss/OhlcvPayloadSchema.d.ts +2 -2
- package/dist/wss/PairsPayloadSchema.d.ts +2 -2
- package/dist/wss/PositionPayloadSchema.d.ts +18 -0
- package/package.json +2 -2
|
@@ -949,8 +949,10 @@ export declare const WalletV2DeployerResponseSchema: z.ZodObject<{
|
|
|
949
949
|
realizedPnlUSD: z.ZodNumber;
|
|
950
950
|
unrealizedPnlUSD: z.ZodNumber;
|
|
951
951
|
totalPnlUSD: z.ZodNumber;
|
|
952
|
+
totalFeesPaidUSD: z.ZodOptional<z.ZodNumber>;
|
|
952
953
|
firstDate: z.ZodNullable<z.ZodDate>;
|
|
953
954
|
lastDate: z.ZodNullable<z.ZodDate>;
|
|
955
|
+
labels: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
954
956
|
}, "strip", z.ZodTypeAny, {
|
|
955
957
|
balance: number;
|
|
956
958
|
realizedPnlUSD: number;
|
|
@@ -1241,6 +1243,7 @@ export declare const WalletV2DeployerResponseSchema: z.ZodObject<{
|
|
|
1241
1243
|
tokenType?: "2020" | "2022" | null | undefined;
|
|
1242
1244
|
originLogoUrl?: string | null | undefined;
|
|
1243
1245
|
};
|
|
1246
|
+
labels: string[] | null;
|
|
1244
1247
|
rawBalance: string;
|
|
1245
1248
|
buys: number;
|
|
1246
1249
|
sells: number;
|
|
@@ -1253,6 +1256,7 @@ export declare const WalletV2DeployerResponseSchema: z.ZodObject<{
|
|
|
1253
1256
|
totalPnlUSD: number;
|
|
1254
1257
|
firstDate: Date | null;
|
|
1255
1258
|
lastDate: Date | null;
|
|
1259
|
+
totalFeesPaidUSD?: number | undefined;
|
|
1256
1260
|
}, {
|
|
1257
1261
|
balance: number;
|
|
1258
1262
|
realizedPnlUSD: number;
|
|
@@ -1555,6 +1559,8 @@ export declare const WalletV2DeployerResponseSchema: z.ZodObject<{
|
|
|
1555
1559
|
totalPnlUSD: number;
|
|
1556
1560
|
firstDate: Date | null;
|
|
1557
1561
|
lastDate: Date | null;
|
|
1562
|
+
totalFeesPaidUSD?: number | undefined;
|
|
1563
|
+
labels?: string[] | null | undefined;
|
|
1558
1564
|
}>, "many">;
|
|
1559
1565
|
pagination: z.ZodNullable<z.ZodObject<{
|
|
1560
1566
|
total: z.ZodNumber;
|
|
@@ -1572,6 +1578,111 @@ export declare const WalletV2DeployerResponseSchema: z.ZodObject<{
|
|
|
1572
1578
|
total: number;
|
|
1573
1579
|
page: number;
|
|
1574
1580
|
}>>;
|
|
1581
|
+
wallet: z.ZodOptional<z.ZodObject<{
|
|
1582
|
+
fundingInfo: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1583
|
+
from: z.ZodNullable<z.ZodString>;
|
|
1584
|
+
date: z.ZodNullable<z.ZodDate>;
|
|
1585
|
+
chainId: z.ZodNullable<z.ZodString>;
|
|
1586
|
+
txHash: z.ZodNullable<z.ZodString>;
|
|
1587
|
+
amount: z.ZodNullable<z.ZodString>;
|
|
1588
|
+
formattedAmount: z.ZodNullable<z.ZodNumber>;
|
|
1589
|
+
currency: z.ZodNullable<z.ZodObject<{
|
|
1590
|
+
name: z.ZodString;
|
|
1591
|
+
symbol: z.ZodString;
|
|
1592
|
+
logo: z.ZodNullable<z.ZodString>;
|
|
1593
|
+
decimals: z.ZodNumber;
|
|
1594
|
+
address: z.ZodString;
|
|
1595
|
+
}, "strip", z.ZodTypeAny, {
|
|
1596
|
+
symbol: string;
|
|
1597
|
+
name: string;
|
|
1598
|
+
address: string;
|
|
1599
|
+
decimals: number;
|
|
1600
|
+
logo: string | null;
|
|
1601
|
+
}, {
|
|
1602
|
+
symbol: string;
|
|
1603
|
+
name: string;
|
|
1604
|
+
address: string;
|
|
1605
|
+
decimals: number;
|
|
1606
|
+
logo: string | null;
|
|
1607
|
+
}>>;
|
|
1608
|
+
fromWalletLogo: z.ZodNullable<z.ZodString>;
|
|
1609
|
+
fromWalletTag: z.ZodNullable<z.ZodString>;
|
|
1610
|
+
}, "strip", z.ZodTypeAny, {
|
|
1611
|
+
date: Date | null;
|
|
1612
|
+
chainId: string | null;
|
|
1613
|
+
amount: string | null;
|
|
1614
|
+
from: string | null;
|
|
1615
|
+
txHash: string | null;
|
|
1616
|
+
formattedAmount: number | null;
|
|
1617
|
+
currency: {
|
|
1618
|
+
symbol: string;
|
|
1619
|
+
name: string;
|
|
1620
|
+
address: string;
|
|
1621
|
+
decimals: number;
|
|
1622
|
+
logo: string | null;
|
|
1623
|
+
} | null;
|
|
1624
|
+
fromWalletLogo: string | null;
|
|
1625
|
+
fromWalletTag: string | null;
|
|
1626
|
+
}, {
|
|
1627
|
+
date: Date | null;
|
|
1628
|
+
chainId: string | null;
|
|
1629
|
+
amount: string | null;
|
|
1630
|
+
from: string | null;
|
|
1631
|
+
txHash: string | null;
|
|
1632
|
+
formattedAmount: number | null;
|
|
1633
|
+
currency: {
|
|
1634
|
+
symbol: string;
|
|
1635
|
+
name: string;
|
|
1636
|
+
address: string;
|
|
1637
|
+
decimals: number;
|
|
1638
|
+
logo: string | null;
|
|
1639
|
+
} | null;
|
|
1640
|
+
fromWalletLogo: string | null;
|
|
1641
|
+
fromWalletTag: string | null;
|
|
1642
|
+
}>>>;
|
|
1643
|
+
entity: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1644
|
+
labels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1645
|
+
}, "strip", z.ZodTypeAny, {
|
|
1646
|
+
fundingInfo: {
|
|
1647
|
+
date: Date | null;
|
|
1648
|
+
chainId: string | null;
|
|
1649
|
+
amount: string | null;
|
|
1650
|
+
from: string | null;
|
|
1651
|
+
txHash: string | null;
|
|
1652
|
+
formattedAmount: number | null;
|
|
1653
|
+
currency: {
|
|
1654
|
+
symbol: string;
|
|
1655
|
+
name: string;
|
|
1656
|
+
address: string;
|
|
1657
|
+
decimals: number;
|
|
1658
|
+
logo: string | null;
|
|
1659
|
+
} | null;
|
|
1660
|
+
fromWalletLogo: string | null;
|
|
1661
|
+
fromWalletTag: string | null;
|
|
1662
|
+
} | null;
|
|
1663
|
+
entity: string | null;
|
|
1664
|
+
labels: string[];
|
|
1665
|
+
}, {
|
|
1666
|
+
fundingInfo?: {
|
|
1667
|
+
date: Date | null;
|
|
1668
|
+
chainId: string | null;
|
|
1669
|
+
amount: string | null;
|
|
1670
|
+
from: string | null;
|
|
1671
|
+
txHash: string | null;
|
|
1672
|
+
formattedAmount: number | null;
|
|
1673
|
+
currency: {
|
|
1674
|
+
symbol: string;
|
|
1675
|
+
name: string;
|
|
1676
|
+
address: string;
|
|
1677
|
+
decimals: number;
|
|
1678
|
+
logo: string | null;
|
|
1679
|
+
} | null;
|
|
1680
|
+
fromWalletLogo: string | null;
|
|
1681
|
+
fromWalletTag: string | null;
|
|
1682
|
+
} | null | undefined;
|
|
1683
|
+
entity?: string | null | undefined;
|
|
1684
|
+
labels?: string[] | undefined;
|
|
1685
|
+
}>>;
|
|
1575
1686
|
}, "strip", z.ZodTypeAny, {
|
|
1576
1687
|
data: {
|
|
1577
1688
|
balance: number;
|
|
@@ -1863,6 +1974,7 @@ export declare const WalletV2DeployerResponseSchema: z.ZodObject<{
|
|
|
1863
1974
|
tokenType?: "2020" | "2022" | null | undefined;
|
|
1864
1975
|
originLogoUrl?: string | null | undefined;
|
|
1865
1976
|
};
|
|
1977
|
+
labels: string[] | null;
|
|
1866
1978
|
rawBalance: string;
|
|
1867
1979
|
buys: number;
|
|
1868
1980
|
sells: number;
|
|
@@ -1875,6 +1987,7 @@ export declare const WalletV2DeployerResponseSchema: z.ZodObject<{
|
|
|
1875
1987
|
totalPnlUSD: number;
|
|
1876
1988
|
firstDate: Date | null;
|
|
1877
1989
|
lastDate: Date | null;
|
|
1990
|
+
totalFeesPaidUSD?: number | undefined;
|
|
1878
1991
|
}[];
|
|
1879
1992
|
pagination: {
|
|
1880
1993
|
limit: number;
|
|
@@ -1882,6 +1995,27 @@ export declare const WalletV2DeployerResponseSchema: z.ZodObject<{
|
|
|
1882
1995
|
total: number;
|
|
1883
1996
|
page: number;
|
|
1884
1997
|
} | null;
|
|
1998
|
+
wallet?: {
|
|
1999
|
+
fundingInfo: {
|
|
2000
|
+
date: Date | null;
|
|
2001
|
+
chainId: string | null;
|
|
2002
|
+
amount: string | null;
|
|
2003
|
+
from: string | null;
|
|
2004
|
+
txHash: string | null;
|
|
2005
|
+
formattedAmount: number | null;
|
|
2006
|
+
currency: {
|
|
2007
|
+
symbol: string;
|
|
2008
|
+
name: string;
|
|
2009
|
+
address: string;
|
|
2010
|
+
decimals: number;
|
|
2011
|
+
logo: string | null;
|
|
2012
|
+
} | null;
|
|
2013
|
+
fromWalletLogo: string | null;
|
|
2014
|
+
fromWalletTag: string | null;
|
|
2015
|
+
} | null;
|
|
2016
|
+
entity: string | null;
|
|
2017
|
+
labels: string[];
|
|
2018
|
+
} | undefined;
|
|
1885
2019
|
}, {
|
|
1886
2020
|
data: {
|
|
1887
2021
|
balance: number;
|
|
@@ -2185,6 +2319,8 @@ export declare const WalletV2DeployerResponseSchema: z.ZodObject<{
|
|
|
2185
2319
|
totalPnlUSD: number;
|
|
2186
2320
|
firstDate: Date | null;
|
|
2187
2321
|
lastDate: Date | null;
|
|
2322
|
+
totalFeesPaidUSD?: number | undefined;
|
|
2323
|
+
labels?: string[] | null | undefined;
|
|
2188
2324
|
}[];
|
|
2189
2325
|
pagination: {
|
|
2190
2326
|
limit: number;
|
|
@@ -2192,5 +2328,26 @@ export declare const WalletV2DeployerResponseSchema: z.ZodObject<{
|
|
|
2192
2328
|
total: number;
|
|
2193
2329
|
page: number;
|
|
2194
2330
|
} | null;
|
|
2331
|
+
wallet?: {
|
|
2332
|
+
fundingInfo?: {
|
|
2333
|
+
date: Date | null;
|
|
2334
|
+
chainId: string | null;
|
|
2335
|
+
amount: string | null;
|
|
2336
|
+
from: string | null;
|
|
2337
|
+
txHash: string | null;
|
|
2338
|
+
formattedAmount: number | null;
|
|
2339
|
+
currency: {
|
|
2340
|
+
symbol: string;
|
|
2341
|
+
name: string;
|
|
2342
|
+
address: string;
|
|
2343
|
+
decimals: number;
|
|
2344
|
+
logo: string | null;
|
|
2345
|
+
} | null;
|
|
2346
|
+
fromWalletLogo: string | null;
|
|
2347
|
+
fromWalletTag: string | null;
|
|
2348
|
+
} | null | undefined;
|
|
2349
|
+
entity?: string | null | undefined;
|
|
2350
|
+
labels?: string[] | undefined;
|
|
2351
|
+
} | undefined;
|
|
2195
2352
|
}>;
|
|
2196
2353
|
export type WalletV2DeployerResponse = z.infer<typeof WalletV2DeployerResponseSchema>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WalletFundingParamsSchema: z.ZodObject<{
|
|
3
|
+
wallet: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
wallet: string;
|
|
6
|
+
}, {
|
|
7
|
+
wallet: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type WalletFundingParams = z.input<typeof WalletFundingParamsSchema>;
|
|
10
|
+
export declare const WalletFundingResponseSchema: z.ZodObject<{
|
|
11
|
+
data: z.ZodObject<{
|
|
12
|
+
from: z.ZodNullable<z.ZodString>;
|
|
13
|
+
chainId: z.ZodNullable<z.ZodString>;
|
|
14
|
+
date: z.ZodNullable<z.ZodDate>;
|
|
15
|
+
txHash: z.ZodNullable<z.ZodString>;
|
|
16
|
+
amount: z.ZodNullable<z.ZodString>;
|
|
17
|
+
fromWalletLogo: z.ZodNullable<z.ZodString>;
|
|
18
|
+
fromWalletTag: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
date: Date | null;
|
|
21
|
+
chainId: string | null;
|
|
22
|
+
amount: string | null;
|
|
23
|
+
from: string | null;
|
|
24
|
+
txHash: string | null;
|
|
25
|
+
fromWalletLogo: string | null;
|
|
26
|
+
fromWalletTag: string | null;
|
|
27
|
+
}, {
|
|
28
|
+
date: Date | null;
|
|
29
|
+
chainId: string | null;
|
|
30
|
+
amount: string | null;
|
|
31
|
+
from: string | null;
|
|
32
|
+
txHash: string | null;
|
|
33
|
+
fromWalletLogo: string | null;
|
|
34
|
+
fromWalletTag: string | null;
|
|
35
|
+
}>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
data: {
|
|
38
|
+
date: Date | null;
|
|
39
|
+
chainId: string | null;
|
|
40
|
+
amount: string | null;
|
|
41
|
+
from: string | null;
|
|
42
|
+
txHash: string | null;
|
|
43
|
+
fromWalletLogo: string | null;
|
|
44
|
+
fromWalletTag: string | null;
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
data: {
|
|
48
|
+
date: Date | null;
|
|
49
|
+
chainId: string | null;
|
|
50
|
+
amount: string | null;
|
|
51
|
+
from: string | null;
|
|
52
|
+
txHash: string | null;
|
|
53
|
+
fromWalletLogo: string | null;
|
|
54
|
+
fromWalletTag: string | null;
|
|
55
|
+
};
|
|
56
|
+
}>;
|
|
57
|
+
export type WalletFundingResponse = z.infer<typeof WalletFundingResponseSchema>;
|