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

mvc-cli-dev

v0.1.9

Published

## Description

Downloads

4

Readme

mvc-cli

Description

This is a simple CLI tool to operate MVC cli wallet.

Installation

Prerequisite

You should install Node at your system first. Open your terminal run command node -v, if it console log v18.14, (18.14 is your node version, it will change depends what version you have installed), this means you have node installed.

If nothing shows, that means you haven't installed Node. For that, we recommand you use nvm to finish this set up.

Install

With node environment successfully set, you can install our cli tool as follows:

npm install -g @mvc-org/mvc-cli

Usage

Config your account

Open terminal, at your current working directory, run mvc-cli init and answer the next series of questions, this will generate account.json file at your current working directory.

// account.json file
MEMONIC="abc edf"
ACCOUNTPATH="m/44'/10001'/0'/0/0"
NETWORK=mainnet

Usage

mvc-cli [command] [options]

Options:

  • -h, --help display help for command
  • -tk, --tokens <tokens...> You can choose what tokens you want to check(Note1:token name should tranform to lowercase, Note2: this option is for get-ft-balance and get-nft-balance command, Note3, for ft token is symbol, for nft token is genesis id)

Commands | command | description | | :----- | :----- | | send <address> <amount>| for space transferring | | get-balance | for getting space amount of current account | | get-ft-balance -tk, --tokens <tokens...> | for getting fungible token balance of your account | | get-nft-collection -tk, --tokens <tokens...> | for getting non-fungible token collection of your account | | ft-transfer <token> <address> <amount> | for transferring your fungible token to target address| | ft-register | for registering a fungible token, just answer the following series of questions. |

Example

get help text for a specific command

mvc-cli send --help

transfer 0.01 space to target address

mvc-cli send 12ecgYPjeZh3mv6izoVuBSaa1Dxxwv2J1G 0.01

transfer 0.88 MSP ft token to target address

mvc-cli ft-transfer msp 12ecgYPjeZh3mv6izoVuBSaa1Dxxwv2J1G 0.88
// or
mvc-cli ft-transfer b2d75931958114e48c9927160f80363eae78e2dc 12ecgYPjeZh3mv6izoVuBSaa1Dxxwv2J1G 0.88
// b2d.... is token MSP's genesis code

register new fungible tokens

Open terminal, At your current working directory, run mvc-cli ft-register and answer the next series of questions, this will generate tokenRegister.json file at your current working directory.

// tokenRegister.json
[
  {
    "name": "msp",
    "genesis": "b2d75931958114e48c9927160f80363eae78e2dc",
    "decimal": "1e8",
    "codehash": "a2421f1e90c6048c36745edd44fad682e8644693"
  },
]

get balance

get mvc space

mvc-cli get-balance

get ft balance

mvc-cli get-ft-balance  // this will get all ft's balance
mvc-cli get-ft-balance --tokens msp mc // get specific tokens' balance, msp mc is tokens's symbol(!!remember transfer to lowercase!!)

get nft collection

mvc-cli get-nft-collection  // this will get all nft collection
mvc-cli get-nft-collection --tokens b2d75xxxxxxx  efd75xxxxxxx/ / get specific nfts' information, b2d75xxxxxxx is token's genesis id

Dependencies