Merged
Conversation
Contributor
|
bugbot run |
There was a problem hiding this comment.
Pull request overview
This PR enhances the Soroban examples project by restructuring and expanding the codebase. It refactors the monolithic SorobanExamples.cs file into multiple focused example modules and adds new advanced contract demonstrations including token contracts, atomic swaps, increment contracts, and events contracts.
Key changes:
- Restructured examples into modular, single-responsibility classes
- Added four new advanced contract examples (token, atomic swap, increment, events)
- Introduced shared helper utilities and WASM path constants
- Added package references for System.Net.Http and System.Text.RegularExpressions
Reviewed changes
Copilot reviewed 23 out of 27 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| StellarDotnetSdk/StellarDotnetSdk.csproj | Added System.Net.Http and System.Text.RegularExpressions package references |
| Examples/Soroban/StellarDotnetSdk.Examples.Soroban.csproj | Added package references and new WASM file configurations |
| Examples/Soroban/SorobanExamples.cs | Removed monolithic examples file (542 lines deleted) |
| Examples/Soroban/Program.cs | New orchestrator for all Soroban examples with structured sections |
| Examples/Soroban/Helpers/SorobanWasms.cs | Constants for WASM file paths |
| Examples/Soroban/Helpers/SorobanHelpers.cs | Shared helper methods for transaction polling and simulation |
| Examples/Soroban/Examples/*.cs | Modular example classes for each Soroban operation and contract type |
| Examples/Horizon/StellarDotnetSdk.Examples.Horizon.csproj | Added System.Net.Http and System.Text.RegularExpressions package references |
jopmiddelkamp
approved these changes
Dec 11, 2025
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.
Types of changes
Implements #84
Note
Adds a suite of modular Soroban examples (contracts, tokens, atomic swap, events, TTL, ledger queries, retry config) with shared helpers and Program orchestrator; includes WASM assets and updates project references; removes the old monolithic example.
UploadContractExample,CreateContractExample,InvokeContractExample,ExtendContractFootprintTtlExample,GetHealthExample,GetNetworkExample,GetLatestLedgerExample,GetLedgerEntry{Account,ClaimableBalance,ContractCode,ContractData}Example,IncrementContractExample,EventsContractExample,TokenContractExample,AtomicSwapExample.Helpers/SorobanHelpers.cs(server, simulate/poll, ledger key),Helpers/SorobanWasms.cs(WASM paths).Program.csto orchestrate running examples.Examples/Soroban/SorobanExamples.cs.StellarDotnetSdk.Examples.Soroban.csproj(wasm/*_contract.wasm).System.Net.HttpandSystem.Text.RegularExpressionspackage references toExamples/Horizon,Examples/Soroban, andStellarDotnetSdkprojects.Written by Cursor Bugbot for commit b5eea28. Configure here.