@emberai/onchain-actions-registry 4.2.0 → 4.2.1
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 +61 -6
- package/dist/index.d.cts +4596 -2634
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4596 -2634
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +61 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -196,18 +196,12 @@ const LiquidityRewardsOwedTokenSchema = zod.z.object({
|
|
|
196
196
|
});
|
|
197
197
|
const LiquidityPooledTokenSchema = zod.z.object({
|
|
198
198
|
tokenUid: TokenIdentifierSchema,
|
|
199
|
-
name: zod.z.string(),
|
|
200
|
-
symbol: zod.z.string(),
|
|
201
|
-
decimals: zod.z.number().int(),
|
|
202
199
|
amount: zod.z.string(),
|
|
203
200
|
usdPrice: zod.z.string().optional(),
|
|
204
201
|
valueUsd: zod.z.string().optional()
|
|
205
202
|
});
|
|
206
203
|
const LiquidityFeesOwedTokenSchema = zod.z.object({
|
|
207
204
|
tokenUid: TokenIdentifierSchema,
|
|
208
|
-
name: zod.z.string(),
|
|
209
|
-
symbol: zod.z.string(),
|
|
210
|
-
decimals: zod.z.number().int(),
|
|
211
205
|
amount: zod.z.string(),
|
|
212
206
|
usdPrice: zod.z.string().optional(),
|
|
213
207
|
valueUsd: zod.z.string().optional()
|
|
@@ -1691,6 +1685,61 @@ const CreateLiquidityWithdrawEndpointRequestSchema = zod.z.object({
|
|
|
1691
1685
|
walletAddress: zod.z.string().describe("The wallet owning the liquidity position to withdraw"),
|
|
1692
1686
|
poolTokenUid: TokenIdentifierSchema.describe("The LP token identifier")
|
|
1693
1687
|
});
|
|
1688
|
+
const LiquidityPositionPooledTokenSchema = zod.z.object({
|
|
1689
|
+
tokenUid: TokenIdentifierSchema,
|
|
1690
|
+
name: zod.z.string(),
|
|
1691
|
+
symbol: zod.z.string(),
|
|
1692
|
+
decimals: zod.z.number().int(),
|
|
1693
|
+
amount: zod.z.string(),
|
|
1694
|
+
usdPrice: zod.z.string().optional(),
|
|
1695
|
+
valueUsd: zod.z.string().optional()
|
|
1696
|
+
});
|
|
1697
|
+
const LiquidityPositionFeesOwedTokenSchema = zod.z.object({
|
|
1698
|
+
tokenUid: TokenIdentifierSchema,
|
|
1699
|
+
name: zod.z.string(),
|
|
1700
|
+
symbol: zod.z.string(),
|
|
1701
|
+
decimals: zod.z.number().int(),
|
|
1702
|
+
amount: zod.z.string(),
|
|
1703
|
+
usdPrice: zod.z.string().optional(),
|
|
1704
|
+
valueUsd: zod.z.string().optional()
|
|
1705
|
+
});
|
|
1706
|
+
const LiquidityPositionSchema$1 = zod.z.object({
|
|
1707
|
+
positionId: zod.z.string(),
|
|
1708
|
+
poolIdentifier: TokenIdentifierSchema,
|
|
1709
|
+
operator: zod.z.string(),
|
|
1710
|
+
pooledTokens: zod.z.array(LiquidityPositionPooledTokenSchema),
|
|
1711
|
+
feesOwedTokens: zod.z.array(LiquidityPositionFeesOwedTokenSchema),
|
|
1712
|
+
rewardsOwedTokens: zod.z.array(LiquidityRewardsOwedTokenSchema),
|
|
1713
|
+
feesValueUsd: zod.z.string().optional(),
|
|
1714
|
+
rewardsValueUsd: zod.z.string().optional(),
|
|
1715
|
+
positionValueUsd: zod.z.string().optional(),
|
|
1716
|
+
currentPrice: zod.z.string().optional(),
|
|
1717
|
+
currentTick: zod.z.number().int().optional(),
|
|
1718
|
+
tickLower: zod.z.number().int().optional(),
|
|
1719
|
+
tickUpper: zod.z.number().int().optional(),
|
|
1720
|
+
inRange: zod.z.boolean().optional(),
|
|
1721
|
+
apr: zod.z.string().optional(),
|
|
1722
|
+
apy: zod.z.string().optional(),
|
|
1723
|
+
poolFeeBps: zod.z.number().int().optional(),
|
|
1724
|
+
providerId: zod.z.string(),
|
|
1725
|
+
positionRange: LiquidityPositionRangeSchema.optional(),
|
|
1726
|
+
poolName: zod.z.string()
|
|
1727
|
+
});
|
|
1728
|
+
const GetWalletLiquidityPositionsResponseSchema$1 = zod.z.object({ positions: zod.z.array(LiquidityPositionSchema$1) });
|
|
1729
|
+
const LiquidityPoolSchema$1 = zod.z.object({
|
|
1730
|
+
identifier: TokenIdentifierSchema,
|
|
1731
|
+
tokens: zod.z.array(TokenSchema),
|
|
1732
|
+
currentPrice: zod.z.string(),
|
|
1733
|
+
providerId: zod.z.string(),
|
|
1734
|
+
feeTierBps: zod.z.number().int().optional(),
|
|
1735
|
+
liquidity: zod.z.string().optional(),
|
|
1736
|
+
tvlUsd: zod.z.string().optional(),
|
|
1737
|
+
volume24hUsd: zod.z.string().optional(),
|
|
1738
|
+
tickSpacing: zod.z.number().int().optional(),
|
|
1739
|
+
currentTick: zod.z.number().int().optional(),
|
|
1740
|
+
poolName: zod.z.string()
|
|
1741
|
+
});
|
|
1742
|
+
const GetLiquidityPoolsResponseSchema$1 = zod.z.object({ liquidityPools: zod.z.array(LiquidityPoolSchema$1) });
|
|
1694
1743
|
|
|
1695
1744
|
//#endregion
|
|
1696
1745
|
//#region src/endpoint-interfaces/perpetuals.ts
|
|
@@ -2059,6 +2108,12 @@ let EndpointInterfaces;
|
|
|
2059
2108
|
_EndpointInterfaces.LiquidityWithdrawOptionSchema = LiquidityWithdrawOptionSchema;
|
|
2060
2109
|
_EndpointInterfaces.PossibleLiquidityWithdrawResponseSchema = PossibleLiquidityWithdrawResponseSchema;
|
|
2061
2110
|
_EndpointInterfaces.CreateLiquidityWithdrawEndpointRequestSchema = CreateLiquidityWithdrawEndpointRequestSchema;
|
|
2111
|
+
_EndpointInterfaces.LiquidityPositionPooledTokenSchema = LiquidityPositionPooledTokenSchema;
|
|
2112
|
+
_EndpointInterfaces.LiquidityPositionFeesOwedTokenSchema = LiquidityPositionFeesOwedTokenSchema;
|
|
2113
|
+
_EndpointInterfaces.LiquidityPositionSchema = LiquidityPositionSchema$1;
|
|
2114
|
+
_EndpointInterfaces.GetWalletLiquidityPositionsResponseSchema = GetWalletLiquidityPositionsResponseSchema$1;
|
|
2115
|
+
_EndpointInterfaces.LiquidityPoolSchema = LiquidityPoolSchema$1;
|
|
2116
|
+
_EndpointInterfaces.GetLiquidityPoolsResponseSchema = GetLiquidityPoolsResponseSchema$1;
|
|
2062
2117
|
_EndpointInterfaces.CreateTokenizedYieldBuyPtEndpointRequestSchema = CreateTokenizedYieldBuyPtEndpointRequestSchema;
|
|
2063
2118
|
_EndpointInterfaces.CreateTokenizedYieldBuyPtResponseSchema = CreateTokenizedYieldBuyPtResponseSchema;
|
|
2064
2119
|
_EndpointInterfaces.CreateTokenizedYieldBuyPtSchema = CreateTokenizedYieldBuyPtSchema;
|