Skip to content

docs(near): add NEAR chain page, changelog stream, and intents-flows guide - #431

Open
shahan-khatchadourian-anchorage wants to merge 1 commit into
shahankhatchadourian/near-b-wiringfrom
shahankhatchadourian/near-c-docs
Open

docs(near): add NEAR chain page, changelog stream, and intents-flows guide#431
shahan-khatchadourian-anchorage wants to merge 1 commit into
shahankhatchadourian/near-b-wiringfrom
shahankhatchadourian/near-c-docs

Conversation

@shahan-khatchadourian-anchorage

@shahan-khatchadourian-anchorage shahan-khatchadourian-anchorage commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Sixth and final PR of the NEAR-consolidation stack (stacked on #430). Documents NEAR on the docs site (visualsign.dev), completing the migration.

Stack: A1 (#425) -> A2 (#426) -> A3 (#428) -> A4 (#429) -> B (#430) -> C (this).

What this PR does

  • docs/chains/near.mdx: mirrors chains/tron.mdx's structure -- the two input formats under one CHAIN_NEAR identity, the intent-type table, signature standards, visualization strategy, and parser_cli examples for both a transaction and an intents envelope.
  • docs/changelog/near.mdx: a new changelog stream. Page shell only (frontmatter, subscribe/filter line) with no <Update> block -- this repo's changelog is curated at release time from draft fragments (docs/changelog/_drafts/README.md), so a PR author doesn't fabricate a release version. changelog.mdx's stream index and the drafts README's category list both gain a near entry.
  • docs/changelog/_drafts/2026-07-30-near-chain-launch.md: the draft fragment for this migration's own user-facing change, per that workflow.
  • docs/wallet-integration/dapps/near-intents.mdx: the three flows a NEAR Intents user signs -- deposit and withdraw (ordinary NEAR transactions) and the pre-signature intent envelope in between -- with real, parser_cli-verified request/response examples for each, the shared envelope format, and the implicit-account model.
  • docs/wallet-integration/core-concepts/how-parsing-works.mdx: NEAR added to the chain-agnostic input-format table.

Verification

  • Every parser_cli output shown in these pages was generated by an actual run and copied verbatim (not hand-typed or reformatted) -- including the exact --output json key ordering and the FallbackText field on every entry.
  • make -C docs broken-links passes with the same 7 pre-existing rss.xml false positives every existing chain/blog page already has (Mintlify-hosted feeds the local checker can't resolve) -- zero new broken links or anchors.
  • Internal review checked every factual claim in both new content pages against the actual visualsign-near source (the intent-type table field-by-field against render.rs, the signature-standard list against standard_name(), the format-discrimination description against tx.rs) and caught two inaccuracies before this PR was opened: the add_public_key/remove_public_key table row used the wrong field label, and the deposit example's JSON blocks didn't match the real serialization shape (missing FallbackText, wrong key order) -- both fixed with real, re-verified output.

@shahan-khatchadourian-anchorage shahan-khatchadourian-anchorage changed the title shahankhatchadourian/near c docs docs(near): add NEAR chain page, changelog stream, and intents-flows guide Jul 31, 2026
@shahan-khatchadourian-anchorage
shahan-khatchadourian-anchorage force-pushed the shahankhatchadourian/near-c-docs branch from 7b543f0 to 244a62e Compare July 31, 2026 10:48
…guide

Adds the docs.json-wired pages for NEAR:

- docs/chains/near.mdx: mirrors chains/tron.mdx's structure -- the two
  input formats under one CHAIN_NEAR identity, the intent-type table,
  signature standards, visualization strategy, and parser_cli examples
  for both a transaction and an intents envelope.
- docs/changelog/near.mdx: a new changelog stream (page shell only, no
  fabricated release version -- the actual <Update> block is added by
  a maintainer at curation time per the existing drafts workflow).
  changelog.mdx's stream index and docs/changelog/_drafts/README.md's
  category list gain a near entry.
- docs/changelog/_drafts/2026-07-30-near-chain-launch.md: the draft
  fragment for this migration's own user-facing change.
- docs/wallet-integration/dapps/near-intents.mdx: the three flows a
  NEAR Intents user signs -- deposit and withdraw (ordinary NEAR
  transactions) and the pre-signature intent envelope in between --
  with real, parser_cli-verified request/response examples for each,
  plus the shared envelope format and implicit-account model. Framed
  for wallet integrators rather than third-party dApp authors, since
  NEAR Intents is a single fixed protocol this parser already fully
  decodes, unlike Ethereum's arbitrary-contract ecosystem.
- docs/wallet-integration/core-concepts/how-parsing-works.mdx: NEAR
  added to the chain-agnostic input-format table.

All parser_cli output in these pages was generated and copied from
real runs, not hand-typed. make -C docs broken-links passes with the
same 7 pre-existing rss.xml false positives every existing chain page
already has (dynamically-generated feeds the local checker can't
resolve), zero new broken links.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@shahan-khatchadourian-anchorage
shahan-khatchadourian-anchorage force-pushed the shahankhatchadourian/near-c-docs branch from 244a62e to d7f238b Compare July 31, 2026 10:53
@shahan-khatchadourian-anchorage
shahan-khatchadourian-anchorage marked this pull request as ready for review July 31, 2026 10:58
Copilot AI review requested due to automatic review settings July 31, 2026 10:58

Copilot AI left a comment

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.

Pull request overview

Adds NEAR documentation to the Mintlify docs site (visualsign.dev) to complete the NEAR-consolidation stack, covering NEAR chain decoding, NEAR Intents signing flows, and a dedicated NEAR changelog stream aligned with the existing draft-fragment workflow.

Changes:

  • Introduces a new NEAR chain page describing input formats, intent types, signature standards, and parser_cli usage.
  • Adds a NEAR Intents flows guide for wallet/dApp integrations with real parser_cli-verified examples.
  • Adds a NEAR changelog stream (index + stream page) and a corresponding draft changelog fragment/category wiring.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
docs/wallet-integration/dapps/near-intents.mdx New guide describing the three NEAR Intents user-signing flows with example inputs/outputs.
docs/wallet-integration/core-concepts/how-parsing-works.mdx Adds NEAR to the input-format/encoding overview table.
docs/docs.json Adds NEAR pages to navigation (dApps section, Chains section, Changelog streams).
docs/changelog/near.mdx New NEAR changelog stream shell with RSS link and tag filter line.
docs/changelog/_drafts/README.md Updates the draft workflow docs to include the new near category and stream page.
docs/changelog/_drafts/2026-07-30-near-chain-launch.md Draft fragment announcing NEAR chain + NEAR Intents preset support.
docs/changelog.mdx Adds NEAR to the changelog stream index cards.
docs/chains/near.mdx New NEAR chain documentation page (formats, intent table, standards, visualization strategy, CLI examples).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/chains/near.mdx
description: NEAR transactions and NEAR Intents (Defuse Protocol) signing
---

The NEAR module decodes raw NEAR transactions into VisualSign payloads, and renders both halves of the [NEAR Intents](https://docs.near-intents.org) protocol: the pre-signature intent a user is about to sign, and the signed batch a `execute_intents` call submits on-chain.
Comment thread docs/chains/near.mdx

NEAR carries two distinct payload shapes under a single `CHAIN_NEAR` identity, discriminated purely by input format:

- **A borsh-encoded transaction** (`near::sign_transaction`) — the standard NEAR wire format (`near-primitives::Transaction`, signed or unsigned), hex or base64 encoded.
| Solana | Serialized transaction | Base64 |
| Sui | BCS-encoded transaction | Base64 |
| Tron | Protobuf-encoded transaction | Hex |
| NEAR | Borsh-encoded transaction, or a pre-signature intents envelope (JSON) | Hex/base64, or raw JSON |
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.

2 participants