From e69c88c8255d20f325f675f3fe8bbdc82abf60d6 Mon Sep 17 00:00:00 2001 From: Velenir Date: Thu, 5 Dec 2024 11:47:49 +0100 Subject: [PATCH] Delta/getDEltaOrders/pagination options --- src/methods/delta/getDeltaOrders.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/methods/delta/getDeltaOrders.ts b/src/methods/delta/getDeltaOrders.ts index 70ead18f..d0804f29 100644 --- a/src/methods/delta/getDeltaOrders.ts +++ b/src/methods/delta/getDeltaOrders.ts @@ -11,8 +11,12 @@ type GetDeltaOrderById = ( ) => Promise; type OrdersFilter = { - /**@description Order.owner to fetch Delta Order for */ + /** @description Order.owner to fetch Delta Order for */ userAddress: Address; + /** @description Pagination option, page. Default 1 */ + page?: number; + /** @description Pagination option, limit. Default 100 */ + limit?: number; }; type OrderFiltersQuery = OrdersFilter; @@ -47,6 +51,8 @@ export const constructGetDeltaOrders = ({ const getDeltaOrders: GetDeltaOrders = async (options, signal) => { const search = constructSearchString({ userAddress: options.userAddress, + page: options.page, + limit: options.limit, }); const fetchURL = `${baseUrl}${search}` as const;