Skip to content

Add contract bindings subcommand for kmp - #2721

Merged
fnando merged 2 commits into
stellar:mainfrom
Soneso:contract-bindings
Sep 15, 2026
Merged

fnando merged 2 commits into
stellar:mainfrom
Soneso:contract-bindings

Conversation

@christian-rogobete

@christian-rogobete christian-rogobete commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds the stellar contract bindings kmp subcommand. Like the python, java, flutter, swift and php subcommands, it displays a link to the stellar-contract-bindings tool.

Why

stellar-contract-bindings 0.6.0b0 generates Kotlin Multiplatform bindings for the KMP Stellar SDK.

Known limitations

The bindings are not generated by the cli. The cli only displays the link to the stellar-contract-bindings tool, like the other subcommands above.

The kmp subcommand mirrors the python, java, flutter, swift, and php
stubs: binding generation is not implemented in the CLI and the
error points at the external stellar-contract-bindings tool.
FULL_HELP_DOCS.md carries the regenerated entries.
Copilot AI balanced review requested due to automatic review settings September 6, 2026 16:47
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Sep 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds the stellar contract bindings kmp command, directing users to the external Kotlin Multiplatform bindings generator.

Changes:

  • Registers and dispatches the new KMP subcommand.
  • Adds its external-tool error message.
  • Updates generated CLI documentation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
FULL_HELP_DOCS.md Documents KMP bindings usage.
cmd/soroban-cli/src/commands/contract/bindings/kmp.rs Implements the external-tool notice.
cmd/soroban-cli/src/commands/contract/bindings.rs Registers and dispatches the command.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread cmd/soroban-cli/src/commands/contract/bindings.rs
Copilot AI review requested due to automatic review settings September 15, 2026 18:25
@fnando fnando moved this from Backlog (Not Ready) to Needs Review in DevX Sep 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Suppressed comments (1)

cmd/soroban-cli/src/commands/contract/bindings.rs:34

  • This adds a new CLI route without the required soroban-test coverage. Please add an integration test that invokes stellar contract bindings kmp through the command entry point and asserts it reaches the KMP handler and returns the documented stellar-contract-bindings URL; otherwise a missing module registration, dispatch arm, or changed error message could go unnoticed.
    /// Generate Kotlin Multiplatform bindings
    Kmp(kmp::Cmd),

Note

Copilot is running an experiment and ran this review at Lite.

@fnando
fnando merged commit fb5ea66 into stellar:main Sep 15, 2026
229 of 230 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in DevX Sep 15, 2026
@christian-rogobete

Copy link
Copy Markdown
Contributor Author

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants