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

Release v1.6.3

Compare
Choose a tag to compare
@jimni1222 jimni1222 released this 30 Jun 00:51
· 605 commits to dev since this release
7347c94

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.