Skip to content

Commit

Permalink
Merge pull request #1502 from cosmos/rm-search-interfaces
Browse files Browse the repository at this point in the history
Remove SearchBySentFromOrToQuery and SearchByHeightQuery
  • Loading branch information
webmaster128 authored Nov 7, 2023
2 parents dd0d69d + 30d6c07 commit a146e3e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ and this project adheres to
supports CometBFT 0.38. Rename
`CosmWasmClient.getTmClient`/`.forceGetTmClient` to
`.getCometClient`/`.forceGetCometClient`.
- @cosmjs/stargate: Remove interfaces `SearchBySentFromOrToQuery` and
`SearchByHeightQuery` which became obsolete with the `searchTx` change in
0.31.0.

[#1421]: https://github.com/cosmos/cosmjs/issues/1421
[#1465]: https://github.com/cosmos/cosmjs/issues/1465
Expand Down
2 changes: 1 addition & 1 deletion packages/stargate/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export {
QueryClient,
QueryStoreResponse,
} from "./queryclient";
export { SearchByHeightQuery, SearchBySentFromOrToQuery, SearchTxQuery } from "./search";
export { SearchTxQuery } from "./search";
export {
createDefaultAminoConverters,
defaultRegistryTypes,
Expand Down
8 changes: 0 additions & 8 deletions packages/stargate/src/search.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
export interface SearchByHeightQuery {
readonly height: number;
}

export interface SearchBySentFromOrToQuery {
readonly sentFromOrTo: string;
}

/**
* This query type allows you to pass arbitrary key/value pairs to the backend.
*/
Expand Down

0 comments on commit a146e3e

Please sign in to comment.