@settlemint/dalp-cli 2.1.7-main.23425027322 → 2.1.7-main.23431823835
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 +146 -3
- package/package.json +1 -1
package/dist/dalp.js
CHANGED
|
@@ -57542,6 +57542,7 @@ init_zod();
|
|
|
57542
57542
|
init_zod();
|
|
57543
57543
|
init_zod();
|
|
57544
57544
|
init_zod();
|
|
57545
|
+
init_zod();
|
|
57545
57546
|
function resolveMaybeOptionalOptions2(rest) {
|
|
57546
57547
|
return rest[0] ?? {};
|
|
57547
57548
|
}
|
|
@@ -73306,6 +73307,98 @@ var TransferApprovalsInputSchema = exports_external.object({
|
|
|
73306
73307
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
73307
73308
|
})
|
|
73308
73309
|
});
|
|
73310
|
+
var TokenPriceInputParamsSchema = exports_external.object({
|
|
73311
|
+
tokenAddress: ethereumAddress.meta({
|
|
73312
|
+
description: "The token contract address",
|
|
73313
|
+
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
73314
|
+
})
|
|
73315
|
+
});
|
|
73316
|
+
var TokenPriceInputQuerySchema = exports_external.object({
|
|
73317
|
+
currency: fiatCurrency().default("USD").meta({
|
|
73318
|
+
description: "Target ISO 4217 currency code for price conversion",
|
|
73319
|
+
examples: ["USD", "EUR", "GBP", "AED"]
|
|
73320
|
+
})
|
|
73321
|
+
});
|
|
73322
|
+
var ConversionHopSchema = exports_external.object({
|
|
73323
|
+
from: fiatCurrency().meta({
|
|
73324
|
+
description: "Source currency of this hop",
|
|
73325
|
+
examples: ["AED"]
|
|
73326
|
+
}),
|
|
73327
|
+
to: fiatCurrency().meta({
|
|
73328
|
+
description: "Target currency of this hop",
|
|
73329
|
+
examples: ["USD"]
|
|
73330
|
+
}),
|
|
73331
|
+
rate: exports_external.string().meta({
|
|
73332
|
+
description: "Exchange rate (18-decimal string)",
|
|
73333
|
+
examples: ["272300000000000000"]
|
|
73334
|
+
}),
|
|
73335
|
+
feedAddress: ethereumAddress.meta({
|
|
73336
|
+
description: "Feed contract that provided this rate",
|
|
73337
|
+
examples: ["0xabcdef1234567890abcdef1234567890abcdef12"]
|
|
73338
|
+
}),
|
|
73339
|
+
updatedAt: exports_external.string().meta({
|
|
73340
|
+
description: "When the feed was last updated (unix timestamp)",
|
|
73341
|
+
examples: ["1711100000"]
|
|
73342
|
+
}),
|
|
73343
|
+
inverse: exports_external.boolean().meta({
|
|
73344
|
+
description: "Whether this hop uses an inverse rate (1/rate of the registered feed)",
|
|
73345
|
+
examples: [false]
|
|
73346
|
+
})
|
|
73347
|
+
});
|
|
73348
|
+
var TokenPriceResponseSchema = exports_external.object({
|
|
73349
|
+
tokenAddress: ethereumAddress.meta({
|
|
73350
|
+
description: "The token contract address",
|
|
73351
|
+
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
73352
|
+
}),
|
|
73353
|
+
price: exports_external.string().meta({
|
|
73354
|
+
description: "The resolved price as a decimal string (18-decimal normalized)",
|
|
73355
|
+
examples: ["27230000000000000000"]
|
|
73356
|
+
}),
|
|
73357
|
+
currency: fiatCurrency().meta({
|
|
73358
|
+
description: "The currency of the returned price",
|
|
73359
|
+
examples: ["USD"]
|
|
73360
|
+
}),
|
|
73361
|
+
decimals: exports_external.number().meta({
|
|
73362
|
+
description: "Decimal precision of the price (always 18)",
|
|
73363
|
+
examples: [18]
|
|
73364
|
+
}),
|
|
73365
|
+
source: exports_external.enum(["feed", "claim"]).meta({
|
|
73366
|
+
description: "Whether the base price came from a feed or identity claim",
|
|
73367
|
+
examples: ["feed"]
|
|
73368
|
+
}),
|
|
73369
|
+
sourceCurrency: fiatCurrency().meta({
|
|
73370
|
+
description: "The native currency of the base price before conversion",
|
|
73371
|
+
examples: ["AED"]
|
|
73372
|
+
}),
|
|
73373
|
+
convertible: exports_external.boolean().meta({
|
|
73374
|
+
description: "Whether the price was successfully converted to the target currency",
|
|
73375
|
+
examples: [true]
|
|
73376
|
+
}),
|
|
73377
|
+
targetCurrency: fiatCurrency().optional().meta({
|
|
73378
|
+
description: "The requested target currency (only present when convertible is false)",
|
|
73379
|
+
examples: ["USD"]
|
|
73380
|
+
}),
|
|
73381
|
+
reason: exports_external.string().optional().meta({
|
|
73382
|
+
description: "Reason for conversion failure (only present when convertible is false)",
|
|
73383
|
+
examples: ["no_fx_path"]
|
|
73384
|
+
}),
|
|
73385
|
+
message: exports_external.string().optional().meta({
|
|
73386
|
+
description: "Human-readable explanation (only present when convertible is false)",
|
|
73387
|
+
examples: ["No conversion path from AED to USD. Register FX feeds for intermediate pairs."]
|
|
73388
|
+
}),
|
|
73389
|
+
availableCurrencies: exports_external.array(fiatCurrency()).optional().meta({
|
|
73390
|
+
description: "Currencies reachable from the source currency (only present when convertible is false)",
|
|
73391
|
+
examples: [["AED", "EUR"]]
|
|
73392
|
+
}),
|
|
73393
|
+
updatedAt: exports_external.iso.datetime().meta({
|
|
73394
|
+
description: "When the price data was last updated (ISO 8601)",
|
|
73395
|
+
examples: ["2026-03-22T10:30:00.000Z"]
|
|
73396
|
+
}),
|
|
73397
|
+
conversionPath: exports_external.array(ConversionHopSchema).meta({
|
|
73398
|
+
description: "The FX conversion hops applied (empty if no conversion needed)",
|
|
73399
|
+
examples: [[]]
|
|
73400
|
+
})
|
|
73401
|
+
});
|
|
73309
73402
|
var TokenActionsInputSchema2 = exports_external.object({
|
|
73310
73403
|
tokenAddress: ethereumAddress.meta({
|
|
73311
73404
|
description: "The token contract address to filter actions by",
|
|
@@ -73389,6 +73482,13 @@ var transferApprovals = v2Contract.route({
|
|
|
73389
73482
|
successDescription: "List of transfer approvals with their current status.",
|
|
73390
73483
|
tags: ["v2-compliance"]
|
|
73391
73484
|
}).input(v2Input.params(TransferApprovalsInputSchema)).output(createSingleResponse(TransferApprovalsResponseSchema));
|
|
73485
|
+
var price = v2Contract.route({
|
|
73486
|
+
method: "GET",
|
|
73487
|
+
path: "/tokens/{tokenAddress}/price",
|
|
73488
|
+
description: "Resolve the current price for a token in any target currency. Automatically routes through available FX feeds with multi-hop conversion. Returns the base price in its native currency if no conversion path exists.",
|
|
73489
|
+
successDescription: "Token price resolved successfully.",
|
|
73490
|
+
tags: ["v2-token"]
|
|
73491
|
+
}).input(v2Input.paramsQuery(TokenPriceInputParamsSchema, TokenPriceInputQuerySchema)).output(createSingleResponse(TokenPriceResponseSchema));
|
|
73392
73492
|
var tokenV2ReadsContract = {
|
|
73393
73493
|
read: read26,
|
|
73394
73494
|
allowance,
|
|
@@ -73400,7 +73500,8 @@ var tokenV2ReadsContract = {
|
|
|
73400
73500
|
compliance,
|
|
73401
73501
|
features,
|
|
73402
73502
|
metadata: tokenMetadata,
|
|
73403
|
-
transferApprovals
|
|
73503
|
+
transferApprovals,
|
|
73504
|
+
price
|
|
73404
73505
|
};
|
|
73405
73506
|
var statsBondStatus = v2Contract.route({
|
|
73406
73507
|
method: "GET",
|
|
@@ -74934,6 +75035,14 @@ var contractErrorCatalog = defineContractErrors({
|
|
|
74934
75035
|
retryable: false,
|
|
74935
75036
|
severity: "error"
|
|
74936
75037
|
},
|
|
75038
|
+
"InvalidFeedsDirectory()": {
|
|
75039
|
+
dalpCode: "DALP-1099",
|
|
75040
|
+
audience: "user",
|
|
75041
|
+
qualityTier: "templated",
|
|
75042
|
+
message: "The provided input is invalid",
|
|
75043
|
+
retryable: false,
|
|
75044
|
+
severity: "error"
|
|
75045
|
+
},
|
|
74937
75046
|
"WalletNotAssociatedWithIdentity(address,address)": {
|
|
74938
75047
|
dalpCode: "DALP-1100",
|
|
74939
75048
|
audience: "user",
|
|
@@ -75044,6 +75153,15 @@ var contractErrorCatalog = defineContractErrors({
|
|
|
75044
75153
|
retryable: false,
|
|
75045
75154
|
severity: "error"
|
|
75046
75155
|
},
|
|
75156
|
+
"StaleFeed(address,uint256,uint256,uint256)": {
|
|
75157
|
+
dalpCode: "DALP-1111",
|
|
75158
|
+
audience: "user",
|
|
75159
|
+
qualityTier: "scaffolded",
|
|
75160
|
+
message: "Stale feed",
|
|
75161
|
+
retryable: false,
|
|
75162
|
+
severity: "error",
|
|
75163
|
+
argNames: ["subject", "topicId", "updatedAt", "maxAge"]
|
|
75164
|
+
},
|
|
75047
75165
|
"SenderNotApprovedSettlement()": {
|
|
75048
75166
|
dalpCode: "DALP-2001",
|
|
75049
75167
|
audience: "user",
|
|
@@ -75358,6 +75476,23 @@ var contractErrorCatalog = defineContractErrors({
|
|
|
75358
75476
|
retryable: false,
|
|
75359
75477
|
severity: "error"
|
|
75360
75478
|
},
|
|
75479
|
+
"ClaimFallbackDisabled()": {
|
|
75480
|
+
dalpCode: "DALP-3026",
|
|
75481
|
+
audience: "user",
|
|
75482
|
+
qualityTier: "scaffolded",
|
|
75483
|
+
message: "Claim fallback disabled",
|
|
75484
|
+
retryable: false,
|
|
75485
|
+
severity: "error"
|
|
75486
|
+
},
|
|
75487
|
+
"NoClaimFallback(address)": {
|
|
75488
|
+
dalpCode: "DALP-3027",
|
|
75489
|
+
audience: "user",
|
|
75490
|
+
qualityTier: "scaffolded",
|
|
75491
|
+
message: "No claim fallback",
|
|
75492
|
+
retryable: false,
|
|
75493
|
+
severity: "error",
|
|
75494
|
+
argNames: ["token"]
|
|
75495
|
+
},
|
|
75361
75496
|
"ZeroClaimAmount()": {
|
|
75362
75497
|
dalpCode: "DALP-3029",
|
|
75363
75498
|
audience: "user",
|
|
@@ -78530,6 +78665,14 @@ var contractErrorCatalog = defineContractErrors({
|
|
|
78530
78665
|
severity: "error",
|
|
78531
78666
|
argNames: ["paymaster"]
|
|
78532
78667
|
},
|
|
78668
|
+
"InvalidMaxStaleness()": {
|
|
78669
|
+
dalpCode: "DALP-4376",
|
|
78670
|
+
audience: "user",
|
|
78671
|
+
qualityTier: "templated",
|
|
78672
|
+
message: "The provided input is invalid",
|
|
78673
|
+
retryable: false,
|
|
78674
|
+
severity: "error"
|
|
78675
|
+
},
|
|
78533
78676
|
"AccessControlUnauthorizedAccount(address,bytes32)": {
|
|
78534
78677
|
dalpCode: "DALP-4400",
|
|
78535
78678
|
audience: "user",
|
|
@@ -79224,7 +79367,7 @@ var timestampSerializer = {
|
|
|
79224
79367
|
};
|
|
79225
79368
|
var package_default = {
|
|
79226
79369
|
name: "@settlemint/dalp-sdk",
|
|
79227
|
-
version: "2.1.7-main.
|
|
79370
|
+
version: "2.1.7-main.23431823835",
|
|
79228
79371
|
private: false,
|
|
79229
79372
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
79230
79373
|
homepage: "https://settlemint.com",
|
|
@@ -79367,7 +79510,7 @@ function createDalpClient(config3) {
|
|
|
79367
79510
|
// package.json
|
|
79368
79511
|
var package_default2 = {
|
|
79369
79512
|
name: "@settlemint/dalp-cli",
|
|
79370
|
-
version: "2.1.7-main.
|
|
79513
|
+
version: "2.1.7-main.23431823835",
|
|
79371
79514
|
private: false,
|
|
79372
79515
|
description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
|
|
79373
79516
|
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.23431823835",
|
|
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",
|