@settlemint/dalp-cli 2.1.7-main.23578769431 → 2.1.7-main.23579600386
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 +90 -55
- package/package.json +1 -1
package/dist/dalp.js
CHANGED
|
@@ -57199,6 +57199,7 @@ init_zod();
|
|
|
57199
57199
|
init_zod();
|
|
57200
57200
|
init_zod();
|
|
57201
57201
|
init_zod();
|
|
57202
|
+
init_zod();
|
|
57202
57203
|
|
|
57203
57204
|
// ../../node_modules/.bun/currency-codes@2.2.0/node_modules/currency-codes/index.js
|
|
57204
57205
|
var first = require_first_match();
|
|
@@ -57542,7 +57543,6 @@ init_zod();
|
|
|
57542
57543
|
init_zod();
|
|
57543
57544
|
init_zod();
|
|
57544
57545
|
init_zod();
|
|
57545
|
-
init_zod();
|
|
57546
57546
|
function resolveMaybeOptionalOptions2(rest) {
|
|
57547
57547
|
return rest[0] ?? {};
|
|
57548
57548
|
}
|
|
@@ -60692,12 +60692,39 @@ var XvpSettlementListResponseSchema = exports_external.object({
|
|
|
60692
60692
|
});
|
|
60693
60693
|
var AssetSymbolSchema = exports_external.string().min(1, "Asset symbol is required").max(24, "Asset symbol must not exceed 24 characters").regex(/^[A-Z0-9]+$/, "Asset symbol must contain only uppercase letters (A-Z) and numbers (0-9)").meta({ description: "Trading symbol for the asset", examples: ["ETH", "BTC", "USDC", "AAPL"] });
|
|
60694
60694
|
var assetSymbol = () => AssetSymbolSchema;
|
|
60695
|
+
var apiBigInt = exports_external.preprocess((value22, ctx) => {
|
|
60696
|
+
if (typeof value22 === "bigint") {
|
|
60697
|
+
return value22;
|
|
60698
|
+
}
|
|
60699
|
+
if (typeof value22 === "string" && value22.includes(".") && value22.split(".").length > 2) {
|
|
60700
|
+
ctx.addIssue({
|
|
60701
|
+
code: "custom",
|
|
60702
|
+
message: "Invalid BigInt format: multiple decimal points"
|
|
60703
|
+
});
|
|
60704
|
+
return exports_external.NEVER;
|
|
60705
|
+
}
|
|
60706
|
+
const isDnumValue = isDnum(value22);
|
|
60707
|
+
if (Array.isArray(value22) && (value22.length !== 2 || !isDnumValue)) {
|
|
60708
|
+
ctx.addIssue({
|
|
60709
|
+
code: "custom",
|
|
60710
|
+
message: "Invalid BigInt format: array (not a dnum)"
|
|
60711
|
+
});
|
|
60712
|
+
return exports_external.NEVER;
|
|
60713
|
+
}
|
|
60714
|
+
try {
|
|
60715
|
+
const dnum = from(value22);
|
|
60716
|
+
const truncated = dnum[0] < 0n ? ceil(dnum) : floor(dnum);
|
|
60717
|
+
return toString(truncated, 0);
|
|
60718
|
+
} catch {
|
|
60719
|
+
return value22;
|
|
60720
|
+
}
|
|
60721
|
+
}, exports_external.coerce.bigint());
|
|
60695
60722
|
var XvpSettlementFlowReadSchema = exports_external.object({
|
|
60696
60723
|
id: exports_external.string(),
|
|
60697
60724
|
isExternal: exports_external.boolean(),
|
|
60698
60725
|
externalChainId: exports_external.coerce.number(),
|
|
60699
60726
|
amount: bigDecimal().meta({ description: "Flow amount with arbitrary precision", examples: ["1000.50"] }),
|
|
60700
|
-
amountExact:
|
|
60727
|
+
amountExact: apiBigInt,
|
|
60701
60728
|
from: exports_external.object({ id: ethereumAddress }),
|
|
60702
60729
|
to: exports_external.object({ id: ethereumAddress }),
|
|
60703
60730
|
asset: exports_external.object({
|
|
@@ -61145,7 +61172,11 @@ var ExternalTokenSchema = exports_external.object({
|
|
|
61145
61172
|
name: exports_external.string().meta({ description: "The name of the token", examples: ["USD Coin", "Wrapped Ether"] }),
|
|
61146
61173
|
symbol: exports_external.string().meta({ description: "The symbol of the token", examples: ["USDC", "WETH"] }),
|
|
61147
61174
|
decimals: decimals(),
|
|
61148
|
-
totalSupply: bigDecimal().nullable().meta({ description: "The total supply of the token", examples: ["1000000000.00"] }),
|
|
61175
|
+
totalSupply: bigDecimal().nullable().meta({ description: "The total supply of the token (scaled by decimals)", examples: ["1000000000.00"] }),
|
|
61176
|
+
totalSupplyExact: apiBigInt.optional().meta({
|
|
61177
|
+
description: "The total supply of the token (raw on-chain uint256)",
|
|
61178
|
+
examples: ["1000000000000000000000"]
|
|
61179
|
+
}),
|
|
61149
61180
|
type: exports_external.string().meta({ description: "The type assigned to the token", examples: ["stablecoin", "bond", "equity"] }),
|
|
61150
61181
|
pausable: exports_external.object({
|
|
61151
61182
|
paused: exports_external.boolean().meta({ description: "Whether the token is paused", examples: [true, false] })
|
|
@@ -61243,7 +61274,10 @@ var TokenBalanceSchema = exports_external.object({
|
|
|
61243
61274
|
description: "The token symbol"
|
|
61244
61275
|
}),
|
|
61245
61276
|
balance: bigDecimal().meta({
|
|
61246
|
-
description: "The token balance
|
|
61277
|
+
description: "The token balance (scaled by decimals)"
|
|
61278
|
+
}),
|
|
61279
|
+
balanceExact: apiBigInt.optional().meta({
|
|
61280
|
+
description: "The token balance (raw on-chain uint256)"
|
|
61247
61281
|
}),
|
|
61248
61282
|
decimals: exports_external.number().meta({
|
|
61249
61283
|
description: "The token decimals"
|
|
@@ -61713,33 +61747,6 @@ var ClaimTopicSchema = exports_external.enum(claimTopics).meta({
|
|
|
61713
61747
|
var claimTopicSchema = () => ClaimTopicSchema;
|
|
61714
61748
|
var topicNameToIdCache = new Map;
|
|
61715
61749
|
var idToTopicNameCache = new Map;
|
|
61716
|
-
var apiBigInt = exports_external.preprocess((value22, ctx) => {
|
|
61717
|
-
if (typeof value22 === "bigint") {
|
|
61718
|
-
return value22;
|
|
61719
|
-
}
|
|
61720
|
-
if (typeof value22 === "string" && value22.includes(".") && value22.split(".").length > 2) {
|
|
61721
|
-
ctx.addIssue({
|
|
61722
|
-
code: "custom",
|
|
61723
|
-
message: "Invalid BigInt format: multiple decimal points"
|
|
61724
|
-
});
|
|
61725
|
-
return exports_external.NEVER;
|
|
61726
|
-
}
|
|
61727
|
-
const isDnumValue = isDnum(value22);
|
|
61728
|
-
if (Array.isArray(value22) && (value22.length !== 2 || !isDnumValue)) {
|
|
61729
|
-
ctx.addIssue({
|
|
61730
|
-
code: "custom",
|
|
61731
|
-
message: "Invalid BigInt format: array (not a dnum)"
|
|
61732
|
-
});
|
|
61733
|
-
return exports_external.NEVER;
|
|
61734
|
-
}
|
|
61735
|
-
try {
|
|
61736
|
-
const dnum = from(value22);
|
|
61737
|
-
const truncated = dnum[0] < 0n ? ceil(dnum) : floor(dnum);
|
|
61738
|
-
return toString(truncated, 0);
|
|
61739
|
-
} catch {
|
|
61740
|
-
return value22;
|
|
61741
|
-
}
|
|
61742
|
-
}, exports_external.coerce.bigint());
|
|
61743
61750
|
var expressionTypes = [0, 1, 2, 3];
|
|
61744
61751
|
var expressionTypeKeys = ["TOPIC", "AND", "OR", "NOT"];
|
|
61745
61752
|
var ExpressionTypeKeySchema = exports_external.literal(expressionTypeKeys).meta({ description: "Expression type key identifier", examples: ["TOPIC", "AND", "OR", "NOT"] });
|
|
@@ -62125,8 +62132,12 @@ var TokenSchema = exports_external.object({
|
|
|
62125
62132
|
examples: ["USD", "EUR", "GBP"]
|
|
62126
62133
|
}),
|
|
62127
62134
|
totalSupply: bigDecimal().meta({
|
|
62128
|
-
description: "The total supply of the token",
|
|
62129
|
-
examples: ["
|
|
62135
|
+
description: "The total supply of the token (scaled by decimals)",
|
|
62136
|
+
examples: ["1000", "101000"]
|
|
62137
|
+
}),
|
|
62138
|
+
totalSupplyExact: apiBigInt.optional().meta({
|
|
62139
|
+
description: "The total supply of the token (raw on-chain uint256)",
|
|
62140
|
+
examples: ["1000000000000000000000", "101000000000000000000000000"]
|
|
62130
62141
|
}),
|
|
62131
62142
|
extensions: assetExtensionArray().meta({
|
|
62132
62143
|
description: "The extensions of the token",
|
|
@@ -62149,9 +62160,13 @@ var TokenSchema = exports_external.object({
|
|
|
62149
62160
|
}),
|
|
62150
62161
|
collateral: exports_external.object({
|
|
62151
62162
|
collateral: bigDecimal().meta({
|
|
62152
|
-
description: "The collateral of the token",
|
|
62153
|
-
examples: ["
|
|
62163
|
+
description: "The collateral of the token (scaled by decimals)",
|
|
62164
|
+
examples: ["1000", "500.5"]
|
|
62154
62165
|
}).nullish().transform((val) => val ?? from(0)),
|
|
62166
|
+
collateralExact: apiBigInt.optional().meta({
|
|
62167
|
+
description: "The collateral of the token (raw on-chain uint256)",
|
|
62168
|
+
examples: ["1000000000000000000000"]
|
|
62169
|
+
}),
|
|
62155
62170
|
expiryTimestamp: timestamp().nullable().meta({
|
|
62156
62171
|
description: "The expiry timestamp of the collateral",
|
|
62157
62172
|
examples: ["2025-12-31T23:59:59Z"]
|
|
@@ -62159,8 +62174,12 @@ var TokenSchema = exports_external.object({
|
|
|
62159
62174
|
}).nullable().meta({ description: "The collateral of the token", examples: [] }),
|
|
62160
62175
|
capped: exports_external.object({
|
|
62161
62176
|
cap: bigDecimal().meta({
|
|
62162
|
-
description: "The cap of the token",
|
|
62163
|
-
examples: ["
|
|
62177
|
+
description: "The cap of the token (scaled by decimals)",
|
|
62178
|
+
examples: ["10000", "1000000"]
|
|
62179
|
+
}),
|
|
62180
|
+
capExact: apiBigInt.meta({
|
|
62181
|
+
description: "The cap of the token (raw on-chain uint256)",
|
|
62182
|
+
examples: ["10000000000000000000000", "1000000000000000000000000"]
|
|
62164
62183
|
})
|
|
62165
62184
|
}).nullable().meta({ description: "The max supply of the token", examples: [] }),
|
|
62166
62185
|
createdBy: exports_external.object({
|
|
@@ -62171,8 +62190,12 @@ var TokenSchema = exports_external.object({
|
|
|
62171
62190
|
}).meta({ description: "The user who created the token", examples: [] }),
|
|
62172
62191
|
redeemable: exports_external.object({
|
|
62173
62192
|
redeemedAmount: bigDecimal().meta({
|
|
62174
|
-
description: "The amount of tokens redeemed",
|
|
62175
|
-
examples: ["
|
|
62193
|
+
description: "The amount of tokens redeemed (scaled by decimals)",
|
|
62194
|
+
examples: ["500", "1000.5"]
|
|
62195
|
+
}),
|
|
62196
|
+
redeemedAmountExact: apiBigInt.optional().meta({
|
|
62197
|
+
description: "The amount of tokens redeemed (raw on-chain uint256)",
|
|
62198
|
+
examples: ["500000000000000000000000"]
|
|
62176
62199
|
})
|
|
62177
62200
|
}).nullable().meta({ description: "The amount of tokens redeemed", examples: [] }),
|
|
62178
62201
|
yield: exports_external.object({
|
|
@@ -62202,8 +62225,12 @@ var TokenSchema = exports_external.object({
|
|
|
62202
62225
|
}).nullable().meta({ description: "The yield of the token", examples: [] }),
|
|
62203
62226
|
bond: exports_external.object({
|
|
62204
62227
|
faceValue: bigDecimal().meta({
|
|
62205
|
-
description: "The face value of the bond",
|
|
62206
|
-
examples: ["
|
|
62228
|
+
description: "The face value of the bond (scaled by denomination asset decimals)",
|
|
62229
|
+
examples: ["1000", "101000"]
|
|
62230
|
+
}),
|
|
62231
|
+
faceValueExact: apiBigInt.meta({
|
|
62232
|
+
description: "The face value of the bond (raw on-chain uint256)",
|
|
62233
|
+
examples: ["1000000000000000000000", "101000000000000000000000000"]
|
|
62207
62234
|
}),
|
|
62208
62235
|
isMatured: exports_external.boolean().meta({
|
|
62209
62236
|
description: "Whether the bond is matured",
|
|
@@ -62514,8 +62541,12 @@ var TokenSchema = exports_external.object({
|
|
|
62514
62541
|
examples: ["1000000", "5000000.50"]
|
|
62515
62542
|
}),
|
|
62516
62543
|
totalBurned: bigDecimal().meta({
|
|
62517
|
-
description: "The total amount of tokens burned (
|
|
62544
|
+
description: "The total amount of tokens burned (scaled by decimals)",
|
|
62518
62545
|
examples: ["1000", "50000.50"]
|
|
62546
|
+
}),
|
|
62547
|
+
totalBurnedExact: apiBigInt.meta({
|
|
62548
|
+
description: "The total amount of tokens burned (raw on-chain uint256)",
|
|
62549
|
+
examples: ["1000000000000000000000", "50000500000000000000000"]
|
|
62519
62550
|
})
|
|
62520
62551
|
}).nullable().meta({ description: "The stats of the token", examples: [] })
|
|
62521
62552
|
});
|
|
@@ -67494,8 +67525,8 @@ var tokenActionsContract = v1Contract.route({
|
|
|
67494
67525
|
var tokenAllowanceSchema = () => exports_external.object({
|
|
67495
67526
|
id: exports_external.string().meta({ description: "Composite ID: token + owner + spender", examples: ["0x123...0x456...0x789"] }),
|
|
67496
67527
|
value: bigDecimal().meta({ description: "The allowance amount", examples: ["1000000000000000000"] }),
|
|
67497
|
-
valueExact:
|
|
67498
|
-
description: "The exact allowance amount
|
|
67528
|
+
valueExact: apiBigInt.meta({
|
|
67529
|
+
description: "The exact allowance amount (raw on-chain uint256)",
|
|
67499
67530
|
examples: ["115792089237316195423570985008687907853269984665640564039457584007913129639935"]
|
|
67500
67531
|
}),
|
|
67501
67532
|
lastUpdatedAt: timestamp().meta({
|
|
@@ -68537,8 +68568,12 @@ var TokenAssetSchema = exports_external.object({
|
|
|
68537
68568
|
symbol: assetSymbol().meta({ description: "The token symbol", examples: ["BOND", "EQT", "USDC"] }),
|
|
68538
68569
|
decimals: decimals().meta({ description: "The number of decimal places", examples: [18, 6, 8] }),
|
|
68539
68570
|
totalSupply: bigDecimal().meta({
|
|
68540
|
-
description: "The total supply of the token",
|
|
68541
|
-
examples: ["
|
|
68571
|
+
description: "The total supply of the token (scaled by decimals)",
|
|
68572
|
+
examples: ["1000", "101000"]
|
|
68573
|
+
}),
|
|
68574
|
+
totalSupplyExact: apiBigInt.optional().meta({
|
|
68575
|
+
description: "The total supply of the token (raw on-chain uint256)",
|
|
68576
|
+
examples: ["1000000000000000000000", "101000000000000000000000000"]
|
|
68542
68577
|
}),
|
|
68543
68578
|
bond: exports_external.object({
|
|
68544
68579
|
isMatured: exports_external.boolean().meta({ description: "Whether the bond is matured", examples: [true, false] })
|
|
@@ -69676,9 +69711,9 @@ var TokenSaleGraphItemSchema = exports_external.object({
|
|
|
69676
69711
|
presaleEndTime: timestamp().nullable(),
|
|
69677
69712
|
createdAt: timestamp(),
|
|
69678
69713
|
totalSold: bigDecimal(),
|
|
69679
|
-
totalSoldExact:
|
|
69714
|
+
totalSoldExact: apiBigInt,
|
|
69680
69715
|
hardCap: bigDecimal(),
|
|
69681
|
-
hardCapExact:
|
|
69716
|
+
hardCapExact: apiBigInt
|
|
69682
69717
|
});
|
|
69683
69718
|
var TokenSaleListItemSchema = TokenSaleGraphItemSchema;
|
|
69684
69719
|
var TokenSaleListSchema = exports_external.array(TokenSaleListItemSchema);
|
|
@@ -69702,9 +69737,9 @@ var TokenSalePurchaseSchema = exports_external.object({
|
|
|
69702
69737
|
}),
|
|
69703
69738
|
paymentCurrency: TokenSalePaymentCurrencySchema,
|
|
69704
69739
|
paymentAmount: bigDecimal(),
|
|
69705
|
-
paymentAmountExact:
|
|
69740
|
+
paymentAmountExact: apiBigInt,
|
|
69706
69741
|
tokenAmount: bigDecimal(),
|
|
69707
|
-
tokenAmountExact:
|
|
69742
|
+
tokenAmountExact: apiBigInt,
|
|
69708
69743
|
purchasedAt: timestamp()
|
|
69709
69744
|
});
|
|
69710
69745
|
var TokenSaleWhitelistEntrySchema = exports_external.object({
|
|
@@ -69717,11 +69752,11 @@ var TokenSaleWhitelistEntrySchema = exports_external.object({
|
|
|
69717
69752
|
});
|
|
69718
69753
|
var TokenSaleReadGraphSchema = TokenSaleGraphItemSchema.extend({
|
|
69719
69754
|
minPurchase: bigDecimal(),
|
|
69720
|
-
minPurchaseExact:
|
|
69755
|
+
minPurchaseExact: apiBigInt,
|
|
69721
69756
|
maxPurchase: bigDecimal(),
|
|
69722
|
-
maxPurchaseExact:
|
|
69757
|
+
maxPurchaseExact: apiBigInt,
|
|
69723
69758
|
softCap: bigDecimal().nullable(),
|
|
69724
|
-
softCapExact:
|
|
69759
|
+
softCapExact: apiBigInt.nullable(),
|
|
69725
69760
|
softCapReached: exports_external.boolean(),
|
|
69726
69761
|
presalePriceRatio: exports_external.string().nullable(),
|
|
69727
69762
|
presaleMaxPerAddress: exports_external.string().nullable(),
|
|
@@ -79599,7 +79634,7 @@ var timestampSerializer = {
|
|
|
79599
79634
|
};
|
|
79600
79635
|
var package_default = {
|
|
79601
79636
|
name: "@settlemint/dalp-sdk",
|
|
79602
|
-
version: "2.1.7-main.
|
|
79637
|
+
version: "2.1.7-main.23579600386",
|
|
79603
79638
|
private: false,
|
|
79604
79639
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
79605
79640
|
homepage: "https://settlemint.com",
|
|
@@ -79742,7 +79777,7 @@ function createDalpClient(config3) {
|
|
|
79742
79777
|
// package.json
|
|
79743
79778
|
var package_default2 = {
|
|
79744
79779
|
name: "@settlemint/dalp-cli",
|
|
79745
|
-
version: "2.1.7-main.
|
|
79780
|
+
version: "2.1.7-main.23579600386",
|
|
79746
79781
|
private: false,
|
|
79747
79782
|
description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
|
|
79748
79783
|
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.23579600386",
|
|
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",
|