Releases: casper-ecosystem/casper-js-sdk
Releases · casper-ecosystem/casper-js-sdk
Casper JS SDK v2.2.0@next
2.2.0
Added
EventStream
Casper JS SDK v2.1.0@next
2.1.0
Fixed
state-get-item
due to RPC changesCLList
as empty list initialization from JSON
Added
getBlockTransfers
,getEraInfoBySwitchBlock
,getEraInfoBySwitchBlockHeight
methods toCasperServiceByJsonRPC
Casper JS SDK v2.0.1@next
2.0.1
Changed
DeployUtil.deployFromJson
returns nowResult<Deploy, Error>
instead ofDeploy | undefined
.Error
has amessage
inside.
Casper JS SDK v2.0.0@next
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 usingnew CLBool(true)
orCLValueBuilder.bool(true)
- Removed
CLTypeHelper
have consistent way of creating new CLValues by usingnew CLBoolType()
orCLTypeBuilder.bool()
CLValue
static methods now are moved toCLValueBuilder
eg.CLValueBuilder.u512
- Every class inheriting from
CLValue
is now named withCL
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 requiresSome
orNone
wrappers as argument (fromts-result
library). - Now all the serialization methods are not connected to
CLValue
-toJSON
,fromJSON
,toBytes
,fromBytes
needs to be called withCLValueParsers
eg.CLValueParser.toJSON(CLValueBuilder.string("ABC"))
- Renamed methods in
CLPublicKey
:toAccountHex
->toHex
- old name led to misunderstandings as in fact this is hex representation ofpublic-key
prefixed with key-type.- added method
toAccountHashStr
- this methods returns string containing account hash in hex form prefixed withaccount-hash-
.
Casper JS SDK v1.4.4@next
1.4.4@next
Changed
- Experimental release with
@next
tag.
Casper JS SDK v1.4.3
1.4.3
Changed
- Changed repo name and npm package name from
casper-client-sdk
tocasper-js-sdk
.
Casper Client SDK v1.4.2
1.4.2
Added
newTransferWithoutObligatoryId
renamed tonewTransferWithOptionalTransferId
Casper Client SDK v1.4.1
1.4.1
Added
newTransferWithoutObligatoryId
restores the function that gives abilitity to send transfer without providing id.
Casper Client SDK v1.4.0
1.4.0
Changed
Signer.sign
now requires deploy in JSON format,public-key hex
of a sender andpublic-key hex
of a target.
Casper Client SDK v1.3.4
1.3.4
Added
Signer.getVersion
returns running version of Signer.