feat: add contract client generation workflow for frontend (#81)#115
Conversation
…r#81) - Add generate-contract-bindings.sh script for TypeScript binding generation - Document full workflow in docs/CONTRACT_BINDINGS.md (231 lines) - Update README section 9 with scripts and docs references - Configure .gitignore for generated bindings folder - Add npm script: npm run gen:bindings - Document frontend integration points (contractClient.ts, api.ts, useFreighter.ts) - Include CI/automation guidance for regeneration - All acceptance criteria met: ✅ Repeatable generation command exists ✅ Output location documented ✅ Frontend integration points identified ✅ Contributors can regenerate without guesswork
|
Someone is attempting to deploy a commit to the ritik4ever's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@cyber-excel10 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
@ritik4ever Thank you for assigning me to this issue! I've completed the contract client generation workflow for issue #81. Important NoteWhile working on this, I noticed that README.md was accidentally deleted in a recent PR. I've restored it and included the latest updates in this PR. Could you please review:
Thanks for the opportunity to contribute to StellarStream. I have learnt a lot from the few task assigned to me . Looking forward to your feedback! |
Closes #81
Description
This PR implements the contract client generation workflow for StellarStream (issue #81) and restores the README.md file that was accidentally deleted.
What's included
Issue #81: Contract Client Generation Workflow
scripts/generate-contract-bindings.sh— Repeatable script to generate TypeScript bindings from deployed contractdocs/CONTRACT_BINDINGS.md— Comprehensive 231-line workflow guide covering:npm run gen:bindings— Easy-to-use npm script.gitignoreto exclude generated bindings folderREADME Restoration
Acceptance Criteria (Issue #81)
npm run gen:bindings)frontend/src/contracts/generated/)frontend/src/services/contractClient.ts— wrapper servicefrontend/src/services/api.ts— integration pointsfrontend/src/hooks/useFreighter.ts— wallet signingTesting