juice-interface
juice-interface copied to clipboard
[Parent] V1/V2 migration flow
Support v1 token mgiration for V2 projects.
- [x] https://github.com/jbx-protocol/juice-interface/issues/1333
- [x] https://github.com/jbx-protocol/juice-interface/issues/1335
- [ ] https://github.com/jbx-protocol/juice-interface/issues/1334
https://discord.com/channels/775859454780244028/978435567090012190
specs: https://discord.com/channels/775859454780244028/786985806396784690/985768132872380446
Two txs:
- add the terminal to the project in the JBDirectory.
https://info.juicebox.money/api/contracts/jbdirectory/write/setterminalsof
- initialize by sending the v1 projectId to associate with the v2 project.
https://github.com/jbx-protocol/v1-v2-migration-terminal/blob/5193f4dec08d46fe122b5c805dcb9e71abbabb35/contracts/JBV1V2MigrationTerminal.sol#L147