Skip to content

Commit 7b7f6a4

Browse files
committed
deprecate old endpoint
1 parent bfd5c2b commit 7b7f6a4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/api/routes/contract.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { getPagingQueryLimit, parsePagingQueryInput, ResourceType } from '../pagination.js';
22
import { parseDbEvent } from '../controllers/db-controller.js';
33
import { handleChainTipCache } from '../controllers/cache-controller.js';
4-
54
import { FastifyPluginAsync } from 'fastify';
65
import { Type, TypeBoxTypeProvider } from '@fastify/type-provider-typebox';
76
import { Server } from 'node:http';
@@ -101,9 +100,11 @@ export const ContractRoutes: FastifyPluginAsync<
101100
{
102101
preHandler: handleChainTipCache,
103102
schema: {
103+
deprecated: true,
104104
operationId: 'get_contract_events_by_id',
105105
summary: 'Get contract events',
106-
description: 'Retrieves a list of events that have been triggered by a given `contract_id`',
106+
description:
107+
'**NOTE:** This endpoint is deprecated in favor of `get_smart_contract_print_events`.\n\nRetrieves a list of events that have been triggered by a given `contract_id`',
107108
tags: ['Smart Contracts'],
108109
params: Type.Object({
109110
contract_id: Type.String({

0 commit comments

Comments
 (0)