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

@anchor-protocol/airdropcli

v1.0.0

Published

Command-line interface for claiming airdrop.

Downloads

3

Readme

airdropcli

Command-line interface for claiming airdrop.

Table of Contents

Setup

Requirements

airdropcli can be installed off NPM.


$ npm install -g @anchor-protocol/airdropcli

The entrypoint airdropcli should then be available in your path:

Configuration

By default, airdropcli works with the default configuration which is set to be for contracts on columbus-4. This setting provides the address of contracts and specifies the setting for LCD provider, gas prices for fee estimation.

Specifying LCD settings

Each network config should define how to connect to the Terra blockchain via LCD parameters.

{
  "lcd": {
    "chainID": "columbus-4",
    "URL": "https://lcd.terra.dev",
    "gasPrices": {
      "uluna": 0.15,
      "usdr": 0.1018,
      "uusd": 0.15,
      "ukrw": 178.05,
      "umnt": 431.6259
    },
    "gasAdjustment": 1.2
  }
}

Usage

airdropcli allows you to:

  • execute state-changing functions on Airdrop smart contracts
  • query readonly data endpoints on Airdrop state

Execute

USAGE: airdropcli exec|x claim-airdrop [options] [exec_command]

Execute a function on a smart contract

Options:
  --yaml                        Encode result as YAML instead of JSON
  -y,--yes                      Sign transaction without confirming (yes)
  --home <string>               Directory for config of terracli
  --from <key-name>             *Name of key in terracli keyring
  --generate-only               Build an unsigned transaction and write it to stdout
  -G,--generate-msg             Build an ExecuteMsg (good for including in poll)
  --base64                      For --generate-msg: returns msg as base64
  -b,--broadcast-mode <string>  Transaction broadcasting mode (sync|async|block) (default: sync) (default: "sync")
  --chain-id <string>           Chain ID of Terra node
  -a,--account-number <int>     The account number of the signing account (offline mode)
  -s,--sequence <int>           The sequence number of the signing account (offline mode)
  --memo <string>               Memo to send along with transaction
  --fees <coins>                Fees to pay along with transaction
  --gas <int|auto>              *Gas limit to set per-transaction; set to "auto" to calculate required gas automatically
  --gas-adjustment <float>      Adjustment factor to be multiplied against the estimate returned by the tx simulation
  --gas-prices <coins>          Gas prices to determine the transaction fee (e.g. 10uluna,12.5ukrw)

Query

USAGE: airdropcli query|q state [options] [exec_command]

Query state of airdrop

Arguments:
  address     (AccAddress) account to query

Options:
  -h, --help  display help for command

Examples

This section illustrates the usage of airdropcli through some use cases. All examples assume you have a key in terracli keychain called test1.

Claim Airdrop

airdropcli x claim-airdrop --from test1 --gas auto --fees=100000uusd 

Query Airdrop State of An Address

you can get information for your address with the following query:

airdropcli q state $USER_ADDRESS

License

This software is licensed under the Apache 2.0 license. Read more about it here.

© 2021 Anchor Protocol