@argent/x-shared 1.75.0 → 1.75.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/dist/src/features/simulation/activity/schema.d.ts +21 -21
- package/dist/src/features/simulation/fees/schema.d.ts +2 -2
- package/dist/src/features/simulation/transactionReview/schema.d.ts +24 -24
- package/dist/src/staking/schema.d.ts +2 -2
- package/dist/src/tokens/service/implementation.d.ts +2 -0
- package/dist/src/tokens/service/types/backend.model.cjs +1 -1
- package/dist/src/tokens/service/types/backend.model.d.ts +23 -261
- package/dist/src/tokens/service/types/backend.model.js +25 -23
- package/dist/src/utils/schemas.d.ts +1 -1
- package/package.json +20 -20
- package/dist/defiDecomposition.cjs +0 -1
- package/dist/defiDecomposition.d.ts +0 -2
- package/dist/defiDecomposition.js +0 -65
- package/dist/src/features/defiDecomposition/helpers/computeCollateralizedDebtPositionsUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeCollateralizedDebtPositionsUsdValue.d.ts +0 -6
- package/dist/src/features/defiDecomposition/helpers/computeCollateralizedDebtPositionsUsdValue.js +0 -62
- package/dist/src/features/defiDecomposition/helpers/computeConcentratedLiquidityPositionsUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeConcentratedLiquidityPositionsUsdValue.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/computeConcentratedLiquidityPositionsUsdValue.js +0 -31
- package/dist/src/features/defiDecomposition/helpers/computeDefiDecompositionUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeDefiDecompositionUsdValue.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/computeDefiDecompositionUsdValue.js +0 -55
- package/dist/src/features/defiDecomposition/helpers/computeDelegatedTokensPositionsUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeDelegatedTokensPositionsUsdValue.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/computeDelegatedTokensPositionsUsdValue.js +0 -30
- package/dist/src/features/defiDecomposition/helpers/computeStakingPositionsUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeStakingPositionsUsdValue.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/computeStakingPositionsUsdValue.js +0 -30
- package/dist/src/features/defiDecomposition/helpers/computeStrkDelegatedStakingPositionsUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeStrkDelegatedStakingPositionsUsdValue.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/computeStrkDelegatedStakingPositionsUsdValue.js +0 -30
- package/dist/src/features/defiDecomposition/helpers/computeUsdValueForPosition.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeUsdValueForPosition.d.ts +0 -3
- package/dist/src/features/defiDecomposition/helpers/computeUsdValueForPosition.js +0 -17
- package/dist/src/features/defiDecomposition/helpers/getDefiProductName.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/getDefiProductName.d.ts +0 -1
- package/dist/src/features/defiDecomposition/helpers/getDefiProductName.js +0 -11
- package/dist/src/features/defiDecomposition/helpers/index.d.ts +0 -13
- package/dist/src/features/defiDecomposition/helpers/parseCollateralizedDebtPositions.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseCollateralizedDebtPositions.d.ts +0 -7
- package/dist/src/features/defiDecomposition/helpers/parseCollateralizedDebtPositions.js +0 -56
- package/dist/src/features/defiDecomposition/helpers/parseConcentratedLiquidityPositions.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseConcentratedLiquidityPositions.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/parseConcentratedLiquidityPositions.js +0 -42
- package/dist/src/features/defiDecomposition/helpers/parseDefiDecomposition.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseDefiDecomposition.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/parseDefiDecomposition.js +0 -63
- package/dist/src/features/defiDecomposition/helpers/parseDelegatedTokensPositions.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseDelegatedTokensPositions.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/parseDelegatedTokensPositions.js +0 -27
- package/dist/src/features/defiDecomposition/helpers/parseStakingPositions.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseStakingPositions.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/parseStakingPositions.js +0 -29
- package/dist/src/features/defiDecomposition/helpers/parseStrkDelegatedStakingPositions.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseStrkDelegatedStakingPositions.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/parseStrkDelegatedStakingPositions.js +0 -27
- package/dist/src/features/defiDecomposition/helpers/sortDescendingByUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/sortDescendingByUsdValue.d.ts +0 -9
- package/dist/src/features/defiDecomposition/helpers/sortDescendingByUsdValue.js +0 -9
- package/dist/src/features/defiDecomposition/index.d.ts +0 -2
- package/dist/src/features/defiDecomposition/schema.cjs +0 -1
- package/dist/src/features/defiDecomposition/schema.d.ts +0 -1842
- package/dist/src/features/defiDecomposition/schema.js +0 -153
- package/dist/src/transactions/equalTokens.cjs +0 -1
- package/dist/src/transactions/equalTokens.js +0 -5
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { z as t } from "zod";
|
|
2
|
-
import { webBaseTokenSchema as o } from "../../tokens/service/types/webToken.model.js";
|
|
3
|
-
import { productGroupsSchema as D } from "../../tokens/service/types/defiPosition.model.js";
|
|
4
|
-
import { stakerInfoSchema as U } from "../../staking/schema.js";
|
|
5
|
-
const i = o.extend({
|
|
6
|
-
balance: t.string()
|
|
7
|
-
}), a = i.extend({
|
|
8
|
-
usdValue: t.string()
|
|
9
|
-
}), n = i.extend({
|
|
10
|
-
principal: t.string(),
|
|
11
|
-
accruedFees: t.string(),
|
|
12
|
-
minPrice: t.string(),
|
|
13
|
-
maxPrice: t.string(),
|
|
14
|
-
currentPrice: t.string()
|
|
15
|
-
}), u = n.extend({
|
|
16
|
-
usdValue: t.string()
|
|
17
|
-
}), d = t.object({
|
|
18
|
-
id: t.string(),
|
|
19
|
-
poolFeePercentage: t.string(),
|
|
20
|
-
tickSpacingPercentage: t.string().optional(),
|
|
21
|
-
token0: n,
|
|
22
|
-
token1: n,
|
|
23
|
-
liquidityToken: o.optional()
|
|
24
|
-
}), m = d.extend({
|
|
25
|
-
totalUsdValue: t.string(),
|
|
26
|
-
token0: u,
|
|
27
|
-
token1: u,
|
|
28
|
-
liquidityToken: o.optional()
|
|
29
|
-
}), I = t.object({
|
|
30
|
-
totalUsdValue: t.string(),
|
|
31
|
-
positions: t.array(m)
|
|
32
|
-
}), s = t.object({
|
|
33
|
-
id: t.string(),
|
|
34
|
-
collateral: t.boolean(),
|
|
35
|
-
debt: t.boolean(),
|
|
36
|
-
lending: t.boolean(),
|
|
37
|
-
apy: t.string().optional(),
|
|
38
|
-
totalApy: t.string().optional(),
|
|
39
|
-
group: t.string().optional(),
|
|
40
|
-
token: i,
|
|
41
|
-
liquidityToken: o.optional()
|
|
42
|
-
}), r = s.extend({
|
|
43
|
-
token: a
|
|
44
|
-
}), l = t.object({
|
|
45
|
-
id: t.string(),
|
|
46
|
-
group: t.string(),
|
|
47
|
-
healthRatio: t.string().optional(),
|
|
48
|
-
collateralizedPositions: t.array(s),
|
|
49
|
-
debtPositions: t.array(s)
|
|
50
|
-
}), f = l.extend({
|
|
51
|
-
totalUsdValue: t.string(),
|
|
52
|
-
collateralizedPositions: t.array(r),
|
|
53
|
-
debtPositions: t.array(r),
|
|
54
|
-
collateralizedPositionsTotalUsdValue: t.string(),
|
|
55
|
-
debtPositionsTotalUsdValue: t.string()
|
|
56
|
-
}), h = s.or(l), P = r.or(f), B = t.object({
|
|
57
|
-
totalUsdValue: t.string(),
|
|
58
|
-
positions: t.array(P)
|
|
59
|
-
}), c = t.object({
|
|
60
|
-
id: t.string(),
|
|
61
|
-
investmentId: t.string().optional(),
|
|
62
|
-
apy: t.string().optional(),
|
|
63
|
-
totalApy: t.string().optional(),
|
|
64
|
-
token: i,
|
|
65
|
-
liquidityToken: o.optional()
|
|
66
|
-
}), S = c.extend({
|
|
67
|
-
token: a
|
|
68
|
-
}), A = t.object({
|
|
69
|
-
totalUsdValue: t.string(),
|
|
70
|
-
positions: t.array(S)
|
|
71
|
-
}), p = t.object({
|
|
72
|
-
id: t.string(),
|
|
73
|
-
investmentId: t.string().optional(),
|
|
74
|
-
stakerInfo: U,
|
|
75
|
-
pendingWithdrawal: t.object({
|
|
76
|
-
amount: t.string(),
|
|
77
|
-
withdrawableAfter: t.number()
|
|
78
|
-
}).optional(),
|
|
79
|
-
accruedRewards: t.string(),
|
|
80
|
-
stakedAmount: t.string(),
|
|
81
|
-
apy: t.string().optional(),
|
|
82
|
-
totalApy: t.string().optional(),
|
|
83
|
-
token: i
|
|
84
|
-
}), k = p.extend({
|
|
85
|
-
token: a
|
|
86
|
-
}), v = t.object({
|
|
87
|
-
totalUsdValue: t.string(),
|
|
88
|
-
positions: t.array(k)
|
|
89
|
-
}), g = t.object({
|
|
90
|
-
id: t.string(),
|
|
91
|
-
delegatingTo: t.string(),
|
|
92
|
-
token: i,
|
|
93
|
-
liquidityToken: o.optional()
|
|
94
|
-
}), b = g.extend({
|
|
95
|
-
token: a
|
|
96
|
-
}), F = t.object({
|
|
97
|
-
totalUsdValue: t.string(),
|
|
98
|
-
positions: t.array(b)
|
|
99
|
-
}), T = d.or(h).or(g).or(p).or(c), W = m.or(P).or(b).or(k).or(S), z = t.union([
|
|
100
|
-
t.literal("concentratedLiquidityPosition"),
|
|
101
|
-
t.literal("collateralizedDebtLendingPosition"),
|
|
102
|
-
t.literal("collateralizedDebtBorrowingPosition"),
|
|
103
|
-
t.literal("delegatedTokens"),
|
|
104
|
-
t.literal("strkDelegatedStaking"),
|
|
105
|
-
t.literal("staking")
|
|
106
|
-
]), y = t.object({
|
|
107
|
-
type: z,
|
|
108
|
-
productId: t.string().optional(),
|
|
109
|
-
manageUrl: t.string().url().optional(),
|
|
110
|
-
name: t.string(),
|
|
111
|
-
positions: t.array(T),
|
|
112
|
-
groups: D.optional()
|
|
113
|
-
}), C = y.extend({
|
|
114
|
-
positions: t.array(W),
|
|
115
|
-
totalUsdValue: t.string()
|
|
116
|
-
}), V = t.object({
|
|
117
|
-
dappId: t.string(),
|
|
118
|
-
products: t.array(y)
|
|
119
|
-
}), R = t.array(V), j = V.extend({
|
|
120
|
-
dappId: t.string(),
|
|
121
|
-
products: t.array(C),
|
|
122
|
-
totalUsdValue: t.string()
|
|
123
|
-
}), G = t.array(j), E = (e) => s.safeParse(e).success, H = (e) => l.safeParse(e).success, J = (e) => h.safeParse(e).success, K = (e) => g.safeParse(e).success, M = (e) => c.safeParse(e).success, N = (e) => p.safeParse(e).success, O = (e) => d.safeParse(e).success;
|
|
124
|
-
export {
|
|
125
|
-
z as argentDefiPositionTypeSchema,
|
|
126
|
-
H as isCollateralizedDebtBorrowingPosition,
|
|
127
|
-
E as isCollateralizedDebtLendingPosition,
|
|
128
|
-
J as isCollateralizedDebtPosition,
|
|
129
|
-
O as isConcentratedLiquidityPosition,
|
|
130
|
-
K as isDelegatedTokensPosition,
|
|
131
|
-
M as isStakingPosition,
|
|
132
|
-
N as isStrkDelegatedStakingPosition,
|
|
133
|
-
f as parsedCollateralizedDebtBorrowingPositionWithUsdValueSchema,
|
|
134
|
-
s as parsedCollateralizedDebtLendingPositionSchema,
|
|
135
|
-
h as parsedCollateralizedDebtPositionSchema,
|
|
136
|
-
P as parsedCollateralizedDebtPositionWithUsdValueSchema,
|
|
137
|
-
B as parsedCollateralizedDebtPositionsWithUsdValueSchema,
|
|
138
|
-
d as parsedConcentratedLiquidityPositionSchema,
|
|
139
|
-
m as parsedConcentratedLiquidityPositionWithUsdValueSchema,
|
|
140
|
-
I as parsedConcentratedLiquidityPositionsWithUsdValueSchema,
|
|
141
|
-
V as parsedDefiDecompositionItemSchema,
|
|
142
|
-
j as parsedDefiDecompositionItemWithUsdValueSchema,
|
|
143
|
-
R as parsedDefiDecompositionSchema,
|
|
144
|
-
G as parsedDefiDecompositionWithUsdValueSchema,
|
|
145
|
-
b as parsedDelegatedTokensPositionWithUsdValueSchema,
|
|
146
|
-
F as parsedDelegatedTokensPositionsWithUsdValueSchema,
|
|
147
|
-
T as parsedPositionSchema,
|
|
148
|
-
W as parsedPositionWithUsdValueSchema,
|
|
149
|
-
y as parsedProductSchema,
|
|
150
|
-
C as parsedProductWithUsdValueSchema,
|
|
151
|
-
A as parsedStakingPositionsWithUsdValueSchema,
|
|
152
|
-
v as parsedStrkDelegatedStakingPositionsWithUsdValueSchema
|
|
153
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../chains/starknet/address.cjs"),d=(e,r)=>s.isEqualAddress(e.address,r.address)&&e.networkId===r.networkId;exports.equalToken=d;
|