Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Releases: klaytn/caver-js

Release v1.6.4

17 Aug 04:54
6e1f260
Compare
Choose a tag to compare

v1.6.4 Release Notes

Improvements

Fixes

  • Modified to encode FeeDelegatedWithRatio transactions with the feeRatio variable converted to an even number. (#481)
  • Fixed caver.contract error handling logic for when keyring doesn't exist in caver.wallet. (#488)
  • Fixed so that, when using an account in Klaytn Node because the from keyring doesn't exist in caver.wallet, sendTransaction is used when caver.contract sends a basic transaction, and signTransaction and sendRawTransaction are used when caver.contract sends a fee delegation transaction. (#509, #519)
  • Fixed hex prefix-related functions to handle ‘0X’ as a hex prefix and modified to convert ‘0X’ to ‘0x’ in caver.utils.addHexPrefix. (#517)

Release v1.6.4-rc.5

12 Aug 05:02
4567fa6
Compare
Choose a tag to compare
Release v1.6.4-rc.5 Pre-release
Pre-release

v1.6.4-rc.5 Release Notes

Fixes

  • Fixed to use sendTransaction if caver.contract sends basic transaction and use signTransaction and sendRawTransaction if caver.contract sends fee delegation transaction when using an account in Klaytn Node because the from keyring is not existed in caver.wallet. (#519)

Release v1.6.4-rc.4

12 Aug 01:18
4f39840
Compare
Choose a tag to compare
Release v1.6.4-rc.4 Pre-release
Pre-release

v1.6.4-rc.4 Release Notes

Improvements

Fixes

  • Fixed hex prefix related functions to handle ‘0X’ as a hex prefix and modified to convert ‘0X’ to ‘0x’ in caver.utils.addHexPrefix. (#517)

Release v1.6.4-rc.3

09 Aug 00:45
1992f57
Compare
Choose a tag to compare
Release v1.6.4-rc.3 Pre-release
Pre-release

v1.6.4-rc.3 Release Notes

Fixes

  • Fixed to use sendTransaction instead of signTransaction and sendRawTransaction when using an account in Klaytn Node because the from keyring is not existed in caver.wallet. (#509)

Release v1.6.4-rc.2

06 Aug 00:56
43e7818
Compare
Choose a tag to compare
Release v1.6.4-rc.2 Pre-release
Pre-release

v1.6.4-rc.2 Release Notes

Fixes

  • Fixed caver.contract error handling logic when keyring is not existed in the caver.wallet. (#488)

Release v1.6.4-rc.1

05 Jul 07:52
e15f61f
Compare
Choose a tag to compare
Release v1.6.4-rc.1 Pre-release
Pre-release

v1.6.4-rc.1 Release Notes

Fixes

  • Modified to encode FeeDelegatedWithRatio transactions with even number of feeRatio. (#481)

Release v1.6.3

30 Jun 00:51
7347c94
Compare
Choose a tag to compare

v1.6.3 Release Notes

New Features

  • Supports Governance RPC call. (#460)
    • caver.rpc.governance provides Governance RPC call.
      • caver.rpc.governance.vote
      • caver.rpc.governance.vote
      • caver.rpc.governance.showTally
      • caver.rpc.governance.getTotalVotingPower
      • caver.rpc.governance.getMyVotingPower
      • caver.rpc.governance.getMyVotes
      • caver.rpc.governance.getChainConfig
      • caver.rpc.governance.getNodeAddress
      • caver.rpc.governance.getItemsAt
      • caver.rpc.governance.getPendingChanges
      • caver.rpc.governance.getVotes
      • caver.rpc.governance.getIdxCache
      • caver.rpc.governance.getIdxCacheFromDb
      • caver.rpc.governance.getItemCacheFromDb
      • caver.rpc.governance.getStakingInfo
    • Please refer to Klaytn Docs for more details.
  • Supports decoding function call. (#462, #466)
    • decodeFunctionCall in the Caver class decodes a function call string consisting of a function signature as well as encoded parameters, and returns parameters.
      • caver.abi.decodeFunctionCall
      • contract.decodeFunctionCall
      • kip7.decodeFunctionCall
      • kip17.decodeFunctionCall
      • kip37.decodeFunctionCall
    • Please refer to Klaytn Docs for more details.
  • Supports a function to get a caver transaction instance by transaction hash. (#464)
    • This function converts the result of caver.rpc.klay.getTransaction with the transaction hash into a transaction instance provided by caver-js.
      • caver.transaction.getTransactionByHash
    • Please refer to Klaytn Docs for more details.
  • Supports new utils functions. (#467, #468)
    • Since Klaytn can update the account key, public key information is needed to verify the signature. Also, a function to get the address derived from the public key is provided.
      • caver.utils.recoverPublicKey will recover public key string from signature.
      • caver.utils.publicKeyToAddress will derive an address from a public key.
    • Please refer to Klaytn Docs for more details.
  • Supports a function that recovers public keys from a transaction instance. (#472, #470)
    • This function recovers public keys from the signatures or feePayerSignatures field of the transaction.
      • tx.recoverPublicKeys will recover public keys from signatures.
      • tx.recoverFeePayerPublicKeys will recover public keys from feePayerSignatures.
    • Please refer to Klaytn Docs for more details.
  • Adds a new layer named Validator. (#469, #473)
    • caver.validator is a layer that provides validation functions that are necessary to use Klaytn.
      • caver.validator.validateSignedMessage will validate the signature signed on a message.
      • caver.validator.validateTransaction will validate signatures and feePayerSignatures in the transaction.
      • caver.validator.validateSender will validate signatures in the transaction.
      • caver.validator.validateFeePayer will validate feePayerSignatures in the transaction.
    • Please refer to Klaytn Docs for more details.

Release v1.6.3-rc.4

24 Jun 01:35
55cca81
Compare
Choose a tag to compare
Release v1.6.3-rc.4 Pre-release
Pre-release

v1.6.3-rc.4 Release Notes

Fixes

  • Modified formatter logic to format only old transaction object before sending transaction to the Node. (#480)

Release v1.6.3-rc.3

23 Jun 08:43
709bbd4
Compare
Choose a tag to compare
Release v1.6.3-rc.3 Pre-release
Pre-release

v1.6.3-rc.3 Release Notes

Improvements

  • Added logic to handle array and object format signature in caver.utils.recover and caver.utils.recoverPublicKey. (#479)

Release v1.6.3-rc.1

22 Jun 01:59
8baca85
Compare
Choose a tag to compare
Release v1.6.3-rc.1 Pre-release
Pre-release

v1.6.3-rc.1 Release Notes

New Features

  • Supported Goverance RPC call.
    • Governance RPC Call is provided through caver.rpc.governance.
      • caver.rpc.governance.vote
      • caver.rpc.governance.vote
      • caver.rpc.governance.showTally
      • caver.rpc.governance.getTotalVotingPower
      • caver.rpc.governance.getMyVotingPower
      • caver.rpc.governance.getMyVotes
      • caver.rpc.governance.getChainConfig
      • caver.rpc.governance.getNodeAddress
      • caver.rpc.governance.getItemsAt
      • caver.rpc.governance.getPendingChanges
      • caver.rpc.governance.getVotes
      • caver.rpc.governance.getIdxCache
      • caver.rpc.governance.getIdxCacheFromDb
      • caver.rpc.governance.getItemCacheFromDb
      • caver.rpc.governance.getStakingInfo
    • Please refer to Klaytn Docs for more details.
  • Supported decoding function call.
    • Functions to decode a function call string consisting of a function signature and encoded parameters and returns a parameter.
      • caver.abi.decodeFunctionCall
      • contract.decodeFunctionCall
      • kip7.decodeFunctionCall
      • kip17.decodeFunctionCall
      • kip37.decodeFunctionCall
    • Please refer to Klaytn Docs for more details.
  • Supported a function to get caver transaction instance by transaction hash.
    • Function that converts the result of caver.rpc.klay.getTransaction with the transaction hash into a transaction instance provided by caver-js.
      • caver.transaction.getTransactionByHash
    • Please refer to Klaytn Docs for more details.
  • Supported new utils functions.
    • Since Klaytn can update the account key, public key information is needed to verify the signature. Also provided a function to get the address derived from the public key.
      • caver.utils.recoverPublicKey will recover public key string from signature.
      • caver.utils.publicKeyToAddress will derive an address from a public key.
    • Please refer to Klaytn Docs for more details.
  • Supported recover public keys from a transaction instance
    • Function to recover public keys from the signatures or feePayerSignatures field of the transaction.
      • tx.recoverPublicKeys will recover public keys from signatures.
      • tx.recoverFeePayerPublicKeys will recover public keys from feePayerSignatures.
    • Please refer to Klaytn Docs for more details.
  • Added new layer named Validator
    • caver.validator is a layer that provides validation functions necessary to use Klaytn.
      • caver.validator.validateSignedMessage will validate a message signed signature.
      • caver.validator.validateTransaction will validate signatures and feePayerSignatures in the transaction.
      • caver.validator.validateSender will validate signatures in the transaction.
      • caver.validator.validateFeePayer will validate feePayerSignatures in the transaction.
    • Please refer to Klaytn Docs for more details.