Skip to content

Implement shared validators for params/state/auth#1

Draft
Shecodes174 wants to merge 174 commits into
mainfrom
feat/shared-validators
Draft

Implement shared validators for params/state/auth#1
Shecodes174 wants to merge 174 commits into
mainfrom
feat/shared-validators

Conversation

@Shecodes174

Copy link
Copy Markdown
Owner

This PR implements shared validation utilities for Soroban smart contracts.

Summary

  • Created shared soroban-validation crate with reusable validation functions
  • Added typed ValidationError enum with categorized error codes
  • Implemented parameter, state, and authorization validation functions
  • Updated validation patterns and authentication examples to use shared validators
  • Updated documentation and workspace configuration

Acceptance Criteria Met

  • Create shared validators for params/state/auth ✅
  • Return typed validation errors ✅
  • Apply helpers in representative contract paths ✅
  • Changes focused and avoid unrelated refactors ✅
  • Aligned with existing Soroban cookbook conventions ✅

Adeswalla and others added 30 commits March 24, 2026 09:25
…kbook#275)

- Add rlib to crate-type in Cargo.toml to enable snapshot generation
- Rewrite tests to use client pattern (register_contract + client calls)
- Convert should_panic tests to try_* pattern for proper error handling
- Add snapshot testing documentation to guides/testing.md
…-auth-integration-tests

feat: add multi-party auth integration tests (2-of-3, 3-of-3, cross-f…
Issue#283: Define structured event schemas and topic taxonomy
…rage-job

ci: run full test suite with coverage
…ce-storage

docs: document instance storage pattern
…nt-error-propagation

[259] Implement Error Propagation
…/issue-209-example-categories

chore: define example categories (Issue Soroban-Cookbook#209)
…ssue-155-scripts-documentation

docs(scripts): add parameter descriptions to scripts/README.md
…ssue-189-docs-index

docs: create docs/README.md documentation index (Soroban-Cookbook#189)
…for-each-category

Feat/readme for each category
…/issue-212-rust-toolchain

build: configure soroban rust toolchain (Issue Soroban-Cookbook#212)
…mple-readme

docs(04-events): add comprehensive README for structured event patterns
…asics-readme-update

docs(basics): update README with all examples, difficulty ratings, an…
docs: create comprehensive examples index for basics
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.