@argent/x-shared 1.41.3 → 1.41.5
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/src/tokens/service/implementation.d.ts +6 -5
- package/dist/src/tokens/service/interface.d.ts +2 -2
- package/dist/src/tokens/service/types/backend.model.cjs +1 -1
- package/dist/src/tokens/service/types/backend.model.d.ts +238 -202
- package/dist/src/tokens/service/types/backend.model.js +20 -19
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as a } from "zod";
|
|
2
|
-
import { addressSchemaArgentBackend as n, addressSchema as
|
|
2
|
+
import { addressSchemaArgentBackend as n, addressSchema as t } from "../../../chains/starknet/address.js";
|
|
3
3
|
import { defiPositionTypeSchema as d } from "./defiPositionType.model.js";
|
|
4
4
|
import { createSchemaWithWarnings as m } from "../../../utils/schemas.js";
|
|
5
5
|
const f = a.object({
|
|
@@ -12,7 +12,7 @@ const f = a.object({
|
|
|
12
12
|
}))
|
|
13
13
|
})), i = a.object({
|
|
14
14
|
id: a.number(),
|
|
15
|
-
address:
|
|
15
|
+
address: t,
|
|
16
16
|
brandColor: a.string().optional(),
|
|
17
17
|
name: a.string(),
|
|
18
18
|
symbol: a.string(),
|
|
@@ -37,15 +37,15 @@ const f = a.object({
|
|
|
37
37
|
rank: a.number()
|
|
38
38
|
}).optional(),
|
|
39
39
|
tags: a.array(a.string()).optional()
|
|
40
|
-
}),
|
|
40
|
+
}), I = a.object({
|
|
41
41
|
tokens: a.array(i)
|
|
42
|
-
}),
|
|
42
|
+
}), A = i, g = a.object({
|
|
43
43
|
pricingId: a.number(),
|
|
44
44
|
ethValue: a.string(),
|
|
45
45
|
ccyValue: a.string(),
|
|
46
46
|
ethDayChange: a.string(),
|
|
47
47
|
ccyDayChange: a.string()
|
|
48
|
-
}),
|
|
48
|
+
}), C = a.object({
|
|
49
49
|
prices: a.array(g)
|
|
50
50
|
}), o = a.object({
|
|
51
51
|
tokenAddress: n,
|
|
@@ -54,11 +54,11 @@ const f = a.object({
|
|
|
54
54
|
minPrice: a.string(),
|
|
55
55
|
maxPrice: a.string(),
|
|
56
56
|
currentPrice: a.string()
|
|
57
|
-
}),
|
|
57
|
+
}), e = a.object({
|
|
58
58
|
id: a.string(),
|
|
59
|
-
tokenAddress:
|
|
59
|
+
tokenAddress: t.optional(),
|
|
60
60
|
totalBalances: a.record(a.string())
|
|
61
|
-
}), r =
|
|
61
|
+
}), r = e.extend({
|
|
62
62
|
tokenId: a.string(),
|
|
63
63
|
data: a.object({
|
|
64
64
|
poolFeePercentage: a.string(),
|
|
@@ -66,13 +66,13 @@ const f = a.object({
|
|
|
66
66
|
token0: o,
|
|
67
67
|
token1: o
|
|
68
68
|
})
|
|
69
|
-
}), T = a.array(r), s =
|
|
69
|
+
}), T = a.array(r), s = e.extend({
|
|
70
70
|
data: a.object({
|
|
71
71
|
apy: a.string()
|
|
72
72
|
}),
|
|
73
73
|
investmentId: a.string().optional(),
|
|
74
74
|
totalBalances: a.record(a.string())
|
|
75
|
-
}), B = a.array(s), c =
|
|
75
|
+
}), B = a.array(s), c = e.extend({
|
|
76
76
|
data: a.object({
|
|
77
77
|
apy: a.string().optional(),
|
|
78
78
|
group: a.number().optional(),
|
|
@@ -82,17 +82,17 @@ const f = a.object({
|
|
|
82
82
|
})
|
|
83
83
|
}), x = a.array(c), l = a.object({
|
|
84
84
|
data: a.object({
|
|
85
|
-
delegatingTo:
|
|
85
|
+
delegatingTo: t
|
|
86
86
|
}),
|
|
87
87
|
totalBalances: a.record(a.string())
|
|
88
|
-
}), R = a.array(l), p =
|
|
88
|
+
}), R = a.array(l), p = e.extend({
|
|
89
89
|
data: a.object({
|
|
90
90
|
stakerInfo: a.object({
|
|
91
91
|
name: a.string().optional(),
|
|
92
92
|
iconUrl: a.string().optional(),
|
|
93
|
-
address:
|
|
93
|
+
address: t
|
|
94
94
|
}),
|
|
95
|
-
|
|
95
|
+
accruedRewards: a.string(),
|
|
96
96
|
pendingWithdrawal: a.object({
|
|
97
97
|
amount: a.string(),
|
|
98
98
|
withdrawableAfter: a.number()
|
|
@@ -100,6 +100,7 @@ const f = a.object({
|
|
|
100
100
|
apy: a.string().optional()
|
|
101
101
|
})
|
|
102
102
|
}), w = a.array(p), b = r.or(c).or(l).or(s).or(p), h = a.array(b), u = m({
|
|
103
|
+
productId: a.string(),
|
|
103
104
|
name: a.string(),
|
|
104
105
|
manageUrl: a.string(),
|
|
105
106
|
type: d,
|
|
@@ -115,13 +116,13 @@ const f = a.object({
|
|
|
115
116
|
dapps: a.array(S)
|
|
116
117
|
}), k = a.object({
|
|
117
118
|
name: a.string().optional(),
|
|
118
|
-
tokenAddress:
|
|
119
|
+
tokenAddress: t,
|
|
119
120
|
amount: a.string().optional(),
|
|
120
121
|
claimUrl: a.string().optional(),
|
|
121
122
|
claimStart: a.number(),
|
|
122
123
|
claimEnd: a.number().optional()
|
|
123
124
|
}), z = a.object({
|
|
124
|
-
accountAddress:
|
|
125
|
+
accountAddress: t,
|
|
125
126
|
chain: a.string(),
|
|
126
127
|
airdrops: a.array(k)
|
|
127
128
|
});
|
|
@@ -140,14 +141,14 @@ export {
|
|
|
140
141
|
U as apiDefiPositionsSchema,
|
|
141
142
|
R as apiDelegatedTokensArraySchema,
|
|
142
143
|
l as apiDelegatedTokensSchema,
|
|
143
|
-
|
|
144
|
+
C as apiPriceDataResponseSchema,
|
|
144
145
|
g as apiPriceDetailsSchema,
|
|
145
146
|
s as apiStakingPositionSchema,
|
|
146
147
|
B as apiStakingPositionsSchema,
|
|
147
148
|
w as apiStrkDelegatedStakingPositionsSchema,
|
|
148
149
|
p as apiStrkDelegatedStakingSchema,
|
|
149
|
-
|
|
150
|
+
A as apiTokenInfoResponseSchema,
|
|
150
151
|
i as apiTokenInfoSchema,
|
|
151
|
-
|
|
152
|
+
I as apiTokensInfoResponseSchema,
|
|
152
153
|
z as apiUnclaimedRewardsSchema
|
|
153
154
|
};
|