()
| 23 | import { RuntimeService } from './runtime/runtimeService'; |
| 24 | |
| 25 | function 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 |
| 58 | class TestProjectService extends ProjectService<any, any> { |
no outgoing calls
no test coverage detected