@emberai/onchain-actions-registry 3.0.0-beta.1 → 3.0.0-beta.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/index.cjs CHANGED
@@ -409,12 +409,24 @@ const SellPtRequestSchema = zod.z.object({
409
409
  ptToken: TokenSchema.describe("Principal Token (PT) to be sold"),
410
410
  amount: zod.z.bigint().describe("Amount of Principal Token (PT) to be sold")
411
411
  });
412
+ const SellPtResponseSchema = zod.z.object({
413
+ tokenOut: TokenSchema.describe("Details of the token received from selling PT"),
414
+ exactAmountOut: zod.z.string().describe("Exact amount of token received from selling PT"),
415
+ displayAmountOut: zod.z.string().describe("Display amount of token received from selling PT"),
416
+ transactions: zod.z.array(TransactionPlanSchema).describe("Array of transaction plans required to complete the selling process")
417
+ });
412
418
  const SellYtRequestSchema = zod.z.object({
413
419
  walletAddress: zod.z.string().describe("User's wallet address"),
414
420
  slippage: zod.z.string().describe("Maximum acceptable slippage percentage as a decimal string").default("0.01"),
415
421
  ytToken: TokenSchema.describe("Yield Token (YT) to be sold"),
416
422
  amount: zod.z.bigint().describe("Amount of Yield Token (YT) to be sold")
417
423
  });
424
+ const SellYtResponseSchema = zod.z.object({
425
+ tokenOut: TokenSchema.describe("Details of the token received from selling YT"),
426
+ exactAmountOut: zod.z.string().describe("Exact amount of token received from selling YT"),
427
+ displayAmountOut: zod.z.string().describe("Display amount of token received from selling YT"),
428
+ transactions: zod.z.array(TransactionPlanSchema).describe("Array of transaction plans required to complete the selling process")
429
+ });
418
430
  const RedeemPtRequestSchema = zod.z.object({
419
431
  walletAddress: zod.z.string().describe("User's wallet address"),
420
432
  ptToken: TokenSchema.describe("Principal Token (PT) to be redeemed"),
@@ -1455,7 +1467,9 @@ exports.RedeemPtResponseSchema = RedeemPtResponseSchema;
1455
1467
  exports.RepayTokensRequestSchema = RepayTokensRequestSchema;
1456
1468
  exports.RepayTokensResponseSchema = RepayTokensResponseSchema;
1457
1469
  exports.SellPtRequestSchema = SellPtRequestSchema;
1470
+ exports.SellPtResponseSchema = SellPtResponseSchema;
1458
1471
  exports.SellYtRequestSchema = SellYtRequestSchema;
1472
+ exports.SellYtResponseSchema = SellYtResponseSchema;
1459
1473
  exports.SupplyLiquidityRequestSchema = SupplyLiquidityRequestSchema;
1460
1474
  exports.SupplyLiquidityResponseSchema = SupplyLiquidityResponseSchema;
1461
1475
  exports.SupplyTokensRequestSchema = SupplyTokensRequestSchema;