Description
apps/web/lib/stellar.ts stubs connectWallet() and signTransaction(). These are required for any authenticated user action (posting jobs, releasing milestones, opening disputes).
Requirements
connectWallet() — open the StellarWalletsKit modal; on selection persist public key to a React context/store; return the public key
signTransaction(xdr) — pass the XDR string to the connected wallet for signing; return signed XDR
- Handle user cancellation gracefully (return
null, do not throw)
- Support Freighter as the default wallet; kit handles others
Acceptance Criteria
- Connecting Freighter in a browser returns a valid
G… public key
- Signing a test transaction with Freighter returns a valid signed XDR string
- Cancelling the modal returns
null without an unhandled error
Description
apps/web/lib/stellar.tsstubsconnectWallet()andsignTransaction(). These are required for any authenticated user action (posting jobs, releasing milestones, opening disputes).Requirements
connectWallet()— open theStellarWalletsKitmodal; on selection persist public key to a React context/store; return the public keysignTransaction(xdr)— pass the XDR string to the connected wallet for signing; return signed XDRnull, do not throw)Acceptance Criteria
G…public keynullwithout an unhandled error