@argent/x-shared 1.72.2 → 1.73.0
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/account/account.model.d.ts +54 -210
- package/dist/src/account/preferences.model.cjs +1 -1
- package/dist/src/account/preferences.model.d.ts +15 -27
- package/dist/src/account/preferences.model.js +3 -3
- package/dist/src/backend/schema.d.ts +8 -2
- package/dist/src/backend/sessionKeys/schema.d.ts +13 -97
- package/dist/src/bigdecimal/createUnitsSchema.d.ts +1 -1
- package/dist/src/chains/starknet/address.cjs +1 -1
- package/dist/src/chains/starknet/address.d.ts +15 -15
- package/dist/src/chains/starknet/address.js +4 -4
- package/dist/src/chains/starknet/addressDomain.d.ts +3 -3
- package/dist/src/chains/starknet/addressInput.d.ts +1 -1
- package/dist/src/chains/starknet/cairoVersionSchema.d.ts +1 -1
- package/dist/src/chains/starknet/getAddressFromArgentName.d.ts +7 -20
- package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.d.ts +8 -28
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.d.ts +1 -1
- package/dist/src/currencyFetchService/types.ts.d.ts +3 -37
- package/dist/src/features/defiDecomposition/schema.d.ts +676 -15769
- package/dist/src/features/paymaster/types.d.ts +31 -155
- package/dist/src/features/simulation/activity/schema.d.ts +1250 -14920
- package/dist/src/features/simulation/activity/utils/createNativeActivity.d.ts +26 -26
- package/dist/src/features/simulation/fees/schema.d.ts +83 -925
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/schema.d.ts +889 -26477
- package/dist/src/features/simulation/transactionReview/schema.js +2 -2
- package/dist/src/features/simulation/warning/schema.d.ts +1 -1
- package/dist/src/features/swap/models/order.model.d.ts +8 -38
- package/dist/src/features/swap/models/quote.model.d.ts +15 -61
- package/dist/src/features/swap/models/trade.model.cjs +1 -1
- package/dist/src/features/swap/models/trade.model.d.ts +17 -167
- package/dist/src/features/swap/models/trade.model.js +1 -1
- package/dist/src/http/HttpService.d.ts +1 -1
- package/dist/src/http/IHttpService.d.ts +1 -1
- package/dist/src/knownDapps/schema.d.ts +61 -221
- package/dist/src/nameResolution/ResolveNameService.d.ts +3 -3
- package/dist/src/nameResolution/schema.d.ts +16 -92
- package/dist/src/onchainRecovery/schema.cjs +1 -1
- package/dist/src/onchainRecovery/schema.d.ts +20 -122
- package/dist/src/onchainRecovery/schema.js +10 -10
- package/dist/src/signer/seedphrase.d.ts +1 -1
- package/dist/src/staking/schema.d.ts +234 -2395
- package/dist/src/tokens/service/implementation.d.ts +52 -351
- package/dist/src/tokens/service/types/backend.model.cjs +1 -1
- package/dist/src/tokens/service/types/backend.model.d.ts +634 -15292
- package/dist/src/tokens/service/types/backend.model.js +17 -17
- package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPosition.model.d.ts +363 -7834
- package/dist/src/tokens/service/types/defiPosition.model.js +2 -2
- package/dist/src/tokens/service/types/defiPositionType.model.d.ts +1 -1
- package/dist/src/tokens/service/types/unclaimedRewards.model.d.ts +14 -250
- package/dist/src/tokens/service/types/webToken.model.cjs +1 -1
- package/dist/src/tokens/service/types/webToken.model.d.ts +40 -345
- package/dist/src/tokens/service/types/webToken.model.js +25 -21
- package/dist/src/transactions/amount.d.ts +1 -1
- package/dist/src/transactions/errors.d.ts +2 -22
- package/dist/src/transactions/estimate/model.d.ts +12 -21
- package/dist/src/transactions/service/types.d.ts +1 -11
- package/dist/src/transactions/transactionExecuteTypes.d.ts +28 -105
- package/dist/src/transactions/transactionVersion.d.ts +1 -1
- package/dist/src/utils/bigNumber.d.ts +1 -1
- package/dist/src/utils/hex.d.ts +1 -1
- package/dist/src/utils/retryUntilInitialised.d.ts +1 -1
- package/dist/src/utils/schemas.cjs +1 -1
- package/dist/src/utils/schemas.d.ts +4 -4
- package/dist/src/utils/schemas.js +10 -10
- package/dist/src/utils/starknet/starknet.cjs +1 -1
- package/dist/src/utils/starknet/starknet.d.ts +39 -149
- package/dist/src/utils/starknet/starknet.js +5 -5
- package/dist/src/utils/starknet/starknetSchemas.d.ts +238 -1880
- package/package.json +2 -2
|
@@ -27,145 +27,55 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
|
|
|
27
27
|
fetchAddressTokenBalancesFromBackend(address: string, network: ArgentBackendNetworkId, opts?: retry.Options): Promise<WebBaseTokenWithBalance[]>;
|
|
28
28
|
fetchDefiDecomposition(address: Address, application: "mobile" | "webwallet" | "argentx"): Promise<{
|
|
29
29
|
dappId: string;
|
|
30
|
-
products:
|
|
31
|
-
|
|
32
|
-
name:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
healthRatio: import('zod').ZodOptional<import('zod').ZodString>;
|
|
38
|
-
}, "strip", import('zod').ZodTypeAny, {
|
|
39
|
-
name?: string | undefined;
|
|
40
|
-
healthRatio?: string | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
name?: string | undefined;
|
|
43
|
-
healthRatio?: string | undefined;
|
|
44
|
-
}>>>;
|
|
45
|
-
positions: import('zod').ZodArray<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<import("zod").objectUtil.extendShape<{
|
|
46
|
-
id: import('zod').ZodString;
|
|
47
|
-
investmentId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
48
|
-
tokenAddress: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>>;
|
|
49
|
-
totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
|
|
50
|
-
}, {
|
|
51
|
-
tokenId: import('zod').ZodString;
|
|
52
|
-
data: import('zod').ZodObject<{
|
|
53
|
-
poolFeePercentage: import('zod').ZodString;
|
|
54
|
-
tickSpacingPercentage: import('zod').ZodOptional<import('zod').ZodString>;
|
|
55
|
-
token0: import('zod').ZodObject<{
|
|
56
|
-
tokenAddress: import('zod').ZodEffects<import('zod').ZodString, `0x${string}`, string>;
|
|
57
|
-
principal: import('zod').ZodString;
|
|
58
|
-
accruedFees: import('zod').ZodString;
|
|
59
|
-
minPrice: import('zod').ZodString;
|
|
60
|
-
maxPrice: import('zod').ZodString;
|
|
61
|
-
currentPrice: import('zod').ZodString;
|
|
62
|
-
}, "strip", import('zod').ZodTypeAny, {
|
|
63
|
-
tokenAddress: `0x${string}`;
|
|
64
|
-
principal: string;
|
|
65
|
-
accruedFees: string;
|
|
66
|
-
minPrice: string;
|
|
67
|
-
maxPrice: string;
|
|
68
|
-
currentPrice: string;
|
|
69
|
-
}, {
|
|
70
|
-
tokenAddress: string;
|
|
71
|
-
principal: string;
|
|
72
|
-
accruedFees: string;
|
|
73
|
-
minPrice: string;
|
|
74
|
-
maxPrice: string;
|
|
75
|
-
currentPrice: string;
|
|
76
|
-
}>;
|
|
77
|
-
token1: import('zod').ZodObject<{
|
|
78
|
-
tokenAddress: import('zod').ZodEffects<import('zod').ZodString, `0x${string}`, string>;
|
|
79
|
-
principal: import('zod').ZodString;
|
|
80
|
-
accruedFees: import('zod').ZodString;
|
|
81
|
-
minPrice: import('zod').ZodString;
|
|
82
|
-
maxPrice: import('zod').ZodString;
|
|
83
|
-
currentPrice: import('zod').ZodString;
|
|
84
|
-
}, "strip", import('zod').ZodTypeAny, {
|
|
85
|
-
tokenAddress: `0x${string}`;
|
|
86
|
-
principal: string;
|
|
87
|
-
accruedFees: string;
|
|
88
|
-
minPrice: string;
|
|
89
|
-
maxPrice: string;
|
|
90
|
-
currentPrice: string;
|
|
91
|
-
}, {
|
|
92
|
-
tokenAddress: string;
|
|
93
|
-
principal: string;
|
|
94
|
-
accruedFees: string;
|
|
95
|
-
minPrice: string;
|
|
96
|
-
maxPrice: string;
|
|
97
|
-
currentPrice: string;
|
|
98
|
-
}>;
|
|
99
|
-
}, "strip", import('zod').ZodTypeAny, {
|
|
100
|
-
poolFeePercentage: string;
|
|
101
|
-
token0: {
|
|
102
|
-
tokenAddress: `0x${string}`;
|
|
103
|
-
principal: string;
|
|
104
|
-
accruedFees: string;
|
|
105
|
-
minPrice: string;
|
|
106
|
-
maxPrice: string;
|
|
107
|
-
currentPrice: string;
|
|
108
|
-
};
|
|
109
|
-
token1: {
|
|
110
|
-
tokenAddress: `0x${string}`;
|
|
111
|
-
principal: string;
|
|
112
|
-
accruedFees: string;
|
|
113
|
-
minPrice: string;
|
|
114
|
-
maxPrice: string;
|
|
115
|
-
currentPrice: string;
|
|
116
|
-
};
|
|
117
|
-
tickSpacingPercentage?: string | undefined;
|
|
118
|
-
}, {
|
|
119
|
-
poolFeePercentage: string;
|
|
120
|
-
token0: {
|
|
121
|
-
tokenAddress: string;
|
|
122
|
-
principal: string;
|
|
123
|
-
accruedFees: string;
|
|
124
|
-
minPrice: string;
|
|
125
|
-
maxPrice: string;
|
|
126
|
-
currentPrice: string;
|
|
127
|
-
};
|
|
128
|
-
token1: {
|
|
129
|
-
tokenAddress: string;
|
|
130
|
-
principal: string;
|
|
131
|
-
accruedFees: string;
|
|
132
|
-
minPrice: string;
|
|
133
|
-
maxPrice: string;
|
|
134
|
-
currentPrice: string;
|
|
135
|
-
};
|
|
136
|
-
tickSpacingPercentage?: string | undefined;
|
|
137
|
-
}>;
|
|
138
|
-
}>, "strip", import('zod').ZodTypeAny, {
|
|
30
|
+
products: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
name: string;
|
|
33
|
+
type: "staking" | "strkDelegatedStaking" | "concentratedLiquidityPosition" | "collateralizedDebtPosition" | "delegatedTokens";
|
|
34
|
+
positions: ({
|
|
35
|
+
id: string;
|
|
36
|
+
totalBalances: Record<string, string>;
|
|
139
37
|
data: {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
accruedFees: string;
|
|
145
|
-
minPrice: string;
|
|
146
|
-
maxPrice: string;
|
|
147
|
-
currentPrice: string;
|
|
148
|
-
};
|
|
149
|
-
token1: {
|
|
150
|
-
tokenAddress: `0x${string}`;
|
|
151
|
-
principal: string;
|
|
152
|
-
accruedFees: string;
|
|
153
|
-
minPrice: string;
|
|
154
|
-
maxPrice: string;
|
|
155
|
-
currentPrice: string;
|
|
38
|
+
stakerInfo: {
|
|
39
|
+
address: `0x${string}`;
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
iconUrl?: string | undefined;
|
|
156
42
|
};
|
|
157
|
-
|
|
43
|
+
accruedRewards: string;
|
|
44
|
+
stakedAmount: string;
|
|
45
|
+
pendingWithdrawal?: {
|
|
46
|
+
amount: string;
|
|
47
|
+
withdrawableAfter: number;
|
|
48
|
+
} | undefined;
|
|
49
|
+
apy?: string | undefined;
|
|
50
|
+
totalApy?: string | undefined;
|
|
158
51
|
};
|
|
52
|
+
tokenAddress?: `0x${string}` | undefined;
|
|
53
|
+
investmentId?: string | undefined;
|
|
54
|
+
} | {
|
|
159
55
|
id: string;
|
|
56
|
+
data: {
|
|
57
|
+
apy?: string | undefined;
|
|
58
|
+
totalApy?: string | undefined;
|
|
59
|
+
};
|
|
160
60
|
totalBalances: Record<string, string>;
|
|
161
|
-
tokenId: string;
|
|
162
61
|
tokenAddress?: `0x${string}` | undefined;
|
|
163
62
|
investmentId?: string | undefined;
|
|
164
|
-
}
|
|
63
|
+
} | {
|
|
64
|
+
id: string;
|
|
65
|
+
data: {
|
|
66
|
+
delegatingTo: `0x${string}`;
|
|
67
|
+
};
|
|
68
|
+
totalBalances: Record<string, string>;
|
|
69
|
+
investmentId?: string | undefined;
|
|
70
|
+
tokenAddress?: `0x${string}` | undefined;
|
|
71
|
+
} | {
|
|
72
|
+
id: string;
|
|
73
|
+
totalBalances: Record<string, string>;
|
|
74
|
+
tokenId: string;
|
|
165
75
|
data: {
|
|
166
76
|
poolFeePercentage: string;
|
|
167
77
|
token0: {
|
|
168
|
-
tokenAddress: string
|
|
78
|
+
tokenAddress: `0x${string}`;
|
|
169
79
|
principal: string;
|
|
170
80
|
accruedFees: string;
|
|
171
81
|
minPrice: string;
|
|
@@ -173,7 +83,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
|
|
|
173
83
|
currentPrice: string;
|
|
174
84
|
};
|
|
175
85
|
token1: {
|
|
176
|
-
tokenAddress: string
|
|
86
|
+
tokenAddress: `0x${string}`;
|
|
177
87
|
principal: string;
|
|
178
88
|
accruedFees: string;
|
|
179
89
|
minPrice: string;
|
|
@@ -182,237 +92,28 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
|
|
|
182
92
|
};
|
|
183
93
|
tickSpacingPercentage?: string | undefined;
|
|
184
94
|
};
|
|
185
|
-
id: string;
|
|
186
|
-
totalBalances: Record<string, string>;
|
|
187
|
-
tokenId: string;
|
|
188
|
-
tokenAddress?: string | undefined;
|
|
189
95
|
investmentId?: string | undefined;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
investmentId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
193
|
-
tokenAddress: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>>;
|
|
194
|
-
totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
|
|
195
|
-
}, {
|
|
196
|
-
data: import('zod').ZodObject<{
|
|
197
|
-
apy: import('zod').ZodOptional<import('zod').ZodString>;
|
|
198
|
-
totalApy: import('zod').ZodOptional<import('zod').ZodString>;
|
|
199
|
-
group: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
200
|
-
collateral: import('zod').ZodBoolean;
|
|
201
|
-
debt: import('zod').ZodBoolean;
|
|
202
|
-
lending: import('zod').ZodBoolean;
|
|
203
|
-
}, "strip", import('zod').ZodTypeAny, {
|
|
204
|
-
lending: boolean;
|
|
205
|
-
collateral: boolean;
|
|
206
|
-
debt: boolean;
|
|
207
|
-
totalApy?: string | undefined;
|
|
208
|
-
apy?: string | undefined;
|
|
209
|
-
group?: number | undefined;
|
|
210
|
-
}, {
|
|
211
|
-
lending: boolean;
|
|
212
|
-
collateral: boolean;
|
|
213
|
-
debt: boolean;
|
|
214
|
-
totalApy?: string | undefined;
|
|
215
|
-
apy?: string | undefined;
|
|
216
|
-
group?: number | undefined;
|
|
217
|
-
}>;
|
|
218
|
-
}>, "strip", import('zod').ZodTypeAny, {
|
|
219
|
-
data: {
|
|
220
|
-
lending: boolean;
|
|
221
|
-
collateral: boolean;
|
|
222
|
-
debt: boolean;
|
|
223
|
-
totalApy?: string | undefined;
|
|
224
|
-
apy?: string | undefined;
|
|
225
|
-
group?: number | undefined;
|
|
226
|
-
};
|
|
96
|
+
tokenAddress?: `0x${string}` | undefined;
|
|
97
|
+
} | {
|
|
227
98
|
id: string;
|
|
228
99
|
totalBalances: Record<string, string>;
|
|
229
|
-
tokenAddress?: `0x${string}` | undefined;
|
|
230
|
-
investmentId?: string | undefined;
|
|
231
|
-
}, {
|
|
232
100
|
data: {
|
|
233
|
-
lending: boolean;
|
|
234
101
|
collateral: boolean;
|
|
235
102
|
debt: boolean;
|
|
236
|
-
|
|
237
|
-
apy?: string | undefined;
|
|
238
|
-
group?: number | undefined;
|
|
239
|
-
};
|
|
240
|
-
id: string;
|
|
241
|
-
totalBalances: Record<string, string>;
|
|
242
|
-
tokenAddress?: string | undefined;
|
|
243
|
-
investmentId?: string | undefined;
|
|
244
|
-
}>]>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
|
|
245
|
-
id: import('zod').ZodString;
|
|
246
|
-
investmentId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
247
|
-
tokenAddress: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>>;
|
|
248
|
-
totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
|
|
249
|
-
}, {
|
|
250
|
-
id: import('zod').ZodString;
|
|
251
|
-
data: import('zod').ZodObject<{
|
|
252
|
-
delegatingTo: import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>;
|
|
253
|
-
}, "strip", import('zod').ZodTypeAny, {
|
|
254
|
-
delegatingTo: `0x${string}`;
|
|
255
|
-
}, {
|
|
256
|
-
delegatingTo: string;
|
|
257
|
-
}>;
|
|
258
|
-
totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
|
|
259
|
-
}>, "strip", import('zod').ZodTypeAny, {
|
|
260
|
-
data: {
|
|
261
|
-
delegatingTo: `0x${string}`;
|
|
262
|
-
};
|
|
263
|
-
id: string;
|
|
264
|
-
totalBalances: Record<string, string>;
|
|
265
|
-
tokenAddress?: `0x${string}` | undefined;
|
|
266
|
-
investmentId?: string | undefined;
|
|
267
|
-
}, {
|
|
268
|
-
data: {
|
|
269
|
-
delegatingTo: string;
|
|
270
|
-
};
|
|
271
|
-
id: string;
|
|
272
|
-
totalBalances: Record<string, string>;
|
|
273
|
-
tokenAddress?: string | undefined;
|
|
274
|
-
investmentId?: string | undefined;
|
|
275
|
-
}>]>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
|
|
276
|
-
id: import('zod').ZodString;
|
|
277
|
-
investmentId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
278
|
-
tokenAddress: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>>;
|
|
279
|
-
totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
|
|
280
|
-
}, {
|
|
281
|
-
data: import('zod').ZodObject<{
|
|
282
|
-
apy: import('zod').ZodOptional<import('zod').ZodString>;
|
|
283
|
-
totalApy: import('zod').ZodOptional<import('zod').ZodString>;
|
|
284
|
-
}, "strip", import('zod').ZodTypeAny, {
|
|
285
|
-
totalApy?: string | undefined;
|
|
286
|
-
apy?: string | undefined;
|
|
287
|
-
}, {
|
|
288
|
-
totalApy?: string | undefined;
|
|
289
|
-
apy?: string | undefined;
|
|
290
|
-
}>;
|
|
291
|
-
investmentId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
292
|
-
totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
|
|
293
|
-
}>, "strip", import('zod').ZodTypeAny, {
|
|
294
|
-
data: {
|
|
295
|
-
totalApy?: string | undefined;
|
|
103
|
+
lending: boolean;
|
|
296
104
|
apy?: string | undefined;
|
|
297
|
-
};
|
|
298
|
-
id: string;
|
|
299
|
-
totalBalances: Record<string, string>;
|
|
300
|
-
tokenAddress?: `0x${string}` | undefined;
|
|
301
|
-
investmentId?: string | undefined;
|
|
302
|
-
}, {
|
|
303
|
-
data: {
|
|
304
105
|
totalApy?: string | undefined;
|
|
305
|
-
|
|
106
|
+
group?: number | undefined;
|
|
306
107
|
};
|
|
307
|
-
id: string;
|
|
308
|
-
totalBalances: Record<string, string>;
|
|
309
|
-
tokenAddress?: string | undefined;
|
|
310
108
|
investmentId?: string | undefined;
|
|
311
|
-
}>]>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
|
|
312
|
-
id: import('zod').ZodString;
|
|
313
|
-
investmentId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
314
|
-
tokenAddress: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>>;
|
|
315
|
-
totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
|
|
316
|
-
}, {
|
|
317
|
-
investmentId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
318
|
-
data: import('zod').ZodObject<{
|
|
319
|
-
stakerInfo: import('zod').ZodObject<{
|
|
320
|
-
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
321
|
-
iconUrl: import('zod').ZodOptional<import('zod').ZodString>;
|
|
322
|
-
address: import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>;
|
|
323
|
-
}, "strip", import('zod').ZodTypeAny, {
|
|
324
|
-
address: `0x${string}`;
|
|
325
|
-
name?: string | undefined;
|
|
326
|
-
iconUrl?: string | undefined;
|
|
327
|
-
}, {
|
|
328
|
-
address: string;
|
|
329
|
-
name?: string | undefined;
|
|
330
|
-
iconUrl?: string | undefined;
|
|
331
|
-
}>;
|
|
332
|
-
accruedRewards: import('zod').ZodString;
|
|
333
|
-
stakedAmount: import('zod').ZodString;
|
|
334
|
-
pendingWithdrawal: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
335
|
-
amount: import('zod').ZodString;
|
|
336
|
-
withdrawableAfter: import('zod').ZodNumber;
|
|
337
|
-
}, "strip", import('zod').ZodTypeAny, {
|
|
338
|
-
amount: string;
|
|
339
|
-
withdrawableAfter: number;
|
|
340
|
-
}, {
|
|
341
|
-
amount: string;
|
|
342
|
-
withdrawableAfter: number;
|
|
343
|
-
}>>;
|
|
344
|
-
apy: import('zod').ZodOptional<import('zod').ZodString>;
|
|
345
|
-
totalApy: import('zod').ZodOptional<import('zod').ZodString>;
|
|
346
|
-
}, "strip", import('zod').ZodTypeAny, {
|
|
347
|
-
stakerInfo: {
|
|
348
|
-
address: `0x${string}`;
|
|
349
|
-
name?: string | undefined;
|
|
350
|
-
iconUrl?: string | undefined;
|
|
351
|
-
};
|
|
352
|
-
accruedRewards: string;
|
|
353
|
-
stakedAmount: string;
|
|
354
|
-
totalApy?: string | undefined;
|
|
355
|
-
apy?: string | undefined;
|
|
356
|
-
pendingWithdrawal?: {
|
|
357
|
-
amount: string;
|
|
358
|
-
withdrawableAfter: number;
|
|
359
|
-
} | undefined;
|
|
360
|
-
}, {
|
|
361
|
-
stakerInfo: {
|
|
362
|
-
address: string;
|
|
363
|
-
name?: string | undefined;
|
|
364
|
-
iconUrl?: string | undefined;
|
|
365
|
-
};
|
|
366
|
-
accruedRewards: string;
|
|
367
|
-
stakedAmount: string;
|
|
368
|
-
totalApy?: string | undefined;
|
|
369
|
-
apy?: string | undefined;
|
|
370
|
-
pendingWithdrawal?: {
|
|
371
|
-
amount: string;
|
|
372
|
-
withdrawableAfter: number;
|
|
373
|
-
} | undefined;
|
|
374
|
-
}>;
|
|
375
|
-
}>, "strip", import('zod').ZodTypeAny, {
|
|
376
|
-
data: {
|
|
377
|
-
stakerInfo: {
|
|
378
|
-
address: `0x${string}`;
|
|
379
|
-
name?: string | undefined;
|
|
380
|
-
iconUrl?: string | undefined;
|
|
381
|
-
};
|
|
382
|
-
accruedRewards: string;
|
|
383
|
-
stakedAmount: string;
|
|
384
|
-
totalApy?: string | undefined;
|
|
385
|
-
apy?: string | undefined;
|
|
386
|
-
pendingWithdrawal?: {
|
|
387
|
-
amount: string;
|
|
388
|
-
withdrawableAfter: number;
|
|
389
|
-
} | undefined;
|
|
390
|
-
};
|
|
391
|
-
id: string;
|
|
392
|
-
totalBalances: Record<string, string>;
|
|
393
109
|
tokenAddress?: `0x${string}` | undefined;
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
accruedRewards: string;
|
|
403
|
-
stakedAmount: string;
|
|
404
|
-
totalApy?: string | undefined;
|
|
405
|
-
apy?: string | undefined;
|
|
406
|
-
pendingWithdrawal?: {
|
|
407
|
-
amount: string;
|
|
408
|
-
withdrawableAfter: number;
|
|
409
|
-
} | undefined;
|
|
410
|
-
};
|
|
411
|
-
id: string;
|
|
412
|
-
totalBalances: Record<string, string>;
|
|
413
|
-
tokenAddress?: string | undefined;
|
|
414
|
-
investmentId?: string | undefined;
|
|
415
|
-
}>]>, "many">;
|
|
416
|
-
}, import('zod').ZodTypeAny, "passthrough">[];
|
|
110
|
+
})[];
|
|
111
|
+
productId?: string | undefined;
|
|
112
|
+
manageUrl?: string | undefined;
|
|
113
|
+
groups?: Record<string, {
|
|
114
|
+
name?: string | undefined;
|
|
115
|
+
healthRatio?: string | undefined;
|
|
116
|
+
}> | undefined;
|
|
117
|
+
}[];
|
|
417
118
|
}[]>;
|
|
418
119
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),a=require("../../../chains/starknet/address.cjs"),h=require("./defiPositionType.model.cjs"),b=require("../../../utils/schemas.cjs"),u=e.z.object({status:e.z.literal("initialising")}).or(e.z.object({status:e.z.literal("initialised"),balances:e.z.array(e.z.object({tokenAddress:a.addressSchemaArgentBackend,tokenBalance:e.z.string()}))})),o=e.z.object({id:e.z.number(),address:a.addressSchema,brandColor:e.z.string().optional(),name:e.z.string(),symbol:e.z.string(),decimals:e.z.number(),iconUrl:e.z.string().optional(),sendable:e.z.boolean(),popular:e.z.boolean(),refundable:e.z.boolean(),listed:e.z.boolean(),tradable:e.z.boolean(),category:e.z.union([e.z.literal("tokens"),e.z.literal("currencies"),e.z.literal("savings")]),pricingId:e.z.number().optional(),dappId:e.z.string().optional(),marketData:e.z.object({marketCap:e.z.number().default(0),marketCap24hChange:e.z.number().default(0),dailyVolume:e.z.number().default(0),rank:e.z.number().default(0)}).optional(),tags:e.z.array(e.z.string()).optional()}),k=e.z.object({tokens:e.z.array(o)}),D=o,d=e.z.object({pricingId:e.z.number(),ethValue:e.z.string(),ccyValue:e.z.string(),ethDayChange:e.z.string(),ccyDayChange:e.z.string()}),y=e.z.object({prices:e.z.array(d)}),i=e.z.object({tokenAddress:a.addressSchemaArgentBackend,principal:e.z.string(),accruedFees:e.z.string(),minPrice:e.z.string(),maxPrice:e.z.string(),currentPrice:e.z.string()}),t=e.z.object({id:e.z.string(),investmentId:e.z.string().optional(),tokenAddress:a.addressSchema.optional(),totalBalances:e.z.record(e.z.string())}),n=t.extend({tokenId:e.z.string(),data:e.z.object({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),token0:i,token1:i})}),P=e.z.array(n),s=t.extend({data:e.z.object({apy:e.z.string().optional(),totalApy:e.z.string().optional()}),investmentId:e.z.string().optional(),totalBalances:e.z.record(e.z.string())}),f=e.z.array(s),r=t.extend({data:e.z.object({apy:e.z.string().optional(),totalApy:e.z.string().optional(),group:e.z.number().optional(),collateral:e.z.boolean(),debt:e.z.boolean(),lending:e.z.boolean()})}),j=e.z.array(r),c=t.extend({id:e.z.string(),data:e.z.object({delegatingTo:a.addressSchema}),totalBalances:e.z.record(e.z.string())}),A=e.z.array(c),p=t.extend({investmentId:e.z.string().optional(),data:e.z.object({stakerInfo:e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().optional(),address:a.addressSchema}),accruedRewards:e.z.string(),stakedAmount:e.z.string(),pendingWithdrawal:e.z.object({amount:e.z.string(),withdrawableAfter:e.z.number()}).optional(),apy:e.z.string().optional(),totalApy:e.z.string().optional()})}),T=e.z.array(p),l=n.or(r).or(c).or(s).or(p),z=e.z.array(l),m=b.createSchemaWithWarnings({productId:e.z.string().optional(),name:e.z.string(),manageUrl:e.z.string().optional(),type:h.defiPositionTypeSchema,groups:e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional()})).optional(),positions:z}),g=e.z.object({dappId:e.z.string(),products:e.z.array(m)}),I=e.z.object({dapps:e.z.array(g)}),S=e.z.object({name:e.z.string().optional(),tokenAddress:a.addressSchema,amount:e.z.string().optional(),claimUrl:e.z.string().optional(),claimStart:e.z.number(),claimEnd:e.z.number().optional()}),C=e.z.object({accountAddress:a.addressSchema,chain:e.z.string(),airdrops:e.z.array(S)});exports.apiAccountTokenBalancesSchema=u;exports.apiAirdropSchema=S;exports.apiCollateralizedDebtPositionSchema=r;exports.apiCollateralizedDebtPositionsSchema=j;exports.apiConcentratedLiquidityPositionSchema=n;exports.apiConcentratedLiquidityPositionsSchema=P;exports.apiDefiDecompositionProduct=m;exports.apiDefiDecompositionProducts=z;exports.apiDefiDecompositionSchema=g;exports.apiDefiDecompositionToken=i;exports.apiDefiPositionSchema=l;exports.apiDefiPositionsSchema=I;exports.apiDelegatedTokensArraySchema=A;exports.apiDelegatedTokensSchema=c;exports.apiPriceDataResponseSchema=y;exports.apiPriceDetailsSchema=d;exports.apiStakingPositionSchema=s;exports.apiStakingPositionsSchema=f;exports.apiStrkDelegatedStakingPositionsSchema=T;exports.apiStrkDelegatedStakingSchema=p;exports.apiTokenInfoResponseSchema=D;exports.apiTokenInfoSchema=o;exports.apiTokensInfoResponseSchema=k;exports.apiUnclaimedRewardsSchema=C;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),a=require("../../../chains/starknet/address.cjs"),h=require("./defiPositionType.model.cjs"),b=require("../../../utils/schemas.cjs"),u=e.z.object({status:e.z.literal("initialising")}).or(e.z.object({status:e.z.literal("initialised"),balances:e.z.array(e.z.object({tokenAddress:a.addressSchemaArgentBackend,tokenBalance:e.z.string()}))})),o=e.z.object({id:e.z.number(),address:a.addressSchema,brandColor:e.z.string().optional(),name:e.z.string(),symbol:e.z.string(),decimals:e.z.number(),iconUrl:e.z.string().optional(),sendable:e.z.boolean(),popular:e.z.boolean(),refundable:e.z.boolean(),listed:e.z.boolean(),tradable:e.z.boolean(),category:e.z.union([e.z.literal("tokens"),e.z.literal("currencies"),e.z.literal("savings")]),pricingId:e.z.number().optional(),dappId:e.z.string().optional(),marketData:e.z.object({marketCap:e.z.number().default(0),marketCap24hChange:e.z.number().default(0),dailyVolume:e.z.number().default(0),rank:e.z.number().default(0)}).optional(),tags:e.z.array(e.z.string()).optional()}),k=e.z.object({tokens:e.z.array(o)}),D=o,d=e.z.object({pricingId:e.z.number(),ethValue:e.z.string(),ccyValue:e.z.string(),ethDayChange:e.z.string(),ccyDayChange:e.z.string()}),y=e.z.object({prices:e.z.array(d)}),i=e.z.object({tokenAddress:a.addressSchemaArgentBackend,principal:e.z.string(),accruedFees:e.z.string(),minPrice:e.z.string(),maxPrice:e.z.string(),currentPrice:e.z.string()}),t=e.z.object({id:e.z.string(),investmentId:e.z.string().optional(),tokenAddress:a.addressSchema.optional(),totalBalances:e.z.record(e.z.string(),e.z.string())}),n=t.extend({tokenId:e.z.string(),data:e.z.object({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),token0:i,token1:i})}),P=e.z.array(n),s=t.extend({data:e.z.object({apy:e.z.string().optional(),totalApy:e.z.string().optional()}),investmentId:e.z.string().optional(),totalBalances:e.z.record(e.z.string(),e.z.string())}),f=e.z.array(s),r=t.extend({data:e.z.object({apy:e.z.string().optional(),totalApy:e.z.string().optional(),group:e.z.number().optional(),collateral:e.z.boolean(),debt:e.z.boolean(),lending:e.z.boolean()})}),j=e.z.array(r),c=t.extend({id:e.z.string(),data:e.z.object({delegatingTo:a.addressSchema}),totalBalances:e.z.record(e.z.string(),e.z.string())}),A=e.z.array(c),p=t.extend({investmentId:e.z.string().optional(),data:e.z.object({stakerInfo:e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().optional(),address:a.addressSchema}),accruedRewards:e.z.string(),stakedAmount:e.z.string(),pendingWithdrawal:e.z.object({amount:e.z.string(),withdrawableAfter:e.z.number()}).optional(),apy:e.z.string().optional(),totalApy:e.z.string().optional()})}),T=e.z.array(p),l=n.or(r).or(c).or(s).or(p),z=e.z.array(l),m=b.createSchemaWithWarnings({productId:e.z.string().optional(),name:e.z.string(),manageUrl:e.z.string().optional(),type:h.defiPositionTypeSchema,groups:e.z.record(e.z.string(),e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional()})).optional(),positions:z}),g=e.z.object({dappId:e.z.string(),products:e.z.array(m)}),I=e.z.object({dapps:e.z.array(g)}),S=e.z.object({name:e.z.string().optional(),tokenAddress:a.addressSchema,amount:e.z.string().optional(),claimUrl:e.z.string().optional(),claimStart:e.z.number(),claimEnd:e.z.number().optional()}),C=e.z.object({accountAddress:a.addressSchema,chain:e.z.string(),airdrops:e.z.array(S)});exports.apiAccountTokenBalancesSchema=u;exports.apiAirdropSchema=S;exports.apiCollateralizedDebtPositionSchema=r;exports.apiCollateralizedDebtPositionsSchema=j;exports.apiConcentratedLiquidityPositionSchema=n;exports.apiConcentratedLiquidityPositionsSchema=P;exports.apiDefiDecompositionProduct=m;exports.apiDefiDecompositionProducts=z;exports.apiDefiDecompositionSchema=g;exports.apiDefiDecompositionToken=i;exports.apiDefiPositionSchema=l;exports.apiDefiPositionsSchema=I;exports.apiDelegatedTokensArraySchema=A;exports.apiDelegatedTokensSchema=c;exports.apiPriceDataResponseSchema=y;exports.apiPriceDetailsSchema=d;exports.apiStakingPositionSchema=s;exports.apiStakingPositionsSchema=f;exports.apiStrkDelegatedStakingPositionsSchema=T;exports.apiStrkDelegatedStakingSchema=p;exports.apiTokenInfoResponseSchema=D;exports.apiTokenInfoSchema=o;exports.apiTokensInfoResponseSchema=k;exports.apiUnclaimedRewardsSchema=C;
|