@dedot/cli 0.6.1 → 0.7.1-next.c1cff80e.4

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.
@@ -1,7 +1,7 @@
1
1
  import { rpc } from '@polkadot/types-support/metadata/static-substrate';
2
2
  import staticSubstrate from '@polkadot/types-support/metadata/v15/substrate-hex';
3
3
  import { ConstantExecutor } from '@dedot/api';
4
- import { $Metadata, PortableRegistry } from '@dedot/codecs';
4
+ import { $Metadata, PortableRegistry, unwrapOpaqueMetadata } from '@dedot/codecs';
5
5
  import * as $ from '@dedot/shape';
6
6
  import { hexToU8a, u8aToHex } from '@dedot/utils';
7
7
  import { getMetadataFromRuntime } from '@polkadot-api/wasm-executor';
@@ -52,7 +52,7 @@ export const parseMetadataFromWasm = async (runtimeFile) => {
52
52
  };
53
53
  };
54
54
  export const parseStaticSubstrate = async () => {
55
- const { runtimeVersion, metadata } = decodeMetadata(staticSubstrate);
55
+ const { runtimeVersion, metadata } = decodeMetadata(unwrapOpaqueMetadata(staticSubstrate));
56
56
  return {
57
57
  metadata,
58
58
  runtimeVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/cli",
3
- "version": "0.6.1",
3
+ "version": "0.7.1-next.c1cff80e.4+c1cff80",
4
4
  "author": "Thang X. Vu <thang@coongcrafts.io>",
5
5
  "homepage": "https://github.com/dedotdev/dedot/tree/main/packages/cli",
6
6
  "repository": {
@@ -22,12 +22,12 @@
22
22
  "test": "vitest --watch=false"
23
23
  },
24
24
  "dependencies": {
25
- "@dedot/api": "0.6.1",
26
- "@dedot/codecs": "0.6.1",
27
- "@dedot/codegen": "0.6.1",
25
+ "@dedot/api": "0.7.1-next.c1cff80e.4+c1cff80",
26
+ "@dedot/codecs": "0.7.1-next.c1cff80e.4+c1cff80",
27
+ "@dedot/codegen": "0.7.1-next.c1cff80e.4+c1cff80",
28
28
  "@polkadot-api/wasm-executor": "^0.1.2",
29
- "@polkadot/types-support": "~14.0.1",
30
- "ora": "^8.1.1",
29
+ "@polkadot/types-support": "^15.5.2",
30
+ "ora": "^8.2.0",
31
31
  "yargs": "^17.7.2"
32
32
  },
33
33
  "devDependencies": {
@@ -41,7 +41,7 @@
41
41
  "node": ">=18"
42
42
  },
43
43
  "license": "Apache-2.0",
44
- "gitHead": "90f161f221c4c4479c92f016591c601614594dd9",
44
+ "gitHead": "c1cff80e7e02cf2449c146cfb79ee9f2ee1f1291",
45
45
  "module": "./index.js",
46
46
  "types": "./index.d.ts"
47
47
  }