Skip to content

Releases: casper-ecosystem/casper-js-sdk

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-.

Casper JS SDK v1.4.4@next

18 Jun 11:53
Compare
Choose a tag to compare

1.4.4@next

Changed

  • Experimental release with @next tag.

Casper JS SDK v1.4.3

18 Jun 10:14
d6221f7
Compare
Choose a tag to compare

1.4.3

Changed

  • Changed repo name and npm package name from casper-client-sdk to casper-js-sdk.

Casper Client SDK v1.4.2

10 Jun 16:18
c0ece06
Compare
Choose a tag to compare

1.4.2

Added

  • newTransferWithoutObligatoryId renamed to newTransferWithOptionalTransferId

Casper Client SDK v1.4.1

10 Jun 16:03
8739e64
Compare
Choose a tag to compare

1.4.1

Added

  • newTransferWithoutObligatoryId restores the function that gives abilitity to send transfer without providing id.

Casper Client SDK v1.4.0

04 Jun 12:36
770a250
Compare
Choose a tag to compare

1.4.0

Changed

  • Signer.sign now requires deploy in JSON format, public-key hex of a sender and public-key hex of a target.

Casper Client SDK v1.3.4

28 May 15:24
a222556
Compare
Choose a tag to compare

1.3.4

Added

  • Signer.getVersion returns running version of Signer.