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.5.1-rc.2

27 Jul 06:20
96c1ec5
Compare
Choose a tag to compare
Release v1.5.1-rc.2 Pre-release
Pre-release

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

20 Jul 01:57
05110aa
Compare
Choose a tag to compare
Release v1.5.1-rc.1 Pre-release
Pre-release

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

24 Jun 06:15
b82c661
Compare
Choose a tag to compare

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. An Account instance has an address and an accountKey
    • Introduced the AccountKey* classes to represent an account key of a Klaytn account
  • 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 caver.transaction which provides classes for various transaction types provided by the platform
  • Introduced caver.rpc to interact with Klaytn nodes through JSON RPC calls
    • Introduced caver.rpc.klay supports klay namespace JSON RPC calls
    • Introduced caver.rpc.net supports net namespace JSON RPC calls
  • 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 new util functions
    • caver.utils.isValidHash to validate a hash string
    • caver.utils.isValidHashStrict to validate a 0x-prefixed hash string
    • caver.utils.hashMessage to hash a message with the Klaytn specific prefix
    • caver.utils.parseKlaytnWalletKey to parse a KlaytnWalletKey
    • caver.utils.convertToPeb to convert a value in peb
    • caver.utils.convertFromPeb to convert a value in peb to another unit of KLAY
    • caver.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 forscrypt-shim

Improvements

  • Improved caver.utils.isValidPublicKey to validate with the curve

Release v1.5.0-rc.4

24 Jun 02:11
30d8069
Compare
Choose a tag to compare
Release v1.5.0-rc.4 Pre-release
Pre-release

v1.5.0-rc.4 Release Notes

Improvements

  • Edited the README.md file with common architecture implementation

Release v1.5.0-rc.3

23 Jun 04:23
7bf01c6
Compare
Choose a tag to compare
Release v1.5.0-rc.3 Pre-release
Pre-release

v1.5.0-rc.3 Release Notes

New features

  • Added caver.utils.klayUnit enum includes unit name and pebFactor

Improvements

  • Improved caver.utils.convertToPeb and caver.utils.convertFromPeb to handle caver.utils.klayUnit enum as a parameter

Release v1.5.0-rc.2

22 Jun 07:50
a0ea9aa
Compare
Choose a tag to compare
Release v1.5.0-rc.2 Pre-release
Pre-release

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

29 May 03:40
3e40edf
Compare
Choose a tag to compare
Release v1.5.0-rc.1 Pre-release
Pre-release

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 forscrypt-shim

Improvements

  • Improved caver.utils.isValidPublicKey to validate with curve

Release v1.4.1

13 Apr 06:04
89adfae
Compare
Choose a tag to compare

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

13 Apr 05:42
67c282e
Compare
Choose a tag to compare
Release v1.4.1-rc.1 Pre-release
Pre-release

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

27 Mar 03:52
7cc3a0a
Compare
Choose a tag to compare

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