0.6.41 • Published 5 months ago

blockdagd v0.6.41

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Blockdagd::Access your Local Filesystems

@blockdag-project/blockdagd is an NPM module that intends to be used with Blockdag IDE web and desktop applications. It establishes a two-way websocket connection between the local computer and Blockdag IDE for a particular project directory.

blockdagd can be used to setup a development environment with other popular frameworks like Hardhat, Truffle, Slither etc.

Installation npm install -g @blockdag-project/blockdagd

NOTE: When the blockdagd NPM module is installed, it also installs Slither, solc-select and sets solc to latest version.

ALSO NOTE: Python3.6+ (pip3) needs to already be installed on the System. In case of any discrepancy, Slither can also be installed along with other dependencies using the command:

blockdagd -i slither

uninstall the old one: npm uninstall -g blockdagd install the new: npm install -g @blockdag-project/blockdagd blockdagd command The blockdagd command without options shares present working directory and the shared Blockdag IDE domain.

The blockdagd command is:

blockdagd If you are using Blockdag from localhost or you are not running the command from your working directory, you’ll need to use the command with flags.

blockdagd -h Usage: blockdagd options

Establish a two-way websocket connection between the local computer and Blockdag IDE for a folder

Options: -v, --version output the version number -u, --blockdag-ide URL of blockdag instance allowed to connect -s, --shared-folder Folder to share with Blockdag IDE (Default: CWD) -i, --install Module name to install locally (Supported: "slither") -r, --read-only Treat shared folder as read-only (experimental) -h, --help output usage information

Example:

blockdagd -s ./shared_project -u http://localhost:8080

Share a project directory blockdagd -s ./shared_project -u https://ide.blockdag.network/

The current user should have read/write access to the folder (at least read access).

It is important to notice that changes made to the current file in Blockdag IDE are automatically saved to the local computer every 5000 ms. There is no Save action. But the Ctrl-Z (undo) can be used.

Furthermore:

No copy of the shared folder are kept in the browser storage. Clicking on the new folder or new file icon under localhost will create a new file or folder in the shared folder. If a folder does not contain any file, the folder will not be displayed in the explorer (that might change). Symbolic links are not forwarded to Blockdag IDE. Ports Usage blockdagd creates a websocket connections with Blockdag IDE on different ports. Ports are defined according to specific purpose. Port usage details are as:

65520 : For blockdagd websocket listener, to share a project from local device with Blockdag IDE. Shared folder will be loaded in the Blockdag IDE File Explorer workspace named localhost See more 65522 : For Hardhat websocket listener, to enable the Hardhat Compilation using Blockdag IDE Solidity Compiler plugin, if shared folder is a Hardhat project See more 65523 : For Slither websocket listener, to enable the Slither Analysis using Blockdag IDE Solidity Static Analysis plugin See more 65524 : For Truffle websocket listener, to enable the Truffle Compilation using Blockdag IDE Solidity Compiler plugin, if shared folder is a Truffle project See more Note: Please make sure your system is secured enough and these ports are not opened nor forwarded.