Skip to content

docs: refresh stale docs.pyth.network URLs in on-chain contract comments#3719

Open
0xghost42 wants to merge 1 commit into
pyth-network:mainfrom
0xghost42:docs/3228-onchain-natspec-urls
Open

docs: refresh stale docs.pyth.network URLs in on-chain contract comments#3719
0xghost42 wants to merge 1 commit into
pyth-network:mainfrom
0xghost42:docs/3228-onchain-natspec-urls

Conversation

@0xghost42
Copy link
Copy Markdown

@0xghost42 0xghost42 commented May 19, 2026

Summary

Follow-up to #3718 (TS/JS SDK README refresh) covering the same stale docs.pyth.network/documentation/pythnet-price-feeds/* paths embedded in on-chain NatSpec / Move / Rust doc-comments. The legacy URL space has been retired in favour of price-feeds/core/* under the developer-hub content tree, so these doc-comments currently link to 404s for anyone reading the source on chain or via a block explorer.

Refs #3228.

URL mapping applied

Old path New path
documentation/pythnet-price-feeds/best-practices price-feeds/core/best-practices
documentation/pythnet-price-feeds/on-demand price-feeds/core/use-real-time-data/pull-integration/<chain>
documentation/pythnet-price-feeds/on-demand#fees price-feeds/core/use-real-time-data/pull-integration/<chain>#update-fee
documentation/pythnet-price-feeds/cosmwasm price-feeds/core/contract-addresses/cosmwasm
documentation/pythnet-price-feeds (bare root) price-feeds/core/use-real-time-data/pull-integration/aptos (only call-site was in aptos/pyth.move pointing at the integration walkthrough)

Notes:

  • For chain-specific on-demand mentions I picked the chain-specific pull-integration/<chain> page over the parent use-real-time-data index — each chain page surfaces the update flow + fee discussion the original link was trying to point at.
  • The cw-contract example specifically wanted the reader to find a contract address, so contract-addresses/cosmwasm is the right landing page rather than pull-integration/cosmwasm.

Files touched

Pure doc-comment / NatSpec change — no Move bytecode, no Solidity ABI, no Rust runtime behavior is affected:

  • target_chains/ethereum/sdk/solidity/IPyth.sol (NatSpec)
  • target_chains/ethereum/sdk/solidity/PythStructs.sol (NatSpec)
  • target_chains/sui/contracts/sources/price.move
  • target_chains/sui/contracts/sources/pyth.move
  • target_chains/aptos/contracts/sources/price.move
  • target_chains/aptos/contracts/sources/pyth.move
  • target_chains/cosmwasm/examples/cw-contract/src/contract.rs
  • target_chains/near/receiver/src/lib.rs
  • target_chains/near/receiver/src/state.rs

Splitting from #3718 to keep the on-chain churn reviewable against its own consumers (Solidity SDK publishers, Move package upgrade authorities, NEAR contract maintainers).

Test plan

  • grep -rn "documentation/pythnet-price-feeds" --include="*.move" --include="*.sol" --include="*.rs" returns no remaining matches
  • Every new URL verified to exist as an .mdx page under apps/developer-hub/content/docs/price-feeds/core/
  • No code changes — only /// doc-comments and // line comments
  • Maintainer confirmation that the chain-specific pull-integration/<chain> page is preferred over the parent use-real-time-data for on-demand references in on-chain doc-comments

Open in Devin Review

Follow-up to the JS/TS README refresh (pyth-network#3718) covering the same stale
`docs.pyth.network/documentation/pythnet-price-feeds/*` paths embedded in
on-chain NatSpec / Move / Rust doc-comments. The legacy URL space has
been retired in favour of `price-feeds/core/*` under the developer-hub
content tree.

URL mapping applied:

  - documentation/pythnet-price-feeds/best-practices ->
    price-feeds/core/best-practices

  - documentation/pythnet-price-feeds/on-demand ->
    price-feeds/core/use-real-time-data/pull-integration/<chain>
    (chain-specific page where the integration flow + fee guidance lives
    — i.e. /aptos, /sui, /near; the parent `use-real-time-data` index
    is more of a method-selection landing page)

  - documentation/pythnet-price-feeds/on-demand#fees ->
    price-feeds/core/use-real-time-data/pull-integration/<chain>#update-fee
    (the chain-specific pages each surface the update-fee section)

  - documentation/pythnet-price-feeds/cosmwasm ->
    price-feeds/core/contract-addresses/cosmwasm
    (the cw-contract example was specifically pointing readers at the
    contract address list, so contract-addresses/<chain> is the right
    landing page rather than pull-integration/<chain>)

  - documentation/pythnet-price-feeds (root) ->
    price-feeds/core/use-real-time-data/pull-integration/aptos
    (the one bare reference was in aptos pyth.move pointing at the
    integration walkthrough)

This is a pure doc-comment / NatSpec change — no Move bytecode, no
Solidity ABI, no Rust runtime behavior is touched. Splitting from pyth-network#3718
to keep the on-chain churn reviewable against its own consumers.

Refs pyth-network#3228.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

@0xghost42 is attempting to deploy a commit to the Pyth Network Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Open in Devin Review

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.

🚩 Incomplete URL migration — 18 files still contain old documentation URLs

This PR updates old Pyth documentation URLs in 9 source files, but a repo-wide search reveals 18 additional files still containing the old docs.pyth.network/documentation/pythnet-price-feeds URL pattern. Notable examples include:

  • target_chains/aptos/contracts/Move.toml:21 (same package as modified files)
  • target_chains/ethereum/sdk/solidity/README.md:6,79 (same directory as modified IPyth.sol and PythStructs.sol)
  • target_chains/fuel/contracts/pyth-interface/src/data_structures/price.sw:18 (source code, not just docs)
  • apps/price_pusher/src/sui/command.ts:42,49 (runtime string literals)
  • Various README.md files across near/, sui/, aptos/, fuel/, starknet/, hermes/, price_service/

The apps/price_pusher/src/sui/command.ts case is particularly notable since the old URLs appear in runtime string literals (user-facing CLI output), not just comments. The author may want a follow-up PR to complete the migration across all remaining files.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant