generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
1,393 additions
and
5,693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,40 @@ | ||
# Get your Swap service in Ledger Live | ||
import { Card, Cards } from 'nextra/components' | ||
import Zoom from 'react-medium-image-zoom' | ||
import { Callout } from 'nextra/components' | ||
|
||
As an exchange, it is possible to integrate your Swap service into Ledger Live as a native function of Ledger Live. To see what this integration is a good fit for your service, please get in touch with Ledger. | ||
# Get your exchange services in Ledger Live | ||
|
||
The following documentation is only accessible with a login after meeting with Ledger. | ||
As a centralized exchange, it is possible to integrate your Swap/Sell/Buy/Fund services into Ledger Live as a native function of Ledger Live, thus offering security, ease and accessibility to millions of users! | ||
|
||
With this integration, your services will appear directly under the corresponding section (Buy/Sell, Swap, Card) of Ledger Live. | ||
|
||
<img | ||
alt="Ledger Live screenshot" | ||
src="/screen-ledger-live-native-integration.png" | ||
/> | ||
|
||
To see if this integration is a good fit for your service, please get in touch with Ledger beforehand. | ||
|
||
<Callout type="info" emoji="👉"> | ||
There are two types of integration: | ||
- Light autonomous first step integration: your LiveApp is accessible through the “Discover” section (like [Paraswap](https://www.ledger.com/blog/more-swapping-freedom-access-paraswap-directly-through-ledger-live)). For this integration, refer to the [Discover](/docs/discover) section instead. | ||
- Main flow: your LiveApp can be integrated natively to Ledger Live. Better exposition but with additional API integration. More details in this section. | ||
</Callout> | ||
|
||
|
||
<Cards num={2}> | ||
<Card | ||
image | ||
arrow | ||
title="Flow breakdown" | ||
href="/docs/exchange/flow"> | ||
<></> | ||
</Card> | ||
<Card | ||
image | ||
arrow | ||
title="How-to integrate" | ||
href="/docs/exchange/integration"> | ||
<></> | ||
</Card> | ||
</Cards> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"flow": "Flow breakdown", | ||
"integration": "How-to integrate" | ||
|
||
"flow": "Swap - Flow breakdown", | ||
"integration": "How-to integrate", | ||
"glossary": "Glossary" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,45 @@ | ||
import Zoom from 'react-medium-image-zoom' | ||
import 'react-medium-image-zoom/dist/styles.css' | ||
import { Card, Cards } from 'nextra/components' | ||
|
||
# Swap : CEX integrated as a Live App | ||
# Swap : CEX integrated as a LiveApp | ||
|
||
Our goal is to offer the best swap experience for our users in Ledger Live, by providing competitive quotes and security. | ||
|
||
To offer our partner centralized exchanges the best time-to-market and and our users the best swap experience, we have built an hybrid solution: | ||
To offer our centralize exchange partners the best time-to-market and and our users the best swap experience, we have built an hybrid solution: | ||
- Native swap marketplace: An aggregator on Ledger Live listing our partners depending on the region, token coverage and prices. | ||
- Partner Web app: A Live App experience (embedded web app) where users interact with the partner web app in Ledger Live, once they want to finalize the swap. The transaction is performed with ExchangeSDK. | ||
- Partner Web app: A LiveApp experience (embedded web app) where users interact with the partner web app in Ledger Live, once they want to finalize the swap. The transaction is performed with ExchangeSDK. | ||
|
||
This section of the documentation explains how the swap feature is displayed to the user in Ledger Live and how your web app is integrated into this hybrid solution. | ||
|
||
<Cards num={2}> | ||
<Card | ||
image | ||
arrow | ||
title="Start Here" | ||
href="./flow/start-here"> | ||
<></> | ||
</Card> | ||
<Card | ||
image | ||
arrow | ||
title="Flows" | ||
href="./flow/flow-breakdown"> | ||
<></> | ||
</Card> | ||
## Full transaction flow | ||
|
||
<Zoom> | ||
<img | ||
alt="Transaction flow" | ||
src="/exchange/live-app-flow.png" | ||
/> | ||
</Zoom> | ||
|
||
<Cards> | ||
<Card | ||
title="Quote display and user preferences" | ||
href="./flow/quote" | ||
/> | ||
<Card | ||
title="Partner LiveApp" | ||
href="./flow/partner-live-app" | ||
/> | ||
<Card | ||
title="Device transaction approval" | ||
href="./flow/device-flow" | ||
/> | ||
<Card | ||
title="Transaction status" | ||
href="./flow/transaction-status" | ||
/> | ||
<Card | ||
title="Edge Cases" | ||
href="./flow/edge-cases" | ||
/> | ||
</Cards> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"start-here": "Start here", | ||
"flow-breakdown": "Flow breakdown" | ||
"quote": "Quote display and user preferences", | ||
"partner-live-app": "Partner LiveApp", | ||
"device-flow": "Device transaction approval", | ||
"transaction-status": "Transaction status", | ||
"edge-cases": "Edge cases" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
17 changes: 1 addition & 16 deletions
17
pages/docs/exchange/flow/start-here.mdx → pages/docs/exchange/glossary.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.