2020-07-22 16:32:39 +02:00
|
|
|
# CHANGELOG
|
|
|
|
|
2020-08-03 17:24:14 +02:00
|
|
|
## 0.23.0 (unreleased)
|
|
|
|
|
|
|
|
- @cosmjs/cosmwasm: Rename `CosmWasmClient.postTx` method to `.broadcastTx`.
|
2020-08-18 17:09:04 +01:00
|
|
|
- @cosmjs/cosmwasm: Rename `FeeTable` type to `CosmWasmFeeTable`.
|
|
|
|
- @cosmjs/cosmwasm: `SigningCosmWasmClient` constructor now takes optional
|
|
|
|
arguments `gasPrice` and `gasLimits` instead of `customFees` for easier
|
|
|
|
customization.
|
2020-08-03 17:24:14 +02:00
|
|
|
- @cosmjs/cosmwasm: Rename `SigningCosmWasmClient.signAndPost` method to
|
|
|
|
`.signAndBroadcast`.
|
2020-08-17 15:30:46 +02:00
|
|
|
- @cosmjs/cosmwasm: Use stricter type `Record<string, unknown>` for smart query,
|
|
|
|
init, migrate and handle messages (in `WasmExtension.wasm.queryContractSmart`,
|
|
|
|
`CosmWasmClient.queryContractSmart`, `SigningCosmWasmClient.instantiate`,
|
|
|
|
`SigningCosmWasmClient.migrate`, `SigningCosmWasmClient.execute`).
|
2020-08-04 17:28:43 +02:00
|
|
|
- @cosmjs/demo-staking: Remove package and supporting scripts.
|
2020-08-04 16:37:32 +02:00
|
|
|
- @cosmjs/encoding: Add `limit` parameter to `Bech32.encode` and `.decode`. The
|
|
|
|
new default limit for decoding is infinity (was 90 before). Set it to 90 to
|
|
|
|
create a strict decoder.
|
2020-08-18 17:26:24 +01:00
|
|
|
- @cosmjs/faucet: Environmental variable `FAUCET_FEE` renamed to
|
|
|
|
`FAUCET_GAS_PRICE` and now only accepts one token. Environmental variable
|
|
|
|
`FAUCET_GAS` renamed to `FAUCET_GAS_LIMIT`.
|
2020-08-19 15:58:37 +01:00
|
|
|
- @cosmjs/faucet: `/credit` API now accepts either `denom` (base token) or as
|
|
|
|
before `ticker` (unit token). Environmental variables specifying credit
|
|
|
|
amounts now need to use uppercase denom.
|
2020-08-18 17:09:04 +01:00
|
|
|
- @cosmjs/launchpad: Rename `FeeTable` type to `CosmosFeeTable` and export a new
|
|
|
|
more generic type `FeeTable`.
|
|
|
|
- @cosmjs/launchpad: Add new class `GasPrice`, new helper type `GasLimits` and
|
|
|
|
new helper function `buildFeeTable` for easier handling of gas prices and
|
|
|
|
fees.
|
2020-08-03 17:24:14 +02:00
|
|
|
- @cosmjs/launchpad: Rename `CosmosClient.postTx` method to `.broadcastTx`.
|
2020-08-18 17:09:04 +01:00
|
|
|
- @cosmjs/launchpad: `SigningCosmosClient` constructor now takes optional
|
|
|
|
arguments `gasPrice` and `gasLimits` instead of `customFees` for easier
|
|
|
|
customization.
|
2020-08-03 17:24:14 +02:00
|
|
|
- @cosmjs/launchpad: Rename `SigningCosmosClient.signAndPost` method to
|
|
|
|
`.signAndBroadcast`.
|
|
|
|
- @cosmjs/launchpad: Rename `PostTx`-related types to `BroadcastTxResult`,
|
|
|
|
`BroadcastTxSuccess` and `BroadcastTxFailure` respectively, as well as helper
|
|
|
|
functions `isBroadcastTxFailure`, `isBroadcastTxSuccess` and
|
|
|
|
`assertIsBroadcastTxSuccess`.
|
2020-08-17 15:30:46 +02:00
|
|
|
- @cosmjs/launchpad: Export `isSearchByIdQuery`, `isSearchByHeightQuery`,
|
|
|
|
`isSearchBySentFromOrToQuery` and `isSearchByTagsQuery`.
|
|
|
|
- @cosmjs/launchpad: Change type of `TxsResponse.logs` and
|
|
|
|
`BroadcastTxsResponse.logs` to `unknown[]`.
|
2020-08-18 17:09:04 +01:00
|
|
|
- @cosmjs/math: Add `.multiply` method to `Decimal` class.
|
2020-08-17 15:30:46 +02:00
|
|
|
- @cosmjs/tendermint-rpc: Make `BroadcastTxCommitResponse.height` non-optional.
|
|
|
|
- @cosmjs/tendermint-rpc: Change type of `GenesisResponse.appState` to
|
|
|
|
`Record<string, unknown> | undefined`.
|
|
|
|
- @cosmjs/utils: Add `assertDefined`.
|
2020-08-18 11:00:04 +02:00
|
|
|
- @cosmjs/faucet: Rename binary from `cosmwasm-faucet` to `cosmos-faucet`.
|
2020-08-11 10:20:09 +02:00
|
|
|
|
2020-08-11 11:49:31 +02:00
|
|
|
## 0.22.2 (2020-08-11)
|
|
|
|
|
|
|
|
- @cosmjs/faucet: Log errors for failed send transactions.
|
2020-08-11 11:54:34 +02:00
|
|
|
- @cosmjs/faucet: Add config variable `FAUCET_MEMO`.
|
2020-08-11 12:29:04 +02:00
|
|
|
- @cosmjs/faucet: Add config variables `FAUCET_FEE` and `FAUCET_GAS`.
|
2020-08-11 12:12:57 +02:00
|
|
|
- @cosmjs/launchpad: Add `parseCoins` helper.
|
2020-08-11 11:49:31 +02:00
|
|
|
|
2020-08-11 09:55:27 +02:00
|
|
|
## 0.22.1 (2020-08-11)
|
2020-08-10 23:23:58 +02:00
|
|
|
|
2020-08-11 07:49:00 +02:00
|
|
|
- @cosmjs/cli: Import `encodeAminoPubkey`, `encodeBech32Pubkey`,
|
|
|
|
`decodeAminoPubkey` and `decodeBech32Pubkey` by default.
|
2020-08-10 23:23:58 +02:00
|
|
|
- @cosmjs/launchpad: Add ed25519 support to `encodeBech32Pubkey`.
|
2020-08-11 07:38:28 +02:00
|
|
|
- @cosmjs/launchpad: Add `encodeAminoPubkey` and `decodeAminoPubkey`.
|
2020-08-07 10:37:57 +02:00
|
|
|
- @cosmjs/utils: Add `arrayContentEquals`.
|
2020-08-11 09:25:19 +02:00
|
|
|
- @cosmjs/faucet: Add config variables `FAUCET_ADDRESS_PREFIX` and
|
|
|
|
`FAUCET_TOKENS`.
|
2020-08-11 08:38:23 +02:00
|
|
|
- @cosmjs/faucet: Remove broken chain ID from `cosmwasm-faucet generate`.
|
2020-08-03 17:24:14 +02:00
|
|
|
|
2020-08-03 15:35:40 +02:00
|
|
|
## 0.22.0 (2020-08-03)
|
2020-07-22 16:32:39 +02:00
|
|
|
|
2020-08-03 10:33:50 +02:00
|
|
|
- @cosmjs/cli: Now supports HTTPs URLs for `--init` code sources.
|
2020-08-03 10:34:18 +02:00
|
|
|
- @cosmjs/cli: Now supports adding code directly via `--code`.
|
2020-07-22 16:32:39 +02:00
|
|
|
- @cosmjs/cosmwasm: Rename `CosmWasmClient.getNonce` method to `.getSequence`.
|
|
|
|
- @cosmjs/cosmwasm: Remove `RestClient` class in favour of new modular
|
|
|
|
`LcdClient` class from @cosmjs/sdk38.
|
2020-07-27 09:34:38 +02:00
|
|
|
- @cosmjs/cosmwasm: Add `SigningCosmWasmClient.signAndPost` as a mid-level
|
|
|
|
abstraction between `SigningCosmWasmClient.upload`/`.instantiate`/`.execute`
|
|
|
|
and `.postTx`.
|
2020-07-27 10:06:44 +02:00
|
|
|
- @cosmjs/cosmwasm: Use `*PostTx*` types and helpers from @cosmjs/sdk38. Remove
|
|
|
|
exported `PostTxResult`.
|
2020-07-28 18:11:51 +02:00
|
|
|
- @cosmjs/cosmwasm: `ContractDetails` was removed in favour of just `Contract`.
|
|
|
|
The missing `init_msg` is now available via the contract's code history (see
|
|
|
|
`getContractCodeHistory`).
|
2020-08-03 07:33:10 +02:00
|
|
|
- @cosmjs/cosmwasm: Remove `SigningCallback` in favour of the `OfflineSigner`
|
|
|
|
interface.
|
2020-07-22 16:32:39 +02:00
|
|
|
- @cosmjs/sdk38: Rename `CosmosClient.getNonce` method to `.getSequence`.
|
|
|
|
- @cosmjs/sdk38: Remove `RestClient` class in favour of new modular `LcdClient`
|
|
|
|
class.
|
|
|
|
- @cosmjs/sdk38: Remove `Pen` type in favour of `OfflineSigner` and remove
|
|
|
|
`Secp256k1Pen` class in favour of `Secp256k1Wallet` which takes an
|
|
|
|
`OfflineSigner` instead of a `SigningCallback`.
|
2020-07-25 15:57:46 +02:00
|
|
|
- @cosmjs/sdk38: Rename `CosmosSdkAccount` to `BaseAccount` and export the type.
|
2020-07-25 15:58:17 +02:00
|
|
|
- @cosmjs/sdk38: `BaseAccount` now uses `number | string` as the type for
|
|
|
|
`account_number` and `sequence`. The new helpers `uint64ToNumber` and
|
|
|
|
`uint64ToString` allow you to normalize the mixed input.
|
2020-07-28 12:39:33 +02:00
|
|
|
- @cosmjs/sdk38: `BaseAccount` now uses `string | PubKey | null` as the type for
|
|
|
|
`public_key`. The new helper `normalizePubkey` allows you to normalize the
|
|
|
|
mixed input.
|
2020-07-25 15:00:39 +02:00
|
|
|
- @cosmjs/math: Add missing integer check to `Uint64.fromNumber`. Before
|
|
|
|
`Uint64.fromNumber(1.1)` produced some result.
|
2020-07-28 11:48:15 +02:00
|
|
|
- @cosmjs/sdk38: Add `SigningCosmosClient.signAndPost` as a mid-level
|
|
|
|
abstraction between `SigningCosmosClient.sendTokens` and `.postTx`.
|
2020-07-27 09:58:12 +02:00
|
|
|
- @cosmjs/sdk38: Export `PostTxFailure`/`PostTxSuccess` and type checkers
|
|
|
|
`isPostTxFailure`/`isPostTxSuccess`; export `assertIsPostTxSuccess`.
|
2020-07-28 13:16:55 +02:00
|
|
|
- @cosmjs/sdk38: `Secp256k1Wallet`s can now be generated randomly with
|
|
|
|
`Secp256k1Wallet.generate(n)` where `n` is 12, 15, 18, 21 or 24 mnemonic
|
|
|
|
words.
|
|
|
|
- @cosmjs/sdk38: The new `Secp256k1Wallet.serialize` and `.deserialize` allow
|
|
|
|
encrypted serialization of the wallet.
|
2020-08-03 07:59:27 +02:00
|
|
|
- @cosmjs/sdk38: Remove the obsolete `upload`, `init`, `exec` properties from
|
|
|
|
`FeeTable`. @cosmjs/cosmwasm has its own `FeeTable` with those properties.
|
2020-08-03 08:00:16 +02:00
|
|
|
- @cosmjs/sdk38: Rename package to @cosmjs/launchpad.
|