@settlemint/dalp-cli 2.1.7-main.23398475882 → 2.1.7-main.23400903660

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/dalp.js +46 -3
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -57324,6 +57324,7 @@ init_zod();
57324
57324
  init_zod();
57325
57325
  init_zod();
57326
57326
  init_zod();
57327
+ init_zod();
57327
57328
  function resolveMaybeOptionalOptions2(rest) {
57328
57329
  return rest[0] ?? {};
57329
57330
  }
@@ -62268,6 +62269,10 @@ var TokenSchema = exports_external.object({
62268
62269
  removeAuthorizedConverter: exports_external.boolean().meta({
62269
62270
  description: "Whether the user can execute the removeAuthorizedConverter action",
62270
62271
  examples: [true, false]
62272
+ }),
62273
+ setPrice: exports_external.boolean().meta({
62274
+ description: "Whether the user can execute the setPrice action",
62275
+ examples: [true, false]
62271
62276
  })
62272
62277
  };
62273
62278
  return actionsSchema;
@@ -72142,6 +72147,34 @@ var TokenRevokeTransferApprovalInputValidatedSchema = TokenRevokeTransferApprova
72142
72147
  var TokenRevokeTransferApprovalBodySchema = TokenRevokeTransferApprovalInputSchema.omit({
72143
72148
  tokenAddress: true
72144
72149
  }).superRefine(identityAddressPairRefinement);
72150
+ var TokenPriceBodySchema = exports_external.object({
72151
+ price: exports_external.string().regex(/^(?!0+(\.0+)?$)\d+(\.\d+)?$/, "Price must be a positive decimal string greater than zero").meta({
72152
+ description: "Token price in the specified currency (decimal string for arbitrary precision)",
72153
+ examples: ["100.50", "1.00", "0.01"]
72154
+ }),
72155
+ currencyCode: fiatCurrency().meta({
72156
+ description: "ISO 4217 fiat currency code",
72157
+ examples: ["EUR", "USD", "GBP"]
72158
+ })
72159
+ });
72160
+ var TokenPriceOutputSchema = exports_external.object({
72161
+ feedAddress: ethereumAddress.meta({
72162
+ description: "The on-chain feed contract address",
72163
+ examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
72164
+ }),
72165
+ txHash: ethereumHash.meta({
72166
+ description: "Transaction hash of the price submission",
72167
+ examples: ["0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"]
72168
+ }),
72169
+ price: exports_external.string().meta({
72170
+ description: "The submitted price (echoed back)",
72171
+ examples: ["100.50"]
72172
+ }),
72173
+ currencyCode: fiatCurrency().meta({
72174
+ description: "The currency code used (echoed back)",
72175
+ examples: ["EUR"]
72176
+ })
72177
+ });
72145
72178
  var COMPLIANCE = ["DALP-1001", "DALP-1005", "DALP-1006", "DALP-1027", "DALP-1055"];
72146
72179
  var FREEZE = ["DALP-1019", "DALP-1020", "DALP-1024", "DALP-1025", "DALP-1043"];
72147
72180
  var RECOVERY = ["DALP-1076", "DALP-1079", "DALP-4051"];
@@ -72590,6 +72623,15 @@ var addAuthorizedConverter = v2Contract.route({
72590
72623
  successDescription: "Authorized converter added successfully.",
72591
72624
  tags: ["v2-token"]
72592
72625
  }).input(v2Input.paramsBody(TokenReadInputSchema, TokenAddAuthorizedConverterInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
72626
+ var setPrice = v2Contract.route({
72627
+ method: "POST",
72628
+ path: "/tokens/{tokenAddress}/price",
72629
+ description: "Set or update the price for a token via a price feed. Creates the feed if one does not exist.",
72630
+ successDescription: "Token price feed updated successfully.",
72631
+ tags: ["v2-token"]
72632
+ }).meta({
72633
+ contractErrors: [...COMMON_CONTRACT_ERRORS]
72634
+ }).input(v2Input.paramsBody(TokenReadInputSchema, TokenPriceBodySchema)).output(createAsyncBlockchainMutationResponse(TokenPriceOutputSchema));
72593
72635
  var removeAuthorizedConverter = v2Contract.route({
72594
72636
  method: "DELETE",
72595
72637
  path: "/tokens/{tokenAddress}/conversion/authorized-converters",
@@ -72657,7 +72699,8 @@ var tokenV2MutationsContract = {
72657
72699
  convert,
72658
72700
  forceConvert,
72659
72701
  addAuthorizedConverter,
72660
- removeAuthorizedConverter
72702
+ removeAuthorizedConverter,
72703
+ setPrice
72661
72704
  };
72662
72705
  var featureTypes = tokenFeatureIds;
72663
72706
  var FeatureTypeSchema = exports_external.enum(featureTypes);
@@ -78955,7 +78998,7 @@ var timestampSerializer = {
78955
78998
  };
78956
78999
  var package_default = {
78957
79000
  name: "@settlemint/dalp-sdk",
78958
- version: "2.1.7-main.23398475882",
79001
+ version: "2.1.7-main.23400903660",
78959
79002
  private: false,
78960
79003
  description: "Fully typed SDK for the DALP tokenization platform API",
78961
79004
  homepage: "https://settlemint.com",
@@ -79098,7 +79141,7 @@ function createDalpClient(config3) {
79098
79141
  // package.json
79099
79142
  var package_default2 = {
79100
79143
  name: "@settlemint/dalp-cli",
79101
- version: "2.1.7-main.23398475882",
79144
+ version: "2.1.7-main.23400903660",
79102
79145
  private: false,
79103
79146
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
79104
79147
  homepage: "https://settlemint.com",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "2.1.7-main.23398475882",
3
+ "version": "2.1.7-main.23400903660",
4
4
  "private": false,
5
5
  "description": "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
6
6
  "homepage": "https://settlemint.com",