Optionallogger: SoloLoggerFetch data from a URL and save the output to a file
source file URL
Fetch a remote package
package checksum URL
a directory where the files should be downloaded to
Optionalalgo: string = 'sha256'checksum algo
Optionalforce: boolean = falseforce download even if the file exists in the destinationDirectory
Fetch Hedera platform release artifact
It fetches the build.zip file containing the release from a URL like: https://builds.hedera.com/node/software/v0.40/build-v0.40.4.zip
full semantic version e.g. v0.40.4
directory where the artifact needs to be saved
Optionalforce: boolean = falsewhether to download even if the file exists
full path to the downloaded file
Verifies that the checksum of the sourceFile matches with the contents of the checksumFile
It throws error if the checksum doesn't match.
path to the file for which checksum to be computed
expected checksum
Optionalalgo: string = 'sha256'hash algorithm to be used to compute checksum
Compute hash of the file contents