@dedot/codegen 1.0.0 → 1.0.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.
@@ -13,6 +13,7 @@ export class IndexGen {
13
13
  // Clear cache and setup type imports
14
14
  this.typesGen.clearCache();
15
15
  this.typesGen.typeImports.addKnownType('GenericSubstrateApi', 'GenericChainKnownTypes');
16
+ this.typesGen.typeImports.addPortableType('FrameSystemEventRecord');
16
17
  // Extract type IDs from metadata.extrinsic
17
18
  const { callTypeId, addressTypeId, signatureTypeId, signedExtensions } = this.typesGen.metadata.extrinsic;
18
19
  // Generate proper TypeScript types using typeOut format (0, true)
@@ -18,6 +18,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
18
18
  RuntimeCall: {{{runtimeCallType}}};
19
19
  Extra: {{{extraType}}};
20
20
  AssetId: {{{assetIdType}}};
21
+ EventRecord: FrameSystemEventRecord;
21
22
  }
22
23
 
23
24
  {{interfaceDocs}}export interface {{{interfaceName}}} extends GenericSubstrateApi {
@@ -16,6 +16,7 @@ class IndexGen {
16
16
  // Clear cache and setup type imports
17
17
  this.typesGen.clearCache();
18
18
  this.typesGen.typeImports.addKnownType('GenericSubstrateApi', 'GenericChainKnownTypes');
19
+ this.typesGen.typeImports.addPortableType('FrameSystemEventRecord');
19
20
  // Extract type IDs from metadata.extrinsic
20
21
  const { callTypeId, addressTypeId, signatureTypeId, signedExtensions } = this.typesGen.metadata.extrinsic;
21
22
  // Generate proper TypeScript types using typeOut format (0, true)
@@ -18,6 +18,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
18
18
  RuntimeCall: {{{runtimeCallType}}};
19
19
  Extra: {{{extraType}}};
20
20
  AssetId: {{{assetIdType}}};
21
+ EventRecord: FrameSystemEventRecord;
21
22
  }
22
23
 
23
24
  {{interfaceDocs}}export interface {{{interfaceName}}} extends GenericSubstrateApi {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/codegen",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Generate types",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -19,14 +19,14 @@
19
19
  "copy": "cp -R ./src/chaintypes/templates ./dist/chaintypes && cp -R ./src/chaintypes/templates ./dist/cjs/chaintypes && cp -R ./src/typink/templates ./dist/typink && cp -R ./src/typink/templates ./dist/cjs/typink && cp -R ./src/sol/templates ./dist/sol && cp -R ./src/sol/templates ./dist/cjs/sol"
20
20
  },
21
21
  "dependencies": {
22
- "@dedot/api": "1.0.0",
23
- "@dedot/codecs": "1.0.0",
24
- "@dedot/contracts": "1.0.0",
25
- "@dedot/providers": "1.0.0",
26
- "@dedot/runtime-specs": "1.0.0",
27
- "@dedot/shape": "1.0.0",
28
- "@dedot/types": "1.0.0",
29
- "@dedot/utils": "1.0.0",
22
+ "@dedot/api": "1.0.1",
23
+ "@dedot/codecs": "1.0.1",
24
+ "@dedot/contracts": "1.0.1",
25
+ "@dedot/providers": "1.0.1",
26
+ "@dedot/runtime-specs": "1.0.1",
27
+ "@dedot/shape": "1.0.1",
28
+ "@dedot/types": "1.0.1",
29
+ "@dedot/utils": "1.0.1",
30
30
  "handlebars": "^4.7.8",
31
31
  "prettier": "^3.7.3"
32
32
  },
@@ -38,7 +38,7 @@
38
38
  "node": ">=18"
39
39
  },
40
40
  "license": "Apache-2.0",
41
- "gitHead": "7767062a2188b4ac90561c5ad3cc3f06ac608a24",
41
+ "gitHead": "f9f1bd894a76672675008e1f94d4f98422e9655e",
42
42
  "module": "./index.js",
43
43
  "types": "./index.d.ts",
44
44
  "exports": {