@canton-network/core-token-standard 0.1.1 → 0.3.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/README.md +3 -0
- package/dist/index.d.ts +14 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/interface-ids.const.d.ts +9 -0
- package/dist/interface-ids.const.d.ts.map +1 -0
- package/dist/interface-ids.const.js +8 -0
- package/dist/token-standard-client.d.ts +4 -4
- package/dist/token-standard-client.d.ts.map +1 -1
- package/package.json +6 -3
package/README.md
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
export * from './token-standard-client.js';
|
|
2
|
-
|
|
2
|
+
import { Splice } from '@daml.js/token-standard-models-1.0.0';
|
|
3
|
+
export * from './interface-ids.const.js';
|
|
4
|
+
export declare const TransferInstructionV1: typeof Splice.Api.Token.TransferInstructionV1;
|
|
5
|
+
export declare const AllocationInstructionV1: typeof Splice.Api.Token.AllocationInstructionV1;
|
|
6
|
+
export declare const AllocationRequestV1: typeof Splice.Api.Token.AllocationRequestV1;
|
|
7
|
+
export declare const AllocationV1: typeof Splice.Api.Token.AllocationV1;
|
|
8
|
+
export declare const HoldingV1: typeof Splice.Api.Token.HoldingV1;
|
|
9
|
+
export declare const MetadataV1: typeof Splice.Api.Token.MetadataV1;
|
|
10
|
+
export type { Holding, HoldingView, Lock, InstrumentId, HoldingInterface, } from '@daml.js/token-standard-models-1.0.0/lib/Splice/Api/Token/HoldingV1/module.js';
|
|
11
|
+
export type { Transfer, TransferInstruction, TransferInstructionView, TransferInstruction_Accept, TransferInstruction_Reject, TransferInstruction_Withdraw, TransferInstruction_Update, TransferFactory, TransferFactoryView, TransferFactory_PublicFetch, TransferFactory_Transfer, TransferInstructionResult, TransferInstructionResult_Output, TransferInstructionStatus, TransferFactoryInterface, TransferInstructionInterface, } from '@daml.js/token-standard-models-1.0.0/lib/Splice/Api/Token/TransferInstructionV1/module.js';
|
|
12
|
+
export type { AllocationFactory_Allocate, AllocationFactoryView, AllocationFactory_PublicFetch, AllocationInstruction_Update, AllocationInstruction_Withdraw, AllocationInstructionView, AllocationInstructionResult, AllocationInstructionResult_Output, AllocationFactory, AllocationFactoryInterface, AllocationInstruction, AllocationInstructionInterface, } from '@daml.js/token-standard-models-1.0.0/lib/Splice/Api/Token/AllocationInstructionV1/module.js';
|
|
13
|
+
export type { AllocationRequest, AllocationRequestView, AllocationRequest_Reject, AllocationRequest_Withdraw, AllocationRequestInterface, } from '@daml.js/token-standard-models-1.0.0/lib/Splice/Api/Token/AllocationRequestV1/module.js';
|
|
14
|
+
export type { AllocationSpecification, TransferLeg, SettlementInfo, Reference, AllocationView, Allocation, AllocationInterface, Allocation_Withdraw, Allocation_Cancel, Allocation_ExecuteTransfer, Allocation_WithdrawResult, Allocation_CancelResult, Allocation_ExecuteTransferResult, } from '@daml.js/token-standard-models-1.0.0/lib/Splice/Api/Token/AllocationV1/module.js';
|
|
15
|
+
export type { ExtraArgs, Metadata, ChoiceExecutionMetadata, AnyContract, AnyContractInterface, AnyContractView, ChoiceContext, AnyValue, } from '@daml.js/token-standard-models-1.0.0/lib/Splice/Api/Token/MetadataV1/module.js';
|
|
3
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAK1C,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAA;AAG7D,cAAc,0BAA0B,CAAA;AAGxC,eAAO,MAAM,qBAAqB,+CAAyC,CAAA;AAC3E,eAAO,MAAM,uBAAuB,iDAA2C,CAAA;AAC/E,eAAO,MAAM,mBAA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|
export * from './token-standard-client.js';
|
|
2
|
+
// Codegen outputs are treated as separate package
|
|
3
|
+
// this gets around issues with relative paths imports in dist
|
|
4
|
+
// That arisen because of daml codegen outputting only .js and .d.ts files
|
|
5
|
+
import { Splice } from '@daml.js/token-standard-models-1.0.0';
|
|
6
|
+
// Constants
|
|
7
|
+
export * from './interface-ids.const.js';
|
|
8
|
+
// Values only
|
|
9
|
+
export const TransferInstructionV1 = Splice.Api.Token.TransferInstructionV1;
|
|
10
|
+
export const AllocationInstructionV1 = Splice.Api.Token.AllocationInstructionV1;
|
|
11
|
+
export const AllocationRequestV1 = Splice.Api.Token.AllocationRequestV1;
|
|
12
|
+
export const AllocationV1 = Splice.Api.Token.AllocationV1;
|
|
13
|
+
export const HoldingV1 = Splice.Api.Token.HoldingV1;
|
|
14
|
+
export const MetadataV1 = Splice.Api.Token.MetadataV1;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const ALLOCATION_FACTORY_INTERFACE_ID = "#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory";
|
|
2
|
+
export declare const ALLOCATION_INSTRUCTION_INTERFACE_ID = "#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction";
|
|
3
|
+
export declare const ALLOCATION_REQUEST_INTERFACE_ID = "#splice-api-token-allocation-request-v1:Splice.Api.Token.AllocationRequestV1:AllocationRequest";
|
|
4
|
+
export declare const ALLOCATION_INTERFACE_ID = "#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation";
|
|
5
|
+
export declare const HOLDING_INTERFACE_ID = "#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding";
|
|
6
|
+
export declare const METADATA_INTERFACE_ID = "#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract";
|
|
7
|
+
export declare const TRANSFER_FACTORY_INTERFACE_ID = "#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory";
|
|
8
|
+
export declare const TRANSFER_INSTRUCTION_INTERFACE_ID = "#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction";
|
|
9
|
+
//# sourceMappingURL=interface-ids.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface-ids.const.d.ts","sourceRoot":"","sources":["../src/interface-ids.const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,2GACgE,CAAA;AAC5G,eAAO,MAAM,mCAAmC,+GACgE,CAAA;AAChH,eAAO,MAAM,+BAA+B,mGACwD,CAAA;AACpG,eAAO,MAAM,uBAAuB,6EAC0C,CAAA;AAC9E,eAAO,MAAM,oBAAoB,oEACoC,CAAA;AACrE,eAAO,MAAM,qBAAqB,0EACyC,CAAA;AAC3E,eAAO,MAAM,6BAA6B,qGAC4D,CAAA;AACtG,eAAO,MAAM,iCAAiC,yGAC4D,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const ALLOCATION_FACTORY_INTERFACE_ID = '#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory';
|
|
2
|
+
export const ALLOCATION_INSTRUCTION_INTERFACE_ID = '#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction';
|
|
3
|
+
export const ALLOCATION_REQUEST_INTERFACE_ID = '#splice-api-token-allocation-request-v1:Splice.Api.Token.AllocationRequestV1:AllocationRequest';
|
|
4
|
+
export const ALLOCATION_INTERFACE_ID = '#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation';
|
|
5
|
+
export const HOLDING_INTERFACE_ID = '#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding';
|
|
6
|
+
export const METADATA_INTERFACE_ID = '#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract';
|
|
7
|
+
export const TRANSFER_FACTORY_INTERFACE_ID = '#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory';
|
|
8
|
+
export const TRANSFER_INSTRUCTION_INTERFACE_ID = '#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { paths as allocation } from './generated-clients/splice-api-token-allocation-v1/allocation-v1';
|
|
2
|
-
import { paths as metadata } from './generated-clients/splice-api-token-metadata-v1/token-metadata-v1';
|
|
3
|
-
import { paths as transferInstruction } from './generated-clients/splice-api-token-transfer-instruction-v1/transfer-instruction-v1';
|
|
4
|
-
import { paths as allocationInstruction } from './generated-clients/splice-api-token-allocation-instruction-v1/allocation-instruction-v1';
|
|
1
|
+
import { paths as allocation } from './generated-clients/splice-api-token-allocation-v1/allocation-v1.js';
|
|
2
|
+
import { paths as metadata } from './generated-clients/splice-api-token-metadata-v1/token-metadata-v1.js';
|
|
3
|
+
import { paths as transferInstruction } from './generated-clients/splice-api-token-transfer-instruction-v1/transfer-instruction-v1.js';
|
|
4
|
+
import { paths as allocationInstruction } from './generated-clients/splice-api-token-allocation-instruction-v1/allocation-instruction-v1.js';
|
|
5
5
|
import { Logger } from '@canton-network/core-types';
|
|
6
6
|
type paths = allocation & metadata & transferInstruction & allocationInstruction;
|
|
7
7
|
type PostEndpoint = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-standard-client.d.ts","sourceRoot":"","sources":["../src/token-standard-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"token-standard-client.d.ts","sourceRoot":"","sources":["../src/token-standard-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,qEAAqE,CAAA;AACzG,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,uEAAuE,CAAA;AACzG,OAAO,EAAE,KAAK,IAAI,mBAAmB,EAAE,MAAM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E;YAAE,GAAG,EAAE;gBAAE,OAAO,EAAE;oBAAE,kBAAkB,EAAE,MAAM,GAAG,CAAA;iBAAE,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,CAAA;CAC9E,GACK,GAAG,GACH,KAAK,CAAA;AAEX,qBAAa,mBAAmB;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;gBAEnB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAkB9C,IAAI,CAAC,IAAI,SAAS,YAAY,EACvC,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,EACvB,MAAM,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC7B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KACjC,GACF,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IASjB,GAAG,CAAC,IAAI,SAAS,WAAW,EACrC,IAAI,EAAE,IAAI,EACV,MAAM,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC7B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KACjC,GACF,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAYf,YAAY;CAU7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canton-network/core-token-standard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "daml codegen js for core token standard",
|
|
6
6
|
"repository": "github:hyperledger-labs/splice-wallet-kernel",
|
|
@@ -14,13 +14,16 @@
|
|
|
14
14
|
"clean": "tsc -b --clean; rm -rf dist"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@canton-network/core-types": "^0.
|
|
17
|
+
"@canton-network/core-types": "^0.2.0",
|
|
18
|
+
"@daml.js/token-standard-models-1.0.0": "file:src/token-standard-models-1.0.0",
|
|
19
|
+
"@daml/ledger": "3.4.0-snapshot.20250616.13911.0.v482d9ec0",
|
|
20
|
+
"@daml/types": "3.4.0-snapshot.20250616.13911.0.v482d9ec0",
|
|
21
|
+
"lodash": "^4.17.21",
|
|
18
22
|
"openapi-fetch": "^0.14.0",
|
|
19
23
|
"uuid": "^11.1.0",
|
|
20
24
|
"zod": "^3.25.67"
|
|
21
25
|
},
|
|
22
26
|
"devDependencies": {
|
|
23
|
-
"@daml/types": "3.4.0-snapshot.20250616.13911.0.v482d9ec0",
|
|
24
27
|
"typescript": "^5.8.3"
|
|
25
28
|
},
|
|
26
29
|
"files": [
|