@dedot/codegen 0.0.1-alpha.6 → 0.0.1-alpha.8

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.
@@ -0,0 +1,7 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ChainConsts extends GenericChainConsts {
6
+ {{{ defTypeOut }}}
7
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ChainErrors extends GenericChainErrors {
6
+ {{{ defTypeOut }}}
7
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ChainEvents extends GenericChainEvents {
6
+ {{{ defTypeOut }}}
7
+ }
@@ -0,0 +1,22 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import { GenericSubstrateApi } from '@dedot/types';
4
+ import { ChainConsts } from './consts';
5
+ import { ChainStorage } from './query';
6
+ import { RpcCalls } from './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: RpcCalls;
16
+ consts: ChainConsts;
17
+ query: ChainStorage;
18
+ errors: ChainErrors;
19
+ events: ChainEvents;
20
+ call: RuntimeApis;
21
+ tx: ChainTx;
22
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ChainStorage extends GenericChainStorage {
6
+ {{{ defTypeOut }}}
7
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface RpcCalls extends GenericRpcCalls {
6
+ {{{rpcCallsOut}}}
7
+ }
@@ -0,0 +1,8 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface RuntimeApis extends GenericRuntimeApis {
6
+ {{{ runtimeCallsOut }}}
7
+ }
8
+
@@ -0,0 +1,9 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ {{{ defTypes }}}
6
+
7
+ export interface ChainTx extends GenericChainTx<TxCall> {
8
+ {{{ txDefsOut }}}
9
+ }
@@ -0,0 +1,5 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ {{{ defTypeOut }}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/codegen",
3
- "version": "0.0.1-alpha.6+6fbf1fe",
3
+ "version": "0.0.1-alpha.8+a951731",
4
4
  "description": "Generate types",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "homepage": "https://github.com/dedotdev/dedot/tree/main/packages/codegen",
@@ -12,16 +12,17 @@
12
12
  "main": "./cjs/index.js",
13
13
  "type": "module",
14
14
  "scripts": {
15
- "build": "tsc --project tsconfig.build.json && tsc --project tsconfig.build.cjs.json",
16
- "clean": "rm -rf ./dist && rm -rf ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo"
15
+ "build": "tsc --project tsconfig.build.json && tsc --project tsconfig.build.cjs.json && yarn copy",
16
+ "clean": "rm -rf ./dist && rm -rf ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo",
17
+ "copy": "cp -R ./src/templates ./dist && cp -R ./src/templates ./dist/cjs"
17
18
  },
18
19
  "dependencies": {
19
- "@dedot/codecs": "0.0.1-alpha.6+6fbf1fe",
20
- "@dedot/shape": "0.0.1-alpha.6+6fbf1fe",
21
- "@dedot/specs": "0.0.1-alpha.6+6fbf1fe",
22
- "@dedot/utils": "0.0.1-alpha.6+6fbf1fe",
20
+ "@dedot/codecs": "0.0.1-alpha.8+a951731",
21
+ "@dedot/shape": "0.0.1-alpha.8+a951731",
22
+ "@dedot/specs": "0.0.1-alpha.8+a951731",
23
+ "@dedot/utils": "0.0.1-alpha.8+a951731",
23
24
  "@polkadot/util": "^12.6.2",
24
- "dedot": "0.0.1-alpha.6+6fbf1fe",
25
+ "dedot": "0.0.1-alpha.8+a951731",
25
26
  "handlebars": "^4.7.8",
26
27
  "prettier": "^3.0.3"
27
28
  },
@@ -30,7 +31,7 @@
30
31
  "directory": "dist"
31
32
  },
32
33
  "license": "Apache-2.0",
33
- "gitHead": "6fbf1fe509c7c07569adc4c1cced998c809458e0",
34
+ "gitHead": "a951731c63fd9a09b3e9e90cb424ec152fb3abdd",
34
35
  "module": "./index.js",
35
36
  "types": "./index.d.ts",
36
37
  "exports": {
@@ -0,0 +1,7 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ChainConsts extends GenericChainConsts {
6
+ {{{ defTypeOut }}}
7
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ChainErrors extends GenericChainErrors {
6
+ {{{ defTypeOut }}}
7
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ChainEvents extends GenericChainEvents {
6
+ {{{ defTypeOut }}}
7
+ }
@@ -0,0 +1,22 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import { GenericSubstrateApi } from '@dedot/types';
4
+ import { ChainConsts } from './consts';
5
+ import { ChainStorage } from './query';
6
+ import { RpcCalls } from './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: RpcCalls;
16
+ consts: ChainConsts;
17
+ query: ChainStorage;
18
+ errors: ChainErrors;
19
+ events: ChainEvents;
20
+ call: RuntimeApis;
21
+ tx: ChainTx;
22
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ChainStorage extends GenericChainStorage {
6
+ {{{ defTypeOut }}}
7
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface RpcCalls extends GenericRpcCalls {
6
+ {{{rpcCallsOut}}}
7
+ }
@@ -0,0 +1,8 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface RuntimeApis extends GenericRuntimeApis {
6
+ {{{ runtimeCallsOut }}}
7
+ }
8
+
@@ -0,0 +1,9 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ {{{ defTypes }}}
6
+
7
+ export interface ChainTx extends GenericChainTx<TxCall> {
8
+ {{{ txDefsOut }}}
9
+ }
@@ -0,0 +1,5 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ {{{ importTypes }}}
4
+
5
+ {{{ defTypeOut }}}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.currentDirname = void 0;
4
- const path_1 = require("path");
5
- const url_1 = require("url");
6
- const currentDirname = () => {
7
- const __filename = (0, url_1.fileURLToPath)(import.meta.url);
8
- return (0, path_1.dirname)(__filename);
9
- };
10
- exports.currentDirname = currentDirname;
@@ -1,4 +0,0 @@
1
- exports.currentDirname = () => {
2
- return __dirname;
3
- };
4
- export {};
@@ -1 +0,0 @@
1
- export function currentDirname(): string;
File without changes
File without changes
File without changes