From 0b6a68d8772c6affc9a6706d6996485fdb192d6c Mon Sep 17 00:00:00 2001 From: Mathieu Lefebvre Date: Tue, 7 Nov 2023 12:03:51 -0500 Subject: [PATCH] fix block openAPI --- src/fetch/openapi.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fetch/openapi.ts b/src/fetch/openapi.ts index eceb64a..d1c9634 100644 --- a/src/fetch/openapi.ts +++ b/src/fetch/openapi.ts @@ -14,8 +14,8 @@ const TAGS = { DOCS: "Documentation", } as const; -const arrayFilter = ["greater_or_equals_by_timestamp", "greater_by_timestamp", "less_or_equals_by_timestamp", "less_by_timestamp"]; - +const timestampExamplesArrayFilter = ["greater_or_equals_by_timestamp", "greater_by_timestamp", "less_or_equals_by_timestamp", "less_by_timestamp"]; +const blockExamplesArrayFilter = ["greater_or_equals_by_block", "greater_by_block", "less_or_equals_by_block", "less_by_block"]; const chains = await supportedChainsQuery(); const supply_example = (await makeQuery(await getTotalSupply(new URLSearchParams({ limit: "2" }), true))).data; const contract_example = (await makeQuery(await getContracts(new URLSearchParams({ limit: "2" }), true))).data; @@ -59,7 +59,7 @@ const parameterLimit: ParameterObject = { } -const timestampFilter = arrayFilter.map(name => { +const timestampFilter = timestampExamplesArrayFilter.map(name => { return { name, in: "query", @@ -70,7 +70,7 @@ const timestampFilter = arrayFilter.map(name => { } as ParameterObject }) -const blockFilter = arrayFilter.map(name => { +const blockFilter = blockExamplesArrayFilter.map(name => { return { name, in: "query",