Skip to content

Generate Soroban contract TypeScript bindings#476

Open
TUPM96 wants to merge 1 commit into
AgesEmpire:mainfrom
TUPM96:codex/contract-bindings-443
Open

Generate Soroban contract TypeScript bindings#476
TUPM96 wants to merge 1 commit into
AgesEmpire:mainfrom
TUPM96:codex/contract-bindings-443

Conversation

@TUPM96
Copy link
Copy Markdown

@TUPM96 TUPM96 commented May 25, 2026

Closes #443

Summary

  • Add stellar-swipe/scripts/generate_abi.sh to generate TypeScript bindings from compiled Soroban WASM artifacts.
  • Export abi.json beside each generated binding package using stellar contract info interface.
  • Skip helper WASM artifacts that do not expose a Soroban contract interface, so shared/helper crates do not break generation.
  • Wire CI to generate and upload stellar-swipe/bindings/** after the optimized WASM build.
  • Document the local generation workflow and wrapper script.

Validation

  • bash -n stellar-swipe/scripts/generate_abi.sh; bash -n scripts/generate_abi.sh
  • Smoke-tested generate_abi.sh with a fake stellar executable to verify TypeScript binding generation, abi.json output, and non-contract WASM skipping.
  • git diff --cached --check

Note

  • cargo fmt --all -- --check is currently blocked on the repository baseline by existing formatting drift plus parse errors in contracts/auto_trade/src/test.rs and contracts/trade_executor/src/lib.rs; this PR only changes shell/docs/workflow files.

Copilot AI review requested due to automatic review settings May 25, 2026 10:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

Implement contract ABI generation script

2 participants