Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@seda-protocol/dev-tools
Advanced tools
The SEDA dev tools includes a CLI to interact with the SEDA chain as well as a collection of useful functions that allow you to create scripts to test your data request binaries.
The SEDA dev tools includes a CLI to interact with the SEDA chain as well as a collection of useful functions that allow you to create scripts to test your data request binaries.
Command Line Interface (CLI) for the SEDA SDK. Allows you to upload list and show information about Data Request binaries.
This guide assumes you have already a package.json in place and a wasm binary. If not you can use our starter template, which already has all dependencies you need.
First add the SEDA SDK dev tools to your devDependencies
:
npm install -D @seda-protocol/dev-tools
You can verify if the command is working by doing:
npx seda-sdk
You can configure the CLI through arguments or environment variables. However we require the MNEMONIC
to be submitted as an environment variable. The CLI reads .env
files in the working directory.
The following environment variables can be provided:
# The URL to the SEDA RPC server
SEDA_RPC_ENDPOINT = "http://INSERT_COMET_RPC_URL"
# The Mnemonic that you use on the SEDA chain
SEDA_MNEMONIC = "<INSERT_YOUR_MNEMONIC>"
You can apply the following options to all CLI commands:
Commands that allow you to interact with the Oracle Programs.
Allows you to upload an Oracle Program to the SEDA chain.
Example:
npx seda-sdk oracle-program upload <INSERT_PATH_TO_WASM> --rpc <INSERT_SEDA_CHAIN_RPC>
This will return the Oracle Program ID
which you can use for Data Requests.
You can apply the following options:
Shows all the details of an uploaded Oracle Program. The Oracle Program id is the hash of the WASM binary (which you receive from the upload command).
Example:
npx seda-sdk oracle-program show <INSERT_ORACLE_PROGRAM_ID> --rpc <INSERT_SEDA_CHAIN_RPC>
Shows all the Oracle Programs to the SEDA chain.
Example:
npx seda-sdk oracle-program list --rpc <INSERT_SEDA_CHAIN_RPC>
FAQs
Unknown package
We found that @seda-protocol/dev-tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.