Easy Mina Deploy is a command-line tool that simplifies the deployment process for Mina Protocol smart contracts. It allows you to deploy contracts with ease using various parameters like path
, className
, feePayerKey
, and zkAppKey
.
To install easy-mina-deploy
, you need to have Node.js installed on your system. Then, you can install the package globally using npm:
npm install -g easy-mina-deploy
or use npx:
npx easy-mina-deploy deploy
Without providing your own keys:
npx easy-mina-deploy deploy --path /path/to/your/smart-contract.js --className MySmartContract
With your own fee payer key:
npx easy-mina-deploy deploy --path /path/to/your/smart-contract.js --className MySmartContract --feePayerKey <your_fee_payer_key>
With your own zkApp key:
npx easy-mina-deploy deploy --path /path/to/your/smart-contract.js --className MySmartContract --zkAppKey <your_zkApp_key>
With your own fee payer key and zkApp key:
npx easy-mina-deploy deploy --path /path/to/your/smart-contract.js --className MySmartContract --feePayerKey <your_fee_payer_key> --zkAppKey <your_zkApp_key>
The path
command is used to specify the file path of the smart contract you want to deploy. It should point to the contract's JavaScript file.
--path /path/to/your/smart-contract.js
The className
command is used to specify the name of the contract's main class. This is required for deploying the contract correctly.
--className MySmartContract
The feePayerKey
command is optional and allows you to set the fee payer key. If not provided, a random generated fee payer key will be used.
--feePayerKey <your_fee_payer_key>
The zkAppKey
command is optional and allows you to set the zkApp key. If not provided, a random generated zkApp key will be used.
--zkAppKey <your_zkApp_key>
Contributions to easy-mina-deploy
are welcome! If you find any issues or want to add new features, feel free to open a pull request.