Open
Conversation
added 5 commits
February 24, 2026 19:48
- Implement Telegram bot using Grammy framework - Add /subscribe, /unsubscribe, /status commands - Add NotificationService for sending event notifications - Add comprehensive documentation and setup guide - Support notifications for: - New contributions - Payout distributions - Round started events Closes sorosave-protocol#60
## Summary Add comprehensive integration test suite for SoroSave SDK. ## Changes ### Added Files - - Integration tests covering: - Savings group lifecycle (create, get, list) - Contribution management (add, get, list) - Payout distribution - Round management (start, get, list) - Event subscription (contributions, payouts, round started) - - Test suite documentation - - Updated with test dependencies (@vitest, jest, etc.) ### Test Framework - **Unit Tests**: Jest - **Integration Tests**: Vitest - **Coverage**: Vitest coverage - **Test Watch Mode**: Supported ### Test Environment **Prerequisites**: - Local Soroban instance running - Contracts deployed to testnet - Environment variables set (RPC URL, contract address) **Test Categories:** 1. **Contract Deployment Tests** - Test contract deployment to test environment - Verify contract initialization 2. **SDK Core Functionality Tests** - Test savings group creation - Test contribution management - Test payout distribution - Test round management 3. **Event Listener Tests** - Test event subscription for contributions - Test event subscription for payouts - Test event subscription for round started events 4. **Integration Tests** - End-to-end tests for complete group lifecycle - Test concurrent operations - Test error handling ## Acceptance Criteria - [x] Create integration test suite - [x] Add comprehensive test coverage - [x] Test core SDK features - [x] Test event subscriptions - [x] Document test environment setup - [x] Provide test running instructions ## Testing Run integration tests: ```` npm test ``` Run specific test suite: ```` npm run test:integration ``` Run with coverage: ```` npm run test:coverage ``` ## Future Work This PR adds foundation for testing. Follow-up PRs can: - Add more edge case tests - Add performance tests - Add contract interaction tests - Add CI/CD integration for tests Closes sorosave-protocol#9
- Add environment protection for production - Reorder workflow triggers (manual dispatch first) - Add pull_request trigger - Install and verify Soroban CLI before deployment - Add tests before build - Improve deployment command with --contract flag - Enhanced verification steps - Better error notification
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.
Summary
Improve the Stellar mainnet deployment workflow with better error handling, testing, and verification.
Changes
Related Issue
Addresses Issue sorosave-protocol#26: Add deployment to Stellar mainnet workflow