MCPcopy Create free account
hub / github.com/subquery/subql / testSubqueryProject

Function testSubqueryProject

packages/node/src/indexer/project.service.spec.ts:25–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23import { RuntimeService } from './runtime/runtimeService';
24
25function testSubqueryProject(): SubqueryProject {
26 return {
27 id: 'test',
28 root: './',
29 network: {
30 endpoint: { 'https://polkadot.api.onfinality.io/public': {} },
31 chainId:
32 '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3',
33 },
34 dataSources: [
35 {
36 kind: SubstrateDatasourceKind.Runtime,
37 startBlock: 1,
38 mapping: {
39 file: '',
40 handlers: [
41 { handler: 'testSandbox', kind: SubstrateHandlerKind.Event },
42 ],
43 },
44 },
45 ],
46 schema: new GraphQLSchema({}),
47 templates: [],
48 chainTypes: {
49 types: {
50 TestType: 'u32',
51 },
52 },
53 applyCronTimestamps: () => jest.fn(),
54 } as unknown as SubqueryProject;
55}
56
57// @ts-ignore
58class TestProjectService extends ProjectService<any, any> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected