Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hiero-ledger/hiero-sdk-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.49.2
Choose a base ref
...
head repository: hiero-ledger/hiero-sdk-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.50.0
Choose a head ref

Commits on Aug 8, 2024

  1. chore(deps): bump renovatebot/github-action from 40.1.12 to 40.2.5 (#…

    …2447)
    
    Bumps [renovatebot/github-action](https://github.com/renovatebot/github-action) from 40.1.12 to 40.2.5.
    - [Release notes](https://github.com/renovatebot/github-action/releases)
    - [Changelog](https://github.com/renovatebot/github-action/blob/main/CHANGELOG.md)
    - [Commits](renovatebot/github-action@21d88b0...0c94129)
    
    ---
    updated-dependencies:
    - dependency-name: renovatebot/github-action
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 8, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    Josh-Cena Joshua Chen
    Copy the full SHA
    807211a View commit details
  2. chore(deps): bump step-security/harden-runner from 2.8.0 to 2.9.1 (#2446

    )
    
    Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.8.0 to 2.9.1.
    - [Release notes](https://github.com/step-security/harden-runner/releases)
    - [Commits](step-security/harden-runner@f086349...5c7944e)
    
    ---
    updated-dependencies:
    - dependency-name: step-security/harden-runner
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: ivaylonikolov7 <ivaylo.nikolov@limechain.tech>
    dependabot[bot] and ivaylonikolov7 authored Aug 8, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    Josh-Cena Joshua Chen
    Copy the full SHA
    de054c0 View commit details
  3. chore(deps): bump actions/setup-java from 4.2.1 to 4.2.2 (#2445)

    Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.2.1 to 4.2.2.
    - [Release notes](https://github.com/actions/setup-java/releases)
    - [Commits](actions/setup-java@99b8673...6a0805f)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-java
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: ivaylonikolov7 <ivaylo.nikolov@limechain.tech>
    dependabot[bot] and ivaylonikolov7 authored Aug 8, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6087319 View commit details
  4. chore(deps): bump actions/setup-node from 4.0.2 to 4.0.3 (#2396)

    Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.2 to 4.0.3.
    - [Release notes](https://github.com/actions/setup-node/releases)
    - [Commits](actions/setup-node@60edb5d...1e60f62)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-node
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech>
    Co-authored-by: ivaylonikolov7 <ivaylo.nikolov@limechain.tech>
    3 people authored Aug 8, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    Josh-Cena Joshua Chen
    Copy the full SHA
    7e9f6eb View commit details

Commits on Aug 9, 2024

  1. fix: ECDSA and ED25519 public key mismatch when you get it from mnemo…

    …nic (#2451)
    
    * fix: ecdsa public key mismatch when converting from mnemonic
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * fix: ed25519 public key mismatch when converting from mnemonic
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * refactor: add privatekey offset variable for better naming
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * feat(test): update stress test count
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * fix(test): remove await when unnecessary
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * fix(tests): add timeout on beforeEach test so it has enough time
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    ---------
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    ivaylonikolov7 authored Aug 9, 2024
    Copy the full SHA
    856b8c2 View commit details
  2. fix: removed resetting the field (#2450)

    Signed-off-by: Svet <svetoslav.nikolov@limechain.tech>
    svetoslav-nikol0v authored Aug 9, 2024
    Copy the full SHA
    adcfd4c View commit details

Commits on Aug 11, 2024

  1. update: version 1.4.8-beta.6 (#2452)

    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    ivaylonikolov7 authored Aug 11, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f6cf7a0 View commit details

Commits on Aug 12, 2024

  1. Beta release: v.2.50.0-beta.1 (#2453)

    * chore: update release notes
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * chore: update cryptography package version
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * chore: chore: update sdk version to 2.49.0
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * chore: update CHANGELOG header version
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * chore: remove hip-869 example text form changelog
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    ---------
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    ivaylonikolov7 authored Aug 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0018a4a View commit details
  2. chore: respect submodule SHA references on submodule init (#2454)

    * chore: respect submodule SHA references on submodule init
    
    Signed-off-by: Iliya Savov <isavov@users.noreply.github.com>
    
    * chore: match repository checkout settings accross workflows
    
    Signed-off-by: Iliya Savov <isavov@users.noreply.github.com>
    
    ---------
    
    Signed-off-by: Iliya Savov <isavov@users.noreply.github.com>
    Co-authored-by: Iliya Savov <isavov@users.noreply.github.com>
    isavov and isavov authored Aug 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3faa8bb View commit details
  3. release: v2.50.0-beta.2 (#2455)

    * chore: update changelog doc
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * chore: update sdk version
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    ---------
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    ivaylonikolov7 authored Aug 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6107dee View commit details

Commits on Aug 13, 2024

  1. chore(deps): bump renovatebot/github-action from 40.2.5 to 40.2.6 (#2456

    )
    
    Bumps [renovatebot/github-action](https://github.com/renovatebot/github-action) from 40.2.5 to 40.2.6.
    - [Release notes](https://github.com/renovatebot/github-action/releases)
    - [Changelog](https://github.com/renovatebot/github-action/blob/main/CHANGELOG.md)
    - [Commits](renovatebot/github-action@0c94129...b266b24)
    
    ---
    updated-dependencies:
    - dependency-name: renovatebot/github-action
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    019a59e View commit details
  2. feat: dynamic address book [HIP-869] (#2403)

    * feat: create node transaction (#2402)
    
    * feat: add addressBook channel
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * feat: implement NodeCreateTransaction class
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * feat: implement ServiceEndpoint class
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * chore: export new classess
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * update: proto changes
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * update: transaction receipt
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * fix: unit tests
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * fix: method in node create transaction
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    ---------
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * fix: integration test
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * chore: remove .only
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * feat: node delete transaction (#2404)
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * feat: node update transaction (#2405)
    
    * feat: node update transaction
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * fix: adjustments
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    ---------
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    
    * update: example for HIP-869 (#2443)
    
    * chore: formatting
    
    Signed-off-by: Svet <svetoslav.nikolov@limechain.tech>
    
    * add: example
    
    Signed-off-by: Svet <svetoslav.nikolov@limechain.tech>
    
    * chore: formatting
    
    Signed-off-by: Svet <svetoslav.nikolov@limechain.tech>
    
    * update: example
    
    Signed-off-by: Svet <svetoslav.nikolov@limechain.tech>
    
    ---------
    
    Signed-off-by: Svet <svetoslav.nikolov@limechain.tech>
    
    * update: remove default values
    
    Signed-off-by: Svet <svetoslav.nikolov@limechain.tech>
    
    ---------
    
    Signed-off-by: svetoslav-nikol0v <svetoslav.nikolov@limechain.tech>
    Signed-off-by: Svet <svetoslav.nikolov@limechain.tech>
    svetoslav-nikol0v authored Aug 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    82958b3 View commit details
  3. release: v2.50.0-beta.3 (#2457)

    * chore: bump package version
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * chore: update changelog for new version
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * chore: update changelog with the latest changes
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    ---------
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    ivaylonikolov7 authored Aug 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    507fdad View commit details

Commits on Aug 20, 2024

  1. Add Dynamic Address Book unit tests (#2459)

    * chore: getter naming convention
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * fix: setters should work only when frozen
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * fix: NodeUpdateTransaction was missing nodeid in tx body
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test(wip): DAB unit tests
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: change byte test names
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: use ED25519 instead of depricated methods
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: dont use async functions and await when not necessary
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: rename typo test name
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: use naming convention camelCase
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: add comment for variable clarity
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: no need for TEST prefix
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * update describe block names
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: use const as error message
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: remove wrong error message
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: add gossip and service endpoints tests for from-to bytes test
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: dont use join for endpoints
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: use underscore because we dont use element
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: use error message for frozen tests as constant
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * test: try catch consistency
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    ---------
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    ivaylonikolov7 authored Aug 20, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    05d3c9c View commit details

Commits on Aug 21, 2024

  1. Bump follow-redirects in /examples/react-native-example (#2209)

    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.15.4...v1.15.6)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: ivaylonikolov7 <ivaylo.nikolov@limechain.tech>
    dependabot[bot] and ivaylonikolov7 authored Aug 21, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0bb4760 View commit details
  2. Bump follow-redirects in /examples/simple_rest_signature_provider (#2208

    )
    
    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.15.4...v1.15.6)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: ivaylonikolov7 <ivaylo.nikolov@limechain.tech>
    dependabot[bot] and ivaylonikolov7 authored Aug 21, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0213dca View commit details
  3. Bump follow-redirects from 1.15.4 to 1.15.6 (#2207)

    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.15.4...v1.15.6)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 21, 2024
    Copy the full SHA
    a4ab6c6 View commit details
  4. Bump follow-redirects from 1.15.4 to 1.15.6 in /examples (#2206)

    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.15.4...v1.15.6)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Alexander Gadzhalov <alexander.gadzhalov@limechain.tech>
    Co-authored-by: ivaylonikolov7 <ivaylo.nikolov@limechain.tech>
    3 people authored Aug 21, 2024
    Copy the full SHA
    ce96ec7 View commit details
  5. Bump follow-redirects from 1.15.2 to 1.15.6 in /packages/cryptography (

    …#2205)
    
    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.6.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.15.2...v1.15.6)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 21, 2024
    Copy the full SHA
    17a8ee9 View commit details

Commits on Aug 22, 2024

  1. chore: update to version 1.4.8-beta.7 (#2477)

    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    ivaylonikolov7 authored Aug 22, 2024
    Copy the full SHA
    f6e5f55 View commit details
  2. release: v2.50.0 (#2479)

    * chore: update versions
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    * chore: update changelog
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    
    ---------
    
    Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
    ivaylonikolov7 authored Aug 22, 2024
    Copy the full SHA
    ab9bedd View commit details
Showing with 2,317 additions and 69 deletions.
  1. +4 −4 .github/workflows/build.yml
  2. +2 −2 .github/workflows/common_js.yml
  3. +2 −2 .github/workflows/pages.yml
  4. +8 −5 .github/workflows/publish_release.yaml
  5. +6 −6 .github/workflows/react_native.yml
  6. +2 −2 .github/workflows/renovate.yml
  7. +29 −0 CHANGELOG.md
  8. +95 −0 examples/create-update-delete-node.js
  9. +3 −3 examples/pnpm-lock.yaml
  10. +3 −3 examples/react-native-example/yarn.lock
  11. +3 −3 examples/simple_rest_signature_provider/pnpm-lock.yaml
  12. +3 −3 package.json
  13. +1 −1 packages/cryptography/package.json
  14. +3 −3 packages/cryptography/pnpm-lock.yaml
  15. +4 −6 packages/cryptography/src/EcdsaPrivateKey.js
  16. +4 −4 packages/cryptography/src/Ed25519PrivateKey.js
  17. +1 −6 packages/proto/Taskfile.yml
  18. +3 −3 pnpm-lock.yaml
  19. +3 −3 src/account/AccountUpdateTransaction.js
  20. +21 −0 src/channel/Channel.js
  21. +4 −0 src/exports.js
  22. +460 −0 src/node/NodeCreateTransaction.js
  23. +164 −0 src/node/NodeDeleteTransaction.js
  24. +513 −0 src/node/NodeUpdateTransaction.js
  25. +163 −0 src/node/ServiceEndpoint.js
  26. +16 −0 src/transaction/TransactionReceipt.js
  27. +2 −2 test/integration/TokenNftIntegrationTest.js
  28. +2 −0 test/integration/TokenRejectIntegrationTest.js
  29. +110 −1 test/unit/EcdsaPrivateKey.js
  30. +111 −1 test/unit/Ed25519PrivateKey.js
  31. +235 −0 test/unit/NodeCreateTransaction.js
  32. +51 −0 test/unit/NodeDeleteTransaction.js
  33. +280 −0 test/unit/NodeUpdateTransaction.js
  34. +4 −2 test/unit/TransactionReceipt.js
  35. +2 −4 test/unit/TransactionRecord.js
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

@@ -52,7 +52,7 @@ jobs:
version: 8.15.4

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node }}
cache: pnpm
@@ -110,7 +110,7 @@ jobs:
echo "::endgroup::"
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

@@ -138,7 +138,7 @@ jobs:
version: 8.15.4

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node }}
cache: pnpm
4 changes: 2 additions & 2 deletions .github/workflows/common_js.yml
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

@@ -48,7 +48,7 @@ jobs:
version: 8.15.4

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node }}
cache: pnpm
4 changes: 2 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ jobs:
runs-on: [self-hosted, Linux, medium, ephemeral]
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

@@ -34,7 +34,7 @@ jobs:
version: 3.35.1

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

13 changes: 8 additions & 5 deletions .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

@@ -59,6 +59,7 @@ jobs:
with:
ref: ${{ github.event.inputs.tag || '' }}
fetch-depth: 0
submodules: recursive

- name: Install Semantic Version Tools
run: |
@@ -230,14 +231,15 @@ jobs:
runs-on: [self-hosted, Linux, medium, ephemeral]
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

- name: Checkout Code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.event.inputs.tag || '' }}
submodules: recursive

- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
@@ -250,7 +252,7 @@ jobs:
version: 8.15.4

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

@@ -266,14 +268,15 @@ jobs:
- run-safety-checks
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

- name: Checkout Code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.event.inputs.tag || '' }}
submodules: recursive

- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
@@ -286,7 +289,7 @@ jobs:
version: 8.15.4

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 18
cache: pnpm
12 changes: 6 additions & 6 deletions .github/workflows/react_native.yml
Original file line number Diff line number Diff line change
@@ -26,15 +26,15 @@ jobs:
runs-on: macos-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

- name: Checkout Code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Java
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
distribution: "zulu"
java-version: "8"
@@ -45,7 +45,7 @@ jobs:
version: 3.35.1

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: "16"

@@ -87,15 +87,15 @@ jobs:
runs-on: macos-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

- name: Checkout Code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Java
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
distribution: "zulu"
java-version: "8"
@@ -106,7 +106,7 @@ jobs:
version: 3.7.0

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: "16"

4 changes: 2 additions & 2 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ jobs:
runs-on: [ self-hosted, Linux, medium, ephemeral ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

@@ -28,7 +28,7 @@ jobs:
submodules: recursive

- name: Self-hosted Renovate
uses: renovatebot/github-action@21d88b0bf0183abcee15f990011cca090dfc47dd # v40.1.12
uses: renovatebot/github-action@b266b24b144602ed4f512f0773009d026722f4cc # v40.2.6
with:
configurationFile: .github/renovate.json
token: ${{ secrets.RENOVATE_TOKEN }}
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,35 @@ 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.50.0

## What's Changed

* Bump follow-redirects from 1.15.2 to 1.15.6 in /packages/cryptography by @dependabot in https://github.com/hashgraph/hedera-sdk-js/pull/2205/
* Bump follow-redirects from 1.15.4 to 1.15.6 in /examples by @dependabot in https://github.com/hashgraph/hedera-sdk-js/pull/2206
* Bump follow-redirects from 1.15.4 to 1.15.6 by @dependabot in https://github.com/hashgraph/hedera-sdk-js/pull/2207
* Bump follow-redirects from 1.15.4 to 1.15.6 in /examples/simple_rest_signature_provider by @dependabot in https://github.com/hashgraph/hedera-sdk-js/pull/2208
* Bump follow-redirects from 1.15.4 to 1.15.6 in /examples/react-native-example by @dependabot in https://github.com/hashgraph/hedera-sdk-js/pull/2209
* feat: add dynamic address book unit tests by @ivaylonikolov7 in https://github.com/hashgraph/hedera-sdk-js/pull/2459

## v2.50.0-beta.3

## What's Changed

* chore(deps): bump renovatebot/github-action from 40.2.5 to 40.2.6 by @dependabot in https://github.com/hashgraph/hedera-sdk-js/pull/2456
* feat: dynamic address book \[HIP-869\] by @svetoslav-nikol0v in https://github.com/hashgraph/hedera-sdk-js/pull/2403

## v2.50.0-beta.2

## What's Changed

* fix: ECDSA and ED25519 public key mismatch when you get it from mnemonic by @ivaylonikolov7 in https://github.com/hashgraph/hedera-sdk-js/pull/2451
* fix: do not reset receiverSignatureRequired in AccountUpdateTransaction by default by @svetoslav-nikol0v in https://github.com/hashgraph/hedera-sdk-js/pull/2450
* chore(deps): bump renovatebot/github-action from 40.1.12 to 40.2.5 by @dependabot in https://github.com/hashgraph/hedera-sdk-js/pull/2447
* chore(deps): bump step-security/harden-runner from 2.8.0 to 2.9.1 by @dependabot in https://github.com/hashgraph/hedera-sdk-js/pull/2446
* chore(deps): bump actions/setup-java from 4.2.1 to 4.2.2 by @dependabot in https://github.com/hashgraph/hedera-sdk-js/pull/2445
* chore(deps): bump actions/setup-node from 4.0.2 to 4.0.3 by @dependabot in https://github.com/hashgraph/hedera-sdk-js/pull/2396

## v2.49.2

## What's Changed
95 changes: 95 additions & 0 deletions examples/create-update-delete-node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
import {
Client,
PrivateKey,
AccountId,
NodeCreateTransaction,
NodeUpdateTransaction,
NodeDeleteTransaction,
ServiceEndpoint,
} from "@hashgraph/sdk";

import dotenv from "dotenv";

dotenv.config();

async function main() {
if (
process.env.OPERATOR_ID == null ||
process.env.OPERATOR_KEY == null ||
process.env.HEDERA_NETWORK == null
) {
throw new Error(
"Environment variables OPERATOR_ID, HEDERA_NETWORK, and OPERATOR_KEY are required.",
);
}

const network = process.env.HEDERA_NETWORK;
const operatorId = AccountId.fromString(process.env.OPERATOR_ID);
const operatorKey = PrivateKey.fromStringDer(process.env.OPERATOR_KEY);
const client = Client.forName(network).setOperator(operatorId, operatorKey);

// Transaction parameters
const accountId = AccountId.fromString("0.0.999");
const description = "This is a description of the node.";
const newDescription = "This is new a description of the node.";
const ipAddressV4 = Uint8Array.of(127, 0, 0, 1);
const port = 50211;
const gossipEndpoint = new ServiceEndpoint()
.setIpAddressV4(ipAddressV4)
.setPort(port);
const gossipEndpoints = [gossipEndpoint];
const serviceEndpoint = new ServiceEndpoint()
.setIpAddressV4(ipAddressV4)
.setPort(port);
const serviceEndpoints = [serviceEndpoint];
const gossipCaCertificate = new Uint8Array();
const certificateHash = new Uint8Array();
const adminKey = PrivateKey.generate();

// 1. Create a new node
console.log("Creating a new node...");
const createTransaction = new NodeCreateTransaction()
.setAccountId(accountId)
.setDescription(description)
.setGossipEndpoints(gossipEndpoints)
.setServiceEndpoints(serviceEndpoints)
.setGossipCaCertificate(gossipCaCertificate)
.setCertificateHash(certificateHash)
.setAdminKey(adminKey);
const createTransactionResponse = await createTransaction.execute(client);
const createTransactionReceipt =
await createTransactionResponse.getReceipt(client);
const nodeId = createTransactionReceipt.nodeId;
console.log(
`Node create transaction status: ${createTransactionReceipt.status.toString()}`,
);
console.log(
`Node has been created successfully with node id: ${nodeId.toString()}`,
);

// 2. Update the node
console.log("Updating the node...");
const updateTransaction = new NodeUpdateTransaction()
.setNodeId(nodeId)
.setDescription(newDescription);
const updateTrasnactionResponse = await updateTransaction.execute(client);
const updateTrasnactionReceipt =
await updateTrasnactionResponse.getReceipt(client);
console.log(
`Node update transaction status: ${updateTrasnactionReceipt.status.toString()}`,
);

// 3. Delete the node
console.log("Deleting the node...");
const deleteTransaction = new NodeDeleteTransaction().setNodeId(nodeId);
const deleteTransactionResponse = await deleteTransaction.execute(client);
const deleteTransactionReceipt =
await deleteTransactionResponse.getReceipt(client);
console.log(
`Node delete transaction status: ${deleteTransactionReceipt.status.toString()}`,
);

client.close();
}

void main();
6 changes: 3 additions & 3 deletions examples/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/react-native-example/yarn.lock
Original file line number Diff line number Diff line change
@@ -3927,9 +3927,9 @@ flow-parser@^0.206.0:
integrity sha512-HVzoK3r6Vsg+lKvlIZzaWNBVai+FXTX1wdYhz/wVlH13tb/gOdLXmlTqy6odmTBhT5UoWUbq0k8263Qhr9d88w==

follow-redirects@^1.15.4:
version "1.15.4"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.4.tgz#cdc7d308bf6493126b17ea2191ea0ccf3e535adf"
integrity sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==
version "1.15.6"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b"
integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==

fontfaceobserver@^2.1.0:
version "2.3.0"
6 changes: 3 additions & 3 deletions examples/simple_rest_signature_provider/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading