@emberai/onchain-actions-registry 3.0.0 → 3.0.1-next.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 +8 -15
- package/dist/index.d.cts +352 -1066
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +352 -1066
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -370,10 +370,8 @@ const MintPtAndYtRequestSchema = zod.z.object({
|
|
|
370
370
|
});
|
|
371
371
|
const MintPtAndYtResponseSchema = zod.z.object({
|
|
372
372
|
exactPtAmount: zod.z.string().describe("Amount of Principal Tokens (PT) minted"),
|
|
373
|
-
displayPtAmount: zod.z.string().describe("Display amount of Principal Tokens (PT) minted"),
|
|
374
373
|
ptTokenIdentifier: TokenIdentifierSchema.describe("Details of the minted Principal Token (PT)"),
|
|
375
374
|
exactYtAmount: zod.z.string().describe("Amount of Yield Tokens (YT) minted"),
|
|
376
|
-
displayYtAmount: zod.z.string().describe("Display amount of Yield Tokens (YT) minted"),
|
|
377
375
|
ytTokenIdentifier: TokenIdentifierSchema.describe("Details of the minted Yield Token (YT)"),
|
|
378
376
|
transactions: zod.z.array(TransactionPlanSchema).describe("Array of transaction plans required to complete the minting process")
|
|
379
377
|
});
|
|
@@ -386,7 +384,6 @@ const BuyPtRequestSchema = zod.z.object({
|
|
|
386
384
|
});
|
|
387
385
|
const BuyPtResponseSchema = zod.z.object({
|
|
388
386
|
exactPtAmount: zod.z.string().describe("Amount of Principal Tokens (PT) minted"),
|
|
389
|
-
displayPtAmount: zod.z.string().describe("Display amount of Principal Tokens (PT) minted"),
|
|
390
387
|
ptTokenIdentifier: TokenIdentifierSchema.describe("Details of the minted Principal Token (PT)"),
|
|
391
388
|
transactions: zod.z.array(TransactionPlanSchema).describe("Array of transaction plans required to complete the minting process")
|
|
392
389
|
});
|
|
@@ -399,7 +396,6 @@ const BuyYtRequestSchema = zod.z.object({
|
|
|
399
396
|
});
|
|
400
397
|
const BuyYtResponseSchema = zod.z.object({
|
|
401
398
|
exactYtAmount: zod.z.string().describe("Amount of Yield Tokens (YT) minted"),
|
|
402
|
-
displayYtAmount: zod.z.string().describe("Display amount of Yield Tokens (YT) minted"),
|
|
403
399
|
ytTokenIdentifier: TokenIdentifierSchema.describe("Details of the minted Yield Token (YT)"),
|
|
404
400
|
transactions: zod.z.array(TransactionPlanSchema).describe("Array of transaction plans required to complete the minting process")
|
|
405
401
|
});
|
|
@@ -410,9 +406,8 @@ const SellPtRequestSchema = zod.z.object({
|
|
|
410
406
|
amount: zod.z.bigint().describe("Amount of Principal Token (PT) to be sold")
|
|
411
407
|
});
|
|
412
408
|
const SellPtResponseSchema = zod.z.object({
|
|
413
|
-
|
|
409
|
+
tokenOutIdentifier: TokenIdentifierSchema.describe("Details of the token received from selling PT"),
|
|
414
410
|
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
411
|
transactions: zod.z.array(TransactionPlanSchema).describe("Array of transaction plans required to complete the selling process")
|
|
417
412
|
});
|
|
418
413
|
const SellYtRequestSchema = zod.z.object({
|
|
@@ -422,9 +417,8 @@ const SellYtRequestSchema = zod.z.object({
|
|
|
422
417
|
amount: zod.z.bigint().describe("Amount of Yield Token (YT) to be sold")
|
|
423
418
|
});
|
|
424
419
|
const SellYtResponseSchema = zod.z.object({
|
|
425
|
-
|
|
420
|
+
tokenOutIdentifier: TokenIdentifierSchema.describe("Details of the token received from selling YT"),
|
|
426
421
|
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
422
|
transactions: zod.z.array(TransactionPlanSchema).describe("Array of transaction plans required to complete the selling process")
|
|
429
423
|
});
|
|
430
424
|
const RedeemPtRequestSchema = zod.z.object({
|
|
@@ -435,7 +429,6 @@ const RedeemPtRequestSchema = zod.z.object({
|
|
|
435
429
|
const RedeemPtResponseSchema = zod.z.object({
|
|
436
430
|
underlyingTokenIdentifier: TokenIdentifierSchema.describe("Details of the underlying token received upon redemption"),
|
|
437
431
|
exactUnderlyingAmount: zod.z.string().describe("Exact amount of underlying token received"),
|
|
438
|
-
displayUnderlyingAmount: zod.z.string().describe("Display amount of underlying token received"),
|
|
439
432
|
transactions: zod.z.array(TransactionPlanSchema).describe("Array of transaction plans required to complete the redemption process")
|
|
440
433
|
});
|
|
441
434
|
const ClaimRewardsRequestSchema = zod.z.object({
|
|
@@ -443,25 +436,25 @@ const ClaimRewardsRequestSchema = zod.z.object({
|
|
|
443
436
|
ytToken: TokenSchema.describe("Yield Token (YT) for which to claim rewards")
|
|
444
437
|
});
|
|
445
438
|
const ClaimRewardsResponseSchema = zod.z.object({ transactions: zod.z.array(TransactionPlanSchema).describe("Array of transaction plans required to complete the reward claiming process") });
|
|
439
|
+
const MarketTokenizedYieldRequestSchema = zod.z.object({ chainIds: zod.z.array(zod.z.string().describe("Blockchain network identifier")).describe("List of chain IDs to filter the markets") });
|
|
446
440
|
const TokenizedYieldMarketSchema = zod.z.object({
|
|
447
441
|
marketIdentifier: TokenIdentifierSchema.describe("Unique identifier for the yield market"),
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
442
|
+
ptTokenIdentifier: TokenIdentifierSchema.describe("Details of the Principal Token (PT)"),
|
|
443
|
+
ytTokenIdentifier: TokenIdentifierSchema.describe("Details of the Yield Token (YT)"),
|
|
444
|
+
underlyingTokenIdentifier: TokenIdentifierSchema.describe("Details of the underlying asset token"),
|
|
451
445
|
expiry: zod.z.string().describe("Expiry date of the yield market in ISO 8601 format"),
|
|
452
446
|
details: zod.z.object({})
|
|
453
447
|
});
|
|
454
|
-
const MarketTokenizedYieldRequestSchema = zod.z.object({ chainIds: zod.z.array(zod.z.string().describe("Blockchain network identifier")).describe("List of chain IDs to filter the markets") });
|
|
455
448
|
const MarketTokenizedYieldResponseSchema = zod.z.object({ markets: zod.z.array(TokenizedYieldMarketSchema).describe("Array of tokenized yield markets matching the request criteria") });
|
|
456
449
|
const TokenizedYieldUserPositionSchema = zod.z.object({
|
|
457
450
|
marketIdentifier: TokenIdentifierSchema.describe("Unique identifier for the yield market"),
|
|
458
451
|
pt: zod.z.object({
|
|
459
|
-
|
|
452
|
+
tokenIdentifier: TokenIdentifierSchema.describe("Details of the Principal Token (PT) held by the user"),
|
|
460
453
|
exactAmount: zod.z.string().describe("Exact amount of Principal Token (PT) held"),
|
|
461
454
|
displayAmount: zod.z.string().describe("Display amount of Principal Token (PT) held")
|
|
462
455
|
}),
|
|
463
456
|
yt: zod.z.object({
|
|
464
|
-
|
|
457
|
+
tokenIdentifier: TokenIdentifierSchema.describe("Details of the Yield Token (YT) held by the user"),
|
|
465
458
|
exactAmount: zod.z.string().describe("Exact amount of Yield Token (YT) held"),
|
|
466
459
|
displayAmount: zod.z.string().describe("Display amount of Yield Token (YT) held"),
|
|
467
460
|
claimableRewards: zod.z.array(zod.z.object({
|