@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 +16 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -8
- package/package.json +2 -5
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
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;AAO1C,cAAc,0BAA0B,CAAA;AAExC,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,YAAY,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,GAAG,CAAA;IACT,IAAI,EAAE,QAAQ,CAAA;CACjB,CAAA;AAED,KAAK,YAAY,GAAG;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;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
|
+
"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.
|
|
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",
|