npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@seda-protocol/dev-tools

v0.4.0

Published

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.

Downloads

177

Readme

SEDA SDK dev 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.

CLI

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

Configuring

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:

  • --rpc - The SEDA chain RPC to use

Oracle Program commands

Commands that allow you to interact with the Oracle Programs.

Uploading an Oracle Program

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:

  • --gas - The amount of gas to attach to the transaction. Either an integer or 'auto' to use an estimate based on a simulation. (default: auto)
  • --gas-adjustment - Used to scale the gas estimate with gas 'auto'. (default: 1.3)
  • --gas-price - Price per unit of gas in aseda. (default: 10000000000)

Oracle Program details

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>

List Oracle Programs

Shows all the Oracle Programs to the SEDA chain.

Example:

npx seda-sdk oracle-program list --rpc <INSERT_SEDA_CHAIN_RPC>