- Implement `mapping.ts` that maps IR -> control descriptors and validators. - Implement `components/ConfirmModal.tsx` in templates showing accounts, signers, and estimated fee. - Add `simulate` button in templates to call `program.simulate` before `rpc()` if Anchor supports. **Acceptance criteria** - Generated pages include preflight modal and simulate button. - Filling forms and clicking `Preview` shows accurate accounts info pulled from IR.
Implement
mapping.tsthat maps IR -> control descriptors and validators.Implement
components/ConfirmModal.tsxin templates showing accounts, signers, and estimated fee.Add
simulatebutton in templates to callprogram.simulatebeforerpc()if Anchor supports.Acceptance criteria
Generated pages include preflight modal and simulate button.
Filling forms and clicking
Previewshows accurate accounts info pulled from IR.