Skip to content

list-of-operations.mdx: fix insecure JS SDK links and add missing JS links for newer operations #2563

Open

Description

@oceans404

Context

docs/learn/fundamentals/transactions/list-of-operations.mdx lists every operation with per-language SDK links. The JavaScript links have two problems:

  1. 12 links use http:// instead of https:// for stellar.github.io/js-stellar-sdk/... (createAccount, payment, pathPaymentStrictSend, manageBuyOffer, setOptions, changeTrust, allowTrust, accountMerge, manageData, bumpSequence, clawback, and one more). Find them with:
    rg -n 'http://stellar\.github\.io' docs/learn/fundamentals/transactions/list-of-operations.mdx
    
  2. Many operations omit the JavaScript link entirely even though the JS SDK implements them. Operations that currently list only Java and/or Go SDK links: createClaimableBalance, claimClaimableBalance, beginSponsoringFutureReserves, endSponsoringFutureReserves, revokeSponsorship, clawbackClaimableBalance, setTrustLineFlags, liquidityPoolDeposit, liquidityPoolWithdraw, invokeHostFunction, extendFootprintTtl, restoreFootprint. All of these exist as Operation.* builders in the JS SDK (documented in the core-transactions reference).

What to do

  1. Change all http://stellar.github.io links to https://.
  2. For each operation missing a JavaScript link, add one. Verify each URL resolves before committing (the SDK docs site layout changed recently, so confirm whether per-method anchors like Operation.html#.createClaimableBalance still exist or whether links should target https://stellar.github.io/js-stellar-sdk/reference/core-transactions/ anchors instead).
  3. Keep the format consistent with the existing per-operation link rows.

Acceptance criteria

  • rg 'http://stellar\.github\.io' docs/ returns no hits.
  • Every operation row that has any SDK links includes a JavaScript link, and all JS links resolve.

Metadata

Metadata

Assignees

Type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions