hardhat-deals
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Deals - Token Transferring Magic 🎩

Welcome to Deals, a magical adventure where token transferring becomes easy and fun! This project uses Hardhat to perform token transfers between Ethereum addresses.

Getting Started

Prerequisites

  • Node.js v14 or higher
  • npm v6 or higher

Installation

To install Deals as an npm package, simply run:

npm install hardhat-deals

Running a Hardhat Node

Deals requires a Hardhat node to function:

  1. Install Hardhat globally:
npm install -g hardhat
  1. Run the Hardhat node:
npx hardhat node --verbose &

🚨 Warning: This project uses "public" private keys provided by Hardhat. Do not use these private keys for real-world transactions or on mainnet, as they are not secure.

Usage

Once you have set up the Hardhat node, you can use the deal command to perform token transfers:

npx hardhat deal --token WETH --amount 1 --to <to>

Add the --nodec flag to supply raw numbers without decimals applied:

npx hardhat deal --token USDC --to <to> --amount 1000000 --nodec

Would be happy to use positional arguments in form, but can't get it running in hardhat Seems like they does not support it at all (

// DOES NOT WORK
npx hardhat deal <to>  1000000  USDC  [--nodec]

Contributing

If you need, add your tokens into struct TOKENS in node_modules/deals/src/deals-utils.js - they will be added Feel free to create a pull request or open an issue on GitHub. We welcome your input and suggestions! And remember, this project was crafted with love by an AI. 😄

License

This project is licensed under the MIT License. See the LICENSE file for details.


Enjoy the magical world of Deals, and happy token transferring! 🎉

Package Sidebar

Install

npm i hardhat-deals

Weekly Downloads

2

Version

0.1.3

License

MIT

Unpacked Size

4.01 kB

Total Files

4

Last publish

Collaborators

  • karuzzzo