feat: add Soroban token, authorization, footprint, and resource analysis examples - #263
Merged
Dantama022 merged 2 commits intoAug 31, 2026
Conversation
|
@InfamousCanary Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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
This PR adds four advanced Soroban examples covering token contract interaction, authorization inspection, ledger footprints, and transaction resource/fee analysis.
Added
116-soroban-token-contracttotal_supplyScValvalues117-soroban-auth-treeScValargument types118-ledger-footprint-analysis119-soroban-resource-fee-analysisRunner and Documentation
Validation
The following checks passed:
npx tsc --noEmitgit diff --check41/41targeted tests passedLive runner validation completed successfully for:
npm run run-example 116-soroban-token-contractnpm run run-example 117-soroban-auth-treenpm run run-example 118-ledger-footprint-analysisnpm run run-example 119-soroban-resource-fee-analysisThe live footprint and resource examples successfully simulated and compared two contract invocations.
The public Testnet RPC used during validation did not expose CPU instruction or memory-consumption values. Example 119 therefore displayed those fields as unavailable while continuing to report transaction resource limits, ledger access, fee components, estimated total cost, and invocation comparison as intended.
No transactions are signed or submitted by these examples; contract operations are simulation-only.
Closes #163
Closes #164
Closes #165
Closes #166