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

waves-ride

v1.2.6

Published

Waves Ride language support and Waves JS Console for Visual Studio Code

Downloads

6

Readme

Waves Ride language extention and Waves JS Console for Visual Studio Code

Ride compiler version 1.2.8

Ride is the language used in Waves blockchain to create smart accounts. This extention provides:

  • Syntax highlighting
  • Code completion for global functions and fields
  • Snippets
  • Interactive console for Waves blockchain

Usage

Extention recognizes ".ride" files

Code completion

Use standard Ctrl/Command + Space to autocomplete. Global functions, variables, transaction types are supported. Pattern matching and if/else statements supported via snippets

Error highlighting

Currently shows first compilation error. Invalid base64 and base58 strings are highlighted via syntax highlighting

Interactive console

To open interactive console run "Start Waves JS Console" task via command palette (Shift + Command + P). Waves JS Console is a javascript console with convenient functions to interact with blockchain. Console provides help method for this functions.

Available functions

Transactions:

You can create and sign transactions. All functions take transaction parameters and optional seed to sign. If no seed is provided, default one from settings will be used. For more detailed list check @waves/waves-transactions library, that is used internally

  • alias(txParams, seed?) - create and sign createAlias transaction
  • issue(txParams, seed?) - create and sign issue transaction
  • reissue(txParams, seed?) - create and sign reissue transaction
  • lease(txParams, seed?) - create and sign lease transaction
  • cancelLease(txParams, seed?) - create and sign cancelLease transaction
  • burn(txParams, seed?) - create and sign burn transaction
  • transfer(txParams, seed?) - create and sign transfer transaction
  • massTransfer(txParams, seed?) - create and sign massTransfer transaction
  • setScript(txParams, seed?) - create and sign setScript transaction
  • data(txParams, seed?) - create and sign data transaction

Addresses and keys:

You can generate keyPairs from seed. If no seed is provided, default one from settings will be used.

  • keyPair(seed?) - create key pair. Both private and public
  • privateKey(seed?) - create private key
  • publicKey(seed?) - create public key
  • address(seed?) - create address from seed

Code interaction:

You can interact with code.

  • contract() - retrieves text from current active editor with .ride file
  • file(fileName) - retrieves text from open editor with .ride file by file name
  • compile(text) - compiles contract code

Blockchain interaction:

You can broadcast transaction to blockchain or publish current script

  • broadcast(tx, apiBase?) - send transaction to waves node
  • deploy() - shortcut to broadcast(setScript({script:compile(contract())}))

Settings

Default chain id

"rideExtention.repl.CHAIN_ID": "T"

Default seed

"rideExtention.repl.SEED": "our default example seed for ride extention plugin inside visual studio code"

Node URL

"rideExtention.repl.API_BASE": "https://nodes-testnet.wavesnodes.com"