@dedot/codegen 0.0.1-next.c3d95ac1.3 → 0.0.1-next.cb041b89.17

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.
Files changed (130) hide show
  1. package/{generator → chaintypes/generator}/ApiGen.d.ts +4 -4
  2. package/{generator → chaintypes/generator}/ConstsGen.d.ts +1 -1
  3. package/{generator → chaintypes/generator}/ConstsGen.js +5 -5
  4. package/{generator → chaintypes/generator}/ErrorsGen.d.ts +1 -1
  5. package/{generator → chaintypes/generator}/ErrorsGen.js +8 -8
  6. package/{generator → chaintypes/generator}/EventsGen.d.ts +1 -1
  7. package/{generator → chaintypes/generator}/EventsGen.js +8 -8
  8. package/{generator → chaintypes/generator}/IndexGen.d.ts +1 -1
  9. package/chaintypes/generator/IndexGen.js +17 -0
  10. package/{generator → chaintypes/generator}/JsonRpcGen.d.ts +3 -2
  11. package/{generator → chaintypes/generator}/JsonRpcGen.js +8 -8
  12. package/{generator → chaintypes/generator}/QueryGen.d.ts +1 -1
  13. package/{generator → chaintypes/generator}/QueryGen.js +21 -12
  14. package/{generator → chaintypes/generator}/RuntimeApisGen.d.ts +2 -2
  15. package/{generator → chaintypes/generator}/RuntimeApisGen.js +11 -11
  16. package/{generator → chaintypes/generator}/TxGen.d.ts +1 -1
  17. package/{generator → chaintypes/generator}/TxGen.js +13 -11
  18. package/chaintypes/generator/TypesGen.d.ts +11 -0
  19. package/chaintypes/generator/TypesGen.js +55 -0
  20. package/chaintypes/index.d.ts +3 -0
  21. package/chaintypes/index.js +49 -0
  22. package/chaintypes/templates/consts.hbs +7 -0
  23. package/chaintypes/templates/errors.hbs +7 -0
  24. package/chaintypes/templates/events.hbs +7 -0
  25. package/chaintypes/templates/index.hbs +27 -0
  26. package/chaintypes/templates/json-rpc.hbs +5 -0
  27. package/chaintypes/templates/query.hbs +7 -0
  28. package/chaintypes/templates/runtime.hbs +8 -0
  29. package/chaintypes/templates/tx.hbs +9 -0
  30. package/{templates → chaintypes/templates}/types.hbs +1 -1
  31. package/cjs/{generator → chaintypes/generator}/ConstsGen.js +5 -5
  32. package/cjs/{generator → chaintypes/generator}/ErrorsGen.js +8 -8
  33. package/cjs/{generator → chaintypes/generator}/EventsGen.js +8 -8
  34. package/cjs/chaintypes/generator/IndexGen.js +21 -0
  35. package/cjs/{generator → chaintypes/generator}/JsonRpcGen.js +10 -10
  36. package/cjs/{generator → chaintypes/generator}/QueryGen.js +21 -12
  37. package/cjs/{generator → chaintypes/generator}/RuntimeApisGen.js +14 -14
  38. package/cjs/{generator → chaintypes/generator}/TxGen.js +13 -11
  39. package/cjs/chaintypes/generator/TypesGen.js +59 -0
  40. package/cjs/chaintypes/index.js +77 -0
  41. package/cjs/chaintypes/templates/consts.hbs +7 -0
  42. package/cjs/chaintypes/templates/errors.hbs +7 -0
  43. package/cjs/chaintypes/templates/events.hbs +7 -0
  44. package/cjs/chaintypes/templates/index.hbs +27 -0
  45. package/cjs/chaintypes/templates/json-rpc.hbs +5 -0
  46. package/cjs/chaintypes/templates/query.hbs +7 -0
  47. package/cjs/chaintypes/templates/runtime.hbs +8 -0
  48. package/cjs/chaintypes/templates/tx.hbs +9 -0
  49. package/cjs/{templates → chaintypes/templates}/types.hbs +1 -1
  50. package/cjs/index.js +4 -62
  51. package/cjs/{generator/TypesGen.js → shared/BaseTypesGen.js} +88 -140
  52. package/cjs/{generator → shared}/TypeImports.js +27 -9
  53. package/cjs/shared/index.js +19 -0
  54. package/cjs/{generator → shared}/known-codecs.js +24 -5
  55. package/cjs/typink/generator/ConstructorQueryGen.js +24 -0
  56. package/cjs/typink/generator/ConstructorTxGen.js +24 -0
  57. package/cjs/typink/generator/IndexGen.js +24 -0
  58. package/cjs/typink/generator/QueryGen.js +72 -0
  59. package/cjs/typink/generator/TxGen.js +25 -0
  60. package/cjs/typink/generator/TypesGen.js +35 -0
  61. package/cjs/typink/generator/index.js +22 -0
  62. package/cjs/typink/index.js +37 -0
  63. package/cjs/typink/templates/constructor-query.hbs +7 -0
  64. package/cjs/typink/templates/constructor-tx.hbs +7 -0
  65. package/cjs/typink/templates/index.hbs +14 -0
  66. package/cjs/typink/templates/query.hbs +7 -0
  67. package/cjs/typink/templates/tx.hbs +7 -0
  68. package/cjs/typink/templates/types.hbs +5 -0
  69. package/cjs/{generator/utils.js → utils.js} +3 -3
  70. package/index.d.ts +2 -3
  71. package/index.js +2 -48
  72. package/package.json +16 -18
  73. package/{generator/TypesGen.d.ts → shared/BaseTypesGen.d.ts} +12 -11
  74. package/{generator/TypesGen.js → shared/BaseTypesGen.js} +85 -137
  75. package/{generator → shared}/TypeImports.d.ts +12 -3
  76. package/{generator → shared}/TypeImports.js +27 -9
  77. package/shared/index.d.ts +3 -0
  78. package/shared/index.js +3 -0
  79. package/{generator → shared}/known-codecs.d.ts +1 -1
  80. package/{generator → shared}/known-codecs.js +22 -3
  81. package/typink/generator/ConstructorQueryGen.d.ts +6 -0
  82. package/typink/generator/ConstructorQueryGen.js +20 -0
  83. package/typink/generator/ConstructorTxGen.d.ts +6 -0
  84. package/typink/generator/ConstructorTxGen.js +20 -0
  85. package/typink/generator/IndexGen.d.ts +6 -0
  86. package/typink/generator/IndexGen.js +20 -0
  87. package/typink/generator/QueryGen.d.ts +12 -0
  88. package/typink/generator/QueryGen.js +68 -0
  89. package/typink/generator/TxGen.d.ts +6 -0
  90. package/typink/generator/TxGen.js +21 -0
  91. package/typink/generator/TypesGen.d.ts +8 -0
  92. package/typink/generator/TypesGen.js +31 -0
  93. package/typink/generator/index.d.ts +6 -0
  94. package/typink/generator/index.js +6 -0
  95. package/typink/index.d.ts +2 -0
  96. package/typink/index.js +30 -0
  97. package/typink/templates/constructor-query.hbs +7 -0
  98. package/typink/templates/constructor-tx.hbs +7 -0
  99. package/typink/templates/index.hbs +14 -0
  100. package/typink/templates/query.hbs +7 -0
  101. package/typink/templates/tx.hbs +7 -0
  102. package/typink/templates/types.hbs +5 -0
  103. package/{generator/utils.d.ts → utils.d.ts} +1 -1
  104. package/{generator/utils.js → utils.js} +3 -3
  105. package/cjs/generator/IndexGen.js +0 -17
  106. package/cjs/templates/consts.hbs +0 -7
  107. package/cjs/templates/errors.hbs +0 -7
  108. package/cjs/templates/events.hbs +0 -7
  109. package/cjs/templates/index.hbs +0 -22
  110. package/cjs/templates/json-rpc.hbs +0 -5
  111. package/cjs/templates/query.hbs +0 -7
  112. package/cjs/templates/runtime.hbs +0 -8
  113. package/cjs/templates/tx.hbs +0 -9
  114. package/generator/IndexGen.js +0 -13
  115. package/templates/consts.hbs +0 -7
  116. package/templates/errors.hbs +0 -7
  117. package/templates/events.hbs +0 -7
  118. package/templates/index.hbs +0 -22
  119. package/templates/json-rpc.hbs +0 -5
  120. package/templates/query.hbs +0 -7
  121. package/templates/runtime.hbs +0 -8
  122. package/templates/tx.hbs +0 -9
  123. /package/{generator → chaintypes/generator}/ApiGen.js +0 -0
  124. /package/{generator → chaintypes/generator}/index.d.ts +0 -0
  125. /package/{generator → chaintypes/generator}/index.js +0 -0
  126. /package/cjs/{generator → chaintypes/generator}/ApiGen.js +0 -0
  127. /package/cjs/{generator → chaintypes/generator}/index.js +0 -0
  128. /package/cjs/{generator/dirname.js → dirname.js} +0 -0
  129. /package/{generator/dirname.d.ts → dirname.d.ts} +0 -0
  130. /package/{generator/dirname.js → dirname.js} +0 -0
@@ -0,0 +1,8 @@
1
+ import { ContractMetadata } from '@dedot/contracts';
2
+ import { BaseTypesGen } from '../../shared/index.js';
3
+ export declare class TypesGen extends BaseTypesGen {
4
+ contractMetadata: ContractMetadata;
5
+ constructor(contractMetadata: ContractMetadata);
6
+ generate(useSubPaths?: boolean): Promise<string>;
7
+ shouldGenerateTypeIn(id: number): boolean;
8
+ }
@@ -0,0 +1,31 @@
1
+ import { extractContractTypes } from '@dedot/contracts';
2
+ import { BaseTypesGen } from '../../shared/index.js';
3
+ import { beautifySourceCode, compileTemplate } from '../../utils.js';
4
+ const SKIP_TYPES = ['Result', 'Option'];
5
+ export class TypesGen extends BaseTypesGen {
6
+ contractMetadata;
7
+ constructor(contractMetadata) {
8
+ super(extractContractTypes(contractMetadata));
9
+ this.contractMetadata = contractMetadata;
10
+ this.skipTypes = SKIP_TYPES;
11
+ this.includedTypes = this.includeTypes();
12
+ }
13
+ generate(useSubPaths = false) {
14
+ let defTypeOut = '';
15
+ Object.values(this.includedTypes)
16
+ .filter(({ skip, knownType }) => !(skip || knownType))
17
+ .forEach(({ name, nameOut, id }) => {
18
+ defTypeOut += `export type ${nameOut} = ${this.generateType(id, 0, true)};\n\n`;
19
+ if (this.shouldGenerateTypeIn(id)) {
20
+ defTypeOut += `export type ${name} = ${this.generateType(id)};\n\n`;
21
+ }
22
+ });
23
+ const importTypes = this.typeImports.toImports({ excludeModules: ['./types'], useSubPaths });
24
+ const template = compileTemplate('typink/templates/types.hbs');
25
+ return beautifySourceCode(template({ importTypes, defTypeOut }));
26
+ }
27
+ shouldGenerateTypeIn(id) {
28
+ const { messages } = this.contractMetadata.spec;
29
+ return messages.some((message) => message.returnType.type === id);
30
+ }
31
+ }
@@ -0,0 +1,6 @@
1
+ export * from './IndexGen.js';
2
+ export * from './QueryGen.js';
3
+ export * from './TypesGen.js';
4
+ export * from './TxGen.js';
5
+ export * from './ConstructorTxGen.js';
6
+ export * from './ConstructorQueryGen.js';
@@ -0,0 +1,6 @@
1
+ export * from './IndexGen.js';
2
+ export * from './QueryGen.js';
3
+ export * from './TypesGen.js';
4
+ export * from './TxGen.js';
5
+ export * from './ConstructorTxGen.js';
6
+ export * from './ConstructorQueryGen.js';
@@ -0,0 +1,2 @@
1
+ import { ContractMetadata } from '@dedot/contracts';
2
+ export declare function generateContractTypes(metadata: ContractMetadata | string, contract?: string, outDir?: string, extension?: string, useSubPaths?: boolean): Promise<void>;
@@ -0,0 +1,30 @@
1
+ import { parseRawMetadata } from '@dedot/contracts';
2
+ import fs from 'fs';
3
+ import path from 'path';
4
+ import { IndexGen, QueryGen, TxGen, TypesGen, ConstructorTxGen, ConstructorQueryGen } from './generator/index.js';
5
+ export async function generateContractTypes(metadata, contract, outDir = '.', extension = 'd.ts', useSubPaths = false) {
6
+ let contractMetadata = typeof metadata === 'string' ? parseRawMetadata(metadata) : metadata;
7
+ contract = contract || contractMetadata.contract.name;
8
+ const dirPath = path.resolve(outDir, contract);
9
+ const typesFileName = path.join(dirPath, `types.${extension}`);
10
+ const queryTypesFileName = path.join(dirPath, `query.${extension}`);
11
+ const txTypesFileName = path.join(dirPath, `tx.${extension}`);
12
+ const constructorTxTypesFileName = path.join(dirPath, `constructor-tx.${extension}`);
13
+ const constructorQueryTypesFileName = path.join(dirPath, `constructor-query.${extension}`);
14
+ const indexTypesFileName = path.join(dirPath, `index.${extension}`);
15
+ if (!fs.existsSync(dirPath)) {
16
+ fs.mkdirSync(dirPath, { recursive: true });
17
+ }
18
+ const typesGen = new TypesGen(contractMetadata);
19
+ const queryGen = new QueryGen(contractMetadata, typesGen);
20
+ const txGen = new TxGen(contractMetadata, typesGen);
21
+ const constructorTxGen = new ConstructorTxGen(contractMetadata, typesGen);
22
+ const constructorQueryGen = new ConstructorQueryGen(contractMetadata, typesGen);
23
+ const indexGen = new IndexGen(contractMetadata);
24
+ fs.writeFileSync(typesFileName, await typesGen.generate(useSubPaths));
25
+ fs.writeFileSync(queryTypesFileName, await queryGen.generate(useSubPaths));
26
+ fs.writeFileSync(txTypesFileName, await txGen.generate(useSubPaths));
27
+ fs.writeFileSync(constructorQueryTypesFileName, await constructorQueryGen.generate(useSubPaths));
28
+ fs.writeFileSync(constructorTxTypesFileName, await constructorTxGen.generate(useSubPaths));
29
+ fs.writeFileSync(indexTypesFileName, await indexGen.generate(useSubPaths));
30
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ConstructorQuery<ChainApi extends GenericSubstrateApi> extends GenericConstructorQuery<ChainApi> {
6
+ {{{ constructorsOut }}}
7
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ConstructorTx<ChainApi extends GenericSubstrateApi> extends GenericConstructorTx<ChainApi> {
6
+ {{{ constructorsOut }}}
7
+ }
@@ -0,0 +1,14 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{importTypes}}}
4
+ import { ContractQuery } from './query';
5
+ import { ContractTx } from './tx';
6
+ import { ConstructorQuery } from './constructor-query';
7
+ import { ConstructorTx } from './constructor-tx';
8
+
9
+ export interface {{{contractName}}}<ChainApi extends VersionedGenericSubstrateApi = SubstrateApi> extends GenericContractApi<ChainApi[RpcVersion]> {
10
+ query: ContractQuery<ChainApi[RpcVersion]>;
11
+ tx: ContractTx<ChainApi[RpcVersion]>;
12
+ constructorQuery: ConstructorQuery<ChainApi[RpcVersion]>;
13
+ constructorTx: ConstructorTx<ChainApi[RpcVersion]>;
14
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ContractQuery<ChainApi extends GenericSubstrateApi> extends GenericContractQuery<ChainApi> {
6
+ {{{ queryCallsOut }}}
7
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ContractTx<ChainApi extends GenericSubstrateApi> extends GenericContractTx<ChainApi> {
6
+ {{{ txCallsOut }}}
7
+ }
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ {{{ defTypeOut }}}
@@ -2,7 +2,7 @@ export declare const WRAPPER_TYPE_REGEX: RegExp;
2
2
  export declare const TUPLE_TYPE_REGEX: RegExp;
3
3
  export declare const commentBlock: (...docs: (string | string[])[]) => string;
4
4
  export declare const beautifySourceCode: (source: string) => Promise<string>;
5
- export declare const compileTemplate: (templateFileName: string) => HandlebarsTemplateDelegate<any>;
5
+ export declare const compileTemplate: (templateFile: string) => HandlebarsTemplateDelegate<any>;
6
6
  /**
7
7
  * Check if a word is TypeScript/JavaScript reserved
8
8
  * @param word
@@ -7,7 +7,7 @@ export const WRAPPER_TYPE_REGEX = /^(\w+)<(.*)>$/;
7
7
  export const TUPLE_TYPE_REGEX = /^\[(.*)]$/;
8
8
  export const commentBlock = (...docs) => {
9
9
  const flatLines = docs.flat();
10
- if (flatLines.length === 0) {
10
+ if (flatLines.length === 0 || !flatLines.find((o) => !!o)) {
11
11
  return '';
12
12
  }
13
13
  else {
@@ -22,8 +22,8 @@ export const beautifySourceCode = async (source) => {
22
22
  const prettierOptions = await prettier.resolveConfig(path.resolve(currentDirname(), '../../../../.prettierrc.js'));
23
23
  return prettier.format(source, { parser: 'babel-ts', ...prettierOptions });
24
24
  };
25
- export const compileTemplate = (templateFileName) => {
26
- const templateFilePath = path.resolve(currentDirname(), `../templates/${templateFileName}`);
25
+ export const compileTemplate = (templateFile) => {
26
+ const templateFilePath = path.resolve(currentDirname(), templateFile);
27
27
  return handlebars.compile(fs.readFileSync(templateFilePath, 'utf8'));
28
28
  };
29
29
  // TODO add more reserved words
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IndexGen = void 0;
4
- const utils_js_1 = require("./utils.js");
5
- const utils_1 = require("@dedot/utils");
6
- class IndexGen {
7
- chain;
8
- constructor(chain) {
9
- this.chain = chain;
10
- }
11
- async generate() {
12
- const interfaceName = (0, utils_1.stringPascalCase)(this.chain);
13
- const template = (0, utils_js_1.compileTemplate)('index.hbs');
14
- return (0, utils_js_1.beautifySourceCode)(template({ interfaceName }));
15
- }
16
- }
17
- exports.IndexGen = IndexGen;
@@ -1,7 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export interface ChainConsts extends GenericChainConsts {
6
- {{{ defTypeOut }}}
7
- }
@@ -1,7 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export interface ChainErrors extends GenericChainErrors {
6
- {{{ defTypeOut }}}
7
- }
@@ -1,7 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export interface ChainEvents extends GenericChainEvents {
6
- {{{ defTypeOut }}}
7
- }
@@ -1,22 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- import { GenericSubstrateApi } from '@dedot/types';
4
- import { ChainConsts } from './consts';
5
- import { ChainStorage } from './query';
6
- import { ChainJsonRpcApis } from './json-rpc';
7
- import { ChainErrors } from './errors';
8
- import { ChainEvents } from './events';
9
- import { RuntimeApis } from './runtime';
10
- import { ChainTx } from './tx';
11
-
12
- export * from './types';
13
-
14
- export interface {{{interfaceName}}}Api extends GenericSubstrateApi {
15
- rpc: ChainJsonRpcApis;
16
- consts: ChainConsts;
17
- query: ChainStorage;
18
- errors: ChainErrors;
19
- events: ChainEvents;
20
- call: RuntimeApis;
21
- tx: ChainTx;
22
- }
@@ -1,5 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export type ChainJsonRpcApis = Pick<JsonRpcApis, {{{jsonRpcMethods}}}> & GenericJsonRpcApis;
@@ -1,7 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export interface ChainStorage extends GenericChainStorage {
6
- {{{ defTypeOut }}}
7
- }
@@ -1,8 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export interface RuntimeApis extends GenericRuntimeApis {
6
- {{{ runtimeCallsOut }}}
7
- }
8
-
@@ -1,9 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- {{{ defTypes }}}
6
-
7
- export interface ChainTx extends GenericChainTx<TxCall> {
8
- {{{ txDefsOut }}}
9
- }
@@ -1,13 +0,0 @@
1
- import { beautifySourceCode, compileTemplate } from './utils.js';
2
- import { stringPascalCase } from '@dedot/utils';
3
- export class IndexGen {
4
- chain;
5
- constructor(chain) {
6
- this.chain = chain;
7
- }
8
- async generate() {
9
- const interfaceName = stringPascalCase(this.chain);
10
- const template = compileTemplate('index.hbs');
11
- return beautifySourceCode(template({ interfaceName }));
12
- }
13
- }
@@ -1,7 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export interface ChainConsts extends GenericChainConsts {
6
- {{{ defTypeOut }}}
7
- }
@@ -1,7 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export interface ChainErrors extends GenericChainErrors {
6
- {{{ defTypeOut }}}
7
- }
@@ -1,7 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export interface ChainEvents extends GenericChainEvents {
6
- {{{ defTypeOut }}}
7
- }
@@ -1,22 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- import { GenericSubstrateApi } from '@dedot/types';
4
- import { ChainConsts } from './consts';
5
- import { ChainStorage } from './query';
6
- import { ChainJsonRpcApis } from './json-rpc';
7
- import { ChainErrors } from './errors';
8
- import { ChainEvents } from './events';
9
- import { RuntimeApis } from './runtime';
10
- import { ChainTx } from './tx';
11
-
12
- export * from './types';
13
-
14
- export interface {{{interfaceName}}}Api extends GenericSubstrateApi {
15
- rpc: ChainJsonRpcApis;
16
- consts: ChainConsts;
17
- query: ChainStorage;
18
- errors: ChainErrors;
19
- events: ChainEvents;
20
- call: RuntimeApis;
21
- tx: ChainTx;
22
- }
@@ -1,5 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export type ChainJsonRpcApis = Pick<JsonRpcApis, {{{jsonRpcMethods}}}> & GenericJsonRpcApis;
@@ -1,7 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export interface ChainStorage extends GenericChainStorage {
6
- {{{ defTypeOut }}}
7
- }
@@ -1,8 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- export interface RuntimeApis extends GenericRuntimeApis {
6
- {{{ runtimeCallsOut }}}
7
- }
8
-
package/templates/tx.hbs DELETED
@@ -1,9 +0,0 @@
1
- // Generated by @dedot/codegen
2
-
3
- {{{ importTypes }}}
4
-
5
- {{{ defTypes }}}
6
-
7
- export interface ChainTx extends GenericChainTx<TxCall> {
8
- {{{ txDefsOut }}}
9
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes