From 5276ef7725fe0887ed04888d859b1e82dad96153 Mon Sep 17 00:00:00 2001 From: lukaw3d Date: Mon, 11 Dec 2023 01:14:02 +0000 Subject: [PATCH] Update API bindings This brings in a new feature: searching for runtime blocks by hash. --- .changelog/1989.trivial.md | 1 + src/oasis-nexus/generated/api.ts | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .changelog/1989.trivial.md diff --git a/.changelog/1989.trivial.md b/.changelog/1989.trivial.md new file mode 100644 index 000000000..b54447625 --- /dev/null +++ b/.changelog/1989.trivial.md @@ -0,0 +1 @@ +Pull in latest API code diff --git a/src/oasis-nexus/generated/api.ts b/src/oasis-nexus/generated/api.ts index b2a662984..5ce53efd9 100644 --- a/src/oasis-nexus/generated/api.ts +++ b/src/oasis-nexus/generated/api.ts @@ -273,6 +273,10 @@ after?: string; * A filter on maximum block time, exclusive. */ before?: string; +/** + * A filter on the block hash. + */ +hash?: string; }; export type GetConsensusProposalsProposalIdVotesParams = { @@ -578,6 +582,10 @@ after?: string; * A filter on maximum block time, exclusive. */ before?: string; +/** + * A filter on the block hash. + */ +hash?: string; }; /** @@ -3297,7 +3305,7 @@ export const useGetConsensusProposalsProposalIdVotes = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>( network: 'mainnet' | 'testnet', @@ -3369,7 +3377,7 @@ export const useGetRuntimeBlocks = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>( network: 'mainnet' | 'testnet',