@argent/x-shared 1.38.0 → 1.39.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/index.cjs +1 -1
- package/dist/index.js +295 -282
- package/dist/src/features/simulation/activity/schema.cjs +1 -1
- package/dist/src/features/simulation/activity/schema.d.ts +1660 -52
- package/dist/src/features/simulation/activity/schema.js +68 -49
- package/dist/src/features/swap/models/quote.model.d.ts +4 -4
- package/dist/src/features/swap/models/trade.model.d.ts +2 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/src/staking/index.d.ts +1 -0
- package/dist/src/staking/schema.cjs +1 -0
- package/dist/src/staking/schema.d.ts +3027 -0
- package/dist/src/staking/schema.js +137 -0
- package/dist/src/tokens/service/implementation.d.ts +25 -6
- package/dist/src/tokens/service/types/backend.model.cjs +1 -1
- package/dist/src/tokens/service/types/backend.model.d.ts +983 -238
- package/dist/src/tokens/service/types/backend.model.js +29 -22
- package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPosition.model.d.ts +1390 -430
- package/dist/src/tokens/service/types/defiPosition.model.js +29 -22
- package/dist/src/tokens/service/types/defiPositionType.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPositionType.model.d.ts +1 -1
- package/dist/src/tokens/service/types/defiPositionType.model.js +3 -2
- package/dist/src/tokens/service/types/unclaimedRewards.model.d.ts +8 -8
- package/dist/src/tokens/service/types/webToken.model.d.ts +8 -8
- package/dist/src/transactions/estimate/model.cjs +1 -1
- package/dist/src/transactions/estimate/model.js +5 -5
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z as a } from "zod";
|
|
2
2
|
import { addressSchemaArgentBackend as n, addressSchema as e } from "../../../chains/starknet/address.js";
|
|
3
3
|
import { defiPositionTypeSchema as p } from "./defiPositionType.model.js";
|
|
4
|
-
import { createSchemaWithWarnings as
|
|
5
|
-
const
|
|
4
|
+
import { createSchemaWithWarnings as d } from "../../../utils/schemas.js";
|
|
5
|
+
const D = a.object({
|
|
6
6
|
status: a.literal("initialising")
|
|
7
7
|
}).or(a.object({
|
|
8
8
|
status: a.literal("initialised"),
|
|
@@ -39,13 +39,13 @@ const j = a.object({
|
|
|
39
39
|
tags: a.array(a.string()).optional()
|
|
40
40
|
}), P = a.object({
|
|
41
41
|
tokens: a.array(i)
|
|
42
|
-
}),
|
|
42
|
+
}), f = i, m = 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(m)
|
|
50
50
|
}), t = a.object({
|
|
51
51
|
tokenAddress: n,
|
|
@@ -65,7 +65,7 @@ const j = a.object({
|
|
|
65
65
|
token0: t,
|
|
66
66
|
token1: t
|
|
67
67
|
})
|
|
68
|
-
}),
|
|
68
|
+
}), A = a.array(r), s = o.extend({
|
|
69
69
|
data: a.object({
|
|
70
70
|
apy: a.string()
|
|
71
71
|
}),
|
|
@@ -78,7 +78,12 @@ const j = a.object({
|
|
|
78
78
|
debt: a.boolean(),
|
|
79
79
|
lending: a.boolean()
|
|
80
80
|
})
|
|
81
|
-
}),
|
|
81
|
+
}), T = a.array(c), l = a.object({
|
|
82
|
+
data: a.object({
|
|
83
|
+
delegatingTo: e
|
|
84
|
+
}),
|
|
85
|
+
totalBalances: a.record(a.string())
|
|
86
|
+
}), B = a.array(l), g = a.array(r.or(c).or(l).or(s)), b = d({
|
|
82
87
|
name: a.string(),
|
|
83
88
|
manageUrl: a.string(),
|
|
84
89
|
type: p,
|
|
@@ -86,12 +91,12 @@ const j = a.object({
|
|
|
86
91
|
name: a.string().optional(),
|
|
87
92
|
healthRatio: a.string().optional()
|
|
88
93
|
})).optional(),
|
|
89
|
-
positions:
|
|
90
|
-
}),
|
|
94
|
+
positions: g
|
|
95
|
+
}), h = a.object({
|
|
91
96
|
dappId: a.string(),
|
|
92
|
-
products: a.array(
|
|
93
|
-
}),
|
|
94
|
-
dapps: a.array(
|
|
97
|
+
products: a.array(b)
|
|
98
|
+
}), x = a.object({
|
|
99
|
+
dapps: a.array(h)
|
|
95
100
|
}), u = a.object({
|
|
96
101
|
name: a.string().optional(),
|
|
97
102
|
tokenAddress: e,
|
|
@@ -99,29 +104,31 @@ const j = a.object({
|
|
|
99
104
|
claimUrl: a.string().optional(),
|
|
100
105
|
claimStart: a.number(),
|
|
101
106
|
claimEnd: a.number().optional()
|
|
102
|
-
}),
|
|
107
|
+
}), R = a.object({
|
|
103
108
|
accountAddress: e,
|
|
104
109
|
chain: a.string(),
|
|
105
110
|
airdrops: a.array(u)
|
|
106
111
|
});
|
|
107
112
|
export {
|
|
108
|
-
|
|
113
|
+
D as apiAccountTokenBalancesSchema,
|
|
109
114
|
u as apiAirdropSchema,
|
|
110
115
|
c as apiCollateralizedDebtPositionSchema,
|
|
111
|
-
|
|
116
|
+
T as apiCollateralizedDebtPositionsSchema,
|
|
112
117
|
r as apiConcentratedLiquidityPositionSchema,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
A as apiConcentratedLiquidityPositionsSchema,
|
|
119
|
+
b as apiDefiDecompositionProduct,
|
|
120
|
+
g as apiDefiDecompositionProducts,
|
|
121
|
+
h as apiDefiDecompositionSchema,
|
|
117
122
|
t as apiDefiDecompositionToken,
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
x as apiDefiPositionsSchema,
|
|
124
|
+
B as apiDelegatedTokensArraySchema,
|
|
125
|
+
l as apiDelegatedTokensSchema,
|
|
126
|
+
C as apiPriceDataResponseSchema,
|
|
120
127
|
m as apiPriceDetailsSchema,
|
|
121
128
|
s as apiStakingPositionSchema,
|
|
122
129
|
I as apiStakingPositionsSchema,
|
|
123
|
-
|
|
130
|
+
f as apiTokenInfoResponseSchema,
|
|
124
131
|
i as apiTokenInfoSchema,
|
|
125
132
|
P as apiTokensInfoResponseSchema,
|
|
126
|
-
|
|
133
|
+
R as apiUnclaimedRewardsSchema
|
|
127
134
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),o=require("../../../chains/starknet/address.cjs"),p=require("./backend.model.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),o=require("../../../chains/starknet/address.cjs"),p=require("./backend.model.cjs"),z=require("./defiPositionType.model.cjs"),t=require("./webToken.model.cjs"),c=t.webTokenWithBalanceAndPriceSchema.extend({accruedFees:e.z.string(),currentPrice:e.z.string(),maxPrice:e.z.string(),minPrice:e.z.string(),principal:e.z.string()}),n=e.z.object({address:o.addressSchema.optional(),currencyValue:e.z.string().default("0")}),a=n.extend({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),tokenId:e.z.string().optional(),unitCurrencyValueToken0:e.z.string().optional(),unitCurrencyValueToken1:e.z.string().optional(),token0:c,token1:c}),m=e.z.array(a),h=e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:o.addressSchema.optional()}),i=n.extend({totalBalances:e.z.record(e.z.string()),collateral:e.z.boolean(),debt:e.z.boolean(),lending:e.z.boolean(),apy:e.z.string().optional(),group:e.z.string().optional(),unitCurrencyValue:e.z.string().optional(),positionToken:p.apiTokenInfoSchema.or(e.z.undefined()),token:t.webTokenWithBalanceAndPriceSchema.optional(),accountAddress:o.addressSchema.optional(),accountAddressGroup:e.z.string().optional()}),g=e.z.array(i),r=n.extend({delegatingTo:o.addressSchema,token:t.webTokenWithBalanceAndPriceSchema.optional(),balance:e.z.string(),unitCurrencyValue:e.z.string().optional().default("0")}),S=e.z.array(r),s=a.or(i).or(r),d=e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:o.addressSchema.optional()})),l=e.z.object({type:z.defiPositionTypeSchema,manageUrl:e.z.string().url().optional(),name:e.z.string(),positions:e.z.array(s),positionsTotalValue:e.z.string(),brandColor:e.z.string().optional(),groups:d.optional(),accountAddress:o.addressSchema}),u=e.z.array(l),P=e.z.object({dappId:e.z.string(),products:u});exports.collateralizedDebtGroupSchema=h;exports.collateralizedDebtPositionSchema=i;exports.collateralizedDebtPositionsSchema=g;exports.concentratedLiquidityPositionSchema=a;exports.concentratedLiquidityPositionsSchema=m;exports.defiDappsProductsSchema=P;exports.defiPositionSchema=s;exports.defiProductSchema=l;exports.defiProductsSchema=u;exports.delegatedTokensArraySchema=S;exports.delegatedTokensSchema=r;exports.productGroupsSchema=d;
|