Skip to content

Commit

Permalink
release: v2.45.0 (#2288)
Browse files Browse the repository at this point in the history
* update: changelog

Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>

* update: version

Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>

* update: network tag

Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>

* update: request type and status classes

Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>

* update: integration test

Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>

* chore: formatting

Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>

---------

Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
  • Loading branch information
svetoslav-nikol0v committed May 15, 2024
1 parent 7b38c8a commit 985f844
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
id: start-local-node
if: ${{ steps.build-sdk.conclusion == 'success' && !cancelled() && always() }}
run: |
npx @hashgraph/hedera-local start -d --network-tag=0.49.1 --balance=100000
npx @hashgraph/hedera-local start -d --network-tag=0.49.7 --balance=100000
# Wait for the network to fully start
sleep 30
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v2.45.0

## What's Changed

* fix: solve backward compatibility issues between the SDK and hedera-services v0.49 (modularized code) by @svetoslav-nikol0v in https://github.com/hashgraph/hedera-sdk-js/pull/2240
* feature: update metadata field of fungible and non-fungible tokens, and dynamic NFTs (HIP-646, HIP-765 and HIP-657) by @svetoslav-nikol0v in https://github.com/hashgraph/hedera-sdk-js/pull/2210

## v2.45.0-beta.1

## What's Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hashgraph/sdk",
"version": "2.45.0-beta.1",
"version": "2.45.0",
"description": "Hedera™ Hashgraph SDK",
"types": "./lib/index.d.ts",
"main": "./lib/index.cjs",
Expand Down
9 changes: 9 additions & 0 deletions src/RequestType.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ export default class RequestType {
return "NodeUpdate";
case RequestType.NodeDelete:
return "NodeDelete";
case RequestType.NodeGetInfo:
return "NodeGetInfo";
default:
return `UNKNOWN (${this._code})`;
}
Expand Down Expand Up @@ -365,6 +367,8 @@ export default class RequestType {
return RequestType.NodeUpdate;
case 91:
return RequestType.NodeDelete;
case 92:
return RequestType.NodeGetInfo;
}

throw new Error(
Expand Down Expand Up @@ -767,3 +771,8 @@ RequestType.NodeUpdate = new RequestType(90);
* A transaction body for a `deleteNode` request.
*/
RequestType.NodeDelete = new RequestType(91);

/**
* Get Node information
*/
RequestType.NodeGetInfo = new RequestType(92);
10 changes: 10 additions & 0 deletions src/Status.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,8 @@ export default class Status {
return "INVALID_GOSSIP_CAE_CERTIFICATE";
case Status.InvalidGrpcCertificate:
return "INVALID_GRPC_CERTIFICATE";
case Status.InvalidMaxAutoAssociations:
return "INVALID_MAX_AUTO_ASSOCIATIONS";
default:
return `UNKNOWN (${this._code})`;
}
Expand Down Expand Up @@ -1269,6 +1271,8 @@ export default class Status {
return Status.InvalidGossipCaeCertificate;
case 345:
return Status.InvalidGrpcCertificate;
case 346:
return Status.InvalidMaxAutoAssociations;
default:
throw new Error(
`(BUG) Status.fromCode() does not handle code: ${code}`,
Expand Down Expand Up @@ -2845,3 +2849,9 @@ Status.InvalidGossipCaeCertificate = new Status(344);
* grpc_certificate_hash is invalid
*/
Status.InvalidGrpcCertificate = new Status(345);

/**
* The maximum automatic associations value is not valid.
* The most common cause for this error is a value less than `-1`.
*/
Status.InvalidMaxAutoAssociations = new Status(346);
4 changes: 2 additions & 2 deletions test/integration/TokenCreateIntegrationTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ describe("TokenCreate", function () {
expect(info.autoRenewPeriod).to.be.not.null;
expect(info.autoRenewPeriod.seconds.toInt()).to.be.eql(7776000);
expect(info.expirationTime).to.be.not.null;
expect(info.expirationTime.toString()).to.be.eql(
expirationTime.toString(),
expect(info.expirationTime.toDate().getTime()).to.be.at.least(
expirationTime.toDate().getTime(),
);
});

Expand Down

0 comments on commit 985f844

Please sign in to comment.