MCPcopy Index your code
hub / github.com/subquery/subql / getInstance

Method getInstance

packages/node/src/configure/configure.module.ts:14–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12@Module({})
13export class ConfigureModule {
14 static async getInstance(): Promise<{
15 nodeConfig: NodeConfig;
16 project: SubqueryProject;
17 }> {
18 const { argv } = yargsOptions;
19 return registerApp<SubqueryProject>(
20 argv,
21 createSubQueryProject,
22 yargsOptions.showHelp.bind(yargsOptions),
23 pjson,
24 );
25 }
26 static async register(): Promise<DynamicModule> {
27 const { nodeConfig, project } = await ConfigureModule.getInstance();
28

Callers 4

getSignerOrProviderFunction · 0.80
createServerMethod · 0.80
testingInitFunction · 0.80
registerMethod · 0.80

Calls 1

registerAppFunction · 0.90

Tested by

no test coverage detected