@hyperweb/telescope 2.0.1 → 2.0.3

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,37 +0,0 @@
1
- import { readSchemas } from '@cosmwasm/ts-codegen';
2
- import { pascal } from 'case';
3
- import { basename, dirname, join } from 'path';
4
- import { readFileSync, readdirSync } from 'fs';
5
-
6
- export const getDirectories = source =>
7
- readdirSync(source, { withFileTypes: true })
8
- .filter(dirent => dirent.isDirectory())
9
- .map(dirent => dirent.name);
10
-
11
- export const getContracts = () => {
12
- const contracts = getDirectories('./contracts')
13
- .map(contractDirname => {
14
- return {
15
- name: `${contractDirname}`,
16
- value: `./contracts/${contractDirname}`
17
- }
18
- });
19
- return contracts;
20
- };
21
-
22
- export const getContractSchemata = async (schemata: any[], out: string, argv) => {
23
- const s = [];
24
- for (let i = 0; i < schemata.length; i++) {
25
- const path = schemata[i];
26
- const pkg = JSON.parse(readFileSync(join(path, 'package.json'), 'utf-8'));
27
- const name = basename(path);
28
- const folder = basename(dirname(path));
29
- const contractName = pascal(pkg.contract) || pascal(name);
30
- const schemas = await readSchemas({ schemaDir: path });
31
- const outPath = join(out, folder);
32
- s.push({
33
- contractName, schemas, outPath
34
- });
35
- }
36
- return s;
37
- }
@@ -1,43 +0,0 @@
1
- import { BinaryReader } from "../../../../binary";
2
- /**
3
- * Module defines the ORM module which adds providers to the app container for
4
- * module-scoped DB's. In the future it may provide gRPC services for interacting
5
- * with ORM data.
6
- */
7
- export interface Module {
8
- }
9
- export interface ModuleProtoMsg {
10
- typeUrl: "/cosmos.orm.module.v1alpha1.Module";
11
- value: Uint8Array;
12
- }
13
- /**
14
- * Module defines the ORM module which adds providers to the app container for
15
- * module-scoped DB's. In the future it may provide gRPC services for interacting
16
- * with ORM data.
17
- */
18
- export interface ModuleAmino {
19
- }
20
- export interface ModuleAminoMsg {
21
- type: "cosmos-sdk/Module";
22
- value: ModuleAmino;
23
- }
24
- /**
25
- * Module defines the ORM module which adds providers to the app container for
26
- * module-scoped DB's. In the future it may provide gRPC services for interacting
27
- * with ORM data.
28
- */
29
- export interface ModuleSDKType {
30
- }
31
- export declare const Module: {
32
- typeUrl: string;
33
- encode(_: Module, writer?: BinaryWriter): BinaryWriter;
34
- decode(input: BinaryReader | Uint8Array, length?: number): Module;
35
- fromPartial(_: Partial<Module>): Module;
36
- fromAmino(_: ModuleAmino): Module;
37
- toAmino(_: Module): ModuleAmino;
38
- fromAminoMsg(object: ModuleAminoMsg): Module;
39
- toAminoMsg(message: Module): ModuleAminoMsg;
40
- fromProtoMsg(message: ModuleProtoMsg): Module;
41
- toProto(message: Module): Uint8Array;
42
- toProtoMsg(message: Module): ModuleProtoMsg;
43
- };