@canton-network/core-token-standard 0.3.0 → 0.4.1

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.d.ts CHANGED
@@ -1,16 +1,19 @@
1
1
  export * from './token-standard-client.js';
2
- import { Splice } from '@daml.js/token-standard-models-1.0.0';
3
2
  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
+ export type HoldingView = {
4
+ owner: string;
5
+ instrumentId: InstrumentId;
6
+ amount: number;
7
+ lock: any;
8
+ meta: Metadata;
9
+ };
10
+ type InstrumentId = {
11
+ admin: string;
12
+ id: string;
13
+ };
14
+ type Metadata = {
15
+ values: {
16
+ [key: string]: string;
17
+ };
18
+ };
16
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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,mBAAmB,6CAAuC,CAAA;AACvE,eAAO,MAAM,YAAY,sCAAgC,CAAA;AACzD,eAAO,MAAM,SAAS,mCAA6B,CAAA;AACnD,eAAO,MAAM,UAAU,oCAA8B,CAAA;AAGrD,YAAY,EACR,OAAO,EACP,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,gBAAgB,GACnB,MAAM,+EAA+E,CAAA;AAEtF,YAAY,EACR,QAAQ,EACR,mBAAmB,EACnB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5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AAA;CACb,CAAA;AAED,KAAK,QAAQ,GAAG;IACZ,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC,CAAA"}
package/dist/index.js CHANGED
@@ -2,13 +2,5 @@ export * from './token-standard-client.js';
2
2
  // Codegen outputs are treated as separate package
3
3
  // this gets around issues with relative paths imports in dist
4
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
5
  // Constants
7
6
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canton-network/core-token-standard",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "description": "daml codegen js for core token standard",
6
6
  "repository": "github:hyperledger-labs/splice-wallet-kernel",
@@ -14,10 +14,7 @@
14
14
  "clean": "tsc -b --clean; rm -rf dist"
15
15
  },
16
16
  "dependencies": {
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",
17
+ "@canton-network/core-types": "^0.3.1",
21
18
  "lodash": "^4.17.21",
22
19
  "openapi-fetch": "^0.14.0",
23
20
  "uuid": "^11.1.0",