Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add 41 unit tests for `mechanisms/svm/exact/v1/facilitator.py` — the only SVM V1 source file without dedicated coverage after PR #151 landed `test_exact_v1_client.py`. `test_facilitator.py` covers `ExactSvmFacilitatorScheme` (V2) and only borrows `ExactSvmSchemeV1` for one shared-cache cross-version case; the V1 verify/settle pipelines themselves had no direct coverage. New `test_exact_v1_facilitator.py` covers: constructor + scheme/`caip_family` attributes + default-vs-injected `SettlementCache`; `get_extra` / `get_signers` (multi-address selection, fresh-list return); V1 top-level `scheme` and `network` mismatch gates; `feePayer` extra missing/`None`/non-string/unmanaged paths; transaction decode failures (invalid base64, empty payload); a happy-path verify against a real V1 transaction built via `ExactSvmClientV1` with mocked RPC, plus V1-specific `max_amount_required` exact/below thresholds, mint mismatch, recipient ATA mismatch, `fee_payer_transferring_funds` safety, memo-extra match/mismatch, simulation-failure surfacing the underlying message, and sign-failure-during-verify mapping to `transaction_simulation_failed`; compute-budget price-cap gate via `MAX_COMPUTE_UNIT_PRICE_MICROLAMPORTS` patching; settle short-circuit on verify failure (network reported from payload), happy-path returning `mockSignature123` with `send_transaction` + `confirm_transaction` call ordering, send/confirm/missing-feePayer error paths surfacing `transaction_failed`, fee-payer propagation into `sign_transaction`, duplicate-settlement cache (same-instance + cross-instance shared-cache), and a helper round-trip smoke test ensuring the V1 client output decodes to the 3–6 instruction range the facilitator accepts.
Loading
Loading