65 KiB
65 KiB
CHANGELOG
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
Changed
-
@cosmjs/amino: Add IBC denom support to
parseCoinsand use the same implementation in all those imports:import { parseCoins } from "@cosmjs/proto-signing"; // equals import { parseCoins } from "@cosmjs/stargate"; // equals import { parseCoins } from "@cosmjs/amino";
Fixed
- @cosmjs/encoding: Avoid using replacement character in doc comment to make external tools happy. (#1570)
0.32.2 - 2023-12-19
Fixed
- @cosmjs/stargate: Update validation of
GasPrice.fromStringto allow using IBC denoms as gas denom. (#1522)
Changed
- @cosmjs/tendermint-rpc: Require protocol to be set in endpoint URLs (https://, http://, wss:// or ws://). Otherwise an error is raised instead of falling back to ws://. (#1527)
0.32.1 - 2023-12-04
Fixed
- @cosmjs/encoding: Ensure RFC dates between years 0001 and 0099 are parsed correctly. (#1516)
- @cosmjs/tendermint-rpc: Remove hacky
decodeOptionalTime()from adaptors now thattime.Timedates are parsed correctly. (#1516)
0.32.0 - 2023-11-23
Added
- @cosmjs/stargate and @cosmjs/cosmwasm-stargate:
sign/signAndBroadcast/signAndBroadcastSyncand related functions now have an additional parameter to specify the timeout height. After this height, a signed transaction will be considered invalid by the chain. (#1489) - @cosmjs/amino: Export
omitDefaultto help build Amino JSON converters.
Fixed
- @cosmjs/stargate: Handle key value pairs in tx search correctly if the value is a numeric value. (#1462)
- @cosmjs/cosmwasm-stargate: Make
fix_msgoptional inAminoMsgInstantiateContract2and omit default in the Amino JSON converter to fix Amino JSON signing for MsgInstantiateContract2. (#1509)
Changed
- all: Upgrade cosmjs-types to 0.9.0. This makes a few fields non-optional. It
changes all 64 bit int fields from type
longtobigint. As part of the upgrade, the types do not require thelongandprotobufjsanymore. (#1484) - all:
gasWanted/gasUsedfields were changed from typenumbertobigintto supported cases where users put very high gas values in there (#1465). - Drop support for Node.js 14 and add support for Node.js 20. (#1421)
- @cosmjs/tendermint-rpc: Remove
Adaptorabstractions which are not needed anymore by haing a dedicated client for each backend. - @cosmjs/tendermint-rpc: Add
CometClient = Tendermint34Client | Tendermint37Client | Comet38ClientandconnectCometfor auto-detecting the right client for a provided endpoint. - @cosmjs/stargate: Let
SigningStargateClient.createWithSignerandStargateClient.createtake aCometClientargument, adding support forComet38Client. The auto-detection inSigningStargateClient.connectWithSignerandStargateClient.connectnow supports CometBFT 0.38. RenameStargateClient.getTmClient/.forceGetTmClientto.getCometClient/.forceGetCometClient. - @cosmjs/cosmwasm-stargate: Let
SigningCosmWasmClient.createWithSignerandCosmWasmClient.createtake aCometClientargument, adding support forComet38Client. The auto-detection inSigningCosmWasmClient.connectWithSignerandCosmWasmClient.connectnow supports CometBFT 0.38. RenameCosmWasmClient.getTmClient/.forceGetTmClientto.getCometClient/.forceGetCometClient. - @cosmjs/stargate: Remove interfaces
SearchBySentFromOrToQueryandSearchByHeightQuerywhich became obsolete with thesearchTxchange in 0.31.0.
Deprecated
- @cosmjs/tendermint-rpc:
CometClientshould be used instead ofTendermintClient. - @cosmjs/stargate: Deprecate
SigningStargateClient.sendIbcTokens. Please usesignAndBroadcast+MsgTransferEncodeObjectinstead. (#1493) - @cosmjs/stargate: Deprecate
IndexedTx.rawLogandDeliverTxResponse.rawLogbecause those fields are unset from Cosmos SDK 0.50 onwards (see here).
0.31.3 - 2023-10-25
Fixed
- @cosmjs/stargate: Add missing memo field to
fromAminoimplementation forMsgTransfer. (#1493)
0.31.2 - 2023-10-24
Fixed
- @cosmjs/stargate: Add missing memo field to Amino JSON representation of
MsgTransferand adapt converters. (#1456)
0.31.1 - 2023-08-21
Fixed
- @cosmjs/tendermint-rpc: Add missing
earliest_*fields toSyncInforecord returned from the/statusRPC endpoint ([#1448]).
Changed
- @cosmjs/stargate, @cosmjs/cosmwasm-stargate: Change default multiplier for gas simulation from 1.3 to 1.4 to avoid out of case cases starting with Cosmos SDK 0.47.
- @cosmjs/cosmwasm-stargate: Reduce default gas multiplier for
SigningCosmWasmClient.uploadto 1.1. (#1360)
0.31.0 - 2023-06-22
Fixed
- @cosmjs/crypto: Migrate to
libsodium-wrappers-sumoto be able to use thecrypto_pwhashfunctions (#1429).
Added
- @cosmjs/cosmwasm-stargate: Add
SigningCosmWasmClient.instantiate2(#1407). - @cosmjs/cosmwasm-stargate: Add
CosmWasmClient.getContractsByCreator(#1266). - @cosmjs/stargate:
IndexedTxandDeliverTxResponsenow have amsgResponsesfield (#1305). - @cosmjs/cosmwasm-stargate: Add
CosmWasmClient.broadcastTxSyncandSigningCosmWasmClient.signAndBroadcastSyncto allow broadcasting without waiting for block inclusion. (#1396) - @cosmjs/stargate: Add
StargateClient.broadcastTxSyncandSigningStargateClient.signAndBroadcastSyncto allow broadcasting without waiting for block inclusion. (#1396) - @cosmjs/cosmwasm-stargate: Add Amino JSON support for
MsgStoreCode.instantiate_permission. (#334) - @cosmjs/stargate: Add group and gov v1 message types
Changed
- all: upgrade cosmjs-types to 0.8.0 to include Cosmos SDK 0.46/0.47 and IBC v7 types.
- @cosmjs/cosmwasm-stargate: Implement auto-detection for Tendermint 0.34/37 (#1411).
- @cosmjs/cosmwasm-stargate: Remove structured
searchTxqueries. Only raw query strings and key/value pairs are now supported. (#1411) - @cosmjs/cosmwasm-stargate: Let
searchTxreturn non-readonly array. The caller owns this array and can mutate it as they want. (#1411) - @cosmjs/cosmwasm-stargate: In
UploadResult(result fromSigningCosmWasmClient.upload), renameoriginalChecksumtochecksumand removecompressedChecksum(#1409). - @cosmjs/stargate: Implement auto-detection for Tendermint 0.34/37 (#1411).
- @cosmjs/stargate: Remove structured
searchTxqueries. Only raw query strings and key/value pairs are now supported. (#1411) - @cosmjs/stargate: Let
searchTxreturn non-readonly array. The caller owns this array and can mutate it as they want. (#1411) - @cosmjs/stargate: Remove
QueryClient.queryUnverifiedandQueryClient.queryVerified. Please useQueryClient.queryAbciandQueryClient.queryStoreVerifiedinstead. - @cosmjs/stargate: Remove "not_supported_by_chain" option for Amino converter types since this is not needed anymore. (#1403)
0.30.1 - 2023-03-22
Fixed
- @cosmjs/amino: Fix escaping of "&", "<" and ">" characters in Amino JSON encoding to match the Go implementation (#1373, #1388).
- @cosmjs/tendermint-rpc: Move version check from
Tendermint{34,37}Client.createto.connectin order to allow creating clients without performing the extra network request (#1358). - @cosmjs/cli, @cosmjs/faucet: Add missing
bin/directory to the package.json'sfileslist to ship it as part of the released package.
0.30.0 - 2023-03-09
Changed
- all: The TypeScript compilation target is now ES2020 (#1002).
- all: Add full support for Node.js 18 and run all CI tests with it (#1240).
- all: Upgrade cosmjs-types to 0.7.
- @cosmjs/tendermint-rpc: Remove unused
indexfield fromRpcTxEventandTxEvent. This is unset starting with Tendermint 0.34. - @cosmjs/proto-signing: Make input and output of
decodePubkeynon-optional (#1289). - @cosmjs/stargate: Remove unnecessary address prefix argument from
createStakingAminoConverters. This madeprefixinSigningCosmWasmClientOptionsandSigningStargateClientOptionsobsolete, so this was also deleted. (#1291) - @cosmjs/proto-signing: Remove
fromJSON/toJSONfromTsProtoGeneratedTypesuch that generated types are not required to generate those anymore. The methods were provided by ts-proto but we never needed them. (#1329) - @cosmjs/stargate: Rename
fromTendermint34EventtofromTendermintEventand let it support both Tendermint 0.34 and 0.37 events as input. - @cosmjs/cosmwasm-stargate: Remove
cosmWasmTypes. UsecreateWasmAminoConverters()instead. - @cosmjs/encoding: Remove previously deprecated
Bech32class. Please replaceBech32.encode/.decodewith free the functionstoBech32/fromBech32. - @cosmjs/cosmwasm-stargate: Changed the
SigningCosmWasmClientconstructor to include all Amino type converters that theSigningStargateClientuses by default, to match the default registry types (#1384).
Added
- @cosmjs/stargate: Add
granteeGrantsandgranterGrantsqueries toAuthzExtension(#1308). - @cosmjs/tendermint-rpc: Add new
Tendermint37Clientand remove unusedTendermint35Client; AddTendermintClientas a union type forTendermint34ClientorTendermint37ClientandisTendermint34Client/isTendermint37Clientto get the specific type (#1376). - @cosmjs/stargate: Add constructors
StargateClient.createandSigningStargateClient.createWithSignerto construct with a given Tendermint client (#1376). - @cosmjs/cosmwasm-stargate: Add constructors
CosmWasmClient.createandSigningCosmWasmClient.createWithSignerto construct with a given Tendermint client (#1376). - @cosmjs/cosmwasm-stargate: Add
instantiate2Addressto pre-calculate addresses for Instantiate2 (#1253). - @cosmjs/stargate: Add
txIndextoDeliverTxResponseandIndexedTx(#1361). - @cosmjs/stargate: Add
createDefaultAminoConvertersto access theSigningStargateClient's list of default Amino type converters to match the default registry types indefaultStargateTypes(#1384).
0.29.5 - 2022-12-07
Fixed
- @cosmjs/stargate: Fix
protoDecimalToJsonfor values with a 0 fractional part, such as0.000000000000000000,1.000000000000000000or42.000000000000000000(#1326).
Changed
- @cosmjs/crypto:
getSubtle()does not usegetCryptoModule()anymore to find a subtle implementation. Turns out all environments we support have subtle inglobalThisor do not have it at all (#1307, #1340).
Deprecated
- @cosmjs/stargate: Deprecate
QueryClient.queryUnverifiedin favour of newly addedQueryClient.queryAbci. - @cosmjs/stargate: Deprecate
QueryClient.queryVerifiedin favour of newly addedQueryClient.queryStoreVerified.
0.29.4 - 2022-11-15
Added
- @cosmjs/tendermint-rpc: The options in the
HttpBatchClientconstructor are now of typePartial<HttpBatchClientOptions>, allowing you to set only the fields you want to change (#1309). - @cosmjs/tendermint-rpc: Add missing exports
HttpBatchClient,HttpBatchClientOptions,RpcClient(#1311). - @cosmjs/tendermint-rpc: Send batch immediately when full in
HttpBatchClient(#1310).
Fixed
- @cosmjs/cosmwasm-stargate: Fix
ContractCodeHistorydecoding when msg contains non-printable ASCII (#1320). - @cosmjs/crypto: Bump elliptic version to ^6.5.4 due to CVE-2020-28498.
0.29.3 - 2022-10-25
Added
- @cosmjs/tendermint-rpc: Add
HttpBatchClient, which implementsRpcClient, supporting batch RPC requests (#1300). - @cosmjs/encoding: Add
lossyparameter tofromUtf8allowing the use of a replacement charater instead of throwing. - @cosmjs/stargate: Add structured
Eventss toIndexTx.eventsandDeliverTxResponse.events. - @cosmjs/cosmwasm-stargate: Add structured
Eventss field toSigningCosmWasmClients transaction execution methods.
Fixed
- @cosmjs/stargate: Fix Amino JSON encoding of the unset case of
commission_rateandmin_self_delegationinMsgEditValidator/AminoMsgEditValidator.
0.29.2 - 2022-10-13
Added
- @cosmjs/amino: Add
encodeEd25519Pubkeyanalogue to the existingencodeSecp256k1Pubkey. - @cosmjs/proto-signing: Add Ed25519 support to
encodePubkeyandanyToSinglePubkey. ExportanyToSinglePubkey. - @cosmjs/utils: Add
isDefinedwhich checks forundefinedin a TypeScript-friendly way. - @cosmjs/stargate: Add missing
{is,}MsgBeginRedelegateEncodeObject,{is,MsgCreateValidatorEncodeObject}and{is,MsgEditValidatorEncodeObject}.
Fixed
- @cosmjs/cosmwasm-stargate: Use type
JsonObject = anyfor smart query requests and messages (inWasmExtension.wasm.queryContractSmart,CosmWasmClient.queryContractSmart,SigningCosmWasmClient.instantiate,SigningCosmWasmClient.migrate,SigningCosmWasmClient.execute). This reverts the type change done in CosmJS 0.23.0. (#1281, #1284) - @cosmjs/cosmwasm-stargate:
AminoMsgCreateValidatorandcreateStakingAminoConverterswere fixed after testing bothMsgCreateValidatorandMsgEditValidatorin sign mode direct and Amino JSON (#1290).
0.29.1 - 2022-10-09
Changed
- @cosmjs/stargate, @cosmjs/cosmwasm-stargate: Add address to "Account does not exist on chain." error message.
0.29.0 - 2022-09-15
Added
- @cosmjs/stargate: Add
makeMultisignedTxByteswhich is likemakeMultisignedTxbut returns bytes ready to broadcast (#1176). - @cosmjs/tendermint-rpc: Add Tendermint 0.35 client (private, unusable). This is currently not used by higher level clients as Cosmos SDK 0.42-0.46 use Tendermint 0.34. It may become public or evolve into a Tendermint 0.36+ client from here. If you need this client, please comment in #1225 or open a new issue. (#1154 and #1225)
- @cosmjs/tendermint-rpc: Add fields
codespaceandinfotoAbciQueryResponse. - @cosmjs/cosmwasm-stargate: Add
SigningCosmWasmClient.executeMultiple(#1072). - @cosmjs/math: Add
{Uint32,Int53,Uint53,Uint64}.toBigIntconverter methods. - @cosmjs/stargate: Add missing exports
AminoMsgTransfer/isAminoMsgTransfer. - @cosmjs/stargate: Add support for
MsgVoteWeighted(register by default and create Amino JSON converters) (#1224). - @cosmjs/stargate: Add Amino JSON support for
MsgCreateVestingAccount. - @cosmjs/stargate and @cosmjs/cosmwasm-stargate: Create and use BroadcastTxError (#1096).
- @cosmjs/stargate: Add height parameter to
QueryClient.queryUnverified(#1250). - @cosmjs/faucet: Allow configuring the cooldown value via
FAUCET_COOLDOWN_TIMEenvironment variable. - @cosmjs/stargate: Add missing exports
setupAuthzExtension,setupFeegrantExtensionandsetupSlashingExtension(#1261). - @cosmjs/stargate: Add missing exports
createCrysisAminoConverters,createEvidenceAminoConverters,createSlashingAminoConvertersandcreateVestingAminoConverters(#1261).
Fixed
- @cosmjs/stargate: Fix valid values of
BondStatusStringforvalidatorsquery (#1170). - @cosmjs/tendermint-rpc: Fix decoding validator updates due to slashing (#1177).
- @cosmjs/math: Check for negative values in
Decimal.fromAtomics(#1188). - @cosmjs/tendermint-rpc: Fix
keyandvaluetype inRpcAbciQueryResponseto also include thenulloption. - @cosmjs/tendermint-rpc: Fix decoding events without attributes (#1198).
- @cosmjs/amino, @cosmjs/proto-signing: Support amounts larger than the uint64
range in
parseCoins(#1268). - @cosmjs/cosmwasm-stargate: Accept non-ASCII inputs in query requests of
{CosmWasmClient,WasmExtension}.queryContractSmart(#1269).
Changed
- all: Upgrade cosmjs-types to 0.5 (#1131).
- all: Drop support for Node.js < 14.
- all: Use caret version for internal dependencies' version ranges (#1254).
- @cosmjs/stargate: Change
packetCommitmentparametersequencetype fromLongtonumber(#1168). - @cosmjs/tendermint-rpc: The type of
votingPowerfields was changed fromnumbertobigintas those values can exceed the safe integer range (#1133). - @cosmjs/stargate: Remove Cosmos SDK 0.42 support (#1094).
- @cosmjs/tendermint-rpc: Change spelling of field
codeSpacetocodespaceinTxDataandBroadcastTxSyncResponse(#1234). - @cosmjs/stargate:
BankExtension.totalSupplynow takes a pagination key argument and returns the fullQueryTotalSupplyResponseincluding the next pagination key (#1095). - @cosmjs/proto-signing:
makeAuthInfoBytesnow expects a fee granter and fee payer argument in position 4 and 5. - @cosmjs/stargate: Rename exported function
createFreegrantAminoConverterstocreateFeegrantAminoConvertersdue to a typo ([#1261).
0.28.11 - 2022-07-13
Fixed
- @cosmjs/faucet: Fix cooldown value from 86 seconds to 24 hours.
0.28.10 - 2022-06-29
Fixed
- @cosmjs/tendermint-rpc: Fix decoding events without attributes (#1198).
0.28.9 - 2022-06-21
This version replaces the 0.28.8 release which was erroneously tagged as 0.26.8
and released to npm under that wrong version. In order to avoid further
confusion we give up the .8 patch version. Users should install ^0.28.9 for
all @cosmjs/* packages to be safe. Users of ^0.26 should upgrade to a more
recent minor version if they run into trouble.
0.28.8 - 2022-06-21
- @cosmjs/tendermint-rpc: Fix decoding validator updates due to slashing (#1177).
0.28.7 - 2022-06-14
Fixed
- @cosmjs/stargate: Fix valid values of
BondStatusStringforvalidatorsquery (#1170).
Changed
- @cosmjs/proto-signing, @cosmjs/cosmwasm-stargate: Turn
protobufjsinto a devDependency (#1166).
0.28.6 - 2022-06-08
0.28.5 - 2022-06-08
Added
- @cosmjs/math: Add
Decimal.floorandDecimal.ceil. - @cosmjs/tendermint-rpc: Add
num_unconfirmed_txsendpoint. (#1150)
Changed
- @cosmjs/stargate: Let
calculateFeehandle fee amounts that exceed the safe integer range. - @cosmjs/cosmwasm-stargate, @cosmjs/stargate, @cosmjs/proto-signing: Upgrade protobufjs to 6.11.
Fixed
- @cosmjs/tendermint-rpc: Fix block results validator update decoder. (#1151)
0.28.4 - 2022-04-15
Added
- @cosmjs/math: Add
Decimal.zeroandDecimal.one(#1110). - @cosmjs/amino: Add
addCoins(#1116) - @cosmjs/stargate: Add
StargateClient.getBalanceStaked()to query the sum of all staked balance. (#1116)
Changed
- @cosmjs/faucet: Docker build image is 90 % smaller now (from 500 MB to 50 MB) due to build system optimizations (#1120, #1121).
- @cosmjs/cosmwasm-stargate:
CosmWasmClient.connectandSigningCosmWasmClient.connectWithSignernow accept custom HTTP headers (#1007) - @cosmjs/stargate:
StargateClient.connectandSigningStargateClient.connectWithSignernow accept custom HTTP headers (#1007) - @cosmjs/tendermint-rpc:
Tendermint34Client.connectnow accepts custom HTTP headers (#1007).
0.28.3 - 2022-04-11
Added
- @cosmjs/encoding: Add missing export:
normalizeBech32.
0.28.2 - 2022-04-07
Added
- @cosmjs/encoding: Create
normalizeBech32. - @cosmjs/stargate: Added support for
MsgCreateVestingAccount(#1074). Please note that Amino JSON signing is currently not available for this type (#1115).
0.28.1 - 2022-03-30
Added
- @cosmjs/stargate: Added the ability to specify a custom account parser for
StargateClient
Fixed
- @cosmjs/proto-signing: Add missing runtime dependencies @cosmjs/encoding and @cosmjs/utils.
- @cosmjs/tendermint-rpc: Add missing runtime dependency @cosmjs/utils.
0.28.0 - 2022-03-17
Changed
- all: The TypeScript compilation target is now ES2018.
- @cosmjs/crypto: Add
Secp256k1.uncompressPubkey. - @cosmjs/crypto: Replace hashing implementations with @noble/hashes (#960).
- @cosmjs/faucet: Set default value of
FAUCET_GAS_LIMITto 100_000 to better support Cosmos SDK 0.45 chains. - @cosmjs/stargate: The
AminoTypesnow always requires an argument of typeAminoTypesOptions. This is an object with a requiredprefixfield. Before the prefix defaulted to "cosmos" but this is almost never the right choice for CosmJS users that need to add Amino types manually. (#989) - @cosmjs/cosmwasm-stargate:
height,gasWantedandgasUsedhave been added to all result types ofSigningCosmWasmClient - @cosmjs/stargate:
MsgSendandCoinare now parts ofdefaultRegistryTypes. (#994) - @cosmjs/proto-signing:
Registry's constructor can now override default types. (#994) - @cosmjs/tendermint-rpc: The property
evidencein the interfaceBlockis now non-optional. (#1011) - @cosmjs/stargate: Added the following message types to stargate's
defaultRegistryTypes: (#1026)- cosmos.authz.v1beta1.MsgGrant
- cosmos.authz.v1beta1.MsgExec
- cosmos.authz.v1beta1.MsgRevoke
- cosmos.feegrant.v1beta1.MsgGrantAllowance
- cosmos.feegrant.v1beta1.MsgRevokeAllowance
- @cosmjs/stargate: In
AminoTypesthe uniqueness of the Amino type identifier is checked infromAminonow instead of the constructor. This only affects you if multiple different protobuf type URLs map to the same Amino type identifier which should not be the case anyways. - @cosmjs/stargate: Added support for slashing queries (#927)
- @cosmjs/ledger-amino: Renamed
LaunchpadLedgertoLedgerConnector(#955) - @cosmjs/encoding: Created
toBech32()andfromBech32(). Class Bech32 is now deprecated and should not longer be used. (#1053) - @cosmjs/crypto: Use a custom BIP-39 implementation to reduce external dependencies. This should also reduce the bundle size as only the English wordlist is shipped. (#966)
- @cosmjs/cli: Rename binary
cosmwasm-clitocosmjs-cli(#1033). - @cosmjs/stargate: Added Authz queries. (#1080).
- @cosmjs/stargate & @cosmjs/cosmwasm-stargate: Removed default types from AminoTypes. (#1079)
- @cosmjs/cosmwasm-stargate: getCodes() automatically loops through all pagination pages now. (#1077)
- @cosmjs/stargate & @cosmjs/cosmwasm-stargate: Timeout Errors shows more relevant information about the timeout. (#1066)
Removed
- @cosmjs/crypto: Remove the SHA1 implementation (
Sha1andsha1) as it is not used in the Cosmos tech stack and not implemented in the hashing lib we want to migrate to (#1003). Also it has known weaknesses. - @cosmjs/launchpad: Package was removed as no support for Cosmos SDK 0.37-0.39 is needed anymore (#947).
0.27.1 - 2022-01-26
Added
- @cosmjs/cosmwasm-stargate: Add
fromBinary/toBinaryto convert between JavaScript objects and the JSON representation ofcosmwasm_std::Binary(base64). - @cosmjs/cosmwasm-stargate: Export
WasmExtensionandsetupWasmExtension. - @cosmjs/ledger-amino: Added
LedgerSigner.showAddressandLaunchpadLedger.showAddressto show the user's address in the Ledger screen.
Changed
- @cosmjs/stargate: The error messages for missing types in
AminoTypesnow contain the type that was searched for (#990). - @cosmjs/tendermint-rpc: Change the
Evidencetype toanyand avoid decoding it. The structure we had before was outdated and trying to decode it led to exceptions at runtime when a block with actual values was encountered. (#980)
0.27.0 - 2022-01-10
Added
- @cosmjs/tendermint-rpc: Add
hashfield toBroadcastTxAsyncResponse(#938). - @cosmjs/stargate: Add
denomMetadataanddenomsMetadatatoBankExtension(#932). - @cosmjs/stargate: Merge
DeliverTxFailureandDeliverTxSuccessinto a singleDeliverTxResponse(#878, #949). AddassertIsDeliverTxFailure. - @cosmjs/stargate: Created initial
MintExtension. - @cosmjs/stargate: Created
types.Decdecoder functiondecodeCosmosSdkDecFromProto. - @cosmjs/amino: Added
StdTx,isStdTxandmakeStdTxand removed them from @cosmjs/launchpad. They are re-exported in @cosmjs/launchpad for backwards compatibility. - @cosmjs/stargate: Add
GasPrice.toString. - @cosmjs/faucet: Added a new functionality to faucet: Each address is only allowed to get credits once every 24h to prevent draining. (#962))
Fixed
- @cosmjs/tendermint-rpc: Add missing
BlockSearchResponsecase toResponse.
Changed
- @cosmjs/stargate: Remove verified queries from
AuthExtensionandBankExtensionas well asStargateClient.getAccountVerifiedbecause the storage layout is not stable across multiple Cosmos SDK releases. Verified queries remain available in theIbcExtensionbecause for IBC the storage layout is standardized. Such queries can still be implemented in CosmJS caller code that only needs to support one backend. (#865) - @cosmjs/tendermint-rpc: Remove default URL from
HttpClientandWebsocketClientconstructors (#897). - all: Upgrade cosmjs-types to 0.4. This includes the types of the Cosmos SDK
0.44 modules x/authz and x/feegrant. It causes a few breaking changes by
adding fields to interfaces as well as changing
Dateto aTimestampobject. (#928) - @cosmjs/stargate and @cosmjs/cosmwasm-stargate: Add simulation support (#931).
- @cosmjs/cosmwasm-stargate: Rename
BroadcastTx{Success,Failure}toDeliverTx{Success,Failure},BroadcastTxResponsetoDeliverTxResponse,isBroadcastTx{Success,Failure}toisDeliverTx{Success,Failure}andassertIsBroadcastTxSuccesstoassertIsDeliverTxSuccess. (#946) - @cosmjs/tendermint-rpc: Remove
Tendermint33Clientand related symbols. - @cosmjs/cosmwasm-stargate: Add support for wasmd 0.21. This changes the AMINO
JSON representation of
Msg{Execute,Instantiate,Migrate}Contract.msgfrom base64 strings to JSON objects. (#948) - @cosmjs/cli: Replace
colorsdependency withchalk(see https://snyk.io/blog/open-source-npm-packages-colors-faker/)
0.26.6 - 2022-01-10
Changed
- @cosmjs/cli: Replace
colorsdependency withchalk(see https://snyk.io/blog/open-source-npm-packages-colors-faker/)
0.26.5 - 2021-11-20
Added
- @cosmjs/amino: The
coinandcoinshelpers now support bothnumberandstringas input types for the amount. This is useful if your values exceed the safe integer range.
Fixed
- @cosmjs/tendermint-rpc: Fix undefined
thisindecodeBroadcastTxAsyncandbroadcastTxAsync(#937).
0.26.4 - 2021-10-28
Fixed
- @cosmjs/cosmwasm-stargate: Fix response error handling for smart queries.
0.26.3 - 2021-10-25
Added
- @cosmjs/ledger-amino: Add support for using forks of the Cosmos Ledger app by
adding the fields
LaunchpadLedgerOptions.ledgerAppNameand.minLedgerAppVersion.
Deprecated
- @cosmjs/stargate: The verified queries from
AuthExtensionandBankExtensionas well asStargateClient.getAccountVerifiedare deprecated and will be removed in 0.27 (#910).
0.26.2 - 2021-10-12
Fixed
- @cosmjs/stargate: remove extra space in messageTimeout registry.
- @cosmjs/cosmwasm-stargate: Fix Amino JSON representation of
MsgInstantiateContract,MsgMigrateContractandMsgExecuteContractto match the wasmd expectation. This was broken since the wasmd upgrade to Stargate such that no Ledger signing was possible for those message types in the meantime.
0.26.1 - 2021-09-30
Added
- @cosmjs/amino:
decodeBech32PubkeyanddecodeAminoPubkeynow support decoding multisig public keys (#882).
Fixed
- @cosmjs/stargate: Add missing pagination key arguments to query types in
GovExtension.
0.26.0 - 2021-08-24
Added
- @cosmjs/tendermint-rpc:
Tendermint34Client.blockSearchandTendermint34Client.blockSearchAllwere added to allow searching blocks in Tendermint 0.34.9+ backends. - @cosmjs/tendermint-rpc:
Tendermint33Clienthas been added to provide support for Tendermint v0.33. - @cosmjs/tendermint-rpc: Exports relating to
Tendermint33Clientare now available undertendermint33. - @cosmjs/proto-signing and @cosmjs/stargate: Create a Stargate-ready
parseCoinsthat replaces theparseCoinsre-export from@cosmjs/amino. - @cosmjs/cosmwasm-stargate: Export
isValidBuilder, which is a clone ofisValidBuilderfrom @cosmjs/cosmwasm-launchpad. - @cosmjs/cosmwasm-stargate: Copy symbols
Code,CodeDetails,Contract,ContractCodeHistoryEntryandJsonObjectfrom @cosmjs/cosmwasm-launchpad and remove dependency on @cosmjs/cosmwasm-launchpad. - @cosmjs/faucet: Add new configuration variable
FAUCET_PATH_PATTERNto configure the HD path of the faucet accounts (#832). - @cosmjs/cosmwasm-stargate: Add field
ibcPortIdtoContract(#836). - @cosmjs/stargate: Add
GovExtensionfor query client. - @cosmjs/stargate: Add support for
MsgDeposit,MsgSubmitProposalandMsgVote.
Changed
- @cosmjs/cosmwasm-launchpad: The
transferAmountproperty onInstantiateOptions(accepted as a parameter toSigningCosmWasmClient.instantiate) has been renamed tofunds. - @cosmjs/cosmwasm-stargate: The
transferAmountproperty onInstantiateOptions(accepted as a parameter toSigningCosmWasmClient.instantiate) has been renamed tofunds. - @cosmjs/cosmwasm-stargate: Default fee/gas values have been removed. Fees now
need to be calculated and passed to
SigningCosmWasmClientwhen calling any methods which submit transactions to the blockchain. - @cosmjs/stargate: Default fee/gas values have been removed. Fees now need to
be calculated and passed to
SigningStargateClientwhen calling any methods which submit transactions to the blockchain. - @cosmjs/tendermint-rpc: Make
tendermint34.Header.lastBlockIdandtendermint34.Block.lastCommitoptional to better handle the case of height 1 where there is no previous block. - @cosmjs/proto-signing:
makeAuthInfoBytesnow takes an array of pubkey sequence pairs in order to support different sequences for different signers. - @cosmjs/cosmwasm-stargate: Upgraded client to support wasmd 0.18 backends.
Other backends are not supported anymore. Update proto types from
cosmwasm.wasm.v1beta1.*tocosmwasm.wasm.v1.*.MsgStoreCode.sourceandMsgStoreCode.builderwere removed;MsgInstantiateContract.initMsgandMsgMigrateContract.migrateMsgwere renamed tomsg;Code.{source,builder}andCodeDetails.{source,builder}were removed;isValidBuilderwas removed;UploadMetaand themetafromSigningCosmWasmClient.uploadwere removed. (#863)
Removed
- Node.js v10 is no longer supported. Please use v12 or later.
- @cosmjs/cosmwasm-stargate: Remove
CosmWasmFeeTabletype anddefaultGasLimitsobject. - @cosmjs/stargate: Remove types, objects and functions to do with default fees:
CosmosFeeTable,FeeTable,GasLimits,defaultGasLimits,defaultGasPriceandbuildFeeTable. - @cosmjs/tendermint-rpc:
Clienthas been removed. Please useTendermint33ClientorTendermint34Client, depending on your needs. - @cosmjs/cosmwasm: Package removed (#786).
- @cosmjs/cosmwasm-launchpad: Package removed (#786).
Fixed
- @cosmjs/socket: Upgrade dependency "ws" to version 7 to avoid potential security problems.
0.25.6 - 2021-07-26
Fixed
- @cosmjs/stargate: Fix types
AminoMsgTransferandAminoHeightas well as the encoding ofMsgTransferfor Amino signing.
0.25.5 - 2021-06-23
Added
- @cosmjs/tendermint-rpc:
Tendermint34Client.blockSearchandTendermint34Client.blockSearchAllwere 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.
0.25.4 - 2021-05-31
Fixed
- @cosmjs/socket: Upgrade dependency "ws" to version 7 to avoid potential security problems.
0.25.3 - 2021-05-18
Fixed
- @cosmjs/cosmwasm-stargate, @cosmjs/stargate: Fix error propagation in
CosmWasmClient.broadcastTxandStargateClient.broadcastTx(#800). This bug was introduced with the switch from broadcast mode "commit" to "sync" in version 0.25.0. - @cosmjs/launchpad, @cosmjs/stargate: Avoid the use of named capture groups in
GasPrice.fromStringto restore ES2017 compatibility and make the library work with Hermes (#801; thanks @AlexBHarley). - @cosmjs/launchpad: Adapt
GasPrice.fromStringdenom pattern to Cosmos SDK 0.39 rules: reduce denom length to 16 and allow digits in denom. - @cosmjs/stargate: Adapt
GasPrice.fromStringdenom pattern to Cosmos SDK 0.42 rules: allow lengths up to 128, allow upper case letters and digits.
0.25.2 - 2021-05-11
Added
- @cosmjs/cosmwasm-stargate: Add
broadcastTimeoutMsandbroadcastPollIntervalMsoptions added toSigningCosmWasmClientOptions. - @cosmjs/proto-signing: Add
serializeandserializeWithEncryptionKeymethods toDirectSecp256k1HdWallet. Also adddeserializeanddeserializeWithEncryptionKeystatic methods. - @cosmjs/proto-signing: Export
extractKdfConfigurationandexecuteKdfhelper functions andKdfConfigurationtype. - @cosmjs/proto-signing: Export
makeCosmoshubPathhelper. - @cosmjs/stargate: Export
makeCosmoshubPathhelper. - @cosmjs/stargate: Add
broadcastTimeoutMsandbroadcastPollIntervalMsoptions added toSigningStargateClientOptions.
0.25.1 - 2021-05-06
Added
- @cosmjs/cosmwasm-stargate: Export types
Code,CodeDetails,Contract,ContractCodeHistoryEntryandJsonObjectwhich are response types ofCosmWasmClientmethods. Export typesChangeAdminResult,ExecuteResult,InstantiateOptions,InstantiateResult,MigrateResult,UploadMetaandUploadResultwhich are argument or response types ofSigningCosmWasmClientmethods.
Fixed
- @cosmjs/cosmwasm-stargate: Use
CosmWasmFeeTableinstead ofCosmosFeeTableinSigningCosmWasmClientOptions; export typeCosmWasmFeeTable. - @cosmjs/amino, @cosmjs/cli, @cosmjs/ledger-amino, @cosmjs/proto-signing: Fix runtime error caused by passing explicitly undefined options.
0.25.0 - 2021-05-05
Added
- @cosmjs/cosmwasm-launchpad: Expose
SigningCosmWasmClient.fees. - @cosmjs/cosmwasm-stargate: Expose
SigningCosmWasmClient.feesandSigningCosmWasmClient.registry. - @cosmjs/launchpad: Expose
SigningCosmosClient.fees. - @cosmjs/stargate: Expose
SigningStargateClient.feesandSigningStargateClient.registry. - @cosmjs/stargate: Add support for different account types in
accountFromAnyandStargateClient. AddedModuleAccountand vesting accountsBaseVestingAccount,ContinuousVestingAccount,DelayedVestingAccountandPeriodicVestingAccount. - @cosmjs/stargate: Add codecs for IBC channel tx, client query/tx, and connection tx, as well as Tendermint.
- @cosmjs/stargate: Add support for IBC message types in
SigningStargateClient. - @cosmjs/stargate: Added new
logsexport with all the functionality from @cosmjs/launchpad. - @cosmjs/stargate: Added new
Coin,coin,coinsandparseCoinsexports which have the same functionality as already existed in @cosmjs/launchpad. - @cosmjs/amino: New package created that contains the shared amino signing functionality for @cosmjs/launchpad and @cosmjs/stargate.
- @cosmjs/amino: Split public key interfaces into
Pubkey,SinglePubkeyandSecp256k1PubkeywherePubkeyis a generalization of the oldPubKeythat supported nested pubkeys for multisig.SinglePubkeyis the oldPubKeyin which thevalueis a base64 encoded string. AndSecp256k1Pubkeyis a single secp256k1 pubkey. - @cosmjs/utils: The new
arrayContentStartsWithworks similar toarrayContentEqualsbut only checks the start of an array. - @cosmjs/proto-signing: Added new
Coin,coin,coinsandparseCoinsexports which have the same functionality as already existed in @cosmjs/launchpad. - @cosmjs/stargate: Add
SigningStargateClient.sign, which allows you to create signed transactions without broadcasting them directly. The new typeSignerDatacan be passed into.signto skip querying account number, sequence and chain ID - @cosmjs/cosmwasm-stargate: Add
SigningCosmWasmClient.sign, which allows you to create signed transactions without broadcasting them directly. The new typeSignerDatafrom @cosmjs/stargate can be passed into.signto skip querying account number, sequence and chain ID. - @cosmjs/stargate: Add constructor
SigningStargateClient.offlinewhich does not connect to Tendermint. This allows offline signing. - @cosmjs/stargate: Add
makeMultisignedTxwhich allows you to assemble a transaction signed by a multisig account. - @cosmjs/stargate: Add
delegateTokens,undelegateTokensandwithdrawRewardsmethods toSigningStargateClient. - @cosmjs/stargate: Export
defaultGasLimitsanddefaultGasPrice. - @cosmjs/cosmwasm-stargate: Export
defaultGasLimits. - @cosmjs/stargate:
SigningStargateClientconstructor is nowprotected. - @cosmjs/cosmwasm-stargate:
SigningCosmWasmClientconstructor is nowprotected. - @cosmjs/cosmwasm-stargate: Add
SigningCosmWasmClient.offlinestatic method for constructing offline clients without a Tendermint client. - @cosmjs/stargate: Add
SigningStargateClient.sendIbcTokensmethod. - @cosmjs/amino: Export
Secp256k1HdWalletOptionsinterface. - @cosmjs/amino: Add
bip39Passwordoption toSecp256k1HdWalletoptions. - @cosmjs/proto-signing: Export
DirectSecp256k1HdWalletOptionsinterface. - @cosmjs/proto-signing: Add
bip39Passwordoption toDirectSecp256k1HdWalletoptions. - @cosmjs/amino: Add
rawEd25519PubkeyToRawAddresshelper function. - @cosmjs/tendermint-rpc: Add
pubkeyToAddress,pubkeyToRawAddress,rawEd25519PubkeyToRawAddress, andrawSecp256k1PubkeyToRawAddresshelper functions. - @cosmjs/stargate:
StargateClient.broadcastTxand.getTxresults now includegasUsedandgasWantedproperties. - @cosmjs/cosmwasm-stargate:
CosmWasmClient.broadcastTxand.getTxresults now includegasUsedandgasWantedproperties. - @cosmjs/proto-signing: Export
DecodeObjectandTxBodyEncodeObjectinterfaces as well asisTxBodyEncodeObjecthelper function. - @cosmjs/stargate: Add
MsgDelegateEncodeObject,MsgSendEncodeObject,MsgTransferEncodeObject,MsgUndelegateEncodeObjectandMsgWithdrawDelegatorRewardEncodeObjectinterfaces as well asisMsgDelegateEncodeObjectetc helpers. - @cosmjs/cosmwasm-stargate: Add
MsgClearAdminEncodeObject,MsgExecuteContractEncodeObject,MsgInstantiateContractEncodeObject,MsgMigrateContractEncodeObject,MsgStoreCodeEncodeObjectandMsgUpdateAdminEncodeObjectinterfaces as well asisMsgClearAdminEncodeObjectetc helpers. - @cosmjs/stargate: Add transfer queries codec, as well as transfer query methods to IBC query extension.
- @cosmjs/tendermint-rpc: Export
ValidatorSecp256k1Pubkeyinterface. - @cosmjs/proto-signing: Add transaction decoder
decodeTxRawfor decoding transaction bytes returned by Tendermint (e.g. inIndexedTx.tx).
Changed
- @cosmjs/cosmwasm-stargate: Codec adapted to support wasmd 0.16. Older versions of wasmd are not supported anymore.
- @cosmjs/stargate: Let
AuthExtension.accountandAuthExtension.unverified.accountreturn an account of typeAny. This makes the caller responsible for decoding the type. - @cosmjs/stargate: Remove
accountFromProtoin favour ofaccountFromAny. - @cosmjs/stargate: Rename
Rpcinterface toProtobufRpcClientandcreateRpctocreateProtobufRpcClient. - @cosmjs/stargate: Reorganize nesting structure of IBC query client and add support for more methods.
- @cosmjs/tendermint-rpc: The fields
CommitSignature.validatorAddress,.timestampand.signatureare now optional. They are unset whenblockIdFlagisBlockIdFlag.Absent. The decoding intoCommitSignatureis only updated for the classTendermint34Client, not forClient. Please migrate to the former. - @cosmjs/launchpad:
rawSecp256k1PubkeyToAddresswas removed. Instead useBech32.encode(prefix, rawSecp256k1PubkeyToRawAddress(pubkeyRaw))withrawSecp256k1PubkeyToRawAddressfrom @cosmjs/amino. - @cosmjs/stargate:
parseRawLogis now nested under thelogsexport. - @cosmjs/stargate: Query extensions now have unverified queries at the root and
verified queries nested under
.verified. - @cosmjs/cosmwasm-stargate:
wasmextension now has unverified queries at the root. - @cosmjs/stargate:
StargateClient.getAccountnow uses an unverified query andStargateClient.getAccountUnverifiedhas been removed.StargateClient.getAccountVerifiedhas been added, which performs a verified query. - @cosmjs/cosmwasm-stargate:
CosmWasmClient.getAccountnow uses an unverified query andCosmWasmClient.getAccountUnverifiedhas been removed.CosmWasmClient.getAccountVerifiedhas been added, which performs a verified query. - @cosmjs/stargate:
StargateClient.getSequencenow rejects if the account is not found, instead of returning null. - @cosmjs/stargate:
StargateClient.getBalancenow returns a 0 balance instead of null. - @cosmjs/stargate:
StargateClient.getAllBalancesUnverifiedhas been renamed.getAllBalances. - @cosmjs/cosmwasm-stargate:
CosmWasmClient.getSequencenow rejects if the account is not found, instead of returning null. - @cosmjs/cosmwasm-stargate:
CosmWasmClient.getBalancenow returns a 0 balance instead of null. - @cosmjs/amino: Options for
Secp256k1HdWallet.fromMnemonicare now passed via aSecp256k1HdWalletOptionsobject. - @cosmjs/proto-signing: Options for
DirectSecp256k1HdWallet.fromMnemonicare now passed via aDirectSecp256k1HdWalletOptionsobject. - @cosmjs/stargate:
StargateClient.broadcastTxnow uses sync mode and then polls for the transaction before resolving. The timeout and poll interval can be configured. - @cosmjs/cosmwasm-stargate:
CosmWasmClient.broadcastTxnow uses sync mode and then polls for the transaction before resolving. The timeout and poll interval can be configured. - @cosmjs/tendermint-rpc: Tendermint v34
TxDatatype now includescodeSpace,gasWanted, andgasUsedproperties. - @cosmjs/amino:
Secp256k1HdWallet.fromMnemonicnow accepts aSecp256k1HdWalletOptionsargument which includes an array ofhdPathsinstead of a singlehdPath.Secp256k1HdWallet.generatenow also accepts options via this interface. This adds support for multiple accounts from the same mnemonic toSecp256k1HdWallet. - @cosmjs/proto-signing:
DirectSecp256k1HdWallet.fromMnemonicnow accepts aDirectSecp256k1HdWalletOptionsargument which includes an array ofhdPathsinstead of a singlehdPath.DirectSecp256k1HdWallet.generatenow also accepts options via this interface. This adds support for multiple accounts from the same mnemonic toDirectSecp256k1HdWallet. - @cosmjs/tendermint-rpc:
ValidatorPubkeyis now a union ofValidatorEd25519Pubkeyand the newly exportedValidatorSecp256k1Pubkeyinterface. - @cosmjs/tendermint-rpc:
decodePubkeynow supports secp256k1 public keys.
Deprecated
- @cosmjs/tendermint-rpc:
Clienthas been deprecated. Launchpad applications do not need a Tendermint RPC client and Stargate applications should useTendermint34Client.
Removed
- @cosmjs/stargate:
coinFromProtohelper has been removed as it is no longer needed after thets-protomigration.
0.24.1 - 2021-03-12
CHANGELOG entries missing. Please see the diff.
0.24.0 - 2021-03-11
- @cosmjs/cosmwasm: This package is now deprecated. The same functionality is now available in @cosmjs/cosmwasm-launchpad.
- @cosmjs/cosmwasm:
logsis no longer exported. Uselogsfrom @cosmjs/launchpad instead. - @cosmjs/cosmwasm: Export
JsonObject,ChangeAdminResultandWasmDatatypes as well asisValidBuilderandparseWasmDatafunctions. - @cosmjs/cosmwasm: Add
CosmWasmClient.getTxmethod for searching by ID and remove such functionality fromCosmWasmClient.searchTx. - @cosmjs/cosmwasm: Rename
SigningCosmWasmClient.senderAddressto.signerAddress. - @cosmjs/cosmwasm-stargate: Add new package for CosmWasm Stargate support.
- @cosmjs/crypto: Change
Secp256k1Keypairfrom tagged type to simple interface. - @cosmjs/launchpad: Add
Secp256k1Walletto manage a single raw secp256k1 keypair. - @cosmjs/launchpad:
OfflineSignertype’ssignmethod renamedsignAminoandSignResponsetype renamedAminoSignResponse. - @cosmjs/launchpad:
Secp256k1HdWallet.signmethod renamedsignAmino. - @cosmjs/launchpad: Add
CosmosClient.getTxmethod for searching by ID and remove such functionality fromCosmosClient.searchTx. - @cosmjs/launchpad: Add
SigningCosmosClient.signmethod for signing without broadcasting. - @cosmjs/launchpad: Add
SigningCosmosClient.appendSignaturemethod creating transactions with multiple signatures. - @cosmjs/launchpad: Add support for undefined memo in
makeSignDoc. - @cosmjs/launchpad: Rename
SigningCosmosClient.senderAddressto.signerAddress. - @cosmjs/proto-signing: Add new package for handling transaction signing with protobuf encoding.
- @cosmjs/proto-signing: Expose
DirectSignResponseinterface. - @cosmjs/stargate: Add new package for Cosmos SDK Stargate support.
- @cosmjs/tendermint-rpc: Make
Client.detectVersionprivate and let it return a version instead of a client. - @cosmjs/tendermint-rpc: Make the constructor of
Clientprivate. AddClient.createfor creating a Tendermint client given an RPC client and an optional adaptor. - @cosmjs/tendermint-rpc: Add an optional adaptor argument to
Client.connectwhich allows skipping the auto-detection. - @cosmjs/tendermint-rpc: Remove export
v0_33in favour ofadaptor33andadaptor34. Export theAdaptortype. - @cosmjs/tendermint-rpc: Export
DateTimeclass. - @cosmjs/tendermint-rpc: Remove types
QueryString,Base64String,HexString,IntegerStringandIpPortString. Usestringinstead. - @cosmjs/tendermint-rpc: Remove types
BlockHash,TxBytesandTxHash. UseUint8Arrayinstead.
Added
- @cosmjs/launchpad: Export distribution module msg types
MsgFundCommunityPool,MsgSetWithdrawAddress,MsgWithdrawDelegatorReward,MsgWithdrawValidatorCommissionand type checker helper functions. - @cosmjs/utils: Added
assertDefinedAndNotNull. - @cosmjs/tendermint-rpc: The new
Tendermint34Clientis a copy of the oldClientbut without the automatic version detection. Its usage is encouraged overClientif you connect to a Tendermint 0.34 backend.
Changed
- @cosmjs/encoding: Change return type of
fromRfc3339fromReadonlyDatetoDateas the caller becomes the owner of the object and can safely mutate it in any way. - @cosmjs/launchpad-ledger: Renamed to @cosmjs/ledger-amino.
- @cosmjs/ledger-amino:
LedgerSigner.signmethod renamedsignAmino.
Deprecated
- @cosmjs/tendermint-rpc: Deprecate
DateTimein favour of the free functionsfromRfc3339WithNanosecondsandtoRfc3339WithNanoseconds.
0.23.2 (2021-01-06)
Security
- @cosmjs/cli: Update vulnerable axios dependency.
- @cosmjs/faucet-client: Update vulnerable axios dependency.
- @cosmjs/launchpad: Update vulnerable axios dependency.
- @cosmjs/tendermint-rpc: Update vulnerable axios dependency.
0.23.1 (2020-10-27)
- @cosmjs/crypto: Export new convenience functions
keccak256,ripemd160,sha1,sha256andsha512. - @cosmjs/faucet-client: Add new package which exports
FaucetClientclass.
0.23.0 (2020-10-09)
- @cosmjs/cli: Expose
HdPathtype. - @cosmjs/cosmwasm: Rename
CosmWasmClient.postTxmethod to.broadcastTx. - @cosmjs/cosmwasm: Rename
FeeTabletype toCosmWasmFeeTable. - @cosmjs/cosmwasm:
SigningCosmWasmClientconstructor now takes optional argumentsgasPriceandgasLimitsinstead ofcustomFeesfor easier customization. - @cosmjs/cosmwasm: Rename
SigningCosmWasmClient.signAndPostmethod to.signAndBroadcast. - @cosmjs/cosmwasm: Use stricter type
Record<string, unknown>for smart query, init, migrate and handle messages (inWasmExtension.wasm.queryContractSmart,CosmWasmClient.queryContractSmart,SigningCosmWasmClient.instantiate,SigningCosmWasmClient.migrate,SigningCosmWasmClient.execute). - @cosmjs/crypto: Export new type alias
HdPath. - @cosmjs/crypto: Add
Secp256k1Signature.toFixedLengthmethod. - @cosmjs/demo-staking: Remove package and supporting scripts.
- @cosmjs/encoding: Add
limitparameter toBech32.encodeand.decode. The new default limit for decoding is infinity (was 90 before). Set it to 90 to create a strict decoder. - @cosmjs/faucet: Environmental variable
FAUCET_FEErenamed toFAUCET_GAS_PRICEand now only accepts one token. Environmental variableFAUCET_GASrenamed toFAUCET_GAS_LIMIT. - @cosmjs/faucet:
/creditAPI now expectsdenom(base token) instead ofticker(unit token). Environmental variables specifying credit amounts now need to use uppercase denom. - @cosmjs/launchpad: Rename
FeeTabletype toCosmosFeeTableand export a new more generic typeFeeTable. - @cosmjs/launchpad: Add new class
GasPrice, new helper typeGasLimitsand new helper functionbuildFeeTablefor easier handling of gas prices and fees. - @cosmjs/launchpad: Rename
CosmosClient.postTxmethod to.broadcastTx. - @cosmjs/launchpad:
SigningCosmosClientconstructor now takes optional argumentsgasPriceandgasLimitsinstead ofcustomFeesfor easier customization. - @cosmjs/launchpad: Rename
SigningCosmosClient.signAndPostmethod to.signAndBroadcast. - @cosmjs/launchpad: Rename
PostTx-related types toBroadcastTxResult,BroadcastTxSuccessandBroadcastTxFailurerespectively, as well as helper functionsisBroadcastTxFailure,isBroadcastTxSuccessandassertIsBroadcastTxSuccess. - @cosmjs/launchpad: Export
isSearchByIdQuery,isSearchByHeightQuery,isSearchBySentFromOrToQueryandisSearchByTagsQuery. - @cosmjs/launchpad: Change type of
TxsResponse.logsandBroadcastTxsResponse.logstounknown[]. - @cosmjs/launchpad: Export
StdSignDocand create helpers to make and serialize aStdSignDoc:makeSignDocandserializeSignDoc. - @cosmjs/launchpad: Let
OfflineSigner.signtake anStdSignDocinstead of an encoded message and return aSignResponsethat includes the document which was signed. - @cosmjs/launchpad: Remove
PrehashTypeand the prehash type argument inOfflineSigner.signbecause the signer now needs to know how to serialize anStdSignDoc. - @cosmjs/launchpad: Remove
makeSignBytesin favour ofmakeSignDocandserializeSignDoc. - @cosmjs/launchpad: Create
WrappedTx,WrappedStdTxandisWrappedStdTxto better represent the Amino tx interface. DeprecateCosmosSdkTx, which is an alias forWrappedStdTx. - @cosmjs/launchpad: Add
makeStdTxto create anStdTx. - @cosmjs/launchpad: Rename
Secp256k1WallettoSecp256k1HdWallet. Later on, we'll useSecp256k1Walletfor single key wallets. - @cosmjs/launchpad-ledger: Add package supporting Ledger device integration for
Launchpad. Two new classes are provided:
LedgerSigner(for most use cases) andLaunchpadLedgerfor more fine-grained access. - @cosmjs/math: Add
.multiplymethod toDecimalclass. - @cosmjs/math: Deprecate
Uint32.fromBigEndianBytesin favour ofUint32.fromBytes, which supports both big and little endian. - @cosmjs/math: Deprecate
Uint64.fromBytesBigEndianin favour ofUint64.fromBytes, which supports both big and little endian. - @cosmjs/math: Add
Uint32.fromString. - @cosmjs/tendermint-rpc: Make
BroadcastTxCommitResponse.heightnon-optional. - @cosmjs/tendermint-rpc: Make
TxProof.proof.leafHashnon-optional because it is always set. - @cosmjs/tendermint-rpc: Change type of
GenesisResponse.appStatetoRecord<string, unknown> | undefined. - @cosmjs/tendermint-rpc: Remove obsolete
TxData.tagsand makeTxData.eventsnon-optional. RenameTagtoAttribute. - @cosmjs/tendermint-rpc: Remove obsolete
BlockResultsResponse.beginBlockand.beginBlock. The new.beginBlockEventsand.endBlockEventsnow parse the events correctly. - @cosmjs/tendermint-rpc: Remove trivial helpers
getTxEventHeight,getHeaderEventHeightandgetBlockEventHeightbecause they don't do anything else than accessing an object member. - @cosmjs/tendermint-rpc: Add support for connecting to Tendermint RPC 0.34.
- @cosmjs/tendermint-rpc: Make
TxEvent.indexoptional and deprecate it because it is not set anymore in Tendermint 0.34. - @cosmjs/utils: Add
assertDefined. - @cosmjs/faucet: Rename binary from
cosmwasm-faucettocosmos-faucet.
0.22.3 (2020-09-15)
- @cosmjs/math: Add
Decimal.minus.
0.22.2 (2020-08-11)
- @cosmjs/faucet: Log errors for failed send transactions.
- @cosmjs/faucet: Add config variable
FAUCET_MEMO. - @cosmjs/faucet: Add config variables
FAUCET_FEEandFAUCET_GAS. - @cosmjs/launchpad: Add
parseCoinshelper.
0.22.1 (2020-08-11)
- @cosmjs/cli: Import
encodeAminoPubkey,encodeBech32Pubkey,decodeAminoPubkeyanddecodeBech32Pubkeyby default. - @cosmjs/launchpad: Add ed25519 support to
encodeBech32Pubkey. - @cosmjs/launchpad: Add
encodeAminoPubkeyanddecodeAminoPubkey. - @cosmjs/utils: Add
arrayContentEquals. - @cosmjs/faucet: Add config variables
FAUCET_ADDRESS_PREFIXandFAUCET_TOKENS. - @cosmjs/faucet: Remove broken chain ID from
cosmwasm-faucet generate.
0.22.0 (2020-08-03)
- @cosmjs/cli: Now supports HTTPs URLs for
--initcode sources. - @cosmjs/cli: Now supports adding code directly via
--code. - @cosmjs/cosmwasm: Rename
CosmWasmClient.getNoncemethod to.getSequence. - @cosmjs/cosmwasm: Remove
RestClientclass in favour of new modularLcdClientclass from @cosmjs/sdk38. - @cosmjs/cosmwasm: Add
SigningCosmWasmClient.signAndPostas a mid-level abstraction betweenSigningCosmWasmClient.upload/.instantiate/.executeand.postTx. - @cosmjs/cosmwasm: Use
*PostTx*types and helpers from @cosmjs/sdk38. Remove exportedPostTxResult. - @cosmjs/cosmwasm:
ContractDetailswas removed in favour of justContract. The missinginit_msgis now available via the contract's code history (seegetContractCodeHistory). - @cosmjs/cosmwasm: Remove
SigningCallbackin favour of theOfflineSignerinterface. - @cosmjs/sdk38: Rename
CosmosClient.getNoncemethod to.getSequence. - @cosmjs/sdk38: Remove
RestClientclass in favour of new modularLcdClientclass. - @cosmjs/sdk38: Remove
Pentype in favour ofOfflineSignerand removeSecp256k1Penclass in favour ofSecp256k1Walletwhich takes anOfflineSignerinstead of aSigningCallback. - @cosmjs/sdk38: Rename
CosmosSdkAccounttoBaseAccountand export the type. - @cosmjs/sdk38:
BaseAccountnow usesnumber | stringas the type foraccount_numberandsequence. The new helpersuint64ToNumberanduint64ToStringallow you to normalize the mixed input. - @cosmjs/sdk38:
BaseAccountnow usesstring | PubKey | nullas the type forpublic_key. The new helpernormalizePubkeyallows you to normalize the mixed input. - @cosmjs/math: Add missing integer check to
Uint64.fromNumber. BeforeUint64.fromNumber(1.1)produced some result. - @cosmjs/sdk38: Add
SigningCosmosClient.signAndPostas a mid-level abstraction betweenSigningCosmosClient.sendTokensand.postTx. - @cosmjs/sdk38: Export
PostTxFailure/PostTxSuccessand type checkersisPostTxFailure/isPostTxSuccess; exportassertIsPostTxSuccess. - @cosmjs/sdk38:
Secp256k1Wallets can now be generated randomly withSecp256k1Wallet.generate(n)wherenis 12, 15, 18, 21 or 24 mnemonic words. - @cosmjs/sdk38: The new
Secp256k1Wallet.serializeand.deserializeallow encrypted serialization of the wallet. - @cosmjs/sdk38: Remove the obsolete
upload,init,execproperties fromFeeTable. @cosmjs/cosmwasm has its ownFeeTablewith those properties. - @cosmjs/sdk38: Rename package to @cosmjs/launchpad.