@settlemint/dalp-sdk 2.1.7-main.23399598269 → 2.1.7-main.23400903660
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/index.js +195 -150
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5279,6 +5279,10 @@ var TokenSchema = z70.object({
|
|
|
5279
5279
|
removeAuthorizedConverter: z70.boolean().meta({
|
|
5280
5280
|
description: "Whether the user can execute the removeAuthorizedConverter action",
|
|
5281
5281
|
examples: [true, false]
|
|
5282
|
+
}),
|
|
5283
|
+
setPrice: z70.boolean().meta({
|
|
5284
|
+
description: "Whether the user can execute the setPrice action",
|
|
5285
|
+
examples: [true, false]
|
|
5282
5286
|
})
|
|
5283
5287
|
};
|
|
5284
5288
|
return actionsSchema;
|
|
@@ -16018,7 +16022,7 @@ var TOKEN_COLLECTION_METADATA = resolveCollectionMetadata(TOKEN_COLLECTION_FIELD
|
|
|
16018
16022
|
var TokenV2ListOutputSchema = createPaginatedResponse(TokenListItemSchema);
|
|
16019
16023
|
|
|
16020
16024
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.mutations.contract.ts
|
|
16021
|
-
import { z as
|
|
16025
|
+
import { z as z350 } from "zod";
|
|
16022
16026
|
|
|
16023
16027
|
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.aum-fee-ops.schema.ts
|
|
16024
16028
|
var TokenCollectAumFeeInputSchema = TokenMutationInputSchema.extend({});
|
|
@@ -16320,6 +16324,37 @@ var TokenRevokeTransferApprovalBodySchema = TokenRevokeTransferApprovalInputSche
|
|
|
16320
16324
|
tokenAddress: true
|
|
16321
16325
|
}).superRefine(identityAddressPairRefinement);
|
|
16322
16326
|
|
|
16327
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token-price.v2.schema.ts
|
|
16328
|
+
import { z as z349 } from "zod";
|
|
16329
|
+
var TokenPriceBodySchema = z349.object({
|
|
16330
|
+
price: z349.string().regex(/^(?!0+(\.0+)?$)\d+(\.\d+)?$/, "Price must be a positive decimal string greater than zero").meta({
|
|
16331
|
+
description: "Token price in the specified currency (decimal string for arbitrary precision)",
|
|
16332
|
+
examples: ["100.50", "1.00", "0.01"]
|
|
16333
|
+
}),
|
|
16334
|
+
currencyCode: fiatCurrency().meta({
|
|
16335
|
+
description: "ISO 4217 fiat currency code",
|
|
16336
|
+
examples: ["EUR", "USD", "GBP"]
|
|
16337
|
+
})
|
|
16338
|
+
});
|
|
16339
|
+
var TokenPriceOutputSchema = z349.object({
|
|
16340
|
+
feedAddress: ethereumAddress.meta({
|
|
16341
|
+
description: "The on-chain feed contract address",
|
|
16342
|
+
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
16343
|
+
}),
|
|
16344
|
+
txHash: ethereumHash.meta({
|
|
16345
|
+
description: "Transaction hash of the price submission",
|
|
16346
|
+
examples: ["0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"]
|
|
16347
|
+
}),
|
|
16348
|
+
price: z349.string().meta({
|
|
16349
|
+
description: "The submitted price (echoed back)",
|
|
16350
|
+
examples: ["100.50"]
|
|
16351
|
+
}),
|
|
16352
|
+
currencyCode: fiatCurrency().meta({
|
|
16353
|
+
description: "The currency code used (echoed back)",
|
|
16354
|
+
examples: ["EUR"]
|
|
16355
|
+
})
|
|
16356
|
+
});
|
|
16357
|
+
|
|
16323
16358
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.mutations.contract.ts
|
|
16324
16359
|
var COMPLIANCE = ["DALP-1001", "DALP-1005", "DALP-1006", "DALP-1027", "DALP-1055"];
|
|
16325
16360
|
var FREEZE = ["DALP-1019", "DALP-1020", "DALP-1024", "DALP-1025", "DALP-1043"];
|
|
@@ -16341,14 +16376,14 @@ var mint = v2Contract.route({
|
|
|
16341
16376
|
description: "Mint new tokens to one or more addresses.",
|
|
16342
16377
|
successDescription: "Tokens minted successfully.",
|
|
16343
16378
|
tags: ["v2-token"]
|
|
16344
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
16379
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE] }).input(v2Input.paramsBody(TokenReadInputSchema, z350.object(TokenMintInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
16345
16380
|
var burn = v2Contract.route({
|
|
16346
16381
|
method: "POST",
|
|
16347
16382
|
path: "/tokens/{tokenAddress}/burns",
|
|
16348
16383
|
description: "Burn tokens from one or more addresses.",
|
|
16349
16384
|
successDescription: "Tokens burned successfully.",
|
|
16350
16385
|
tags: ["v2-token"]
|
|
16351
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
16386
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z350.object(TokenBurnInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
16352
16387
|
var transfer = v2Contract.route({
|
|
16353
16388
|
method: "POST",
|
|
16354
16389
|
path: "/tokens/{tokenAddress}/transfers",
|
|
@@ -16357,7 +16392,7 @@ var transfer = v2Contract.route({
|
|
|
16357
16392
|
tags: ["v2-token"]
|
|
16358
16393
|
}).meta({
|
|
16359
16394
|
contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE, ...FREEZE, "DALP-1056"]
|
|
16360
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
16395
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z350.object(TokenTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
16361
16396
|
var forcedTransfer = v2Contract.route({
|
|
16362
16397
|
method: "POST",
|
|
16363
16398
|
path: "/tokens/{tokenAddress}/forced-transfers",
|
|
@@ -16366,7 +16401,7 @@ var forcedTransfer = v2Contract.route({
|
|
|
16366
16401
|
tags: ["v2-token"]
|
|
16367
16402
|
}).meta({
|
|
16368
16403
|
contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE, ...FREEZE, "DALP-1055"]
|
|
16369
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
16404
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z350.object(TokenForcedTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
16370
16405
|
var approve3 = v2Contract.route({
|
|
16371
16406
|
method: "POST",
|
|
16372
16407
|
path: "/tokens/{tokenAddress}/approvals",
|
|
@@ -16380,7 +16415,7 @@ var redeem = v2Contract.route({
|
|
|
16380
16415
|
description: "Redeem tokens from one or more addresses.",
|
|
16381
16416
|
successDescription: "Tokens redeemed successfully.",
|
|
16382
16417
|
tags: ["v2-token"]
|
|
16383
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
16418
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z350.object(TokenRedeemInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
16384
16419
|
var mature = v2Contract.route({
|
|
16385
16420
|
method: "POST",
|
|
16386
16421
|
path: "/tokens/{tokenAddress}/maturations",
|
|
@@ -16496,9 +16531,9 @@ var grantRole2 = v2Contract.route({
|
|
|
16496
16531
|
description: "Grant a role to multiple accounts on a token.",
|
|
16497
16532
|
successDescription: "Role granted successfully to accounts.",
|
|
16498
16533
|
tags: ["v2-token"]
|
|
16499
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
16500
|
-
|
|
16501
|
-
|
|
16534
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z350.union([
|
|
16535
|
+
z350.object(TokenGrantRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
|
|
16536
|
+
z350.object(TokenGrantRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
|
|
16502
16537
|
]))).output(createAsyncBlockchainMutationResponse(TokenGrantRoleOutputSchema));
|
|
16503
16538
|
var revokeRole2 = v2Contract.route({
|
|
16504
16539
|
method: "POST",
|
|
@@ -16506,9 +16541,9 @@ var revokeRole2 = v2Contract.route({
|
|
|
16506
16541
|
description: "Revoke role(s) from account(s) on a token.",
|
|
16507
16542
|
successDescription: "Roles revoked successfully from the specified accounts.",
|
|
16508
16543
|
tags: ["v2-token"]
|
|
16509
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
16510
|
-
|
|
16511
|
-
|
|
16544
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z350.union([
|
|
16545
|
+
z350.object(TokenRevokeRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
|
|
16546
|
+
z350.object(TokenRevokeRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
|
|
16512
16547
|
]))).output(createAsyncBlockchainMutationResponse(TokenRevokeRoleOutputSchema));
|
|
16513
16548
|
var claimIssue2 = v2Contract.route({
|
|
16514
16549
|
method: "POST",
|
|
@@ -16769,6 +16804,15 @@ var addAuthorizedConverter = v2Contract.route({
|
|
|
16769
16804
|
successDescription: "Authorized converter added successfully.",
|
|
16770
16805
|
tags: ["v2-token"]
|
|
16771
16806
|
}).input(v2Input.paramsBody(TokenReadInputSchema, TokenAddAuthorizedConverterInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
|
|
16807
|
+
var setPrice = v2Contract.route({
|
|
16808
|
+
method: "POST",
|
|
16809
|
+
path: "/tokens/{tokenAddress}/price",
|
|
16810
|
+
description: "Set or update the price for a token via a price feed. Creates the feed if one does not exist.",
|
|
16811
|
+
successDescription: "Token price feed updated successfully.",
|
|
16812
|
+
tags: ["v2-token"]
|
|
16813
|
+
}).meta({
|
|
16814
|
+
contractErrors: [...COMMON_CONTRACT_ERRORS]
|
|
16815
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, TokenPriceBodySchema)).output(createAsyncBlockchainMutationResponse(TokenPriceOutputSchema));
|
|
16772
16816
|
var removeAuthorizedConverter = v2Contract.route({
|
|
16773
16817
|
method: "DELETE",
|
|
16774
16818
|
path: "/tokens/{tokenAddress}/conversion/authorized-converters",
|
|
@@ -16836,33 +16880,34 @@ var tokenV2MutationsContract = {
|
|
|
16836
16880
|
convert,
|
|
16837
16881
|
forceConvert,
|
|
16838
16882
|
addAuthorizedConverter,
|
|
16839
|
-
removeAuthorizedConverter
|
|
16883
|
+
removeAuthorizedConverter,
|
|
16884
|
+
setPrice
|
|
16840
16885
|
};
|
|
16841
16886
|
|
|
16842
16887
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
|
|
16843
|
-
import { z as
|
|
16888
|
+
import { z as z355 } from "zod";
|
|
16844
16889
|
|
|
16845
16890
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
|
|
16846
|
-
import { z as
|
|
16891
|
+
import { z as z352 } from "zod";
|
|
16847
16892
|
|
|
16848
16893
|
// ../../packages/core/validation/src/feature-types.ts
|
|
16849
|
-
import { z as
|
|
16894
|
+
import { z as z351 } from "zod";
|
|
16850
16895
|
var featureTypes = tokenFeatureIds;
|
|
16851
|
-
var FeatureTypeSchema =
|
|
16896
|
+
var FeatureTypeSchema = z351.enum(featureTypes);
|
|
16852
16897
|
|
|
16853
16898
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
|
|
16854
16899
|
var TokenFeaturesInputSchema = TokenReadInputSchema;
|
|
16855
|
-
var feeBps = (description) =>
|
|
16900
|
+
var feeBps = (description) => z352.number().int().min(0).max(20000).meta({
|
|
16856
16901
|
description: `${description} (1 bps = 0.01%, max 20 000 = 200%)`,
|
|
16857
16902
|
examples: [200]
|
|
16858
16903
|
});
|
|
16859
|
-
var TokenFeatureAUMFeeSchema =
|
|
16904
|
+
var TokenFeatureAUMFeeSchema = z352.object({
|
|
16860
16905
|
feeBps: feeBps("Annual AUM fee rate"),
|
|
16861
16906
|
feeRecipient: ethereumAddress.meta({
|
|
16862
16907
|
description: "Address receiving the collected AUM fee",
|
|
16863
16908
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
16864
16909
|
}),
|
|
16865
|
-
isFrozen:
|
|
16910
|
+
isFrozen: z352.boolean().meta({
|
|
16866
16911
|
description: "Whether fee collection is frozen",
|
|
16867
16912
|
examples: [false]
|
|
16868
16913
|
}),
|
|
@@ -16875,7 +16920,7 @@ var TokenFeatureAUMFeeSchema = z351.object({
|
|
|
16875
16920
|
examples: ["1000.50"]
|
|
16876
16921
|
})
|
|
16877
16922
|
}).nullable();
|
|
16878
|
-
var TokenFeatureMaturityRedemptionSchema =
|
|
16923
|
+
var TokenFeatureMaturityRedemptionSchema = z352.object({
|
|
16879
16924
|
maturityDate: timestamp().meta({
|
|
16880
16925
|
description: "Bond maturity date",
|
|
16881
16926
|
examples: ["2025-01-01T00:00:00Z"]
|
|
@@ -16892,7 +16937,7 @@ var TokenFeatureMaturityRedemptionSchema = z351.object({
|
|
|
16892
16937
|
description: "Treasury holding denomination assets for redemption",
|
|
16893
16938
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
16894
16939
|
}),
|
|
16895
|
-
isMatured:
|
|
16940
|
+
isMatured: z352.boolean().meta({
|
|
16896
16941
|
description: "Whether the bond has reached maturity",
|
|
16897
16942
|
examples: [false]
|
|
16898
16943
|
}),
|
|
@@ -16905,7 +16950,7 @@ var TokenFeatureMaturityRedemptionSchema = z351.object({
|
|
|
16905
16950
|
examples: ["500.00"]
|
|
16906
16951
|
})
|
|
16907
16952
|
}).nullable();
|
|
16908
|
-
var TokenFeatureTransactionFeeSchema =
|
|
16953
|
+
var TokenFeatureTransactionFeeSchema = z352.object({
|
|
16909
16954
|
mintFeeBps: feeBps("Mint fee rate"),
|
|
16910
16955
|
burnFeeBps: feeBps("Burn fee rate"),
|
|
16911
16956
|
transferFeeBps: feeBps("Transfer fee rate"),
|
|
@@ -16913,7 +16958,7 @@ var TokenFeatureTransactionFeeSchema = z351.object({
|
|
|
16913
16958
|
description: "Address receiving collected transaction fees",
|
|
16914
16959
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
16915
16960
|
}),
|
|
16916
|
-
isFrozen:
|
|
16961
|
+
isFrozen: z352.boolean().meta({
|
|
16917
16962
|
description: "Whether fee collection is frozen",
|
|
16918
16963
|
examples: [false]
|
|
16919
16964
|
}),
|
|
@@ -16922,7 +16967,7 @@ var TokenFeatureTransactionFeeSchema = z351.object({
|
|
|
16922
16967
|
examples: ["250.75"]
|
|
16923
16968
|
})
|
|
16924
16969
|
}).nullable();
|
|
16925
|
-
var TokenFeatureHistoricalBalancesSchema =
|
|
16970
|
+
var TokenFeatureHistoricalBalancesSchema = z352.object({
|
|
16926
16971
|
enabledAt: timestamp().meta({
|
|
16927
16972
|
description: "When historical balance tracking was enabled",
|
|
16928
16973
|
examples: ["2024-11-14T22:13:20Z"]
|
|
@@ -16932,7 +16977,7 @@ var TokenFeatureHistoricalBalancesSchema = z351.object({
|
|
|
16932
16977
|
examples: ["1000000.00"]
|
|
16933
16978
|
})
|
|
16934
16979
|
}).nullable();
|
|
16935
|
-
var TokenFeatureFixedTreasuryYieldSchema =
|
|
16980
|
+
var TokenFeatureFixedTreasuryYieldSchema = z352.object({
|
|
16936
16981
|
startDate: timestamp().meta({
|
|
16937
16982
|
description: "Yield schedule start",
|
|
16938
16983
|
examples: ["2024-11-14T22:13:20Z"]
|
|
@@ -16941,11 +16986,11 @@ var TokenFeatureFixedTreasuryYieldSchema = z351.object({
|
|
|
16941
16986
|
description: "Yield schedule end",
|
|
16942
16987
|
examples: ["2025-01-01T00:00:00Z"]
|
|
16943
16988
|
}),
|
|
16944
|
-
rate:
|
|
16989
|
+
rate: z352.number().meta({
|
|
16945
16990
|
description: "Annual yield rate (percentage, e.g. 5.5 = 5.5%)",
|
|
16946
16991
|
examples: [5.5]
|
|
16947
16992
|
}),
|
|
16948
|
-
interval:
|
|
16993
|
+
interval: z352.coerce.string().meta({
|
|
16949
16994
|
description: "Payout interval in seconds (string from subgraph)",
|
|
16950
16995
|
examples: ["2592000"]
|
|
16951
16996
|
}),
|
|
@@ -16962,13 +17007,13 @@ var TokenFeatureFixedTreasuryYieldSchema = z351.object({
|
|
|
16962
17007
|
examples: ["5000.00"]
|
|
16963
17008
|
})
|
|
16964
17009
|
}).nullable();
|
|
16965
|
-
var TokenFeatureVotingPowerSchema =
|
|
17010
|
+
var TokenFeatureVotingPowerSchema = z352.object({
|
|
16966
17011
|
enabledAt: timestamp().meta({
|
|
16967
17012
|
description: "When voting power was enabled",
|
|
16968
17013
|
examples: ["2024-11-14T22:13:20Z"]
|
|
16969
17014
|
})
|
|
16970
17015
|
}).nullable();
|
|
16971
|
-
var TokenFeatureExternalTransactionFeeSchema =
|
|
17016
|
+
var TokenFeatureExternalTransactionFeeSchema = z352.object({
|
|
16972
17017
|
feeToken: ethereumAddress.meta({
|
|
16973
17018
|
description: "ERC-20 token used to pay fees",
|
|
16974
17019
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -16989,7 +17034,7 @@ var TokenFeatureExternalTransactionFeeSchema = z351.object({
|
|
|
16989
17034
|
description: "Address receiving collected external fees",
|
|
16990
17035
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
16991
17036
|
}),
|
|
16992
|
-
isFrozen:
|
|
17037
|
+
isFrozen: z352.boolean().meta({
|
|
16993
17038
|
description: "Whether fee collection is frozen",
|
|
16994
17039
|
examples: [false]
|
|
16995
17040
|
}),
|
|
@@ -16998,7 +17043,7 @@ var TokenFeatureExternalTransactionFeeSchema = z351.object({
|
|
|
16998
17043
|
examples: ["100.00"]
|
|
16999
17044
|
})
|
|
17000
17045
|
}).nullable();
|
|
17001
|
-
var TokenFeatureTransactionFeeAccountingSchema =
|
|
17046
|
+
var TokenFeatureTransactionFeeAccountingSchema = z352.object({
|
|
17002
17047
|
mintFeeBps: feeBps("Mint fee rate (accounting mode)"),
|
|
17003
17048
|
burnFeeBps: feeBps("Burn fee rate (accounting mode)"),
|
|
17004
17049
|
transferFeeBps: feeBps("Transfer fee rate (accounting mode)"),
|
|
@@ -17006,7 +17051,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z351.object({
|
|
|
17006
17051
|
description: "Address receiving accrued fees upon reconciliation",
|
|
17007
17052
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
17008
17053
|
}),
|
|
17009
|
-
isFrozen:
|
|
17054
|
+
isFrozen: z352.boolean().meta({
|
|
17010
17055
|
description: "Whether fee accrual is frozen",
|
|
17011
17056
|
examples: [false]
|
|
17012
17057
|
}),
|
|
@@ -17019,7 +17064,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z351.object({
|
|
|
17019
17064
|
examples: ["100.00"]
|
|
17020
17065
|
})
|
|
17021
17066
|
}).nullable();
|
|
17022
|
-
var TokenFeatureConversionSchema =
|
|
17067
|
+
var TokenFeatureConversionSchema = z352.object({
|
|
17023
17068
|
targetToken: ethereumAddress.meta({
|
|
17024
17069
|
description: "Token that holders can convert to",
|
|
17025
17070
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -17033,17 +17078,17 @@ var TokenFeatureConversionSchema = z351.object({
|
|
|
17033
17078
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
17034
17079
|
}),
|
|
17035
17080
|
discountBps: feeBps("Conversion discount rate"),
|
|
17036
|
-
partialAllowed:
|
|
17081
|
+
partialAllowed: z352.boolean().meta({
|
|
17037
17082
|
description: "Whether partial conversions are allowed",
|
|
17038
17083
|
examples: [true]
|
|
17039
17084
|
})
|
|
17040
17085
|
}).nullable();
|
|
17041
|
-
var TokenFeatureConversionMinterSchema =
|
|
17042
|
-
authorizedConverters:
|
|
17086
|
+
var TokenFeatureConversionMinterSchema = z352.object({
|
|
17087
|
+
authorizedConverters: z352.array(ethereumAddress).meta({
|
|
17043
17088
|
description: "Addresses authorized to perform conversions",
|
|
17044
17089
|
examples: [["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]]
|
|
17045
17090
|
}),
|
|
17046
|
-
totalIssuances:
|
|
17091
|
+
totalIssuances: z352.number().int().meta({
|
|
17047
17092
|
description: "Total number of conversion issuances performed",
|
|
17048
17093
|
examples: [42]
|
|
17049
17094
|
}),
|
|
@@ -17052,7 +17097,7 @@ var TokenFeatureConversionMinterSchema = z351.object({
|
|
|
17052
17097
|
examples: ["50000.00"]
|
|
17053
17098
|
})
|
|
17054
17099
|
}).nullable();
|
|
17055
|
-
var TokenFeatureSchema =
|
|
17100
|
+
var TokenFeatureSchema = z352.object({
|
|
17056
17101
|
featureAddress: ethereumAddress.meta({
|
|
17057
17102
|
description: "Feature contract address",
|
|
17058
17103
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -17061,17 +17106,17 @@ var TokenFeatureSchema = z351.object({
|
|
|
17061
17106
|
description: "Feature type identifier",
|
|
17062
17107
|
examples: ["aum-fee", "maturity-redemption", "transaction-fee"]
|
|
17063
17108
|
}),
|
|
17064
|
-
featureFactory:
|
|
17065
|
-
typeId:
|
|
17109
|
+
featureFactory: z352.object({
|
|
17110
|
+
typeId: z352.string().meta({
|
|
17066
17111
|
description: "Feature factory type identifier",
|
|
17067
17112
|
examples: ["aum-fee", "maturity-redemption"]
|
|
17068
17113
|
}),
|
|
17069
|
-
name:
|
|
17114
|
+
name: z352.string().meta({
|
|
17070
17115
|
description: "Human-readable name of the feature factory",
|
|
17071
17116
|
examples: ["AUM Fee Feature Factory"]
|
|
17072
17117
|
})
|
|
17073
17118
|
}),
|
|
17074
|
-
isAttached:
|
|
17119
|
+
isAttached: z352.boolean().meta({
|
|
17075
17120
|
description: "Whether the feature is currently attached to the token",
|
|
17076
17121
|
examples: [true]
|
|
17077
17122
|
}),
|
|
@@ -17124,13 +17169,13 @@ var TokenFeatureSchema = z351.object({
|
|
|
17124
17169
|
examples: [null]
|
|
17125
17170
|
})
|
|
17126
17171
|
});
|
|
17127
|
-
var TokenFeaturesResponseSchema =
|
|
17128
|
-
configurable:
|
|
17129
|
-
features:
|
|
17172
|
+
var TokenFeaturesResponseSchema = z352.object({
|
|
17173
|
+
configurable: z352.object({
|
|
17174
|
+
features: z352.array(TokenFeatureSchema).meta({
|
|
17130
17175
|
description: "Feature configurations for the token",
|
|
17131
17176
|
examples: [[]]
|
|
17132
17177
|
}),
|
|
17133
|
-
featuresCount:
|
|
17178
|
+
featuresCount: z352.number().int().meta({
|
|
17134
17179
|
description: "Total number of features attached to the token",
|
|
17135
17180
|
examples: [3]
|
|
17136
17181
|
})
|
|
@@ -17141,22 +17186,22 @@ var TokenFeaturesResponseSchema = z351.object({
|
|
|
17141
17186
|
});
|
|
17142
17187
|
|
|
17143
17188
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.metadata.schema.ts
|
|
17144
|
-
import { z as
|
|
17189
|
+
import { z as z353 } from "zod";
|
|
17145
17190
|
var TokenMetadataInputSchema = TokenReadInputSchema;
|
|
17146
|
-
var TokenMetadataEntrySchema =
|
|
17147
|
-
key:
|
|
17191
|
+
var TokenMetadataEntrySchema = z353.object({
|
|
17192
|
+
key: z353.string().meta({
|
|
17148
17193
|
description: "Keccak256-encoded metadata key (hex string)",
|
|
17149
17194
|
examples: ["0xabc123"]
|
|
17150
17195
|
}),
|
|
17151
|
-
keyString:
|
|
17196
|
+
keyString: z353.string().nullable().meta({
|
|
17152
17197
|
description: "Human-readable string for the key, null if not decodable",
|
|
17153
17198
|
examples: ["issuerName", null]
|
|
17154
17199
|
}),
|
|
17155
|
-
value:
|
|
17200
|
+
value: z353.string().meta({
|
|
17156
17201
|
description: "Raw on-chain value (bytes32 hex string)",
|
|
17157
17202
|
examples: ["0x000000"]
|
|
17158
17203
|
}),
|
|
17159
|
-
valueString:
|
|
17204
|
+
valueString: z353.string().nullable().meta({
|
|
17160
17205
|
description: "Decoded string representation of the value, null if not decodable",
|
|
17161
17206
|
examples: ["Acme Corp", null]
|
|
17162
17207
|
}),
|
|
@@ -17164,7 +17209,7 @@ var TokenMetadataEntrySchema = z352.object({
|
|
|
17164
17209
|
description: "Numeric representation of the value, null if not numeric",
|
|
17165
17210
|
examples: ["1000", null]
|
|
17166
17211
|
}),
|
|
17167
|
-
isImmutable:
|
|
17212
|
+
isImmutable: z353.boolean().meta({
|
|
17168
17213
|
description: "Whether this metadata entry is immutable (cannot be changed after being set)",
|
|
17169
17214
|
examples: [false]
|
|
17170
17215
|
}),
|
|
@@ -17173,28 +17218,28 @@ var TokenMetadataEntrySchema = z352.object({
|
|
|
17173
17218
|
examples: ["1700000000"]
|
|
17174
17219
|
})
|
|
17175
17220
|
});
|
|
17176
|
-
var TokenMetadataResponseSchema =
|
|
17177
|
-
metadata_:
|
|
17178
|
-
entryCount:
|
|
17221
|
+
var TokenMetadataResponseSchema = z353.object({
|
|
17222
|
+
metadata_: z353.object({
|
|
17223
|
+
entryCount: z353.number().int().meta({
|
|
17179
17224
|
description: "Total number of metadata entries",
|
|
17180
17225
|
examples: [5]
|
|
17181
17226
|
}),
|
|
17182
|
-
entries:
|
|
17227
|
+
entries: z353.array(TokenMetadataEntrySchema).meta({
|
|
17183
17228
|
description: "List of metadata entries for the token"
|
|
17184
17229
|
})
|
|
17185
17230
|
}).nullable()
|
|
17186
17231
|
});
|
|
17187
17232
|
|
|
17188
17233
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.transfer-approvals.schema.ts
|
|
17189
|
-
import { z as
|
|
17190
|
-
var TransferApprovalSchema =
|
|
17191
|
-
id:
|
|
17234
|
+
import { z as z354 } from "zod";
|
|
17235
|
+
var TransferApprovalSchema = z354.object({
|
|
17236
|
+
id: z354.string().meta({
|
|
17192
17237
|
description: "Unique approval ID: {moduleAddress}-{token}-{fromIdentity}-{toIdentity}-{value}",
|
|
17193
17238
|
examples: ["0xabc...-0xtoken...-0xfrom...-0xto...-1000000000000000000"]
|
|
17194
17239
|
}),
|
|
17195
|
-
token:
|
|
17196
|
-
fromIdentity:
|
|
17197
|
-
toIdentity:
|
|
17240
|
+
token: z354.object({ id: ethereumAddress }),
|
|
17241
|
+
fromIdentity: z354.object({ id: ethereumAddress }),
|
|
17242
|
+
toIdentity: z354.object({ id: ethereumAddress }),
|
|
17198
17243
|
value: assetAmount.meta({
|
|
17199
17244
|
description: "Approved transfer amount in base units",
|
|
17200
17245
|
examples: ["1000000000000000000"]
|
|
@@ -17204,7 +17249,7 @@ var TransferApprovalSchema = z353.object({
|
|
|
17204
17249
|
description: "Timestamp when approval expires. Epoch zero means no expiry.",
|
|
17205
17250
|
examples: ["0", "1893456000"]
|
|
17206
17251
|
}),
|
|
17207
|
-
status:
|
|
17252
|
+
status: z354.enum(["pending", "consumed", "revoked"]).meta({
|
|
17208
17253
|
description: "Current status of the approval",
|
|
17209
17254
|
examples: ["pending"]
|
|
17210
17255
|
}),
|
|
@@ -17217,17 +17262,17 @@ var TransferApprovalSchema = z353.object({
|
|
|
17217
17262
|
examples: ["2023-11-14T12:05:00.000Z"]
|
|
17218
17263
|
})
|
|
17219
17264
|
});
|
|
17220
|
-
var TransferApprovalsResponseSchema =
|
|
17221
|
-
transferApprovals:
|
|
17265
|
+
var TransferApprovalsResponseSchema = z354.object({
|
|
17266
|
+
transferApprovals: z354.array(TransferApprovalSchema).meta({
|
|
17222
17267
|
description: "List of transfer approvals ordered by creation time descending",
|
|
17223
17268
|
examples: []
|
|
17224
17269
|
}),
|
|
17225
|
-
totalCount:
|
|
17270
|
+
totalCount: z354.number().int().nonnegative().meta({
|
|
17226
17271
|
description: "Total number of transfer approvals for this token",
|
|
17227
17272
|
examples: [3]
|
|
17228
17273
|
})
|
|
17229
17274
|
});
|
|
17230
|
-
var TransferApprovalsInputSchema =
|
|
17275
|
+
var TransferApprovalsInputSchema = z354.object({
|
|
17231
17276
|
tokenAddress: ethereumAddress.meta({
|
|
17232
17277
|
description: "The token contract address",
|
|
17233
17278
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -17235,7 +17280,7 @@ var TransferApprovalsInputSchema = z353.object({
|
|
|
17235
17280
|
});
|
|
17236
17281
|
|
|
17237
17282
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
|
|
17238
|
-
var TokenActionsInputSchema2 =
|
|
17283
|
+
var TokenActionsInputSchema2 = z355.object({
|
|
17239
17284
|
tokenAddress: ethereumAddress.meta({
|
|
17240
17285
|
description: "The token contract address to filter actions by",
|
|
17241
17286
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -17254,14 +17299,14 @@ var allowance = v2Contract.route({
|
|
|
17254
17299
|
description: "Get token allowance for a specific owner/spender pair.",
|
|
17255
17300
|
successDescription: "Token allowance details retrieved successfully.",
|
|
17256
17301
|
tags: ["v2-token"]
|
|
17257
|
-
}).input(v2Input.paramsQuery(
|
|
17302
|
+
}).input(v2Input.paramsQuery(z355.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z355.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
|
|
17258
17303
|
var holder = v2Contract.route({
|
|
17259
17304
|
method: "GET",
|
|
17260
17305
|
path: "/tokens/{tokenAddress}/holder-balances",
|
|
17261
17306
|
description: "Get a specific token holder's balance information.",
|
|
17262
17307
|
successDescription: "Token holder balance details retrieved successfully.",
|
|
17263
17308
|
tags: ["v2-token"]
|
|
17264
|
-
}).input(v2Input.paramsQuery(
|
|
17309
|
+
}).input(v2Input.paramsQuery(z355.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z355.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
|
|
17265
17310
|
var holders = v2Contract.route({
|
|
17266
17311
|
method: "GET",
|
|
17267
17312
|
path: "/tokens/{tokenAddress}/holders",
|
|
@@ -17275,14 +17320,14 @@ var actions = v2Contract.route({
|
|
|
17275
17320
|
description: "Get actions for a specific token.",
|
|
17276
17321
|
successDescription: "List of actions targeting the specified token.",
|
|
17277
17322
|
tags: ["v2-token"]
|
|
17278
|
-
}).input(v2Input.paramsQuery(
|
|
17323
|
+
}).input(v2Input.paramsQuery(z355.object({ tokenAddress: TokenActionsInputSchema2.shape.tokenAddress }), z355.object(TokenActionsInputSchema2.shape).omit({ tokenAddress: true }))).output(createSingleResponse(ActionsListResponseSchema));
|
|
17279
17324
|
var events2 = v2Contract.route({
|
|
17280
17325
|
method: "GET",
|
|
17281
17326
|
path: "/tokens/{tokenAddress}/events",
|
|
17282
17327
|
description: "Get token events history.",
|
|
17283
17328
|
successDescription: "List of token events with details.",
|
|
17284
17329
|
tags: ["v2-token"]
|
|
17285
|
-
}).input(v2Input.paramsQuery(
|
|
17330
|
+
}).input(v2Input.paramsQuery(z355.object({ tokenAddress: TokenEventsInputSchema.shape.tokenAddress }), z355.object(TokenEventsInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(EventsResponseSchema));
|
|
17286
17331
|
var denominationAssets = v2Contract.route({
|
|
17287
17332
|
method: "GET",
|
|
17288
17333
|
path: "/tokens/{tokenAddress}/denomination-assets",
|
|
@@ -17333,7 +17378,7 @@ var tokenV2ReadsContract = {
|
|
|
17333
17378
|
};
|
|
17334
17379
|
|
|
17335
17380
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
|
|
17336
|
-
import { z as
|
|
17381
|
+
import { z as z356 } from "zod";
|
|
17337
17382
|
var statsBondStatus = v2Contract.route({
|
|
17338
17383
|
method: "GET",
|
|
17339
17384
|
path: "/tokens/{tokenAddress}/stats/bond-status",
|
|
@@ -17354,25 +17399,25 @@ var statsTotalSupply = v2Contract.route({
|
|
|
17354
17399
|
description: "Get total supply history statistics for a specific token.",
|
|
17355
17400
|
successDescription: "Token total supply history statistics.",
|
|
17356
17401
|
tags: ["v2-token-stats"]
|
|
17357
|
-
}).input(v2Input.paramsQuery(
|
|
17402
|
+
}).input(v2Input.paramsQuery(z356.object({
|
|
17358
17403
|
tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
|
|
17359
|
-
}),
|
|
17404
|
+
}), z356.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
|
|
17360
17405
|
var statsSupplyChanges = v2Contract.route({
|
|
17361
17406
|
method: "GET",
|
|
17362
17407
|
path: "/tokens/{tokenAddress}/stats/supply-changes",
|
|
17363
17408
|
description: "Get supply changes history (minted/burned) statistics for a specific token.",
|
|
17364
17409
|
successDescription: "Token supply changes history statistics.",
|
|
17365
17410
|
tags: ["v2-token-stats"]
|
|
17366
|
-
}).input(v2Input.paramsQuery(
|
|
17411
|
+
}).input(v2Input.paramsQuery(z356.object({
|
|
17367
17412
|
tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
|
|
17368
|
-
}),
|
|
17413
|
+
}), z356.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
|
|
17369
17414
|
var statsVolume = v2Contract.route({
|
|
17370
17415
|
method: "GET",
|
|
17371
17416
|
path: "/tokens/{tokenAddress}/stats/volume",
|
|
17372
17417
|
description: "Get total volume history statistics for a specific token.",
|
|
17373
17418
|
successDescription: "Token total volume history statistics.",
|
|
17374
17419
|
tags: ["v2-token-stats"]
|
|
17375
|
-
}).input(v2Input.paramsQuery(
|
|
17420
|
+
}).input(v2Input.paramsQuery(z356.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z356.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
|
|
17376
17421
|
var statsWalletDistribution = v2Contract.route({
|
|
17377
17422
|
method: "GET",
|
|
17378
17423
|
path: "/tokens/{tokenAddress}/stats/wallet-distribution",
|
|
@@ -17422,7 +17467,7 @@ var tokenV2Contract = {
|
|
|
17422
17467
|
};
|
|
17423
17468
|
|
|
17424
17469
|
// ../../packages/core/validation/src/transaction-request-state.ts
|
|
17425
|
-
import { z as
|
|
17470
|
+
import { z as z357 } from "zod";
|
|
17426
17471
|
var transactionRequestStates = [
|
|
17427
17472
|
"RECEIVED",
|
|
17428
17473
|
"QUEUED",
|
|
@@ -17437,7 +17482,7 @@ var transactionRequestStates = [
|
|
|
17437
17482
|
"CANCELLED"
|
|
17438
17483
|
];
|
|
17439
17484
|
var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
|
|
17440
|
-
var TransactionRequestStateSchema =
|
|
17485
|
+
var TransactionRequestStateSchema = z357.enum(transactionRequestStates).meta({
|
|
17441
17486
|
description: "Current state in the transaction request lifecycle",
|
|
17442
17487
|
examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
|
|
17443
17488
|
});
|
|
@@ -17471,97 +17516,97 @@ var transactionSubStatuses = [
|
|
|
17471
17516
|
"WORKFLOW_UNPAUSING",
|
|
17472
17517
|
"WORKFLOW_FAILED"
|
|
17473
17518
|
];
|
|
17474
|
-
var TransactionSubStatusSchema =
|
|
17519
|
+
var TransactionSubStatusSchema = z357.enum(transactionSubStatuses).meta({
|
|
17475
17520
|
description: "Detailed sub-status for transaction failures",
|
|
17476
17521
|
examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
|
|
17477
17522
|
});
|
|
17478
17523
|
var transactionSubStatusSet = new Set(transactionSubStatuses);
|
|
17479
17524
|
|
|
17480
17525
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
|
|
17481
|
-
import { z as
|
|
17482
|
-
var TransactionForceRetryInputSchema =
|
|
17483
|
-
transactionId:
|
|
17526
|
+
import { z as z358 } from "zod";
|
|
17527
|
+
var TransactionForceRetryInputSchema = z358.object({
|
|
17528
|
+
transactionId: z358.uuid().meta({
|
|
17484
17529
|
description: "Queue transaction identifier (UUIDv7) to retry",
|
|
17485
17530
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
17486
17531
|
})
|
|
17487
17532
|
});
|
|
17488
|
-
var TransactionForceRetryBodySchema =
|
|
17489
|
-
gasPrice:
|
|
17533
|
+
var TransactionForceRetryBodySchema = z358.object({
|
|
17534
|
+
gasPrice: z358.string().optional().meta({
|
|
17490
17535
|
description: "Override gas price in wei (decimal string)",
|
|
17491
17536
|
examples: ["20000000000"]
|
|
17492
17537
|
}),
|
|
17493
|
-
nonce:
|
|
17538
|
+
nonce: z358.number().int().nonnegative().optional().meta({
|
|
17494
17539
|
description: "Override nonce for the retried transaction",
|
|
17495
17540
|
examples: [42]
|
|
17496
17541
|
})
|
|
17497
17542
|
}).default({});
|
|
17498
|
-
var TransactionForceRetryResultSchema =
|
|
17499
|
-
transactionId:
|
|
17543
|
+
var TransactionForceRetryResultSchema = z358.object({
|
|
17544
|
+
transactionId: z358.uuid().meta({ description: "The requeued transaction ID" }),
|
|
17500
17545
|
previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
|
|
17501
17546
|
status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
|
|
17502
17547
|
});
|
|
17503
17548
|
var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
|
|
17504
|
-
var TransactionForceFailInputSchema =
|
|
17505
|
-
transactionId:
|
|
17549
|
+
var TransactionForceFailInputSchema = z358.object({
|
|
17550
|
+
transactionId: z358.uuid().meta({
|
|
17506
17551
|
description: "Queue transaction identifier (UUIDv7) to force-fail",
|
|
17507
17552
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
17508
17553
|
})
|
|
17509
17554
|
});
|
|
17510
|
-
var TransactionForceFailBodySchema =
|
|
17511
|
-
reason:
|
|
17555
|
+
var TransactionForceFailBodySchema = z358.object({
|
|
17556
|
+
reason: z358.string().min(1).max(1000).meta({
|
|
17512
17557
|
description: "Human-readable reason for forcing this transaction to failed state",
|
|
17513
17558
|
examples: ["Manual intervention: stuck transaction after nonce conflict"]
|
|
17514
17559
|
})
|
|
17515
17560
|
});
|
|
17516
|
-
var TransactionForceFailResultSchema =
|
|
17517
|
-
transactionId:
|
|
17561
|
+
var TransactionForceFailResultSchema = z358.object({
|
|
17562
|
+
transactionId: z358.uuid().meta({ description: "The force-failed transaction ID" }),
|
|
17518
17563
|
previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
|
|
17519
17564
|
status: transactionRequestState().meta({ description: "New state (FAILED)" }),
|
|
17520
|
-
reason:
|
|
17565
|
+
reason: z358.string().meta({ description: "The reason provided for the force-fail" })
|
|
17521
17566
|
});
|
|
17522
17567
|
var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
|
|
17523
|
-
var TransactionForceNonceInputSchema =
|
|
17524
|
-
transactionId:
|
|
17568
|
+
var TransactionForceNonceInputSchema = z358.object({
|
|
17569
|
+
transactionId: z358.uuid().meta({
|
|
17525
17570
|
description: "Queue transaction identifier — the nonce is forced on its sender wallet",
|
|
17526
17571
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
17527
17572
|
})
|
|
17528
17573
|
});
|
|
17529
|
-
var TransactionForceNonceBodySchema =
|
|
17530
|
-
nonce:
|
|
17574
|
+
var TransactionForceNonceBodySchema = z358.object({
|
|
17575
|
+
nonce: z358.number().int().nonnegative().meta({
|
|
17531
17576
|
description: "Nonce value to force-set on the sender's nonce tracker",
|
|
17532
17577
|
examples: [42]
|
|
17533
17578
|
})
|
|
17534
17579
|
});
|
|
17535
|
-
var TransactionForceNonceResultSchema =
|
|
17536
|
-
previous:
|
|
17537
|
-
new:
|
|
17580
|
+
var TransactionForceNonceResultSchema = z358.object({
|
|
17581
|
+
previous: z358.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
|
|
17582
|
+
new: z358.number().meta({ description: "New nonce value after force-set" })
|
|
17538
17583
|
});
|
|
17539
17584
|
var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
|
|
17540
17585
|
|
|
17541
17586
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
|
|
17542
|
-
import { z as
|
|
17543
|
-
var TransactionV2CancelInputSchema =
|
|
17544
|
-
transactionId:
|
|
17587
|
+
import { z as z359 } from "zod";
|
|
17588
|
+
var TransactionV2CancelInputSchema = z359.object({
|
|
17589
|
+
transactionId: z359.uuid().meta({
|
|
17545
17590
|
description: "Queue transaction identifier (UUIDv7) to cancel",
|
|
17546
17591
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
17547
17592
|
})
|
|
17548
17593
|
});
|
|
17549
|
-
var TransactionCancelResultSchema =
|
|
17550
|
-
status:
|
|
17594
|
+
var TransactionCancelResultSchema = z359.object({
|
|
17595
|
+
status: z359.enum(["cancelled", "cancellation_pending", "error"]).meta({
|
|
17551
17596
|
description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
|
|
17552
17597
|
examples: ["cancelled", "cancellation_pending"]
|
|
17553
17598
|
}),
|
|
17554
|
-
cancelTransactionId:
|
|
17599
|
+
cancelTransactionId: z359.string().optional().meta({
|
|
17555
17600
|
description: "RBF replacement transaction ID when cancellation is pending on-chain"
|
|
17556
17601
|
}),
|
|
17557
|
-
message:
|
|
17602
|
+
message: z359.string().optional().meta({
|
|
17558
17603
|
description: "Human-readable error or status message"
|
|
17559
17604
|
})
|
|
17560
17605
|
});
|
|
17561
17606
|
var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
|
|
17562
17607
|
|
|
17563
17608
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
|
|
17564
|
-
import { z as
|
|
17609
|
+
import { z as z360 } from "zod";
|
|
17565
17610
|
var TRANSACTION_COLLECTION_FIELDS = {
|
|
17566
17611
|
status: enumField([...transactionRequestStates]),
|
|
17567
17612
|
operationType: textField(),
|
|
@@ -17572,12 +17617,12 @@ var TRANSACTION_COLLECTION_FIELDS = {
|
|
|
17572
17617
|
};
|
|
17573
17618
|
var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLECTION_FIELDS, { defaultSort: "createdAt", globalSearch: true });
|
|
17574
17619
|
var TRANSACTION_COLLECTION_METADATA = resolveCollectionMetadata(TRANSACTION_COLLECTION_FIELDS);
|
|
17575
|
-
var TransactionListItemSchema =
|
|
17576
|
-
transactionId:
|
|
17620
|
+
var TransactionListItemSchema = z360.object({
|
|
17621
|
+
transactionId: z360.uuid().meta({
|
|
17577
17622
|
description: "Queue transaction identifier (UUIDv7)",
|
|
17578
17623
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
17579
17624
|
}),
|
|
17580
|
-
kind:
|
|
17625
|
+
kind: z360.string().meta({
|
|
17581
17626
|
description: "Mutation kind submitted to the queue",
|
|
17582
17627
|
examples: ["token.create", "token.mint"]
|
|
17583
17628
|
}),
|
|
@@ -17585,27 +17630,27 @@ var TransactionListItemSchema = z359.object({
|
|
|
17585
17630
|
description: "Current transaction queue state",
|
|
17586
17631
|
examples: ["QUEUED", "COMPLETED", "FAILED"]
|
|
17587
17632
|
}),
|
|
17588
|
-
subStatus:
|
|
17633
|
+
subStatus: z360.string().nullable().meta({
|
|
17589
17634
|
description: "Optional queue sub-status with finer-grained detail",
|
|
17590
17635
|
examples: ["TIMEOUT", null]
|
|
17591
17636
|
}),
|
|
17592
|
-
fromAddress:
|
|
17637
|
+
fromAddress: z360.string().meta({
|
|
17593
17638
|
description: "Sender wallet address",
|
|
17594
17639
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
17595
17640
|
}),
|
|
17596
|
-
chainId:
|
|
17641
|
+
chainId: z360.number().int().meta({
|
|
17597
17642
|
description: "Target chain ID",
|
|
17598
17643
|
examples: [1]
|
|
17599
17644
|
}),
|
|
17600
|
-
transactionHash:
|
|
17645
|
+
transactionHash: z360.string().nullable().meta({
|
|
17601
17646
|
description: "Primary transaction hash once broadcast",
|
|
17602
17647
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
17603
17648
|
}),
|
|
17604
|
-
createdAt:
|
|
17649
|
+
createdAt: z360.iso.datetime().meta({
|
|
17605
17650
|
description: "When the transaction request was accepted",
|
|
17606
17651
|
examples: ["2026-03-09T10:00:00.000Z"]
|
|
17607
17652
|
}),
|
|
17608
|
-
updatedAt:
|
|
17653
|
+
updatedAt: z360.iso.datetime().meta({
|
|
17609
17654
|
description: "When the transaction request status last changed",
|
|
17610
17655
|
examples: ["2026-03-09T10:00:15.000Z"]
|
|
17611
17656
|
})
|
|
@@ -17617,19 +17662,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
|
|
|
17617
17662
|
var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
|
|
17618
17663
|
|
|
17619
17664
|
// ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
|
|
17620
|
-
import { z as
|
|
17621
|
-
var TransactionStatusInputSchema =
|
|
17622
|
-
transactionId:
|
|
17665
|
+
import { z as z361 } from "zod";
|
|
17666
|
+
var TransactionStatusInputSchema = z361.object({
|
|
17667
|
+
transactionId: z361.uuid().meta({
|
|
17623
17668
|
description: "Queue transaction identifier (UUIDv7)",
|
|
17624
17669
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
17625
17670
|
})
|
|
17626
17671
|
});
|
|
17627
|
-
var TransactionStatusOutputSchema =
|
|
17628
|
-
transactionId:
|
|
17672
|
+
var TransactionStatusOutputSchema = z361.object({
|
|
17673
|
+
transactionId: z361.uuid().meta({
|
|
17629
17674
|
description: "Queue transaction identifier (UUIDv7)",
|
|
17630
17675
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
17631
17676
|
}),
|
|
17632
|
-
kind:
|
|
17677
|
+
kind: z361.string().meta({
|
|
17633
17678
|
description: "Mutation kind submitted to the queue",
|
|
17634
17679
|
examples: ["token.create", "token.mint"]
|
|
17635
17680
|
}),
|
|
@@ -17637,27 +17682,27 @@ var TransactionStatusOutputSchema = z360.object({
|
|
|
17637
17682
|
description: "Current transaction queue state",
|
|
17638
17683
|
examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
|
|
17639
17684
|
}),
|
|
17640
|
-
subStatus:
|
|
17685
|
+
subStatus: z361.string().nullable().meta({
|
|
17641
17686
|
description: "Optional queue sub-status with finer-grained progress or failure detail",
|
|
17642
17687
|
examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
|
|
17643
17688
|
}),
|
|
17644
|
-
transactionHash:
|
|
17689
|
+
transactionHash: z361.string().nullable().meta({
|
|
17645
17690
|
description: "Primary transaction hash once broadcast",
|
|
17646
17691
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
17647
17692
|
}),
|
|
17648
|
-
blockNumber:
|
|
17693
|
+
blockNumber: z361.string().nullable().meta({
|
|
17649
17694
|
description: "Confirmed block number when available",
|
|
17650
17695
|
examples: ["12345678", null]
|
|
17651
17696
|
}),
|
|
17652
|
-
errorMessage:
|
|
17697
|
+
errorMessage: z361.string().nullable().meta({
|
|
17653
17698
|
description: "Human-readable error or timeout detail when available",
|
|
17654
17699
|
examples: ["Execution reverted", "Receipt not found after repeated checks", null]
|
|
17655
17700
|
}),
|
|
17656
|
-
createdAt:
|
|
17701
|
+
createdAt: z361.iso.datetime().meta({
|
|
17657
17702
|
description: "When the transaction request was accepted",
|
|
17658
17703
|
examples: ["2026-03-09T10:00:00.000Z"]
|
|
17659
17704
|
}),
|
|
17660
|
-
updatedAt:
|
|
17705
|
+
updatedAt: z361.iso.datetime().meta({
|
|
17661
17706
|
description: "When the transaction request status last changed",
|
|
17662
17707
|
examples: ["2026-03-09T10:00:15.000Z"]
|
|
17663
17708
|
})
|
|
@@ -17728,12 +17773,12 @@ var transactionV2Contract = {
|
|
|
17728
17773
|
};
|
|
17729
17774
|
|
|
17730
17775
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
|
|
17731
|
-
import { z as
|
|
17776
|
+
import { z as z364 } from "zod";
|
|
17732
17777
|
|
|
17733
17778
|
// ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
|
|
17734
|
-
import { z as
|
|
17735
|
-
var UserReadByNationalIdInputSchema =
|
|
17736
|
-
nationalId:
|
|
17779
|
+
import { z as z362 } from "zod";
|
|
17780
|
+
var UserReadByNationalIdInputSchema = z362.object({
|
|
17781
|
+
nationalId: z362.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
|
|
17737
17782
|
});
|
|
17738
17783
|
|
|
17739
17784
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.events.schema.ts
|
|
@@ -17767,7 +17812,7 @@ var USERS_COLLECTION_METADATA = resolveCollectionMetadata(USERS_COLLECTION_FIELD
|
|
|
17767
17812
|
var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
17768
17813
|
|
|
17769
17814
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
|
|
17770
|
-
import { z as
|
|
17815
|
+
import { z as z363 } from "zod";
|
|
17771
17816
|
var profileRead = v2Contract.route({
|
|
17772
17817
|
method: "GET",
|
|
17773
17818
|
path: "/kyc-profiles/{userId}",
|
|
@@ -17781,14 +17826,14 @@ var versionsList = v2Contract.route({
|
|
|
17781
17826
|
description: "List all KYC profile versions for a user with pagination and optional status filter.",
|
|
17782
17827
|
successDescription: "KYC profile versions retrieved successfully.",
|
|
17783
17828
|
tags: ["v2-user-kyc"]
|
|
17784
|
-
}).input(v2Input.paramsQuery(
|
|
17829
|
+
}).input(v2Input.paramsQuery(z363.object({ userId: KycProfileVersionsListInputSchema.shape.userId }), KycProfileVersionsListInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsListOutputSchema));
|
|
17785
17830
|
var versionsCreate = v2Contract.route({
|
|
17786
17831
|
method: "POST",
|
|
17787
17832
|
path: "/kyc-profiles/{userId}/versions",
|
|
17788
17833
|
description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
|
|
17789
17834
|
successDescription: "KYC profile version created successfully.",
|
|
17790
17835
|
tags: ["v2-user-kyc"]
|
|
17791
|
-
}).input(v2Input.paramsBody(
|
|
17836
|
+
}).input(v2Input.paramsBody(z363.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
|
|
17792
17837
|
var versionRead = v2Contract.route({
|
|
17793
17838
|
method: "GET",
|
|
17794
17839
|
path: "/kyc-profile-versions/{versionId}",
|
|
@@ -17802,7 +17847,7 @@ var versionUpdate = v2Contract.route({
|
|
|
17802
17847
|
description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
|
|
17803
17848
|
successDescription: "KYC profile version updated successfully.",
|
|
17804
17849
|
tags: ["v2-user-kyc"]
|
|
17805
|
-
}).input(v2Input.paramsBody(
|
|
17850
|
+
}).input(v2Input.paramsBody(z363.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
|
|
17806
17851
|
var versionSubmit = v2Contract.route({
|
|
17807
17852
|
method: "POST",
|
|
17808
17853
|
path: "/kyc-profile-versions/{versionId}/submissions",
|
|
@@ -17816,21 +17861,21 @@ var versionApprove = v2Contract.route({
|
|
|
17816
17861
|
description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
17817
17862
|
successDescription: "KYC profile version approved.",
|
|
17818
17863
|
tags: ["v2-user-kyc"]
|
|
17819
|
-
}).input(v2Input.paramsBody(
|
|
17864
|
+
}).input(v2Input.paramsBody(z363.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
|
|
17820
17865
|
var versionReject = v2Contract.route({
|
|
17821
17866
|
method: "POST",
|
|
17822
17867
|
path: "/kyc-profile-versions/{versionId}/rejections",
|
|
17823
17868
|
description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
17824
17869
|
successDescription: "KYC profile version rejected.",
|
|
17825
17870
|
tags: ["v2-user-kyc"]
|
|
17826
|
-
}).input(v2Input.paramsBody(
|
|
17871
|
+
}).input(v2Input.paramsBody(z363.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
|
|
17827
17872
|
var versionRequestUpdate = v2Contract.route({
|
|
17828
17873
|
method: "POST",
|
|
17829
17874
|
path: "/kyc-profile-versions/{versionId}/update-requests",
|
|
17830
17875
|
description: "Request changes on a KYC version under review. Creates an action request for the user.",
|
|
17831
17876
|
successDescription: "Update request created successfully.",
|
|
17832
17877
|
tags: ["v2-user-kyc"]
|
|
17833
|
-
}).input(v2Input.paramsBody(
|
|
17878
|
+
}).input(v2Input.paramsBody(z363.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
|
|
17834
17879
|
var documentsList = v2Contract.route({
|
|
17835
17880
|
method: "GET",
|
|
17836
17881
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
@@ -17851,14 +17896,14 @@ var documentsGetUploadUrl = v2Contract.route({
|
|
|
17851
17896
|
description: "Generate a presigned URL for uploading a KYC document directly to storage.",
|
|
17852
17897
|
successDescription: "Upload URL generated successfully.",
|
|
17853
17898
|
tags: ["v2-user-kyc"]
|
|
17854
|
-
}).input(v2Input.paramsBody(
|
|
17899
|
+
}).input(v2Input.paramsBody(z363.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
|
|
17855
17900
|
var documentsConfirmUpload = v2Contract.route({
|
|
17856
17901
|
method: "POST",
|
|
17857
17902
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
17858
17903
|
description: "Confirm a document upload after successfully uploading to the presigned URL.",
|
|
17859
17904
|
successDescription: "Document upload confirmed.",
|
|
17860
17905
|
tags: ["v2-user-kyc"]
|
|
17861
|
-
}).input(v2Input.paramsBody(
|
|
17906
|
+
}).input(v2Input.paramsBody(z363.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
|
|
17862
17907
|
var documentsGetDownloadUrl = v2Contract.route({
|
|
17863
17908
|
method: "POST",
|
|
17864
17909
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
|
|
@@ -17936,14 +17981,14 @@ var readByUserId2 = v2Contract.route({
|
|
|
17936
17981
|
description: "Read a single user by their internal database ID.",
|
|
17937
17982
|
successDescription: "User retrieved successfully.",
|
|
17938
17983
|
tags: ["v2-user"]
|
|
17939
|
-
}).input(v2Input.params(
|
|
17984
|
+
}).input(v2Input.params(z364.object({ userId: z364.string() }))).output(createSingleResponse(UserReadOutputSchema));
|
|
17940
17985
|
var readByWallet3 = v2Contract.route({
|
|
17941
17986
|
method: "GET",
|
|
17942
17987
|
path: "/wallets/{wallet}/user",
|
|
17943
17988
|
description: "Read a single user by their Ethereum wallet address.",
|
|
17944
17989
|
successDescription: "User retrieved successfully.",
|
|
17945
17990
|
tags: ["v2-user"]
|
|
17946
|
-
}).input(v2Input.params(
|
|
17991
|
+
}).input(v2Input.params(z364.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
|
|
17947
17992
|
var readByNationalId = v2Contract.route({
|
|
17948
17993
|
method: "GET",
|
|
17949
17994
|
path: "/national-ids/{nationalId}/user",
|
|
@@ -23213,7 +23258,7 @@ var dalpSerializers = [
|
|
|
23213
23258
|
// package.json
|
|
23214
23259
|
var package_default = {
|
|
23215
23260
|
name: "@settlemint/dalp-sdk",
|
|
23216
|
-
version: "2.1.7-main.
|
|
23261
|
+
version: "2.1.7-main.23400903660",
|
|
23217
23262
|
private: false,
|
|
23218
23263
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
23219
23264
|
homepage: "https://settlemint.com",
|
package/package.json
CHANGED