Skip to content

Releases: casper-ecosystem/casper-js-sdk

Casper JS SDK v2.11.0

13 Feb 18:29
f23f9ad
Compare
Choose a tag to compare

2.11.0

Added

  • Support for checksumed mixed-case publickeys
  • Support for HTTPS EventStream

Changed

  • CLPublicKey.toHex() now by default returns checksummed value. You can use it in legacy mode by calling it CLPublicKey.toHex(false) that way
  • CLPublicKey.fromHex() now can get two arguments. The first one is string containing hex encoded public key, and the second one is a boolean value that indicates if you want to run checksum validation. When true is passed it will throw an error. Otherwise it will log warn to the console. We added this because we want to support users who store the non-checksumed publickeys and need time to adapt
  • AccountHash now can be serialized to bytes

Fixed

  • Issues with parsing broken deploys

Casper JS SDK v2.10.2

16 Jan 12:38
Compare
Choose a tag to compare

2.10.2

Fixed

  • Updated ts-results dependency of our own fork to fix some compiling issues

Casper JS SDK v2.10.1

20 Dec 14:58
a746e99
Compare
Choose a tag to compare

2.10.1

Fixed

  • Updated exports so more conversion fuctions are now public
  • Added typings to JsonExecutableDeployItem
  • Fixed how the EventStream URL is build
  • Replaced ts-results dependency for our own fork because of the conflicting config

Casper JS SDK v2.10.0

12 Sep 17:27
b95a4c6
Compare
Choose a tag to compare

2.10.0

Added

  • Added signatures verification in validateDeploy method.
  • Added queryBalance (will be supported in casper-node 1.5 - RPC name query_balance) method in CasperServiceByJsonRPC.
  • Added speculativeDeploy (will be supported in casper-node 1.5 - RPC name speculative_exec) method in CasperServiceByJsonRPC.
  • Better documented RPC methods .
  • Added csprToMotes - motes/cspr converter in Conversions.
  • Extended PublicKey class API with two new methods, allowing to get publicKey tag type or its corresponding signature algo type.

Fixed

  • getStateRootHash (RPC name chain_get_state_root_hash) can now correctly support block_hash argument.

Casper JS SDK v2.9.1

22 Mar 11:36
7da7c50
Compare
Choose a tag to compare

2.9.1

Fixed

  • Got rid of unnecessary instanceof.
  • Reverted StoredValue and added { rawData: boolean } to getDictionaryItemByName and getDictionaryItemByURef.

Casper JS SDK v2.9.0

21 Mar 16:46
b54eb9e
Compare
Choose a tag to compare

Added

  • Now all stored value contains raw JSON from RPC under raw key.
  • New method getValidatorsInfoByBlockHeight added.

Changed

  • targetPublicKeyHex is now optional in Signer class.

Casper JS SDK v2.8.0

07 Feb 11:15
3d11e89
Compare
Choose a tag to compare

2.8.0

Added

  • Added support to CLPublicKey passed as argument to CLKey (it gets serialized to account-hash when serializing).
  • New Contracts class that basically acts as contract client (possible to install WASM, call an entrypoint, query state or dictionary) - will deprecate casper-js-client-helper soon.
  • Added getDictionaryItemByName that uses state_get_dictionary_item with dictionary_name and dictionary_item_key
  • Added sign and send method on Deploy class.

Casper JS SDK v2.7.9

04 Feb 18:06
e96fcb0
Compare
Choose a tag to compare

2.7.9

Fixed

  • Fixed problems with CLResult when it got created using different version of ts-results.

Casper JS SDK v2.7.8

03 Feb 18:17
ccd81ae
Compare
Choose a tag to compare

2.7.8

Fixed

  • Fixed problems with deserialization Tuples containing CLType which includes length parameter (eg. CLByteArray).

Casper JS SDK v2.7.7

28 Jan 17:21
18bdd79
Compare
Choose a tag to compare

2.7.7

Changed

  • Version 2.7.7 is now @latest.
  • README updated.