Skip to content

Releases: casper-ecosystem/casper-js-sdk

Casper JS SDK v5.0.0-rc4

25 Nov 11:35
fe40022
Compare
Choose a tag to compare
Pre-release

Added

  • makeCsprTransferDeploy and makeAuctionManagerDeploy utils
  • README.md: Introduced a comprehensive README file, including detailed information about the SDK, setup instructions, and usage examples.
  • Migration Guide: Added a basic migration guide to assist developers in transitioning to the new SDK version with updated types and RPC.
  • getDeploySizeInBytes static method for Deploy

Removed

  • DeployParams class due to deprecation, renamed fromHeaderAndItems function to the makeDeploy due to consistency with previous methods names

Changed

  • Made id optional in TransferDeployItem.newTransfer

Casper JS SDK v5.0.0-rc3

19 Nov 13:46
573b563
Compare
Choose a tag to compare
Pre-release

Added

  • Deserializer function for InfoGetDeployResultV1Compatible - fromJSON
  • Annotate RPC request params

Fixed

  • Args and CLType / CLValue parsers
  • RPC serialization
  • Updated names for RPC response/request
  • Deserializer for Transform class
  • Removed unnecessary object declaration for deploy/transaction during serialization

Full Changelog: 5.0.0-rc2...5.0.0-rc3

Casper JS SDK v5.0.0-rc2

13 Nov 16:06
d8a2e00
Compare
Choose a tag to compare
Pre-release

Added

  • Caution! This release contains rewritten classes/CLValue/CLType from scratch, there are some breaking changes so consider it before upgrading.

Changed

  • We’ve entirely rewritten the casper-js-sdk from the ground up to provide a more efficient, flexible, and developer-friendly experience. This major release includes significant changes to the SDK’s architecture, type system, and API methods, introducing new types and RPC capabilities to support the latest Casper blockchain features.

  • Updated Type System:

    • Refined and expanded CLType and CLValue implementations for stronger type-checking and better type safety.
    • Introduced new types to support complex data structures and improved encoding/decoding of values for compatibility with the latest Casper updates.
  • Enhanced RPC Methods:

    • New RPC methods provide richer interaction capabilities, supporting advanced transactions, streamlined data retrieval, and improved error handling.
    • Added support for more granular transaction controls, allowing for better customizations of gas fees, transaction targets, and entry points.

Fixed

  • Fixed serializer and deserializer for json classes

Casper JS SDK v5.0.0-rc1

12 Nov 13:08
61fb169
Compare
Choose a tag to compare
Pre-release

Added

  • Caution! This release contains rewritten classes/CLValue/CLType from scratch, there are some breaking changes so consider it before upgrading.

Changed

  • We’ve entirely rewritten the casper-js-sdk from the ground up to provide a more efficient, flexible, and developer-friendly experience. This major release includes significant changes to the SDK’s architecture, type system, and API methods, introducing new types and RPC capabilities to support the latest Casper blockchain features.

  • Updated Type System:

    • Refined and expanded CLType and CLValue implementations for stronger type-checking and better type safety.
    • Introduced new types to support complex data structures and improved encoding/decoding of values for compatibility with the latest Casper updates.
  • Enhanced RPC Methods:

    • New RPC methods provide richer interaction capabilities, supporting advanced transactions, streamlined data retrieval, and improved error handling.
    • Added support for more granular transaction controls, allowing for better customizations of gas fees, transaction targets, and entry points.

Casper JS SDK v2.15.7

12 Nov 14:27
18eb5f4
Compare
Choose a tag to compare

Fixed

  • Backfilled missing variants of TransformValue type
    • AddInt32
    • AddUInt64
    • AddUInt128
    • AddUInt256
    • WriteEraInfo
    • WriteBid
    • WriteWithdraw
    • Failure
    • WriteUnbonding
  • Backfilled operations field in Effect type
  • Exported all types in services/types module so that they can be used by end users

Casper JS SDK v3.0.0-rc05

30 Aug 09:55
Compare
Choose a tag to compare
Pre-release

Fixed

  • Filled missing variants of TransformValue type (AddInt32|AddUInt64|AddUInt128|AddUInt256|WriteEraInfo|WriteBid|WriteWithdraw|Failure|WriteUnbonding)
  • Removed field effect from ExecutionResultV2 type (it was incorrect)
  • Added field effects to ExecutionResultV2 type and added TransformV2 type to match the node's response

Casper JS SDK v2.15.6

29 Aug 21:06
e46b818
Compare
Choose a tag to compare

Fixed

  • Backfilled missing variants of TransformValue type
    • AddInt32
    • AddUInt64
    • AddUInt128
    • AddUInt256
    • WriteEraInfo
    • WriteBid
    • WriteWithdraw
    • Failure
    • WriteUnbonding
  • Backfilled operations field in Effect type
  • Exported all types in services/types module so that they can be used by end users

Casper JS SDK v3.0.0-rc04

25 Jul 10:15
1124678
Compare
Choose a tag to compare
Pre-release

Added

  • Brought back the functionality of setting contract hash (setContractHash method) in Contract class. Previously even using that method would ignore the contract hash due to a bug in the node. Now setting it will imply that the contract endpoints need to by called by contract hash. You still can use setContractName, but setContractHash takes priority if both are used.
  • Added the possibility to muffle deprecation warnings in CasperServiceByJsonRPC. You can now pass muffleDeprecationWarnings as an optional parameter to the constructor. If set to true, the SDK will not log any deprecation warnings from that class. Defaults to false

Removed

  • TransactionSessionKind since field kind was removed from Session implementation of TransactionTarget
  • Removed usages of toHex, fromHex and toAccountHashStr since they are deprecated.

Changed

  • waitForDeploy and waitForTransaction methods will fail fast if the results for getting deploy/transaction info is present but was not successfull.

3.0.0-rc03

10 Jul 02:58
92689ee
Compare
Choose a tag to compare
3.0.0-rc03 Pre-release
Pre-release

What's Changed

  • update public key for easy conversion to key & account hash by @ryo-casper in #448

Full Changelog: 3.0.0-rc02...3.0.0-rc03

Casper JS SDK v3.0.0-rc02

05 Jul 19:48
Compare
Choose a tag to compare
Pre-release

[3.0.0-rc02] - 2024-07-05

This release candidate is compatible with #node RC3

Added

  • Mappings for Key.Unbond and Key.AddressableEntity
  • Github action now should include lib.js in every release