- vechain-better-events
This repo contains a series of scripts useful in order to aggregate and gather analytics from events emitted from the b3tr contracts.
This is what the scripts support at the moment
- Generate a XLSX file containining different sheets:
- An overview with all the unique users and the total votes casted in every round;
- A sheet for every round with the details of the vote cast by the user;
- Get the B3TR transfers from or to specific addresses;
- Get the formatted votes of all or specific users for one or more rounds;
yarn install
Require to have yarn installed globally
If yarn is not installed, follow this
For -v
, -f
and -t
options used with the --transfers
and --votes
scripts, you can use common names to have their addresses automatically resolved.
This is the names we currently support:
- mugshot_treasury;
- mugshot_contract;
- cleanify_treasury;
- cleanify_campaigns;
- cleanify_daily;
- vyvo_treasury;
- treasury;
yarn start --insights
Will produce a file vebetterdao_insights.xlsx
in the same folder
yarn start --transfers
yarn start --transfers -f <address>
yarn start --transfers -t <address>
yarn start --transfers -f <address_1> -t <address_2>
yarn start --votes -v <address>
yarn start --votes
yarn start --votes -r 1
yarn start --votes -r <round_number> -v <address>