Releases: klaytn/caver-js
Release v1.5.1-rc.2
v1.5.1-rc.2 Release Notes
Fixes
- Fixed websocket provider to handle reconnect options
Improvements
- Set default port number for https provider
Release v1.5.1-rc.1
v1.5.1-rc.1 Release Notes
Fixes
- Fixed sending transaction object to Klaytn Node with various transaction types
Improvements
- Changed deprecated scrypt library
- Improved build script with webpack for supporting cdnjs.com for directly use of web browsers
Release v1.5.0
v1.5.0 Release Notes
Highlights: The common architecture of caver, the Klaytn SDK, is implemented.
Common Architecture is a new software architecture for Klaytn development environment which is shared by all Klaytn SDKs (caver-js/caver-java). It is designed for your streamlined development experience and ease of extensibility to other programming languages. Common Architecture realizes a much easier implementation of blockchain applications with other languages if you have former experiences with the existing Klaytn SDKs, as they all share the same architectural background.
The changes made in this new version of caver-js align the architectural bases of Klaytn SDKs into a single structure. From these changes, you can understand and develop blockchain applications with Klaytn and expand your choice of languages for building your application, much more easily, fast, and with great convenience.
For more details about caver-js 1.5.0, please visit Getting Started.
This new version does not broke the backward compatibility. Usage with previous versions works as the same as before for the new versions.
New features
- Introduced
caver.account
which provides a structure that can be used to update a Klaytn account- Introduced the
Account
class to update a Klaytn account. AnAccount
instance has anaddress
and anaccountKey
- Introduced the
AccountKey*
classes to represent an account key of a Klaytn account- Introduced the
AccountKeyLegacy
class represents AccountKeyLegacy - Introduced the
AccountKeyPublic
class represents AccountKeyPublic - Introduced the
AccountKeyFail
class represents AccountKeyFail - Introduced the
AccountKeyWeightedMultiSig
class represents AccountKeyWeightedMultiSig - Introduced the
AccountKeyRoleBased
class represents AccountKeyRoleBased
- Introduced the
- Introduced the
- Introduced
caver.wallet
which provides funtionality for using Klaytn account in caver-js- Introduced the
KeyringContainer
class to manage keyrings in in-memoty wallet - Introduced
Keyring
which includes an address and private key(s)- Introduced
SingleKeyring
which includes an address and a private key - Introduced
MultipleKeyring
which includes an address and private keys - Introduced
RoleBasedKeyring
which includes an address and private keys by roles
- Introduced
- Introduced the
- Introduced
caver.transaction
which provides classes for various transaction types provided by the platform- Basic type transaction classes
- Introduced the
LegacyTransaction
class represents TxTypeLegacyTransaction - Introduced the
ValueTransfer
class represents TxTypeValueTransfer - Introduced the
ValueTransferMemo
class represents TxTypeValueTransferMemo - Introduced the
AccountUpdate
class represents TxTypeAccountUpdate - Introduced the
SmartContractDeploy
class represents TxTypeSmartContractDeploy - Introduced the
SmartContractExecution
class represents TxTypeSmartContractExecution - Introduced the
Cancel
class represents TxTypeCancel - Introduced the
ChainDataAnchoring
class represents TxTypeChainDataAnchoring
- Introduced the
- Fee Delegated type transaction classes
- Introduced the
FeeDelegatedValueTransfer
class represents TxTypeFeeDelegatedValueTransfer - Introduced the
FeeDelegatedValueTransferMemo
class represents TxTypeFeeDelegatedValueTransferMemo - Introduced the
FeeDelegatedAccountUpdate
class represents TxTypeFeeDelegatedAccountUpdate - Introduced the
FeeDelegatedSmartContractDeploy
class represents TxTypeFeeDelegatedSmartContractDeploy - Introduced the
FeeDelegatedSmartContractExecution
class represents TxTypeFeeDelegatedSmartContractExecution - Introduced the
FeeDelegatedCancel
class represents TxTypeFeeDelegatedCancel - Introduced the
FeeDelegatedChainDataAnchoring
class represents TxTypeFeeDelegatedChainDataAnchoring
- Introduced the
- Fee Delegated with ratio type transaction classes
- Introduced the
FeeDelegatedValueTransferWithRatio
class represents TxTypeFeeDelegatedValueTransferWithRatio - Introduced the
FeeDelegatedValueTransferMemoWithRatio
class represents TxTypeFeeDelegatedValueTransferMemoWithRatio - Introduced the
FeeDelegatedAccountUpdateWithRatio
class represents TxTypeFeeDelegatedAccountUpdateWithRatio - Introduced the
FeeDelegatedSmartContractDeployWithRatio
class represents TxTypeFeeDelegatedSmartContractDeployWithRatio - Introduced the
FeeDelegatedSmartContractExecutionWithRatio
class represents TxTypeFeeDelegatedSmartContractExecutionWithRatio - Introduced the
FeeDelegatedCancelWithRatio
class represents TxTypeFeeDelegatedCancelWithRatio - Introduced the
FeeDelegatedChainDataAnchoringWithRatio
class represents TxTypeFeeDelegatedChainDataAnchoringWithRatio
- Introduced the
- Basic type transaction classes
- Introduced
caver.rpc
to interact with Klaytn nodes through JSON RPC calls- Introduced
caver.rpc.klay
supportsklay
namespace JSON RPC calls - Introduced
caver.rpc.net
supportsnet
namespace JSON RPC calls
- Introduced
- Introduced
caver.contract
that enables to use smart contract as a javascript object - Introduced
caver.kct
to interact with a KCT contract in Klaytn- Introduced
caver.kct.kip7
to interact with a KIP-7 fungible token contract - Introduced
caver.kct.kip17
to interact with a KIP-17 non-fungible token contract
- Introduced
- Introduced new util functions
caver.utils.isValidHash
to validate a hash stringcaver.utils.isValidHashStrict
to validate a 0x-prefixed hash stringcaver.utils.hashMessage
to hash a message with the Klaytn specific prefixcaver.utils.parseKlaytnWalletKey
to parse a KlaytnWalletKeycaver.utils.convertToPeb
to convert a value in pebcaver.utils.convertFromPeb
to convert a value in peb to another unit of KLAYcaver.utils.recover
to recover an address from the signature
Fixes
- Fixed
caver.klay.accounts.decrypt
to handle the string type of the salt option - Fixed error handling for contract deployment in caver-core-method to check the status in a receipt
- Fixed package import for
scrypt-shim
Improvements
- Improved
caver.utils.isValidPublicKey
to validate with the curve
Release v1.5.0-rc.4
v1.5.0-rc.4 Release Notes
Improvements
- Edited the README.md file with common architecture implementation
Release v1.5.0-rc.3
v1.5.0-rc.3 Release Notes
New features
- Added
caver.utils.klayUnit
enum includes unit name and pebFactor
Improvements
- Improved
caver.utils.convertToPeb
andcaver.utils.convertFromPeb
to handlecaver.utils.klayUnit
enum as a parameter
Release v1.5.0-rc.2
v1.5.0-rc.2 Release Notes
New features
* Introduced Keyring
subclasses which includes an address and private key(s)
* Introduced SingleKeyring
which includes an address and a private key
* Introduced MultipleKeyring
which includes an address and private keys
* Introduced RoleBasedKeyring
which includes an address and private keys by roles
- Introduced
SignatureData
to contain v, r and s of signature as a string - Introduced new util functions
*caver.utils.parseKlaytnWalletKey
to parse KlaytnWalletKey
*caver.utils.convertToPeb
to convert value in peb
*caver.utils.convertFromPeb
to convert value from peb
*caver.utils.recover
to recover address that used to sign the message
Release v1.5.0-rc.1
v1.5.0-rc.1 Release Notes
New features
- Introduced
caver.account
to use for update account informations - Introduced
caver.wallet.keyring
which includes address and private keys - Introduced
caver.wallet
to manage keyrings in in-memory wallet - Introduced
caver.transaction
that contains classes for each transaction type- caver.transaction.legacyTransaction
- caver.transaction.valueTransfer
- caver.transaction.feeDelegatedValueTransfer
- caver.transaction.feeDelegatedValueTransferWithRatio
- caver.transaction.valueTransferMemo
- caver.transaction.feeDelegatedValueTransferMemo
- caver.transaction.feeDelegatedValueTransferMemoWithRatio
- caver.transaction.accountUpdate
- caver.transaction.feeDelegatedAccountUpdate
- caver.transaction.feeDelegatedAccountUpdateWithRatio
- caver.transaction.smartContractDeploy
- caver.transaction.feeDelegatedSmartContractDeploy
- caver.transaction.feeDelegatedSmartContractDeployWithRatio
- caver.transaction.smartContractExecution
- caver.transaction.feeDelegatedSmartContractExecution
- caver.transaction.feeDelegatedSmartContractExecutionWithRatio
- caver.transaction.cancel
- caver.transaction.feeDelegatedCancel
- caver.transaction.feeDelegatedCancelWithRatio
- caver.transaction.chainDataAnchoring
- caver.transaction.feeDelegatedChainDataAnchoring
- caver.transaction.feeDelegatedChainDataAnchoringWithRatio
- Introduced
caver.rpc
to interacts with Klaytn nodes through JSON RPC calls- caver.rpc.klay
- caver.rpc.net
- Introduced
caver.contract
that enables use smart contract as a javascript object - Introduced
caver.kct
to interact with a KCT contract- caver.kct.kip7
- caver.kct.kip17
- Introduced new util functions
- caver.utils.isValidHash
- caver.utils.isValidHashStrict
- caver.utils.hashMessage
Fixes
- Fixed caver.klay.accounts.decrypt to handle string type of salt option
- Fixed error handling for contract deployment in caver-core-method
- Fixed import package for
scrypt-shim
Improvements
- Improved caver.utils.isValidPublicKey to validate with curve
Release v1.4.1
v1.4.1 Release Notes
New features
- Introduced 'caver.klay.KIP17’ to interact with a KIP-17 non-fungible token contract
- Introduced implementation of KIPs
- KIP-7 fungible token contract
- KIP-17 non fungible token contract
- KIP-13 interface query contract
Improvements
- Modified implementation of KIP7 package to implement KIP-13.
Release v1.4.1-rc.1
v1.4.1-rc.1 Release Notes
New features
- Introduced 'caver.klay.KIP17’ to interact with a KIP-17 non-fungible token contract
- Introduced implementation of KIPs
- KIP-7 fungible token contract
- KIP-17 non fungible token contract
- KIP-13 interface query contract
Improvements
- Modified implementation of KIP7 package to implement KIP-13.
Release v1.4.0
v1.4.0 Release Notes
New features
- Introduced 'caver.klay.KIP7’ to interact with a KIP-7 fungible token contract
Fixes
- Fixed MaxListenersExceededWarning by using setRequestManager instead of setProvider