@settlemint/dalp-cli 2.1.7-main.25716927178 → 2.1.7-main.25718719302
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/dalp.js +50 -20
- package/package.json +1 -1
package/dist/dalp.js
CHANGED
|
@@ -64300,6 +64300,21 @@ var CONFIGURABLE_FEATURES = new Set(addonRegistry.filter((a) => a.configurable &
|
|
|
64300
64300
|
var INCOMPATIBLE_FEATURE_PAIRS = Object.freeze([
|
|
64301
64301
|
["transaction-fee", "transaction-fee-accounting"]
|
|
64302
64302
|
]);
|
|
64303
|
+
var ethereumAddress = exports_external2.string().meta({
|
|
64304
|
+
description: "A valid Ethereum address (42 characters, starting with 0x)",
|
|
64305
|
+
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
64306
|
+
}).min(42, "Ethereum address must be at least 42 characters long").max(42, "Ethereum address must be at most 42 characters long").regex(/^0x[a-fA-F0-9]{40}$/, "Ethereum address must start with 0x followed by 40 hexadecimal characters").transform((value2, ctx) => {
|
|
64307
|
+
if (!isAddress(value2)) {
|
|
64308
|
+
ctx.addIssue({
|
|
64309
|
+
code: exports_external2.ZodIssueCode.custom,
|
|
64310
|
+
message: "Invalid Ethereum address format or checksum"
|
|
64311
|
+
});
|
|
64312
|
+
return exports_external2.NEVER;
|
|
64313
|
+
}
|
|
64314
|
+
return getAddress(value2);
|
|
64315
|
+
});
|
|
64316
|
+
var nonZeroEthereumAddress = ethereumAddress.refine((address) => address !== zeroAddress, "Fee recipient cannot be the zero address");
|
|
64317
|
+
var lowercaseEthereumAddress = ethereumAddress.transform((value2) => value2.toLowerCase());
|
|
64303
64318
|
function resolveMaybeOptionalOptions2(rest) {
|
|
64304
64319
|
return rest[0] ?? {};
|
|
64305
64320
|
}
|
|
@@ -66161,6 +66176,19 @@ var dapiErrorContextDataSchema = exports_external2.record(exports_external2.stri
|
|
|
66161
66176
|
var retryAfterDataSchema = exports_external2.object({
|
|
66162
66177
|
retryAfterSeconds: exports_external2.number().int().positive()
|
|
66163
66178
|
}).optional();
|
|
66179
|
+
var HIGHEST_SHARED_DAPI_ERROR_ID = 522;
|
|
66180
|
+
var assignedDapiErrorIds = new Set;
|
|
66181
|
+
function reserveDapiErrorId(id) {
|
|
66182
|
+
if (assignedDapiErrorIds.has(id)) {
|
|
66183
|
+
throw new Error(`Duplicate DAPI error registry id: ${id}`);
|
|
66184
|
+
}
|
|
66185
|
+
assignedDapiErrorIds.add(id);
|
|
66186
|
+
return id;
|
|
66187
|
+
}
|
|
66188
|
+
function allocateDapiErrorId() {
|
|
66189
|
+
const maxNumericId = Math.max(HIGHEST_SHARED_DAPI_ERROR_ID, ...[...assignedDapiErrorIds].map((id) => Number.parseInt(id.replace("DALP-", ""), 10)));
|
|
66190
|
+
return reserveDapiErrorId(`DALP-${String(maxNumericId + 1).padStart(4, "0")}`);
|
|
66191
|
+
}
|
|
66164
66192
|
function dapiOrpcError(definition) {
|
|
66165
66193
|
return definition;
|
|
66166
66194
|
}
|
|
@@ -66175,7 +66203,7 @@ function dapiObservability(args) {
|
|
|
66175
66203
|
function dapiError(args) {
|
|
66176
66204
|
const expectedClientError = args.expectedClientError ?? (args.status >= 400 && args.status < 500 && args.category !== "dependency");
|
|
66177
66205
|
return dapiOrpcError({
|
|
66178
|
-
id: args.id,
|
|
66206
|
+
id: args.id ? reserveDapiErrorId(args.id) : allocateDapiErrorId(),
|
|
66179
66207
|
category: args.category,
|
|
66180
66208
|
status: args.status,
|
|
66181
66209
|
message: args.message,
|
|
@@ -66784,6 +66812,23 @@ var DAPI_ROUTE_ERROR_ENTRIES = [
|
|
|
66784
66812
|
owner: "webhooks"
|
|
66785
66813
|
})
|
|
66786
66814
|
},
|
|
66815
|
+
{
|
|
66816
|
+
code: "TOKEN_FEE_RATES_FROZEN",
|
|
66817
|
+
definition: dapiError({
|
|
66818
|
+
id: "DALP-0523",
|
|
66819
|
+
category: "domain",
|
|
66820
|
+
status: 422,
|
|
66821
|
+
message: "Transaction fee rates are frozen and cannot be changed.",
|
|
66822
|
+
why: "The token's transaction-fee rates have been permanently frozen on-chain. The mutation was rejected before reaching the queue.",
|
|
66823
|
+
fix: "Frozen rates cannot be modified. Update the fee recipient instead, or deploy a new token if different rates are needed.",
|
|
66824
|
+
retryable: false,
|
|
66825
|
+
expectedClientError: true,
|
|
66826
|
+
data: exports_external2.object({
|
|
66827
|
+
tokenAddress: ethereumAddress,
|
|
66828
|
+
featureAddress: ethereumAddress
|
|
66829
|
+
})
|
|
66830
|
+
})
|
|
66831
|
+
},
|
|
66787
66832
|
{
|
|
66788
66833
|
code: "ACCOUNT_NATIVE_BALANCE_ACCOUNT_NOT_FOUND",
|
|
66789
66834
|
definition: dapiError({
|
|
@@ -72322,21 +72367,6 @@ var v2Contract = baseContract.$route({
|
|
|
72322
72367
|
deprecated: CURRENT_API_VERSION > 2,
|
|
72323
72368
|
inputStructure: "detailed"
|
|
72324
72369
|
});
|
|
72325
|
-
var ethereumAddress = exports_external2.string().meta({
|
|
72326
|
-
description: "A valid Ethereum address (42 characters, starting with 0x)",
|
|
72327
|
-
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
72328
|
-
}).min(42, "Ethereum address must be at least 42 characters long").max(42, "Ethereum address must be at most 42 characters long").regex(/^0x[a-fA-F0-9]{40}$/, "Ethereum address must start with 0x followed by 40 hexadecimal characters").transform((value22, ctx) => {
|
|
72329
|
-
if (!isAddress(value22)) {
|
|
72330
|
-
ctx.addIssue({
|
|
72331
|
-
code: exports_external2.ZodIssueCode.custom,
|
|
72332
|
-
message: "Invalid Ethereum address format or checksum"
|
|
72333
|
-
});
|
|
72334
|
-
return exports_external2.NEVER;
|
|
72335
|
-
}
|
|
72336
|
-
return getAddress(value22);
|
|
72337
|
-
});
|
|
72338
|
-
var nonZeroEthereumAddress = ethereumAddress.refine((address) => address !== zeroAddress, "Fee recipient cannot be the zero address");
|
|
72339
|
-
var lowercaseEthereumAddress = ethereumAddress.transform((value22) => value22.toLowerCase());
|
|
72340
72370
|
var AccountSearchGraphResponseSchema = exports_external2.object({
|
|
72341
72371
|
account: exports_external2.object({
|
|
72342
72372
|
id: ethereumAddress,
|
|
@@ -88952,7 +88982,7 @@ var setTransactionFeeRates = v2Contract.route({
|
|
|
88952
88982
|
description: "Update transaction fee rates (mint, burn, transfer) for a token.",
|
|
88953
88983
|
successDescription: "Transaction fee rates updated successfully.",
|
|
88954
88984
|
tags: [V2_TAG.token]
|
|
88955
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetTransactionFeeRatesInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
|
|
88985
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1020"] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetTransactionFeeRatesInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
|
|
88956
88986
|
var setTransactionFeeRecipient = v2Contract.route({
|
|
88957
88987
|
method: "PATCH",
|
|
88958
88988
|
path: "/tokens/{tokenAddress}/transaction-fee/recipient",
|
|
@@ -88966,7 +88996,7 @@ var freezeTransactionFeeRates = v2Contract.route({
|
|
|
88966
88996
|
description: "Permanently freeze transaction fee rates.",
|
|
88967
88997
|
successDescription: "Transaction fee rates frozen successfully.",
|
|
88968
88998
|
tags: [V2_TAG.token]
|
|
88969
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema, TokenFreezeTransactionFeeRatesInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
|
|
88999
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1020"] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFreezeTransactionFeeRatesInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
|
|
88970
89000
|
var setExternalTransactionFees = v2Contract.route({
|
|
88971
89001
|
method: "PATCH",
|
|
88972
89002
|
path: "/tokens/{tokenAddress}/external-transaction-fee/amounts",
|
|
@@ -91611,7 +91641,7 @@ function normalizeDalpBaseUrl(url3) {
|
|
|
91611
91641
|
}
|
|
91612
91642
|
var package_default = {
|
|
91613
91643
|
name: "@settlemint/dalp-sdk",
|
|
91614
|
-
version: "2.1.7-main.
|
|
91644
|
+
version: "2.1.7-main.25718719302",
|
|
91615
91645
|
private: false,
|
|
91616
91646
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
91617
91647
|
homepage: "https://settlemint.com",
|
|
@@ -92181,7 +92211,7 @@ function toStandardWebhookSecret(secret) {
|
|
|
92181
92211
|
// package.json
|
|
92182
92212
|
var package_default2 = {
|
|
92183
92213
|
name: "@settlemint/dalp-cli",
|
|
92184
|
-
version: "2.1.7-main.
|
|
92214
|
+
version: "2.1.7-main.25718719302",
|
|
92185
92215
|
private: false,
|
|
92186
92216
|
description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
|
|
92187
92217
|
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.
|
|
3
|
+
"version": "2.1.7-main.25718719302",
|
|
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",
|