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

Function mockDsFn

packages/cli/src/controller/generate-controller.spec.ts:59–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57];
58
59const mockDsFn = (): EthereumDs[] => [
60 {
61 kind: EthereumDatasourceKind.Runtime,
62 startBlock: 1,
63 options: {
64 abi: 'Erc721',
65 address: '',
66 },
67 assets: {
68 erc721: {file: 'erc721.json'},
69 } as unknown as Map<string, {file: string}>,
70 mapping: {
71 file: '',
72 handlers: [
73 {
74 handler: 'handleTransaction',
75 kind: EthereumHandlerKind.Call,
76 filter: {
77 function: 'approve(address,uint256)',
78 },
79 },
80 {
81 handler: 'handleLog',
82 kind: EthereumHandlerKind.Event,
83 filter: {
84 topics: ['Transfer(address,address,uint256)'],
85 },
86 },
87 ],
88 },
89 },
90];
91
92const mockDsStr =
93 '' +

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected