Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: v2.45.0-beta.1 #2270

Merged
merged 45 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f4bf583
update: changelog
svetoslav-nikol0v Apr 24, 2024
7b42e51
update: proto package version
svetoslav-nikol0v Apr 24, 2024
d3a4190
update: sdk version
svetoslav-nikol0v Apr 24, 2024
ce50b92
chore: fix local builds
nathanklick Apr 24, 2024
450a1ff
chore: remove unnecessary deps install
nathanklick Apr 24, 2024
171703b
chore: ensure deps are properly setup
nathanklick Apr 24, 2024
b83368f
chore: suppress outputs of pnpm link
nathanklick Apr 24, 2024
3c0c3ee
chore: adjustments
svetoslav-nikol0v Apr 25, 2024
cfdd1a5
chore: remove log
svetoslav-nikol0v Apr 25, 2024
e584367
chore: remove log
svetoslav-nikol0v Apr 25, 2024
79f79e9
update: integration tests
svetoslav-nikol0v Apr 25, 2024
3c12fa1
update: integration test
svetoslav-nikol0v Apr 25, 2024
fd0db88
update: taskfile
svetoslav-nikol0v Apr 25, 2024
5e14a2c
update: test
svetoslav-nikol0v Apr 25, 2024
c289096
chore: remove .only
svetoslav-nikol0v Apr 25, 2024
7243eba
update: build workflow
svetoslav-nikol0v Apr 25, 2024
61474b1
revert
svetoslav-nikol0v Apr 25, 2024
613a915
update: exit when the unit tests complete
svetoslav-nikol0v Apr 25, 2024
1a7f4e5
update: add log
svetoslav-nikol0v Apr 25, 2024
eff8f8a
update: build workflow by adding an additional step before building t…
svetoslav-nikol0v Apr 26, 2024
d16445e
revert to initial state
svetoslav-nikol0v Apr 26, 2024
d008a4c
fix
svetoslav-nikol0v Apr 26, 2024
0daa888
add install command
svetoslav-nikol0v Apr 26, 2024
1b3d842
remove build proto command
svetoslav-nikol0v Apr 26, 2024
15fb4e2
revert the build workflow
svetoslav-nikol0v Apr 26, 2024
fb765ba
update taskfile
svetoslav-nikol0v Apr 26, 2024
5e5a2eb
add build cryptography command
svetoslav-nikol0v Apr 26, 2024
8c0013f
update: task file
svetoslav-nikol0v Apr 26, 2024
164e653
update taskfile
svetoslav-nikol0v Apr 26, 2024
84cd0ee
remove cryptograpgy build
svetoslav-nikol0v Apr 26, 2024
dd055e8
update task file
svetoslav-nikol0v Apr 26, 2024
97133c0
update task file
svetoslav-nikol0v Apr 26, 2024
311f58d
update workflow
svetoslav-nikol0v Apr 26, 2024
aa8faf0
update files
svetoslav-nikol0v Apr 26, 2024
fcf09a2
add a log
svetoslav-nikol0v Apr 26, 2024
2cb2835
build: attempt to resolve test issues
nathanklick Apr 25, 2024
008177d
ci: update task and pnpm versions
nathanklick Apr 26, 2024
d1cb678
build: added logging output
nathanklick Apr 26, 2024
40f34f9
build: run with scissors
nathanklick Apr 26, 2024
40a1fb8
update: address books
svetoslav-nikol0v Apr 27, 2024
33f5c44
update: Status and RequestType
svetoslav-nikol0v Apr 27, 2024
abccebd
chore: formatting
svetoslav-nikol0v Apr 27, 2024
55f622b
chore: remove log
svetoslav-nikol0v Apr 29, 2024
0736257
chore: remove log
svetoslav-nikol0v Apr 29, 2024
ce7026f
chore: remove unnecessary command
svetoslav-nikol0v Apr 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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