{"_id":"@anchor-protocol/airdropcli","_rev":"14-d7a2548b439b3c1b8b6e5d0c6f99f1e4","name":"@anchor-protocol/airdropcli","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@anchor-protocol/airdropcli","version":"1.0.0","author":{"name":"MSNTCS"},"license":"MIT","_id":"@anchor-protocol/airdropcli@1.0.0","maintainers":[{"name":"etienne.napoleone","email":"etienne.napoleone@gmail.com"},{"name":"kjessec","email":"jesse@soob.co"},{"name":"saad.najafi","email":"najafi@snu.ac.kr"},{"name":"hanjukim","email":"hanjukim@gmail.com"},{"name":"ssen","email":"i@ssen.name"}],"bin":{"airdropcli":"bin/airdropcli"},"dist":{"shasum":"bc48cf1e4a3b09a14c79a47377a0f9dc4f619e25","tarball":"https://registry.npmjs.org/@anchor-protocol/airdropcli/-/airdropcli-1.0.0.tgz","fileCount":10,"integrity":"sha512-HCho8q5nwqUwJuNlWS6NHgEkxqRJxHZL1basTLGd1aS/092a8JHAL33/smzt2P8LAbhlBrvPwNRD6CWIWlpRSw==","signatures":[{"sig":"MEUCIDVfcI1BktQ3JUynCzO5NdAP8TPT2XY6gqvlV0iUmkxTAiEAiIZMkuSdCAICyTLn0zoM1qyDjcITAA70ZIekg/gSmk4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40245,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgX876CRA9TVsSAnZWagAAPx8P/3cGqLOehx+PWRbhppJO\nYDfYsSMocHVllOBWSmd4yEV5TpzrqaP7SxlQ5jxc1DgLmi3FZmn12TE93prr\n6Sj76yxQnN2pqJDzzS+ZRFwzwUQRr+dMNjzpxF0WbTguuntROu+etJnGn5EC\nIQZGBo8GEpn1r8EqY9UEaHD22DtSni369QTm5NZhOGfpPA8TFjjta2vurmOM\neWdATnfQ0YhCwmRO0oXjHMDM0NVkhgUEEsg9epCzcQgvtcWHSA3aTBO/geg4\neV3A1gSp0hrefwcacPfBQiSvS/bVNULgudVbZrQOT/Axu+xY1an0fIqldRMs\nyTs7euSsC/sB7PGm/qfuhSuA9qEX4ZgG4zEv670V2Vx/v8aEjHQMMYLffi57\nDcgvTYF7wLwFYMpILMRLXu1fEJEDZOVeykyB0YByMP/TuasKzpHqxBqNWpov\nK14+nAHfG5nbjST0iD75y1Z+GB0LYHNGObNthE3dmK0mFRO0vnmMe4FNgAzT\n2DcGaHzivEE4QuLcBGYHU5iXCP0Z0XEiXLpffbrpX6YGveKtqIFozu2+b6r7\n9sTnH9dCAsVLeM0w0QTw0J3lYg4ONADTmI3FJW0F6+KFL/JorEqPSO6XTpww\nncDRoNvgsVquerlVliLRZmZbjdNNYZTa76Pl22fBv8CsoV7HjzaicoojKPZd\nA7hO\r\n=v57o\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"88267f610ae08f0e0205e2484dd838cd05cd8057","scripts":{"lint":"eslint \"**/src/*.{js,ts,tsx}\"","test":"jest","build":"tsc","prettier":"prettier --write ./src/**/*.ts","prepublishOnly":"npm run build"},"_npmUser":{"name":"saad.najafi","email":"najafi@snu.ac.kr"},"_npmVersion":"7.0.3","description":"Command-line interface for claiming airdrop.","directories":{},"_nodeVersion":"15.0.1","dependencies":{"yaml":"^1.10.0","jsome":"^2.5.0","yesno":"^0.3.1","lodash":"^4.17.20","commander":"^6.2.0","typescript":"^4.2.3","cross-fetch":"^3.1.2","@terra-money/terra.js":"^1.6.0","@anchor-protocol/anchor.js":"^0.1.18"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.19.0","ts-node":"^9.0.0","prettier":"^2.2.1","@types/node":"^10.12.18","@types/yaml":"^1.9.7","@types/eslint":"^7.2.6","@types/lodash":"^4.14.165","@types/prettier":"2.1.6","@ssen/eslint-config":"^1.3.1","@ssen/prettier-config":"^1.2.0","eslint-config-prettier":"^7.2.0","eslint-plugin-prettier":"^3.3.1","@types/eslint-plugin-prettier":"^3.1.0"},"_npmOperationalInternal":{"tmp":"tmp/airdropcli_1.0.0_1616891641923_0.8233190773467631","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-03-28T00:34:01.922Z","modified":"2026-07-07T17:54:46.848Z","1.0.0":"2021-03-28T00:34:02.093Z"},"author":{"name":"MSNTCS"},"license":"MIT","description":"Command-line interface for claiming airdrop.","maintainers":[{"email":"hanjukim@gmail.com","name":"hanjukim"},{"email":"jesse@soob.co","name":"kjessec"},{"email":"cain.osullivan@gmail.com","name":"cosullivan"},{"email":"radzion@terra.money","name":"radzionchachura"},{"email":"mandrean@pm.me","name":"mandrean"},{"email":"17amitprasad@gmail.com","name":"amitpr"},{"email":"devops@terra.money","name":"terra-devops"}],"readme":"# `airdropcli` <!-- omit in toc -->\n\nCommand-line interface for claiming airdrop.\n\n## Table of Contents <!-- omit in toc -->\n- [Setup](#setup)\n- [Configuration](#configuration)\n  - [Specifying LCD settings](#specifying-lcd-settings)\n- [Usage](#usage)\n  - [Execute](#execute)\n  - [Query](#query)\n- [Examples](#examples)\n  - [Claim Airdrop](#Claim-Airdrop)\n  - [Query Airdrop State](#Query-Airdrop-State-of-An-Address)\n- [License](#license)\n## Setup\n\n**Requirements**\n\n- Node.js 12+\n- NPM,\n- [`terracli`](https://github.com/terra-project/core) in your path.\n\n`airdropcli` can be installed off NPM.\n****\n```bash\n$ npm install -g @anchor-protocol/airdropcli\n```\nThe entrypoint `airdropcli` should then be available in your `path`:\n\n<pre>\n         <div align=\"left\">\n        <strong>$ airdropcli</strong>\n        \n        Usage: airdropcli [options] [exec_command]\n\n        Command-line interface for claiming ANC airdrop\n\n        Options:\n          -V, --version   output the version number\n          -v,--verbose    Show verbose error logs\n          -h, --help      display help for exec_command\n\n        Commands:\n          exec|x             Execute a function on a smart contract\n          query|q [options]  Query state of airdrop\n          help [exec_command]  display help for exec_command\n        </div>\n</pre>\n\n## Configuration\nBy default, `airdropcli` works with the default configuration which is set to be for contracts on `columbus-4`. \nThis setting provides the address of contracts and specifies the setting for LCD provider, gas prices for fee estimation.\n\n### Specifying LCD settings\nEach network config should define how to connect to the Terra blockchain via LCD parameters.\n```json\n{\n  \"lcd\": {\n    \"chainID\": \"columbus-4\",\n    \"URL\": \"https://lcd.terra.dev\",\n    \"gasPrices\": {\n      \"uluna\": 0.15,\n      \"usdr\": 0.1018,\n      \"uusd\": 0.15,\n      \"ukrw\": 178.05,\n      \"umnt\": 431.6259\n    },\n    \"gasAdjustment\": 1.2\n  }\n}\n```\n\n## Usage\n\n`airdropcli` allows you to:\n\n- [**execute**](#execute) state-changing functions on Airdrop smart contracts\n- [**query**](#query) readonly data endpoints on Airdrop state\n\n### Execute\n\n**USAGE: `airdropcli exec|x claim-airdrop [options] [exec_command]`**\n\n```\nExecute a function on a smart contract\n\nOptions:\n  --yaml                        Encode result as YAML instead of JSON\n  -y,--yes                      Sign transaction without confirming (yes)\n  --home <string>               Directory for config of terracli\n  --from <key-name>             *Name of key in terracli keyring\n  --generate-only               Build an unsigned transaction and write it to stdout\n  -G,--generate-msg             Build an ExecuteMsg (good for including in poll)\n  --base64                      For --generate-msg: returns msg as base64\n  -b,--broadcast-mode <string>  Transaction broadcasting mode (sync|async|block) (default: sync) (default: \"sync\")\n  --chain-id <string>           Chain ID of Terra node\n  -a,--account-number <int>     The account number of the signing account (offline mode)\n  -s,--sequence <int>           The sequence number of the signing account (offline mode)\n  --memo <string>               Memo to send along with transaction\n  --fees <coins>                Fees to pay along with transaction\n  --gas <int|auto>              *Gas limit to set per-transaction; set to \"auto\" to calculate required gas automatically\n  --gas-adjustment <float>      Adjustment factor to be multiplied against the estimate returned by the tx simulation\n  --gas-prices <coins>          Gas prices to determine the transaction fee (e.g. 10uluna,12.5ukrw)\n\n```\n\n### Query\n\n**USAGE: `airdropcli query|q  state [options] [exec_command]`**\n\n```\nQuery state of airdrop\n\nArguments:\n  address     (AccAddress) account to query\n\nOptions:\n  -h, --help  display help for command\n\n```\n## Examples\nThis section illustrates the usage of `airdropcli` through some use cases. \nAll examples assume you have a key in `terracli` keychain called `test1`.\n\n### Claim Airdrop\n```bash\nairdropcli x claim-airdrop --from test1 --gas auto --fees=100000uusd \n```\n### Query Airdrop State of An Address\nyou can get information for your address with the following query: \n```bash\nairdropcli q state $USER_ADDRESS\n```\n## License\n\nThis software is licensed under the Apache 2.0 license. Read more about it [here](./LICENSE).\n\n© 2021 Anchor Protocol","readmeFilename":"README.md"}