Releases: casper-ecosystem/casper-js-sdk
Releases · casper-ecosystem/casper-js-sdk
Casper JS SDK v2.11.0
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 itCLPublicKey.toHex(false)
that wayCLPublicKey.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. Whentrue
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 adaptAccountHash
now can be serialized to bytes
Fixed
- Issues with parsing broken deploys
Casper JS SDK v2.10.2
Casper JS SDK v2.10.1
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
2.10.0
Added
- Added signatures verification in
validateDeploy
method. - Added
queryBalance
(will be supported in casper-node 1.5 - RPC namequery_balance
) method inCasperServiceByJsonRPC
. - Added
speculativeDeploy
(will be supported in casper-node 1.5 - RPC namespeculative_exec
) method inCasperServiceByJsonRPC
. - Better documented RPC methods .
- Added
csprToMotes
- motes/cspr converter inConversions
. - Extended PublicKey class API with two new methods, allowing to get publicKey tag type or its corresponding signature algo type.
Fixed
getStateRootHash
(RPC namechain_get_state_root_hash
) can now correctly supportblock_hash
argument.
Casper JS SDK v2.9.1
2.9.1
Fixed
- Got rid of unnecessary instanceof.
- Reverted StoredValue and added
{ rawData: boolean }
togetDictionaryItemByName
andgetDictionaryItemByURef
.
Casper JS SDK v2.9.0
Added
- Now all stored value contains raw JSON from RPC under
raw
key. - New method
getValidatorsInfoByBlockHeight
added.
Changed
targetPublicKeyHex
is now optional inSigner
class.
Casper JS SDK v2.8.0
2.8.0
Added
- Added support to
CLPublicKey
passed as argument toCLKey
(it gets serialized toaccount-hash
when serializing). - New
Contracts
class that basically acts as contract client (possible to install WASM, call an entrypoint, query state or dictionary) - will deprecatecasper-js-client-helper
soon. - Added
getDictionaryItemByName
that usesstate_get_dictionary_item
withdictionary_name
anddictionary_item_key
- Added
sign
andsend
method onDeploy
class.
Casper JS SDK v2.7.9
2.7.9
Fixed
- Fixed problems with CLResult when it got created using different version of ts-results.
Casper JS SDK v2.7.8
2.7.8
Fixed
- Fixed problems with deserialization Tuples containing CLType which includes length parameter (eg. CLByteArray).