7.8 KiB
7.8 KiB
CHANGELOG
0.23.0 (unreleased)
- @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-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/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/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.