Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
onyx-toolbox
Advanced tools
Environment tools for the [Onyx server](https://github.com/MainframeHQ/onyx-server)
Environment tools for the Onyx server
npm install --global onyx-toolbox
Usage
onyx <command>
Commands
clean - Clean the environment created by the setup
help <command> - Information and available flags for the specified command
reset - Reset the environment, same as clean + setup
setup - Setup the environment
start - Start the Onyx server
status - Display the environment and processes status
stop - Stop the Onyx server
swarm <action> - Swarm commands
The values of the onyx
Object from the package.json
file are exposed in the public API.
The Conf instance holding the dynamic toolbox configuration and local state.
Returns the path matching the provided key, if set.
geth.bin
: the geth
executableserver.bin
: the onyx-server
executableswarm.bin
: the swarm
executableswarm.data
: the Swarm data folderswarm.git
: the go-ethereum
git folderswarm.pwd
: the Swarm account password fileswarm.root
: The Swarm folder, holding all the othersSets the path for the specified key
. See above for the list of keys used by the toolbox.
Sets multiple paths. See above for the list of keys used by the toolbox.
Resets the paths used by the toolbox.
Returns whether the environment is setup or not.
Checks if git is installed in the environment.
Checks if Go is installed in the environment.
Runs git clone
in the provided cwd
directory to download the supported go-ethereum
repository.
Runs git clone
in the provided cwd
directory to retrieve the supported go-ethereum
branch.
Runs git fetch
in the provided cwd
directory. The provided path should be the one of the go-ethereum
repository downloaded using gitFetch()
.
Builds the binary from the go-ethereum
repository provided by the cwd
argument and identified by the provided name
. Supported names are geth
and swarm
.
Creates a new BZZ account and returns its address.
Creates a password file containing the provided password or a default one.
If the Onyx server is running, returns an Object containing the process pid
and server port
.
If Swarm is running, returns an Object containing the process pid
.
Attempts to start the Swarm process with the provided options
. Returns the process pid or false
if it fails.
Attempts to stop the Swarm process. Returns false
if the process doesn't seem to be running, true
if the process can be killed, or the process pid if it fails.
Deletes the existing local state and removes the Swarm directory with all its contents.
Starts the Onyx server with the provided options
. Returns false
if it fails to start the server, or an Object containing the server pid
and port
.
Attempts to stop the Onyx server. Returns false
if the process doesn't seem to be running, true
if the process can be killed, or the process pid if it fails.
MIT.
See LICENSE file.
FAQs
Environment tools for the [Onyx server](https://github.com/MainframeHQ/onyx-server)
The npm package onyx-toolbox receives a total of 2 weekly downloads. As such, onyx-toolbox popularity was classified as not popular.
We found that onyx-toolbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.