@settlemint/dalp-cli 3.1.26-release.37857913939 → 3.1.26-release.37857982115

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 +80 -3
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -92149,6 +92149,34 @@ var ENTRIES_INDEX = {
92149
92149
  owner: "dapi",
92150
92150
  orpcCode: "TOKEN_CREATE_COMPLIANCE_MODULE_INCOMPATIBLE"
92151
92151
  },
92152
+ "DALP-9564": {
92153
+ id: "DALP-9564",
92154
+ kind: "route",
92155
+ category: "client",
92156
+ status: 400,
92157
+ retryable: false,
92158
+ expectedClientError: true,
92159
+ public: {
92160
+ message: "Compliance modules {typeIds} are v1 modules and cannot be installed on a v2 asset.",
92161
+ why: "A DALP asset is a v2 token. A v1 compliance module looks for the older token interface, which a v2 token does not report, so once installed it would reject every mint. `data.typeIds` lists the v1 module in the request.",
92162
+ fix: "Install the `-v2` module instead, for example `collateral-v2` instead of `collateral`. A module without a v2 version cannot be installed on a DALP asset yet."
92163
+ },
92164
+ observability: {
92165
+ severity: "info",
92166
+ otelEventName: "dapi.error",
92167
+ metricAttributeKey: "dapi.error.id",
92168
+ dimensions: [
92169
+ "error.id",
92170
+ "error.category",
92171
+ "surface",
92172
+ "route",
92173
+ "status_class",
92174
+ "retryable"
92175
+ ]
92176
+ },
92177
+ owner: "dapi",
92178
+ orpcCode: "TOKEN_COMPLIANCE_MODULE_GENERATION_INCOMPATIBLE"
92179
+ },
92152
92180
  "DALP-CHAIN-EMPTY-REVERT": {
92153
92181
  id: "DALP-CHAIN-EMPTY-REVERT",
92154
92182
  kind: "contract",
@@ -102497,6 +102525,9 @@ var DALP_ERROR_TYPED_FIELD_NAMES = {
102497
102525
  "DALP-9563": [
102498
102526
  "typeIds"
102499
102527
  ],
102528
+ "DALP-9564": [
102529
+ "typeIds"
102530
+ ],
102500
102531
  "DALP-CHAIN-EMPTY-REVERT": [
102501
102532
  "args",
102502
102533
  "correlationId",
@@ -112541,6 +112572,9 @@ var DALP_ERROR_DATA_SCHEMA_BY_ID = {
112541
112572
  "DALP-9563": DALP_ORPC_ERROR_DATA_BASE_SCHEMA.extend({
112542
112573
  typeIds: exports_external.array(exports_external.string())
112543
112574
  }).catchall(DALP_ORPC_JSON_VALUE_SCHEMA),
112575
+ "DALP-9564": DALP_ORPC_ERROR_DATA_BASE_SCHEMA.extend({
112576
+ typeIds: exports_external.array(exports_external.string())
112577
+ }).catchall(DALP_ORPC_JSON_VALUE_SCHEMA),
112544
112578
  "DALP-CHAIN-EMPTY-REVERT": DALP_ORPC_ERROR_DATA_BASE_SCHEMA.extend({
112545
112579
  args: exports_external.record(exports_external.string(), exports_external.string()),
112546
112580
  correlationId: exports_external.string(),
@@ -113266,6 +113300,9 @@ var CUSTOM_ERROR_DATA_SCHEMAS = {
113266
113300
  TOKEN_CLAIM_DOES_NOT_ASSOCIATED_IDENTITY_CONTRACT: dapiErrorContextDataSchema,
113267
113301
  TOKEN_CLAIM_TOPIC_NOT_REGISTERED_SCHEME_REGISTRY: dapiErrorContextDataSchema,
113268
113302
  TOKEN_CREATE_DATABASE_CONTEXT_REQUIRED_DALP_ASSET_CREATION: dapiErrorContextDataSchema,
113303
+ TOKEN_COMPLIANCE_MODULE_GENERATION_INCOMPATIBLE: dapiPublicErrorDataSchema({
113304
+ typeIds: exports_external.array(exports_external.string())
113305
+ }),
113269
113306
  TOKEN_CREATE_COMPLIANCE_MODULE_INCOMPATIBLE: dapiPublicErrorDataSchema({
113270
113307
  typeIds: exports_external.array(exports_external.string())
113271
113308
  }),
@@ -116875,6 +116912,11 @@ var CUSTOM_ERRORS = {
116875
116912
  status: 409,
116876
116913
  message: "Capital raise limit compliance module configuration is immutable"
116877
116914
  },
116915
+ TOKEN_COMPLIANCE_MODULE_GENERATION_INCOMPATIBLE: {
116916
+ status: 400,
116917
+ message: "Compliance modules {typeIds} are v1 modules and cannot be installed on a v2 asset.",
116918
+ data: CUSTOM_ERROR_DATA_SCHEMAS.TOKEN_COMPLIANCE_MODULE_GENERATION_INCOMPATIBLE
116919
+ },
116878
116920
  TOKEN_COMPLIANCE_NO_BINDING_FOUND_MODULE_TYPE_CONTRACT: {
116879
116921
  status: 404,
116880
116922
  message: "No binding found for module type {moduleAddress} on compliance contract {moduleAddress}"
@@ -142089,7 +142131,7 @@ function normalizeDalpBaseUrl(url2) {
142089
142131
  }
142090
142132
  return `${parsed.origin}${parsed.pathname.replace(/\/+$/, "")}`;
142091
142133
  }
142092
- var SDK_PACKAGE_VERSION = "3.1.26-release.37857913939";
142134
+ var SDK_PACKAGE_VERSION = "3.1.26-release.37857982115";
142093
142135
  var SDK_VERSION = SDK_PACKAGE_VERSION;
142094
142136
  var SDK_USER_AGENT = `DALP SDK v${SDK_VERSION}`;
142095
142137
  var DEFAULT_MUTATION_PREFER = "wait=99";
@@ -143217,7 +143259,8 @@ var DAPI_ROUTE_ERROR_IDS = {
143217
143259
  "DALP-9102": "DALP-9102",
143218
143260
  "DALP-9103": "DALP-9103",
143219
143261
  "DALP-9104": "DALP-9104",
143220
- "DALP-9563": "DALP-9563"
143262
+ "DALP-9563": "DALP-9563",
143263
+ "DALP-9564": "DALP-9564"
143221
143264
  };
143222
143265
  var DAPI_ERROR_IDS = {
143223
143266
  ...DAPI_ROUTE_ERROR_IDS,
@@ -143240,7 +143283,7 @@ var failedStateSet = new Set(FAILED_TRANSACTION_STATES);
143240
143283
  // package.json
143241
143284
  var package_default = {
143242
143285
  name: "@settlemint/dalp-cli",
143243
- version: "3.1.26-release.37857913939",
143286
+ version: "3.1.26-release.37857982115",
143244
143287
  private: false,
143245
143288
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
143246
143289
  homepage: "https://settlemint.com",
@@ -185331,6 +185374,34 @@ var ENTRIES_INDEX2 = {
185331
185374
  owner: "dapi",
185332
185375
  orpcCode: "TOKEN_CREATE_COMPLIANCE_MODULE_INCOMPATIBLE"
185333
185376
  },
185377
+ "DALP-9564": {
185378
+ id: "DALP-9564",
185379
+ kind: "route",
185380
+ category: "client",
185381
+ status: 400,
185382
+ retryable: false,
185383
+ expectedClientError: true,
185384
+ public: {
185385
+ message: "Compliance modules {typeIds} are v1 modules and cannot be installed on a v2 asset.",
185386
+ why: "A DALP asset is a v2 token. A v1 compliance module looks for the older token interface, which a v2 token does not report, so once installed it would reject every mint. `data.typeIds` lists the v1 module in the request.",
185387
+ fix: "Install the `-v2` module instead, for example `collateral-v2` instead of `collateral`. A module without a v2 version cannot be installed on a DALP asset yet."
185388
+ },
185389
+ observability: {
185390
+ severity: "info",
185391
+ otelEventName: "dapi.error",
185392
+ metricAttributeKey: "dapi.error.id",
185393
+ dimensions: [
185394
+ "error.id",
185395
+ "error.category",
185396
+ "surface",
185397
+ "route",
185398
+ "status_class",
185399
+ "retryable"
185400
+ ]
185401
+ },
185402
+ owner: "dapi",
185403
+ orpcCode: "TOKEN_COMPLIANCE_MODULE_GENERATION_INCOMPATIBLE"
185404
+ },
185334
185405
  "DALP-CHAIN-EMPTY-REVERT": {
185335
185406
  id: "DALP-CHAIN-EMPTY-REVERT",
185336
185407
  kind: "contract",
@@ -195696,6 +195767,9 @@ var DALP_ERROR_TYPED_FIELD_NAMES2 = {
195696
195767
  "DALP-9563": [
195697
195768
  "typeIds"
195698
195769
  ],
195770
+ "DALP-9564": [
195771
+ "typeIds"
195772
+ ],
195699
195773
  "DALP-CHAIN-EMPTY-REVERT": [
195700
195774
  "args",
195701
195775
  "correlationId",
@@ -205742,6 +205816,9 @@ var DALP_ERROR_DATA_SCHEMA_BY_ID2 = {
205742
205816
  "DALP-9563": DALP_ORPC_ERROR_DATA_BASE_SCHEMA2.extend({
205743
205817
  typeIds: exports_external.array(exports_external.string())
205744
205818
  }).catchall(DALP_ORPC_JSON_VALUE_SCHEMA2),
205819
+ "DALP-9564": DALP_ORPC_ERROR_DATA_BASE_SCHEMA2.extend({
205820
+ typeIds: exports_external.array(exports_external.string())
205821
+ }).catchall(DALP_ORPC_JSON_VALUE_SCHEMA2),
205745
205822
  "DALP-CHAIN-EMPTY-REVERT": DALP_ORPC_ERROR_DATA_BASE_SCHEMA2.extend({
205746
205823
  args: exports_external.record(exports_external.string(), exports_external.string()),
205747
205824
  correlationId: exports_external.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "3.1.26-release.37857913939",
3
+ "version": "3.1.26-release.37857982115",
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",