Skip to content

chore: initialize Soroban accountability vault contract workspace#321

Closed
1nonlypiece wants to merge 1 commit into
mainfrom
chore/init-soroban-contracts
Closed

chore: initialize Soroban accountability vault contract workspace#321
1nonlypiece wants to merge 1 commit into
mainfrom
chore/init-soroban-contracts

Conversation

@1nonlypiece
Copy link
Copy Markdown
Contributor

Initializes a Soroban Rust contract workspace under contracts/ for Disciplr accountability vaults/staking, to ground the contract issue backlog.

What this adds

  • contracts/ Cargo workspace (soroban-sdk = "23", #![no_std])
  • contracts/accountability_vault contract implementing the vault lifecycle: create_vault, stake, check_in, slash_on_miss, claim, withdraw, plus a read-only get_vault
  • VaultStatus enum mirroring PersistedVault.status in src/types/vaults.ts; emitted events align with topics consumed by src/services/eventParser.ts
  • 6 unit tests in src/test.rs (create/stake, check-in+claim, slash-on-miss, withdraw, and two failure cases) — all passing under cargo test
  • contracts/README.md documenting the lifecycle and backend integration points

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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