feat: multisig events, pytest infra, WASM sizes, propose withdrawal UI#242
Merged
codebestia merged 4 commits intoJun 26, 2026
Conversation
codebestia#130 - Extend Stellar listener to sync multisig proposal events codebestia#142 - Set up pytest infrastructure for ai_agent codebestia#140 - Track and report WASM binary sizes on PRs codebestia#131 - Build Propose Withdrawal UI on treasury page
|
@vic-Gray 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! 🚀 |
Owner
|
Hello @vic-Gray |
codebestia
approved these changes
Jun 26, 2026
codebestia
left a comment
Owner
There was a problem hiding this comment.
LGTM!
Thank you for your contribution.
codebestia
added a commit
that referenced
this pull request
Jun 26, 2026
…wasm-sizes-propose-withdrawal feat: multisig events, pytest infra, WASM sizes, propose withdrawal UI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements four tracked issues across the backend, AI agent, contracts CI, and frontend.
Changes
#130 — Extend Stellar event listener to sync multisig events
Files:
apps/backend/src/services/stellarListener.ts,apps/backend/src/db/schema.ts,apps/backend/src/index.tstreasury_proposalsDB table with idempotent upsert on(contractId, proposalId)TreasuryProposalEventtype covering all five event types:proposal_created,proposal_approved,proposal_rejected,proposal_executed,proposal_expiredStellarListenerDepswith optionalfetchTreasuryEvents/persistTreasuryEventhooks — fully backwards-compatibledefaultPersistTreasuryEventupserts status + vote counts and emitstreasury_proposal_updatedSocket.IO event to the conversation room (or atreasury:<contractId>fallback room)treasury_proposal_updatedpayload:{ proposalId, status, approvalsCount, rejectionsCount }buildTreasuryRpcFetcherfor production RPC wiringGROUP_TREASURY_CONTRACT_IDenv var activates the treasury sub-loop inindex.ts#142 — Set up pytest infrastructure for ai_agent
Files:
apps/ai_agent/pyproject.toml,apps/ai_agent/tests/conftest.py,apps/ai_agent/tests/__init__.py[project.optional-dependencies] devwithpytest>=8.0.0,httpx>=0.27.0,pytest-mock>=3.14.0,pytest-cov>=5.0.0[tool.pytest.ini_options]withtestpaths = ["tests"], coverage via--cov, andpythonpath = ["."][tool.coverage.run]omitting thetests/directory itselftests/conftest.pyprovides four shared fixtures importable from any test file:set_openai_key(autouse) — setsOPENAI_API_KEYvia monkeypatch so no test hits a real key checkclient— FastAPITestClientfor the main appmock_openai— patchesmain.OpenAImock_weaviate— patchesmain.weaviate.connect_to_localuv sync --extra dev && uv run pytest#140 — Track and report WASM binary sizes on pull requests
Files:
.github/workflows/contracts-ci.ymltest-and-buildjob*.wasmfiles intarget/wasm32-unknown-unknown/release/and builds a size table$GITHUB_STEP_SUMMARY(visible in every run's Actions summary)pull_requestevents, posts the table as a PR comment using<!-- wasm-size-report -->as a sentinel — subsequent pushes update the existing comment in-place (no duplicates)::errorannotation if any WASM exceeds 100 KB (configurable viaTHRESHOLD_BYTES)opt-level = "z",strip = "symbols"perCargo.toml)#131 — Build "Propose Withdrawal" UI on the Treasury page
Files:
apps/web/src/app/app/treasury/page.tsx,apps/web/src/components/treasury/ProposeWithdrawalModal.tsx,apps/backend/src/routes/treasury.ts,apps/backend/src/app.tsFrontend
ProposeWithdrawalModalwith four fields:<input type="number" min="0.0000001">blocks <= 0 client-side/^G[A-Z2-7]{55}$/; inline error shown before submitonSuccessfor list refreshBackend
POST /treasury/proposeroute with Zod validation (amount > 0, valid Stellar address, valid TTL){ proposer, amount, token, recipient, ttlLedgers }; ready for Soroban multisig wiringTesting
pnpm --filter backend tsc --noEmit— zero new errorspnpm --filter web tsc --noEmit— cleanuv sync --extra dev && uv run pytest— no collection errorsCloses #130
Closes #142
Closes #140
Closes #131