Skip to content

Commit 65fb1a1

Browse files
committed
chore: hide experimental contract subscription APIs
1 parent 9297a19 commit 65fb1a1

7 files changed

+8
-0
lines changed

src/server/routes/contract/events/getContractEventLogs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export async function getContractEventLogs(fastify: FastifyInstance) {
9393
...standardResponseSchema,
9494
[StatusCodes.OK]: responseSchema,
9595
},
96+
hide: true,
9697
},
9798
handler: async (request, reply) => {
9899
const { chain, contractAddress } = request.params;

src/server/routes/contract/events/getEventLogsByTimestamp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export async function getEventLogs(fastify: FastifyInstance) {
7070
...standardResponseSchema,
7171
[StatusCodes.OK]: responseSchema,
7272
},
73+
hide: true,
7374
},
7475
handler: async (request, reply) => {
7576
const {

src/server/routes/contract/events/paginateEventLogs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export async function pageEventLogs(fastify: FastifyInstance) {
7373
...standardResponseSchema,
7474
[StatusCodes.OK]: responseSchema,
7575
},
76+
hide: true,
7677
},
7778
handler: async (request, reply) => {
7879
const { cursor, pageSize, topics, contractAddresses } = request.query;

src/server/routes/contract/transactions/getTransactionReceipts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export async function getContractTransactionReceipts(fastify: FastifyInstance) {
6969
...standardResponseSchema,
7070
[StatusCodes.OK]: responseSchema,
7171
},
72+
hide: true,
7273
},
7374
handler: async (request, reply) => {
7475
const { chain, contractAddress } = request.params;

src/server/routes/contract/transactions/getTransactionReceiptsByTimestamp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export async function getContractTransactionReceiptsByTimestamp(
6161
...standardResponseSchema,
6262
[StatusCodes.OK]: responseSchema,
6363
},
64+
hide: true,
6465
},
6566
handler: async (request, reply) => {
6667
const { contractAddresses, fromBlockTimestamp, toBlockTimestamp } =

src/server/routes/contract/transactions/paginateTransactionReceipts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export async function pageTransactionReceipts(fastify: FastifyInstance) {
6969
...standardResponseSchema,
7070
[StatusCodes.OK]: responseSchema,
7171
},
72+
hide: true,
7273
},
7374
handler: async (request, reply) => {
7475
const { cursor, pageSize, contractAddresses } = request.query;

src/server/routes/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,13 @@ export const withRoutes = async (fastify: FastifyInstance) => {
273273
await fastify.register(getLatestBlock);
274274

275275
// Contract Transactions
276+
// @deprecated
276277
await fastify.register(getContractTransactionReceipts);
277278
await fastify.register(getContractTransactionReceiptsByTimestamp);
278279
await fastify.register(pageTransactionReceipts);
279280

280281
// Contract Event Logs
282+
// @deprecated
281283
await fastify.register(getContractEventLogs);
282284
await fastify.register(getEventLogs);
283285
await fastify.register(pageEventLogs);

0 commit comments

Comments
 (0)