@settlemint/dalp-sdk 2.1.7-main.26370005544 → 2.1.7-main.26370298202

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.
Files changed (2) hide show
  1. package/dist/index.js +48 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13163,6 +13163,10 @@ var TokenSchema = z67.object({
13163
13163
  description: "Whether the user can execute the removeAuthorizedConverter action",
13164
13164
  examples: [true, false]
13165
13165
  }),
13166
+ featureConversionMinterCreate: z67.boolean().meta({
13167
+ description: "Whether the user can execute the featureConversionMinterCreate action",
13168
+ examples: [true, false]
13169
+ }),
13166
13170
  setPrice: z67.boolean().meta({
13167
13171
  description: "Whether the user can execute the setPrice action",
13168
13172
  examples: [true, false]
@@ -28483,6 +28487,7 @@ var TokenCollectAumFeeInputSchema = TokenMutationInputSchema.extend({});
28483
28487
  var TokenFreezeAumFeeRateInputSchema = TokenMutationInputSchema.extend({});
28484
28488
 
28485
28489
  // ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.conversion.schema.ts
28490
+ import { zeroAddress as zeroAddress2 } from "viem";
28486
28491
  import { z as z414 } from "zod";
28487
28492
  var conversionMinterTargetTokenAddress = ethereumAddress.meta({
28488
28493
  description: "Must be the target token's address (where the conversion-minter feature lives).",
@@ -28571,9 +28576,38 @@ var TokenRemoveAuthorizedConverterInputSchema = TokenConversionMinterMutationInp
28571
28576
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28572
28577
  })
28573
28578
  });
28579
+ var conversionMinterConverterAddress = ethereumAddress.refine((address) => address !== zeroAddress2, "Converter cannot be the zero address");
28580
+ var TokenFeatureConversionMinterCreateBaseSchema = TokenMutationInputSchema.extend({
28581
+ converters: z414.array(conversionMinterConverterAddress).optional().meta({
28582
+ description: "Initial list of authorized converter addresses. Omit or empty for no initial converters.",
28583
+ examples: [["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]]
28584
+ })
28585
+ });
28586
+ var refineNoDuplicates = (value3, ctx) => {
28587
+ if (!value3.converters || value3.converters.length < 2) {
28588
+ return;
28589
+ }
28590
+ const seen = new Set;
28591
+ for (const [index, address] of value3.converters.entries()) {
28592
+ const key = address.toLowerCase();
28593
+ if (seen.has(key)) {
28594
+ ctx.addIssue({
28595
+ code: "custom",
28596
+ message: "Duplicate converter address",
28597
+ path: ["converters", index]
28598
+ });
28599
+ return;
28600
+ }
28601
+ seen.add(key);
28602
+ }
28603
+ };
28604
+ var TokenFeatureConversionMinterCreateInputSchema = TokenFeatureConversionMinterCreateBaseSchema.superRefine(refineNoDuplicates);
28605
+ var TokenFeatureConversionMinterCreateBodySchema = TokenFeatureConversionMinterCreateBaseSchema.omit({
28606
+ tokenAddress: true
28607
+ }).superRefine(refineNoDuplicates);
28574
28608
 
28575
28609
  // ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.external-transaction-fee.schema.ts
28576
- import { zeroAddress as zeroAddress2 } from "viem";
28610
+ import { zeroAddress as zeroAddress3 } from "viem";
28577
28611
  var TokenSetExternalTransactionFeesInputSchema = TokenMutationInputSchema.extend({
28578
28612
  mintFee: assetAmount.meta({
28579
28613
  description: "Mint fee amount in wei",
@@ -28602,7 +28636,7 @@ var TokenSetExternalTransactionFeeTokenInputSchema = TokenMutationInputSchema.ex
28602
28636
  });
28603
28637
  var TokenFreezeExternalTransactionFeesInputSchema = TokenMutationInputSchema.extend({});
28604
28638
  var featureExternalTransactionFeeCreateRefiner = (value3, ctx) => {
28605
- if (value3.feeToken === zeroAddress2 && (value3.mintFee > 0n || value3.burnFee > 0n || value3.transferFee > 0n)) {
28639
+ if (value3.feeToken === zeroAddress3 && (value3.mintFee > 0n || value3.burnFee > 0n || value3.transferFee > 0n)) {
28606
28640
  ctx.addIssue({
28607
28641
  code: "custom",
28608
28642
  message: "feeToken must be set when any fee amount is non-zero",
@@ -28825,7 +28859,7 @@ var TokenFeaturePermitDetachInputSchema = TokenMutationInputSchema;
28825
28859
  var TokenFeaturePermitDetachBodySchema = TokenFeaturePermitDetachInputSchema.omit({ tokenAddress: true });
28826
28860
 
28827
28861
  // ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.yield-ops.schema.ts
28828
- import { zeroAddress as zeroAddress3 } from "viem";
28862
+ import { zeroAddress as zeroAddress4 } from "viem";
28829
28863
  var TokenClaimYieldInputSchema = TokenMutationInputSchema.extend({});
28830
28864
  var TokenSetYieldTreasuryInputSchema = TokenMutationInputSchema.extend({
28831
28865
  treasury: ethereumAddress.meta({
@@ -28847,7 +28881,7 @@ var TokenFeatureApproveYieldAllowanceInputSchema = TokenMutationInputSchema.exte
28847
28881
  });
28848
28882
  var MAX_UINT2564 = (1n << 256n) - 1n;
28849
28883
  var TokenFeatureFixedTreasuryYieldCreateBaseSchema = TokenMutationInputSchema.extend({
28850
- denominationAsset: ethereumAddress.refine((v) => v !== zeroAddress3, "denominationAsset must not be the zero address").meta({
28884
+ denominationAsset: ethereumAddress.refine((v) => v !== zeroAddress4, "denominationAsset must not be the zero address").meta({
28851
28885
  description: "ERC20 address whose decimals back the yield payouts.",
28852
28886
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28853
28887
  }),
@@ -28857,7 +28891,7 @@ var TokenFeatureFixedTreasuryYieldCreateBaseSchema = TokenMutationInputSchema.ex
28857
28891
  description: "The basis (in denomination-asset base units) per one token unit used to size yield accrual.",
28858
28892
  examples: ["1000000000000000000"]
28859
28893
  }),
28860
- treasury: ethereumAddress.refine((v) => v !== zeroAddress3, "treasury must not be the zero address").meta({
28894
+ treasury: ethereumAddress.refine((v) => v !== zeroAddress4, "treasury must not be the zero address").meta({
28861
28895
  description: "Treasury address from which yield distributions are funded.",
28862
28896
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28863
28897
  }),
@@ -29357,6 +29391,13 @@ var featureFixedTreasuryYieldCreate = v2Contract.route({
29357
29391
  successDescription: "Fixed-treasury-yield feature deployed successfully.",
29358
29392
  tags: [V2_TAG.token]
29359
29393
  }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFeatureFixedTreasuryYieldCreateBodySchema)).output(mutationOutput);
29394
+ var featureConversionMinterCreate = v2Contract.route({
29395
+ method: "POST",
29396
+ path: "/tokens/{tokenAddress}/conversion-minter/features",
29397
+ description: "Deploy a conversion-minter feature on a CONFIGURABLE token via the DALPConversionMinterFeatureFactory. The feature mints the target token in response to conversions on a paired loan token. Initial authorized converters can be supplied here or added later via addAuthorizedConverter.",
29398
+ successDescription: "Conversion-minter feature deployed successfully.",
29399
+ tags: [V2_TAG.token]
29400
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFeatureConversionMinterCreateBodySchema)).output(mutationOutput);
29360
29401
  var featurePermitCreate = v2Contract.route({
29361
29402
  method: "POST",
29362
29403
  path: "/tokens/{tokenAddress}/permit/features",
@@ -29673,6 +29714,7 @@ var tokenV2MutationsContract = {
29673
29714
  claimYield,
29674
29715
  setYieldTreasury,
29675
29716
  featureFixedTreasuryYieldCreate,
29717
+ featureConversionMinterCreate,
29676
29718
  featurePermitCreate,
29677
29719
  featurePermitDetach,
29678
29720
  featureMature,
@@ -33225,7 +33267,7 @@ function normalizeDalpBaseUrl(url) {
33225
33267
  // package.json
33226
33268
  var package_default = {
33227
33269
  name: "@settlemint/dalp-sdk",
33228
- version: "2.1.7-main.26370005544",
33270
+ version: "2.1.7-main.26370298202",
33229
33271
  private: false,
33230
33272
  description: "Fully typed SDK for the DALP tokenization platform API",
33231
33273
  homepage: "https://settlemint.com",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-sdk",
3
- "version": "2.1.7-main.26370005544",
3
+ "version": "2.1.7-main.26370298202",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",