Merge branch '0.25' into main

This commit is contained in:
Simon Warta 2021-06-23 17:51:46 +02:00
commit 98e91ae5fe
41 changed files with 58 additions and 19 deletions

View File

@ -50,6 +50,18 @@ and this project adheres to
- @cosmjs/socket: Upgrade dependency "ws" to version 7 to avoid potential
security problems.
## [0.25.5] - 2021-06-23
### Added
- @cosmjs/tendermint-rpc: `Tendermint34Client.blockSearch` and
`Tendermint34Client.blockSearchAll` were added to allow searching blocks in
Tendermint 0.34.9+ backends. This is a backport of [#815]. Note: Decoding
blocks of height 1 is unsupported. This is fixed in [#815] and will be
released as part of CosmJS 0.26.
[#815]: https://github.com/cosmos/cosmjs/pull/815
## [0.25.4] - 2021-05-31
### Fixed
@ -525,6 +537,7 @@ CHANGELOG entries missing. Please see [the diff][0.24.1].
- @cosmjs/sdk38: Rename package to @cosmjs/launchpad.
[unreleased]: https://github.com/cosmos/cosmjs/compare/v0.25.3...HEAD
[0.25.5]: https://github.com/cosmos/cosmjs/compare/v0.25.4...v0.25.5
[0.25.4]: https://github.com/cosmos/cosmjs/compare/v0.25.3...v0.25.4
[0.25.3]: https://github.com/cosmos/cosmjs/compare/v0.25.2...v0.25.3
[0.25.2]: https://github.com/cosmos/cosmjs/compare/v0.25.1...v0.25.2

View File

@ -101,6 +101,13 @@ discussion please reach out to the team.
## Known limitations
### 0.25
1. Decoding blocks of height 1 is unsupported. This is fixed in [#815] and will
be released as part of CosmJS 0.26.
[#815]: https://github.com/cosmos/cosmjs/pull/815
### 0.24
1. `AuthExtension` and all higher level Stargate clients only support

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/amino",
"version": "0.25.4",
"version": "0.25.5",
"description": "Helpers for Amino based signing which are shared between @cosmjs/launchpad and @cosmjs/stargate.",
"contributors": [
"Simon Warta <webmaster128@users.noreply.github.com>"

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/cli",
"version": "0.25.4",
"version": "0.25.5",
"description": "Command line interface",
"contributors": [
"IOV SAS <admin@iov.one>",

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/cosmwasm-launchpad",
"version": "0.25.4",
"version": "0.25.5",
"description": "CosmWasm SDK for Launchpad",
"contributors": [
"Ethan Frey <ethanfrey@users.noreply.github.com>",

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/cosmwasm-stargate",
"version": "0.25.4",
"version": "0.25.5",
"description": "CosmWasm SDK",
"contributors": [
"Will Clark <willclarktech@users.noreply.github.com>"

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/cosmwasm",
"version": "0.25.4",
"version": "0.25.5",
"description": "CosmWasm SDK",
"contributors": [
"Ethan Frey <ethanfrey@users.noreply.github.com>",

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/crypto",
"version": "0.25.4",
"version": "0.25.5",
"description": "Cryptography resources for blockchain projects",
"contributors": [
"IOV SAS <admin@iov.one>",

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/encoding",
"version": "0.25.4",
"version": "0.25.5",
"description": "Encoding helpers for blockchain projects",
"contributors": [
"IOV SAS <admin@iov.one>"

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/faucet-client",
"version": "0.25.4",
"version": "0.25.5",
"description": "The faucet client",
"contributors": [
"Will Clark <willclarktech@users.noreply.github.com>"

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/faucet",
"version": "0.25.4",
"version": "0.25.5",
"description": "The faucet",
"contributors": [
"Ethan Frey <ethanfrey@users.noreply.github.com>",

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/json-rpc",
"version": "0.25.4",
"version": "0.25.5",
"description": "Framework for implementing a JSON-RPC 2.0 API",
"contributors": [
"IOV SAS <admin@iov.one>",

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/launchpad",
"version": "0.25.4",
"version": "0.25.5",
"description": "A client library for the Cosmos SDK 0.37 (cosmoshub-3), 0.38 and 0.39 (Launchpad)",
"contributors": [
"Ethan Frey <ethanfrey@users.noreply.github.com>",

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/ledger-amino",
"version": "0.25.4",
"version": "0.25.5",
"description": "A library for signing Amino-encoded transactions using Ledger devices",
"contributors": [
"Will Clark <willclarktech@users.noreply.github.com>"

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/math",
"version": "0.25.4",
"version": "0.25.5",
"description": "Math helpers for blockchain projects",
"contributors": [
"IOV SAS <admin@iov.one>"

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/proto-signing",
"version": "0.25.4",
"version": "0.25.5",
"description": "Utilities for protobuf based signing (Cosmos SDK 0.40+)",
"contributors": [
"Will Clark <willclarktech@users.noreply.github.com>",

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/socket",
"version": "0.25.4",
"version": "0.25.5",
"description": "Utility functions for working with WebSockets",
"contributors": [
"IOV SAS <admin@iov.one>",

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/stargate",
"version": "0.25.4",
"version": "0.25.5",
"description": "Utilities for Cosmos SDK 0.40",
"contributors": [
"Simon Warta <webmaster128@users.noreply.github.com>"

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/stream",
"version": "0.25.4",
"version": "0.25.5",
"description": "Utility functions for producing and consuming streams",
"contributors": [
"IOV SAS <admin@iov.one>",

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/tendermint-rpc",
"version": "0.25.4",
"version": "0.25.5",
"description": "Tendermint RPC clients",
"contributors": [
"IOV SAS <admin@iov.one>",

View File

@ -30,6 +30,21 @@ function encodeBlockchainRequestParams(param: requests.BlockchainRequestParams):
};
}
interface RpcBlockSearchParams {
readonly query: string;
readonly page?: string;
readonly per_page?: string;
readonly order_by?: string;
}
function encodeBlockSearchParams(params: requests.BlockSearchParams): RpcBlockSearchParams {
return {
query: params.query,
page: may(Integer.encode, params.page),
per_page: may(Integer.encode, params.per_page),
order_by: params.order_by,
};
}
interface RpcAbciQueryParams {
readonly path: string;
/** hex encoded */
@ -120,6 +135,10 @@ export class Params {
return createJsonRpcRequest(req.method, encodeHeightParam(req.params));
}
public static encodeBlockSearch(req: requests.BlockSearchRequest): JsonRpcRequest {
return createJsonRpcRequest(req.method, encodeBlockSearchParams(req.params));
}
public static encodeBroadcastTx(req: requests.BroadcastTxRequest): JsonRpcRequest {
return createJsonRpcRequest(req.method, encodeBroadcastTxParams(req.params));
}

View File

View File

@ -1,6 +1,6 @@
{
"name": "@cosmjs/utils",
"version": "0.25.4",
"version": "0.25.5",
"description": "Utility tools, primarily for testing code",
"contributors": [
"IOV SAS <admin@iov.one>"