Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs/lk exploration [SLT-170] #3141

Merged
merged 46 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
244e77f
update for eslint
lawsonkight Sep 17, 2024
eebb57c
eslint fix
lawsonkight Sep 17, 2024
1218b20
top-level content
lawsonkight Sep 17, 2024
32a85ac
bugfix: remove descriptions from Community links
lawsonkight Sep 17, 2024
8a6eb0d
eslint fix
lawsonkight Sep 18, 2024
866ebaa
folder organization
lawsonkight Sep 18, 2024
b9f11b6
wip: sidebar organization
lawsonkight Sep 18, 2024
6cb652a
cctp router docs refactor
lawsonkight Sep 20, 2024
81ea30d
WIP: RFQ Relayer doc
lawsonkight Sep 20, 2024
2330146
refactor of CCTP and RFQ docs pages
lawsonkight Sep 23, 2024
22855ca
fix build errors
lawsonkight Sep 23, 2024
e3a65c5
bugfix: css dark mode specificity
lawsonkight Sep 23, 2024
cb1118d
bugfix: wrong Redirect import
lawsonkight Sep 23, 2024
ab4a354
Fixes build issue
abtestingalpha Sep 24, 2024
186f0a9
Bridge SDK and Synapse Router
lawsonkight Sep 24, 2024
68ec346
fix broken links
lawsonkight Sep 24, 2024
56bd9c6
rename Bridge SDK Examples page
lawsonkight Sep 25, 2024
fe24140
rebuild yarn.lock
lawsonkight Sep 25, 2024
9eea390
Merge branch 'master' into docs/lk-exploration
abtestingalpha Sep 25, 2024
3d12d5a
Upgrades deps
abtestingalpha Sep 25, 2024
ef6e18a
bridge sdk animation
lawsonkight Sep 25, 2024
b03684b
move sdk animation to bridge page
lawsonkight Sep 25, 2024
32ac668
bugfix: svg initial values
lawsonkight Sep 26, 2024
a18c6b6
bugfix: remove css nesting
lawsonkight Sep 26, 2024
8a66ffd
intermediate token style
lawsonkight Sep 26, 2024
4c09296
wip: image buildout
lawsonkight Sep 26, 2024
4ebe307
additional router graphics
lawsonkight Sep 26, 2024
d07bf03
faux bridge svg
lawsonkight Sep 26, 2024
ecb3221
widget page
lawsonkight Sep 27, 2024
1f2553a
brand assets page
lawsonkight Sep 27, 2024
42629e9
move Bridge pages to Developers folder
lawsonkight Sep 27, 2024
e7b0e70
animated logo v1
lawsonkight Sep 27, 2024
8eca8ec
interactive animated logo
lawsonkight Sep 27, 2024
dae67c1
Supported routes
lawsonkight Sep 28, 2024
a4674eb
bugfix: React attribute names
lawsonkight Sep 28, 2024
33d8f99
move Supported Routes page
lawsonkight Sep 28, 2024
00d103b
bugfix: svg animation id collision
lawsonkight Sep 28, 2024
3b0da49
better css variable overrides
lawsonkight Sep 28, 2024
ceb8923
fix build errors
lawsonkight Sep 28, 2024
2993189
footer color
lawsonkight Sep 28, 2024
e23965e
small nits
Defi-Moses Sep 30, 2024
9d159ba
respond to feedback
lawsonkight Oct 1, 2024
d7b693c
Update CCTP Relayer description
lawsonkight Oct 2, 2024
bc0bf4c
cctp-typo
Defi-Moses Oct 2, 2024
9e9b993
Merge branch 'master' into docs/lk-exploration
abtestingalpha Oct 2, 2024
b3b7082
Fix constants v
abtestingalpha Oct 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/bridge/docs/About/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"position": 0,
"label": "About"
}
64 changes: 64 additions & 0 deletions docs/bridge/docs/About/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Use Synapse

Synapse is an Interchain Programming Interface. Developers read and write interchain data with Synapse, which has settled $50B in transactions between 2M+ users, and generated $30M+ in fees [[source](https://explorer.synapseprotol.com)].
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct the typo in the source URL.

The URL in the source link is misspelled. It should be https://explorer.synapseprotocol.com instead of https://explorer.synapseprotol.com.

Apply this diff to fix the typo:

-Synapse is an Interchain Programming Interface. Developers read and write interchain data with Synapse, which has settled $50B in transactions between 2M+ users, and generated $30M+ in fees [[source](https://explorer.synapseprotol.com)].
+Synapse is an Interchain Programming Interface. Developers read and write interchain data with Synapse, which has settled $50B in transactions between 2M+ users, and generated $30M+ in fees [[source](https://explorer.synapseprotocol.com)].
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Synapse is an Interchain Programming Interface. Developers read and write interchain data with Synapse, which has settled $50B in transactions between 2M+ users, and generated $30M+ in fees [[source](https://explorer.synapseprotol.com)].
Synapse is an Interchain Programming Interface. Developers read and write interchain data with Synapse, which has settled $50B in transactions between 2M+ users, and generated $30M+ in fees [[source](https://explorer.synapseprotocol.com)].


## Why Synapse?

_Description of top benefits Synapse brings to developers and users._


## Get started

* **[Send and receive interchain data](#)**
* **[On-chain swaps](#)**
* **[Interchain swaps](#)**
* **[Upgrade to Synapse](#)**
Copy link
Contributor

Choose a reason for hiding this comment

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

Replace placeholder links with actual URLs in 'Get started' section.

The links in the 'Get started' section are placeholders. Please update them with the correct URLs to the relevant documentation or intended destinations.

Apply this diff to update the links:

-* **[Send and receive interchain data](#)**
+* **[Send and receive interchain data](/docs/InterchainData)**
-* **[On-chain swaps](#)**
+* **[On-chain swaps](/docs/OnChainSwaps)**
-* **[Interchain swaps](#)**
+* **[Interchain swaps](/docs/InterchainSwaps)**
-* **[Upgrade to Synapse](#)**
+* **[Upgrade to Synapse](/docs/UpgradeGuide)**
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* **[Send and receive interchain data](#)**
* **[On-chain swaps](#)**
* **[Interchain swaps](#)**
* **[Upgrade to Synapse](#)**
* **[Send and receive interchain data](/docs/InterchainData)**
* **[On-chain swaps](/docs/OnChainSwaps)**
* **[Interchain swaps](/docs/InterchainSwaps)**
* **[Upgrade to Synapse](/docs/UpgradeGuide)**
Tools
Markdownlint

12-12: null
No empty links

(MD042, no-empty-links)


13-13: null
No empty links

(MD042, no-empty-links)


14-14: null
No empty links

(MD042, no-empty-links)


15-15: null
No empty links

(MD042, no-empty-links)


:::tip[Supported Chains]

Synapse supports every chain and token that can be found on the [Synapse Bridge](https://synapseprotocol.com).

:::

## Interchain Bridge

Embed the Synapse Widget or build your own custom instance.

* **[Widget](#)** – Embed a customized Synapse Bridge in your application.
* **[Client SDK](#)** – Call Synapse Router functions from your client application.
* **[Server SDK](#)** – Call Synapse Router functions from your remote application.
Copy link
Contributor

Choose a reason for hiding this comment

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

Update placeholder links in 'Interchain Bridge' section.

The links for 'Widget', 'Client SDK', and 'Server SDK' are placeholders. Please replace them with the correct URLs to the documentation or resources.

Apply this diff to update the links:

-* **[Widget](#)** – Embed a customized Synapse Bridge in your application.
+* **[Widget](/docs/InterchainBridge/Widget)** – Embed a customized Synapse Bridge in your application.
-* **[Client SDK](#)** – Call Synapse Router functions from your client application.
+* **[Client SDK](/docs/InterchainBridge/ClientSDK)** – Call Synapse Router functions from your client application.
-* **[Server SDK](#)** – Call Synapse Router functions from your remote application.
+* **[Server SDK](/docs/InterchainBridge/ServerSDK)** – Call Synapse Router functions from your remote application.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* **[Widget](#)** – Embed a customized Synapse Bridge in your application.
* **[Client SDK](#)** Call Synapse Router functions from your client application.
* **[Server SDK](#)** Call Synapse Router functions from your remote application.
* **[Widget](/docs/InterchainBridge/Widget)** – Embed a customized Synapse Bridge in your application.
* **[Client SDK](/docs/InterchainBridge/ClientSDK)** Call Synapse Router functions from your client application.
* **[Server SDK](/docs/InterchainBridge/ServerSDK)** Call Synapse Router functions from your remote application.
Tools
Markdownlint

27-27: null
No empty links

(MD042, no-empty-links)


28-28: null
No empty links

(MD042, no-empty-links)


29-29: null
No empty links

(MD042, no-empty-links)


## Routers

Synapse offers several of routers for different transaction types.
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix grammatical error in 'Routers' introduction.

There's a grammatical error in the sentence. It should read: "Synapse offers several routers for different transaction types."

Apply this diff to correct the sentence:

-Synapse offers several of routers for different transaction types.
+Synapse offers several routers for different transaction types.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Synapse offers several of routers for different transaction types.
Synapse offers several routers for different transaction types.


* **[Synapse Router](#)** – Executable quotes for arbitrary blockchain transactions.
* **[CCTP](#)** – Native router for USDC transactions.
* **[RFQ](#)** – Fast router that allows on-chain agents to bid on interchain delivery.
Copy link
Contributor

Choose a reason for hiding this comment

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

Provide actual URLs for routers in 'Routers' section.

The links for 'Synapse Router', 'CCTP', and 'RFQ' are placeholders. Please update them with the appropriate documentation links.

Apply this diff to update the links:

-* **[Synapse Router](#)** – Executable quotes for arbitrary blockchain transactions.
+* **[Synapse Router](/docs/Routers/SynapseRouter)** – Executable quotes for arbitrary blockchain transactions.
-* **[CCTP](#)** – Native router for USDC transactions.
+* **[CCTP](/docs/Routers/CCTP)** – Native router for USDC transactions.
-* **[RFQ](#)** – Fast router that allows on-chain agents to bid on interchain delivery.
+* **[RFQ](/docs/Routers/RFQ)** – Fast router that allows on-chain agents to bid on interchain delivery.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* **[Synapse Router](#)** Executable quotes for arbitrary blockchain transactions.
* **[CCTP](#)** Native router for USDC transactions.
* **[RFQ](#)** Fast router that allows on-chain agents to bid on interchain delivery.
* **[Synapse Router](/docs/Routers/SynapseRouter)** Executable quotes for arbitrary blockchain transactions.
* **[CCTP](/docs/Routers/CCTP)** Native router for USDC transactions.
* **[RFQ](/docs/Routers/RFQ)** Fast router that allows on-chain agents to bid on interchain delivery.
Tools
Markdownlint

35-35: null
No empty links

(MD042, no-empty-links)


36-36: null
No empty links

(MD042, no-empty-links)


37-37: null
No empty links

(MD042, no-empty-links)


## Essential Tools

Bolt-on services for reliability and ease-of-use:

* **[Scribe](/docs/Services/Scribe)** – Index logs, receipts and transactions across multiple chains
* **[Omnirpc](/docs/Services/Omnirpc)** – Interchain RPC load balancer and verifier
* **[Key management](/docs/Services/Signer)** – Support for the AWS Key Management System (KMS)
* **[Ethergo](/docs/Services/Submitter)** – Gas management service to ensure transaction confirmation
* **[Telemetry](/docs/Services/Observability)** – Open telemetry system for Synapse SDK


## Community & Support

Connect with other developers and the Synapse team

* **[Discord](https://discord.gg/synapseprotocol)**
* **[Twitter](https://twitter.com/SynapseProtocol)**
* **[Telegram](https://t.me/synapseprotocol)**
* **[Forum](https://forum.synapseprotocol.com/)**

## Additional Links

Synapse transactions can be observed confirmed via the following methods:
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct grammatical error in 'Additional Links' section.

The sentence has a grammatical error. It should read: "Synapse transactions can be observed via the following methods:"

Apply this diff to fix the sentence:

-Synapse transactions can be observed confirmed via the following methods:
+Synapse transactions can be observed via the following methods:
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Synapse transactions can be observed confirmed via the following methods:
Synapse transactions can be observed via the following methods:
Tools
LanguageTool

[uncategorized] ~61-~61: Possible missing comma found.
Context: ...onal Links Synapse transactions can be observed confirmed via the following methods: *...

(AI_HYDRA_LEO_MISSING_COMMA)


* **[Synapse Bridge](https://synapseprotocol.com)** – Bridge, Swap, and Stake via Synapse's cross-chain pools.
* **[Synapse Explorer](https://explorer.synapseprotocol.com)** – Public explorer for Synapse Bridge transactions.
3 changes: 3 additions & 0 deletions docs/bridge/docs/Bridge/01-Widget.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Widget

Lorem ipsum
3 changes: 3 additions & 0 deletions docs/bridge/docs/Bridge/02-SDK.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SDK

Lorem ipsum
4 changes: 4 additions & 0 deletions docs/bridge/docs/Bridge/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"position": 1,
"label": "Bridge"
}
38 changes: 38 additions & 0 deletions docs/bridge/docs/Bridge/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Synapse Bridge

The [Synapse Bridge](https://synapseprotocol.com) and [Solana Bridge](https://solana.synapseprotocol.com/) seamlessly swap on-chain assets between 20+ EVM and non-EVM blockchains in a safe and secure manner.

## Developers

Add the [Custom Widget](#) to your DeFi application, or build your own DeFi applications using the [Synapse SDK](#).
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix empty links in the Developers section

The links to Custom Widget and Synapse SDK are empty. This will lead to broken links in the documentation. Please update these links to point to the correct pages or provide placeholders if the pages are not yet created.

Apply this diff to fix the links:

-Add the [Custom Widget](#) to your DeFi application, or build your own DeFi applications using the [Synapse SDK](#).
+Add the [Custom Widget](custom-widget) to your DeFi application, or build your own DeFi applications using the [Synapse SDK](synapse-sdk).
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Add the [Custom Widget](#) to your DeFi application, or build your own DeFi applications using the [Synapse SDK](#).
Add the [Custom Widget](custom-widget) to your DeFi application, or build your own DeFi applications using the [Synapse SDK](synapse-sdk).
Tools
Markdownlint

7-7: null
No empty links

(MD042, no-empty-links)


7-7: null
No empty links

(MD042, no-empty-links)


## Bridge Functions

The [Synapse Router](#) will return an appropriate bridge function based on the chains and tokens involved.
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix empty link for Synapse Router

The link to Synapse Router is empty. Please update the link to point to the correct page or add a placeholder if necessary.

Apply this diff to fix the link:

-The [Synapse Router](#) will return an appropriate bridge function based on the chains and tokens involved.
+The [Synapse Router](../Routers/synapse-router) will return an appropriate bridge function based on the chains and tokens involved.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
The [Synapse Router](#) will return an appropriate bridge function based on the chains and tokens involved.
The [Synapse Router](../Routers/synapse-router) will return an appropriate bridge function based on the chains and tokens involved.
Tools
Markdownlint

11-11: null
No empty links

(MD042, no-empty-links)


* **Canonical** – Assets are wrapped and then bridged.
* **[Liquidity Pools](#)** – Assets are swapped via Synapse liquidity pools.
* **[CCTP](#)** – Native router for USDC

## Pool Liquidity

Synapse liquidity pools use the nexus USD (nUSD) and nexus ETH (nETH) interchain stablecoins. nUSD and nETH are fully backed by the nexus USD and nexus ETH liquidity pools on Ethereum.

When a token is bridged using a Synapse Liquidity Pool, it is converted to a nexus token on the source chain, which is then bridged to the destination chain, before being converted back into a native token.

## Using the Bridge

To use the [Synapse Bridge](https://synapseprotocol.com):

1. Connect your wallet
2. Select your origin and destination chains from the dropdown menus
3. Select your origin token from the portfolio view, or dropdown menu
4. Enter the amount you wish to send
5. If you wish to send assets to a different wallet address, enable `Show withdrawal address` from the Settings menu (optional).
5. Connect your wallet to the origin chain, if necessary
6. Click `Bridge` to send a quote to your wallet for confirmation
7. Sign and Confirm the Bridge action from your wallet
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct numbering in the bridge usage steps

The steps in the "Using the Bridge" section have incorrect numbering. Step 5 is repeated, and subsequent steps are misnumbered. Please correct the numbering to reflect the proper sequence.

Apply this diff to fix the numbering:

 5. If you wish to send assets to a different wallet address, enable `Show withdrawal address` from the Settings menu (optional).
-5. Connect your wallet to the origin chain, if necessary
-6. Click `Bridge` to send a quote to your wallet for confirmation
-7. Sign and Confirm the Bridge action from your wallet
+6. Connect your wallet to the origin chain, if necessary
+7. Click `Bridge` to send a quote to your wallet for confirmation
+8. Sign and Confirm the Bridge action from your wallet
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
5. If you wish to send assets to a different wallet address, enable `Show withdrawal address` from the Settings menu (optional).
5. Connect your wallet to the origin chain, if necessary
6. Click `Bridge` to send a quote to your wallet for confirmation
7. Sign and Confirm the Bridge action from your wallet
5. If you wish to send assets to a different wallet address, enable `Show withdrawal address` from the Settings menu (optional).
6. Connect your wallet to the origin chain, if necessary
7. Click `Bridge` to send a quote to your wallet for confirmation
8. Sign and Confirm the Bridge action from your wallet


## Bridge Contracts

Synapse Bridge contracts are available [here](https://docs.synapseprotocol.com/synapse-bridge/contract-addresses).
8 changes: 0 additions & 8 deletions docs/bridge/docs/CCTP/_category_.json

This file was deleted.

3 changes: 3 additions & 0 deletions docs/bridge/docs/Developers/01-Messages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Interchain Data

Lorem ipsum
3 changes: 3 additions & 0 deletions docs/bridge/docs/Developers/02-On-chain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# On-chain asset swaps

Lorem ipsum
Copy link
Contributor

Choose a reason for hiding this comment

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

Replace placeholder text with actual content

The section currently contains placeholder text "Lorem ipsum". Please replace it with the appropriate content to provide valuable information about on-chain asset swaps.

3 changes: 3 additions & 0 deletions docs/bridge/docs/Developers/03-Interchain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Interchain asset swaps

Lorem ipsum
Copy link
Contributor

Choose a reason for hiding this comment

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

Replace placeholder text with actual content

The section currently contains placeholder text "Lorem ipsum". Please provide the relevant information about interchain asset swaps to enhance the documentation.

3 changes: 3 additions & 0 deletions docs/bridge/docs/Developers/04-Advanced-Projects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Advanced projects

Lorem ipsum
3 changes: 3 additions & 0 deletions docs/bridge/docs/Developers/05-Add-Synapse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add Synapse to my app

Lorem ipsum
6 changes: 6 additions & 0 deletions docs/bridge/docs/Developers/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Developer Guides

* **[Send and receive interchain data](#)**
* **[On-chain swaps](#)**
* **[Interchain swaps](#)**
* **[Upgrade to Synapse](#)**
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix empty links in the Developer Guides

The links in the list are currently empty ("#"). This will result in broken links in the documentation. Please update the links to point to the correct pages or provide placeholders if the pages are not yet created.

Apply this diff to fix the links:

-* **[Send and receive interchain data](#)**
-* **[On-chain swaps](#)**
-* **[Interchain swaps](#)**
-* **[Upgrade to Synapse](#)**
+* **[Send and receive interchain data](send-receive-interchain-data)**
+* **[On-chain swaps](on-chain-asset-swaps)**
+* **[Interchain swaps](interchain-asset-swaps)**
+* **[Upgrade to Synapse](upgrade-to-synapse)**
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* **[Send and receive interchain data](#)**
* **[On-chain swaps](#)**
* **[Interchain swaps](#)**
* **[Upgrade to Synapse](#)**
* **[Send and receive interchain data](send-receive-interchain-data)**
* **[On-chain swaps](on-chain-asset-swaps)**
* **[Interchain swaps](interchain-asset-swaps)**
* **[Upgrade to Synapse](upgrade-to-synapse)**
Tools
Markdownlint

3-3: null
No empty links

(MD042, no-empty-links)


4-4: null
No empty links

(MD042, no-empty-links)


5-5: null
No empty links

(MD042, no-empty-links)


6-6: null
No empty links

(MD042, no-empty-links)

3 changes: 3 additions & 0 deletions docs/bridge/docs/Routers/01-Router-v2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Router v2

Lorem ipsum
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ The CCTP Relayer is configured with a yaml file. The following is an example con

### Observability

The CCTP relayer implements open telemetry for both tracing and metrics. Please see the [Observability](../Observability) page for more info. We'd also highly recommend setting up the [submitter dashboard](../Services/Submitter) as well.
The CCTP relayer implements open telemetry for both tracing and metrics. Please see the [Observability](docs/Services/Observability) page for more info. We'd also highly recommend setting up the [submitter dashboard](../Services/Submitter) as well.
3 changes: 3 additions & 0 deletions docs/bridge/docs/Routers/CCTP/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"label": "CCTP"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Overview

Synapse CCTP is a custom module built on top of Circle's [Cross-Chain Transfer Protocol](https://www.circle.com/en/cross-chain-transfer-protocol) that allows for bridge requests to natively mint & burn USDC on [supported chains](https://developers.circle.com/stablecoins/docs/cctp-getting-started#supported-blockchains).

Synapse's CCTP implementation consists of two main components:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Yaml settings:
- `database` - The database settings for the API backend. A database is required to store quotes and other information. Using SQLite with a dsn set to a `/tmp/` directory is recommended for development.
- `type` - the database driver to use, can be `mysql` or `sqlite`.
- `dsn` - the dsn of your database. If using sqlite, this can be a path, if using mysql please see [here](https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-configuration.html) for more information.
- `omnirpc_url` - The omnirpc url to use for querying chain data (no trailing slash). For more information on omnirpc, see [here](../../Services/Omnirpc.md).
- `omnirpc_url` - The omnirpc url to use for querying chain data (no trailing slash). For more information on omnirpc, see [here](docs/Services/Omnirpc.md).
Copy link
Contributor

Choose a reason for hiding this comment

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

Update the link to Omnirpc documentation.

The link to the Omnirpc documentation is a relative path that may not resolve correctly. Consider updating it to an absolute path for consistency.

Apply this diff to update the link:

-... For more information on omnirpc, see [here](docs/Services/Omnirpc.md).
+... For more information on omnirpc, see [Omnirpc](/docs/Services/Omnirpc).
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- `omnirpc_url` - The omnirpc url to use for querying chain data (no trailing slash). For more information on omnirpc, see [here](docs/Services/Omnirpc.md).
- `omnirpc_url` - The omnirpc url to use for querying chain data (no trailing slash). For more information on omnirpc, see [Omnirpc](/docs/Services/Omnirpc).
Tools
Markdownlint

75-75: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)


Fix indentation for the unordered list item.

There's an indentation issue in the unordered list. The item omnirpc_url is indented more than expected.

Apply this diff to correct the indentation:

-     - `omnirpc_url` - The omnirpc url to use for querying chain data (no trailing slash). For more information on omnirpc, see [here](docs/Services/Omnirpc.md).
+   - `omnirpc_url` - The omnirpc url to use for querying chain data (no trailing slash). For more information on omnirpc, see [here](/docs/Services/Omnirpc).

Committable suggestion was skipped due to low confidence.

Tools
Markdownlint

75-75: Expected: 0; Actual: 1
Unordered list indentation

(MD007, ul-indent)

- `bridges` - A key value map of chain id to FastBridge contract address. The API will only allow quotes to be posted on these chains.
- `port` - The port to run the http server on.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ The relayer is configured with a yaml file. The following is an example configur

### Observability

The RFQ relayer implements open telemetry for both tracing and metrics. Please see the [Observability](../../Observability) page for more info. There is also a custom [grafana dashboard](https://github.com/synapsecns/sanguine/tree/master/services/rfq/relayer/dashboards/dashboard.json) available for the relayer. We'd also highly recommend setting up the [submitter dashboard](../../Services/Submitter) as well.
The RFQ relayer implements open telemetry for both tracing and metrics. Please see the [Observability](docs/Services/Observability) page for more info. There is also a custom [grafana dashboard](https://github.com/synapsecns/sanguine/tree/master/services/rfq/relayer/dashboards/dashboard.json) available for the relayer. We'd also highly recommend setting up the [submitter dashboard](../../Services/Submitter) as well.

![Relayer Grafana Dashboard](dashboard.png)

Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions docs/bridge/docs/Routers/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Synapse Routers

Synapse offers several of routers for different transaction types.
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct grammatical error in the introduction

The sentence "Synapse offers several of routers for different transaction types." contains an unnecessary word "of". It should read: "Synapse offers several routers for different transaction types."

Apply this diff to correct the sentence:

-Synapse offers several of routers for different transaction types.
+Synapse offers several routers for different transaction types.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Synapse offers several of routers for different transaction types.
Synapse offers several routers for different transaction types.


* **[Synapse Router](#)** – Executable quotes for arbitrary blockchain transactions.
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix empty link for Synapse Router

The link for Synapse Router is empty ("#"). This will result in a broken link in the documentation. Please update the link to point to the correct page or add a placeholder if the page is not yet created.

Apply this diff to fix the link:

-* **[Synapse Router](#)** – Executable quotes for arbitrary blockchain transactions.
+* **[Synapse Router](synapse-router)** – Executable quotes for arbitrary blockchain transactions.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* **[Synapse Router](#)** Executable quotes for arbitrary blockchain transactions.
* **[Synapse Router](synapse-router)** Executable quotes for arbitrary blockchain transactions.
Tools
Markdownlint

5-5: null
No empty links

(MD042, no-empty-links)

* **[CCTP](CCTP)** – Native router for USDC transactions.
* **[RFQ](RFQ)** – Fast router that allows on-chain agents to bid on interchain delivery.
2 changes: 1 addition & 1 deletion docs/bridge/docs/Services/Scribe.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ For a full list of available queries, refer to the GraphQL schema.

## Observability

Scribe implements open telemetry for both tracing and metrics. Please see the [Observability](../Observability) page for more info.
Scribe implements open telemetry for both tracing and metrics. Please see the [Observability](./Observability) page for more info.
9 changes: 9 additions & 0 deletions docs/bridge/docs/Services/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Essential Tools

Synapse offers a number of bolt-on services for reliability and ease-of-use.

* **[Scribe](/docs/Services/Scribe)** – Index logs, receipts and transactions across multiple chains
* **[Omnirpc](/docs/Services/Omnirpc)** – Interchain RPC load balancer and verifier
* **[Key management](/docs/Services/Signer)** – Support for the AWS Key Management System (KMS)
* **[Ethergo](/docs/Services/Submitter)** – Gas management service to ensure transaction confirmation
* **[Telemetry](/docs/Services/Observability)** – Open telemetry system for Synapse SDK
8 changes: 8 additions & 0 deletions docs/bridge/docs/Support/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Community & Support

Connect with other developers and the Synapse team

* **[Discord](https://discord.gg/synapseprotocol)**
* **[Twitter](https://twitter.com/SynapseProtocol)**
* **[Telegram](https://t.me/synapseprotocol)**
* **[Forum](https://forum.synapseprotocol.com/)**
26 changes: 0 additions & 26 deletions docs/bridge/docs/rfq/API/sidebar.ts

This file was deleted.

8 changes: 0 additions & 8 deletions docs/bridge/docs/rfq/_category_.json

This file was deleted.

94 changes: 51 additions & 43 deletions docs/bridge/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import * as path from "path";
import {codecovWebpackPlugin} from "@codecov/webpack-plugin";
/* eslint-disable prefer-arrow/prefer-arrow-functions */
import * as path from 'path'

import { themes as prismThemes } from 'prism-react-renderer'
import type { Config } from '@docusaurus/types'
import type * as Preset from '@docusaurus/preset-classic'
import { codecovWebpackPlugin } from '@codecov/webpack-plugin'

const config: Config = {
title: 'Synapse Bridge Docs',
Expand Down Expand Up @@ -42,7 +44,7 @@ const config: Config = {
editUrl:
'https://github.com/synapsecns/sanguine/tree/master/docs/bridge/',
// docLayoutComponent: "@theme/DocPage",
docItemComponent: "@theme/ApiItem" // derived from docusaurus-theme-openapi-docs
docItemComponent: '@theme/ApiItem', // derived from docusaurus-theme-openapi-docs
},
theme: {
customCss: './src/css/custom.css',
Expand Down Expand Up @@ -120,54 +122,60 @@ const config: Config = {
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
themes: ["docusaurus-theme-openapi-docs"], // export theme components
themes: ['docusaurus-theme-openapi-docs'], // export theme components
plugins: [
[
'docusaurus-plugin-openapi-docs',
{
id: "api", // plugin id
docsPluginId: "classic", // id of plugin-content-docs or preset for rendering docs
id: 'api', // plugin id
docsPluginId: 'classic', // id of plugin-content-docs or preset for rendering docs
config: {
rfqapi: { // the <id> referenced when running CLI commands
specPath: "../../services/rfq/api/docs/swagger.yaml", // path to OpenAPI spec, URLs supported
baseUrl: "https://rfq-api.omnirpc.io/",
outputDir: "docs/rfq/API", // output directory for generated files
sidebarOptions: { // optional, instructs plugin to generate sidebar.js
groupPathsBy: "tag", // group sidebar items by operation "tag"
rfqapi: {
// the <id> referenced when running CLI commands
specPath: '../../services/rfq/api/docs/swagger.yaml', // path to OpenAPI spec, URLs supported
baseUrl: 'https://rfq-api.omnirpc.io/',
outputDir: 'docs/rfq/API', // output directory for generated files
sidebarOptions: {
// optional, instructs plugin to generate sidebar.js
groupPathsBy: 'tag', // group sidebar items by operation "tag"
},
},
}
},
},
],
// please see: https://github.com/facebook/docusaurus/issues/8091#issuecomment-1269112001 for an explanation.
() => ({
name: 'resolve-react',
configureWebpack() {
return {
resolve: {
alias: {
// assuming root node_modules is up from "./packages/<your-docusaurus>
react: path.resolve('../../node_modules/react'),
function () {
return {
name: 'resolve-react',
configureWebpack() {
return {
resolve: {
alias: {
// assuming root node_modules is up from "./packages/<your-docusaurus>
react: path.resolve('../../node_modules/react'),
},
},
},
};
},
}),
() => ({
name: 'bundle-analyzer',
configureWebpack() {
return {
plugins: [
codecovWebpackPlugin({
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
bundleName: "docs-bridge",
uploadToken: process.env.CODECOV_TOKEN,
}),
]
};
}
},
}
}),
},
function () {
return {
name: 'bundle-analyzer',
configureWebpack() {
return {
plugins: [
codecovWebpackPlugin({
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
bundleName: 'docs-bridge',
uploadToken: process.env.CODECOV_TOKEN,
}),
],
}
},
}
},
],
};
}

export default config;
export default config
Loading
Loading