track gas incurred by contributors
You'll need the following to get started:
- Etherscan API key
-
Install dependencies
npm install
-
Create a
.envfile and setETHERSCAN_API_KEYto your Etherscan API key. -
Run a script.
npm run getTotalGasSpend -- 14561235 15481186
Calculate how much gas Peel contributors spent on tap (distribute) transactions, from a given block.
npm run getJuiceboxGasSpend -- <start-block>
Calculate how much gas Peel contributors spent on executing multisig transactions, from a given block.
npm run getMultisigGasSpend -- <start-block>
Calculate how much gas Peel contributors spent on transactions, from a given block, across the following types of transactions:
- PeelDAO multisig
tap(distribute) transactions
npm run getTotalGasSpend -- <start-block> <end-block>