Uh oh!
There was an error while loading. Please reload this page.
chore: output BatcherPaymentService addresses as JSON - #1698
Conversation
BatcherPaymentService addresses as JSONBatcherPaymentService addresses as JSON| --sig "run(string batcherConfigPath, string outputPath)") | ||
| # Extract the batcher payment service values from the output | ||
| # new_aligned_layer_service_manager_implementation=$(echo "$forge_output" | awk '/1: address/ {print $3}') |
There was a problem hiding this comment.
Shouldn't we do the same change as in [contracts/scripts/deploy_batcher_payment_service.sh](https://github.com/yetanotherco/aligned_layer/pull/1698/files#diff-4a582041a459061d1464141cee38003ede0385187a21ad63ffdb01dc84cdf8c5)
Both solutions work, but just for keep consistency
batcher_payment_service_proxy=$(jq -r '.addresses.batcherPaymentService' $BATCHER_PAYMENT_SERVICE_OUTPUT_PATH)
batcher_payment_service_implementation=$(jq -r '.addresses.batcherPaymentServiceImplementation' $BATCHER_PAYMENT_SERVICE_OUTPUT_PATH)
There was a problem hiding this comment.
Yes. I didn't do it just to minimize the amount of changes. I'll add it in a bit
There was a problem hiding this comment.
Done. I also removed some stale comments (0c0bbc8), lmk if that's OK
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@MegaRedHand Are you aware the batcher payment addresses are currently being outputted in |
I saw the bash script uses An alternative could be to do that from the Solidity script. I can change to that approach if that seems better. |
Co-authored-by: Uriel Mihura <43704209+uri-99@users.noreply.github.com>
uri-99
commented
Jan 7, 2025
If the issue arises from the usage of Alternatevly, if we need to have these addresses in another file, we would have to make a big migration since many components read the BatcherPayment addresses from the existing output file. |
MegaRedHand
commented
Jan 7, 2025
Sure! Just to clarify, the changes in this PR don't touch the part that updates the |
Co-authored-by: Uriel Mihura <43704209+uri-99@users.noreply.github.com>
Co-authored-by: Uriel Mihura <43704209+uri-99@users.noreply.github.com>
Co-authored-by: Uriel Mihura <43704209+uri-99@users.noreply.github.com>
Co-authored-by: Uriel Mihura <43704209+uri-99@users.noreply.github.com>
Output BatcherPaymentService addresses as JSON
Description
This PR changes the
BatcherPaymentServicedeployment script to follow the convention of outputting the addresses of deployed contracts in a JSON file.Type of change
Refactor
Checklist
testnet, everything else tostaging