Skip to content

Add Deposit Actions section + rewrite the API integration guide#32

Open
babgev wants to merge 3 commits into
mainfrom
babgev/deposit-actions-guide
Open

Add Deposit Actions section + rewrite the API integration guide#32
babgev wants to merge 3 commits into
mainfrom
babgev/deposit-actions-guide

Conversation

@babgev

@babgev babgev commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

What & why

Rewrites the public API integration guide to describe what an API consumer does (not internal system behavior), adds a per-chain Deposit Actions section, and fixes the token-identification pitfall a partner hit (passing source_token=USDT on Arbitrum after it was renamed to USDT0).

Highlights

  • integration/API.mdx rewrite — consumer-focused guide: core concepts, a "who does what" table, and a discover → quote → create → execute → track flow. Prominent token-identification warning: identify tokens by contract address or the token group field (symbols change); includes a live /sources discovery snippet.
  • New "Deposit Actions" section — an Overview (the deposit_actions object, funding modes, call_data-by-chain table) plus per-chain execution guides for EVM, Bitcoin, Solana, Starknet, TON, Tron, Fuel.
  • Nav: "Deposit methods" + "Network support" — Depository is nested as a funding method (not a top-level item). New canonical "Choosing a method" page; duplicate comparison tables deduped into it.
  • Reusable depository snippets (EVM + Tron) shared by the Depository page and the EVM/Tron guides — single source of truth. Documents the previously-missing Tron depository (TRC-20) flow.
  • Reconciled with the existing Depository page; consistent callouts; no webhook content added.

Verification

All endpoints, fields, statuses, contract signatures, and per-chain call_data mechanics verified against the deployed OpenAPI spec (api.layerswap.io/swagger/v2), the API source (layerswap/monorepo@dev), and the live API. docs.json validates; internal links resolve (the /api-reference/swaps/* endpoint links return HTTP 200 on the live docs; Mintlify's link-checker false-positives them because it doesn't expand the OpenAPI group).

Supersedes #17 — its pages were replicated onto this fresh, up-to-date branch and reconciled with the now-merged Depository page (avoiding the stale-base regressions in #17). #17 can be closed.

🤖 Generated with Claude Code

babgev and others added 2 commits June 24, 2026 17:26
Rewrite integration/API.mdx as a consumer-focused guide (core concepts, a
"who does what" table, and a discover -> quote -> create -> execute -> track
flow) with a prominent token-identification warning: identify tokens by
contract address or the `group` field, since symbols can change
(USDT -> USDT0 on Arbitrum). This addresses the integration pitfall a
partner hit.

Add the Deposit Actions section -- an overview plus per-chain execution
guides (EVM, Bitcoin, Solana, Starknet, TON, Tron, Fuel) -- and wire it into
the navigation. The overview documents the three funding modes (direct
transfer, deposit address, depository), the deposit-action schema including
gas_limit/encoded_args, and cross-links the existing Depository page. No
webhook content.

All endpoints, fields, statuses, and per-chain mechanics verified against
the deployed OpenAPI spec and the API source.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…e snippets

- Reorganize the Deposit Actions section into Overview + "Deposit methods"
  (Choosing a method, Depository) + "Network support" (per-chain guides), and
  nest the Depository page under Deposit methods instead of as a top-level item.
- Add a canonical "Choosing a method" page (funding-mode comparison + when to use
  each); dedupe the comparison tables out of the overview and Depository pages.
- Extract the depository execution into reusable snippets (EVM + Tron) shared by
  the Depository page and the EVM/Tron network guides, and document the
  previously-missing Tron depository (TRC-20) flow.
- Fix duplicate sidebar labels via sidebarTitle ("Overview" for Deposit Actions
  and Swap lifecycle landing pages).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
layerswaplabsv0 🟢 Ready View Preview Jun 25, 2026, 11:36 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

- Remove the "treat your API key as a secret / backend-only" warning and reframe
  the key as optional attribution (analytics/reporting) — keys are not secrets.
- Drop the unsourced "Who does what" table from the API guide.
- Trim the quote section's prose parameter list (the JSON example and the linked
  endpoint reference already cover it).
- Make nav icons consistent — icons on groups and top-level entries (add Deposit
  Actions, Deposit methods, and Network support group icons), none on nested leaf
  pages (remove from Depository, Swap lifecycle Overview, and Refunds).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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