Fix signAmino()
to broadcast the memo from the signer (wallet) instead of the memo from the caller.
Fix txsQuery()
for Cosmos SDK v0.46+ chains
Fix (another case of) error handling for "tx not found" in getTx()
Fix error handling for "tx not found" in getTx()
Support Secret Network v1.12
- Support Secret Network v1.11
- Contract upgrade support:
- Add
secretjs.tx.compute.migrateContract()
- Add
secretjs.tx.compute.updateAdmin()
- Add
secretjs.tx.compute.clearAdmin()
- Add
admin
field tosecretjs.query.compute.instantiatedContract()
- Add
secretjs.query.compute.contractHistory()
- Add
admin
field to the result ofsecretjs.query.compute.contractInfo()
- Add
- API breaking:
secretjs.tx.signTx()
now returnstxBytes
as aUint8Array
instead of a base64string
. - API breaking:
secretjs.tx.broadcastSignedTx()
now receivestxBytes
as aUint8Array
instead of a base64string
. - #154: Move sinon to devDependencies (Thanks @egasimus!)
- #155: Make test.sh portable (Thanks @egasimus!)
- #156: Fix CVE-2023-36665 by upgrading protobufjs to 6.11.4 (Thanks @egasimus!)
Fix a bug where error messages would sometimes not decrypt on highly nested contract calls.
Fix sending txs from vesting accounts.
Support SNIP-20 & SNIP-721 permit signing with MetaMaskWallet.
- Support Secret Network v1.9
- Fix
secretjs.tx.vesting.createVestingAccount()
- Fix
secretjs.tx.registration.register()
- Support IBC panic button:
secretjs.tx.emergency_button.toggleIbcSwitch()
&MsgToggleIbcSwitch
secretjs.query.emergency_button.params()
- Support IBC Fee middleware:
secretjs.tx.ibc_fee.payPacketFee()
&MsgPayPacketFee
secretjs.tx.ibc_fee.payPacketFeeAsync()
&MsgPayPacketFeeAsync
secretjs.tx.ibc_fee.registerPayee()
&MsgRegisterPayee
secretjs.tx.ibc_fee.registerCounterpartyPayee()
&MsgRegisterCounterpartyPayee
secretjs.query.ibc_fee.incentivizedPackets()
secretjs.query.ibc_fee.incentivizedPacket()
secretjs.query.ibc_fee.incentivizedPacketsForChannel()
secretjs.query.ibc_fee.totalRecvFees()
secretjs.query.ibc_fee.totalAckFees()
secretjs.query.ibc_fee.totalTimeoutFees()
secretjs.query.ibc_fee.payee()
secretjs.query.ibc_fee.counterpartyPayee()
secretjs.query.ibc_fee.feeEnabledChannels()
secretjs.query.ibc_fee.feeEnabledChannel()
- Support IBC Packet Forward Middleware (PFM):
secretjs.query.ibc_packet_forward.params()
Fix: Don't actually sign the tx in simulation mode.
In simulation mode the node does not validate the signature. However, prior to v1.8.0 of secret.js, the simulated transaction was still being signed. This was inconvenient for UIs as it prompted users to provide a signature, rendering the simulation feature practically unusable, especially for Ledger users.
- Support Secret Network v1.8
- Add the
memo
field in IBC MsgTransfer - Add
secretjs.query.ibc_transfer.escrowAddress()
- Add
secretjs.query.ibc_client.consensusStateHeights()
- Add
secretjs.query.ibc_client.consensusStateHeights()
- Add
secretjs.query.ibc_iterchain_accounts_host.params()
- Add
secretjs.query.ibc_iterchain_accounts_controller.params()
- Add
secretjs.query.ibc_iterchain_accounts_controller.interchainAccount()
Optimize encryption setup for v1.7.
Support Secret Network v1.7.
Export MsgCreateVestingAccount
.
Fix getTx()
sometimes throws "tx not found" instead of returning null.
- Allow passing
ibcTxOptions
togetTx()
- Fix resolving IBC responses when broadcasting a tx on Async & Sync modes
- Accept URLs with trailing slashes in
SecretNetworkClient
- Fix Amino signing bug (introduced in v1.6.10)
Fix support for CosmJS' DirectSigner
, which is used by wallets. E.g. this fixes using keplr.getOfflineSigner()
as a wallet in SecretNetworkClient
.
Add the validateAddress()
helper function.
- Turn off
ibcResponses
by default ontxsQuery()
as it can lead to request spamming when there are a lot of results - Add the
stringToCoin()
helper function - Alias
coinFromString()
=>stringToCoin()
- Alias
coinsFromString()
=>stringToCoins()
txsQuery()
:- Add
pagination
&order_by
options - Add
ibcTxOptions
- control whether and how to resolve IBC response txs
- Add
- Fix docs for how to query at a specific height
- Add the
stringToCoins()
helper function
Support sending txs that were signed with an Ethermint pubkey.
Fix a bug in ibcResponses
where it sometimes returns a wrong ack/timeout tx.
Note: versions 1.6.2 through 1.6.4 are deprecated due to an NPM upload issue.
- Fix handling of empty response on
secretjs.query.compute.queryContract()
. - Add the
ibcDenom()
util function for calculating the IBC denom of a token that was sent over IBC.
Add ibcResponses
to TxResponse
- if a tx results in IBC packets being sent, ibcResponses
contains the IBC ack/timeout txs, Making it easy to verify the success of an IBC operations.
Fix localStorage optimization on MetaMaskWallet.create()
Reverted previous change
Removed hardcoded TX Key in preparation of Secret Network Shockwave Omega
- BREAKING CHANGE: Switched all the APIs to GRPC-gateway. As a result, some commands have been slightly changed.
Most noticeable:
- The library now uses REST endpoints, changed from grpc-web endpoints. To reflect this change
grpcWebUrl
is nowurl
when creating a new client - Creating a new client is now sync using new (rather than Async):
new SecretNetworkClient(...)
- Names of parameters are now snake_case rather than camelCase. e.g.
contractAddress
orcodeHash
is nowcontract_address
orcode_hash
Tx
is nowTxResponse
- The library now uses REST endpoints, changed from grpc-web endpoints. To reflect this change