diff --git a/CHANGELOG.md b/CHANGELOG.md index c91606cf8..313948809 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Removed --> +## [3.0.0-rc04] - 2024-07-25 + +### 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-rc02] - 2024-07-05 This release candidate is compatible with [#node RC3](https://github.com/casper-network/casper-node/tree/release-2.0.0-rc2) diff --git a/package-lock.json b/package-lock.json index 9ddebefa6..286e51369 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "casper-js-sdk", - "version": "3.0.0-rc03", + "version": "3.0.0-rc04", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "casper-js-sdk", - "version": "3.0.0-rc03", + "version": "3.0.0-rc04", "license": "Apache 2.0", "dependencies": { "@ethersproject/bignumber": "^5.7.0", diff --git a/package.json b/package.json index c994749ee..8d878cec6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "casper-js-sdk", - "version": "3.0.0-rc03", + "version": "3.0.0-rc04", "license": "Apache 2.0", "description": "SDK to interact with the Casper blockchain", "homepage": "https://github.com/casper-ecosystem/casper-js-sdk#README.md", diff --git a/src/lib/Contracts.ts b/src/lib/Contracts.ts index b215e7411..66ea58c22 100644 --- a/src/lib/Contracts.ts +++ b/src/lib/Contracts.ts @@ -33,7 +33,8 @@ export class Contract { constructor(public casperClient?: CasperClient) {} /** - * Attaches an on-chain smart contract to this `Contract` object using its hexadecimal string typed hash. The contract hash must include the prefix "hash-" + * Attaches an on-chain smart contract to this `Contract` object using its hexadecimal string typed hash. The contract hash must include the prefix "hash-". + * Setting contract hash 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. * @param contractHash The hexadecimal smart contract hash, with the prefix "entity-contract-" * @param contractPackageHash The hexadecimal smart contract package hash, with the prefix "package-". This parameter is optional, and only used when there is event processing present. */ diff --git a/src/services/CasperServiceByJsonRPC.ts b/src/services/CasperServiceByJsonRPC.ts index fc373bef7..83a0b868d 100644 --- a/src/services/CasperServiceByJsonRPC.ts +++ b/src/services/CasperServiceByJsonRPC.ts @@ -146,6 +146,7 @@ export class CasperServiceByJsonRPC { /** * Constructor for building a `CasperServiceByJsonRPC` * @param provider A provider uri + * @param muffleDeprecationWarnings If set to `true`, deprecation warnings in this class will be suppressed. Defaults to `false`. */ constructor( provider: string | SafeEventEmitterProvider,