This project processes an array of RefundableTransaction objects, formats them as CSV, and saves the file locally.
Add environment variables.
ON_FINALITY_API_KEY=- Clone the repository
git clone git@github.com:TalismanSociety/refund-scripts.git
cd refund-scripts- Install dependencies
npm install- Get Data for coldkey
- Get the data for an account coldkey and date range from taostats api https://docs.taostats.io/reference/get-coldkey-report-1
- Add data to
coldKeyReport.ts
-
Run script to parse coldKeyReport data and fetch extrinsic data.
npm start
-
Run scripts to generate csv files:
npm run generate
- Create a new multisend transaction in https://polkadotmultisig.com using the
refundableMultisig.csvgenerate. - Cross reference
refundableMultisigReport.csvextrinsic ids with data from a chain explorer: https://taostats.io/extrinsic/[EXTRINSIC_ID]?network=finney