livepeer / protocol

Livepeer protocol
MIT License
154 stars 45 forks source link

script: added script to verify pendingStake after migration #549

Closed kautukkundan closed 2 years ago

kautukkundan commented 2 years ago

What does this pull request do? Explain your changes. (required)

Specific updates (required)

running npx hardhat run scripts/verifyPendingStake.ts --network arbitrumMainnet will list all the addresses that migrated to L2 along with their pendingStake on L2 at the time of moving.

the addressList can then be copied into the transcoder array and then running npx hardhat run scripts/verifyPendingStake.ts --network mainnet will fetch the pendingStake on L1 of the same address after last reward call was made on L1

How did you test each of these updates (required)

Does this pull request close any open issues?

closes https://github.com/livepeer/internal-project-tracking/issues/331

Checklist: