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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mcashbox

v2.7.5

Published

McashBox - Development framework for mcashchain

Downloads

12

Readme

McashBox

McashBox is a fork of TronBox and Truffle

Installation

npm install -g mcashbox

OS requirement

  • NodeJS 8.0+
  • Windows, Linux, or Mac OS X

Features

Initialize a McashBox Project mcashbox init

Contract Compiler mcashbox compile

To compile for all contracts, add option --compile-all.

Optionally, you can select: --compile-all: Force compile all contracts. --network: Save results to a specific host network

Configuration

To use McashBox, your dApp has to have a file config.js in the source root. This special files, tells McashBox how to connect to nodes, and passes some special parameters, like the default private key. This is an example of config.js:

const port = process.env.HOST_PORT || 13399;

module.exports = {
    networks: {
        mainnet: {
            privateKey: process.env.PRIVATE_KEY_MAINNET,
            userFeePercentage: 100,
            feeLimit: 1e9,
            fullHost: "https://mainnet.mcash.network",
            network_id: "1"
        },
        testnet: {
            privateKey: process.env.PRIVATE_KEY_TESTNET,
            userFeePercentage: 50,
            feeLimit: 1e9,
            fullHost: "https://testnet.mcash.network",
            network_id: "3",
        },
        development: {
            // For local
            privateKey: '261b559a288dbeffdea44225b30dab6246bb2eaeb23c1ff9283cb74a716f0c5c',
            userFeePercentage: 50,
            feeLimit: 1e9,
            fullHost: 'http://127.0.0.1:' + port,
            network_id: "19",
        }
    }
};

Contract Migration

mcashbox migrate

This command will invoke all migration scripts within the migrations directory. If your previous migration was successful, mcashbox migrate will invoke a newly created migration. If there is no new migration script, this command will have no operational effect. Instead, you can use the option --reset to restart the migration script.

mcashbox migrate --reset

Start Console

This will use the default network to start a console. It will automatically connect to a VM client. You can use --network to change this.

mcashbox console

The console supports the mcashbox command. For example, you can invoke migrate --reset in the console. The result is the same as invoking mcashbox migrate --reset in the command.

Extra Features in McashBox console:

  1. All the compiled contracts can be used, just like in development & test, front-end code, or during script migration.

  2. After each command, your contract will be re-loaded. After invoking the migrate --reset command, you can immediately use the new address and binary.

  3. Every returned command's promise will automatically be logged. There is no need to use then(), which simplifies the command.

Solc versions

McashBox supports all the Solidity versions.

0.4.25
0.4.26
0.5.4
0.5.8