Skip to content

Implement a script to auto-generate TypeScript bindings from the contract ABI #530

Description

@Abdulazeem-code

Description

Frontend developers manually copy contract IDs and write types, which is error-prone.

Proposed Solution

Use the Soroban CLI (soroban contract bindings typescript) to generate a TypeScript package for the contract, and wire it into the build step.

Acceptance Criteria

  • Build script runs bindings generator
  • Generated types exported to a shared packages/types directory
  • Frontend successfully imports generated client

Suggested Implementation Areas

package.json, scripts/generate-bindings.sh

Impact

Ensures end-to-end type safety between the Rust smart contract and the Node/React frontend.

Activity

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

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programsmart-contractIssues related to the Soroban smart contracttooling

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions