Skip to content

Releases: casper-ecosystem/casper-js-sdk

Casper JS SDK v2.4.1@next

09 Aug 18:52
01c4433
Compare
Choose a tag to compare

2.4.1

Fixed

  • EventStream - fixed problems with multiple data chunks parsing

Casper JS SDK v2.4.0@next Edit

03 Aug 08:55
810dcbb
Compare
Choose a tag to compare

2.4.0

Added

  • DeployWatcher added

Casper JS SDK v2.3.0@next

30 Jul 13:39
004d6cd
Compare
Choose a tag to compare

2.3.0

Added

  • state_get_dictionary_item with URef support in getDictionaryItemByURef implemented

Casper JS SDK v2.2.3@next

26 Jul 13:11
83e0124
Compare
Choose a tag to compare

2.2.3

Fixed

  • StoredValue parsing access param hotfixed

Casper JS SDK v2.2.2@next

23 Jul 08:24
bd25a17
Compare
Choose a tag to compare

2.2.2

Fixed

  • CLMap fix for empty maps from bytes
  • CLMap replaced problematic Map implementation

Casper JS SDK v2.2.1@next

22 Jul 12:24
96c217a
Compare
Choose a tag to compare

2.2.1

Fixed

  • EventStream now properly handle invalid JSONs

Casper JS SDK v2.2.0@next

21 Jul 16:21
47a2f07
Compare
Choose a tag to compare

2.2.0

Added

  • EventStream

Casper JS SDK v2.1.0@next

13 Jul 12:11
3056131
Compare
Choose a tag to compare

2.1.0

Fixed

  • state-get-item due to RPC changes
  • CLList as empty list initialization from JSON

Added

  • getBlockTransfers, getEraInfoBySwitchBlock, getEraInfoBySwitchBlockHeight methods to CasperServiceByJsonRPC

Casper JS SDK v2.0.1@next

05 Jul 13:01
8dece53
Compare
Choose a tag to compare

2.0.1

Changed

  • DeployUtil.deployFromJson returns now Result<Deploy, Error> instead of Deploy | undefined. Error has a message inside.

Casper JS SDK v2.0.0@next

18 Jun 12:29
Compare
Choose a tag to compare

2.0.0@next

Changed

  • Caution! This release contains rewritten CLValue from scratch, there are some breaking changes so consider it before upgrading.
  • Removed CLTypedAndToBytesHelper to have consistent way of creating new CLValues by using new CLBool(true) or CLValueBuilder.bool(true)
  • Removed CLTypeHelper have consistent way of creating new CLValues by using new CLBoolType() or CLTypeBuilder.bool()
  • CLValue static methods now are moved to CLValueBuilder eg. CLValueBuilder.u512
  • Every class inheriting from CLValue is now named with CL prefix, bigger naming changes:
    • StringValue -> CLString
    • KeyValue -> CLKey
    • MapValue -> CLMap
    • Option -> CLOption
  • There are API changes in CLResult
const myTypesComplex = {
  ok: new CLListType(new CLListType(new CLU8Type())),
  err: new CLOptionType(new CLListType(new CLListType(new CLU8Type())))
};

const myOkComplexRes = new CLResult( Ok(new CLList([new CLList([new CLU8(5), new CLU8(10), new CLU8(15)])])), myTypesComplex );

  • There are API changes in CLOption - not it requires Some or None wrappers as argument (from ts-result library).
  • Now all the serialization methods are not connected to CLValue - toJSON, fromJSON, toBytes, fromBytes needs to be called with CLValueParsers eg. CLValueParser.toJSON(CLValueBuilder.string("ABC"))
  • Renamed methods in CLPublicKey:
    • toAccountHex -> toHex - old name led to misunderstandings as in fact this is hex representation of public-key prefixed with key-type.
    • added method toAccountHashStr - this methods returns string containing account hash in hex form prefixed with account-hash-.