@settlemint/dalp-cli 2.1.7-main.23540374646 → 2.1.7-main.23546720118
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 +131 -47
- package/package.json +1 -1
package/dist/dalp.js
CHANGED
|
@@ -65762,8 +65762,7 @@ var statsCountryAssetCount = v1Contract.route({
|
|
|
65762
65762
|
successDescription: "Country asset count statistics retrieved successfully",
|
|
65763
65763
|
tags: ["system-stats"]
|
|
65764
65764
|
}).output(StatsCountryAssetCountOutputSchema);
|
|
65765
|
-
var
|
|
65766
|
-
type: assetType().meta({ description: "The type of asset token", examples: ["bond", "equity", "fund"] }),
|
|
65765
|
+
var PredictAccessManagerAddressBaseSchema = exports_external.object({
|
|
65767
65766
|
name: exports_external.string().max(50).meta({ description: "The name of the token", examples: ["Acme Bond 2025", "Tech Company Shares"] }),
|
|
65768
65767
|
symbol: assetSymbol().meta({ description: "The symbol of the token", examples: ["ACME25", "TECH"] }),
|
|
65769
65768
|
decimals: decimals().meta({ description: "The number of decimals for the token", examples: [18, 6, 8] }),
|
|
@@ -65772,7 +65771,24 @@ var PredictAddressInputSchema = exports_external.object({
|
|
|
65772
65771
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
65773
65772
|
})
|
|
65774
65773
|
});
|
|
65775
|
-
var
|
|
65774
|
+
var PredictAccessManagerAddressStandardInputSchema = PredictAccessManagerAddressBaseSchema.extend({
|
|
65775
|
+
type: assetType().meta({ description: "The type of asset token", examples: ["bond", "equity", "fund"] })
|
|
65776
|
+
});
|
|
65777
|
+
var PredictAccessManagerAddressDalpAssetInputSchema = PredictAccessManagerAddressBaseSchema.extend({
|
|
65778
|
+
type: exports_external.literal(AssetFactoryTypeIdEnum.dalpAsset).meta({
|
|
65779
|
+
description: "The DALP asset factory type identifier",
|
|
65780
|
+
examples: ["dalp-asset"]
|
|
65781
|
+
}),
|
|
65782
|
+
assetTypeName: exports_external.string().min(1).max(255).meta({
|
|
65783
|
+
description: "The concrete DALP asset type name used in the factory salt",
|
|
65784
|
+
examples: ["bond", "equity", "kbc-deposit"]
|
|
65785
|
+
})
|
|
65786
|
+
});
|
|
65787
|
+
var PredictAccessManagerAddressInputSchema = exports_external.discriminatedUnion("type", [
|
|
65788
|
+
PredictAccessManagerAddressStandardInputSchema,
|
|
65789
|
+
PredictAccessManagerAddressDalpAssetInputSchema
|
|
65790
|
+
]);
|
|
65791
|
+
var PredictAccessManagerAddressOutputSchema = exports_external.object({
|
|
65776
65792
|
predictedAddress: ethereumAddress.meta({
|
|
65777
65793
|
description: "The predicted address of the access manager",
|
|
65778
65794
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -65780,7 +65796,7 @@ var PredictAddressOutputSchema = exports_external.object({
|
|
|
65780
65796
|
});
|
|
65781
65797
|
var AvailableInputSchema = exports_external.union([
|
|
65782
65798
|
exports_external.object({
|
|
65783
|
-
parameters:
|
|
65799
|
+
parameters: PredictAccessManagerAddressInputSchema
|
|
65784
65800
|
}),
|
|
65785
65801
|
exports_external.object({
|
|
65786
65802
|
accessControl: ethereumAddress.meta({
|
|
@@ -65869,13 +65885,13 @@ var factoryListContract = v1Contract.route({
|
|
|
65869
65885
|
successDescription: "List of token factories",
|
|
65870
65886
|
tags: ["token-factory"]
|
|
65871
65887
|
}).input(TokenFactoryListSchema).output(FactoryListSchema);
|
|
65872
|
-
var
|
|
65888
|
+
var factoryPredictAccessManagerAddressContract = v1Contract.route({
|
|
65873
65889
|
method: "POST",
|
|
65874
65890
|
path: "/system/token-factory/predict-address",
|
|
65875
|
-
description: "Predict the address
|
|
65876
|
-
successDescription: "Predicted
|
|
65891
|
+
description: "Predict the access-manager address for a token factory deployment",
|
|
65892
|
+
successDescription: "Predicted access-manager address",
|
|
65877
65893
|
tags: ["token-factory"]
|
|
65878
|
-
}).input(
|
|
65894
|
+
}).input(PredictAccessManagerAddressInputSchema).output(PredictAccessManagerAddressOutputSchema);
|
|
65879
65895
|
var FactoryReadSchema = exports_external.object({
|
|
65880
65896
|
factoryAddress: ethereumAddress.meta({
|
|
65881
65897
|
description: "The factory contract address",
|
|
@@ -70788,7 +70804,7 @@ var FeatureConfigPropertySchema = exports_external.object({
|
|
|
70788
70804
|
value: exports_external.union([exports_external.string(), exports_external.number()]).optional(),
|
|
70789
70805
|
upperBound: exports_external.number().optional()
|
|
70790
70806
|
});
|
|
70791
|
-
var FeatureConfigEntryValueSchema = exports_external.union([exports_external.boolean(), FeatureConfigPropertySchema]);
|
|
70807
|
+
var FeatureConfigEntryValueSchema = exports_external.union([exports_external.boolean(), FeatureConfigPropertySchema, exports_external.null()]);
|
|
70792
70808
|
var FeatureConfigEntrySchema = exports_external.record(exports_external.string(), FeatureConfigEntryValueSchema);
|
|
70793
70809
|
var FeatureConfigSchema = exports_external.record(exports_external.string().min(1), FeatureConfigEntrySchema);
|
|
70794
70810
|
var AssetClassFilterSchema = assetClassSlug().meta({
|
|
@@ -72087,23 +72103,23 @@ var read24 = v2Contract.route({
|
|
|
72087
72103
|
var available = v2Contract.route({
|
|
72088
72104
|
method: "GET",
|
|
72089
72105
|
path: "/system/factory-address-availability-checks",
|
|
72090
|
-
description: "Check if a predicted
|
|
72091
|
-
successDescription: "Predicted address and availability status",
|
|
72106
|
+
description: "Check if a predicted access-manager address is available before deployment",
|
|
72107
|
+
successDescription: "Predicted access-manager address and availability status",
|
|
72092
72108
|
tags: [...TAGS29]
|
|
72093
72109
|
}).input(v2Input.query(AvailableInputSchema)).output(createSingleResponse(AvailableOutputSchema));
|
|
72094
|
-
var
|
|
72110
|
+
var predictAccessManagerAddress = v2Contract.route({
|
|
72095
72111
|
method: "POST",
|
|
72096
72112
|
path: "/system/factory-address-predictions",
|
|
72097
|
-
description: "Predict the address
|
|
72098
|
-
successDescription: "Predicted
|
|
72113
|
+
description: "Predict the access-manager address for a token factory deployment",
|
|
72114
|
+
successDescription: "Predicted access-manager address",
|
|
72099
72115
|
tags: [...TAGS29]
|
|
72100
|
-
}).meta({ contractErrors: [...FACTORY_ERRORS2] }).input(v2Input.body(
|
|
72116
|
+
}).meta({ contractErrors: [...FACTORY_ERRORS2] }).input(v2Input.body(PredictAccessManagerAddressInputSchema)).output(createSingleResponse(PredictAccessManagerAddressOutputSchema));
|
|
72101
72117
|
var tokenFactoryV2Contract = {
|
|
72102
72118
|
list: list31,
|
|
72103
72119
|
create: create18,
|
|
72104
72120
|
read: read24,
|
|
72105
72121
|
available,
|
|
72106
|
-
|
|
72122
|
+
predictAccessManagerAddress
|
|
72107
72123
|
};
|
|
72108
72124
|
var PaymasterSchema = exports_external.object({
|
|
72109
72125
|
address: ethereumAddress,
|
|
@@ -72555,7 +72571,7 @@ var TokenRevokeTransferApprovalInputValidatedSchema = TokenRevokeTransferApprova
|
|
|
72555
72571
|
var TokenRevokeTransferApprovalBodySchema = TokenRevokeTransferApprovalInputSchema.omit({
|
|
72556
72572
|
tokenAddress: true
|
|
72557
72573
|
}).superRefine(identityAddressPairRefinement);
|
|
72558
|
-
var TokenPriceBodySchema =
|
|
72574
|
+
var TokenPriceBodySchema = MutationInputSchema.extend({
|
|
72559
72575
|
price: exports_external.string().regex(/^(?!0+(\.0+)?$)\d+(\.\d+)?$/, "Price must be a positive decimal string greater than zero").meta({
|
|
72560
72576
|
description: "Token price in the specified currency (decimal string for arbitrary precision)",
|
|
72561
72577
|
examples: ["100.50", "1.00", "0.01"]
|
|
@@ -75343,6 +75359,14 @@ var contractErrorCatalog = defineContractErrors({
|
|
|
75343
75359
|
severity: "error",
|
|
75344
75360
|
argNames: ["subject", "topicId", "updatedAt", "maxAge"]
|
|
75345
75361
|
},
|
|
75362
|
+
"TokenComplianceCreationFailed()": {
|
|
75363
|
+
dalpCode: "DALP-1112",
|
|
75364
|
+
audience: "user",
|
|
75365
|
+
qualityTier: "scaffolded",
|
|
75366
|
+
message: "Token compliance creation failed",
|
|
75367
|
+
retryable: false,
|
|
75368
|
+
severity: "error"
|
|
75369
|
+
},
|
|
75346
75370
|
"SenderNotApprovedSettlement()": {
|
|
75347
75371
|
dalpCode: "DALP-2001",
|
|
75348
75372
|
audience: "user",
|
|
@@ -78863,6 +78887,14 @@ var contractErrorCatalog = defineContractErrors({
|
|
|
78863
78887
|
severity: "error",
|
|
78864
78888
|
argNames: ["account"]
|
|
78865
78889
|
},
|
|
78890
|
+
"AssetTypeNameRequired()": {
|
|
78891
|
+
dalpCode: "DALP-4378",
|
|
78892
|
+
audience: "user",
|
|
78893
|
+
qualityTier: "scaffolded",
|
|
78894
|
+
message: "Asset type name required",
|
|
78895
|
+
retryable: false,
|
|
78896
|
+
severity: "error"
|
|
78897
|
+
},
|
|
78866
78898
|
"AccessControlUnauthorizedAccount(address,bytes32)": {
|
|
78867
78899
|
dalpCode: "DALP-4400",
|
|
78868
78900
|
audience: "user",
|
|
@@ -79557,7 +79589,7 @@ var timestampSerializer = {
|
|
|
79557
79589
|
};
|
|
79558
79590
|
var package_default = {
|
|
79559
79591
|
name: "@settlemint/dalp-sdk",
|
|
79560
|
-
version: "2.1.7-main.
|
|
79592
|
+
version: "2.1.7-main.23546720118",
|
|
79561
79593
|
private: false,
|
|
79562
79594
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
79563
79595
|
homepage: "https://settlemint.com",
|
|
@@ -79700,7 +79732,7 @@ function createDalpClient(config3) {
|
|
|
79700
79732
|
// package.json
|
|
79701
79733
|
var package_default2 = {
|
|
79702
79734
|
name: "@settlemint/dalp-cli",
|
|
79703
|
-
version: "2.1.7-main.
|
|
79735
|
+
version: "2.1.7-main.23546720118",
|
|
79704
79736
|
private: false,
|
|
79705
79737
|
description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
|
|
79706
79738
|
homepage: "https://settlemint.com",
|
|
@@ -79956,6 +79988,16 @@ var assetFactoryTypeIds2 = [
|
|
|
79956
79988
|
"precious-metal",
|
|
79957
79989
|
"dalp-asset"
|
|
79958
79990
|
];
|
|
79991
|
+
var AssetFactoryTypeIdEnum2 = {
|
|
79992
|
+
bond: "bond",
|
|
79993
|
+
equity: "equity",
|
|
79994
|
+
fund: "fund",
|
|
79995
|
+
stablecoin: "stablecoin",
|
|
79996
|
+
deposit: "deposit",
|
|
79997
|
+
realEstate: "real-estate",
|
|
79998
|
+
preciousMetal: "precious-metal",
|
|
79999
|
+
dalpAsset: "dalp-asset"
|
|
80000
|
+
};
|
|
79959
80001
|
var AssetTypeSchema2 = exports_external.enum(assetTypes2).meta({
|
|
79960
80002
|
description: "Type of financial asset",
|
|
79961
80003
|
examples: ["bond", "equity", "fund"]
|
|
@@ -79969,6 +80011,7 @@ var AssetFactoryTypeIdSchema2 = exports_external.enum(assetFactoryTypeIds2).meta
|
|
|
79969
80011
|
description: "Asset factory typeId identifier",
|
|
79970
80012
|
examples: ["bond", "equity", "stablecoin"]
|
|
79971
80013
|
});
|
|
80014
|
+
var assetFactoryTypeId2 = () => AssetFactoryTypeIdSchema2;
|
|
79972
80015
|
var AssetTypeArraySchema2 = exports_external.array(AssetTypeSchema2).min(1, "At least one asset type must be selected").meta({
|
|
79973
80016
|
description: "List of asset types",
|
|
79974
80017
|
examples: [
|
|
@@ -81329,6 +81372,23 @@ settingsCommand.command("theme-proxy-upload-logo", {
|
|
|
81329
81372
|
}
|
|
81330
81373
|
});
|
|
81331
81374
|
|
|
81375
|
+
// ../../packages/core/validation/src/ethereum-address.ts
|
|
81376
|
+
init_zod();
|
|
81377
|
+
var ethereumAddress2 = exports_external.string().meta({
|
|
81378
|
+
description: "A valid Ethereum address (42 characters, starting with 0x)",
|
|
81379
|
+
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
81380
|
+
}).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((value3, ctx) => {
|
|
81381
|
+
if (!isAddress(value3)) {
|
|
81382
|
+
ctx.addIssue({
|
|
81383
|
+
code: exports_external.ZodIssueCode.custom,
|
|
81384
|
+
message: "Invalid Ethereum address format or checksum"
|
|
81385
|
+
});
|
|
81386
|
+
return exports_external.NEVER;
|
|
81387
|
+
}
|
|
81388
|
+
return getAddress(value3);
|
|
81389
|
+
});
|
|
81390
|
+
var lowercaseEthereumAddress2 = ethereumAddress2.transform((value3) => value3.toLowerCase());
|
|
81391
|
+
|
|
81332
81392
|
// src/commands/system.ts
|
|
81333
81393
|
var FEED_KIND = "SCALAR";
|
|
81334
81394
|
var roleSchema = exports_external.enum([
|
|
@@ -81343,6 +81403,30 @@ var roleSchema = exports_external.enum([
|
|
|
81343
81403
|
]).describe("Role name");
|
|
81344
81404
|
var intervalSchema = exports_external.enum(["day", "hour"]).describe("Interval granularity");
|
|
81345
81405
|
var presetSchema = exports_external.enum(["trailing24Hours", "trailing7Days"]).describe("Preset period");
|
|
81406
|
+
var predictAccessManagerAddressOptionsSchema = exports_external.object({
|
|
81407
|
+
type: assetFactoryTypeId2().describe("Factory type identifier"),
|
|
81408
|
+
name: exports_external.string().describe("Token name"),
|
|
81409
|
+
symbol: exports_external.string().describe("Token symbol"),
|
|
81410
|
+
decimals: exports_external.coerce.number().describe("Token decimals"),
|
|
81411
|
+
assetTypeName: exports_external.string().optional().describe("Concrete DALP asset type name. Required when type=dalp-asset."),
|
|
81412
|
+
factoryAddress: ethereumAddress2.optional().describe("Optional factory address override")
|
|
81413
|
+
}).superRefine((value3, ctx) => {
|
|
81414
|
+
const isDalpAsset = value3.type === AssetFactoryTypeIdEnum2.dalpAsset;
|
|
81415
|
+
if (isDalpAsset && !value3.assetTypeName) {
|
|
81416
|
+
ctx.addIssue({
|
|
81417
|
+
code: exports_external.ZodIssueCode.custom,
|
|
81418
|
+
path: ["assetTypeName"],
|
|
81419
|
+
message: "assetTypeName is required when type is dalp-asset"
|
|
81420
|
+
});
|
|
81421
|
+
}
|
|
81422
|
+
if (!isDalpAsset && value3.assetTypeName) {
|
|
81423
|
+
ctx.addIssue({
|
|
81424
|
+
code: exports_external.ZodIssueCode.custom,
|
|
81425
|
+
path: ["assetTypeName"],
|
|
81426
|
+
message: "assetTypeName is only supported when type is dalp-asset"
|
|
81427
|
+
});
|
|
81428
|
+
}
|
|
81429
|
+
});
|
|
81346
81430
|
var systemCommand = exports_Cli.create("system", {
|
|
81347
81431
|
description: "System administration and management",
|
|
81348
81432
|
vars: cliVars
|
|
@@ -81632,16 +81716,35 @@ factory.command("available", {
|
|
|
81632
81716
|
});
|
|
81633
81717
|
}
|
|
81634
81718
|
});
|
|
81635
|
-
factory.command("predict-address", {
|
|
81636
|
-
description: "Predict
|
|
81637
|
-
options:
|
|
81638
|
-
type: assetType2(),
|
|
81639
|
-
name: exports_external.string().describe("Token name"),
|
|
81640
|
-
symbol: exports_external.string().describe("Token symbol"),
|
|
81641
|
-
decimals: exports_external.coerce.number().describe("Token decimals")
|
|
81642
|
-
}),
|
|
81719
|
+
factory.command("predict-access-manager-address", {
|
|
81720
|
+
description: "Predict the access-manager address for a factory deployment",
|
|
81721
|
+
options: predictAccessManagerAddressOptionsSchema,
|
|
81643
81722
|
run(c) {
|
|
81644
|
-
|
|
81723
|
+
if (c.options.type === AssetFactoryTypeIdEnum2.dalpAsset) {
|
|
81724
|
+
const { assetTypeName } = c.options;
|
|
81725
|
+
if (!assetTypeName) {
|
|
81726
|
+
throw new Error("assetTypeName is required when type is dalp-asset");
|
|
81727
|
+
}
|
|
81728
|
+
return c.var.orpc.system.factory.predictAccessManagerAddress({
|
|
81729
|
+
body: {
|
|
81730
|
+
type: c.options.type,
|
|
81731
|
+
name: c.options.name,
|
|
81732
|
+
symbol: c.options.symbol,
|
|
81733
|
+
decimals: c.options.decimals,
|
|
81734
|
+
assetTypeName,
|
|
81735
|
+
factoryAddress: c.options.factoryAddress
|
|
81736
|
+
}
|
|
81737
|
+
});
|
|
81738
|
+
}
|
|
81739
|
+
return c.var.orpc.system.factory.predictAccessManagerAddress({
|
|
81740
|
+
body: {
|
|
81741
|
+
type: c.options.type,
|
|
81742
|
+
name: c.options.name,
|
|
81743
|
+
symbol: c.options.symbol,
|
|
81744
|
+
decimals: c.options.decimals,
|
|
81745
|
+
factoryAddress: c.options.factoryAddress
|
|
81746
|
+
}
|
|
81747
|
+
});
|
|
81645
81748
|
}
|
|
81646
81749
|
});
|
|
81647
81750
|
systemCommand.command(factory);
|
|
@@ -82111,25 +82214,6 @@ init_zod();
|
|
|
82111
82214
|
|
|
82112
82215
|
// ../../packages/core/validation/src/account.ts
|
|
82113
82216
|
init_zod();
|
|
82114
|
-
|
|
82115
|
-
// ../../packages/core/validation/src/ethereum-address.ts
|
|
82116
|
-
init_zod();
|
|
82117
|
-
var ethereumAddress2 = exports_external.string().meta({
|
|
82118
|
-
description: "A valid Ethereum address (42 characters, starting with 0x)",
|
|
82119
|
-
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
82120
|
-
}).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((value3, ctx) => {
|
|
82121
|
-
if (!isAddress(value3)) {
|
|
82122
|
-
ctx.addIssue({
|
|
82123
|
-
code: exports_external.ZodIssueCode.custom,
|
|
82124
|
-
message: "Invalid Ethereum address format or checksum"
|
|
82125
|
-
});
|
|
82126
|
-
return exports_external.NEVER;
|
|
82127
|
-
}
|
|
82128
|
-
return getAddress(value3);
|
|
82129
|
-
});
|
|
82130
|
-
var lowercaseEthereumAddress2 = ethereumAddress2.transform((value3) => value3.toLowerCase());
|
|
82131
|
-
|
|
82132
|
-
// ../../packages/core/validation/src/account.ts
|
|
82133
82217
|
var AccountSchema2 = exports_external.object({
|
|
82134
82218
|
id: ethereumAddress2,
|
|
82135
82219
|
isContract: exports_external.boolean().meta({ description: "Whether this address is a smart contract (true) or EOA (false)", examples: [true, false] })
|
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.23546720118",
|
|
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",
|