Repository navigation
feat: bring the Soroban vault in-repo with tests, CI and relay readback - #34
Merged
Merged
Conversation
The relay drove a contract that lived in a sibling repository, so the repo had no reviewable on-chain code. Add a compatible splitstream-vault contract with the Merkle claim path, pin the shared golden fixture in Rust, build the wasm in CI, and verify posted roots by reading the cycle back on-chain. Also fix ledger close time parsing for the SDK's unix-seconds string, and record that the required `npm run check` status check name is already correct. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
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.
What
Closes the gap that made this repo look like a TypeScript wrapper around an unverifiable deployed artifact: the on-chain half now lives here.
contracts/vault/— a Sorobansplitstream-vault(soroban-sdk 29.0.1) withinitialize,deposit,post_cycle_root,challenge_and_replace_root,credit_claim,withdraw, and viewsget_cycle_info,get_latest_cycle,get_balance,has_claimed,get_total_credited.CycleInfokeeps the shapeparseCycleInfodecodes, so the relay is unchanged.test/fixtures/merkle.golden.json.contractjob — fmt, tests, clippy-D warnings, andstellar contract build(stellar-cli 30.0.1,wasm32v1-none).verifyPostedCycle()readsget_cycle_infoback after posting and fails on root/total mismatch;ledgerCloseTime()now parses the RPC's unix-seconds string (was an Invalid Date).@stellar/stellar-sdk17.0.1 →^17.4.0(old pin couldn't parse the current ledger header).change.mdrecords the full change set.Verification
cargo test --workspace --all-targetscargo fmt --all -- --check/cargo clippy … -D warningsstellar contract build --package splitstream-vaultnpm run typecheck/npm test/npm run checkDeployed and initialized on testnet at
CBW35L2YQUIPK32XZKT2DJLXU3YNI7KRAFV5WWPR7VF6GUUEINI3ABDN(throwaway admin key, not in the repo; empty vault). The state-changing relay path was proven on a separate throwaway instance and read back on-chain.Notes
.github/splitstream.ymldeliberately unchanged — it still points at the org treasury.credit_claimis correctly blocked for 24h after a root is posted.npm run check; the push ruleset confirmed that is the expected context, so issue ruleset: main requires a status check named 'ci', but this repo only reports 'npm run check' — no PR can merge #15 needs no rename.