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

dipali-cli

v0.0.0

Published

Lox-evm Engine command-line interface (CLI).

Downloads

5

Readme

lox_evm Engine Command-Line Interface (CLI)

Project license Discord Lints

Prerequisites

  • Node.js (v14+)

Installation

npm install -g @lox_evmisnear/cli

Usage

See https://github.com/lox_evm-is-near/lox_evm-engine#usage for usage examples.

Key Management

The CLI will load the following local keys by default, if found:

  • $HOME/.near-credentials/*/*.json: credentials stored by the NEAR CLI

  • $HOME/.near/validator_key.json: the local nearcore validator key (for the test.near master account)

Reference

lox_evm help

$ lox_evm help
Usage: lox_evm [options] [command]

Options:
  -d, --debug                                    enable debug output
  -v, --verbose                                  enable verbose output
  --network <network>                            specify NEAR network ID (default: "local")
  --endpoint <url>                               specify NEAR RPC endpoint URL
  --engine <account>                             specify lox_evm Engine account ID
  --signer <account>                             specify signer account ID (default: "test.near")
  -h, --help                                     display help for command

Commands:
  install|upgrade [options] <contract>
  initialize|init [options]
  get-version
  get-owner
  get-bridge-prover
  get-chain-id|get-chain
  get-upgrade-index
  stage-upgrade
  deploy-upgrade
  deploy-code|deploy <bytecode>
  call <address> <input>
  meta-call
  view [options] <address> <input>
  get-code <address>
  get-balance <address>
  get-nonce <address>
  get-storage-at|get-storage <address> <key>
  begin-chain <id>
  begin-block <hash>
  dump-storage
  encode-address <account>
  encode-hash <base58>
  help [command]                              display help for command

lox_evm install

$ lox_evm install -h
Usage: lox_evm install|upgrade [options] <contract>

Options:
  --chain <id>               specify EVM chain ID (default: "0")
  --owner <account>          specify owner account ID (default: "")
  --bridge-prover <account>  specify bridge prover account ID (default: "")
  --upgrade-delay <blocks>   specify upgrade delay block count (default: "0")
  -h, --help                 display help for command

lox_evm init

$ lox_evm init -h
Usage: lox_evm initialize|init [options]

Options:
  --chain <id>               specify EVM chain ID (default: "0")
  --owner <account>          specify owner account ID (default: "")
  --bridge-prover <account>  specify bridge prover account ID (default: "")
  --upgrade-delay <blocks>   specify upgrade delay block count (default: "0")
  -h, --help                 display help for command

lox_evm get-version

$ lox_evm get-version -h
Usage: lox_evm get-version|get_version [options]

Options:
  -h, --help  display help for command

lox_evm get-owner

$ lox_evm get-owner -h
Usage: lox_evm get-owner|get_owner [options]

Options:
  -h, --help  display help for command

lox_evm get-bridge-prover

$ lox_evm get-bridge-prover -h
Usage: lox_evm get-bridge-prover|get_bridge_prover [options]

Options:
  -h, --help  display help for command

lox_evm get-chain-id

$ lox_evm get-chain-id -h
Usage: lox_evm get-chain-id|get_chain_id [options]

Options:
  -h, --help  display help for command

lox_evm get-upgrade-index

$ lox_evm get-upgrade-index -h
Usage: lox_evm get-upgrade-index|get_upgrade_index [options]

Options:
  -h, --help  display help for command

lox_evm stage-upgrade

$ lox_evm stage-upgrade -h
Usage: lox_evm stage-upgrade|stage_upgrade [options]

Options:
  -h, --help  display help for command

lox_evm deploy-upgrade

$ lox_evm deploy-upgrade -h
Usage: lox_evm deploy-upgrade|deploy_upgrade [options]

Options:
  -h, --help  display help for command

lox_evm deploy-code

$ lox_evm deploy-code -h
Usage: lox_evm deploy-code|deploy [options] <bytecode>

Options:
  -h, --help  display help for command

lox_evm call

$ lox_evm call -h
Usage: lox_evm call [options] <address> <input>

Options:
  -h, --help  display help for command

lox_evm meta-call

$ lox_evm meta-call -h
Usage: lox_evm meta-call|meta_call [options]

Options:
  -h, --help  display help for command

lox_evm view

$ lox_evm view -h
Usage: lox_evm view [options] <address> <input>

Options:
  --sender <address>  specify the sender address (default:
                      "0x0000000000000000000000000000000000000000")
  --amount <value>    attach an ETH amount (default: "0")
  -h, --help          display help for command

lox_evm get-code

$ lox_evm get-code -h
Usage: lox_evm get-code|get_code [options] <address>

Options:
  -h, --help  display help for command

lox_evm get-balance

$ lox_evm get-balance -h
Usage: lox_evm get-balance|get_balance [options] <address>

Options:
  -h, --help  display help for command

lox_evm get-nonce

$ lox_evm get-nonce -h
Usage: lox_evm get-nonce|get_nonce [options] <address>

Options:
  -h, --help  display help for command

lox_evm get-storage-at

$ lox_evm get-storage-at -h
Usage: lox_evm get-storage-at|get_storage_at [options] <address> <key>

Options:
  -h, --help  display help for command

lox_evm begin-chain

$ lox_evm begin-chain -h
Usage: lox_evm begin-chain|begin_chain [options] <id>

Options:
  -h, --help  display help for command

lox_evm begin-block

$ lox_evm begin-block -h
Usage: lox_evm begin-block|begin_block [options] <hash>

Options:
  -h, --help  display help for command

lox_evm dump-storage

$ lox_evm dump-storage -h
Usage: lox_evm dump-storage|dump_storage [options]

Options:
  -h, --help  display help for command

lox_evm encode-address

$ lox_evm encode-address -h
Usage: lox_evm encode-address [options] <account>

Options:
  -h, --help  display help for command

lox_evm encode-hash

$ lox_evm encode-hash -h
Usage: lox_evm encode-hash [options] <base58>

Options:
  -h, --help  display help for command

Development

Local development

alias lox_evm='node lib/lox_evm.js'
export NEAR_URL=http://localhost:3030