Releases: coinhall/cosmes
Releases · coinhall/cosmes
v0.0.45
v0.0.44
v0.0.43
Improvements
- Added
timeout_height
parameter when simulating or broadcasting txs - Use sign mode direct (instead of legacy amino) for non-ledger extension wallets and
MnemonicWallet
- Added support for sign mode direct for
WalletConnectV2
(although no mobile wallets support it currently) - Reduced bundle size by combining Keplr-like wallets into the same interface (
examples/solid-vite
reduced from 509kb to 487kb minified)
v0.0.40
v0.0.40
Fixes
- Use
JSON.stringify
on errors thrown by Station Extension to avoid[object Object]
errors - Fixed
toKeplrChainInfo
to defaultundefined
currency decimals to 6
Miscellaneous
- Added
Tx.toSignDoc
method to form an unsigned, proto encoded tx ready to be signed by a wallet
v0.0.39
v0.0.38
Features
- Added
MnemonicWallet
to allow programmatic signing and broadcasting of txs without relying on a 3rd party wallet/signer (see examples directory) - Simplified wallet APIs [breaking change]
getAccount()
: renamed and reworked togetAuthInfo()
, but consumers are no longer required to call this method to broadcast transactions (sequence and account numbers are cached and reused within the instantiatedConnectedWallet
instances)estimateFee()
: second parameter now accepts thefeeMultiplier
directly (still optional) instead of the auth infobroadcastTx()
: second parameter now accepts thefee
from the result ofestimateFee()
(no longer optional) instead of the auth infobroadcastTxSync()
: new function that executesestimateFee
,broadcastTx
, andpollTx
sequentially
- Handle account sequence mismatch errors directly in
ConnectedWallet.estimateFee()
by retrying once with the correct sequence
Miscellaneous
- Removed the various
fromXxxToYyy
encoding/decoding functions withincosmes/codec
in favour of@scure/base
[breaking change]- The
@scure/base
pkg is re-exported incosmes/codec
- Consumers should import the correct encoder or decoder directly from
cosmes/codec
: eg. changefromHexToUint8Array(...)
tobase16.decode(...)
- The
- Re-exported
@keplr-wallet/types
fromcosmes/registry
v0.0.35
Features
- Added the
cosmes/registry
package with the following additions:- APIs to dynamically query for data in Chain Registry
- Util function to transform Chain Registry data to Keplr's chain info
Miscellaneous
- The
toBaseAccount
utility can now handle all vesting account types