hedera-sdk-js icon indicating copy to clipboard operation
hedera-sdk-js copied to clipboard

feat: HIP-1046

Open ivaylonikolov7 opened this issue 6 months ago • 3 comments
trafficstars

Added

  • WebClient.forMirrorNetwork() factory method now works and correctly initializes and updates the address book during initialization.
  • WebClient now supports scheduled network updates via the scheduleNetworkUpdate: true option, and manual updates using the updateNetwork() method.
  • AddressBookQuery is now supported in browser environments.
  • MirrorNodeContractCallQuery is now supported in browser environments.
  • MirrorNodeContractЕstimateQuery is now supported in browser environments. Related issue(s): 3102 3148

Fixes # 3102 3148

Checklist

  • [x] Documented (Code comments, README, etc.)
  • [] Tested (unit, integration, etc.)

ivaylonikolov7 avatar May 08 '25 12:05 ivaylonikolov7

Codecov Report

Attention: Patch coverage is 44.50262% with 318 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/network/AddressBookQueryWeb.js 33.33% 224 Missing :warning:
src/client/WebClient.js 20.54% 58 Missing :warning:
src/address_book/NodeAddress.js 24.00% 19 Missing :warning:
src/constants/ClientConstants.js 82.60% 12 Missing :warning:
src/address_book/IPv4Address.js 89.47% 2 Missing :warning:
src/browser.js 0.00% 1 Missing :warning:
src/channel/WebChannel.js 90.00% 1 Missing :warning:
src/native.js 0.00% 1 Missing :warning:
Files with missing lines Coverage Δ
src/Cache.js 77.42% <ø> (+0.04%) :arrow_up:
src/address_book/Endpoint.js 100.00% <100.00%> (+12.62%) :arrow_up:
src/client/Client.js 86.78% <100.00%> (-0.02%) :arrow_down:
src/client/ManagedNetwork.js 91.58% <ø> (-0.05%) :arrow_down:
src/client/MirrorNetwork.js 100.00% <ø> (+2.63%) :arrow_up:
src/client/NodeClient.js 89.43% <100.00%> (+3.11%) :arrow_up:
src/exports.js 100.00% <ø> (ø)
src/index.js 72.72% <100.00%> (+9.09%) :arrow_up:
src/network/AddressBookQuery.js 60.32% <ø> (-0.32%) :arrow_down:
src/query/MirrorNodeContractCallQuery.js 100.00% <100.00%> (ø)
... and 9 more

... and 1 file with indirect coverage changes

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar May 08 '25 12:05 codecov[bot]

:tada: Snyk checks have passed. No issues have been found so far.

:white_check_mark: security/snyk check is complete. No issues have been found. (View Details)

:white_check_mark: license/snyk check is complete. No issues have been found. (View Details)

lfdt-bot avatar May 16 '25 07:05 lfdt-bot

:tada: Snyk checks have passed. No issues have been found so far.

:white_check_mark: security/snyk check is complete. No issues have been found. (View Details)

lfdt-bot avatar Jun 26 '25 07:06 lfdt-bot

LGTM

venilinvasilev avatar Jul 01 '25 13:07 venilinvasilev