run yarn
before use.
Simple utility for generating an array of Ethereum wallet addresses. And, a built in basic calculator to output ROUGH estimated tx cost for gas used.
use node index.js generate <count>
where count is the number of wallet addresses you want to generate, to generate the addresses.json file with the output wallet addresses.
basic calculator to output gas cost in Eth,
cost = gas used * gas price
node index.js calc <gas used> <gas price in gwei>
For use when an offchain allow-list is stored on FB
For these commands to work, you must add both the collection name, as FIREBASE_ALLOW_LIST
, and a Firebase service key as FIREBASE_SERVICE_KEY
, strigified object, in .env
use .env-template and rename to .env
Commands:
- downloadList - Save the firestore allow list to the passed in file, as JSON
- uploadList
- allowlist - get information about the firebase allow list FireStore
node index.js uploadList ./wallets.json
Requires a source JSON file in the following format:
{
"wallets": [
...
]
}
Pass in the path to this file relative to the cwd
and each wallet will be added to the collection as the document.id
node index.js downloadList ./dowloaded-wallets.json
Dowload the data from the allow list collection as JSON.
Console log the collection data 'snapshot'. Useful for counting the size.