Skip to content

Releases: coinhall/cosmes

v0.0.45

20 Dec 09:20
Compare
Choose a tag to compare

Improvements

  • Included isCW20 option for simulateAstroportSinglePoolSwap function to handle swapping from CW20 assets

v0.0.44

20 Dec 07:24
Compare
Choose a tag to compare

Fixes

  • Fixed Leap wallet android deep link to ensure redirect happens correctly
  • Fixed toKeplrChainInfo to return undefined for coingecko ID if it is absent

v0.0.43

12 Dec 03:40
db84ce0
Compare
Choose a tag to compare

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

23 Nov 11:09
Compare
Choose a tag to compare

v0.0.40

Fixes

  • Use JSON.stringify on errors thrown by Station Extension to avoid [object Object] errors
  • Fixed toKeplrChainInfo to default undefined 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

27 Oct 02:56
Compare
Choose a tag to compare

v0.0.39

Features

  • Added the optional height params to the FetchClient to execute queries at a custom block height
  • Added batching of queries to FetchClient (see examples/batch-query)

v0.0.38

17 Oct 01:46
Compare
Choose a tag to compare

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 to getAuthInfo(), but consumers are no longer required to call this method to broadcast transactions (sequence and account numbers are cached and reused within the instantiated ConnectedWallet instances)
    • estimateFee(): second parameter now accepts the feeMultiplier directly (still optional) instead of the auth info
    • broadcastTx(): second parameter now accepts the fee from the result of estimateFee() (no longer optional) instead of the auth info
    • broadcastTxSync(): new function that executes estimateFee, broadcastTx, and pollTx 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 within cosmes/codec in favour of @scure/base [breaking change]
    • The @scure/base pkg is re-exported in cosmes/codec
    • Consumers should import the correct encoder or decoder directly from cosmes/codec: eg. change fromHexToUint8Array(...) to base16.decode(...)
  • Re-exported @keplr-wallet/types from cosmes/registry

v0.0.35

12 Oct 03:50
Compare
Choose a tag to compare

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

v0.0.34

04 Oct 09:04
Compare
Choose a tag to compare

v0.0.34

Fixes

  • Prevent redirecting users to the mobile app when querying for the user's account via WalletConnect (on first connect)

v0.0.32

18 Aug 05:57
Compare
Choose a tag to compare

v0.0.32

Fixes

  • Added missing memo field for MsgIbcTransfer

v0.0.31

18 Aug 04:04
Compare
Choose a tag to compare

v0.0.31

Miscellaneous

  • Added missing barrel export for MsgIbcTransfer model