Skip to content

Commit

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

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: proto package version

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: sdk version

Signed-off-by: svetoslav-nikol0v <[email protected]>

* chore: fix local builds

Signed-off-by: Nathan Klick <[email protected]>

* chore: remove unnecessary deps install

Signed-off-by: Nathan Klick <[email protected]>

* chore: ensure deps are properly setup

Signed-off-by: Nathan Klick <[email protected]>

* chore: suppress outputs of pnpm link

Signed-off-by: Nathan Klick <[email protected]>

* chore: adjustments

Signed-off-by: svetoslav-nikol0v <[email protected]>

* chore: remove log

Signed-off-by: svetoslav-nikol0v <[email protected]>

* chore: remove log

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: integration tests

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: integration test

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: taskfile

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: test

Signed-off-by: svetoslav-nikol0v <[email protected]>

* chore: remove .only

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: build workflow

Signed-off-by: svetoslav-nikol0v <[email protected]>

* revert

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: exit when the unit tests complete

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: add log

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: build workflow by adding an additional step before building the cryptography package

Signed-off-by: svetoslav-nikol0v <[email protected]>

* revert to initial state

Signed-off-by: svetoslav-nikol0v <[email protected]>

* fix

Signed-off-by: svetoslav-nikol0v <[email protected]>

* add install command

Signed-off-by: svetoslav-nikol0v <[email protected]>

* remove build proto command

Signed-off-by: svetoslav-nikol0v <[email protected]>

* revert the build workflow

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update taskfile

Signed-off-by: svetoslav-nikol0v <[email protected]>

* add build cryptography command

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: task file

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update taskfile

Signed-off-by: svetoslav-nikol0v <[email protected]>

* remove cryptograpgy build

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update task file

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update task file

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update workflow

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update files

Signed-off-by: svetoslav-nikol0v <[email protected]>

* add a log

Signed-off-by: svetoslav-nikol0v <[email protected]>

* build: attempt to resolve test issues

Signed-off-by: Nathan Klick <[email protected]>

* ci: update task and pnpm versions

Signed-off-by: Nathan Klick <[email protected]>

* build: added logging output

Signed-off-by: Nathan Klick <[email protected]>

* build: run with scissors

Signed-off-by: Nathan Klick <[email protected]>

* update: address books

Signed-off-by: svetoslav-nikol0v <[email protected]>

* update: Status and RequestType

Signed-off-by: svetoslav-nikol0v <[email protected]>

* chore: formatting

Signed-off-by: svetoslav-nikol0v <[email protected]>

* chore: remove log

Signed-off-by: svetoslav-nikol0v <[email protected]>

* chore: remove log

Signed-off-by: svetoslav-nikol0v <[email protected]>

* chore: remove unnecessary command

Signed-off-by: svetoslav-nikol0v <[email protected]>

---------

Signed-off-by: svetoslav-nikol0v <[email protected]>
Signed-off-by: Nathan Klick <[email protected]>
Co-authored-by: Nathan Klick <[email protected]>
  • Loading branch information
svetoslav-nikol0v and nathanklick authored Apr 29, 2024
1 parent 5fffabe commit 5f5c1b4
Show file tree
Hide file tree
Showing 19 changed files with 174 additions and 62 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
with:
version: 3.7.0
version: 3.35.1

- name: Install PNPM
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8.10.0
version: 8.15.4

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
Expand All @@ -68,7 +68,7 @@ jobs:
- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
with:
version: 3.7.0
version: 3.35.1

- name: "Create env file"
run: |
Expand All @@ -81,7 +81,7 @@ jobs:
- name: Install PNPM
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8.10.0
version: 8.15.4

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/common_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
with:
version: 3.7.0
version: 3.35.1

- name: Install PNPM
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8.10.0
version: 8.15.4

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
with:
version: 3.7.0
version: 3.35.1

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Install PNPM
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8.10.0
version: 8.15.4

- name: Build @hashgraph/sdk
run: task build
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,20 @@ jobs:
- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
with:
version: 3.7.0
version: 3.35.1

- name: Install PNPM
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8.10.0
version: 8.15.4

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18

- name: Compile Code
run: task build
run: task -v build

publish-release:
name: Publish Release
Expand All @@ -158,12 +158,12 @@ jobs:
- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
with:
version: 3.7.0
version: 3.35.1

- name: Install PNPM
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8.10.0
version: 8.15.4

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
Expand All @@ -172,7 +172,7 @@ jobs:
cache: pnpm

- name: Install NPM Dependencies
run: task install
run: task -v install

- name: Install Playwright Dependencies
run: sudo npx playwright install-deps
Expand Down Expand Up @@ -219,19 +219,19 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: packages/proto
if: ${{ steps.proto.outputs.publish-required == 'true' && !cancelled() && !failure() }}
run: task publish -- ${{ steps.publish.outputs.args }}
run: task -v publish -- ${{ steps.publish.outputs.args }}

- name: Publish Cryptography Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: packages/cryptography
if: ${{ steps.cryptography.outputs.publish-required == 'true' && !cancelled() && !failure() }}
run: task publish -- ${{ steps.publish.outputs.args }}
run: task -v publish -- ${{ steps.publish.outputs.args }}

- name: Publish SDK Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: task publish -- ${{ steps.publish.outputs.args }}
run: task -v publish -- ${{ steps.publish.outputs.args }}

- name: Generate Github Release
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/react_native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
with:
version: 3.7.0
version: 3.35.1

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Install PNPM
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8.10.0
version: 8.15.4

- name: Install Yarn
run: npm install -g yarn
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
- name: Install PNPM
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8.10.0
version: 8.15.4

- name: Install Yarn
run: npm install -g yarn
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-beta.1

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

## What's Changed
Expand Down
44 changes: 20 additions & 24 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,38 +42,28 @@ tasks:
--validation.invalidLink
--entryPoints src/index.js src/browser.js src/native.js

"install:deps":
run: once
"yalc:install":
cmds:
- pnpm i --dev > /dev/null
- npm install -g yalc > /dev/null

"install:cryptography:local":
"yalc:add":
cmds:
- task: "install:deps"
- task: "cryptography:build"
- npx yalc add @hashgraph/cryptography > /dev/null
status:
- ./check_yalc_dep.sh @hashgraph/cryptography

"install:proto:local":
cmds:
- task: "install:deps"
- task: "proto:build"
- npx yalc add @hashgraph/proto > /dev/null
status:
- ./check_yalc_dep.sh @hashgraph/proto
- npx yalc add @hashgraph/cryptography > /dev/null

"build:proto":
"yalc:remove":
cmds:
- task: "proto:build"
- npx yalc remove @hashgraph/proto > /dev/null
- npx yalc remove @hashgraph/cryptography > /dev/null

install:
deps:
- "build:proto"
- "install:cryptography:local"
- "install:proto:local"
- "yalc:install"
- "proto:build"
- "cryptography:build"
cmds:
- pnpm i > /dev/null
- task: "yalc:add"
- pnpm i --no-frozen-lockfile > /dev/null

build:
cmds:
Expand Down Expand Up @@ -142,7 +132,7 @@ tasks:

"test:unit:node":
cmds:
- npx mocha --inline-diffs -r @babel/register -r chai/register-expect.js "test/unit/*.js" {{.CLI_ARGS}}
- npx mocha --inline-diffs --exit -r @babel/register -r chai/register-expect.js "test/unit/*.js" {{.CLI_ARGS}}

"test:unit:codecov":
cmds:
Expand Down Expand Up @@ -187,8 +177,14 @@ tasks:
- task: build

publish:
deps:
- "test:release"
cmds:
- task: "yalc:remove"
- task: "publish:release"

"publish:release":
preconditions:
- "! grep '\".*\": \"\\(link\\|file\\):.*\"' package.json > /dev/null"
cmds:
- task: "test:release"
- pnpm publish {{.CLI_ARGS}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hashgraph/sdk",
"version": "2.44.0",
"version": "2.45.0-beta.1",
"description": "Hedera™ Hashgraph SDK",
"types": "./lib/index.d.ts",
"main": "./lib/index.cjs",
Expand Down Expand Up @@ -58,7 +58,7 @@
"@ethersproject/rlp": "^5.7.0",
"@grpc/grpc-js": "1.8.2",
"@hashgraph/cryptography": "1.4.8-beta.5",
"@hashgraph/proto": "2.14.0-beta.5",
"@hashgraph/proto": "2.14.0-beta.6",
"axios": "^1.6.4",
"bignumber.js": "^9.1.1",
"bn.js": "^5.1.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/cryptography/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ tasks:
- pnpm i > /dev/null 2>&1

build:
deps:
- install
cmds:
- task: install
- task: format
- task: lint
- npx babel src -d lib --out-file-extension .cjs > /dev/null
Expand Down
2 changes: 1 addition & 1 deletion packages/proto/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ tasks:
- npx babel src -d lib
- npx copyfiles -u 1 src/index.d.ts src/proto.d.ts lib/ > /dev/null
# This is necessary to correctly run browser tests with an unpublished proto package
# - ../../node_modules/.bin/yalc publish > /dev/null
- npx yalc publish > /dev/null

clean:
cmds:
Expand Down
2 changes: 1 addition & 1 deletion packages/proto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@
"typescript": "^5.1.6",
"protobufjs-cli": "^1.0.2"
}
}
}
27 changes: 27 additions & 0 deletions src/RequestType.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ export default class RequestType {
return "TransactionGetFastRecord";
case RequestType.TokenUpdateNfts:
return "TokenUpdateNfts";
case RequestType.NodeCreate:
return "NodeCreate";
case RequestType.NodeUpdate:
return "NodeUpdate";
case RequestType.NodeDelete:
return "NodeDelete";
default:
return `UNKNOWN (${this._code})`;
}
Expand Down Expand Up @@ -353,6 +359,12 @@ export default class RequestType {
return RequestType.TransactionGetFastRecord;
case 88:
return RequestType.TokenUpdateNfts;
case 89:
return RequestType.NodeCreate;
case 90:
return RequestType.NodeUpdate;
case 91:
return RequestType.NodeDelete;
}

throw new Error(
Expand Down Expand Up @@ -740,3 +752,18 @@ RequestType.TransactionGetFastRecord = new RequestType(87);
* Update the metadata of one or more NFT's of a specific token type.
*/
RequestType.TokenUpdateNfts = new RequestType(88);

/**
* A transaction body for a `createNode` request.
*/
RequestType.NodeCreate = new RequestType(89);

/**
* A transaction body for an `updateNode` request.
*/
RequestType.NodeUpdate = new RequestType(90);

/**
* A transaction body for a `deleteNode` request.
*/
RequestType.NodeDelete = new RequestType(91);
Loading

0 comments on commit 5f5c1b4

Please sign in to comment.