@dedot/codegen 0.17.1-next.6d398d60.0 → 0.17.1-next.db98ff20.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.
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ConstructorQuery <ChainApi extends GenericSubstrateApi, Type extends MetadataType> extends GenericConstructorQuery <ChainApi, Type> {
6
+ {{{ constructorsOut }}}
7
+ }
@@ -0,0 +1,11 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ConstructorTx<
6
+ ChainApi extends GenericSubstrateApi,
7
+ ContractApi extends SolGenericContractApi,
8
+ Type extends MetadataType
9
+ > extends GenericConstructorTx <ChainApi, Type> {
10
+ {{{ constructorsOut }}}
11
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ContractEvents <ChainApi extends GenericSubstrateApi, Type extends MetadataType> extends GenericContractEvents <ChainApi, Type> {
6
+ {{{ eventsOut }}}
7
+ }
@@ -0,0 +1,23 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{importTypes}}}
4
+ import { ContractQuery } from './query.js';
5
+ import { ContractTx } from './tx.js';
6
+ import { ConstructorQuery } from './constructor-query.js';
7
+ import { ConstructorTx } from './constructor-tx.js';
8
+ import { ContractEvents } from './events.js';
9
+
10
+ export * from './types.js';
11
+
12
+ {{{interfaceDocs}}}export interface {{{interfaceName}}}<Rv extends RpcVersion = RpcVersion, ChainApi extends VersionedGenericSubstrateApi = SubstrateApi> extends SolGenericContractApi<Rv, ChainApi> {
13
+ metadataType: 'sol';
14
+ query: ContractQuery<ChainApi[Rv], 'sol'>;
15
+ tx: ContractTx<ChainApi[Rv], 'sol'>;
16
+ constructorQuery: ConstructorQuery<ChainApi[Rv], 'sol'>;
17
+ events: ContractEvents<ChainApi[Rv], 'sol'>;
18
+ constructorTx: ConstructorTx<ChainApi[Rv], {{{interfaceName}}}, 'sol'>;
19
+
20
+ types: {
21
+ ChainApi: ChainApi[Rv];
22
+ };
23
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ContractQuery<ChainApi extends GenericSubstrateApi, Type extends MetadataType> extends GenericContractQuery<ChainApi, Type> {
6
+ {{{ queryCallsOut }}}
7
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ContractTx<ChainApi extends GenericSubstrateApi, Type extends MetadataType> extends GenericContractTx<ChainApi, Type> {
6
+ {{{ txCallsOut }}}
7
+ }
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ {{{ defTypeOut }}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/codegen",
3
- "version": "0.17.1-next.6d398d60.0+6d398d60",
3
+ "version": "0.17.1-next.db98ff20.1+db98ff20",
4
4
  "description": "Generate types",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -16,17 +16,17 @@
16
16
  "build": "tsc --project tsconfig.build.json && tsc --project tsconfig.build.cjs.json && yarn copy",
17
17
  "test": "npx vitest --watch=false",
18
18
  "clean": "rm -rf ./dist && rm -rf ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo",
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"
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": "0.17.1-next.6d398d60.0+6d398d60",
23
- "@dedot/codecs": "0.17.1-next.6d398d60.0+6d398d60",
24
- "@dedot/contracts": "0.17.1-next.6d398d60.0+6d398d60",
25
- "@dedot/providers": "0.17.1-next.6d398d60.0+6d398d60",
26
- "@dedot/runtime-specs": "0.17.1-next.6d398d60.0+6d398d60",
27
- "@dedot/shape": "0.17.1-next.6d398d60.0+6d398d60",
28
- "@dedot/types": "0.17.1-next.6d398d60.0+6d398d60",
29
- "@dedot/utils": "0.17.1-next.6d398d60.0+6d398d60",
22
+ "@dedot/api": "0.17.1-next.db98ff20.1+db98ff20",
23
+ "@dedot/codecs": "0.17.1-next.db98ff20.1+db98ff20",
24
+ "@dedot/contracts": "0.17.1-next.db98ff20.1+db98ff20",
25
+ "@dedot/providers": "0.17.1-next.db98ff20.1+db98ff20",
26
+ "@dedot/runtime-specs": "0.17.1-next.db98ff20.1+db98ff20",
27
+ "@dedot/shape": "0.17.1-next.db98ff20.1+db98ff20",
28
+ "@dedot/types": "0.17.1-next.db98ff20.1+db98ff20",
29
+ "@dedot/utils": "0.17.1-next.db98ff20.1+db98ff20",
30
30
  "handlebars": "^4.7.8",
31
31
  "prettier": "^3.6.2"
32
32
  },
@@ -38,7 +38,7 @@
38
38
  "node": ">=18"
39
39
  },
40
40
  "license": "Apache-2.0",
41
- "gitHead": "6d398d6002387fa7e78ca6df194e5f30595a6be8",
41
+ "gitHead": "db98ff20684d2a74b5e5402cabf43ef601d05d31",
42
42
  "module": "./index.js",
43
43
  "types": "./index.d.ts",
44
44
  "exports": {
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ConstructorQuery <ChainApi extends GenericSubstrateApi, Type extends MetadataType> extends GenericConstructorQuery <ChainApi, Type> {
6
+ {{{ constructorsOut }}}
7
+ }
@@ -0,0 +1,11 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ConstructorTx<
6
+ ChainApi extends GenericSubstrateApi,
7
+ ContractApi extends SolGenericContractApi,
8
+ Type extends MetadataType
9
+ > extends GenericConstructorTx <ChainApi, Type> {
10
+ {{{ constructorsOut }}}
11
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ContractEvents <ChainApi extends GenericSubstrateApi, Type extends MetadataType> extends GenericContractEvents <ChainApi, Type> {
6
+ {{{ eventsOut }}}
7
+ }
@@ -0,0 +1,23 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{importTypes}}}
4
+ import { ContractQuery } from './query.js';
5
+ import { ContractTx } from './tx.js';
6
+ import { ConstructorQuery } from './constructor-query.js';
7
+ import { ConstructorTx } from './constructor-tx.js';
8
+ import { ContractEvents } from './events.js';
9
+
10
+ export * from './types.js';
11
+
12
+ {{{interfaceDocs}}}export interface {{{interfaceName}}}<Rv extends RpcVersion = RpcVersion, ChainApi extends VersionedGenericSubstrateApi = SubstrateApi> extends SolGenericContractApi<Rv, ChainApi> {
13
+ metadataType: 'sol';
14
+ query: ContractQuery<ChainApi[Rv], 'sol'>;
15
+ tx: ContractTx<ChainApi[Rv], 'sol'>;
16
+ constructorQuery: ConstructorQuery<ChainApi[Rv], 'sol'>;
17
+ events: ContractEvents<ChainApi[Rv], 'sol'>;
18
+ constructorTx: ConstructorTx<ChainApi[Rv], {{{interfaceName}}}, 'sol'>;
19
+
20
+ types: {
21
+ ChainApi: ChainApi[Rv];
22
+ };
23
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ContractQuery<ChainApi extends GenericSubstrateApi, Type extends MetadataType> extends GenericContractQuery<ChainApi, Type> {
6
+ {{{ queryCallsOut }}}
7
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ export interface ContractTx<ChainApi extends GenericSubstrateApi, Type extends MetadataType> extends GenericContractTx<ChainApi, Type> {
6
+ {{{ txCallsOut }}}
7
+ }
@@ -0,0 +1,5 @@
1
+ // Generated by dedot cli
2
+
3
+ {{{ importTypes }}}
4
+
5
+ {{{ defTypeOut }}}