ArbitrumFoundation / governance

Apache License 2.0
73 stars 27 forks source link

Add option to export tx information in SAFE format #294

Open fredlacs opened 4 months ago

fredlacs commented 4 months ago

Currently a JSON is created as output for proposal data https://github.com/ArbitrumFoundation/governance/blob/dc64493e462c2d29cbb53da28218e62c7cd003d2/scripts/proposals/SwitchManagerRoles/SwitchManagerRoles.json

It would be useful to instead have it be possible to automatically export the transaction format that can be ingested in the SAFE ui. This will minimise errors.

Format would be just like they generate in the UI https://github.com/safe-global/safe-react-apps/blob/8952156607a0f432555e5d699ec21eaea4f25f67/apps/tx-builder/src/store/transactionLibraryContext.tsx#L267-L305

They prob have something in their sdk? but I couldn't find