Repository navigation
Teach the JS SDK bindings generator instead of the deprecated CLI command - #2985
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
🤖 Automated message from the Stellar Triage Bot. Reviewing because the issue lane opened this PR for #2968. Verified: the flags, the The 2 broken links that External-origin change, so a maintainer merges this. |
ElliotFriend
left a comment
There was a problem hiding this comment.
Flags and package naming verified against v17.4.0, and the generator commands from fully-typed-contracts and verify-trustlines produce working packages on testnet. One change before merge:
hello-world-frontend.mdx:100: the import is./packages/hello_world, but the file issrc/pages/index.astro, so the path should be../../packages/hello_world. Since this PR rewrites that block, please fix it here.
Heads up, no action needed: soroban-contract-init-template.mdx continues from dapp-frontend.mdx, so the two parts will teach different binding commands until the #2968 decision on that page lands. That will be handled separately.
|
/triage |
|
🤖 Automated message from the Stellar Triage Bot. Back on this because @ElliotFriend asked with /triage. Fixed: the import in External-origin change, so a maintainer merges this. |
🤖 Automated message from the Stellar Triage Bot.
Refs #2968
Working this because @oceans404 added bot:take. This PR fixes 5 of the 7 pages. It says "Refs", not "Closes", because two pages need a maintainer decision (see the issue).
Changes:
stellar contract bindings typescriptwithnpx @stellar/stellar-sdk generateonhello-world-frontend.mdx,fully-typed-contracts.mdx,verify-trustlines.mdx,frontend-guide.mdxanddapp-frontend.mdx.Differences between the two generators that the pages now handle:
hello-world-frontend.mdxnow resolves the alias withstellar contract alias show.networksexport. The Hello World client now passescontractIdandnetworkPassphrase.--contract-name(defaultcontractfor a contract ID) and turns_into-.verify-trustlines.mdxpasses--contract-name=sac.dapp-frontend.mdximportshello-world.--networkis required for network sources and takes onlytestnet,mainnet,futurenetorlocalnet.Sources: js-stellar-sdk v17.4.0
src/cli/index.ts,src/cli/util.ts,src/bindings/generator.ts,src/bindings/config.ts; thebinmap of@stellar/[email protected]; stellar-clisoroban-spec-typescript/src/project_template/package.json(^16.0.1).Checks:
pnpmneeds approval in this lane, sopnpm format:mdx,pnpm checkandpnpm check:linksdid not run locally. Thechecksjob runs them on this PR.Not changed (already on main):
hello-world-frontend.mdximports./packages/hello_worldfromsrc/pages/, which points insidesrc/pages/.