Script to help resolve paritytech/polkadot-sdk#2507.
Scrapes every candidacy-related reserve / unreserve event from the chain and saves in a sqlite db.
Once all scraped, writes out a csv of any imbalances.
Supports Polkadot and Kusama.
ts-node src/index.ts polkadot|kusama wss://some-rpc.io