📌 Description
Currently, the frontend is not integrated with the Soroban smart contract for invoking project-related transactions (e.g., create project, vote, fund, release milestone, refund). This issue aims to implement a frontend utility function that allows secure and seamless invocation of the smart contract using Stellar's Soroban SDK.
🎯 Goals
- ✅ Develop a reusable contract invoke function in the frontend.
- ✅ Integrate Soroban SDK for contract interactions.
- ✅ Can handle transactions like
create_project, vote_project, fund_project, etc.
- ✅ Ensure error handling & proper transaction signing.
- ✅ Store the transaction hash in PostgreSQL after execution.
💡 Proposed Solution
- Create a utility function (
invokeSorobanContract.ts) inside lib/.
- Use Stellar SDK to sign and submit transactions.