generated from ChainSafe/yarn-workspaces-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: prelim updates to landing page copy, sidebar links, navigation links, etc. #23
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
fa479a0
prelim updates to landing page copy, sidebar links, navigation links,…
haochizzle 79baffe
update feature icons (these arent final)
haochizzle 98f6c7f
update landing page with contact us section + small visual updates
haochizzle a3e4e65
number the docs for viewability
haochizzle 1b2d152
remove redundant getting started mentions; add search bar; refactor s…
haochizzle 22c7dbc
rename quickstart.md
haochizzle 9854405
update config
haochizzle 87f8327
add key features page
haochizzle c0724ee
update yarn.lock file; add supported networks page
haochizzle 170778a
github actions temp update on yarn
haochizzle 430ea6c
immutable yarn
haochizzle 141666c
test ci
haochizzle 81c9378
ci.yml
haochizzle a2221b2
sdk overview update
haochizzle 7365be9
advanced usage clean up
haochizzle a14360b
small update to class reference introduction
haochizzle d13674a
small update to API functions section
haochizzle 9d4ebcb
reorganize API documentation ordering
haochizzle d5384ef
Merge branch 'master' into tho/docsv01
haochizzle 1d062aa
immutable flag on yarn to push some yarn.lock changes
haochizzle 4f9a855
git pull
haochizzle 30f78c0
yarn.lock file
haochizzle c9b0c63
add docusaurus-local-search dependency
haochizzle 90ea860
cd.yml
haochizzle d9c17b1
retrying yarn lock file
haochizzle e4d877d
update node version
haochizzle 0306ba7
readding immutable flag. plz god let this work
haochizzle 5fd533d
checksumbehavior update
haochizzle 319e1bd
update cd.yml and ci.yml PLZ GOD
haochizzle 7afe304
update doc-local-search to latest ver
haochizzle 225c06b
reset yarn version
haochizzle 64779a6
re-add immutable flags to cd and ci
haochizzle 26d3a20
revert yarn version to 4.3.1. remove walletConnect for initializing p…
haochizzle ad1b39c
revert yarn to 4.3.1
haochizzle fea2eec
revert yarnrc.yml
haochizzle 17845ed
remove extra useless code
haochizzle fef3cbc
table format for supported networks page
haochizzle 472c1f9
revert yarn stuff
BeroBurny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
id: intro | ||
title: What Is Sprinter? | ||
sidebar_position: 1 | ||
--- | ||
|
||
# Welcome To The Sprinter Docs | ||
|
||
Sprinter is a **fast, smooth, interoperable intent execution engine**. Our aim is to make multichain interactions feel like one. In doing so, we enhance cross-chain UX *for all* as a first-class citizen in both existing and upcoming web3 technologies. | ||
|
||
## What's Next | ||
|
||
- If you're new to Sprinter, begin with [Quick Start](../02-quick-start.md). | ||
- Explore detailed examples and advanced usage in the [SDK Documentation](../03-sdk/01-overview.md). | ||
- Dive into the specifics of our API in the [API Documentation](../04-api/01-api-usage.md). | ||
|
||
Stay tuned for the complete source code. | ||
|
||
## Need Assistance? | ||
|
||
If you have questions about Sprinter, the code, the docs, or have a business inquiry, please reach out to us on [Discord](https://discord.gg/Qdf6GyNB5J) or via email at [[email protected]](mailto:[email protected]). |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
id: features | ||
title: Key Features | ||
sidebar_position: 2 | ||
--- | ||
|
||
Sprinter provides execution for chain abstracton providers by operating a large cluster of solvers that are designed to: | ||
- ⚖️ simplify cross-chain balance aggregation and transaction management | ||
- 🔀 automatically provide optimized execution paths by determining the fastest and cheapest paths for a transfer, regardless of layer | ||
- 🥰 provide the ultimate UX buff to users, applications, protocols, and wallets | ||
- ⚙️ be unopinionated about account types (EOAs or smart contract accounts) | ||
|
||
## 🏃♀️ Fast | ||
|
||
- **Extensive Route Search**: Our solvers explore a wide array of routes to access deeper liquidity pools. | ||
- **Execution Guarantee**: Ensures transaction execution through our advanced mechanism. | ||
- **Just-in-Time (JIT) Liquidity**: Provides JIT liquidity and capital fronting to facilitate transactions efficiently. | ||
|
||
## 🥃 Smooth | ||
|
||
- **Flexible Account Compatibility**: Supports both externally owned accounts (EOA) and smart contract wallets. | ||
- **Minimized Slippage**: Quotes are derived from multiple pools across various intent protocols to minimize slippage. | ||
- **One-Click Solutions**: Enables seamless and straightforward one-click solutions for user convenience. | ||
|
||
## 🤝 Interoperable | ||
|
||
- **Multi-Protocol Integration**: Our solvers integrate with multiple protocols to enhance functionality. | ||
- **Account Type Agnostic**: Operates seamlessly regardless of account type. | ||
- **Wallet Implementation Agnostic**: Functions efficiently with various wallet implementations. | ||
- **Flexible Capital Fronting**: Capable of fronting capital across different networks as needed. | ||
|
||
## 💳 Capital Efficient | ||
|
||
The Sprinter solver engine creates capital efficiency across the cross-chain transaction flow by bearing equivocation risk for users and intent providers. In effect, this optimizes the transaction supply chain for the user since we create the destination calldata. | ||
|
||
## ↔️ Horizontal Scaling | ||
|
||
Just as the explosion of the EVM L2 ecosystem has brought about horizontal scalability for the entire Ethereum ecosystem, Sprinter amplifies this effect by facilitating movement of funds between all chains. |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
id: flow | ||
title: Sprinter x Application Flow | ||
sidebar_position: 3 | ||
--- | ||
|
||
The following section showcases how cross-chain balances and transactions are managed in a Sprinter-integrated application flow. | ||
|
||
### 1. Prepare User | ||
|
||
Before using Sprinter, the user must authenticate or connect to the decentralized application (dApp). This step is handled by your application, ensuring that the user is authenticated and their wallet is connected. | ||
|
||
### 2. Balance Aggregation | ||
|
||
Once the user is prepared, Sprinter can optionally aggregate the user's balances across multiple blockchains. This involves fetching data from different networks and consolidating it into a single view. | ||
|
||
### 3. Get Quote | ||
|
||
The next step is to get the transaction quote. This provides the necessary information for the dApp to execute the required transactions. Sprinter finds the best single-hop cross-bridge transaction to optimize this process. | ||
|
||
### 4. Execute Transaction | ||
|
||
After obtaining the transaction quote, the dApp executes the transaction. Sprinter provides the best options for the transaction, but the actual execution and transaction status monitoring is handled by the dApp. | ||
|
||
### 5. Error Handling | ||
|
||
Error handling is managed by the dApp. Sprinter ensures that it provides accurate data and options, but the dApp is responsible for handling any errors that may arise during the transaction process. | ||
|
||
## Diagram of the Sprinter Flow | ||
|
||
Below is a simplified diagram illustrating the Sprinter application flow: | ||
|
||
```plaintext | ||
+------------------------+ | ||
| Prepare User (Auth) | | ||
+-----------+------------+ | ||
| | ||
v | ||
+------------------------+ | ||
| Balance Aggregation | | ||
+-----------+------------+ | ||
| | ||
v | ||
+------------------------+ | ||
| Get Quote | | ||
+-----------+------------+ | ||
| | ||
v | ||
+------------------------+ | ||
| Execute Transaction | | ||
+-----------+------------+ | ||
| | ||
v | ||
+------------------------+ | ||
| Error Handling | | ||
+------------------------+ | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
id: supported | ||
title: Supported Bridges And Networks | ||
sidebar_position: 4 | ||
--- | ||
|
||
:::tip | ||
New routes, networks, and tokens can readily be added by the Sprinter team. Please reach out at [[email protected]](mailto:[email protected]) to get a conversation started. | ||
::: | ||
|
||
| Supported Bridges | Supported Networks | Supported Tokens | | ||
|-------------------------------------|--------------------|------------------| | ||
| [LI.FI](https://li.fi/) | Ethereum Mainnet | Native ETH | | ||
| [Across](https://across.to/) | Base | Wrapped ETH | | ||
| [Sygma](https://buildwithsygma.com) | Arbitrum | USDC | | ||
| | Polygon | USDT | | ||
| | Gnosis | DAI | | ||
| | Cronos | | |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
id: quickstart | ||
title: Quick Start | ||
sidebar_position: 2 | ||
--- | ||
|
||
You have two main options for interacting with Sprinter: | ||
|
||
- [Using the SDK](#using-the-sdk) | ||
- [Calling API Endpoints Directly](#calling-api-endpoints-directly) | ||
|
||
### Using the SDK | ||
|
||
Using the Sprinter SDK provides a convenient and unified interface for blockchain interactions, complete with TypeScript support for enhanced type safety and a better development experience. This approach is recommended for developers working with TypeScript or popular web frameworks. | ||
|
||
**Quick Example** | ||
|
||
Here's a quick example of how to use the SDK in your project: | ||
|
||
```typescript | ||
import { Sprinter } from '@chainsafe/sprinter-sdk'; | ||
|
||
const sprinter = new Sprinter(window.ethereum); | ||
|
||
sprinter.getUserBalances().then(console.log); | ||
``` | ||
|
||
For a more detailed guide on setting up and using the SDK, refer to the [SDK Documentation](03-sdk/01-overview.md). | ||
|
||
### Calling API Endpoints Directly | ||
|
||
If you prefer more control or wish to implement the solution in a different programming language, you can directly interact with the API endpoints provided by Sprinter. | ||
|
||
**Quick Example** | ||
|
||
Here’s how you can call the API directly using JavaScript's Fetch API: | ||
|
||
```javascript | ||
const ownerAddress = "0x3E101Ec02e7A48D16DADE204C96bFF842E7E2519"; | ||
const tokenSymbol = "USDC"; | ||
const baseUrl = "https://api.sprinter.buildwithsygma.com/"; | ||
|
||
fetch(`${baseUrl}/accounts/${ownerAddress}/assets/fungible/${tokenSymbol}`) | ||
.then(response => response.json()) | ||
.then(data => console.log(data)) | ||
.catch(error => console.error('Error fetching user fungible tokens:', error)); | ||
``` | ||
|
||
For a comprehensive list of available endpoints and how to use them, check out the [API Documentation](04-api/01-api-usage.md). |
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
File renamed without changes.
File renamed without changes.
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 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_position: 4 | ||
--- | ||
|
||
# Networks | ||
|
File renamed without changes.
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷♂️
note to me, should revisit this and think about use cases like rawdogging web3 stuff in a browser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wasnt sure if we should assume someone would know how to rawdog the web3 stuff in a browser, so thought to add a little helper hint to add vite as a package. lmk if you think this is excessive and we should assume basic knowledge. me personally, i'd err on the side of providing more info than not.