mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
3.3 KiB
3.3 KiB
CHANGELOG
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_FEE
andFAUCET_GAS
. - @cosmjs/launchpad: Add
parseCoins
helper.
0.22.1 (2020-08-11)
- @cosmjs/cli: Import
encodeAminoPubkey
,encodeBech32Pubkey
,decodeAminoPubkey
anddecodeBech32Pubkey
by default. - @cosmjs/launchpad: Add ed25519 support to
encodeBech32Pubkey
. - @cosmjs/launchpad: Add
encodeAminoPubkey
anddecodeAminoPubkey
. - @cosmjs/utils: Add
arrayContentEquals
. - @cosmjs/faucet: Add config variables
FAUCET_ADDRESS_PREFIX
andFAUCET_TOKENS
. - @cosmjs/faucet: Remove broken chain ID from
cosmwasm-faucet generate
.
0.22.0 (2020-08-03)
- @cosmjs/cli: Now supports HTTPs URLs for
--init
code sources. - @cosmjs/cli: Now supports adding code directly via
--code
. - @cosmjs/cosmwasm: Rename
CosmWasmClient.getNonce
method to.getSequence
. - @cosmjs/cosmwasm: Remove
RestClient
class in favour of new modularLcdClient
class from @cosmjs/sdk38. - @cosmjs/cosmwasm: Add
SigningCosmWasmClient.signAndPost
as a mid-level abstraction betweenSigningCosmWasmClient.upload
/.instantiate
/.execute
and.postTx
. - @cosmjs/cosmwasm: Use
*PostTx*
types and helpers from @cosmjs/sdk38. Remove exportedPostTxResult
. - @cosmjs/cosmwasm:
ContractDetails
was removed in favour of justContract
. The missinginit_msg
is now available via the contract's code history (seegetContractCodeHistory
). - @cosmjs/cosmwasm: Remove
SigningCallback
in favour of theOfflineSigner
interface. - @cosmjs/sdk38: Rename
CosmosClient.getNonce
method to.getSequence
. - @cosmjs/sdk38: Remove
RestClient
class in favour of new modularLcdClient
class. - @cosmjs/sdk38: Remove
Pen
type in favour ofOfflineSigner
and removeSecp256k1Pen
class in favour ofSecp256k1Wallet
which takes anOfflineSigner
instead of aSigningCallback
. - @cosmjs/sdk38: Rename
CosmosSdkAccount
toBaseAccount
and export the type. - @cosmjs/sdk38:
BaseAccount
now usesnumber | string
as the type foraccount_number
andsequence
. The new helpersuint64ToNumber
anduint64ToString
allow you to normalize the mixed input. - @cosmjs/sdk38:
BaseAccount
now usesstring | PubKey | null
as the type forpublic_key
. The new helpernormalizePubkey
allows 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.signAndPost
as a mid-level abstraction betweenSigningCosmosClient.sendTokens
and.postTx
. - @cosmjs/sdk38: Export
PostTxFailure
/PostTxSuccess
and type checkersisPostTxFailure
/isPostTxSuccess
; exportassertIsPostTxSuccess
. - @cosmjs/sdk38:
Secp256k1Wallet
s can now be generated randomly withSecp256k1Wallet.generate(n)
wheren
is 12, 15, 18, 21 or 24 mnemonic words. - @cosmjs/sdk38: The new
Secp256k1Wallet.serialize
and.deserialize
allow encrypted serialization of the wallet. - @cosmjs/sdk38: Remove the obsolete
upload
,init
,exec
properties fromFeeTable
. @cosmjs/cosmwasm has its ownFeeTable
with those properties. - @cosmjs/sdk38: Rename package to @cosmjs/launchpad.