The [appd] query ibc client header is fixed and allows querying by height for the header and node-state command. This allows easier venerability of which IBC tokens belong to which chains. IBC's ExportGenesis now exports all fields, including previously missing NextClientSequence, NextConnectionSequence and NextChannelSequence. A new subcommand [appd] query ibc-transfer escrow-address has been added to get the escrow address for a channel; it can be used to then query balance of escrowed tokens.
New Fields on sdk.Context
Two fields have been added on sdk.Context:
ctx.HeaderHash adds the current block header hash obtained during abci.RequestBeginBlock to the Context,
ctx.GasMeter().RefundGas(<amount>, <description>) adds support for refunding gas directly to the gas meter.
v0.42.5
Cosmos SDK v0.42.5 "Stargate" Release Notes
This release includes various minor bugfixes and improvments, including:
Fix support for building the Cosmos SDK on ARM architectures,
Fix the [appd] keys show/list CLI subcommands for multisigs,
Internal code performance improvment.
It also introduces one new feature: adding the [appd] config subcommand back to the SDK.
One new feature introduced in the Stargate series was the merging of the two CLI binaries [appd] and [appcli] into one single application binary. In this process, the [appcli] config subcommand, which was used to save client-side configuration into a TOML file, was removed.
Due to popular demand, we have introduced this feature back to the SDK, under the [appd] config subcommand. The functionality is as follows:
[appd] config: Output all client-side configuration.
[appd] config [config-name]: Get the given configuration (e.g. keyring-backend or node-id).
[appd] config [config-name] [config-value]: Set and persist the given configuration with the new value.
All configurations are persisted to the filesystem, under the path $APP_HOME/config/client.toml. For the list of all possible client-side configurations, please have a look at this client.toml file, as it is heavily commented.
Environment variables binding to client-side configuration also works. For example, the command KEYRING_BACKEND=os [appd] tx bank send ... will bind ENV variable to the keyring-backend config. The order or precedence for config is: flags > env vars > client.toml file.
#9385 Fix IBC query ibc client header cli command. Support historical queries for query header/node-state commands.
#9401 Fixes incorrect export of IBC identifier sequences. Previously, the next identifier sequence for clients/connections/channels was not set during genesis export. This resulted in the next identifiers being generated on the new chain to reuse old identifiers (the sequences began again from 0).
#9408 Update simapp to use correct default broadcast mode.
#9513 Fixes testnet CLI command. Testnet now updates the supply in genesis. Previously, when using add-genesis-account and testnet together, inconsistent genesis files would be produced, as only add-genesis-account was updating the supply.
(x/gov) #8813 fix GET /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits to include initial deposit
Features
#9383 New CLI command query ibc-transfer escrow-address <port> <channel id> to get the escrow address for a channel; can be used to then query balance of escrowed tokens
(baseapp, types) #\9390 Add current block header hash to Context
(store) #9403 Add RefundGas function to GasMeter interface
#9026 By default, the tx sign and tx sign-batch CLI commands use SIGN_MODE_DIRECT to sign transactions for local pubkeys. For multisigs and ledger keys, the default LEGACY_AMINO_JSON is used.
Bug Fixes
(gRPC) #9015 Fix invalid status code when accessing gRPC endpoints.
#9026 Fixed the bug that caused the gentx command to fail for Ledger keys.
Improvements
... (truncated)
Commits
a7e19ad chore: Update release notes and Changelog for 0.42.6 (#9544)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/cosmos/cosmos-sdk from 0.39.3 to 0.42.6.
Release notes
Sourced from github.com/cosmos/cosmos-sdk's releases.
... (truncated)
Changelog
Sourced from github.com/cosmos/cosmos-sdk's changelog.
... (truncated)
Commits
a7e19ad
chore: Update release notes and Changelog for 0.42.6 (#9544)b46718b
fix: set header hash every block (backport #9552) (#9555)79d369c
feat: add cosmos-sdk Version (backport #9429) (#9543)96ad153
build(deps): tendermint version (backport #9541) (#9542)7aa514d
Backport: IBC query header/node-state fixes (#9385)bc3521c
fix: update simapp to use correct default broadcast mode (backport #9408) (#9...a2a56c3
fix: Bank module init genesis optimization (backport #9428) (#9440)d773c88
feat: addRefundGas
function toGasMeter
(backport #9403) (#9444)e79fa63
fix: x/gov deposits querier (Initial Deposit) (backport #9288) (#9453)850da8a
feat: add header hash toContext
(backport #9390) (#9395)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)