feat: CI/CD pipeline, WASM size checks, nutrition outcomes, claim reconciliation (#392-#395)#1
Closed
hartz0 wants to merge 1 commit into
Closed
feat: CI/CD pipeline, WASM size checks, nutrition outcomes, claim reconciliation (#392-#395)#1hartz0 wants to merge 1 commit into
hartz0 wants to merge 1 commit into
Conversation
#394 - CI/CD pipeline: add fmt/clippy to ci.yml, add deploy-testnet.yml (optimized WASM deploy with PR comment summary), add weekly security-audit.yml #395 - Makefile: build/optimize/check-size/test/fmt/clippy/audit targets; ci.yml now runs wasm-opt -O4 and enforces 500 KB per-binary size limit #393 - nutrition_care contract: create_plan, link_outcome (emits NutrOut event), get_plan_outcomes (chronological, version-linked), update_plan_version #392 - medical_claims contract: submit_claim, reconcile_claim (transactional, emits ClaimRcn event with amounts + outstanding), get_unreconciled_claims (configurable age threshold), dispute_claim; financial_records contract: record_payment, get_payment
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
Implements issues #392, #393, #394, and #395.
#394 — CI/CD pipeline
ci.yml: addedcargo fmt --check,cargo clippy -- -D warnings, andbinaryeninstall; tests now run with--workspacedeploy-testnet.yml: builds optimized WASM binaries, deploys each contract to Stellar testnet usingSTELLAR_SECRET_KEYsecret, posts deployment summary to PR commentssecurity-audit.yml: weeklycargo auditon a cron schedule#395 — WASM binary size profiling
Makefilewithbuild,optimize(wasm-opt -O4),check-size(500 KB limit per binary),test,fmt,clippy,audittargetsmake check-sizeafter compilation; fails if any binary exceeds the limit#393 — Nutrition care outcomes
nutrition_carecontract:create_plan,link_outcome(emitsNutrOutevent, links to active plan version),get_plan_outcomes(chronological),update_plan_version#392 — Financial claim reconciliation
medical_claimscontract:submit_claim,reconcile_claim(transactional paid/outstanding update, emitsClaimRcnevent with claim amount, payment amount, outstanding balance),get_unreconciled_claims(insurer + configurable age threshold),dispute_claimfinancial_recordscontract:record_payment,get_paymentTesting
Each new contract includes inline unit tests covering the happy path, partial payments, chronological ordering, age-threshold filtering, and unauthorized-access panics.