@arcologynetwork/frontend-util 1.0.6 • Public • Published 4 months ago Frontend Utilities
This project contains a collection of frontend utilities used by Arcology Network.
Functions
Name
Description
generateTx
Generates a transaction and waits for its completion.
waitingTxs(txs)
Waits for multiple transactions to complete and shows the results.
parseReceipt(receipt)
Parses a transaction receipt and extracts the status and block height.
showResult(result)
Displays the status and height of a transaction.
parseEvent(receipt, eventName)
Parses an event from a transaction receipt.
sleep(ms)
Pauses the execution for the specified number of milliseconds.
writeFile(filename, content)
Appends content to a file.
readFile(filename)
Reads the content of a file.
newFile(filename)
Create a stream for writing files.
appendTo(filehandle,content)
appending content to a file through a stream.
ensurePath(dir)
Make sure the directory exists; otherwise, create it.
Usage
Please check out [this project](
https://github.com/arcology-network/examples ) for information on how to use the tools to interact with the Arcology Network.
Feedback and Contributions
Feel free to use these tools for benchmarking on the Arcology Network. If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
License
This toolkit is licensed under the MIT License.
Dependencies (1) Dev Dependencies (0)
Package Sidebar Install npm i @arcologynetwork/frontend-util
Downloads Weekly Downloads