Skip to content

Commands to do stuff with FriendsFingers' Smart Contracts

License

Notifications You must be signed in to change notification settings

FriendsFingers/dao-helpers

Repository files navigation

Commands to do stuff with FriendsFingers' Smart Contracts

MIT licensed

Installation

npm install

Usage

node helpers

Development

node helpers --contract=0x123

Main Ethereum Network

node helpers --endpoint=https://mainnet.infura.io --net-id=1 --contract=0x123

You will be prompted with

enter contract (tab to autocomplete):

Available contracts ['DAO'].

enter method (tab to autocomplete):

Available methods ['getMembers', 'generateAirdropArray'].

DAO

getMembers

Analyse DAO and produce an array with members

generateAirdropArray

Analyse members and produce an array with airdrop amount

Options

--endpoint, -e      ethereum rpc endpoint.                              [string]    [default: "https://127.0.0.1:8545"]
--input, -i         path of json file containing the list of datas      [string]    [default: "./input/data.json"]
--out, -o           directory for json files where to store results     [string]    [default: "./scripts/output"]
--net-id, -n        network id                                          [number]    [default: 5777]
--block, -b         block number                                        [string]    [default: "latest"]
--from, -f          sending address                                     [string]
--contract, -c      contract address                                    [string]
--init-wallet       init wallet or not                                  [boolean]   [default: false]
--gas-limit         provided gas limit                                  [number]    [default: 6721975]
--gas-price         provided gas price in gwei                          [number]    [default: 1]
--nonce             progressive nonce id                                [number]
--log-level         log level used for logging                          [string]    [default: "debug"]
--pause-every       pause every the specified number of transactions    [number]    [default: 1]
--timeout           number of seconds to wait                           [number]    [default: 10]
--bulk              number of addresses to use                          [number]    [default: 1]
--dryrun            simulate sends                                      [boolean]
--help              show help                                           [boolean]

License

Code released under the MIT License.

Releases

No releases published

Packages

No packages published