@canton-network/core-token-standard 1.8.0 → 1.10.0
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/generated-clients/index.d.ts +5 -0
- package/dist/generated-clients/index.d.ts.map +1 -0
- package/dist/generated-clients/splice-api-token-metadata-v1/token-metadata-v1.d.ts +49 -0
- package/dist/generated-clients/splice-api-token-metadata-v1/token-metadata-v1.d.ts.map +1 -1
- package/dist/index.browser.js +51 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +51 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +87 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +6 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ interface paths$4 {
|
|
|
55
55
|
trace?: never;
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
+
type webhooks$3 = Record<string, never>;
|
|
58
59
|
interface components$3 {
|
|
59
60
|
schemas: {
|
|
60
61
|
/** @description A request to get the context for executing a choice on a contract. */
|
|
@@ -144,6 +145,7 @@ interface components$3 {
|
|
|
144
145
|
headers: never;
|
|
145
146
|
pathItems: never;
|
|
146
147
|
}
|
|
148
|
+
type $defs$3 = Record<string, never>;
|
|
147
149
|
interface operations$3 {
|
|
148
150
|
getAllocationTransferContext: {
|
|
149
151
|
parameters: {
|
|
@@ -234,6 +236,10 @@ interface operations$3 {
|
|
|
234
236
|
};
|
|
235
237
|
}
|
|
236
238
|
|
|
239
|
+
declare namespace allocationV1 {
|
|
240
|
+
export type { $defs$3 as $defs, components$3 as components, operations$3 as operations, paths$4 as paths, webhooks$3 as webhooks };
|
|
241
|
+
}
|
|
242
|
+
|
|
237
243
|
interface paths$3 {
|
|
238
244
|
'/registry/allocation-instruction/v1/allocation-factory': {
|
|
239
245
|
parameters: {
|
|
@@ -253,6 +259,7 @@ interface paths$3 {
|
|
|
253
259
|
trace?: never;
|
|
254
260
|
};
|
|
255
261
|
}
|
|
262
|
+
type webhooks$2 = Record<string, never>;
|
|
256
263
|
interface components$2 {
|
|
257
264
|
schemas: {
|
|
258
265
|
GetFactoryRequest: {
|
|
@@ -357,6 +364,7 @@ interface components$2 {
|
|
|
357
364
|
headers: never;
|
|
358
365
|
pathItems: never;
|
|
359
366
|
}
|
|
367
|
+
type $defs$2 = Record<string, never>;
|
|
360
368
|
interface operations$2 {
|
|
361
369
|
getAllocationFactory: {
|
|
362
370
|
parameters: {
|
|
@@ -386,6 +394,10 @@ interface operations$2 {
|
|
|
386
394
|
};
|
|
387
395
|
}
|
|
388
396
|
|
|
397
|
+
declare namespace allocationInstructionV1 {
|
|
398
|
+
export type { $defs$2 as $defs, components$2 as components, operations$2 as operations, paths$3 as paths, webhooks$2 as webhooks };
|
|
399
|
+
}
|
|
400
|
+
|
|
389
401
|
interface paths$2 {
|
|
390
402
|
'/registry/metadata/v1/info': {
|
|
391
403
|
parameters: {
|
|
@@ -442,6 +454,7 @@ interface paths$2 {
|
|
|
442
454
|
trace?: never;
|
|
443
455
|
};
|
|
444
456
|
}
|
|
457
|
+
type webhooks$1 = Record<string, never>;
|
|
445
458
|
interface components$1 {
|
|
446
459
|
schemas: {
|
|
447
460
|
GetRegistryInfoResponse: {
|
|
@@ -477,7 +490,39 @@ interface components$1 {
|
|
|
477
490
|
* @default 10
|
|
478
491
|
*/
|
|
479
492
|
decimals: number;
|
|
493
|
+
/**
|
|
494
|
+
* @description Indicates whether the instrument is currently paused. A paused instrument cannot be
|
|
495
|
+
* transferred or allocated.
|
|
496
|
+
* @default false
|
|
497
|
+
*/
|
|
498
|
+
paused: boolean;
|
|
499
|
+
pauseInfo?: components$1['schemas']['PauseInfo'];
|
|
480
500
|
supportedApis: components$1['schemas']['SupportedApis'];
|
|
501
|
+
/**
|
|
502
|
+
* @deprecated
|
|
503
|
+
* @description Informs wallets whether the instrument supports non-basic accounts
|
|
504
|
+
* and the wallet should thus show input fields for both the account
|
|
505
|
+
* provider and the account id in input forms for transfers and allocations.
|
|
506
|
+
*
|
|
507
|
+
* Note that wallets should always show non-null account providers and
|
|
508
|
+
* account ids when displaying transfers and allocations.
|
|
509
|
+
*
|
|
510
|
+
* This property is deprecated in favor of the more fine-grained
|
|
511
|
+
* `accountInputFieldsToShow` property.
|
|
512
|
+
* @default false
|
|
513
|
+
*/
|
|
514
|
+
showAccountInputFields: boolean;
|
|
515
|
+
/**
|
|
516
|
+
* @description Fine-grained control for account input field display in wallets.
|
|
517
|
+
*
|
|
518
|
+
* If set, then wallets should only display the specified input
|
|
519
|
+
* field(s) in transfer and allocation input forms
|
|
520
|
+
* *independently* of the `showAccountInputFields` property.
|
|
521
|
+
*
|
|
522
|
+
* Note that wallets should always show non-null account providers and
|
|
523
|
+
* account ids when displaying transfers and allocations.
|
|
524
|
+
*/
|
|
525
|
+
accountInputFieldsToShow?: components$1['schemas']['AccountInputFieldsToShow'];
|
|
481
526
|
};
|
|
482
527
|
ListInstrumentsResponse: {
|
|
483
528
|
instruments: components$1['schemas']['Instrument'][];
|
|
@@ -494,6 +539,23 @@ interface components$1 {
|
|
|
494
539
|
SupportedApis: {
|
|
495
540
|
[key: string]: number;
|
|
496
541
|
};
|
|
542
|
+
/** @description Additional information about the instrument pause state. */
|
|
543
|
+
PauseInfo: {
|
|
544
|
+
/** @description Why the instrument is paused. */
|
|
545
|
+
reason?: string;
|
|
546
|
+
/**
|
|
547
|
+
* Format: date-time
|
|
548
|
+
* @description Timestamp (exclusive) until which the instrument is paused, if known.
|
|
549
|
+
*/
|
|
550
|
+
until?: string;
|
|
551
|
+
};
|
|
552
|
+
/** @description Which account input field(s) wallets should show in forms. */
|
|
553
|
+
AccountInputFieldsToShow: components$1['schemas']['AccountInputFieldToShow'][];
|
|
554
|
+
/**
|
|
555
|
+
* @description Which single account input field wallets should show in forms.
|
|
556
|
+
* @enum {string}
|
|
557
|
+
*/
|
|
558
|
+
AccountInputFieldToShow: 'provider' | 'accountId';
|
|
497
559
|
};
|
|
498
560
|
responses: {
|
|
499
561
|
/** @description bad request */
|
|
@@ -538,6 +600,7 @@ interface components$1 {
|
|
|
538
600
|
headers: never;
|
|
539
601
|
pathItems: never;
|
|
540
602
|
}
|
|
603
|
+
type $defs$1 = Record<string, never>;
|
|
541
604
|
interface operations$1 {
|
|
542
605
|
getRegistryInfo: {
|
|
543
606
|
parameters: {
|
|
@@ -614,6 +677,10 @@ interface operations$1 {
|
|
|
614
677
|
};
|
|
615
678
|
}
|
|
616
679
|
|
|
680
|
+
declare namespace tokenMetadataV1 {
|
|
681
|
+
export type { $defs$1 as $defs, components$1 as components, operations$1 as operations, paths$2 as paths, webhooks$1 as webhooks };
|
|
682
|
+
}
|
|
683
|
+
|
|
617
684
|
interface paths$1 {
|
|
618
685
|
'/registry/transfer-instruction/v1/transfer-factory': {
|
|
619
686
|
parameters: {
|
|
@@ -684,6 +751,7 @@ interface paths$1 {
|
|
|
684
751
|
trace?: never;
|
|
685
752
|
};
|
|
686
753
|
}
|
|
754
|
+
type webhooks = Record<string, never>;
|
|
687
755
|
interface components {
|
|
688
756
|
schemas: {
|
|
689
757
|
GetFactoryRequest: {
|
|
@@ -813,6 +881,7 @@ interface components {
|
|
|
813
881
|
headers: never;
|
|
814
882
|
pathItems: never;
|
|
815
883
|
}
|
|
884
|
+
type $defs = Record<string, never>;
|
|
816
885
|
interface operations {
|
|
817
886
|
getTransferFactory: {
|
|
818
887
|
parameters: {
|
|
@@ -929,6 +998,14 @@ interface operations {
|
|
|
929
998
|
};
|
|
930
999
|
}
|
|
931
1000
|
|
|
1001
|
+
type transferInstructionV1_$defs = $defs;
|
|
1002
|
+
type transferInstructionV1_components = components;
|
|
1003
|
+
type transferInstructionV1_operations = operations;
|
|
1004
|
+
type transferInstructionV1_webhooks = webhooks;
|
|
1005
|
+
declare namespace transferInstructionV1 {
|
|
1006
|
+
export type { transferInstructionV1_$defs as $defs, transferInstructionV1_components as components, transferInstructionV1_operations as operations, paths$1 as paths, transferInstructionV1_webhooks as webhooks };
|
|
1007
|
+
}
|
|
1008
|
+
|
|
932
1009
|
type paths = paths$4 & paths$2 & paths$1 & paths$3;
|
|
933
1010
|
type PostEndpoint = {
|
|
934
1011
|
[Pathname in keyof paths]: paths[Pathname] extends {
|
|
@@ -1825,5 +1902,14 @@ type Beneficiaries = {
|
|
|
1825
1902
|
weight: number;
|
|
1826
1903
|
};
|
|
1827
1904
|
|
|
1828
|
-
|
|
1905
|
+
declare namespace index {
|
|
1906
|
+
export {
|
|
1907
|
+
allocationInstructionV1 as AllocationInstructionV1,
|
|
1908
|
+
allocationV1 as AllocationV1,
|
|
1909
|
+
tokenMetadataV1 as MetadataV1,
|
|
1910
|
+
transferInstructionV1 as TransferInstructionV1,
|
|
1911
|
+
};
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
export { ALLOCATION_FACTORY_INTERFACE_ID, ALLOCATION_INSTRUCTION_INTERFACE_ID, ALLOCATION_INTERFACE_ID, ALLOCATION_REQUEST_INTERFACE_ID, Allocation, AllocationFactory, AllocationFactoryView, AllocationFactory_Allocate, AllocationFactory_PublicFetch, AllocationInstruction, AllocationInstructionResult, AllocationInstructionResult_Output, AllocationInstructionV1, AllocationInstructionView, AllocationInstruction_Update, AllocationInstruction_Withdraw, AllocationRequest, AllocationRequestV1, AllocationRequestView, AllocationRequest_Reject, AllocationRequest_Withdraw, AllocationSpecification, AllocationV1, AllocationView, Allocation_Cancel, Allocation_CancelResult, Allocation_ExecuteTransfer, Allocation_ExecuteTransferResult, Allocation_Withdraw, Allocation_WithdrawResult, AnyContract, AnyContractView, AnyValue, ChoiceContext, ChoiceExecutionMetadata, ExtraArgs, FEATURED_APP_DELEGATE_PROXY_INTERFACE_ID, HOLDING_INTERFACE_ID, Holding, HoldingV1, HoldingView, InstrumentId, Lock, MERGE_DELEGATION_BATCH_MERGE_UTILITY, MERGE_DELEGATION_PROPOSAL_TEMPLATE_ID, MERGE_DELEGATION_TEMPLATE_ID, METADATA_INTERFACE_ID, Metadata, MetadataV1, index as OffLedger, Reference, SettlementInfo, index_d as Splice, TRANSFER_FACTORY_INTERFACE_ID, TRANSFER_INSTRUCTION_INTERFACE_ID, TokenStandardClient, Transfer, TransferFactory, TransferFactoryView, TransferFactory_PublicFetch, TransferFactory_Transfer, TransferInstruction, TransferInstructionResult, TransferInstructionResult_Output, TransferInstructionStatus, TransferInstructionV1, TransferInstructionView, TransferInstruction_Accept, TransferInstruction_Reject, TransferInstruction_Update, TransferInstruction_Withdraw, TransferLeg, packageId };
|
|
1829
1915
|
export type { AllocationFactoryInterface, AllocationInstructionInterface, AllocationInterface, AllocationRequestInterface, AnyContractInterface, Beneficiaries, GetResponse, HoldingInterface, PostRequest, PostResponse, TransferFactoryInterface, TransferInstructionInterface, components$2 as allocationInstructionRegistryTypes, components$3 as allocationRegistryTypes, components$1 as metadataRegistryTypes, components as transferInstructionRegistryTypes };
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,SAAS,CAAA;AACvB,OAAO,KAAK,SAAS,MAAM,8BAA8B,CAAA;AAEzD,cAAc,sCAAsC,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1497,6 +1497,12 @@ function requireLib () {
|
|
|
1497
1497
|
|
|
1498
1498
|
var libExports = requireLib();
|
|
1499
1499
|
|
|
1500
|
+
var moduleExports$2 = requireModule();
|
|
1501
|
+
|
|
1502
|
+
var moduleExports$1 = requireModule$2();
|
|
1503
|
+
|
|
1504
|
+
var moduleExports = requireModule$3();
|
|
1505
|
+
|
|
1500
1506
|
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
1501
1507
|
// SPDX-License-Identifier: Apache-2.0
|
|
1502
1508
|
const TransferInstructionV1 = libExports.Splice.Api.Token.TransferInstructionV1;
|
|
@@ -1506,5 +1512,49 @@ const AllocationV1 = libExports.Splice.Api.Token.AllocationV1;
|
|
|
1506
1512
|
const HoldingV1 = libExports.Splice.Api.Token.HoldingV1;
|
|
1507
1513
|
const MetadataV1 = libExports.Splice.Api.Token.MetadataV1;
|
|
1508
1514
|
|
|
1509
|
-
|
|
1515
|
+
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
1516
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1517
|
+
|
|
1518
|
+
var allocationInstructionV1 = /*#__PURE__*/Object.freeze({
|
|
1519
|
+
__proto__: null
|
|
1520
|
+
});
|
|
1521
|
+
|
|
1522
|
+
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
1523
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1524
|
+
|
|
1525
|
+
var allocationV1 = /*#__PURE__*/Object.freeze({
|
|
1526
|
+
__proto__: null
|
|
1527
|
+
});
|
|
1528
|
+
|
|
1529
|
+
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
1530
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1531
|
+
|
|
1532
|
+
var tokenMetadataV1 = /*#__PURE__*/Object.freeze({
|
|
1533
|
+
__proto__: null
|
|
1534
|
+
});
|
|
1535
|
+
|
|
1536
|
+
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
1537
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1538
|
+
|
|
1539
|
+
var transferInstructionV1 = /*#__PURE__*/Object.freeze({
|
|
1540
|
+
__proto__: null
|
|
1541
|
+
});
|
|
1542
|
+
|
|
1543
|
+
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
1544
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1545
|
+
|
|
1546
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
1547
|
+
__proto__: null,
|
|
1548
|
+
AllocationInstructionV1: allocationInstructionV1,
|
|
1549
|
+
AllocationV1: allocationV1,
|
|
1550
|
+
MetadataV1: tokenMetadataV1,
|
|
1551
|
+
TransferInstructionV1: transferInstructionV1
|
|
1552
|
+
});
|
|
1553
|
+
|
|
1554
|
+
var Allocation = moduleExports.Allocation;
|
|
1555
|
+
var AllocationFactory = moduleExports$1.AllocationFactory;
|
|
1556
|
+
var AllocationInstruction = moduleExports$1.AllocationInstruction;
|
|
1557
|
+
var TransferFactory = moduleExports$2.TransferFactory;
|
|
1558
|
+
var TransferInstruction = moduleExports$2.TransferInstruction;
|
|
1559
|
+
export { ALLOCATION_FACTORY_INTERFACE_ID, ALLOCATION_INSTRUCTION_INTERFACE_ID, ALLOCATION_INTERFACE_ID, ALLOCATION_REQUEST_INTERFACE_ID, Allocation, AllocationFactory, AllocationInstruction, AllocationInstructionV1, AllocationRequestV1, AllocationV1, FEATURED_APP_DELEGATE_PROXY_INTERFACE_ID, HOLDING_INTERFACE_ID, HoldingV1, MERGE_DELEGATION_BATCH_MERGE_UTILITY, MERGE_DELEGATION_PROPOSAL_TEMPLATE_ID, MERGE_DELEGATION_TEMPLATE_ID, METADATA_INTERFACE_ID, MetadataV1, index as OffLedger, TRANSFER_FACTORY_INTERFACE_ID, TRANSFER_INSTRUCTION_INTERFACE_ID, TokenStandardClient, TransferFactory, TransferInstruction, TransferInstructionV1 };
|
|
1510
1560
|
//# sourceMappingURL=index.js.map
|