forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: v0.47.x is outdated #197
Merged
mmsqe
merged 43 commits into
crypto-org-chain:release/v0.47.x
from
mmsqe:release/v0.47.x_sync_2
Dec 21, 2023
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
80705f7
feat(gov): handle panics when executing x/gov proposals (backport #17…
mergify[bot] c65feec
refactor(store): add missing error checks in store (#17817)
julienrbrt a6f79a9
fix(baseapp): select txs correctly with no-op mempool (backport #1776…
mergify[bot] 8d6c611
docs: small update for routes change (backport #17881) (#17887)
mergify[bot] e0ab380
chore: remove duplicate check (#17901)
tac0turtle f29fcc5
chore: remove tip posthandler (#17902)
tac0turtle 85034c1
chore(auth): return accId in error (backport #17903) (#17906)
mergify[bot] 353ae64
chore(store): check value (backport #17900) (#17908)
mergify[bot] afd4d9d
refactor(x/gov): remove gov vote and proposal based telemetry (backpo…
mergify[bot] d7c4bfd
docs: Typo on Application - Specific documentation (backport #17933)…
mergify[bot] 2601e23
chore(staking): add delegator to events (backport #18006) (#18012)
mergify[bot] 7d12782
feat(baseapp): expose `Mempool` (backport #17954) (#18010)
mergify[bot] 02c403f
docs: fix typos (backport #18018) (#18020)
mergify[bot] d24d469
chore(x/consensus): check for nil params (backport #18041) (#18069)
mergify[bot] c121fcc
build(deps): bump cosmos/ledger-cosmos-go to v0.12.3 in v0.47 (#18105)
julienrbrt efa1226
chore: fix comments on bech32 (backport #18114) (#18117)
mergify[bot] 91b44c5
fix(x/bank): miss keypair of SendEnabled to restore legacy param set …
mmsqe 0469b11
build(deps): Bump github.com/cosmos/ledger-cosmos-go from 0.12.3 to 0…
dependabot[bot] 1a306fd
feat(server): start grpc server and register services when starting i…
p-offtermatt d003fa1
refactor(x/gov): backport MinInitialDepositRatio validation from v0.5…
julienrbrt 362f234
refactor(x/authz): extend validate genesis (backport #18042) (#18208)
mergify[bot] 269a245
fix(authz): check string is not empty (backport #18209) (#18218)
mergify[bot] 98a8bfe
chore(x/upgrade): Use ValidateBasic for Plan in ReadUpgradeInfoFromDi…
mergify[bot] af758d7
refactor(network): call `app.Close()` on network cleanup (backport #1…
mergify[bot] 8c9ab2c
fix(server): don't hardcode grpc address to localhost (backport #1825…
mergify[bot] d3c9653
fix: use a lower file permission in file creation (backport #18206) (…
mergify[bot] 00ee987
fix(snapshot): grant execution permissions to the snapshot dir for th…
mergify[bot] 37ad929
build(deps): Bump cosmossdk.io/math from 1.1.2 to 1.2.0 (#18398)
dependabot[bot] 03d578b
chore: prepare v0.47.6 release notes (#18342)
julienrbrt cb6d235
fix(client/tx): simulate with correct pk (backport #18472) (#18503)
mergify[bot] 60112c6
feat(server): cmd flag to disable colored logs (backport #18478) (#18…
mergify[bot] d79964b
build(deps): Bump github.com/cometbft/cometbft from 0.37.2 to 0.37.3 …
dependabot[bot] 58b0cdd
Revert "build(deps): Bump github.com/cometbft/cometbft from 0.37.2 to…
julienrbrt 55c6d55
fix(server): properly parse multiple gas config (backport #18537) (#1…
mergify[bot] 044ff4d
build(deps): Bump github.com/cometbft/cometbft from 0.37.2 to 0.37.4 …
dependabot[bot] 3c7a090
feat(x/gov): better gov genesis validation (backport #18707) (#18712)
mergify[bot] 6309fa7
docs: add ante precision (backport #18709) (#18730)
mergify[bot] 371744b
fix(x/auth): remove misleading gas wanted value from tx simulation fa…
mergify[bot] 9c1fa8c
docs: add index page for learn section (backport #18777) (#18779)
mergify[bot] 929e76b
docs: fix for links (backport #18816) (#18819)
mergify[bot] 9e60114
fix(baseapp): Reset GasMeter before deliverTX v0.47.x backport (#18826)
Eric-Warehime d09f40d
chore: prepare v0.47.7 (#18765)
julienrbrt fb8e3a4
Merge tag 'v0.47.7' into release/v0.47.x
mmsqe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Cosmos SDK v0.47.5 Release Notes | ||
# Cosmos SDK v0.47.7 Release Notes | ||
|
||
💬 [**Release Discussion**](https://github.com/orgs/cosmos/discussions/categories/announcements) | ||
|
||
## 🚀 Highlights | ||
|
||
Get ready for v0.50.0 and start integrating with the next [Cosmos SDK](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.0-rc.0) release. | ||
v0.50 is there, the v0.47.x line is now supported for bug fixes only, as per our release policy. | ||
Start integrating with [Cosmos SDK Eden (v0.50)](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.2) and enjoy and the new features and performance improvements. | ||
|
||
For this 5th patch release of the `v0.47.x` line, some of the notable changes include: | ||
For this 7th patch release of the `v0.47.x` line, some of the notable changes include: | ||
|
||
* A new command for importing private keys encoded in hex. This complements the existing `import` command that supports mnemonic and key files. | ||
Use `<appd> keys import <name> <hex>` to import a private key encoded in hex. | ||
* A new command, `rpc.QueryEventForTxCmd` for querying a transaction by its hash and blocking until the transaction is included in a block. It is useful as an alternative to the legacy `--sync block`. | ||
* A bug fix in the `app.toml` parsing for the `minimum-gas-prices` parameter. | ||
* A bug fix to properly simulate a transaction when using a multisig. | ||
|
||
Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.5/CHANGELOG.md) for an exhaustive list of changes or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/release/v0.47.4...v0.47.5) from last release. | ||
Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.5/CHANGELOG.md) for an exhaustive list of changes or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/v0.47.6...v0.47.7) from last release. | ||
|
||
Refer to the [upgrading guide](https://github.com/cosmos/cosmos-sdk/blob/release/v0.47.x/UPGRADING.md) when migrating from `v0.46.x` to `v0.47.0`. | ||
Refer to the [upgrading guide](https://github.com/cosmos/cosmos-sdk/blob/release/v0.50.x/UPGRADING.md) when migrating from `v0.47.x` to `v0.50.x`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,120 @@ | ||
package tx_test | ||
package tx | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/cosmos/cosmos-sdk/client" | ||
"github.com/cosmos/cosmos-sdk/client/tx" | ||
"github.com/stretchr/testify/require" | ||
|
||
"github.com/cosmos/cosmos-sdk/client" | ||
"github.com/cosmos/cosmos-sdk/codec" | ||
"github.com/cosmos/cosmos-sdk/crypto/hd" | ||
"github.com/cosmos/cosmos-sdk/crypto/keyring" | ||
"github.com/cosmos/cosmos-sdk/crypto/keys/multisig" | ||
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" | ||
"github.com/cosmos/cosmos-sdk/crypto/types" | ||
"github.com/cosmos/cosmos-sdk/testutil/testdata" | ||
"github.com/cosmos/cosmos-sdk/types/tx/signing" | ||
|
||
codectypes "github.com/cosmos/cosmos-sdk/codec/types" | ||
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" | ||
) | ||
|
||
func TestFactoryPrepate(t *testing.T) { | ||
func TestFactoryPrepare(t *testing.T) { | ||
t.Parallel() | ||
|
||
factory := tx.Factory{} | ||
factory := Factory{} | ||
clientCtx := client.Context{} | ||
|
||
output, err := factory.Prepare(clientCtx.WithOffline(true)) | ||
require.NoError(t, err) | ||
require.Equal(t, output, factory) | ||
|
||
factory = tx.Factory{}.WithAccountRetriever(client.MockAccountRetriever{ReturnAccNum: 10, ReturnAccSeq: 1}).WithAccountNumber(5) | ||
factory = Factory{}.WithAccountRetriever(client.MockAccountRetriever{ReturnAccNum: 10, ReturnAccSeq: 1}).WithAccountNumber(5) | ||
output, err = factory.Prepare(clientCtx.WithFrom("foo")) | ||
require.NoError(t, err) | ||
require.NotEqual(t, output, factory) | ||
require.Equal(t, output.AccountNumber(), uint64(5)) | ||
require.Equal(t, output.Sequence(), uint64(1)) | ||
|
||
factory = tx.Factory{}.WithAccountRetriever(client.MockAccountRetriever{ReturnAccNum: 10, ReturnAccSeq: 1}) | ||
factory = Factory{}.WithAccountRetriever(client.MockAccountRetriever{ReturnAccNum: 10, ReturnAccSeq: 1}) | ||
output, err = factory.Prepare(clientCtx.WithFrom("foo")) | ||
require.NoError(t, err) | ||
require.NotEqual(t, output, factory) | ||
require.Equal(t, output.AccountNumber(), uint64(10)) | ||
require.Equal(t, output.Sequence(), uint64(1)) | ||
} | ||
|
||
func TestFactory_getSimPKType(t *testing.T) { | ||
// setup keyring | ||
registry := codectypes.NewInterfaceRegistry() | ||
cryptocodec.RegisterInterfaces(registry) | ||
k := keyring.NewInMemory(codec.NewProtoCodec(registry)) | ||
|
||
tests := []struct { | ||
name string | ||
fromName string | ||
genKey func(fromName string, k keyring.Keyring) error | ||
wantType types.PubKey | ||
}{ | ||
{ | ||
name: "simple key", | ||
fromName: "testKey", | ||
genKey: func(fromName string, k keyring.Keyring) error { | ||
_, err := k.NewAccount(fromName, testdata.TestMnemonic, "", "", hd.Secp256k1) | ||
return err | ||
}, | ||
wantType: (*secp256k1.PubKey)(nil), | ||
}, | ||
{ | ||
name: "multisig key", | ||
fromName: "multiKey", | ||
genKey: func(fromName string, k keyring.Keyring) error { | ||
pk := multisig.NewLegacyAminoPubKey(1, []types.PubKey{&multisig.LegacyAminoPubKey{}}) | ||
_, err := k.SaveMultisig(fromName, pk) | ||
return err | ||
}, | ||
wantType: (*multisig.LegacyAminoPubKey)(nil), | ||
}, | ||
} | ||
|
||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
err := tt.genKey(tt.fromName, k) | ||
require.NoError(t, err) | ||
f := Factory{ | ||
keybase: k, | ||
fromName: tt.fromName, | ||
simulateAndExecute: true, | ||
} | ||
got, err := f.getSimPK() | ||
require.NoError(t, err) | ||
require.IsType(t, tt.wantType, got) | ||
}) | ||
} | ||
} | ||
|
||
func TestFactory_getSimSignatureData(t *testing.T) { | ||
tests := []struct { | ||
name string | ||
pk types.PubKey | ||
wantType any | ||
}{ | ||
{ | ||
name: "simple pubkey", | ||
pk: &secp256k1.PubKey{}, | ||
wantType: (*signing.SingleSignatureData)(nil), | ||
}, | ||
{ | ||
name: "multisig pubkey", | ||
pk: &multisig.LegacyAminoPubKey{}, | ||
wantType: (*signing.MultiSignatureData)(nil), | ||
}, | ||
} | ||
|
||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
got := Factory{}.getSimSignatureData(tt.pk) | ||
require.IsType(t, tt.wantType, got) | ||
}) | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning