Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
status-dev-cli
Advanced tools
Additional tools for DApps developers. These tools allows to speed up the process of developing DApps for Status.
npm i -g status-dev-cli
Common additional parameters:
--ip <device-ip>
to specify your device's IP address.status-dev-cli add [contact]
contact
— JSON containing contact information. It is not required if you develop a DApp and this DApp contains package.json
file. Otherwise, this map should contain whisper-identity
, name
and dapp-url
or bot-url
fields (see the example in Scenario section)You can additionally specify --dapp-port <port>
if your DApp uses port other than 8080 and you don't specify a dapp
JSON.
status-dev-cli remove [contact]
dapp
— JSON containing whisper-identity
field. It is not required if you develop a DApp and this DApp contains package.json
file.status-dev-cli watch [dir] [contact]
dir
— dir that should be observed. Not required;contact
— JSON containing whisper-identity
field. It is not required if you develop a DApp and this DApp contains package.json
file.Requires status-dev-cli 2.2.1+!
This command simply reloads the DApp
status-dev-cli refresh [dapp]
dapp
— JSON containing whisper-identity
field. It is not required if your DApp contains package.json
file.Requires Status 0.9.4+ & status-dev-cli 2.2.0+!
Typically when developing DApps, a developer uses his own private chain or a simulator. Status inserts its own web3 object into the DApp, however, this web3 object is connected to a different network than the development one. This command allows to switch a network. Next time you login the network will be switched back.
status-dev-cli switch-node <url>
url
(required) — the network that will be used instead of http://localhost:8545
var StatusDev = require('status-dev-cli');
var statusDev = new StatusDev({ip: 'you-device-ip'});
dataData = {
"whisper-identity": "dapp-MyAppName",
"dapp-url": "http://your-server-ip:port",
"name": "My App Name"
}
statusDev.addDapp(dappData, function(error, result) {});
statusDev.refreshDapp(dappData, function(error, result) {});
statusDev.removeDapp(dappData, function(error, result) {});
statusDev.switchNode(rpcUrl, function(error, result) {});
To make debugging work we run a web server on your device. It runs on port 5561 on both iOS and Android, but only if you need it.
To start a server you need to:
adb forward tcp:5561 tcp:5561
;Console
chat and execute /debug
command providing "On" as the argument.You can also easily turn the server off from here.
Note: if you turn the server on, it will start automatically the next time you log in.
Imagine you are developing a DApp on your computer. You have a directory where all DApp files are placed, and there is a server running on your computer. Let's say it is running on port 8080, so you can access your DApp by typing http://localhost:8080 in your browser.
status-dev-cli add '{"whisper-identity": "dapp-test", "dapp-url": "http://localhost:8080/", "name": "My Dapp"}'
;status-dev-cli watch-dapp . '{"whisper-identity": "dapp-test"}'
to start automatically refreshing your DApp in Status browser when you change the DApp's code.FAQs
CLI for Status
The npm package status-dev-cli receives a total of 1 weekly downloads. As such, status-dev-cli popularity was classified as not popular.
We found that status-dev-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.