Skip to content

fix: rebase SDK and CLI on the deployed Soroban vault ABI - #24

Merged
Oyinkans0la12 merged 1 commit into
mainfrom
refactor/soroban-abi-rebase
Nov 28, 2026
Merged

Oyinkans0la12 merged 1 commit into
mainfrom
refactor/soroban-abi-rebase

Conversation

@Oyinkans0la12

Copy link
Copy Markdown
Collaborator

What changed

  • Cycle ids are encoded as u64, and cycle state is read with get_cycle_info(...) -> Option<CycleInfo> (the removed get_cycle_root remains only as an SDK alias).
  • The contract error table now matches the deployed 1–19 discriminants, and the liability reads (get_total_credited, get_vesting_reserved, get_available_funds) are exposed.
  • claim verifies the recomputed root, the on-chain root, and the 24-hour challenge window before signing.
  • status reports post/challenge/open/final cycle states and surfaces malformed manifests.
  • report checks the manifest root against the on-chain root and writes a warning when they differ.
  • Docs, deployed address, change.md, and new CHANGELOG.md for the 0.2.0 release.
  • Opt-in live Testnet smoke test: SPLITSTREAM_TESTNET_E2E=1 npm test -w @splitstream/sdk (read simulations only).

Verification

  • npm run typecheck clean.
  • npm test → 98 passing.
  • Live Testnet run of the smoke test passed against CB456KGXH4233BHW5BUEJMN6OJ4ZMWMPP3OXJU5HVQ2T2F7A7XHWLTAT.

The 0.1.x packages targeted an earlier draft of splitstream-core: cycle ids
were u32, get_cycle_root had been removed in favour of get_cycle_info, and the
error table was stale, so reads and claims failed against the live Testnet
vault. This aligns both packages with the deployed contract, makes the claim
flow verify the on-chain root and 24-hour challenge window before signing,
records root mismatches in the transparency report, and adds an opt-in live
Testnet smoke test plus 0.2.0 release notes.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@Oyinkans0la12
Oyinkans0la12 merged commit e16b0d1 into main Nov 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant