This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
Release v1.6.3
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.
- This function converts the result of
- 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.
- 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.
- Supports a function that recovers public keys from a transaction instance. (#472, #470)
- This function recovers public keys from the
signatures
orfeePayerSignatures
field of the transaction.tx.recoverPublicKeys
will recover public keys fromsignatures
.tx.recoverFeePayerPublicKeys
will recover public keys fromfeePayerSignatures
.
- Please refer to Klaytn Docs for more details.
- This function recovers public keys from the
- 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 validatesignatures
andfeePayerSignatures
in the transaction.caver.validator.validateSender
will validatesignatures
in the transaction.caver.validator.validateFeePayer
will validatefeePayerSignatures
in the transaction.
- Please refer to Klaytn Docs for more details.