This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
Releases: klaytn/caver-js
Releases · klaytn/caver-js
Release v1.6.4
v1.6.4 Release Notes
Improvements
- Configured the environment for jsdoc documents and added jsdoc content for packages provided in common architecture. (#492, #493, #494, #496, #498, #499, #500, #501, #502, #503, #504, #505, #506, #508, #511, #514, #516)
Fixes
- Modified to encode FeeDelegatedWithRatio transactions with the
feeRatio
variable converted to an even number. (#481) - Fixed
caver.contract
error handling logic for whenkeyring
doesn't exist incaver.wallet
. (#488) - Fixed so that, when using an account in Klaytn Node because the from
keyring
doesn't exist incaver.wallet
,sendTransaction
is used whencaver.contract
sends a basic transaction, andsignTransaction
andsendRawTransaction
are used whencaver.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
v1.6.4-rc.5 Release Notes
Fixes
- Fixed to use
sendTransaction
ifcaver.contract
sends basic transaction and usesignTransaction
andsendRawTransaction
ifcaver.contract
sends fee delegation transaction when using an account in Klaytn Node because the fromkeyring
is not existed incaver.wallet
. (#519)
Release v1.6.4-rc.4
v1.6.4-rc.4 Release Notes
Improvements
- Configured the environment for jsdoc documents and added jsdoc content for packages provided in common architecture. (#492, #493, #494, #496, #498, #499, #500, #501, #502, #503, #504, #505, #506, #508, #511, #514, #516)
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
v1.6.4-rc.3 Release Notes
Fixes
- Fixed to use
sendTransaction
instead ofsignTransaction
andsendRawTransaction
when using an account in Klaytn Node because the from keyring is not existed incaver.wallet
. (#509)
Release v1.6.4-rc.2
v1.6.4-rc.2 Release Notes
Fixes
- Fixed
caver.contract
error handling logic when keyring is not existed in thecaver.wallet
. (#488)
Release v1.6.4-rc.1
v1.6.4-rc.1 Release Notes
Fixes
- Modified to encode FeeDelegatedWithRatio transactions with even number of feeRatio. (#481)
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.
Release v1.6.3-rc.4
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
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
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.
- Governance RPC Call is provided through
- 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.
- Functions to decode a function call string consisting of a function signature and encoded parameters and returns a parameter.
- 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.
- Function that converts the result of
- 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.
- 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.
- Supported recover public keys from a transaction instance
- Function to recover 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.
- Function to recover public keys from the
- 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 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.