23 KiB
23 KiB
Changelog
[Unreleased]
Every module contains its own CHANGELOG.md. Please refer to the module you are interested in.
v0.52.0 - 2024-XX-XX
Every module contains its own CHANGELOG.md. Please refer to the module you are interested in.
Features
- (client) #17513 Allow overwriting
client.toml. Useclient.CreateClientConfigin place ofclient.ReadFromClientConfigand provide a custom template and a custom config. - (tests) #17868 Added helper method
SubmitTestTxin testutil to broadcast test txns to test e2e tests. - (client) #18101 Add a
keyring-default-keynameinclient.tomlfor specifying a default key name, and skip the need to use the--fromflag when signing transactions. - (runtime) #18475 Adds an implementation for core.branch.Service.
- (baseapp) #18499 Add
MsgRouterresponse type from message name function. - (client) #18557 Add
--qrcodeflag tokeys showcommand to support displaying keys address QR code. - (types) #18768 Add MustValAddressFromBech32 function.
- (gRPC) #19049 Add debug log prints for each gRPC request.
- (types) #19164 Add a ValueCodec for the math.Uint type that can be used in collections maps.
- (types) #19281 Added a new method,
IsGT, fortypes.Coin. This method is used to check if atypes.Coinis greater than anothertypes.Coin. - (runtime) #19571 Implement
core/router.Servicein runtime. This service is present in all modules (when using depinject). - (types) #19759 Align SignerExtractionAdapter in PriorityNonceMempool Remove.
- (client) #19870 Add new query command
wait-tx. Aliasevent-query-tx-fortowait-txfor backward compatibility. - (client) #19905 Add grpc client config to
client.toml. - (genutil) #19971 Allow manually setting the consensus key type in genesis
- (runtime) #19953 Implement
core/transaction.Servicein runtime. - (tests) #20013 Introduce system tests to run multi node local testnet in CI
- (crypto/keyring) #20212 Expose the db keyring used in the keystore.
- (client/tx) #20870 Add
timeout-timestampfield for tx body defines time based timeout.AddWithTimeoutTimestampto tx factory. Increased gas cost for processing newly added timeout timestamp field in tx body. - (client) #21074 Add auto cli for node service
Improvements
- (all) #16537 Properly propagated
fmt.Errorferrors and usingerrors.Newwhere appropriate. - (client) #17503 Add
client.Context{}.WithAddressCodec,WithValidatorAddressCodec,WithConsensusAddressCodecto provide address codecs to the client context. See the UPGRADING.md for more details. - (crypto/keyring) #17503 Simplify keyring interfaces to use
[]byteinstead ofsdk.Addressfor addresses. - (rpc) #17470 Avoid open 0.0.0.0 to public by default and add
listen-ip-addressargument fortestnet init-filescmd. - (types) #17670 Use
ctx.CometInfoin place ofctx.VoteInfos - #17733 Ensure
buf exportexports all proto dependencies - (crypto/keys) #18026 Made public key generation constant time on
secp256k1 - (crypto | x/auth) #14372 Key checks on signatures antehandle.
- (types) #18440 Add
AmountOfNoValidationtosdk.DecCoins. - (client/keys) #18663 Improve
<appd> keys addby displaying mnemonic discreetly on an alternate screen and adding--indiscreetoption to disable it. - (client/keys) #18684 Improve
<appd> keys exportby displaying unarmored hex private key discreetly on an alternate screen and adding--indiscreetoption to disable it. - (client/keys) #18687 Improve
<appd> keys mnemonicby displaying mnemonic discreetly on an alternate screen and adding--indiscreetoption to disable it. - (client/keys) #18703 Improve
<appd> keys addand<appd> keys showby checking whether there are duplicate keys in the multisig case.- Usage of
Must...kind of functions are avoided in keeper methods.
- Usage of
- (client/keys) #18743 Improve
<appd> keys add -iby hiding inputting of bip39 passphrase. - (client/keys) #18745 Improve
<appd> keys exportand<appd> keys mnemonicby adding --yes option to skip interactive confirmation. - (client/keys) #18950 Improve
<appd> keys add,<appd> keys importand<appd> keys renameby checking name validation. - (types) #18963 Swap out amino json encoding of
ABCIMessageLogsfor std lib json encoding - (types) #19512 The notion of basic manager does not exist anymore (and all related helpers).
- The module manager now can do everything that the basic manager was doing.
AppModuleBasichas been deprecated for extension interfaces.- Modules can now implement
appmodule.HasRegisterInterfaces,module.HasGRPCGatewayandmodule.HasAminoCodecwhen relevant. - SDK modules now directly implement those extension interfaces on
AppModuleinstead ofAppModuleBasic.
- (server) #19455 Allow calling back into the application struct in PostSetup.
- (types) #19672
PreBlocknow returns only an error for consistency with server/v2. The SDK has upgraded x/upgrade accordingly.ResponsePreBlockhence has been removed. - (x/auth) #19651 Allow empty public keys in
GetSignBytesAdapter. - (x/genutil) #19735 Update genesis api to match new
appmodule.HasGenesisinterface. - (types) #19869 Removed
Anytype fromcodec/typesand replaced it with an alias forcosmos/gogoproto/types/any. - (server) #19854 Add customizability to start command.
- Add
StartCmdOptionsinserver.AddCommandsinstead ofservertypes.ModuleInitFlags. To set custom flags set them in theStartCmdOptionsstruct on theAddFlagsfield. - Add
StartCommandHandlertoStartCmdOptionsto allow custom start command handlers. Users now have total control over how the app starts.
- Add
- (server) #19966 Return BlockHeader by shallow copy in server Context.
- (codec) #20122 Added a cache to address codec.
- (proto) #20098 Use cosmos_proto added_in annotation instead of // Since comments.
- (baseapp) #20208 Skip running validateBasic for rechecking txs.
- (baseapp) #20380 Enhanced OfferSnapshot documentation.
- (client) #20771 Remove
ReadDefaultValuesFromDefaultClientConfigfromclientpackage. (It was introduced inv0.50.6as a quick fix). - (grpcserver) #20945 Adds error handling for out-of-gas panics in grpc query handlers.
Bug Fixes
- (baseapp) #18383 Fixed a data race inside BaseApp.getContext, found by end-to-end (e2e) tests.
- (client/server) #18345 Consistently set viper prefix in client and server. It defaults for the binary name for both client and server.
- (baseapp) #18551 Fix SelectTxForProposal the calculation method of tx bytes size is inconsistent with CometBFT
- (client/keys) #18562
keys deletewon't terminate when a key is not found. - (client) #18622 Fixed a potential under/overflow from
uint64->int64when computing gas fees as a LegacyDec. - (baseapp) #18727 Ensure that
BaseApp.Initfirstly returns any errors from a nil commit multistore instead of panicking on nil dereferencing and before sealing the app. - (server) #18994 Update server context directly rather than a reference to a sub-object
- #19833 Fix some places in which we call Remove inside a Walk.
- #19851 Fix some places in which we call Remove inside a Walk (x/staking and x/gov).
API Breaking Changes
- (baseapp) #16244
SetProtocolVersionhas been renamed toSetAppVersion. It now updates the consensus params in baseapp'sParamStore. - (types) #16918 Remove
IntProtoandDecProto. Instead,math.Intandmath.LegacyDecshould be used respectively. Both types supportMarshalandUnmarshalwhich should be used for binary marshaling. - (client) #17215
server.StartCmd,server.ExportCmd,server.NewRollbackCmd,pruning.Cmd,genutilcli.InitCmd,genutilcli.GenTxCmd,genutilcli.CollectGenTxsCmd,genutilcli.AddGenesisAccountCmd, do not take a home directory anymore. It is inferred from the root command. - (client) #17259 Remove deprecated
clientCtx.PrintObjectLegacy. UseclientCtx.PrintProtoorclientCtx.PrintRawinstead. - (types) #17348 Remove the
WrapServiceResultfunction.- The
*sdk.Resultreturned by the msg server router will not contain the.Datafield.
- The
- (types) #17426
NewContextdoes not take acmtproto.Header{}any longer.WithChainID/WithBlockHeight/WithBlockHeadermust be used to set values on the context
- (client/keys) #17503
clientkeys.NewKeyOutput,MkConsKeyOutput,MkValKeyOutput,MkAccKeyOutput,MkAccKeysOutputnow take their corresponding address codec instead of using the global SDK config. - (types/simulation) #17737 Remove unused parameter from
RandomFees - (types) #17738
WithBlockTime()was removed &BlockTime()were deprecated in favor ofWithHeaderInfo()&HeaderInfo().BlockTimenow gets data fromHeaderInfo()instead ofBlockHeader(). - (client) #17746
txEncodeAmino&txDecodeAminotxs via grpc and rest were removed - (app) #17838 Params module was removed from simapp and all imports of the params module removed throughout the repo.
- The Cosmos SDK has migrated away from using params, if your app still uses it, then you can leave it plugged into your app
- (x/bank/testutil) #17868
MsgSendExechas been removed because of AutoCLI migration. - (types) #17885
InitGenesis&ExportGenesisnow takecontext.Contextinstead ofsdk.Context - (x/gov/testutil) #17986
MsgDeposithas been removed because of AutoCLI migration. - (x/staking/testutil) #17986
MsgRedelegateExec,MsgUnbondExechas been removed because of AutoCLI migration. - (x/group) #17937 Groups module was moved to its own go.mod
cosmossdk.io/x/group - (x/slashing) #18115
NewValidatorSigningInfotakes strings instead ofsdk.AccAddress - (x/gov) #18197 Gov module was moved to its own go.mod
cosmossdk.io/x/gov - (x/distribution) #18199 Distribution module was moved to its own go.mod
cosmossdk.io/x/distribution - (x/slashing) #18201 Slashing module was moved to its own go.mod
cosmossdk.io/x/slashing - (x/staking) #18257 Staking module was moved to its own go.mod
cosmossdk.io/x/staking - (types) #18268 Remove global setting of basedenom. Use the staking module parameter instead
- (x/authz) #18265 Authz module was moved to its own go.mod
cosmossdk.io/x/authz - (x/mint) #18283 Mint module was moved to its own go.mod
cosmossdk.io/x/mint - (server) #18303
x/genutilnow handles the application export.server.AddCommandsdoes not take anAppExporterbut insteadgenutilcli.Commandsdoes. - (x/auth) #18351 Auth module was moved to its own go.mod
cosmossdk.io/x/auth - (types) #18372 Removed global configuration for coin type and purpose. Setters and getters should be removed and access directly to defined types.
- (types) #18607 Removed address verifier from global config, moved verifier function to bech32 codec.
- (types) #18695 Removed global configuration for txEncoder.
- (server) #18909 Remove configuration endpoint on grpc reflection endpoint in favour of auth module bech32prefix endpoint already exposed.
- (crypto) #19541 The deprecated
FromTmProtoPublicKey,ToTmProtoPublicKey,FromTmPubKeyInterfaceandToTmPubKeyInterfacefunctions have been removed. Use their replacements (Cmtinstead ofTm) instead. - (types) #19512 Remove basic manager and all related functions (
module.BasicManager,module.NewBasicManager,module.NewBasicManagerFromManager,NewGenesisOnlyAppModule).- The module manager now can do everything that the basic manager was doing.
- When using runtime, just inject the module manager when needed using your app config.
- All
AppModuleBasicstructs have been removed.
- (types) #19627 and #19735 All genesis interfaces now don't take
codec.JsonCodec:- Every module has the codec already, passing it created an unneeded dependency.
- Additionally, to reflect this change, the module manager does not take a codec either.
- (types) #19652 and #19758
- Moved
types/module.HasRegisterInterfacestocosmossdk.io/core. - Moved
RegisterInterfacesandRegisterImplementationsfromInterfaceRegistrytocosmossdk.io/core/registry.InterfaceRegistrarinterface.
- Moved
- (types) #19742 Removes the use of
Accounts.StringSimulationStatenow has address and validator codecs as fields.
- (runtime) #19747
runtime.ValidatorAddressCodecandruntime.ConsensusAddressCodechave been moved tocore. - (all) #19726 Integrate comet v1
- #19833 Fix some places in which we call Remove inside a Walk.
- #19839
Tx.GetMsgsV2has been replaced withTx.GetReflectMessages, andCodec.GetMsgV1SignersandCodec.GetMsgV2Signershave been replaced withGetMsgSignersandGetReflectMsgSignersrespectively. These API changes clear up confusion as to the use and purpose of these methods. - #19851 Fix some places in which we call Remove inside a Walk (x/staking and x/gov).
- (server) #19854 Remove
servertypes.ModuleInitFlagstypes and fromserver.AddCommandsasStartCmdOptionsalready achieves the same goal. - (x/genutil) #19926 Removal of the
Address.String()method and related changes:- Added an address codec as an argument to
CollectTxs,GenAppStateFromConfig, andAddGenesisAccount. - Removed the
ValidatorAddressCodecargument fromCollectGenTxsCmd, now utilizing the context for this purpose. - Changed
ValidateAccountInGenesisto accept a string instead of anAccAddress.
- Added an address codec as an argument to
- (baseapp) #19993 Indicate pruning with error code "not found" rather than "invalid request".
- (x/consensus) #20010 Move consensus module to be its own go.mod
- (x/crisis) #20043 Changed
NewMsgVerifyInvariantto accept a string as argument instead of anAccAddress. - (x/simulation)#20056
SimulateFromSeednow takes an address codec as argument. - (server) #20140 Remove embedded grpc-web proxy in favor of standalone grpc-web proxy. Envoy Proxy
- (client) #20255 Use comet proofOp proto type instead of sdk version to avoid needing to translate to later be proven in the merkle proof runtime.
- (types)#20369 The signature of
HasAminoCodechas changed to accept acore/legacy.Aminointerface instead ofcodec.LegacyAmino. - (server) #20422 Deprecated
ServerContext. To getcmtcfg.Configfrom cmd, useclient.GetCometConfigFromCmd(cmd)instead ofserver.GetServerContextFromCmd(cmd).Config - (x/genutil) #20740 Update
genutilcli.Commandsandgenutilcli.CommandsWithCustomMigrationMapto take the genesis module and abstract the module manager. - (types/errors) #20756 Remove
ResponseCheckTxWithEvents,ResponseExecTxResultWithEvents&QueryResultfrom types/errors pkg. They have been moved tobaseapp/errors.goand made private. - (client) #20976 Simplified command initialization by removing unnecessary parameters such as
txConfigandaddressCodec.- Remove parameter
txConfigfromgenutilcli.Commands,genutilcli.CommandsWithCustomMigrationMap,genutilcli.GenTxCmd. - Remove parameter
addressCodecfromgenutilcli.GenTxCmd,genutilcli.AddGenesisAccountCmd,stakingcli.BuildCreateValidatorMsg.
- Remove parameter
- (sims) #21039: Remove Baseapp from sims by a new interface
simtypes.AppEntrypoint.
Client Breaking Changes
- (runtime) #19040 Simplify app config implementation and deprecate
/cosmos/app/v1alpha1/configquery.
CLI Breaking Changes
- (server) #18303
appd exporthas moved with other genesis commands, useappd genesis exportinstead. - (perf)#20490 Sims: Replace runsim command with Go stdlib testing. CLI:
Commitdefault true,Lean,SimulateEveryOperation,PrintAllInvariants,DBBackendparams removed - (client/tx) #20870 Removed
timeout-heightflag replace withtimeout-timestampflag for a time based timeout.
Deprecated
- (simapp) #19146 Replace
--vCLI option with--validator-count/-n. - (module) #19370 Deprecate
module.Configurator, useappmodule.HasMigrationsandappmodule.HasServicesinstead from Core API.