0.0.6 • Published 4 months ago

mina-maya v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Maya-cli

The Maya CLI is a versatile utility designed to simplify common tasks related to the Mina blockchain project. With this tool, you can perform various operations, including:

Features:

1. Create Frontend

  • Description: Quickly set up a frontend for your Mina project using popular frameworks like Next.js and React.js.
  • Usage:
    npx mina-maya create-frontend

2. Check Balance

  • Description: Retrieve the balance associated with a specific Mina account using the Mina Explorer API.
  • Usage:
    npx mina-maya check-balance

3. Check Mina

  • Description: Obtain essential data about the Mina blockchain network, such as blockchain length, circulating supply, state hash, chain ID, and total currency.
  • Usage:

    npx mina-maya check-mina
  • Example Output:

    Metric           Value
    ---------------  ------------------------------------
    Blockchain       1,000,000
    Circulating      1,000,000
    State Hash       3NLES4Ho75Pv7DRCbNPUpjyzGCC4M69ssoeUsVJgnqoR4DR7v2du
    Chain id         5f704cc0c82e0ed70e873f0893d7e06f148524e3f0bdae2afb02e7819a0c24d1
    Total currency   1107082252.840039233

Prerequisites:

Before using the Mina Project Command-Line Tool, ensure that you have the following prerequisites installed on your system:

Getting Started:

  1. Clone the project repository or download the script.

  2. Install project dependencies by running the following command in the project's directory:

    yarn install
  3. Run the script using the following command:

    yarn start <operation>
  4. For building the script, run the following command:

    yarn build

    The script will be built in the dist directory.

Usage:

To use the tool, run it with one of the specified operations as an argument. For example, to create the frontend, run:

npx mina-maya create-frontend

Replace npx mina-maya with the path to the script if needed.

If you specify an invalid operation, the script will display a list of available operations.

Acknowledgments:

This project utilizes third-party libraries to enhance functionality:

  • chalk for colorful console output.
  • inquirer for interactive command-line prompts.

License:

This project is licensed under the MIT License.

0.0.6

4 months ago

0.0.5

5 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago