@canton-network/core-tx-visualizer 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/dist/Tx.test.js +2 -0
- package/dist/hashing_scheme_v2.d.ts.map +1 -1
- package/dist/hashing_scheme_v2.js +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -0
- package/package.json +4 -4
package/dist/Tx.test.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1
3
|
import { expect, test } from '@jest/globals';
|
|
2
4
|
import { PreparedTransaction } from '@canton-network/core-ledger-proto';
|
|
3
5
|
import * as path from 'path';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hashing_scheme_v2.d.ts","sourceRoot":"","sources":["../src/hashing_scheme_v2.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hashing_scheme_v2.d.ts","sourceRoot":"","sources":["../src/hashing_scheme_v2.ts"],"names":[],"mappings":"AAGA,OAAO,EAOH,mBAAmB,EACtB,MAAM,mCAAmC,CAAA;AA6C1C,wBAAsB,YAAY,CAAC,KAAK,GAAE,MAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAG1E;AAqbD,wBAAsB,0BAA0B,CAC5C,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,UAAU,CAAC,CAErB"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1
3
|
import { HashingSchemeVersion, } from '@canton-network/core-ledger-proto';
|
|
2
4
|
import { mkByteArray, sha256 } from './utils.js';
|
|
3
5
|
// Hash purpose reserved for prepared transaction
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAIvE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GAClC,qBAAqB,MAAM,KAC5B,mBAGF,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,GAChC,qBAAqB,MAAM,GAAG,mBAAmB,EACjD,SAAQ,QAAQ,GAAG,KAAgB,KACpC,OAAO,CAAC,MAAM,CAiBhB,CAAA;AAED,KAAK,gBAAgB,GAAG,MAAM,CAC1B,MAAM,EACN;IACI,YAAY,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,MAAM,EAAE,CAAA;CACtB,CACJ,CAAA;AAED,eAAO,MAAM,0BAA0B,GACnC,qBAAqB,MAAM,GAAG,mBAAmB,EACjD,oBAAoB,MAAM,EAAE,KAC7B,gBAgEF,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1
3
|
import { PreparedTransaction } from '@canton-network/core-ledger-proto';
|
|
2
4
|
import { computePreparedTransaction } from './hashing_scheme_v2.js';
|
|
3
5
|
import { fromBase64, toBase64, toHex } from './utils.js';
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAGA,gFAAgF;AAChF,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAQlD;AAED,yEAAyE;AACzE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAOjD;AAED,sEAAsE;AACtE,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAI/C;AAED,wBAAsB,MAAM,CACxB,OAAO,EAAE,MAAM,GAAG,UAAU,GAC7B,OAAO,CAAC,UAAU,CAAC,CASrB;AAED,yDAAyD;AACzD,wBAAsB,WAAW,CAC7B,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,UAAU,CAAC,EAAE,GACjC,OAAO,CAAC,UAAU,CAAC,CAuBrB"}
|
package/dist/utils.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1
3
|
/** Take a base64 encoded string and return a Uint8Array of the decoded bytes */
|
|
2
4
|
export function fromBase64(b64) {
|
|
3
5
|
const binaryString = atob(b64);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canton-network/core-tx-visualizer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Decode and visualize prepared transactions from Canton",
|
|
6
6
|
"repository": "github:hyperledger-labs/splice-wallet-kernel",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"clean": "tsc -b --clean; rm -rf dist"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@canton-network/core-ledger-proto": "^0.1.1",
|
|
19
18
|
"@jest/globals": "^29.0.0",
|
|
20
19
|
"@swc/jest": "^0.2.38",
|
|
21
20
|
"@types/jest": "^30.0.0",
|
|
@@ -23,16 +22,17 @@
|
|
|
23
22
|
"jest": "^30.0.0",
|
|
24
23
|
"ts-jest": "^29.4.0",
|
|
25
24
|
"ts-jest-resolver": "^2.0.1",
|
|
26
|
-
"ts-proto": "^2.7.5",
|
|
27
25
|
"typescript": "^5.8.3"
|
|
28
26
|
},
|
|
29
27
|
"dependencies": {
|
|
28
|
+
"@canton-network/core-ledger-proto": "^0.3.0",
|
|
30
29
|
"@protobuf-ts/runtime": "^2.11.1",
|
|
31
30
|
"@protobuf-ts/runtime-rpc": "^2.11.1",
|
|
32
31
|
"@swc/core": "^1.13.3",
|
|
33
32
|
"@types/node": "^22.15.30",
|
|
34
33
|
"camelcase-keys": "^9.1.3",
|
|
35
|
-
"rxjs": "^7.8.2"
|
|
34
|
+
"rxjs": "^7.8.2",
|
|
35
|
+
"ts-proto": "^2.7.5"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"dist/**"
|