Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstm committed Jul 26, 2019
0 parents commit c970ace
Show file tree
Hide file tree
Showing 17 changed files with 2,018 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# http://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
trim_trailing_whitespace = true

[*.md]
max_line_length = 0
trim_trailing_whitespace = false
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
dist
test
src/**.js
.idea/*

coverage
.nyc_output
*.log

yarn.lock
14 changes: 14 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
src
test
tsconfig.json
tsconfig.module.json
tslint.json
.travis.yml
.github
.prettierignore
.vscode
build/docs
**/*.spec.*
coverage
.nyc_output
*.log
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# package.json is formatted by package managers, so we ignore it here
package.json
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 sven4ask

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Binance Airdrop

Airdrop tool for binance chain

## Installation

`npm i binance-airdrop -g`

## Usage

Running the script is easy, simply

`binance-airdrop`

It will query for all the required fields. You can also add then upfront.

| Option | Alias | Description |
|-------- |------- |-------------|
| `--network` | `-n` | Choose binance chain network either 'M' (for mainnet) or 'T' (for testnet) |
| `--mnemonic`| `-m` | Set the mnemonic phrase from the wallet you would like to airdrop from |
| `--file` | `-f` | Default: `airdrop.conf` set a different file name you wish to read the addresses from. It should be a comma seperated list of addresses. The maximum nr of address is 10K |
| `--amount` | `-a` | Set the amount you wish to airdrop to each of the addresses |
| `--asset` | | Set the asset id you would like to airdrop |
|`--dry-run` | | If you set this option, it will show to which addresses will be airdropped and what the costs will be |


### Example

`binance-airdrop -n M -m 'my very very secret phrase' --dry-run`

it will now ask you for the following params:

```
? Please provide the asset you wish to airdrop? LTO-BDF
? Please provide the number of tokens you wish airdrop? 100
```

1 change: 1 addition & 0 deletions airdrop.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bnb1y0ja904nklwnj6mm7sme4azgnf2ym9ta053sfs
3 changes: 3 additions & 0 deletions bin/binance-airdrop
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

require('../dist/main').main();
Loading

0 comments on commit c970ace

Please sign in to comment.