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

adamant-airdrop

v2.1.1

Published

ADAMANT Airdrop executer

Downloads

11

Readme

Pre-requirements

To use the ADAMANT Airdrop, you must have:

  • Node.js (version 18 or higher).

    Make sure you have an up-to-date version of Node.js installed. Open your command line and execute:

    node -v

    This command will output the Node.js version, ensure it's v18.0.0 or higher.

  • List of ADAMANT users in a .csv, .json, .jsonc or .txt file.

    Prepare a clear list format where each line contains one ADAMANT address.

    Example of an acceptable .csv list:

    Address,Name
    U7767749612291339898,Alex
    U5820292448800687929,Jonty

[!WARNING] Be careful to prevent merging names into addresses or including multiple addresses on the same line, as this can lead to errors during the airdrop process.

Installation

To use the ADAMANT Airdrop, you only need npx, which is preinstalled with the latest versions of Node.js. The npx command will automatically download and execute the latest version of the ADAMANT Airdrop:

$ npx adamant-airdrop --version

Need to install the following packages:
[email protected]
$ Ok to proceed? (y) y

ADAMANT Airdrop v2.1.0

If you want to run the project locally, see development setup section of contribution guide.

Configuration

Before using, you should create a configuration file. This file enables the Airdrop to access your ADAMANT account and locate the file with the addresses for the airdrop. You can generate default configuration file using the following command:

npx adamant-airdrop setup

You will be presented with prompt to choose a directory name to contain your configuration file, as well as log files. It's a good practice to set up a new directory for each of your airdrop campaigns to keep logs organized.

Navigate to your directory:

cd 'directory_name_you_chose'

Now, let's edit configuration file to fit your requirements. You can use any text editor you like, such as VS Code, vim, or nano. In this example, we'll use nano:

nano config.jsonc

To run the script, you should at least edit the passphrase and inputFile fields with your account's passphrase and the path to the list of users you wish to airdrop to, respectively.

Example of a configuration:

{
  // Account's passphrase to airdrop from
  "passphrase": "ocean mystery book garden solar mirror cloud river melody shadow anchor breeze",
  // Path to the list of addresses
  "inputFile": "./'Winners List for Airdrop Campaign - Sheet1.csv'",
  // Amount to send for each address
  "amount": 100,

  "nodes": [
    "https://bid.adamant.im",
    "https://lake.adamant.im",
    "https://sunshine.adamant.im"
  ]
}

Usage

After setting up the configuration file, you are ready to use the Airdrop. To start airdrop, simply type the following command in terminal:

npx adamant-airdrop ./config.jsonc

If you only want to validate addresses, append the --validate flag to your command:

npx adamant-airdrop --validate ./config.jsonc

After a successful airdrop, you can check the output/ directory for list of successful and failed transactions, and the logs/ directory for logs.

Contribution

Please have a look at the CONTRIBUTING.md.