fix(indexer): align tradeParser's topic with the contract event convention#667
Merged
Mimah97 merged 2 commits intoJun 30, 2026
Merged
Annotations
10 errors and 3 warnings
|
Run unit tests:
apps/indexer/src/ingestion.test.ts#L145
AssertionError: expected "vi.fn()" to be called with arguments: [ ArrayContaining{…} ]
Received:
1st vi.fn() call:
[
- ArrayContaining [
- ObjectContaining {
- "kind": "trade",
+ [
+ {
+ "data": {
+ "contractId": "CTEST",
+ "eventId": "0000000051-0000000001-0000000000",
+ "idempotencyKey": "4936a50e1323f1c0297c75032b77163498746b15630b2fa788400e2f6aeb2bd2",
+ "ledger": 51,
+ "ledgerClosedAt": "2024-01-01T00:00:00Z",
+ "marketId": "market-1",
+ "oracleAddress": "GORACLE",
+ "outcome": "YES",
},
- ObjectContaining {
"kind": "resolution",
},
],
]
Number of calls: 1
❯ apps/indexer/src/ingestion.test.ts:145:31
|
|
Run unit tests:
src/index.ts#L108
Error: Plugin registered route "/v1/markets" with a /v1 prefix inside the /v1-scoped block — remove the prefix from the plugin.
❯ Object.<anonymous> src/index.ts:108:17
❯ Object.addNewRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:302:16
❯ Object.route node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:275:19
❯ Object.prepareRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:174:18
❯ Object._get [as get] node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/fastify.js:182:34
❯ marketsRoutes src/api/routes/markets.ts:67:11
❯ Plugin.exec node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/lib/plugin.js:125:28
❯ Boot._loadPlugin node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/boot.js:446:10
|
|
Run unit tests:
src/index.ts#L108
Error: Plugin registered route "/v1/markets" with a /v1 prefix inside the /v1-scoped block — remove the prefix from the plugin.
❯ Object.<anonymous> src/index.ts:108:17
❯ Object.addNewRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:302:16
❯ Object.route node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:275:19
❯ Object.prepareRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:174:18
❯ Object._get [as get] node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/fastify.js:182:34
❯ marketsRoutes src/api/routes/markets.ts:67:11
❯ Plugin.exec node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/lib/plugin.js:125:28
❯ Boot._loadPlugin node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/boot.js:446:10
|
|
Run unit tests:
src/index.ts#L108
Error: Plugin registered route "/v1/markets" with a /v1 prefix inside the /v1-scoped block — remove the prefix from the plugin.
❯ Object.<anonymous> src/index.ts:108:17
❯ Object.addNewRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:302:16
❯ Object.route node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:275:19
❯ Object.prepareRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:174:18
❯ Object._get [as get] node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/fastify.js:182:34
❯ marketsRoutes src/api/routes/markets.ts:67:11
❯ Plugin.exec node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/lib/plugin.js:125:28
❯ Boot._loadPlugin node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/boot.js:446:10
|
|
Run unit tests:
src/index.ts#L108
Error: Plugin registered route "/v1/markets" with a /v1 prefix inside the /v1-scoped block — remove the prefix from the plugin.
❯ Object.<anonymous> src/index.ts:108:17
❯ Object.addNewRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:302:16
❯ Object.route node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:275:19
❯ Object.prepareRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:174:18
❯ Object._get [as get] node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/fastify.js:182:34
❯ marketsRoutes src/api/routes/markets.ts:67:11
❯ Plugin.exec node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/lib/plugin.js:125:28
❯ Boot._loadPlugin node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/boot.js:446:10
|
|
Run unit tests:
src/index.ts#L108
Error: Plugin registered route "/v1/markets" with a /v1 prefix inside the /v1-scoped block — remove the prefix from the plugin.
❯ Object.<anonymous> src/index.ts:108:17
❯ Object.addNewRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:302:16
❯ Object.route node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:275:19
❯ Object.prepareRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:174:18
❯ Object._get [as get] node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/fastify.js:182:34
❯ marketsRoutes src/api/routes/markets.ts:67:11
❯ Plugin.exec node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/lib/plugin.js:125:28
❯ Boot._loadPlugin node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/boot.js:446:10
|
|
Run unit tests:
src/index.ts#L108
Error: Plugin registered route "/v1/markets" with a /v1 prefix inside the /v1-scoped block — remove the prefix from the plugin.
❯ Object.<anonymous> src/index.ts:108:17
❯ Object.addNewRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:302:16
❯ Object.route node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:275:19
❯ Object.prepareRoute node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/lib/route.js:174:18
❯ Object._get [as get] node_modules/.pnpm/fastify@5.9.0/node_modules/fastify/fastify.js:182:34
❯ marketsRoutes src/api/routes/markets.ts:67:11
❯ Plugin.exec node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/lib/plugin.js:125:28
❯ Boot._loadPlugin node_modules/.pnpm/avvio@9.2.0/node_modules/avvio/boot.js:446:10
|
|
Run unit tests:
apps/oracle/main.ts#L52
TypeError: () => mockOracleService is not a constructor
❯ Module.poll apps/oracle/main.ts:52:25
❯ apps/oracle/main.test.ts:161:11
|
|
Run unit tests:
apps/oracle/main.ts#L52
TypeError: () => mockOracleService is not a constructor
❯ Module.poll apps/oracle/main.ts:52:25
❯ apps/oracle/main.test.ts:146:11
|
|
Run unit tests:
apps/oracle/main.ts#L52
TypeError: () => mockOracleService is not a constructor
❯ Module.poll apps/oracle/main.ts:52:25
❯ apps/oracle/main.test.ts:108:11
|
|
Complete job
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v3, actions/checkout@v4, actions/setup-node@v4, actions/upload-artifact@v4, codecov/codecov-action@v3, pnpm/action-setup@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Upload coverage reports
No files were found with the provided path: coverage/. No artifacts will be uploaded.
|
|
Upload test results
No files were found with the provided path: test-results/. No artifacts will be uploaded.
|
background
wait
wait-all
cancel
parallel
Loading