Skip to content

Auto-generate Soroban client bindings from contract spec #167

@Nanle-code

Description

@Nanle-code

Labels: soroban, developer-experience

Description

ContractABI.jsx and contractInvoker.js support manual invocation. Advanced devs need spec-driven arg forms (like Stellar CLI contract bindings).

Tasks

Parse contract spec from fetchContractInfo in src/lib/stellar.ts.
Generate dynamic form fields in ContractInteraction.jsx from spec types (ScVal mapping).
Document in docs/api/stellar.md.
Acceptance criteria

Enter contract ID → function list populated from on-chain spec.

Args validated before simulate.
Files

src/lib/stellar.ts (fetchContractInfo, simulateContractCall)
src/lib/contractInvoker.js
src/components/dashboard/ContractInteraction.jsx
src/components/dashboard/ContractABI.jsx

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions