I wrote this script to perform the action here:
Can you validate it? I want to make sure I get it right, currently to validate I have been connecting to a wallet on a fuel dapp using it and just spot checking that it spits out the right address
You can run it by using the following command
npm run generate-predicate-addresses
and it outputs to generated/predicate-addresses.json
This is the branch: