File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ responseSchema.example = {
21
21
} ,
22
22
} ;
23
23
24
- export async function getContractSubscriptions ( fastify : FastifyInstance ) {
24
+ export async function getLatestBlock ( fastify : FastifyInstance ) {
25
25
fastify . route < {
26
26
Querystring : Static < typeof chainRequestQuerystringSchema > ;
27
27
Reply : Static < typeof responseSchema > ;
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ import { pageEventLogs } from "./contract/events/paginateEventLogs";
122
122
import { addContractSubscription } from "./contract/subscriptions/addContractSubscription" ;
123
123
import { getContractIndexedBlockRange } from "./contract/subscriptions/getContractIndexedBlockRange" ;
124
124
import { getContractSubscriptions } from "./contract/subscriptions/getContractSubscriptions" ;
125
+ import { getLatestBlock } from "./contract/subscriptions/getLatestBlock" ;
125
126
import { removeContractSubscription } from "./contract/subscriptions/removeContractSubscription" ;
126
127
import { getContractTransactionReceipts } from "./contract/transactions/getTransactionReceipts" ;
127
128
import { getContractTransactionReceiptsByTimestamp } from "./contract/transactions/getTransactionReceiptsByTimestamp" ;
@@ -253,6 +254,7 @@ export const withRoutes = async (fastify: FastifyInstance) => {
253
254
await fastify . register ( getContractSubscriptions ) ;
254
255
await fastify . register ( getContractIndexedBlockRange ) ;
255
256
await fastify . register ( removeContractSubscription ) ;
257
+ await fastify . register ( getLatestBlock ) ;
256
258
257
259
// Contract Transactions
258
260
await fastify . register ( getContractTransactionReceipts ) ;
You can’t perform that action at this time.
0 commit comments